request-js-validator@1.0.2
Malicious code in request-js-validator (npm)
Analysis
Combosquat package request-js-validator impersonates the deprecated request package (same README, false bugs URL pointing to github[.]com/request/request). When imported, index.js spawns a detached background Node process that runs lib/callers.js. That script makes an HTTPS GET to jsonkeeper[.]com/b/XB9WY and passes the fetched content to new Function.constructor('require', responseBody) — evaluating arbitrary remote code with full Node.js require() access, making it a remote code execution dropper. The C2 host is www[.]jsonkeeper[.]com, path /b/XB9WY. No lifecycle hooks needed; triggers silently on require(). The remote second stage has complete access to the victim environment including files, credentials, and tokens.
- analyzed by
- Leitwacht
- first seen
- Jun 13, 2026, 05:38 AM
- analyzed
- Jun 13, 2026, 05:39 AM
Related advisories
- request-js-validator@1.0.4 same package
- request-js-validator@1.0.3 same package
- macos-ci-utils@1.0.1
- redirect-azlazy@1.0.0
- redeem-onchain-sdk@1.0.1
- react-svg-chunk@1.1.0
- react-schedule-it@4.0.0
- warp-dependency@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.