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

目标: 1000 元 · 已筹: 1359 元

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

prettier-lint-lenz

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

Summary

Malicious code in prettier-lint-lenz (npm)

凭据/密钥窃取安装阶段执行文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
144
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmprettier-lint-lenz*
npmprettier-lint-lenz1.0.0
npmprettier-lint-lenz2.6.4
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-3769","published":"2026-05-14T19:25:15Z","modified":"2026-09-23T03:32:23.084309752Z","aliases":["GHSA-8558-w8j5-67wq"],"summary":"Malicious code in prettier-lint-lenz (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (28f7035dda69170600724a31f4b3543e02ac23c9153f3a62c35f2ee5264eef44)\nPackage impersonates the popular `prettier` formatter — README and description are copied verbatim from the real Prettier project, but the package ships no formatter code. Instead, `package.json` declares `\"postinstall\": \"node index.mjs\"`, which on Windows POSTs an install beacon to a hardcoded bare-IP C2 (`http://204.10.194.64:5000/api/nonce`), copies a bundled `prettier-lint/` directory to `%LOCALAPPDATA%\\prettier-lint`, and executes `ctll.mjs` from the deployed location. `ctll.mjs` writes a hidden VBScript runner and registers a Windows Scheduled Task named `CdllProtect` with a LogonTrigger (`schtasks /Create /XML`) that relaunches `cdll.mjs` via `wscript.exe //nologo` in a hidden window on every user logon, with 999 retries and no execution time limit. The deployed `cdll.mjs` polls the clipboard every ~250ms via `powershell.exe Get-Clipboard -Raw` and POSTs the raw clipboard text as JSON to the same hardcoded endpoint over plain HTTP on every change, exfiltrating passwords, 2FA codes, wallet addresses, and any copied text. All three components (install-time beacon, deployed worker, persistence) share the attacker-controlled endpoint `204.10.194.64:5000`.\n\n## Source: ghsa-malware (999f12054e9fb865c3b9176056498b16329b0406f230b1bf23f6a1384d8cd63b)\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-lint-lenz","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.0","2.6.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":"README.md","sha256":"f1f5a86cd0fd0f6a288882527830a9bbbd5851e3238c4d7426b7bbb496165cd1","tlsh":"3b61ddb385a5074c67c086d0dad93848ea1bbdefbec13548ece9c7327b441e9456718b"},{"path":"index.mjs","sha256":"75e96575895242a3370297d99314ec583140ef9fb9d99e5eee8ac047f6ee66f5","tlsh":"a53103e340b74f701bf255cabe1ed87712e701113649bc64bd6e4b389bda428960258d"},{"path":"prettier-lint/cdll.mjs","sha256":"36474b07d134b1cb0619bd374247861d4a213bc853f0f277112c5087f8b58036","tlsh":"1cb1a85a94fe0a36c3b330785b1fe05652679103374deda0b99c0a60bfa64398657acd"},{"path":"prettier-lint/ctll.mjs","sha256":"571bb394b72fd8d3efef691b06fd3ed66257373812caf229bb51ea6af3067bdb","tlsh":"4d81fa0b6892c7310ff232c4241ed95927bf01133a85e98077ec86b5afb706a82725c9"}],"package_integrity":[{"filename":"prettier-lint-lenz-1.0.0.tgz","hashes":{"sha1":"e4d96da8ce9384c4ff4e17e7b072423e4bd5ad56","sha512_sri":"sha512-YqVgAg9sGZXiYyHT+9bDrJZD+rdKBcfWyjxGoe0xhdmjQUJLAtBQX1OpR4afWuikwu0z3LyMF0oF0HNqEzoqhg=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/prettier-lint-lenz/v/1.0.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/prettier-lint-lenz/v/2.6.4"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-8558-w8j5-67wq"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-002706","import_time":"2026-05-15T07:37:17.487092762Z","modified_time":"2026-05-14T19:25:15Z","sha256":"28f7035dda69170600724a31f4b3543e02ac23c9153f3a62c35f2ee5264eef44","source":"amazon-inspector","versions":["1.0.0"]},{"id":"IN-MAL-2026-002707","import_time":"2026-05-15T07:37:17.579703965Z","modified_time":"2026-05-14T19:25:15Z","sha256":"81348c27286005b3399de72570527ed0afc1414830a74fae852229bcfda31e01","source":"amazon-inspector","versions":["2.6.4"]},{"id":"GHSA-8558-w8j5-67wq","import_time":"2026-09-23T03:30:31.197633548Z","modified_time":"2026-09-23T02:48:15Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"999f12054e9fb865c3b9176056498b16329b0406f230b1bf23f6a1384d8cd63b","source":"ghsa-malware"}]},"credits":[{"name":"Amazon Inspector","contact":["actran@amazon.com"],"type":"FINDER"}]}

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