x3r0day-bunnyhijack-poc@1.0.2
Malicious code in x3r0day-bunnyhijack-poc (npm)
Analysis
This package is distributed as a security-research proof of concept named "BunnyHijack" (keywords: bun, bunnyhijack, poc, security) that executes code during `bun install` while declaring no preinstall/install/postinstall hook of its own. It ships `"bin": { "grunt": "./shim.js" }` and depends on @sap/hana-theme-vscode, a package on Bun's default-trusted-dependencies list whose own postinstall runs `grunt setVersion`; Bun links node_modules/.bin/grunt to shim.js, so the trusted package's install step invokes the untrusted shim with no --trust flag and no prompt. shim.js collects the timestamp, username (os.userInfo().username with a USER/USERNAME env fallback), hostname, platform/arch, working directory and install argv, writes that text to pwned-by-bunnyhijack.txt in the current working directory and in the OS temp directory, prints it to stdout, then spawns a detached, unref'd process to open hxxps://github[.]com/X3r0Day/BunnyHijack-PoC in the default browser (xdg-open, gio open, sensible-browser, open, or cmd /c start), so the child outlives the install. It exits 0 so the install completes normally. No credentials, tokens, environment values, wallet data or file contents are read or transmitted; the only outbound action is opening the project URL.
- analyzed by
- Leitwacht
- first seen
- Nov 6, 2026, 04:50 PM
- analyzed
- Nov 6, 2026, 04:50 PM
Related advisories
- x3r0day-bunnyhijack-poc@1.0.3 same package
- neun-by-neun@0.1.0
- @azure-growth/signup-ux-components@2.9.9
- @azure-growth/signup-ux-components@1.2.3
- @eforms/forms-api@1.99.0
- @capsense/core-ui@99.99.100
- @capsense/ccx-welcome-page@99.99.100
- regex-linter@12.0.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.