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

目标: 1000 元 · 已筹: 1359 元

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

@cacheable/node-cache

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

Summary

Malicious code in @cacheable/node-cache (npm)

凭据/密钥窃取安装阶段执行文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
1,523,032
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npm@cacheable/node-cache3.1.2
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-11560","published":"2026-08-04T11:34:12Z","modified":"2026-08-05T08:24:50.853637052Z","aliases":["GHSA-7pv9-q9wh-jqc3"],"summary":"Malicious code in @cacheable/node-cache (npm)","details":"npm/@cacheable/node-cache version 3.1.2 is a trojanized release published on 2026-08-04 during the compromise of the npm/GitHub maintainer account behind the keyv and cacheable package families (user \"Jaredwray\"). Attackers pushed the malicious payload to the source repository and cut releases through GitHub Actions, so the poisoned versions reached npm with a valid, signed provenance attestation (provenance attests build integrity, not source integrity). Delivery is through the npm install lifecycle: the trojanized package.json adds a preinstall hook (`\"preinstall\": \"node setup.mjs\"`) that runs before any project code on a bare `npm install`, while the normal compiled output is left intact so the package still works after install. setup.mjs downloads a standalone Bun runtime and uses it to run a second stage (shipped as Math_Symbol.js, a heavily obfuscated ~728 KB Bun bundle, referenced at runtime as math_init.js). The stealer harvests credentials from cloud instance metadata (AWS IMDS at 169.254.169.254, ECS at 169.254.170.2, GCP, Azure), AWS/GCP/Azure keys, HashiCorp Vault tokens, Kubernetes service-account tokens, GitHub Actions OIDC and org/repo secrets, and npm tokens, with a TruffleHog-style regex sweep for further secrets and private keys. Using the stolen npm identity (including npm OIDC trusted publishing) it enumerates and republishes further packages the token can reach — which, for a maintainer controlling both keyv and cacheable, gave the worm a large blast radius. Stolen findings are exfiltrated to attacker-created GitHub repositories (descriptions reading \"Shai-Hulud: Here We Go Again\") and to destinations resolved over DNS, and autostart hooks are planted in the repository's .claude/ and .vscode/ configuration to run the loader when a developer or AI coding agent opens a clone. Treat any environment that installed this version (with install scripts enabled) as fully compromised and rotate every reachable credential. Part of the August 2026 npm worm that poisoned 400+ packages across many organizations.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (7420630ff0cdf7a9cbf7834bcb2d87d5d413a773bc6c5d492cd749b4998be37d)\npackage.json declares preinstall `node setup.mjs`. setup.mjs is heavily obfuscated with an RC4/base64 string-array decoder and, on `npm install`, downloads a Bun runtime archive from GitHub releases matching the detected platform (linux/darwin/win32 × x64/arm64, including musl-baseline), extracts it (unzip on POSIX; PowerShell Expand-Archive with `-ExecutionPolicy Bypass` on Windows), chmods the binary +x, and invokes it against a 727KB obfuscated Bun-CJS bundle shipped in the tarball as `Math_Symbol.js`. The advertised package purpose (an in-memory cache library) does not require a Bun runtime, the payload file is not referenced from dist/exports, and its contents are unreadable to Node-based inspection because they only execute under the Bun runtime fetched at install time. The alternate-runtime dropper pattern executes attacker-controlled code on every installer's machine during `npm install`.\n\n## Source: ghsa-malware (92314afe4c3865622168c2b31ff12571d4820fac8092147803caba6b228335bc)\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":"@cacheable/node-cache","ecosystem":"npm"},"versions":["3.1.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"}],"indicators":{"evidence_files":[{"path":"setup.mjs","sha256":"54dc7ea54a1317cca0e890a2770630cf7fa6c97813e0cb9d2caa93012b350668","tlsh":"22d2e98e35aa70e2526331b37c7791a5f97facc077c84414f998ac5afd6c22cc18669c"}],"package_integrity":[{"filename":"node-cache-3.1.2.tgz","hashes":{"sha1":"774fa6073392119df9e9914cdf0e6fe325442ef5","sha512_sri":"sha512-6SSfPUut1aISMKiuDdcJ2aA6J/IlTM/95HLtycCR3iVGApFK337bIUAtRF2uNf2Itqaq+vQQb3Yex+xFTidJbg=="}}]}}}],"references":[{"type":"WEB","url":"https://socket.dev/blog/popular-npm-packages-in-the-keyv-and-cacheable-namespaces-compromised-in-active-supply-chain"},{"type":"WEB","url":"https://www.aikido.dev/blog/keyv-and-friends-compromised-in-npm-supply-chain-attack"},{"type":"WEB","url":"https://safedep.io/keyv-npm-supply-chain-compromise/"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@cacheable/node-cache"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-7pv9-q9wh-jqc3"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@cacheable/node-cache/v/3.1.2"}],"database_specific":{"iocs":{"files":[{"note":"Stage 1 loader added to the package tarball and run via the preinstall script 'node setup.mjs'. Downloads a standalone Bun runtime and executes the second stage under it.","paths":["setup.mjs"],"source":"PACKAGE_ARCHIVE"},{"note":"Stage 2 payload: byte-identical, heavily obfuscated ~728 KB Bun-bundle credential stealer, shipped in the tarball as Math_Symbol.js and executed at runtime as math_init.js.","paths":["Math_Symbol.js","math_init.js"],"source":"PACKAGE_ARCHIVE"}]},"malicious-packages-origins":[{"id":"GHSA-7pv9-q9wh-jqc3","import_time":"2026-08-05T00:10:17.964292808Z","modified_time":"2026-08-04T11:34:12Z","sha256":"92314afe4c3865622168c2b31ff12571d4820fac8092147803caba6b228335bc","source":"ghsa-malware","versions":["3.1.2"]},{"id":"IN-MAL-2026-014227","import_time":"2026-08-05T08:22:37.786819769Z","modified_time":"2026-08-05T08:19:46Z","sha256":"7420630ff0cdf7a9cbf7834bcb2d87d5d413a773bc6c5d492cd749b4998be37d","source":"amazon-inspector","versions":["3.1.2"]}]},"credits":[{"name":"Aikido Security","contact":["https://www.aikido.dev"],"type":"FINDER"},{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"name":"SafeDep","contact":["https://safedep.io"],"type":"FINDER"},{"name":"Socket Threat Research Team","contact":["https://socket.dev"],"type":"FINDER"}]}

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