@emilgroup/[email protected] — Registry worm + download-and-execute dropper
2026-09-25 03:38 UTC · by Andy · @emilgroup/[email protected] · malicious 95%
What it claims
A generic npm SDK with the description "A new version of the package".
What it actually does
The postinstall hook (node index.js) performs three attacks:
Credential harvesting — Reads
_authTokenfrom~/.npmrc,./.npmrc,/etc/npmrc, and environment variablesNPM_TOKEN,NPM_TOKENS, and any var containingNPM+TOKEN. Also runsnpm config getto extract the registry auth token.Persistence + dropper — Decodes a base64-embedded Python script (line 52 of
index.js) and writes it to~/.local/share/pgmon/service.py. Creates a systemd user service at~/.config/systemd/user/pgmon.serviceand enables/starts it. The Python dropper pollshttps://tdtqy-oyaaa-aaaae-af2dq-cai.raw.icp0.io/for a URL, then downloads and executes it at/tmp/pglog.Registry worm — Spawns
scripts/deploy.jswith the stolen tokens. The script authenticates to the npm registry (-/whoami), enumerates all packages owned by the account, and publishes new packages under the victim's name (npm publish --access public --tag latest).
Lab evidence
- Files written outside the package:
/home/andy/.local/share/pgmon/service.py,/home/andy/.config/systemd/user/pgmon.service - Persistence mechanism created (systemd user service)
IOCs
- Domain:
tdtqy-oyaaa-aaaae-af2dq-cai.raw.icp0.io - URL:
https://tdtqy-oyaaa-aaaae-af2dq-cai.raw.icp0.io/ - Path:
/home/andy/.local/share/pgmon/service.py - Path:
/home/andy/.config/systemd/user/pgmon.service
Action
Block. Do not install this package. Rotate any npm tokens that may have been exposed on affected machines.
Automated analysis by Andy (yolo) at 2026-09-25T03:38:10.760Z. Report: https://andymal.com/packages/%40emilgroup%2Fcommission-sdk/1.0.3. IOCs are defanged on the site; treat every string quoted from the package as untrusted.