Skip to main content

Malicious code in electro-session (npm)

0
Critical
Published: 08/19/2026 (08/19/2026, 04:03:19 UTC)
Source: GCVE Database
Product: electro-session

Description

The npm package electro-session versions 0.1.0, 0.1.1, 0.1.3, and 0.1.4 contains heavily obfuscated malicious code that acts as an infostealer. It uses Node.js built-in modules and a cloud blob upload SDK to read, decrypt, and exfiltrate local SQLite-backed credential and session stores from browsers, wallet extensions, and chat apps. The payload includes persistence mechanisms via scheduled recurring OS tasks and triggers when the package's CLI is run or when its Sessions module is instantiated.

Affected software

npmghsa
electro-session
Affected versions
=0.1.1=0.1.4=0.1.3=0.1.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/19/2026, 14:28:24 UTC

Technical Analysis

The npm package [email protected], 0.1.1, 0.1.3, and 0.1.4 masquerades as a session utility but contains ~1MB of heavily obfuscated JavaScript designed to steal sensitive data. It leverages Node.js built-in modules such as sqlite, fs, os, path, child_process, and crypto, combined with the @vercel/blob SDK to upload stolen data to the cloud. The obfuscation includes RC4-encrypted strings and anti-analysis wrappers. The malware reads local SQLite credential/session stores (e.g., browser login data, cookies, wallet extensions), decrypts them using OS primitives invoked via child_process, and uploads them. Persistence is achieved by registering recurring OS tasks that re-invoke the payload. The payload activates when the CLI is run with user confirmation or when the Sessions module is instantiated programmatically. The bilingual prompt (English and Spanish) suggests targeting Spanish-speaking developers.

Potential Impact

This malicious package can exfiltrate sensitive user credentials and session data from local SQLite databases used by browsers, wallet extensions, and chat applications. The data is decrypted and uploaded to a cloud service, potentially leading to credential theft, account compromise, and privacy violations. The persistence mechanism allows repeated data theft over time. This poses a significant risk to developers and users who install or require this package.

Mitigation Recommendations

No official patch or remediation is currently documented. Users and developers should immediately remove and avoid using electro-session versions 0.1.0, 0.1.1, 0.1.3, and 0.1.4. Audit systems for the presence of this package and any scheduled tasks it may have created. Replace the package with trusted alternatives and monitor for unauthorized data exfiltration. Check vendor advisories or trusted security sources for updates or official guidance.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-14242
Osv Schema Version
1.7.4
Ecosystems
["npm"]

Threat ID: 6a85b4c0acd9273b4925243d

Added to database: 08/19/2026, 13:50:56 UTC

Last enriched: 08/19/2026, 14:28:24 UTC

Last updated: 10/02/2026, 13:52:10 UTC

Views: 48

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses