Malicious code in electron-orbit (npm)
The electron-orbit npm package contains malicious code that activates when required in Node.js environments. It establishes a covert network connection using a custom TLS 1.3 implementation to an Azure blob storage endpoint, bypassing standard TLS interception and static inspection. The package collects environment variables related to PATH and the current working directory, sending this data encoded in the request URL to the attacker-controlled server. Activation is conditional, triggered only when a specific environment variable's SHA-256 hash matches a hardcoded value, allowing targeted execution in chosen environments such as CI pipelines. The package's advertised functionality is a pretext; it does not perform legitimate icon fetching or SVG rendering as claimed.
AI Analysis
Technical Summary
The electron-orbit npm package, when imported, unconditionally initiates an auto-prefetch pipeline in Node.js contexts that opens a raw TCP socket to electronorbit.blob.core.windows.net on port 443. Instead of using standard HTTPS libraries, it implements a custom TLS 1.3 stack with XOR-obfuscated network strings to evade detection. During installation, it writes a marker file containing environment variables related to PATH and the current working directory, as well as system information in a decoy file. Upon require, it reads and encodes this marker data, appending it as a query string to the Azure blob URL, thereby exfiltrating environment details via HTTP request logs. The payload activates only if the SHA-256 hash of the environment variable BuildType matches a hardcoded substring, enabling stealthy, targeted activation. The package's claimed purpose of Electron runtime discovery is a cover for this malicious behavior.
Potential Impact
This malicious package exfiltrates sensitive environment information, including PATH variables and working directory, to an attacker-controlled Azure blob storage endpoint. The use of a custom TLS stack and obfuscation techniques bypasses standard network inspection tools, increasing stealth. Activation gating by a specific environment variable hash enables targeted attacks, reducing detection risk. This can lead to exposure of sensitive build or runtime environment details, potentially aiding further attacks or reconnaissance.
Mitigation Recommendations
No official patch or remediation is currently documented for this package. Users should avoid installing or requiring the electron-orbit npm package in their projects. Review dependency trees for inclusion of this package and remove or replace it with trusted alternatives. Monitor for any updates from the package maintainers or npm advisories for remediation guidance. Since this is a malicious package, the best mitigation is to prevent its use entirely.
Malicious code in electron-orbit (npm)
Description
The electron-orbit npm package contains malicious code that activates when required in Node.js environments. It establishes a covert network connection using a custom TLS 1.3 implementation to an Azure blob storage endpoint, bypassing standard TLS interception and static inspection. The package collects environment variables related to PATH and the current working directory, sending this data encoded in the request URL to the attacker-controlled server. Activation is conditional, triggered only when a specific environment variable's SHA-256 hash matches a hardcoded value, allowing targeted execution in chosen environments such as CI pipelines. The package's advertised functionality is a pretext; it does not perform legitimate icon fetching or SVG rendering as claimed.
Affected software
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
Technical Analysis
The electron-orbit npm package, when imported, unconditionally initiates an auto-prefetch pipeline in Node.js contexts that opens a raw TCP socket to electronorbit.blob.core.windows.net on port 443. Instead of using standard HTTPS libraries, it implements a custom TLS 1.3 stack with XOR-obfuscated network strings to evade detection. During installation, it writes a marker file containing environment variables related to PATH and the current working directory, as well as system information in a decoy file. Upon require, it reads and encodes this marker data, appending it as a query string to the Azure blob URL, thereby exfiltrating environment details via HTTP request logs. The payload activates only if the SHA-256 hash of the environment variable BuildType matches a hardcoded substring, enabling stealthy, targeted activation. The package's claimed purpose of Electron runtime discovery is a cover for this malicious behavior.
Potential Impact
This malicious package exfiltrates sensitive environment information, including PATH variables and working directory, to an attacker-controlled Azure blob storage endpoint. The use of a custom TLS stack and obfuscation techniques bypasses standard network inspection tools, increasing stealth. Activation gating by a specific environment variable hash enables targeted attacks, reducing detection risk. This can lead to exposure of sensitive build or runtime environment details, potentially aiding further attacks or reconnaissance.
Mitigation Recommendations
No official patch or remediation is currently documented for this package. Users should avoid installing or requiring the electron-orbit npm package in their projects. Review dependency trees for inclusion of this package and remove or replace it with trusted alternatives. Monitor for any updates from the package maintainers or npm advisories for remediation guidance. Since this is a malicious package, the best mitigation is to prevent its use entirely.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-6723
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a46ed1627e9c7971944735f
Added to database: 07/02/2026, 22:58:30 UTC
Last enriched: 07/14/2026, 10:47:13 UTC
Last updated: 07/31/2026, 07:20:27 UTC
Views: 51
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.