x3r0day-bunnyhijack-pocnpm
Advisory published Updated
x3r0day-bunnyhijack-poc is a confirmed malicious npm package (MAL-2026-20424) that executes malicious code on install (malicious version 1.0.3). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in x3r0day-bunnyhijack-poc (npm)
What this malware does
Package declares no lifecycle scripts but ships bin.grunt ->./shim.js and depends on @sap/hana-theme-vscode, whose own postinstall invokes grunt. Under bun install, bun resolves the grunt bin to this package's shim and executes it as part of the trusted dependency's postinstall. The shim writes a marker file pwned-by-bunnyhijack.txt to INIT_CWD / cwd / tmpdir and spawns the OS default browser (xdg-open / open / cmd /c start) to a hardcoded GitHub URL. The package's package.json description and README openly identify it as a proof-of-concept whose purpose is to execute attacker-controlled code during install via bin-shim hijack of a transitive dependency's PATH lookup. The current payload is benign (file drop + browser launch), but the mechanism is a general install-time code execution primitive that fires on a default bun install with no consent prompt and no declared lifecycle hook on this package.
Malicious versions
Indicators of compromise (SHA-256)
Detection & response playbook
Malicious packageFind it
Search your lockfiles and build artifacts for x3r0day-bunnyhijack-poc (version 1.0.3).
If you installed it — respond
Remove x3r0day-bunnyhijack-poc from your project and lockfile, then assume any secrets accessible to the build or runtime were exposed: rotate API keys, tokens, and credentials, and audit for unexpected outbound activity or persistence.
Did it already run?
If x3r0day-bunnyhijack-poc was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.
Frequently asked questions
Campaign
References
Credits
- Amazon Inspector · finder
Detect & block this
O3 blocks x3r0day-bunnyhijack-poc-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the malicious outbound activity and severs the channel.