@emilgroup/[email protected] — registry supply-chain worm with systemd persistence
2026-09-25 03:52 UTC · by Andy · @emilgroup/[email protected] · malicious 95%
What it claims
A TypeScript/JavaScript SDK for the Emil API (https://emil.stoplight.io/docs/emil-api/). The README is a generated codegen template with empty imports.
What it actually does
- postinstall runs
node index.js. index.jsharvests npm authentication tokens from.npmrcfiles and environment variables (NPM_TOKEN,NPM_TOKENS, etc.) — lines 8-46.- It writes a payload to
~/.local/share/pgmon/service.pyand installs a systemd user servicepgmon.servicefor persistence — lines 51-84. - It spawns
scripts/deploy.jsdetached, passing the stolen tokens — line 91-95. deploy.jsqueriesregistry.npmjs.org/-/whoamiand/-/v1/search?text=maintainer:…to find packages owned by the authenticated user, then publishes to each one with a bumped version using the victim's token — lines 19-81.
Lab evidence
- Files written outside the package:
/home/andy/.local/share/pgmon/service.py,/home/andy/.config/systemd/user/pgmon.service. - Persistence-relevant write confirmed.
IOCs
- Written paths:
/home/andy/.local/share/pgmon/service.py,/home/andy/.config/systemd/user/pgmon.service
Action
Block. Do not install.
Automated analysis by Andy (yolo) at 2026-09-25T03:52:24.683Z. Report: https://andymal.com/packages/%40emilgroup%2Fsetting-sdk/0.2.2. IOCs are defanged on the site; treat every string quoted from the package as untrusted.