Malicious code in nebulajs-api (npm)
The nebulajs-api npm package version 1.0.0 contains a malicious preinstall script that executes obfuscated code at install time. This code uses a custom PRNG-based decoder to reconstruct and run a hidden payload, resulting in remote code execution on the installer's machine before any legitimate package code runs. The main module is a minimal AI-client wrapper unrelated to the malicious payload, serving as a cover. Installation of this package compromises the host system, potentially exposing all stored secrets and keys.
AI Analysis
Technical Summary
The nebulajs-api npm package (version 1.0.0) includes a malicious preinstall hook implemented as an obfuscated ~232KB script that decodes and executes a hidden payload at npm install time. This payload uses a custom pseudo-random number generator and XOR-based decoding to reconstruct executable code, enabling remote code execution on the installer's machine. The legitimate main module is minimal and unrelated to the malicious behavior, indicating the preinstall script is the primary attack vector. This pattern is a canonical npm install-time RCE dropper, allowing an attacker to gain full control of the compromised system.
Potential Impact
Any system that installs nebulajs-api version 1.0.0 is fully compromised due to the remote code execution capability of the preinstall script. Attackers may gain complete control over the affected machine, potentially accessing or exfiltrating all secrets and keys stored on it. Removal of the package does not guarantee elimination of all malicious artifacts, as the attacker may have established persistent backdoors or additional malware.
Mitigation Recommendations
Immediate removal of the nebulajs-api package version 1.0.0 from all systems is recommended. All secrets and keys stored on compromised machines should be rotated from a separate, trusted device. Because the preinstall script executes code at install time, avoid installing this package altogether. No official patch or fix is currently available; patch status is not yet confirmed — check the vendor advisory for current remediation guidance.
Malicious code in nebulajs-api (npm)
Description
The nebulajs-api npm package version 1.0.0 contains a malicious preinstall script that executes obfuscated code at install time. This code uses a custom PRNG-based decoder to reconstruct and run a hidden payload, resulting in remote code execution on the installer's machine before any legitimate package code runs. The main module is a minimal AI-client wrapper unrelated to the malicious payload, serving as a cover. Installation of this package compromises the host system, potentially exposing all stored secrets and keys.
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 nebulajs-api npm package (version 1.0.0) includes a malicious preinstall hook implemented as an obfuscated ~232KB script that decodes and executes a hidden payload at npm install time. This payload uses a custom pseudo-random number generator and XOR-based decoding to reconstruct executable code, enabling remote code execution on the installer's machine. The legitimate main module is minimal and unrelated to the malicious behavior, indicating the preinstall script is the primary attack vector. This pattern is a canonical npm install-time RCE dropper, allowing an attacker to gain full control of the compromised system.
Potential Impact
Any system that installs nebulajs-api version 1.0.0 is fully compromised due to the remote code execution capability of the preinstall script. Attackers may gain complete control over the affected machine, potentially accessing or exfiltrating all secrets and keys stored on it. Removal of the package does not guarantee elimination of all malicious artifacts, as the attacker may have established persistent backdoors or additional malware.
Mitigation Recommendations
Immediate removal of the nebulajs-api package version 1.0.0 from all systems is recommended. All secrets and keys stored on compromised machines should be rotated from a separate, trusted device. Because the preinstall script executes code at install time, avoid installing this package altogether. No official patch or fix is currently available; patch status is not yet confirmed — check the vendor advisory for current remediation guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-17220
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-2gr6-gxvx-3594"]
- Ecosystems
- ["npm"]
Threat ID: 6abb41a5f7a7c54106cc3918
Added to database: 09/29/2026, 04:42:13 UTC
Last enriched: 09/29/2026, 04:58:01 UTC
Last updated: 09/29/2026, 18:00:17 UTC
Views: 13
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.
External Links
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.