LWA-2026-4007 MAL-2026-6797 ↗ confirmed malware

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

browse all confirmed advisories →

Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.