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

目标: 1000 元 · 已筹: 1359 元

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

@asyncapi/specs

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

Summary

Malicious code in @asyncapi/specs (npm)

凭据/密钥窃取远程访问后门文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
3,127,278
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npm@asyncapi/specs6.10.1
npm@asyncapi/specs6.11.2
npm@asyncapi/specs6.11.2-alpha.1
npm@asyncapi/specs6.8.2
npm@asyncapi/specs6.8.3
npm@asyncapi/specs6.9.1
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-15T05:38:48Z","published":"2025-11-24T11:33:26Z","schema_version":"1.7.4","id":"MAL-2025-190643","aliases":["GHSA-5jj9-3vg7-7785"],"summary":"Malicious code in @asyncapi/specs (npm)","details":"@asyncapi/specs versions 6.11.2-alpha.1 and 6.11.2 were published as part of the \"Miasma RAT\" software supply-chain attack (campaign identifier \"miasma-train-p1\") that compromised several widely used @asyncapi npm packages on 2026-07-14. Unlike the whitespace-hiding technique used in the compromised generator packages, here the attacker prepended the malicious code directly to the top of index.js. When the package is installed, the injected code spawns a child process that downloads the Miasma RAT binary from IPFS (https://ipfs.io/ipfs/Qmet4fhsAaWMBUxNDfREHwgiyDeSWy4YSYs9wiKUW5jGyf), writes it to a platform-specific drop location, and executes it. Persistence is established by dropping a backdoor named sync.js (~/.local/share/NodeJS/sync.js on Linux, ~/Library/Application Support/NodeJS/sync.js on macOS, %LOCALAPPDATA%\\NodeJS\\sync.js on Windows). The Miasma RAT harvests browser credentials, SSH keys, npm tokens, GitHub CLI credentials, AWS secrets, and cryptocurrency wallets, and communicates with a command-and-control server at 85.137.53.71 (AS43641, Netherlands). The attacker also embedded an Ethereum smart-contract address (0x12c37A86a0Ed0beBe5d1d6a43E42f07860eAc710), suggesting on-chain command routing or exfiltration. The last known safe version is 6.11.1.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (3b9e99714f1fe7132e3c690ab23d255f689800dcb1234ebf1d6bf68c61f2d2ca)\nindex.js in @asyncapi/specs 6.11.2 contains a string-array-obfuscated payload (_0x-style decoder) that, whenever the module is required, spawns a detached node child process. The decoded logic fetches a file from the IPFS gateway URL https://ipfs.io/ipfs/Qmet4fhsAaWMBUxNDfREHwgiyDeSWy4YSYs9wiKUW5jGyf, writes it as sync.js under a platform-specific hidden directory (LOCALAPPDATA/NodeJS on Windows, ~/Library/Application Support/NodeJS on macOS, ~/.local/share/NodeJS on Linux), and executes it detached via node. The obfuscation hides the URL, target filename, and use of https, child_process, and fs APIs. A legitimate AsyncAPI JSON spec loader has no need for obfuscated code or remote code fetch-and-execute; the behavior is inconsistent with the package's advertised purpose and gives whoever controls the IPFS content full code execution on any machine that installs or loads this version.\n\n## Source: ghsa-malware (5715faf8c80acf7c963aac8c332a2cffed06a23ca9663a2fdcb6fd11be4325e9)\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\n## Source: google-open-source-security (938ab70c817e26ed594a554747f21aa339e5a01f3daf999dead6c94fd2289490)\nThis package was compromised by the Sha1-Hulud: The Second Coming NPM worm.\nThe malicious payload steals tokens and credentials and publishes them to\nGitHub. The worm will propogate itself to NPM packages the user owns and\nestablish persistence is a GitHub action.\nThe package may also destroy the user's home directory.\n","affected":[{"package":{"ecosystem":"npm","name":"@asyncapi/specs"},"versions":["6.8.3","6.9.1","6.8.2","6.10.1","6.11.2","6.11.2-alpha.1"],"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"},{"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":"index.js","sha256":"8351d251cf0b5a0bd82242deaa0a14e3e1394418d55c0f4259dac4303b79fc0c","tlsh":"19a164862ed5afc86396a6db22271281e0229c413edd887bf40cb1d8afd4315c5e5cf9"}],"package_integrity":[{"filename":"specs-6.11.2.tgz","hashes":{"sha1":"9b65b9f1bb27cef7b8a2b0327a47a539b8e473fb","sha512_sri":"sha512-7WDjdTdT1jVj+vHpyyvrbxHhnkswKhxdxmN5pE8oFaG9+01cl0OECcoj8fZgQiAvPuDq0st3HZsgJn9QMIkQZA=="}}]},"iocs":{"ips":["85.137.53.71"],"urls":["https://ipfs.io/ipfs/Qmet4fhsAaWMBUxNDfREHwgiyDeSWy4YSYs9wiKUW5jGyf"]}}}],"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-5jj9-3vg7-7785"},{"type":"WEB","url":"https://www.aikido.dev/blog/shai-hulud-strikes-again-hitting-zapier-ensdomains"},{"type":"WEB","url":"https://www.wiz.io/blog/shai-hulud-2-0-ongoing-supply-chain-attack"},{"type":"WEB","url":"https://www.stepsecurity.io/blog/sha1-hulud-the-second-coming-zapier-ens-domains-and-other-prominent-npm-packages-compromised"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@asyncapi/specs/v/6.11.2"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@asyncapi/specs/v/6.11.2-alpha.1"},{"type":"REPORT","url":"https://safedep.io/asyncapi-generator-supply-chain-attack-miasma-rat/"},{"type":"WEB","url":"https://github.com/asyncapi/generator/issues/2184"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["actran@amazon.com","inspector-research@amazon.com"]},{"name":"SafeDep","type":"FINDER","contact":["https://safedep.io"]}],"database_specific":{"malicious-packages-origins":[{"source":"ghsa-malware","sha256":"5715faf8c80acf7c963aac8c332a2cffed06a23ca9663a2fdcb6fd11be4325e9","import_time":"2025-11-24T12:25:35.392990307Z","id":"GHSA-5jj9-3vg7-7785","modified_time":"2025-11-24T11:36:17Z","versions":["6.8.3","6.9.1","6.8.2","6.10.1"]},{"source":"amazon-inspector","sha256":"46e1904e729f9b51f22f0c24624af6ce0bfa9e7a02a0968c15469cd5ba665c2f","import_time":"2025-11-24T16:07:34.340162504Z","modified_time":"2025-11-24T15:54:02Z","versions":["6.8.3","6.9.1","6.8.2","6.10.1"]},{"source":"amazon-inspector","sha256":"a7b05e7569027761c2ee32b0fa3f8d78a0246e62d32cb441512e6ef080bd4f7a","import_time":"2025-11-24T16:39:35.246986816Z","modified_time":"2025-11-24T16:31:47Z","versions":["6.10.1","6.8.2","6.9.1","6.8.3"]},{"source":"google-open-source-security","sha256":"938ab70c817e26ed594a554747f21aa339e5a01f3daf999dead6c94fd2289490","import_time":"2025-11-25T00:17:32.624237Z","modified_time":"2025-11-25T00:16:49Z","versions":["6.10.1","6.8.2","6.9.1","6.8.3"]},{"source":"ghsa-malware","sha256":"214f33af30b1712176c1d07c99ac731f5d15885bdfbc6265b280a040689a77bd","import_time":"2026-07-14T11:45:52.884980681Z","id":"GHSA-5jj9-3vg7-7785","modified_time":"2026-07-14T11:16:47Z","versions":["6.11.2","6.8.3","6.9.1","6.8.2","6.10.1"]},{"source":"amazon-inspector","sha256":"3b9e99714f1fe7132e3c690ab23d255f689800dcb1234ebf1d6bf68c61f2d2ca","import_time":"2026-07-14T13:35:49.192276103Z","id":"IN-MAL-2026-010499","modified_time":"2026-07-14T12:48:51Z","versions":["6.11.2"]},{"source":"amazon-inspector","sha256":"daaaaf86b1b768c1d4a63b294e284d8803598a82f10fe695c9c04a51b124da09","import_time":"2026-07-14T13:35:50.305664204Z","id":"IN-MAL-2026-010505","modified_time":"2026-07-14T12:59:55Z","versions":["6.11.2-alpha.1"]}]}}

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