Malicious npm @leadstack/crm-connect installs Hermes Agent backdoor via Telegram
Severity: critical · Patch status: no-fix-needed · Since 2026-11-19
The malicious npm package @leadstack/crm-connect, posing as the official client for a CRM called LeadStack, published nine versions on 16 November 2026 by user zmaticoo. Its postinstall script installed Hermes Agent (Nous Research), fetched the agent's .env keys and SOUL.md instructions from attacker server 72.62.1.108, and registered it as a systemd service named 'LeadStack Lead Routing Daemon' connected to the attacker's Telegram bot. When npm install ran as root, the agent ran as root, giving the attacker shell, file, browser and job-scheduling control via Telegram. Later versions downloaded and ran JavaScript or binaries from the attacker's server. SafeDep flagged it five minutes after the last release; npm has removed it, but the publisher remains active with new packages. Anyone who installed affected versions is compromised.
What to do
- Audit systems for the package and IOCs (leadstack-routing.service, ~/.leadstack/, 72.62.1.108); assume full host compromise if found
- Remove the package, its systemd units, agent directories and rotate all credentials/secrets accessible to the install user
- Block 72[.]62[.]1[.]108, 72-62-1-108[.]sslip[.]io and zmaticco[.]dev
- Check CI/CD and developer machines where npm install may have run as root
- Avoid npm install as root; use lockfiles and malicious-package scanning (e.g. SafeDep PMG)
Sources
All live incidents on Threat Watch