runtime-querynpm
Malicious code in runtime-query (npm) Remove it immediately and rotate any exposed credentials.
What this malware does
On require(), index.js (lines 70-77) fetches JSON from https://jsonkeeper.com/b/CI3HT, extracts the .cookie field from the response, and passes it to new Function.constructor('require', cookie)(require) — compiling and executing attacker-controlled JavaScript with full access to Node's require. jsonkeeper.com is an anonymous, mutable paste host: the operator can swap the payload at any time without republishing the package. Any installer (or downstream package) that imports runtime-query gives the author arbitrary code execution on their machine. The package's metadata (description claims a generic query framework, empty author, no repository/homepage) is a cover story — the only shipped code is the 70-line remote loader.
Malicious versions
Indicators of compromise (SHA-256)
Frequently asked questions
Campaign
References
Credits
- Amazon Inspector · finder
Scan your dependencies
O3 Security blocks malicious packages like this at install time and in CI.
Supply-chain protection