目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%
← 返回恶意软件包
npm active

theta-sdk-js

MAL-2026-10135
2026-07-17 00:55:30
OpenSSF Malicious Packages
该软件包被识别为恶意包。建议隔离受影响环境,并排查凭据泄露和异常网络连接。

Summary

Malicious code in theta-sdk-js (npm)

凭据/密钥窃取安装阶段执行文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
22
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmtheta-sdk-js1.2.14
npmtheta-sdk-js1.2.15
npmtheta-sdk-js1.2.16
npmtheta-sdk-js1.2.17
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-17T00:55:30Z","published":"2026-07-10T16:15:18Z","schema_version":"1.7.4","id":"MAL-2026-10135","aliases":["GHSA-qj2r-27rj-cc82"],"summary":"Malicious code in theta-sdk-js (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (6967c021e95228b33b18be4489fea5d404720cbd21beb53dac8bf7ea4f4d54d1)\ntheta-sdk-js@1.2.15 ships src/decrypt.js and src/providers/BaseProvider.js which together implement a hidden execution channel. On module load, decrypt.js reads two encrypted blobs (rsa.db, des.db) from node_modules/tchain-api/apps/docs/app/, DES-decrypts them using the hardcoded password 'hydra' via crypto-js, and returns the plaintext. Top-level IIFEs in src/providers/BaseProvider.js spawn detached `node` child processes (`spawn('node', [], { detached: true, stdio: ['pipe','ignore','ignore'] })`), pipe the decrypted plaintext into stdin for execution, and call `unref()` so the child outlives the parent. The runtime dependency `tchain-api@^1.2.5` — declared in package.json — supplies the encrypted payload files, so `npm install theta-sdk-js` automatically stages the payload host. The distributed `dist/thetajs.cjs.js` (declared as `main`) is clean and does not contain this code; the dropper lives only in the src/ tree that is also shipped in the tarball, so consumers that import subpaths or use bundlers/tree-shakers that resolve src/index.js trigger the execution. Encrypting the payload in a sibling package with a hardcoded key, splitting the malicious code away from the declared entrypoint, and executing decoded plaintext in a detached child process are hallmarks of deliberate evasion, not legitimate SDK behavior.\n\n## Source: ghsa-malware (338e0faee2d79bfcc4530b55cd8f077902060f62d23dbea70fc263438fc95e04)\nAny 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.\n","affected":[{"package":{"ecosystem":"npm","name":"theta-sdk-js"},"versions":["1.2.16","1.2.15","1.2.14","1.2.17"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"dist/thetajs.cjs.js","sha256":"ead8f032b34ef870738e444ce7c1301077b51bb20a7daba1c12e041eb68ed9cf","tlsh":"ac63939d26e7a060815b70b56fdb94407129e01b68ccd82cbdac43958fd946c9bf2ff8"},{"path":"src/decrypt.js","sha256":"1cc20fa1a130d16b9fe04327e513ff8e284398367d84ecdaf3974c3d0258ca36","tlsh":"5b31c0841dda57a9cbf45be6a361c4138e7a10643916c7a4b0ddcbd53a848b88da2cdc"},{"path":"package.json","sha256":"2de8079101ca79dd069ee964f5cacb1989320447a322cc1679a6933ab5c62974","tlsh":"c231ef20de25ceb319c815a828694167b02598474c47fc7c33a10b4d8f4e27f31fabae"}],"package_integrity":[{"filename":"theta-sdk-js-1.2.16.tgz","hashes":{"sha1":"51d1500536b4afc42d94dca999111c1dd146b1c7","sha512_sri":"sha512-qh/MUVsuNZhTuhQOfGgX4f0n4EuX+PukZCU66uEpMIRKwLUZ7X13INWFQpeBUJYccWKvhHdSXVC0/YIbNUmZQQ=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/theta-sdk-js/v/1.2.16"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/theta-sdk-js/v/1.2.15"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/theta-sdk-js/v/1.2.14"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/theta-sdk-js/v/1.2.17"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-qj2r-27rj-cc82"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","sha256":"48d9dc8bff360e02b99abc0444b2ec316b266c7356e605aea830557a088cab98","import_time":"2026-07-10T16:19:43.940359254Z","id":"IN-MAL-2026-009636","modified_time":"2026-07-10T16:15:18Z","versions":["1.2.16"]},{"source":"amazon-inspector","sha256":"6967c021e95228b33b18be4489fea5d404720cbd21beb53dac8bf7ea4f4d54d1","import_time":"2026-07-10T16:19:44.176573801Z","id":"IN-MAL-2026-009638","modified_time":"2026-07-10T16:15:39Z","versions":["1.2.15"]},{"source":"amazon-inspector","sha256":"a34b7ee47f055b1a354af0ab7cac7bd711227f8c2ac6961db57bb86079ff18b8","import_time":"2026-07-10T16:19:44.070943101Z","id":"IN-MAL-2026-009637","modified_time":"2026-07-10T16:15:30Z","versions":["1.2.14"]},{"source":"amazon-inspector","sha256":"a8eef53649e3917a947322640676f3e4448391bba73e8095b249b78efee0e5c5","import_time":"2026-07-10T19:02:49.017525485Z","id":"IN-MAL-2026-009711","modified_time":"2026-07-10T18:46:40Z","versions":["1.2.17"]},{"source":"ghsa-malware","sha256":"338e0faee2d79bfcc4530b55cd8f077902060f62d23dbea70fc263438fc95e04","import_time":"2026-07-17T00:53:46.8098297Z","id":"GHSA-qj2r-27rj-cc82","modified_time":"2026-07-16T23:55:59Z","versions":["1.2.17","1.2.16","1.2.15","1.2.14"]}]}}

数据来源:OpenSSF Malicious Packages · Apache-2.0