Malicious code in bunnyhijack-test-0x00 (npm)
The npm package bunnyhijack-test-0x00 (versions 1.0.0 and 1.0.1) contains malicious code that hijacks the node command during npm lifecycle scripts by placing a shim executable in node_modules/.bin. This hijack allows arbitrary code execution under the installer's user account during package installation. The current payload is benign, demonstrating the hijack by creating a marker file and printing a message, but the mechanism could be used to run any malicious code. Installing or running this package compromises the affected system, and all secrets and keys on that system should be rotated immediately from a different machine.
AI Analysis
Technical Summary
The bunnyhijack-test-0x00 npm package declares a 'bin' entry mapping 'node' to a shim.js script, causing npm to place a fake 'node' executable in node_modules/.bin. Since npm prepends this directory to PATH during lifecycle scripts, any sibling package invoking 'node' (e.g., esbuild) will execute shim.js instead of the real Node.js runtime. The shim.js currently writes a marker file and prints a banner, demonstrating the hijack. This hijack allows arbitrary code execution during npm install under the user's privileges. The package is a proof-of-concept for PATH poisoning, but the technique can be weaponized to run malicious payloads. The package depends on protoc-gen-grpc-web to trigger sibling lifecycle scripts invoking 'node'.
Potential Impact
Any system that installs or runs this package is considered fully compromised because the hijack allows arbitrary code execution during installation under the user's privileges. This can lead to unauthorized access, data theft, or further malware installation. All secrets and keys stored on the compromised system should be considered exposed and must be rotated immediately from a secure, unaffected system. Removing the package does not guarantee removal of all malicious artifacts or backdoors installed via this hijack.
Mitigation Recommendations
There is no official patch or fix available for this package. The recommended mitigation is to avoid installing or running the bunnyhijack-test-0x00 package entirely. If the package has been installed, consider the system fully compromised: remove the package, rotate all secrets and keys from a different, secure machine, and perform a thorough incident response to identify and remediate any persistent malicious code. Monitor for any suspicious activity related to npm lifecycle scripts invoking 'node'.
Malicious code in bunnyhijack-test-0x00 (npm)
Description
The npm package bunnyhijack-test-0x00 (versions 1.0.0 and 1.0.1) contains malicious code that hijacks the node command during npm lifecycle scripts by placing a shim executable in node_modules/.bin. This hijack allows arbitrary code execution under the installer's user account during package installation. The current payload is benign, demonstrating the hijack by creating a marker file and printing a message, but the mechanism could be used to run any malicious code. Installing or running this package compromises the affected system, and all secrets and keys on that system should be rotated immediately from a different machine.
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 bunnyhijack-test-0x00 npm package declares a 'bin' entry mapping 'node' to a shim.js script, causing npm to place a fake 'node' executable in node_modules/.bin. Since npm prepends this directory to PATH during lifecycle scripts, any sibling package invoking 'node' (e.g., esbuild) will execute shim.js instead of the real Node.js runtime. The shim.js currently writes a marker file and prints a banner, demonstrating the hijack. This hijack allows arbitrary code execution during npm install under the user's privileges. The package is a proof-of-concept for PATH poisoning, but the technique can be weaponized to run malicious payloads. The package depends on protoc-gen-grpc-web to trigger sibling lifecycle scripts invoking 'node'.
Potential Impact
Any system that installs or runs this package is considered fully compromised because the hijack allows arbitrary code execution during installation under the user's privileges. This can lead to unauthorized access, data theft, or further malware installation. All secrets and keys stored on the compromised system should be considered exposed and must be rotated immediately from a secure, unaffected system. Removing the package does not guarantee removal of all malicious artifacts or backdoors installed via this hijack.
Defensive Guidance
There is no official patch or fix available for this package. The recommended mitigation is to avoid installing or running the bunnyhijack-test-0x00 package entirely. If the package has been installed, consider the system fully compromised: remove the package, rotate all secrets and keys from a different, secure machine, and perform a thorough incident response to identify and remediate any persistent malicious code. Monitor for any suspicious activity related to npm lifecycle scripts invoking 'node'.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-14310
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-8x5v-wf85-xhj5"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a870a76acd9273b49b58b02
Added to database: 08/20/2026, 14:08:54 UTC
Last enriched: 08/20/2026, 14:32:04 UTC
Last updated: 08/20/2026, 14:32:04 UTC
Views: 1
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.