Malicious code in db-dx-connector (npm)
The npm package 'db-dx-connector' is a malicious package impersonating the legitimate 'dx-db-connector' package by inverting its name. It contains a backdoor method 'queryDBConnect' that fetches and executes arbitrary JavaScript code from an attacker-controlled remote URL at runtime. This allows remote code execution within any Node.js process that calls this method. The malicious behavior is obfuscated using base64 encoding and silent error handling. Versions 1.0.0 through 1.0.3 are affected.
AI Analysis
Technical Summary
The 'db-dx-connector' npm package mimics the API of the legitimate 'dx-db-connector' package but includes a hidden backdoor method 'queryDBConnect'. This method decodes a base64-encoded URL pointing to an anonymous paste-hosting service, fetches JavaScript code from that URL using axios, and dynamically compiles and executes it within the Node.js process. The backdoor enables an attacker controlling the remote paste to execute arbitrary code remotely. The package name inversion and obfuscation techniques are used to deceive users. The affected versions are exactly 1.0.0, 1.0.1, 1.0.2, and 1.0.3.
Potential Impact
Any Node.js application that installs and uses the 'db-dx-connector' package and invokes the 'queryDBConnect' method is vulnerable to remote code execution by an attacker controlling the remote JavaScript payload. This can lead to full compromise of the affected process and potentially the host system. The backdoor is stealthy due to silent error handling and obfuscated URL, increasing the risk of unnoticed exploitation.
Mitigation Recommendations
No official patch or remediation is currently available for this malicious package. Users should immediately remove 'db-dx-connector' versions 1.0.0 through 1.0.3 from their projects and replace it with the legitimate 'dx-db-connector' package from the official source. Avoid calling the 'queryDBConnect' method if the package is present. Monitor dependency sources carefully to prevent installation of similarly named malicious packages.
Malicious code in db-dx-connector (npm)
Description
The npm package 'db-dx-connector' is a malicious package impersonating the legitimate 'dx-db-connector' package by inverting its name. It contains a backdoor method 'queryDBConnect' that fetches and executes arbitrary JavaScript code from an attacker-controlled remote URL at runtime. This allows remote code execution within any Node.js process that calls this method. The malicious behavior is obfuscated using base64 encoding and silent error handling. Versions 1.0.0 through 1.0.3 are affected.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The 'db-dx-connector' npm package mimics the API of the legitimate 'dx-db-connector' package but includes a hidden backdoor method 'queryDBConnect'. This method decodes a base64-encoded URL pointing to an anonymous paste-hosting service, fetches JavaScript code from that URL using axios, and dynamically compiles and executes it within the Node.js process. The backdoor enables an attacker controlling the remote paste to execute arbitrary code remotely. The package name inversion and obfuscation techniques are used to deceive users. The affected versions are exactly 1.0.0, 1.0.1, 1.0.2, and 1.0.3.
Potential Impact
Any Node.js application that installs and uses the 'db-dx-connector' package and invokes the 'queryDBConnect' method is vulnerable to remote code execution by an attacker controlling the remote JavaScript payload. This can lead to full compromise of the affected process and potentially the host system. The backdoor is stealthy due to silent error handling and obfuscated URL, increasing the risk of unnoticed exploitation.
Mitigation Recommendations
No official patch or remediation is currently available for this malicious package. Users should immediately remove 'db-dx-connector' versions 1.0.0 through 1.0.3 from their projects and replace it with the legitimate 'dx-db-connector' package from the official source. Avoid calling the 'queryDBConnect' method if the package is present. Monitor dependency sources carefully to prevent installation of similarly named malicious packages.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-5463
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a3ef78d27e9c79719ff4982
Added to database: 06/26/2026, 22:05:01 UTC
Last enriched: 06/26/2026, 22:16:16 UTC
Last updated: 07/22/2026, 19:55:20 UTC
Views: 8
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.