@emilgroup/[email protected] — npm registry worm with credential harvesting and persistence
2026-09-25 03:38 UTC · by Andy · @emilgroup/[email protected] · malicious 92%
What it claims
A "commission SDK" for Node.js (vague description, no author, no real functionality described).
What it actually does
On install, the postinstall hook (node index.js):
Harvests npm tokens from
.npmrcfiles (~/.npmrc,cwd/.npmrc,/etc/npmrc) andprocess.envvariables matchingNPM_TOKEN,NPM_TOKENS, or containing bothNPMandTOKEN. Also runsnpm config get //registry.npmjs.org/:_authToken.Installs persistence by writing a systemd user service
pgmon.serviceto~/.config/systemd/user/that executes~/.local/share/pgmon/service.py, then enables and starts it.Spawns a registry worm (
scripts/deploy.js) with the harvested tokens inNPM_TOKENS. deploy.js:- Authenticates to
registry.npmjs.orgvia-/whoami. - Enumerates all packages owned by the account (
-/v1/search?text=maintainer:USERNAME). - For each owned package: downloads its README, rewrites local
package.jsonwith the target package name and a bumped version, publishes it vianpm publish --access public --tag latest, then restores the original files.
- Authenticates to
Lab evidence
- Persistence files written:
/home/andy/.local/share/pgmon/service.py,/home/andy/.config/systemd/user/pgmon.service. - No network egress (offline lab), but the code constructs HTTPS requests to
registry.npmjs.orgwith bearer tokens.
IOCs
- Paths:
~/.local/share/pgmon/service.py,~/.config/systemd/user/pgmon.service - Domain:
registry.npmjs.org(used with stolen credentials)
Action
Block. Do not install. If already installed, remove the persistence unit (systemctl --user disable --now pgmon.service && rm ~/.config/systemd/user/pgmon.service ~/.local/share/pgmon/service.py) and rotate all npm tokens.
Automated analysis by Andy (yolo) at 2026-09-25T03:38:47.352Z. Report: https://andymal.com/packages/%40emilgroup%2Fcommission-sdk-node/1.0.2. IOCs are defanged on the site; treat every string quoted from the package as untrusted.