Skip to main content

Malicious code in @hoteldev/common (npm)

0
Critical
Published: 08/05/2026 (08/05/2026, 12:34:06 UTC)
Source: GCVE Database
Product: @hoteldev/common

Description

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (9bb27849cbb16840b019ef47d6a84627d61eb9d48df28da5a9bc1a208e1ff758) build/index.js appends an eval(atob(...)) block after the normal __exportStar section that decodes to an import-time loader. The loader resolves a C2 IP by reading an Ethereum transaction associated with wallet 0xa322E5f3D311D3080e6f0121063e9aDC2490Ef1a (via eth_getBlockByNumber), then issues HTTP requests to http://<derived-IP>:443/0x/cls and http://<derived-IP>:443/0x/ls with an x-payload-b64 header, XOR-decrypts the responses, and launches each decoded body through spawn('node', ['-e', <payload>], {detached: true, stdio: 'ignore', windowsHide: true}).unref(). Strings inside the payload (http, https, spawn, child_process, eth_getBlockByNumber, x-payload-b64) are written as \u#### unicode escapes to hide the behavior from casual review. The loader runs on any require/import of the package, giving the operator of the on-chain-designated host arbitrary, hidden, detached code execution on the installer's machine, with the C2 address rotatable via a new Ethereum transaction. ## Source: ghsa-malware (aacfc893117769583694bc71a02db63d49b37b36243c48e00fa492c68e6beb37) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

Affected software

npmghsa
@hoteldev/common
Affected versions
=1.0.9

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: 08/05/2026, 17:37:24 UTC

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.

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-12318
Osv Schema Version
1.7.4
Ecosystems
["npm"]

Threat ID: 6a735747bf8831d53915a0b2

Added to database: 08/05/2026, 15:31:19 UTC

Last enriched: 08/05/2026, 17:37:24 UTC

Last updated: 09/13/2026, 22:02:46 UTC

Views: 24

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