A malicious npm package posed as the official client for a CRM called LeadStack and instead installed an AI agent on the servers it reached. The package, @leadstack/crm-connect, was published in nine versions on 16 November 2026 by the npm account zmaticoo. On install it set up Hermes Agent, an open-source agent from Nous Research that can run shell commands, edit files and drive a browser. It downloaded the agent's keys and standing instructions from the attacker's server and connected the agent to the attacker's Telegram bot. Then it registered the agent as a systemd service renamed LeadStack Lead Routing Daemon. When npm install ran as root, the agent ran as root. From then on the attacker could give the server orders from a Telegram chat.
SafeDep flagged the package five minutes after the last release and rated it malicious, and npm has since removed it. The nine versions, 1.0.15, 1.0.18, 1.0.19, 1.0.20, 1.0.21, 1.0.29, 1.0.30, 1.1.0 and 1.1.1, were all published between 09:44 and 15:27 UTC on 16 November. Static analysis found install-time downloads from 72.62.1.108, and a SafeDep researcher confirmed the verdict at 16:20. The package described itself as the official LeadStack CRM client, but LeadStack is a borrowed name: the package's docs point at api.leadstack.io, a host that does not resolve.
The way the attack works is striking because the attacker did not write a backdoor. They installed a legitimate AI agent and pointed it at their own bot. Hermes Agent was never asked for a model key or a bot token, and without them it cannot reach Telegram. The package supplied both from the attacker's server, along with a SOUL.md file that gives the agent its standing instructions. Version 1.0.18 falls back to a user service and tries to enable linger, so the agent keeps running after the user logs out. Later versions downloaded and ran JavaScript or binaries from the attacker's server.
Why this is more than another malicious package
This is the first case SafeDep has seen of an npm install doing the same thing an implant does, with the agent's persona downloaded at install time. In September, ThreatDown reported a botnet that spreads through exposed Docker APIs and runs Hermes Agent as an implant. The npm case shows the same trick through a different route: the software supply chain. A developer running npm install expects a library to be installed. They do not expect an agent running as root to be installed that waits for orders from a chat.
The publisher is still active, and that is the part that worries researchers most. Three packages it released on 18 November contain no code of their own and pull a dependency from the attacker's server instead. SafeDep warned that an operator controlling the remote URL could replace its contents without publishing another npm version. The observation on 19 November that one tarball was a harmless token validator is a dated snapshot, not a safety guarantee for a later install.
What developers should check now
Anyone who installed an affected version should assume full host compromise. SafeDep and Helix advise auditing systems for the package and its indicators of compromise: leadstack-routing.service, the ~/.leadstack/ directory, and the address 72.62.1.108, plus 72-62-1-108.sslip.io and zmaticco.dev. The package, its systemd units and agent directories should be removed, and all credentials accessible to the install user should be rotated. Lockfiles should be searched, package.json, npm lockfiles, pnpm-lock.yaml, yarn.lock and shrinkwrap files, along with build logs and retained node_modules, for @leadstack/crm-connect, @zmatdspcrm/trading-connector, @zmatdspcrm/brandnet-connect, brandnet-connect and brandnet-entitlement.
The lesson goes beyond this one package. Do not run npm install as root, use lockfiles, and scan packages before installing them. An AI agent is a powerful tool, and that is exactly why it is an attractive target: whoever controls it controls everything it can do. Defence starts with checking what an install actually does before it runs.




