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

目标: 1000 元 · 已筹: 1359 元

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

@selfpentest/eslint-pentest-plugin

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

Summary

Malicious code in @selfpentest/eslint-pentest-plugin (npm)

凭据/密钥窃取文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
259
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npm@selfpentest/eslint-pentest-plugin1.0.0
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-09-29T22:12:19Z","published":"2026-09-29T22:12:19Z","schema_version":"1.7.4","id":"MAL-2026-17293","summary":"Malicious code in @selfpentest/eslint-pentest-plugin (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (f338876601180482b20a42fbd799b9d4e1b059bf7d733b5db448f7fc6d3455ff)\nPackage presents itself as an ESLint plugin but the exported plugin object is an empty shell. index.js unconditionally invokes a steal() routine at top level, so any require() of the package (including ESLint auto-loading the plugin) triggers the payload. The payload reads process.env.HOME and process.env.SECRET, reads the first 30 bytes of ~/.ssh/known_hosts via fs.readFileSync(path.join(os.homedir(), '/.ssh/known_hosts')), and issues an HTTP GET to http://localhost:1337/eslint with the collected values as URL query parameters. The package.json description and README state that the package 'pretends to be an eslint plugin but it steals secrets instead' and identify it as a supply-chain-attack demonstration. The exfiltration destination is loopback (127.0.0.1:1337), so bytes do not leave the host unless a local listener collects them, but the credential-read code path executes on every require of the package.\n","affected":[{"package":{"ecosystem":"npm","name":"@selfpentest/eslint-pentest-plugin"},"versions":["1.0.0"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"index.js","sha256":"4299593b6cc9e88ec41e682e468ea27d34804f5694ddec71d1c2cac2d38d8fa6","tlsh":"d8119e1650f65221829271a3771f290335bee6cb3a09ecb83bdcd7748f88b258152de9"},{"path":"package.json","sha256":"27512851e1461aa83ddba172f573737992f8ca9a033bcf31a15d1fc5875993b9","tlsh":"a7e068250613216301d0a5672c369177b255cf7f149dfd6c13f7222856cd2672079649"}],"package_integrity":[{"filename":"eslint-pentest-plugin-1.0.0.tgz","hashes":{"sha1":"3a4d96643a1db041909f9cae37d7ad1623448d56","sha512_sri":"sha512-5/SiGKSa1+H/uugWShhf0cvOMXcXFvKPZFm5yGpmgB9Cl4Ey8hJFH7hRmBcQ8sNcp0TdQ6b9/8mqvg10UkaFeQ=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@selfpentest/eslint-pentest-plugin/v/1.0.0"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-020686","import_time":"2026-09-29T22:18:23.860374327Z","modified_time":"2026-09-29T22:12:19Z","sha256":"f338876601180482b20a42fbd799b9d4e1b059bf7d733b5db448f7fc6d3455ff","source":"amazon-inspector","versions":["1.0.0"]}]}}

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