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

目标: 1000 元 · 已筹: 1359 元

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

prettier_v2

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

Summary

Malicious code in prettier_v2 (npm)

凭据/密钥窃取文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
2
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmprettier_v2*
npmprettier_v23.8.5
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-5846","published":"2026-06-15T23:45:43Z","modified":"2026-09-01T11:20:29.154329088Z","aliases":["GHSA-cmfj-34j9-8w66"],"summary":"Malicious code in prettier_v2 (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (52d6c46e6d7e7ba0269dbb3d9725b5943d1b4b94ac2587a5738983cb93d8e1cf)\nPackage name 'prettier_v2' closely resembles the widely-used 'prettier' formatter package, raising typosquat concerns. The file lib/mirror.js contains a Buffer.from(..., 'base64').toString('utf8') decode pattern, which is commonly used to hide payload strings or code. Without confirmation of how the decoded content is used (data vs. eval/exec), intent cannot be conclusively determined, but the combination of a confusable package name and obfuscated string handling warrants human review before installation.\n\n## Source: ghsa-malware (b0da6eb947f9a9046563fe43e0b5064d7dc2a75e019425a564276d44d39bc263)\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":"prettier_v2","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["3.8.5"],"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":"lib/mirror.js","sha256":"a0cd29f9351ff2aabb84aeb0389feb65ca4e893d890bec4ed934c425a0bb0f70","tlsh":"8331534d32f221a05577a5dcbb4bec2fb68740027249cac4f64c92d15fd203881a7bdd"}]}}}],"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-cmfj-34j9-8w66"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/prettier_v2/v/3.8.5"}],"database_specific":{"malicious-packages-origins":[{"id":"GHSA-cmfj-34j9-8w66","import_time":"2026-06-15T23:52:17.798474426Z","modified_time":"2026-06-15T23:45:43Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"b0da6eb947f9a9046563fe43e0b5064d7dc2a75e019425a564276d44d39bc263","source":"ghsa-malware"},{"id":"IN-MAL-2026-009432","import_time":"2026-07-09T22:02:30.983358398Z","modified_time":"2026-07-09T21:55:03Z","sha256":"52d6c46e6d7e7ba0269dbb3d9725b5943d1b4b94ac2587a5738983cb93d8e1cf","source":"amazon-inspector","versions":["3.8.5"]},{"id":"RLMA-2026-05597","import_time":"2026-07-20T13:14:50.097517966Z","modified_time":"2026-07-20T10:54:39Z","sha256":"34e10e35ed57d7d7e1adc4c93dbf2c530d5d78261f9b9a0bfab5f2e831622d33","source":"reversing-labs","versions":["3.8.5"]},{"id":"RLUA-2026-06391","import_time":"2026-09-01T11:18:17.379444362Z","modified_time":"2026-08-24T17:04:57Z","sha256":"a3cbe98002d04b6526c2e3db57fee67e738d9e37a17cee6fd47af93f543cc9de","source":"reversing-labs"}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"name":"ReversingLabs","contact":["https://www.reversinglabs.com"],"type":"FINDER"}]}

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