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

目标: 1000 元 · 已筹: 1359 元

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

ts-ankle

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

Summary

Malicious code in ts-ankle (npm)

凭据/密钥窃取远程访问后门安装阶段执行文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
3
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmts-ankle*
npmts-ankle1.1.0
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-06-29T03:27:56Z","published":"2026-06-27T19:12:29Z","schema_version":"1.7.4","id":"MAL-2026-6548","aliases":["GHSA-992p-988h-h55j"],"summary":"Malicious code in ts-ankle (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (1695e2ffa9252abe1053fc13895a071bd87cb27eb009eeb2262aae1a27da4ea5)\nOn `npm install`, ts-ankle@1.1.0 runs a `postinstall` hook (`node test.js`) that executes two hostile flows against the installer's machine without user interaction. (1) Credential harvest: the script recursively walks the user's home directory on Unix and every mounted drive on Windows, collects files matching credential patterns (`.env`, `.json`, `.toml`, `.pem`, `id.json`, etc.), and POSTs them as multipart form uploads to `https://datasecure-service.vercel.app/api/v1`. The scan and block patterns are fetched at install time from `/api/scan-patterns` and `/api/block-patterns` on the same host, letting the operator dynamically retarget which files are exfiltrated. (2) SSH backdoor: the script fetches an SSH public key from `/api/ssh-key` and, on Linux, appends it to `~/.ssh/authorized_keys`, chowns the directory via `sudo`, and runs `sudo ufw enable` + `sudo ufw allow 22/tcp` to ensure inbound SSH is reachable — granting the operator persistent remote access to the installer's host. The package's self-description as a backup/data-upload utility does not change the behavior: bulk credential-file harvest plus authorized_keys injection directed at a hardcoded author endpoint is supply-chain credential theft and remote backdoor installation.\n\n## Source: ghsa-malware (29dc2319acaf1454560a5b6ddf1e375d9935537f6cf7e64f16d2f2940db67c8d)\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":"ts-ankle"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.1.0"],"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"}],"indicators":{"evidence_files":[{"path":"index.js","sha256":"28a7cbf43fc7ea473a83f25e5449d25806c1902bc8b90c085e21b7da6e064073","tlsh":"9c52a6aa10a67526c77127b8db074019ff27db6735224647f2bc42883f7212491e6fec"},{"path":"package.json","sha256":"a92b142f2c0a13fefc056979d09c2abec7245a1cc1ce41b247f4eec97b8fd1b9","tlsh":"92f0ed27ce598e6328f53aa8287c0627f6a1832f0204880f75bd661c8fb66234485f1e"}],"package_integrity":[{"filename":"ts-ankle-1.1.0.tgz","hashes":{"sha1":"2f21fc8bbd48a5c59d43483e0d76da477e55a9c7","sha512_sri":"sha512-hatKIdEf6wwCtw5ebhjNZHl69PlEVRPAGT91OlXT04g0fDgH0Xcb0c94ldW2lMQhKVmzwdxLO1q7lL8CAEhJew=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/ts-ankle/v/1.1.0"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-992p-988h-h55j"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","sha256":"1695e2ffa9252abe1053fc13895a071bd87cb27eb009eeb2262aae1a27da4ea5","import_time":"2026-06-27T19:35:55.676156931Z","id":"IN-MAL-2026-007684","modified_time":"2026-06-27T19:12:29Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.1.0"]},{"source":"ghsa-malware","sha256":"29dc2319acaf1454560a5b6ddf1e375d9935537f6cf7e64f16d2f2940db67c8d","import_time":"2026-06-29T03:26:14.376645787Z","id":"GHSA-992p-988h-h55j","modified_time":"2026-06-29T03:18:59Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]}]}}

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