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

目标: 1000 元 · 已筹: 1359 元

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

test-in-one

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

Summary

Malicious code in test-in-one (npm)

凭据/密钥窃取安装阶段执行
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
0
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmtest-in-one1.0.0
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-08-29T02:09:01Z","published":"2026-08-29T02:09:01Z","schema_version":"1.7.4","id":"MAL-2026-15562","summary":"Malicious code in test-in-one (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (4834c80d92d51ee12f73395ddc87c681baf4f911c6bbec54a9110cc55a9c4ae9)\nThe package declares a local file: dependency (`detector` at `file:.yalc/detector`) whose `postinstall` script (`src/scripts/check.js`) executes automatically on `npm install`. The script walks the installer's home directory, Desktop, Documents, Projects, and cwd to harvest desktop crypto-wallet directories, browser extension LevelDB stores (MetaMask, Phantom, and similar), `~/.ssh/*` private keys, `~/.aws/credentials`, `~/.git-credentials`, `.env*`, `.npmrc`/`.yarnrc`, and the full `process.env`. The collected files are tarred and POSTed to a hardcoded Telegram Bot API endpoint (`https://api.telegram.org/bot<redacted>/sendDocument`, chat_id 416517694). The script additionally contains npm worm scaffolding: after collecting an npm token it calls `whoami` against `registry.npmjs.org`, enumerates all packages owned by the maintainer via the registry search API, and for each package downloads the tarball, injects a postinstall hook, bumps the version, writes a `.npmrc` with the stolen token, and prepares publication (the final publish call is currently gated by `if (false)`, but token theft, maintainer enumeration, and the injector pipeline are live). Bundling the payload as a `file:` dependency causes npm to install and run its lifecycle hooks without a registry fetch, making the manifest itself the delivery vector.\n","affected":[{"package":{"ecosystem":"npm","name":"test-in-one"},"versions":["1.0.0"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":".yalc/detector/src/scripts/check.js","sha256":"74987bee7b6b9aff9dad9fe8ae929ba2b75c00243ae51791f3674049e739b2c8","tlsh":"28c2ea3645ff50504273f1ea9b1b60097618a4333218da887b5cc79c6fc67a882f3aad"},{"path":".yalc/detector/src/npmInjector/inject.js","sha256":"a266da243d9c833b529155b92656a43a7c50a8c5aecfc88280e09dca68ea5fdf","tlsh":"3771631369e3d07056376688d52bc0152e2e3907b208f898f78f8ba7cf6326592179bc"},{"path":"package.json","sha256":"eaea47c0bd1eb3fc1863016d3e436074de6ab7a9c42adb4f712fb567a7f8cc72","tlsh":"02e086308d646b7369ca11d54c774103a9711f5b0004ae1db2c3551d975d5b744bd36f"}],"package_integrity":[{"filename":"test-in-one-1.0.0.tgz","hashes":{"sha1":"229b17a4168dbe4fb1188d317b8a64a4bab00541","sha512_sri":"sha512-ddH/kSaSoHCItU2dehnmOJAiw3/M2VyYcv8/Cy5CkCgdiu0uDZJVUs+riJrbWqnZEE0O0SJe76uspq/Kah1TRg=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/test-in-one/v/1.0.0"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-019128","import_time":"2026-08-29T02:22:19.802528476Z","modified_time":"2026-08-29T02:09:01Z","sha256":"4834c80d92d51ee12f73395ddc87c681baf4f911c6bbec54a9110cc55a9c4ae9","source":"amazon-inspector","versions":["1.0.0"]}]}}

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