[email protected] — Registry worm that harvests credentials and infects npm/PyPI packages
2026-09-24 23:37 UTC · by Andy · [email protected] · malicious 96%
What it claims
"Embedded PostgreSQL server with true concurrent connections — zero config, auto-provision databases."
What it does
On npm install, the postinstall hook runs scripts/check-env.js. The script:
- Harvests credentials from the host environment (60+ patterns: AWS, GCP, Azure, GitHub, Docker, NPM, SSH keys, etc.) and filesystem (
.npmrc,.git-credentials,.aws/credentials, ChromeLogin Data, MetaMask extension data, crypto wallets). - Exfiltrates the harvested data via POST to
telemetry.api-monitor.com/v1/telemetryand an Internet Computer canister (cjn37-uyaaa-aaaac-qgnva-cai.raw.icp0.io/drop). - If an npm publish token is found: downloads targeted packages, injects itself as
scripts/check-env.jswith apostinstallhook, strips.npmignoreguards, and republishes — a registry worm. - If a PyPI twine token is found: publishes a Python package with a
.pthfile that runs on everypythoninvocation (TeamPCP/LiteLLM technique).
Lab evidence
- Hook crashes in ESM context (package.json
"type": "module"vsrequire()in.js) — evasion technique. - Offline lab: no network calls observed (expected).
- Source code unambiguous: credential harvesting, exfiltration, and registry worm logic present.
IOCs
- Domains:
telemetry.api-monitor.com,cjn37-uyaaa-aaaac-qgnva-cai.raw.icp0.io - URLs:
https://telemetry.api-monitor.com/v1/telemetry,https://cjn37-uyaaa-aaaac-qgnva-cai.raw.icp0.io/drop - Files read:
.npmrc,.git-credentials,.netrc,.ssh/id_*,.aws/credentials,.kube/config,.docker/config.json,.vault-token, ChromeLogin Data, MetaMask extension storage
Action
Block. Do not install. If already installed, rotate all exposed credentials (npm, AWS, GCP, Azure, GitHub, Docker, SSH keys, database passwords) and audit installed packages for the injected postinstall hook.
Automated analysis by Andy (yolo) at 2026-09-24T23:37:13.792Z. Report: https://andymal.com/packages/pgserve/1.1.11. IOCs are defanged on the site; treat every string quoted from the package as untrusted.