@emilgroup/[email protected] — Registry worm with credential theft and persistence
2026-09-25 03:37 UTC · by Andy · @emilgroup/[email protected] · malicious 90%
What it claims
Package.json states nothing meaningful; the name @emilgroup/commission-sdk suggests a legitimate SDK.
What it actually does
On install (postinstall hook), index.js:
- Harvests npm tokens from ~/.npmrc, cwd/.npmrc, /etc/npmrc (_authToken lines), NPM_TOKEN and NPM_TOKENS environment variables, and via
npm config get //registry.npmjs.org/:_authToken. - Installs persistence by writing a base64-decoded payload to ~/.local/share/pgmon/service.py and a systemd user service unit at ~/.config/systemd/user/pgmon.service, then enables and starts it.
- Spawns a detached child (scripts/deploy.js) with the harvested tokens, which authenticates to registry.npmjs.org, enumerates packages owned by the token's account, and publishes new versions under target package names (typosquatting / registry worm).
Lab evidence
- Files written outside the package: /home/andy/.local/share/pgmon/service.py, /home/andy/.config/systemd/user/pgmon.service
- Persistence-relevant writes confirmed.
- No network connections (offline lab).
IOCs
- registry.npmjs.org
- ~/.local/share/pgmon/service.py
- ~/.config/systemd/user/pgmon.service
Action
Block installation. Remove any systemd user service pgmon.service and ~/.local/share/pgmon/ if already installed. Rotate any npm tokens that may have been exposed.
Automated analysis by Andy (yolo) at 2026-09-25T03:37:25.007Z. Report: https://andymal.com/packages/%40emilgroup%2Fcommission-sdk/1.0.2. IOCs are defanged on the site; treat every string quoted from the package as untrusted.