theta-sdk-js
JavaScript library for interacting with the Theta Blockchain
This report shows the evidence for theta-sdk-js@1.2.17. 4 of 5 known versions are blocked or flagged. The newest version, 0.0.1-security, is allowed. See all versions.
AI Security Review
scanned 3mo ago · by lpm-firewall-aiDirect source and published-entrypoint inspection confirms an import-triggered, encrypted staged payload executed by a detached Node subprocess. No lifecycle hook is needed for this concrete runtime arbitrary-code-execution chain.
Decision evidence
public snapshot- `package.json` exports `dist/thetajs.cjs.js` and `dist/thetajs.esm.js` as runtime entrypoints.
- `src/providers/BaseProvider.js` runs an async payload on module import.
- `src/decrypt.js` reads `node_modules/tchain-api/apps/docs/app/rsa.db` using `process.cwd()`.
- `src/decrypt.js` DES-decrypts that file with an embedded password.
- `dist/thetajs.cjs.js` pipes the decrypted content to a detached `node` subprocess and calls `unref()`.
- Child stdio is ignored, concealing payload output and errors.
- `package.json` defines no preinstall, install, or postinstall hook.
- Theta RPC/explorer URLs in `src/networks/index.js` are consistent with SDK functionality.
Source & flagged code
10 flagged · loading sourceSource spawns a local helper that fetches and dynamically executes remote code.
dist/thetajs.esm.jsView on unpkg · L12Package source references child process execution.
dist/thetajs.esm.jsView on unpkg · L12Source file is highly similar to a previously finalized malicious package; route for source-aware review.
Findings
Affected versions and remediation
This report applies to theta-sdk-js@1.2.17.
The versions list below shows the verdict for each recorded version.
- Avoid installing theta-sdk-js@1.2.17. Remove it from direct dependencies and check your lockfile for transitive copies.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
- If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.
Evidence last updated: .
Source advisory published: .
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.