request-logger-canary@1.0.0
Malicious code in request-logger-canary (npm)
Analysis
Package request-logger-canary@1.0.0 ships a live reverse shell in its preinstall hook (preinstall.js). On npm install, the hook opens a TCP socket to 52[.]74[.]242[.]200:8851, spawns /bin/sh -i, and pipes stdin/stdout/stderr over the socket — giving the remote operator a full interactive shell on the installer's machine. The package description and README claim it is an inert security-research canary that only writes marker files to /tmp, but the actual preinstall.js code contains none of the claimed file-writing logic — it is only a bare reverse shell with no dead-code guard. The postinstall.js file declared in package.json is absent from the tarball. The "canary" framing is a social-engineering attempt to evade detection.
- analyzed by
- Leitwacht
- first seen
- Jun 13, 2026, 05:53 AM
- analyzed
- Jun 13, 2026, 05:54 AM
Related advisories
- obfus-jsxy@3.2.0
- ecto-rust-read-f3a9c1@1.0.2
- aikaf668897@1.0.3
- aikaf6688812@1.0.3
- redux-probe-unknown-action-rce@1.0.0
- houzidawang806@1.0.1
- @wacrot/infra-data-kit@2.1.4
- prisma-callback@1.0.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.