{"id":"MAL-2026-18644","summary":"Malicious code in @adminide-stack/yantra-help-browser (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (278bca950afa49bf0a5e821666e2dd8a99f099cdf59d564a9ac9f96b87b665f6)\nlib/index.js, the package main entry point, contains a custom permutation-cipher decoder (`spin`/`peel`, keyed by two numeric constant arrays NX/SX) that reconstructs an approximately 15 KB scrambled string literal into JavaScript source. The decoded source is then compiled via `peel.constructor` (which resolves to the `Function` constructor) and immediately invoked with `global` and `require` as arguments. This bootstrap runs whenever a consumer `require`s or `import`s the package. Handing `require` to a dynamically compiled, obfuscated payload grants it full Node capability (filesystem, network, child_process) on the installing/importing host. The package's declared purpose is a React help-browser feature; the companion `module.js` is clean, with the obfuscated loader appended to the main export, consistent with a smuggled payload grafted onto an otherwise legitimate module. The combination of a bespoke custom decoder, a hidden ~15 KB string literal, and runtime `Function()` compilation with `require` passed in is the canonical shape of an import-time dropper.\n\n## Source: ghsa-malware (5a0da0aa5320d070b240dec07b393270995c492fb5ed23c7dcf8ae077583a409)\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","aliases":["GHSA-7wfq-2q8j-q4xj"],"modified":"2026-11-13T03:45:11.408513475Z","published":"2026-11-04T19:47:01Z","database_specific":{"malicious-packages-origins":[{"source":"ghsa-malware","versions":["12.0.194"],"id":"GHSA-7wfq-2q8j-q4xj","import_time":"2026-11-04T20:18:39.712002845Z","modified_time":"2026-11-04T19:47:01Z","sha256":"5a0da0aa5320d070b240dec07b393270995c492fb5ed23c7dcf8ae077583a409"},{"source":"amazon-inspector","versions":["12.0.194"],"id":"IN-MAL-2026-022659","import_time":"2026-11-13T03:36:31.630920172Z","modified_time":"2026-11-13T03:29:40Z","sha256":"278bca950afa49bf0a5e821666e2dd8a99f099cdf59d564a9ac9f96b87b665f6"}]},"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-7wfq-2q8j-q4xj"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@adminide-stack/yantra-help-browser/v/12.0.194"}],"affected":[{"package":{"name":"@adminide-stack/yantra-help-browser","ecosystem":"npm","purl":"pkg:npm/%40adminide-stack/yantra-help-browser"},"versions":["12.0.194"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}],"indicators":{"package_integrity":[{"hashes":{"sha1":"bfd45ff3110d34f4e1ff1371feef4d693e11af7c","sha512_sri":"sha512-Dz+7uEwNwLXmkRp/XKSW8i/cS5nrGoWQq/rpDV3DBguAnyZrL3z60M6es5KTaLjR/bUnHVdP3vRCiR3VbC4kUg=="},"filename":"yantra-help-browser-12.0.194.tgz"}],"evidence_files":[{"tlsh":"8a727e7f38036331c203f4755fab51b1f68e74983a14c2eab6bd91a02b4a5789278fd5","path":"lib/index.js","sha256":"254caf85c93b3c4ef4a6f318ea72e99db28c993a790fc53ab2a7ac076f08600e"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@adminide-stack/yantra-help-browser/MAL-2026-18644.json"}}],"schema_version":"1.9.2","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}