chain-sdk-js
JavaScript library for interacting with the Theta Blockchain
This report shows the evidence for chain-sdk-js@1.0.6. 5 of 6 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-aiPublished Node entrypoints contain concrete import-time staged code execution that is absent from the source tree. This is malicious behavior, independent of the package's legitimate blockchain RPC functionality.
Decision evidence
public snapshot- `dist/chain-sdk-js.cjs.js` reads an encrypted `rsa.db` from `node_modules/tchain-api` during import.
- `dist/chain-sdk-js.cjs.js` DES-decrypts that data and pipes it to detached `node`.
- `dist/chain-sdk-js.esm.js` imports encrypted keys from `thedata` and executes two detached Node payloads at module load.
- `dist/chain-sdk-js.umd.js` contains the same import-time file-read/decrypt/spawn sequence.
- `src/index.js` and `rollup.config.js` contain no corresponding crypto, filesystem, or child-process code.
- `package.json` exposes the affected CJS/ESM bundles as package entrypoints.
- `package.json` has no npm lifecycle hooks.
- `src/providers/HttpProvider.js` network requests are normal user-invoked blockchain RPC calls.
- No AI-agent configuration mutation is present.
Source & flagged code
9 flagged · loading sourceSource spawns a local helper that fetches and dynamically executes remote code.
dist/chain-sdk-js.cjs.jsView on unpkg · L18A package entrypoint or install-time lifecycle script reaches a source file with blocking dangerous behavior.
dist/chain-sdk-js.cjs.jsView on unpkg · L18Findings
Affected versions and remediation
This report applies to chain-sdk-js@1.0.6.
The versions list below shows the verdict for each recorded version.
- Avoid installing chain-sdk-js@1.0.6. 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.