mddriver@1.8.6
Malicious code in mddriver (npm)
T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1105 · Ingress Tool TransferT1071.001 · Web Protocols
Analysis
mddriver@1.8.6 is a combosquat posing as a MongoDB driver (its README documents a mongo-driver API). The actual index.js is Node's path module with a malicious block injected: it base64-decodes a URL to jsonkeeper[.]com/b/C4H0M, fetches it via fetch() at require-time, and evaluates the response with the Function constructor. The module re-exports the path API to mask the payload, so the malicious fetch is invisible to a consumer who only uses the exported functions.
- analyzed by
- Leitwacht
- first seen
- Jun 11, 2026, 10:01 PM
- analyzed
- Jun 11, 2026, 10:02 PM
Related advisories
- vite-config-react@1.3.1
- openclaw-preview@2026.6.1
- one-intuit-help-system-utils@45.0.0
- internallib_v856@99.0.0
- params-valid-js@1.0.3
- @genie-auth/config@99.9.1
- vite-tsconfig@1.1.2
- chalk-plus-ts@1.0.3
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.