Malicious code in @hoteldev/common (npm)
The npm package @hoteldev/common version 1.0.9 contains malicious code that executes hidden commands on any system importing the package. The malicious loader decodes an Ethereum blockchain transaction to determine a command-and-control (C2) server IP address, then fetches and decrypts payloads from this server. These payloads are executed as detached Node.js processes, enabling arbitrary code execution on the victim's machine. The C2 address can be dynamically changed by the attacker via new Ethereum transactions, making detection and mitigation more difficult.
AI Analysis
Technical Summary
The @hoteldev/common npm package version 1.0.9 includes obfuscated malicious code that appends an eval(atob(...)) block to the module exports. This block acts as a loader that queries the Ethereum blockchain for a transaction linked to a specific wallet address to derive a C2 server IP. It then sends HTTP requests with encoded headers to this server, XOR-decrypts the responses, and executes the resulting code as detached Node.js processes. The malicious strings are encoded as Unicode escapes to evade casual code review. This behavior triggers on any import or require of the package, allowing the attacker to run arbitrary code on the host system stealthily.
Potential Impact
This malicious package enables an attacker to achieve arbitrary, hidden, and detached code execution on any machine that installs and imports @hoteldev/common version 1.0.9. The attacker can rotate the C2 server address dynamically via Ethereum transactions, complicating detection and response. This poses a severe risk of system compromise, data theft, or further malware deployment.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should immediately remove and avoid installing version 1.0.9 of @hoteldev/common. Audit existing environments for this package and replace it with trusted alternatives. Monitor for suspicious Node.js processes spawned detached from normal workflows. Check vendor advisories or npm security advisories for updates or official fixes.
Malicious code in @hoteldev/common (npm)
Description
The npm package @hoteldev/common version 1.0.9 contains malicious code that executes hidden commands on any system importing the package. The malicious loader decodes an Ethereum blockchain transaction to determine a command-and-control (C2) server IP address, then fetches and decrypts payloads from this server. These payloads are executed as detached Node.js processes, enabling arbitrary code execution on the victim's machine. The C2 address can be dynamically changed by the attacker via new Ethereum transactions, making detection and mitigation more difficult.
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 @hoteldev/common npm package version 1.0.9 includes obfuscated malicious code that appends an eval(atob(...)) block to the module exports. This block acts as a loader that queries the Ethereum blockchain for a transaction linked to a specific wallet address to derive a C2 server IP. It then sends HTTP requests with encoded headers to this server, XOR-decrypts the responses, and executes the resulting code as detached Node.js processes. The malicious strings are encoded as Unicode escapes to evade casual code review. This behavior triggers on any import or require of the package, allowing the attacker to run arbitrary code on the host system stealthily.
Potential Impact
This malicious package enables an attacker to achieve arbitrary, hidden, and detached code execution on any machine that installs and imports @hoteldev/common version 1.0.9. The attacker can rotate the C2 server address dynamically via Ethereum transactions, complicating detection and response. This poses a severe risk of system compromise, data theft, or further malware deployment.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should immediately remove and avoid installing version 1.0.9 of @hoteldev/common. Audit existing environments for this package and replace it with trusted alternatives. Monitor for suspicious Node.js processes spawned detached from normal workflows. Check vendor advisories or npm security advisories for updates or official fixes.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-12318
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a735747bf8831d53915a0b2
Added to database: 08/05/2026, 15:31:19 UTC
Last enriched: 08/05/2026, 17:37:24 UTC
Last updated: 08/05/2026, 17:37:24 UTC
Views: 2
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.