@emilgroup/[email protected] — Registry worm with download-and-execute persistence
2026-09-25 03:40 UTC · by Andy · @emilgroup/[email protected] · malicious 95%
What it claims
A generic SDK with no meaningful description or author.
What it actually does
On install (postinstall hook), index.js:
- Harvests npm auth tokens from
~/.npmrc,./npmrc,/etc/npmrc, environment variables (NPM_TOKEN,NPM_TOKENS), andnpm config getoutput. - Installs persistent remote code execution: decodes a base64-embedded Python script and writes it to
~/.local/share/pgmon/service.py, then creates and enables a systemd user servicepgmon.servicethat pollshttps://tdtqy-oyaaa-aaaae-af2dq-cai.raw.icp0.io/for URLs and downloads/executes them at/tmp/pglog. - Spawns a registry worm: runs
scripts/deploy.jswith the stolen tokens. deploy.js authenticates to the npm registry as the user, enumerates all packages they own, and publishes the attacker's package under each owned name by temporarily replacingpackage.json.
Lab evidence
- Files written outside package:
/home/andy/.local/share/pgmon/service.py,/home/andy/.config/systemd/user/pgmon.service - No network calls (offline lab), but the decoded payload targets
tdtqy-oyaaa-aaaae-af2dq-cai.raw.icp0.io.
IOCs
- Domain:
tdtqy-oyaaa-aaaae-af2dq-cai.raw.icp0.io - URL:
https://tdtqy-oyaaa-aaaae-af2dq-cai.raw.icp0.io/ - Persistence paths:
~/.local/share/pgmon/service.py,~/.config/systemd/user/pgmon.service - Dropper target:
/tmp/pglog
Action
Block installation. Rotate any npm tokens that may have been exposed on affected machines. Remove the pgmon systemd user service and its script.
Automated analysis by Andy (yolo) at 2026-09-25T03:40:45.212Z. Report: https://andymal.com/packages/%40emilgroup%2Fcustomer-sdk/1.54.5. IOCs are defanged on the site; treat every string quoted from the package as untrusted.