mongoose-lean-hooks@0.5.2
Malicious code in mongoose-lean-hooks (npm)
T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1105 · Ingress Tool TransferT1071.001 · Web Protocols
Analysis
Package takeover of mongoose-lean-hooks. index.js contains a hidden second-stage dropper appended after the legitimate plugin code: it uses axios to fetch remote code from jsonkeeper[.]com/b/A5BA8, then executes it via new Function('require', res.data.data). The declared dependencies (axios, request, sqlite3) are unnecessary for the claimed Mongoose timestamp-plugin purpose. The dropper is a C2 channel: fetch remote payload, then evaluate it at runtime with access to require, enabling arbitrary code execution in the installer's environment.
- analyzed by
- Leitwacht
- first seen
- Jun 10, 2026, 07:42 PM
- analyzed
- Jun 10, 2026, 07:45 PM
Related advisories
- fastify-addon@5.1.0
- modulyn@1.0.1
- mm-ts-utils-client@99.9.1
- mjs-biginteger@5.0.6
- websocket-slot@0.0.6
- metrica-node@2.4.5
- metrica-chain@2.4.5
- meowmeow111@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.