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

目标: 1000 元 · 已筹: 1359 元

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

@asyncapi/generator-helpers

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

Summary

Malicious code in @asyncapi/generator-helpers (npm)

凭据/密钥窃取远程访问后门文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
57,682
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npm@asyncapi/generator-helpers0.2.1
npm@asyncapi/generator-helpers0.2.2
npm@asyncapi/generator-helpers1.1.1
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-15T05:38:47Z","published":"2025-11-24T12:50:55Z","schema_version":"1.7.4","id":"MAL-2025-190657","aliases":["GHSA-gw3q-hxvp-x7vm"],"summary":"Malicious code in @asyncapi/generator-helpers (npm)","details":"@asyncapi/generator-helpers version 1.1.1 was 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. The malicious code was injected using whitespace hiding: it is appended to a legitimate source file after hundreds of trailing spaces on the file's final line, so it is not visible in a casual diff. When the package is installed, the injected code spawns a child process that downloads the Miasma RAT binary from IPFS (https://ipfs.io/ipfs/QmQobZSp1wRPrpSEQ56qnyq7ecZh5Bg5k1fnjt4SUwwHb9), 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 1.1.0.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (f5d32214c0ccb2ee8f88d55a002ca8bd58405c001051f75646cb765588ccfa9c)\nsrc/utils.js — reached via the package main src/index.js — contains an obfuscator.io IIFE that runs at module load. Alongside the legitimate helpers (getInfo, getTitle, toSnakeCase, toCamelCase), the file ships a rotated string array (_0x2d89), a custom lowercase-first base64 decoder (_0x1dd2), and a ~4KB opaque literal that decodes at runtime to further JavaScript. The top-level main() then invokes child_process.spawn on the Node runtime with '-e' and the decoded string, using {detached: true, stdio: 'ignore', windowsHide: true} so the child process is disowned and hidden. Because this fires unconditionally on require('@asyncapi/generator-helpers'), any consumer or generator template that loads this version executes attacker-controlled JavaScript in a detached Node process on the host. The behavior — obfuscator.io string-array plus custom-base64 blob reconstructed into node -e arguments — is not consistent with the package's documented purpose as an AsyncAPI generator helper library and matches a trojanized-release supply-chain compromise.\n\n## Source: ghsa-malware (6c55b498d8766225c87bc5781438ffe36f84333b8bb731069bb0bac726cb6b3e)\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 (eaf9598bd0d64189828293050c590d3885311537cef7b91153a0df8cef9489f4)\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/generator-helpers"},"versions":["0.2.2","0.2.1","1.1.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"}],"indicators":{"evidence_files":[{"path":"src/utils.js","sha256":"6e78713b75bd34828d49896176627f7face7aa9036cd874f2e02d9f23a9a9c71","tlsh":"e7223b0037a305a3330a69f6709bc425e398d217754d6e863b4e23a9ff99665cbf0936"}],"package_integrity":[{"filename":"generator-helpers-1.1.1.tgz","hashes":{"sha1":"1f5c2e809d1ebd369d34ac22b771c522ced6e5b4","sha512_sri":"sha512-JplRfmQQZ0jjvmYdzoV2skqdVHvx/6DJf6Xfr4uMIJlQCW4VcFe7VOBYX2G4pxLWGyA6Fov7b3e04MXUqYbJTQ=="}}]},"iocs":{"ips":["85.137.53.71"],"urls":["https://ipfs.io/ipfs/QmQobZSp1wRPrpSEQ56qnyq7ecZh5Bg5k1fnjt4SUwwHb9"]}}}],"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-gw3q-hxvp-x7vm"},{"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/generator-helpers/v/1.1.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":"6c55b498d8766225c87bc5781438ffe36f84333b8bb731069bb0bac726cb6b3e","import_time":"2025-11-24T13:26:18.79270442Z","id":"GHSA-gw3q-hxvp-x7vm","modified_time":"2025-11-24T12:50:59Z","versions":["0.2.2","0.2.1"]},{"source":"amazon-inspector","sha256":"1fb4a795f9e4f1dc8304d727b4b4a4b6d4024952675eb497e79b9f78fa2b96ca","import_time":"2025-11-24T16:07:49.49321993Z","modified_time":"2025-11-24T15:54:02Z","versions":["0.2.2","0.2.1"]},{"source":"amazon-inspector","sha256":"f8004b054d45a6f08280a93c7be997f099739cdc3a8311a35d9976efd619b1c4","import_time":"2025-11-24T16:39:33.739293363Z","modified_time":"2025-11-24T16:31:47Z","versions":["0.2.1","0.2.2"]},{"source":"google-open-source-security","sha256":"eaf9598bd0d64189828293050c590d3885311537cef7b91153a0df8cef9489f4","import_time":"2025-11-25T00:17:32.362385Z","modified_time":"2025-11-25T00:16:49Z","versions":["0.2.1","0.2.2"]},{"source":"ghsa-malware","sha256":"a9a130715f7eec3592c53d27ff4aba0f3ecb2e88f5e4276c9906981bc94df1b0","import_time":"2026-07-14T11:45:52.913978212Z","id":"GHSA-gw3q-hxvp-x7vm","modified_time":"2026-07-14T11:13:29Z","versions":["1.1.1","0.2.2","0.2.1"]},{"source":"amazon-inspector","sha256":"f5d32214c0ccb2ee8f88d55a002ca8bd58405c001051f75646cb765588ccfa9c","import_time":"2026-07-14T13:35:48.406178264Z","id":"IN-MAL-2026-010493","modified_time":"2026-07-14T12:47:56Z","versions":["1.1.1"]}]}}

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