Malicious code in llm-nebula (npm)
The llm-nebula npm package version 1.0.0 contains a malicious preinstall script that executes automatically during installation. This script is heavily obfuscated and runs with the user's privileges, enabling arbitrary filesystem, process, and network operations. The package masquerades as a legitimate LLM SDK but hides a runtime decoder that dynamically resolves Node.js built-in modules and commands, facilitating remote code execution at install time.
AI Analysis
Technical Summary
The llm-nebula npm package (version 1.0.0) includes a preinstall lifecycle hook defined in its package.json that executes a heavily obfuscated ~232KB single-line script (preinstall.cjs) during npm install. This script uses a custom PRNG-based string decoder and dynamic runtime resolution of Node.js built-in modules and method names to conceal its true behavior. The obfuscation and use of a Function constructor enable the script to perform arbitrary code execution with the user's privileges at install time, allowing it to perform filesystem, process, and network operations. The package presents itself as a benign LLM SDK but acts as an install-time dropper for malicious code.
Potential Impact
Users who install llm-nebula version 1.0.0 risk executing malicious code with their user privileges during installation. This can lead to arbitrary filesystem modifications, process execution, and network communications controlled by the attacker. The compromise occurs silently at install time, potentially leading to system compromise or data exfiltration depending on the attacker's payload.
Mitigation Recommendations
No official patch or remediation is documented for this package. Users should avoid installing llm-nebula version 1.0.0. Verify package authenticity and source before installation, and consider using package integrity verification tools or trusted registries. Monitor for updates or advisories from the package maintainer or npm security teams for remediation guidance.
Malicious code in llm-nebula (npm)
Description
The llm-nebula npm package version 1.0.0 contains a malicious preinstall script that executes automatically during installation. This script is heavily obfuscated and runs with the user's privileges, enabling arbitrary filesystem, process, and network operations. The package masquerades as a legitimate LLM SDK but hides a runtime decoder that dynamically resolves Node.js built-in modules and commands, facilitating remote code execution at install time.
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 llm-nebula npm package (version 1.0.0) includes a preinstall lifecycle hook defined in its package.json that executes a heavily obfuscated ~232KB single-line script (preinstall.cjs) during npm install. This script uses a custom PRNG-based string decoder and dynamic runtime resolution of Node.js built-in modules and method names to conceal its true behavior. The obfuscation and use of a Function constructor enable the script to perform arbitrary code execution with the user's privileges at install time, allowing it to perform filesystem, process, and network operations. The package presents itself as a benign LLM SDK but acts as an install-time dropper for malicious code.
Potential Impact
Users who install llm-nebula version 1.0.0 risk executing malicious code with their user privileges during installation. This can lead to arbitrary filesystem modifications, process execution, and network communications controlled by the attacker. The compromise occurs silently at install time, potentially leading to system compromise or data exfiltration depending on the attacker's payload.
Mitigation Recommendations
No official patch or remediation is documented for this package. Users should avoid installing llm-nebula version 1.0.0. Verify package authenticity and source before installation, and consider using package integrity verification tools or trusted registries. Monitor for updates or advisories from the package maintainer or npm security teams for remediation guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-17230
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6abb4198f7a7c54106cc3843
Added to database: 09/29/2026, 04:42:00 UTC
Last enriched: 09/29/2026, 04:53:35 UTC
Last updated: 09/29/2026, 10:19:52 UTC
Views: 16
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.