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

目标: 1000 元 · 已筹: 1359 元

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

btd-smart

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

Summary

Malicious code in btd-smart (npm)

凭据/密钥窃取
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
2
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmbtd-smart1.0.2
npmbtd-smart1.0.3
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-06T18:55:50Z","published":"2026-05-19T18:58:59Z","schema_version":"1.7.4","id":"MAL-2026-4501","aliases":["GHSA-m4m6-q4p8-3vjv"],"summary":"Malicious code in btd-smart (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (3ad22b27351879a89349a1232ee5abb46bc589399ea710b9769526a8080b3199)\nThe package presents itself as a clone of juliangruber/balanced-match (stolen author identity 'Julian Gruber <mail@juliangruber.com>', verbatim README, identical API renamed btdSmart, placeholder homepage 'github.com/your-org/btd-smart'). Appended to the legitimate code in index.js is an obfuscated block that runs unconditionally when the module is required. A custom string-shuffle decoder reconstructs the identifier 'constructor' (and other strings) without any literal occurrences in the file, retrieves the Function constructor from a string prototype, builds a function from a decoded source body, and invokes it. Before invocation, the code stashes `require` and `module` onto `global` under decoder-produced keys so the Function-built code — which otherwise has no closure scope — gains filesystem, network, and process capabilities. The payload body is opaque (deterministic numerical shuffle with 0x7F-based escape tricks across two nested decoders), executes on every `require('btd-smart')`, and the legitimate balanced-match code above it has no obfuscation, confirming the appended block is purposefully hidden. Combined signals — typosquat with stolen identity, custom obfuscator, dynamic Function eval of a decoded blob at module load, deliberate global-smuggling of require/module — match the documented active-attack shape; no legitimate brace-matching utility needs any of these mechanisms.\n\n## Source: ghsa-malware (8edce8a8e04e183f3bd29cb37d2f3916debf1ebd05c0cbe50fb5f1920f2fa932)\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":"btd-smart"},"versions":["1.0.2","1.0.3"],"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"}],"indicators":{"evidence_files":[{"path":"index.js","sha256":"d8bd60b2a63b9ee8f6172c79cb5914498e21607b1d31e38e2f1edade76608e16","tlsh":"c8125b840bc658e71233a9b84dcf4c05b62a6412322cf944ba6ef4905fd4e2d57faed8"},{"path":"package.json","sha256":"bb473daeb0a8fbc93755f3103833c9864d442829859bb91f6d17551ace145701","tlsh":"00110329c1734c2706c42a91acae1293be11da174d59bc0ef38e010c8f4ea6f22fd75e"}],"package_integrity":[{"filename":"btd-smart-1.0.2.tgz","hashes":{"sha1":"0318b76aaceeccf56e5a50a946324ca17699ca60","sha512_sri":"sha512-aPBHoL2A7LOh4PGCoVscTDXXXvz+R1mytr+DwBaGLxv+ZBWU9RBqdG4TlXCl1pl2T0XsuiPdKjDOAJ7z5i3rKQ=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/btd-smart/v/1.0.2"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/btd-smart/v/1.0.3"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-m4m6-q4p8-3vjv"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["actran@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","sha256":"3ad22b27351879a89349a1232ee5abb46bc589399ea710b9769526a8080b3199","import_time":"2026-05-26T05:50:18.572440252Z","id":"IN-MAL-2026-003259","modified_time":"2026-05-19T19:12:27Z","versions":["1.0.2"]},{"source":"amazon-inspector","sha256":"f99fec295e7e47a66efd1ddfef051e13f25e9139473356d8a79c1c1d612e2887","import_time":"2026-05-26T05:50:17.604544963Z","id":"IN-MAL-2026-003250","modified_time":"2026-05-19T18:58:59Z","versions":["1.0.3"]},{"source":"ghsa-malware","sha256":"8edce8a8e04e183f3bd29cb37d2f3916debf1ebd05c0cbe50fb5f1920f2fa932","import_time":"2026-07-06T18:54:03.604751748Z","id":"GHSA-m4m6-q4p8-3vjv","modified_time":"2026-07-06T18:50:56Z","versions":["1.0.3","1.0.2"]}]}}

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