A package named @leadstack/crm-connect presented itself as an official CRM client. SafeDep's November 19 investigation found that nine versions published on November 16 instead installed or ran an agent payload on Linux hosts. One version installed Hermes Agent, configured its Telegram gateway with data fetched from an attacker-controlled server and hid the service behind a CRM-like systemd name. Later releases changed how the code arrived and ran. The npm registry returned 404 for the package when checked on November 21, but that does not undo an installation that already reached a machine.
The incident is notable because an AI agent was used as the remote-control layer, but the evidence points to the npm package and its operator—not to Hermes Agent itself. Maintainers should check their dependency history and Linux hosts for specific package names and persistence artifacts, then respond according to which version ran and with what account privileges.
What did the package install?
SafeDep examined the published package files and identified 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. VIBPS checked archived 1.0.15 and 1.0.18 tarballs as data without installing or running them; their SHA-256 values matched SafeDep's published indicators. Corgea separately reports downloading the archived versions and comparing their contents with SafeDep's indicators.
- Version 1.0.15 used an npm postinstall script to set up Hermes Agent. The package fetched credentials and a SOUL.md instruction file from 72[.]62[.]1[.]108, then installed Hermes's Telegram gateway as a systemd service renamed leadstack-routing.service. The agent could use the host tools available to its service account.
- Version 1.0.18 moved provisioning to the first SDK call and included a user-service path with login linger. Later versions shifted to fetching and running remote JavaScript or binaries rather than installing the same Hermes setup.
- The exact effect depended on the version, trigger, host configuration, network access and privileges. SafeDep describes a root-level service for 1.0.15 when installation ran as root. The package did not use sudo to elevate an ordinary user install; failure to write a system service, however, is not proof that no files or user-level effects were left behind.
Was Hermes Agent the malicious package?
No. SafeDep and Corgea say the package fetched the published Hermes Agent runtime and used its normal capabilities in an unauthorized setup. Hermes can run commands, read or write files and control a browser when configured with those tools. In this case, the install downloaded configuration from an external server and connected the gateway to a Telegram bot controlled by the package operator. That is different from evidence of malicious code in the upstream Hermes project. Do not remove or distrust every Hermes installation based only on its name; establish whether it came from this package and has the listed paths or units.
The removed package is not the whole current risk
The same npm account published three related connector packages on November 18. As checked against npm's registry records on November 21, @zmatdspcrm/trading-connector 1.0.0 and 1.0.1, @zmatdspcrm/brandnet-connect 1.0.0, and brandnet-connect 1.0.0 and 1.0.1 remained listed. Their manifests declare an optional dependency fetched from https://zmaticco[.]dev/packages/brandnet-entitlement-1.0.0.tgz rather than a version hosted in npm.
That declaration does not establish what the external server returns now. SafeDep reported that the tarball it observed on November 19 was a harmless token validator, and warned that an operator controlling the remote URL could replace its contents without publishing another npm version. Treat the November 19 observation as a dated snapshot, not as a safety guarantee for a later install. Do not install the packages simply to inspect them.
What should Linux maintainers look for?
- Search package.json, npm lockfiles, pnpm-lock.yaml, yarn.lock, shrinkwrap files, build logs and retained node_modules for @leadstack/crm-connect, @zmatdspcrm/trading-connector, @zmatdspcrm/brandnet-connect, brandnet-connect and brandnet-entitlement. Include Git history and deployment manifests: a package may no longer resolve from npm while its old version remains pinned or installed.
- On Linux systems that installed an affected version, inspect system and user systemd units for leadstack-routing.service, leadstack-ingest-worker.service and hermes-gateway*; review service enablement, recent journal entries and user linger settings.
- Check for ~/.leadstack/ (including agent and runtime subdirectories), ~/.config/leadstack/ and ~/.local/share/leadstack/. SafeDep also lists 72[.]62[.]1[.]108, 72-62-1-108[.]sslip[.]io, zmaticco[.]dev and api.leadstack[.]io as network indicators. Treat the last hostname as an indicator from package configuration, not proof that a connection succeeded.
- Correlate those indicators with npm install times, host egress logs and the account that ran the install. A package reference alone shows a dependency exposure; it does not prove the malicious behavior completed on a particular host.
How should an affected host be handled?
If an affected version ran, isolate the host from unnecessary network access and preserve the relevant logs and disk evidence for your incident process before cleanup. SafeDep recommends treating a host where 1.0.15 ran as root as fully compromised: rebuild from a known-good image instead of relying on removal of the package or service, and rotate credentials that host or its application environment could access from a clean device. If the install ran as a normal user, investigate that user's files, services and accessible application secrets at the same level of care; a lower privilege is not the same as no impact.
For the related packages, the registry manifest's optional remote dependency is a separate supply-chain boundary. Review whether it was fetched, preserve the exact package and lockfile metadata, and block or otherwise prevent resolution of the listed packages and remote host through your organization's controls while investigating. Because the dependency URL is outside the npm registry, a clean registry package entry alone cannot establish what its server served at a previous installation time.
The report lists no assigned CVE. Its version list and indicators are more useful for a focused search than for assuming every Linux server or Hermes user was affected. This is also a different distribution path from VIBPS's earlier report on a tampered Claude Code extension served through Cursor's marketplace cache: here the investigated route is npm package installation and, for the related packages, a remote tarball dependency.
What did the Cursor extension incident expose?
How to protect your app while an AI coding agent works
For software makers, the operational lesson is to treat package installation as code execution at the installing account's privilege, and to track the source and integrity of every dependency—including an optional tarball fetched from a host outside the registry. VIBPS is the social network for software, where makers can share what they build and how they maintain it.
