Skip to main content

Malicious code in llm-nebula (npm)

0
High
Published: 09/28/2026 (09/28/2026, 19:36:11 UTC)
Source: GCVE Database
Product: llm-nebula

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

npmghsa
llm-nebula
Affected versions
=1.0.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: 09/29/2026, 04:53:35 UTC

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.

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-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 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