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

目标: 1000 元 · 已筹: 1359 元

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

marked-prettier

MAL-2026-10143
2026-07-13 04:45:04
OpenSSF Malicious Packages
该软件包被识别为恶意包。建议隔离受影响环境,并排查凭据泄露和异常网络连接。

Summary

Malicious code in marked-prettier (npm)

凭据/密钥窃取安装阶段执行文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
3
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmmarked-prettier*
npmmarked-prettier1.0.4
npmmarked-prettier1.0.5
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-13T04:45:04Z","published":"2026-07-10T16:05:17Z","schema_version":"1.7.4","id":"MAL-2026-10143","aliases":["GHSA-hwmr-cmgq-wr7x"],"summary":"Malicious code in marked-prettier (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (8bfc3b729c08e0882fe0f653f436c2b7e1fdae0379748c12e0f9266f6c69c963)\nThe postinstall script scripts/install-check.cjs fetches a JSON config from https://trabalhos-flax.vercel.app/config/clob-math.json (read from package.json 'homepage'), downloads a tgz from a URL contained in that config, extracts it to.peer/, runs `npm install` inside the extracted directory, and then require()s the resulting peer-math.js module and invokes syncSession() on it. There is no hash or signature verification and the remote endpoint is mutable, so whoever controls that domain gains arbitrary code execution on any machine that runs `npm install marked-prettier`. The package name resembles the popular `marked` and `prettier` packages, and the README advertises an 'ANSI helpers for bot logs' API (tag, money, box, kv, stripAnsi) that does not exist in the shipped code — the actual index.js is an unrelated Kelly-stake helper. The dropper uses innocuous names ('peer sync', 'PSM_PEER_URL', 'peer-math.js', 'syncSession') and its error handler logs '[eslint-jest] install check skipped', impersonating a third unrelated package. The layered name/README/log-prefix deception around a mutable-URL install-time dropper is a deliberate supply-chain attack, not a misconfiguration.\n\n## Source: ghsa-malware (2f917fbc4322a166d338c424769218e664f0cfa9d726062a45d896490ca73079)\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":"marked-prettier"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.5","1.0.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":"scripts/install-check.cjs","sha256":"fb373dbfa97c82c8863e21b37218d7e689cd7fa1b407eb586209e514d0980f06","tlsh":"1a91459519a2727346b1ebb8c722902dfe2340233521c360f6de96952fb72a4c352dec"},{"path":"package.json","sha256":"779d993a4651ad4af31d0f6478bf5f5f726080843f0868dfd8985e9f1fe1b207","tlsh":"74f04637de805e3328b88a695e291605f0654b9f22709c07b0bba04c4fb22a2085b73a"}]}}}],"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-hwmr-cmgq-wr7x"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/marked-prettier/v/1.0.5"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/marked-prettier/v/1.0.4"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"source":"ghsa-malware","sha256":"2f917fbc4322a166d338c424769218e664f0cfa9d726062a45d896490ca73079","import_time":"2026-07-10T16:54:13.252091337Z","id":"GHSA-hwmr-cmgq-wr7x","modified_time":"2026-07-10T16:05:22Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]},{"source":"amazon-inspector","sha256":"8bfc3b729c08e0882fe0f653f436c2b7e1fdae0379748c12e0f9266f6c69c963","import_time":"2026-07-13T04:43:13.25969898Z","id":"IN-MAL-2026-009795","modified_time":"2026-07-13T04:28:04Z","versions":["1.0.5"]},{"source":"amazon-inspector","sha256":"9a5a80c37e5fe4e4f67d68ac748076d1b88a3abd5dbb6ac10591f20644a55567","import_time":"2026-07-13T04:43:13.141199032Z","id":"IN-MAL-2026-009794","modified_time":"2026-07-13T04:27:53Z","versions":["1.0.4"]}]}}

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