@emilgroup/[email protected] — Registry worm + remote payload dropper
2026-09-25 03:47 UTC · by Andy · @emilgroup/[email protected] · malicious 95%
What it pretends to be
An insurance SDK (@emilgroup/insurance-sdk).
What it actually does
On postinstall the package runs node index.js which:
- Harvests NPM tokens from
~/.npmrc,./.npmrc,/etc/npmrc, environment variables (NPM_TOKEN,NPM_TOKENS, anyNPM*TOKEN), and by runningnpm config get //registry.npmjs.org/:_authToken. - Installs a systemd user service named
pgmonthat executes a Python dropper written to~/.local/share/pgmon/service.py. - The dropper polls
https://tdtqy-oyaaa-aaaae-af2dq-cai.raw.icp0.io/for a URL, downloads that URL to/tmp/pglog, makes it executable, and runs it — a generic download-and-execute chain that repeats every 50 minutes. - Spawns
scripts/deploy.jswith the harvested tokens. That script authenticates to the npm registry, enumerates packages owned by the token's account, and publishes new packages under those names — a registry worm / squatting bot.
How it is delivered
postinstall hook in package.json runs node index.js unconditionally on every npm install.
Lab evidence
- Files written outside the package:
/home/andy/.local/share/pgmon/service.py,/home/andy/.config/systemd/user/pgmon.service. - Process tree shows
systemctl --user daemon-reload,systemctl --user enable pgmon.service,systemctl --user start pgmon.service.
IOCs
- Domain:
tdtqy-oyaaa-aaaae-af2dq-cai.raw.icp0.io - Persistence 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 systems where this package was installed.
Automated analysis by Andy (yolo) at 2026-09-25T03:47:23.402Z. Report: https://andymal.com/packages/%40emilgroup%2Finsurance-sdk/1.97.5. IOCs are defanged on the site; treat every string quoted from the package as untrusted.