LWA-2026-13732 confirmed malware

x3r0day-bunnyhijack-poc@1.0.2

Malicious code in x3r0day-bunnyhijack-poc (npm)

T1195.002 · Compromise Software Supply ChainT1059 · Command and Scripting InterpreterT1082 · System Information DiscoveryT1033 · System Owner/User DiscoveryT1518 · Software Discovery

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

browse all confirmed advisories →

Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.