LWA-2026-5642 MAL-2026-6142 ↗ confirmed malware

db-connector-log@1.0.0

Malicious code in db-connector-log (npm)

Analysis

This package masquerades as a database connector (a renamed copy of a legitimate divblox DB-connector library) but injects a hidden remote-code-execution stager into index.js. A base64-encoded string conceals the URL hxxps://jsonkeeper[.]com/b/L435A; the added queryDBConnect() method decodes it, fetches a JSON document, and extracts a session field containing attacker-controlled JavaScript. It then spawns a detached node interpreter with a piped stdin, writes the fetched code into that interpreter, and unrefs/detaches the process so it runs in the background independent of the parent. The result is execution of arbitrary remote-controlled code on any host that imports the package and calls the connector, with no further indication to the user.

analyzed by
Leitwacht
first seen
Jun 17, 2026, 11:48 AM
analyzed
Jun 17, 2026, 11:52 AM

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