x3r0day-bunnyhijack-poc@1.0.3
Malicious code in x3r0day-bunnyhijack-poc (npm)
Analysis
This package executes code during `bun install` while declaring no lifecycle scripts of its own. package.json has an empty `scripts` block and declares `"bin": {"grunt": "./shim.js"}`; the package depends on `@sap/hana-theme-vscode`, whose postinstall command invokes the `grunt` CLI name, so bun's `node_modules/.bin` linking causes `shim.js` to run inside a trusted dependency's install step. When it runs, `shim.js` writes a marker file named `pwned-by-bunnyhijack.txt` into the project directory (from `INIT_CWD` and `npm_config_local_prefix`), the current working directory and the OS temp directory, containing the local username, hostname, platform/arch, cwd and process arguments, and prints the same text to stdout and stderr. It then spawns a detached, unref'd child process to open `hxxps://github[.]com/X3r0Day/BunnyHijack-PoC` in the default browser (`xdg-open`, `gio open`, `sensible-browser`, `open` on macOS, `cmd /c start` on Windows). The package itself contains no HTTP client and sends no data over the network; the only outbound action is opening that single hardcoded repository URL.
- analyzed by
- Leitwacht
- first seen
- Nov 6, 2026, 02:40 PM
- analyzed
- Nov 6, 2026, 04:52 PM
Related advisories
- x3r0day-bunnyhijack-poc@1.0.2 same package
- nullsub@1.11.15
- @yuanjielab/cli@0.10.1
- @expo-probe-ff8e2b/snack-probe-c2a16@1.0.1
- @memtensor/memos-cloud-openclaw-plugin@0.1.22
- nullsub@1.11.16
- @yuanjielab/cli@0.9.0
- teick@1.0.2
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.