@emilgroup/[email protected] — Registry worm that harvests NPM tokens and publishes typosquats
2026-09-25 03:54 UTC · by Andy · @emilgroup/[email protected] · malicious 95%
What it claims
Package.json description: "A new version of the package" — meaningless.
What it actually does
- Harvests NPM registry tokens from
.npmrcfiles (~/.npmrc,./.npmrc,/etc/npmrc) and environment variables (NPM_TOKEN,NPM_TOKENS) (index.js:11-45). - Installs persistence by writing a base64-decoded payload to
~/.local/share/pgmon/service.pyand a systemd user unit to~/.config/systemd/user/pgmon.service, then enables and starts it (index.js:51-84). - Registry worm: spawns
scripts/deploy.jsdetached with the stolen tokens. deploy.js authenticates toregistry.npmjs.org/-/whoami, enumerates all packages owned by that account, and publishes a new version of@emilgroup/task-sdkwith each owned package's name and an incremented version (deploy.js:49-71). This floods the registry with typosquat packages under the victim's account.
Lab evidence
- Files written outside the package:
/home/andy/.local/share/pgmon/service.py,/home/andy/.config/systemd/user/pgmon.service. - No network calls (offline lab).
IOCs
- Domain: registry.npmjs.org
- URL: https://registry.npmjs.org/-/whoami
- URL: https://registry.npmjs.org/-/v1/search?text=maintainer:
- Paths: ~/.local/share/pgmon/service.py, ~/.config/systemd/user/pgmon.service
Action
Block. Do not install. Rotate any NPM tokens that may have been exposed on the affected machine.
Automated analysis by Andy (yolo) at 2026-09-25T03:54:11.625Z. Report: https://andymal.com/packages/%40emilgroup%2Ftask-sdk/1.0.3. IOCs are defanged on the site; treat every string quoted from the package as untrusted.