{"id":"MAL-2025-190657","revision":null,"records":[{"revision":"4e1e9035ba6b46ab980f6d05319ec7fd","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2025-190657","aliases":["GHSA-gw3q-hxvp-x7vm"],"title":"Malicious code in @asyncapi/generator-helpers (npm)","description":"@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","state":0,"publishedAt":"2025-11-24T12:50:55+00:00","modifiedAt":"2026-07-15T05:49:22.1312491+00:00","affected":[{"ecosystem":"npm","name":"@asyncapi/generator-helpers","ranges":[],"versions":["0.2.2","0.2.1","1.1.1"],"rawVersionEvidence":null}],"metrics":[],"references":["https://github.com/advisories/GHSA-gw3q-hxvp-x7vm","https://www.aikido.dev/blog/shai-hulud-strikes-again-hitting-zapier-ensdomains","https://www.wiz.io/blog/shai-hulud-2-0-ongoing-supply-chain-attack","https://www.stepsecurity.io/blog/sha1-hulud-the-second-coming-zapier-ens-domains-and-other-prominent-npm-packages-compromised","https://www.npmjs.com/package/@asyncapi/generator-helpers/v/1.1.1","https://safedep.io/asyncapi-generator-supply-chain-attack-miasma-rat/","https://github.com/asyncapi/generator/issues/2184"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2025-190657","license":"OSV · upstream source license applies","key":"osv:MAL-2025-190657","identifiers":["MAL-2025-190657","GHSA-gw3q-hxvp-x7vm"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-24T18:03:58.2680075+00:00","complete":true,"records":1792,"lastAttemptAt":"2026-11-24T18:03:58.2680075+00:00","lastSuccessAt":"2026-11-24T18:03:58.4721014+00:00","error":null,"lastVerifiedAt":"2026-11-24T18:03:58.4721041+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-f6e4a7f93ed9acd6fcb1f804a4567f7b9b16730ac126110af8d6d24176317946-f5514827481e0758a7c7b3a4ba8ef763199da0560458a7c345cfbca526778d0f","complete":true,"records":431439,"lastAttemptAt":"2026-11-24T18:02:00.4841493+00:00","lastSuccessAt":"2026-11-24T18:02:00.2981544+00:00","error":null,"lastVerifiedAt":"2026-11-24T18:02:00.4841493+00:00","snapshotPublishedAt":"2026-11-24T17:29:37+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-a224a34e53e24fc2a863093eb432b25b","complete":false,"records":13935,"lastAttemptAt":"2026-11-24T18:05:33.4572737+00:00","lastSuccessAt":"2026-11-24T18:05:33.453+00:00","error":"148 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-24T18:05:33.453+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13823,"expectedIdentifiers":13982,"failedIdentifiers":148},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-24T18:03:58.2680075+00:00","complete":true,"records":1131,"lastAttemptAt":"2026-11-24T18:03:58.2680075+00:00","lastSuccessAt":"2026-11-24T18:03:58.4728852+00:00","error":null,"lastVerifiedAt":"2026-11-24T18:03:58.4728855+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-bc8e32d596c6412ca582826ccb1acd05","complete":true,"records":13947,"lastAttemptAt":"2026-11-24T18:04:23.8035112+00:00","lastSuccessAt":"2026-11-24T18:04:23.8+00:00","error":null,"lastVerifiedAt":"2026-11-24T18:04:23.8+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13982,"expectedIdentifiers":13982,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-4929b8b852ac0d08034af08eb3f8801ac97c81d230bedb3a3a0710d6b4e692b2","complete":true,"records":10074,"lastAttemptAt":"2026-11-24T18:03:58.2136163+00:00","lastSuccessAt":"2026-11-24T18:03:57.9682362+00:00","error":null,"lastVerifiedAt":"2026-11-24T18:03:58.2136163+00:00","snapshotPublishedAt":"2026-11-24T17:33:45+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-6ba2352decd0c95d34a1b50f642582aa34659ce946f552488f0a5cea4e0cc09a","complete":true,"records":2020,"lastAttemptAt":"2026-11-24T18:02:00.6538423+00:00","lastSuccessAt":"2026-11-20T15:46:15.4249619+00:00","error":null,"lastVerifiedAt":"2026-11-24T18:02:00.6538423+00:00","snapshotPublishedAt":"2026-11-20T14:48:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-3afd4dd07a6bf352a6a53c4438150c464a2527017b95ca94804134ea15f1eba9","complete":true,"records":3220,"lastAttemptAt":"2026-11-24T18:03:58.2272002+00:00","lastSuccessAt":"2026-11-24T10:25:37.8779609+00:00","error":null,"lastVerifiedAt":"2026-11-24T18:03:58.2272002+00:00","snapshotPublishedAt":"2026-11-24T09:33:40+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-37671c121c811e5de1293d6fa4c4e127296f3d3616c57f59031fe11caf2bad40","complete":true,"records":233030,"lastAttemptAt":"2026-11-24T18:03:49.6957772+00:00","lastSuccessAt":"2026-11-24T18:03:48.5439124+00:00","error":null,"lastVerifiedAt":"2026-11-24T18:03:49.6957772+00:00","snapshotPublishedAt":"2026-11-24T17:33:49+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}