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

目标: 1000 元 · 已筹: 1359 元

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

chai-tracker

MAL-2026-13704
2026-09-23 03:32:20
OpenSSF Malicious Packages
该软件包被识别为恶意包。建议隔离受影响环境,并排查凭据泄露和异常网络连接。

Summary

Malicious code in chai-tracker (npm)

凭据/密钥窃取文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
433
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmchai-tracker*
npmchai-tracker1.1.0
npmchai-tracker1.1.1
npmchai-tracker1.1.2
npmchai-tracker1.1.3
npmchai-tracker1.2.1
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-13704","published":"2026-08-10T12:29:01Z","modified":"2026-09-23T03:32:19.570976778Z","aliases":["GHSA-xvr2-rmx5-mrv3"],"summary":"Malicious code in chai-tracker (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (d61869c26ad8015b88350d312fa37f5e18d536794ce5d8c46bf4239b2154b1a9)\nchai-tracker mimics chai-spies (matching name, README, and keywords) but declares peerDependencies on dbconnectify pinned to 'latest' and axios. The exported chai plugin function, invoked when a consumer calls chai.use(require('chai-tracker')), unconditionally calls a helper named assertConnection() placed between genuine Assertion.overwriteMethod definitions. Despite the name, assertConnection() performs no assertion — it spawns a detached child (spawn(process.execPath, ['-e', code], { stdio: 'ignore', detached: true })) whose inline code does require('dbconnectify') and calls new DxDatabaseConnector({}).queryDBConnect(). Because dbconnectify is a separately-published, unversioned ('latest') attacker-controlled package and the child is detached with stdio ignored, arbitrary code from that dependency executes on the installer's host at plugin load time with output suppressed. The cover-story naming and placement disguise the exec as part of chai method registration.\n\n## Source: ghsa-malware (3965805fe82177e90334183eb5812450007c24ba09ba6ff360d2a6bb8175502b)\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":{"name":"chai-tracker","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.2.1","1.1.0","1.1.1","1.1.2","1.1.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"},{"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":"lib/spy.js","sha256":"e31d0b8dc56858829800f14ed45b3e08be9b98bf98b1c4352e38a08342e667a3","tlsh":"9e92334922d371a0c6a3b37c0e2f64a8e023861f1099dd593dece2dc6f98e754695cf9"},{"path":"package.json","sha256":"cbbbfd737b6d94ddf658e65678de3192b2fbb8140d3bd0ea0f65d87adc16034b","tlsh":"51115964cb788d2315d861a8947a0197713589079e59fc1d73b3810c9f0d92f20fad6c"}],"package_integrity":[{"filename":"chai-tracker-1.2.1.tgz","hashes":{"sha1":"7f03147d555745361eafab8a7b4c370a0b020488","sha512_sri":"sha512-a2Vn/k7TSh6+L/CgKaLzeDwney7vQAukw+UPU85gzFz4dXUNbpxE2T7B/7eCjEOUjc61chBuD6+njWpn/sClow=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/chai-tracker/v/1.2.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/chai-tracker/v/1.1.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/chai-tracker/v/1.1.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/chai-tracker/v/1.1.2"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/chai-tracker/v/1.1.3"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-xvr2-rmx5-mrv3"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-017261","import_time":"2026-08-10T12:51:44.813391486Z","modified_time":"2026-08-10T12:29:01Z","sha256":"12a7bbd6d78534877f788d24df2bcc7b62ec10c5b56b2bd218d7cb25edb4b8ca","source":"amazon-inspector","versions":["1.2.1"]},{"id":"IN-MAL-2026-017263","import_time":"2026-08-10T12:51:44.894166099Z","modified_time":"2026-08-10T12:29:18Z","sha256":"3ab2d9f276d6fb4a594c7e8b395c390ce7d73828e4756214a008a7e981a64539","source":"amazon-inspector","versions":["1.1.0"]},{"id":"IN-MAL-2026-017265","import_time":"2026-08-10T12:51:44.996275021Z","modified_time":"2026-08-10T12:29:36Z","sha256":"86283c9d77d09bb74e1740b9e82054c894450ed060e09afc5aae14cc973e8660","source":"amazon-inspector","versions":["1.1.1"]},{"id":"IN-MAL-2026-017264","import_time":"2026-08-10T12:51:44.930572418Z","modified_time":"2026-08-10T12:29:27Z","sha256":"94d712ff478a98bdc7c5b7b2fb76a0c79fb85378ffc15741aa1e77688e515718","source":"amazon-inspector","versions":["1.1.2"]},{"id":"IN-MAL-2026-017262","import_time":"2026-08-10T12:51:44.849446509Z","modified_time":"2026-08-10T12:29:09Z","sha256":"d61869c26ad8015b88350d312fa37f5e18d536794ce5d8c46bf4239b2154b1a9","source":"amazon-inspector","versions":["1.1.3"]},{"id":"GHSA-xvr2-rmx5-mrv3","import_time":"2026-09-23T03:30:31.246329486Z","modified_time":"2026-09-23T02:50:51Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"3965805fe82177e90334183eb5812450007c24ba09ba6ff360d2a6bb8175502b","source":"ghsa-malware"}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}

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