cuckooroot@1.0.0
Malicious code in cuckooroot (npm)
Analysis
This package is a proof-of-concept demonstrating code execution during a plain `npm install` with no lifecycle script. It is published as a prebuilt tarball that ships a root-level `.npm-extension.mjs` (a path excluded from ordinary directory publishes) and declares `bundleDependencies: ["cuckooroot-bundled"]`, causing npm's reify pass to import the module inside the npm process while loading the bundled dependency's actual tree. On import, the module spawns a detached, unref'd child process that invokes the platform's browser launcher — `cmd /c start` on Windows, `open` on macOS, `xdg-open` / `gio open` / `sensible-browser` on Unix — to open hxxps://github[.]com/X3r0Day in the default browser, then exports a pass-through `transformManifest`. The package self-declares as a research artifact for a CLI advisory; the module reads no environment variables or credential files, opens no sockets, and has no second stage. The shipped bundled dependency `node_modules/cuckooroot-bundled/index.js` is a one-line stub.
- analyzed by
- Leitwacht
- first seen
- Nov 12, 2026, 04:35 PM
- analyzed
- Nov 12, 2026, 04:35 PM
Related advisories
- easysalon-tool@1.0.11
- @swirls/cli@0.1.149
- @yuanjielab/cli@0.13.0
- wertybailz@1.0.10
- @darling-2002/baileys@1.2.8
- hauntview@0.2.9
- @yuanjielab/cli@0.12.0
- template-pictogram@9.1.3
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.