request-js-validator@1.0.3
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.2 same package
- 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
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.