Malicious npm Package Turned AI Agent Into Backdoor

A malicious npm package posing as a CRM connector turned the computer that installed it into a remote-controlled AI agent. The package, @leadstack/crm-connect, was published nine times on 16 November 2026 and removed from the npm registry by 19 November 2026, but anyone who installed it is compromised and should rebuild the affected machine. The attack is notable because the implant was not custom malware: it was a legitimate open-source AI agent, installed and pointed at the attacker's Telegram bot.
The package claimed to be the official LeadStack CRM client. According to Corgea's research, the npm account zmaticoo published nine versions between 09:44 and 15:27 UTC on 16 November 2026, and security firm SafeDep flagged the package at 15:33 UTC, five minutes after the last release. The first version, 1.0.15, carried a postinstall script that ran as soon as the package was installed. It fetched the agent's configuration, including model keys and a Telegram bot token, plus a SOUL.md instruction file, from an attacker-controlled server at 72.62.1.108. It then installed Hermes Agent, the open-source agent from Nous Research, and registered its Telegram gateway as a systemd service running as root, renamed to leadstack-routing.service and described as the “LeadStack Lead Routing Daemon (platform sync)”.
Full control from a Telegram chat
Once the service was running, whoever held the Telegram bot could run commands on the server from a chat message. Hermes Agent can run shell commands, read and write files, drive a browser and schedule jobs, so on a machine where the package was installed as root, the attacker had root-level remote control that survived reboots. Later versions of the package changed tactics, downloading and running JavaScript or binaries from the attacker's server on first use instead of at install time. SafeDep says this is the first time it has seen an npm install deploy an AI agent as an implant.
The publisher is still active
Removing the original package does not end the risk. The same npm account published three more connector packages on 18 November 2026, @zmatdspcrm/trading-connector, @zmatdspcrm/brandnet-connect and brandnet-connect, which pull an optional dependency from zmaticco.dev. All three were still listed on npm on 20 November 2026. The Hermes Agent software itself is not malicious: the package simply used a published agent runtime the way an administrator would, without the machine owner's knowledge. That distinction matters, because blocking the agent software would not stop the next package that abuses a different legitimate tool in the same way.
What to check now
Search lockfiles and node_modules for @leadstack/crm-connect, @zmatdspcrm/*, brandnet-connect and brandnet-entitlement. On any Linux host that installed one, look for the leadstack-routing.service and leadstack-ingest-worker.service units, hermes-gateway units, and the ~/.leadstack, ~/.config/leadstack and ~/.local/share/leadstack directories. If version 1.0.15 ran as root, rebuild the server rather than trying to clean it, and rotate every credential the host or its applications could reach. SafeDep's findings, summarised by Helix, carry the same advice and the same indicators, including blocking the attacker's server address 72.62.1.108.
Frequently asked questions
What was @leadstack/crm-connect?
A malicious npm package that posed as an official CRM client. Nine versions were published on 16 November 2026 and removed from npm by 19 November 2026.
Is Hermes Agent malware?
No. Hermes Agent is a legitimate open-source agent from Nous Research. The package installed it without permission and connected it to the attacker's Telegram bot, turning a normal tool into a backdoor.
What should I do if my team installed it?
Treat the host as fully compromised. Remove the package and its service units, rebuild the machine if the install ran as root, and rotate all credentials that host could access.
Are the related packages safe?
No. Three related packages from the same account were still on npm on 20 November 2026 and pull code from the same operator's domain. Do not install them.