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

目标: 1000 元 · 已筹: 1359 元

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

prettier_v1

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

Summary

Malicious code in prettier_v1 (npm)

凭据/密钥窃取
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
2
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmprettier_v1*
npmprettier_v13.8.4
npmprettier_v13.8.5
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-5845","published":"2026-06-15T23:45:43Z","modified":"2026-09-01T11:20:29.152904194Z","aliases":["GHSA-q835-5j9v-22qg"],"summary":"Malicious code in prettier_v1 (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (1ae1d77d25db3af85295c48a446f6c0f2f65252ea2483c45ce81df12c75b1fcb)\nPackage name 'prettier_v1' closely resembles the widely-used 'prettier' formatter package, a classic typosquat naming pattern. The file lib/mirror.js contains a Buffer.from(..., 'base64').toString('utf8') decode primitive at line 16, which is commonly used to obscure embedded payloads. Tracing of the decoded content and its downstream use (whether it is passed to eval/exec, written to disk, or executed) was not completed, so the actual installer-side impact has not been confirmed. The combination of a typosquat-shaped name plus a base64 decode in a file named 'mirror.js' warrants human review before this package is allowed into installer environments.\n\n## Source: ghsa-malware (ea8303f0cea5f415b8a0ba74e959d0501fcb3142ee9320fa50668674c578e4bb)\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_v1","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["3.8.5","3.8.4"],"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":"lib/mirror.js","sha256":"55e38173c851dac7e470e095d40ac11164f6b9cbcba04f3d88387e69f5566d70","tlsh":"0b412c8e24f6317055b3a5e8a71ba81bb19b8003321dcec5f64c82915fd203885a7ed9"}]}}}],"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-q835-5j9v-22qg"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/prettier_v1/v/3.8.5"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/prettier_v1/v/3.8.4"}],"database_specific":{"malicious-packages-origins":[{"id":"GHSA-q835-5j9v-22qg","import_time":"2026-06-15T23:52:17.805341687Z","modified_time":"2026-06-15T23:45:50Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"ea8303f0cea5f415b8a0ba74e959d0501fcb3142ee9320fa50668674c578e4bb","source":"ghsa-malware"},{"id":"IN-MAL-2026-008989","import_time":"2026-07-08T23:27:57.756115605Z","modified_time":"2026-07-08T23:02:33Z","sha256":"1ae1d77d25db3af85295c48a446f6c0f2f65252ea2483c45ce81df12c75b1fcb","source":"amazon-inspector","versions":["3.8.5"]},{"id":"IN-MAL-2026-009438","import_time":"2026-07-09T22:02:31.554659758Z","modified_time":"2026-07-09T21:55:49Z","sha256":"e007377ee649874106f24fb14c3bf26aa17187d815d9bbea64b87e6a02c10edf","source":"amazon-inspector","versions":["3.8.4"]},{"id":"RLMA-2026-05596","import_time":"2026-07-20T13:14:50.014368182Z","modified_time":"2026-07-20T10:54:38Z","sha256":"250db4bc59de3c3be8f6a8c9eb787cebbf59e29804bd6138b7cda43d287b9855","source":"reversing-labs","versions":["3.8.4","3.8.5"]},{"id":"RLUA-2026-06390","import_time":"2026-09-01T11:18:17.155112404Z","modified_time":"2026-08-24T17:04:57Z","sha256":"8ce94287169cb0abcc3baaaa30d24d480e0a244e3079062f59beb7ac1ad5ae9c","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