webpack-patch@1.1.7
Malicious code in webpack-patch (npm)
Analysis
A trojanized clone of the pino logger published under the combosquat name "webpack-patch". The package's index.js exports a function that spawns a detached background Node.js child process running lib/caller.js, hidden via stdio:ignore and child.unref(). caller.js uses axios to fetch a second-stage payload from hxxps://jsonkeeper[.]com/b/XRGF3 (with an 'x-secret-key' request header), then evaluates the response's .cookie field using the Function constructor with the Node.js require() object passed in — giving the remote code full filesystem and network access. Errors are silently retried up to 5 times for stealth. The fetched payload can execute arbitrary code on the installer's machine without their knowledge.
- analyzed by
- Leitwacht
- first seen
- Jun 16, 2026, 02:43 AM
- analyzed
- Jun 16, 2026, 02:45 AM
Related advisories
- request-js-validator@1.0.3
- qr-code-styling-temp@9.9.10
- chai-utils-test@4.5.1
- chai-utils-test@4.5.4
- dotenv-pack@2.3.7
- chai-as-init@1.4.6
- nullsub@1.11.16
- @catladder/cli@5.8.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.