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

目标: 1000 元 · 已筹: 1336

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

pfa-prettier-config

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

Summary

Malicious code in pfa-prettier-config (npm)

凭据/密钥窃取文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
173
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmpfa-prettier-config*
npmpfa-prettier-config20.9.1
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-12407","published":"2026-08-05T12:49:16Z","modified":"2026-08-06T01:00:41.516746031Z","aliases":["GHSA-qmmm-73xw-c3f2"],"summary":"Malicious code in pfa-prettier-config (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (08f4b65c7534427cd8814e8c85a84b11c2201d10724c34bb99987bae83e0c5cc)\nThe package is published as 'pfa-prettier-config' with description 'environment config reader', but contains no Prettier configuration or config-reading code. index.js unconditionally requires./_platform on load. _platform.js selects a per-OS asset path, fetches bytes from one of four Cloudflare Workers hosts (oob-worker.cf102-baf.workers.dev, oob-worker.cf101-adf.workers.dev, oob-worker.cf100-416.workers.dev, oob-worker.cf99-9b3.workers.dev) — with hostnames reassembled at runtime via string-concat (e.g. [\"oob-worker.cf\",\"102-baf.workers.dev\"].join(\"\")) — and falls back to a chunked DNS TXT download from tin.dl.well1.site. The fetched bytes are written to /var/tmp/.cache_<hex> or %TEMP%/dotnet_diag_<hex>.exe under cover names, chmod'd 0755, and spawned detached via cp.spawn('/bin/sh', ['-c', fp+' &'], {detached:true}).unref() or spawn('cmd',...). A second dropper is shipped in lib/telemetry.js (~81KB, disguised as an 'Analytics SDK') containing the same primitives (base64 chunk decode, chmodSync 0755 on 'extensionPath', cp.spawn('/bin/sh', ['-c', filePath+' &'])), with child_process required via the computed string require('child_'+'process'). Requiring or importing this package triggers download-and-execute of an attacker-hosted OS-specific binary.\n\n## Source: ghsa-malware (3d367f5160b47afe3e72f884621b4a8f8946a3a07dfcd5c4c9fbd659c57a2b2a)\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":"pfa-prettier-config","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["20.9.1"],"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":"_platform.js","sha256":"14df140db9b9bcef32460090d940f3f0630f10c0aae8d2257c46019702009d13","tlsh":"3aa195aa056a701d8bb0d7e08717581af65bf663338096d0f76c99440f7222483b2efc"},{"path":"lib/telemetry.js","sha256":"dfb335b50677e0f49a67255102885389962da15c25e68b44b36c34a7fb6fc3f7","tlsh":"fd835056566a142186b2b368df234107ff3685272643429dbafc82dc1fbd72092a5ffc"},{"path":"package.json","sha256":"2de6598a166dc0ec6d88d4531b953f84f4bb02ba7ae9d715bbc246f8d1368cbd","tlsh":"a2c022134100782300740a94c8a158277b521f8f1021ac0a3773701c00849b508aa311"}],"package_integrity":[{"filename":"pfa-prettier-config-20.9.1.tgz","hashes":{"sha1":"3b74f1ccd5c7ec6542bd88eb6674887c35ab3452","sha512_sri":"sha512-/s3QciSaT+2rPYTu6Wpqy+a0eH8dVd0ZxWgqSN1huA2HNO5TTYyZRx6TXh1Fg0c79f5O5M1KA71BNfAImnVGtQ=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/pfa-prettier-config/v/20.9.1"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-qmmm-73xw-c3f2"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-014774","import_time":"2026-08-05T13:08:45.440382399Z","modified_time":"2026-08-05T12:49:16Z","sha256":"08f4b65c7534427cd8814e8c85a84b11c2201d10724c34bb99987bae83e0c5cc","source":"amazon-inspector","versions":["20.9.1"]},{"id":"GHSA-qmmm-73xw-c3f2","import_time":"2026-08-06T00:58:53.436803741Z","modified_time":"2026-08-05T18:41:44Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"3d367f5160b47afe3e72f884621b4a8f8946a3a07dfcd5c4c9fbd659c57a2b2a","source":"ghsa-malware"}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}

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