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

目标: 1000 元 · 已筹: 1359 元

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

leo-cache

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

Summary

Malicious code in leo-cache (npm)

凭据/密钥窃取远程访问后门安装阶段执行文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
404
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmleo-cache1.0.2
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-06-25T16:10:42Z","published":"2026-06-24T23:04:55Z","schema_version":"1.7.4","id":"MAL-2026-6419","aliases":["GHSA-r5pg-rp25-j3m3"],"summary":"Malicious code in leo-cache (npm)","details":"The `leo-cache` npm package was compromised as part of the Miasma worm campaign targeting the LeoPlatform npm ecosystem. On June 24, 2026, 20 LeoPlatform packages were published within a 3-second window by a threat actor who had taken over the npm account `czirker` belonging to the LeoPlatform organization.\n\nThe malicious payload is triggered automatically during `npm install` via a `binding.gyp` file using node-gyp command expansion (`<!(node index.js > /dev/null 2>&1 && echo stub.c)`), which bypasses lifecycle script scanners. The replaced `index.js` (~5.2 MB, obfuscated with ROT-N + AES-128-GCM encryption) deploys a multi-stage worm with the following capabilities:\n\n- Credential theft: Targets npm, GitHub, PyPI, RubyGems, Kubernetes, HashiCorp Vault, AWS (IAM keys, Secrets Manager, IMDS), 1Password, JFrog Artifactory, and SSH keys.\n- AI tool targeting: Exfiltrates configuration files for Claude, Cursor, Gemini, and VS Code.\n- Worm propagation: Enumerates npm packages and auto-publishes version bumps to spread to other maintainers in the ecosystem.\n- GitHub persistence: Creates orphan `snapshot-<hex>` branches with fake \"Dependabot Updates\" workflows to maintain access after initial compromise.\n\nAny system that installed this version should be considered fully compromised. Rotate all secrets immediately from a separate, clean machine. See the linked SafeDep report for full payload analysis, indicators of compromise, and remediation guidance.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (b4e18f4565cc6df3a4011a9e35edaa348d84f36a6e1b3e8816748baec5ef567a)\nThe package ships a binding.gyp at the package root that uses GYP command-expansion syntax (`<!(...)`) at line 6 within the targets/sources fields. npm implicitly runs `node-gyp rebuild` whenever a binding.gyp is present (even with no declared install/postinstall script), and GYP evaluates `<!(...)` as a shell command during its configure step. This causes the embedded command to execute automatically on `npm install`, functionally equivalent to a lifecycle hook running arbitrary shell. This pattern is a known install-time code execution vector used to disguise execution as a native-addon build configuration.\n\n## Source: ghsa-malware (091ba3c8732f172178ed33d68af68c34ad6c6bf1b2eabfe128f656f627c47837)\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":"leo-cache"},"versions":["1.0.2"],"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":"binding.gyp","sha256":"32d1bc728d8e504952083a6adc488c309a401c7df4dc8f47b382ce32e4aebe21","tlsh":"48c08c3ca9380d1029d958285168d402a4b142a3494e2a81fade60284fa840b2898bad"}],"package_integrity":[{"filename":"leo-cache-1.0.2.tgz","hashes":{"sha1":"e973173fb757d2dab9c6424b440dd9f7cbe4f14a","sha512_sri":"sha512-WdKiKf0IsjPEeNBJ0Kd7t87UQfVrF0ERR2P6KXEpxa7ey3Du9Tb+8oTIeac/cJdOn4CfAfYxoqXVb2Zb0wL6hQ=="}}]}}}],"references":[{"type":"ARTICLE","url":"https://safedep.io/miasma-worm-hits-leoplatform-20-npm-packages/"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/leo-cache/v/1.0.2"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-r5pg-rp25-j3m3"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]},{"name":"SafeDep","type":"FINDER","contact":["https://safedep.io"]}],"database_specific":{"iocs":{"urls":["https://safedep.io/miasma-worm-hits-leoplatform-20-npm-packages/"]},"malicious-packages-origins":[{"source":"amazon-inspector","sha256":"b4e18f4565cc6df3a4011a9e35edaa348d84f36a6e1b3e8816748baec5ef567a","import_time":"2026-06-25T07:47:50.568018122Z","id":"IN-MAL-2026-007467","modified_time":"2026-06-25T06:30:27Z","versions":["1.0.2"]},{"source":"ghsa-malware","sha256":"091ba3c8732f172178ed33d68af68c34ad6c6bf1b2eabfe128f656f627c47837","import_time":"2026-06-25T16:08:55.422187788Z","id":"GHSA-r5pg-rp25-j3m3","modified_time":"2026-06-25T15:20:18Z","versions":["1.0.2"]}]}}

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