The report
A malicious npm package can recruit an existing, capable AI agent rather than ship a bespoke remote-access binary. SafeDep's investigation of @leadstack/crm-connect describes a package posing as a CRM integration that used its installation lifecycle to deploy Hermes Agent, configure it using an attacker-controlled server and link it to a Telegram bot for remote instructions.
The attacker published nine package versions on November 16. The research report describes how installation could create a persistent systemd service under an innocuous CRM-related name. If npm install ran with root privileges, the installed agent inherited those privileges. The payload also changed across versions, so treating one initial package sample as the complete campaign would miss variants.
Why the AI agent matters here
Hermes Agent can run shell commands, edit local files and operate a browser. In the documented chain those capabilities were placed under a remote party's instruction channel, making the installed agent a general-purpose post-installation control surface. The attacker did not need to train a malicious model or persuade an already-running legitimate agent through prompt injection. They installed an agent configured to obey the attacker.
That distinguishes this Case from ordinary AI-themed package name imitation, where an AI label is only bait and the payload is unrelated software. The actual agent runtime and its command interfaces are part of the mechanism, although public reporting does not establish what commands were issued on real victim systems.
SafeDep reports detection and npm removal, but an ecosystem download count is not a count of successful compromises. Operators assessing exposure would need exact installed package versions, post-install logs, persistence units, outbound connections and credential rotation. A clean current registry page does not prove that an earlier compromised dependency was never installed, and removing the npm package alone would not necessarily remove the system service it had already created.