Malicious code in theta-connector (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (f9ac14206b12d7cb0c180c49e65d91b99aa2f013c33147d7f1eff396da2c48a2) The package advertises itself as a MySQL connector but `index.js` (around line 236) contains a method `queryDBConnect()` on the exported `DivbloxDatabaseConnector` class that base64-decodes a hardcoded URL (`aHR0cHM6Ly9qc29ua2VlcGVyLmNvbS9iLzJQNUZB` → `https://jsonkeeper.com/b/2P5FA`, an anonymous, mutable JSON-paste host), fetches the `.data.content` field via `axios.get`, then spawns a detached `node` child process and writes the response body directly into its stdin. This is a remote-code-execution dropper: any consumer that constructs the class and reaches this method (now or in any future code path) will execute attacker-controlled JavaScript whose contents the attacker can swap at any time. Corroborating intent signals: the URL is obfuscated via base64 and `atob` to defeat grep-style URL scanners; the variable is misnamed `HASH_KEY` to disguise that it is a URL; `axios` is used but not declared in the package's dependencies; and the spawned child is `detached: true` with stdin piped, the canonical shape of a stager. ## Source: ghsa-malware (7c95cece679b4ee82a7441f2ed422c648507a603e1b94ddac32255998298b026) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
AI Analysis
Technical Summary
The 'theta-connector' npm package (version 1.0.0) masquerades as a MySQL connector but includes a method 'queryDBConnect()' that base64-decodes a hardcoded URL pointing to an anonymous JSON host. It fetches JavaScript code from this URL using axios and executes it by spawning a detached Node.js child process with the fetched code piped into its stdin. This design enables remote code execution controlled by an attacker who can change the payload at any time. The obfuscation of the URL and the use of a detached child process with piped stdin are strong indicators of malicious intent. Systems with this package installed should be considered fully compromised.
Potential Impact
Any system with the 'theta-connector' package version 1.0.0 installed and executing the vulnerable method is at risk of remote code execution by an attacker. This can lead to full system compromise, unauthorized access to secrets and keys, and persistent malicious control. The attacker can dynamically change the executed payload, making detection and remediation difficult. Removal of the package alone may not eliminate all malicious artifacts.
Mitigation Recommendations
There is no official patch or fix available for this malicious package. Immediate removal of the 'theta-connector' package version 1.0.0 is strongly recommended. All secrets, keys, and credentials stored on affected systems should be rotated from a secure, uncompromised environment. Given the potential full compromise, affected systems should be thoroughly audited and possibly rebuilt. Monitor for any suspicious child processes or network activity related to the package's behavior.
Malicious code in theta-connector (npm)
Description
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (f9ac14206b12d7cb0c180c49e65d91b99aa2f013c33147d7f1eff396da2c48a2) The package advertises itself as a MySQL connector but `index.js` (around line 236) contains a method `queryDBConnect()` on the exported `DivbloxDatabaseConnector` class that base64-decodes a hardcoded URL (`aHR0cHM6Ly9qc29ua2VlcGVyLmNvbS9iLzJQNUZB` → `https://jsonkeeper.com/b/2P5FA`, an anonymous, mutable JSON-paste host), fetches the `.data.content` field via `axios.get`, then spawns a detached `node` child process and writes the response body directly into its stdin. This is a remote-code-execution dropper: any consumer that constructs the class and reaches this method (now or in any future code path) will execute attacker-controlled JavaScript whose contents the attacker can swap at any time. Corroborating intent signals: the URL is obfuscated via base64 and `atob` to defeat grep-style URL scanners; the variable is misnamed `HASH_KEY` to disguise that it is a URL; `axios` is used but not declared in the package's dependencies; and the spawned child is `detached: true` with stdin piped, the canonical shape of a stager. ## Source: ghsa-malware (7c95cece679b4ee82a7441f2ed422c648507a603e1b94ddac32255998298b026) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
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 'theta-connector' npm package (version 1.0.0) masquerades as a MySQL connector but includes a method 'queryDBConnect()' that base64-decodes a hardcoded URL pointing to an anonymous JSON host. It fetches JavaScript code from this URL using axios and executes it by spawning a detached Node.js child process with the fetched code piped into its stdin. This design enables remote code execution controlled by an attacker who can change the payload at any time. The obfuscation of the URL and the use of a detached child process with piped stdin are strong indicators of malicious intent. Systems with this package installed should be considered fully compromised.
Potential Impact
Any system with the 'theta-connector' package version 1.0.0 installed and executing the vulnerable method is at risk of remote code execution by an attacker. This can lead to full system compromise, unauthorized access to secrets and keys, and persistent malicious control. The attacker can dynamically change the executed payload, making detection and remediation difficult. Removal of the package alone may not eliminate all malicious artifacts.
Mitigation Recommendations
There is no official patch or fix available for this malicious package. Immediate removal of the 'theta-connector' package version 1.0.0 is strongly recommended. All secrets, keys, and credentials stored on affected systems should be rotated from a secure, uncompromised environment. Given the potential full compromise, affected systems should be thoroughly audited and possibly rebuilt. Monitor for any suspicious child processes or network activity related to the package's behavior.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-5705
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-9vfq-xv95-fh28"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a4c341227e9c797195f7c85
Added to database: 07/06/2026, 23:02:42 UTC
Last enriched: 07/07/2026, 00:36:45 UTC
Last updated: 07/29/2026, 03:36:34 UTC
Views: 24
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.
External Links
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.