What happened in the @leadstack/crm-connect incident?
In an analysis published November 19, 2026, SafeDep reported that the npm package @leadstack/crm-connect posed as the official client for a CRM called LeadStack and installed a remote-controlled AI agent on the servers it reached. The npm user zmaticoo published nine versions on November 16 between 09:44 and 15:27 UTC. OSV record MAL-2026-20330, which carries a separate Amazon Inspector analysis, also classifies the package as malicious.
In version 1.0.15, a postinstall script fetched configuration from 72.62.1.108, installed hermes-agent@0.22.7 in a hidden directory and registered its gateway as a systemd service. The service was renamed leadstack-routing.service, and it ran as root when npm ran as root. Through a Telegram bot, the attacker could run shell commands, read and write files, browse the web and schedule jobs on the host.
Later versions changed delivery. Version 1.0.18 moved the install to the first SDK call and could use a user-level service with linger. Versions from 1.0.19 onward ran JavaScript or a binary fetched from the attacker's server, or tried to run an unpublished platform package. SafeDep says neither Hermes Agent nor its npm wrapper is malicious. The package abused them. SafeDep did not recover the attacker's configuration or later downloads, and it reports no confirmed victims.
Which packages and versions are affected?
- @leadstack/crm-connect 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, per SafeDep. OSV currently lists the first seven.
- Servers or containers where any of those versions was installed, especially with root privileges.
- Related packages from the same publisher, created November 18:
@zmatdspcrm/trading-connector,@zmatdspcrm/brandnet-connectandbrandnet-connect. SafeDep found no malicious code in their tarballs, but each pulls an optional dependency fromzmaticco.dev.
How to check if you're affected
- Search
package.jsonand lockfiles for@leadstack/crm-connect,@zmatdspcrm/,brandnet-connectandzmaticco.dev. - Look for
~/.leadstack,~/.config/leadstack,~/.local/share/leadstackand the same paths under/root. - Run
systemctl list-unit-files 'leadstack-*' 'hermes-gateway*', repeat withsystemctl --user, and checkloginctl show-user "$USER" -p Linger. - Search network logs for
72.62.1.108,72-62-1-108.sslip.ioandzmaticco.dev, and for servers that long-pollapi.telegram.orgor callapi.moonshot.aiwithout a reason to.
What to do now
- Treat any server that installed an affected version as root as fully compromised, and rebuild it rather than cleaning it.
- Rotate every credential the server or application environment could reach, from a clean machine.
- For non-root installs, review what the installing user could read, and rotate the application's secrets if that user runs the application.
- Remove the packages from manifests, lockfiles, caches and images, and block the listed hosts at egress.
Why install-time agents raise the stakes
This package did not need to ship a custom implant. It installed a legitimate agent with shell and file tools, then gave it configuration from the attacker's server, so the agent's instructions could change without a new npm release. Review install scripts on new dependencies, restrict egress from build and application hosts, and avoid running npm install as root on servers.
Where Nullify fits
How Nullify Covers This Class of Attack
Nullify finds every repository and container image that pulls an affected package version and runs the upgrade as one campaign, scoped by CVE, package, repo or team, with owners, Slack escalation and SLA tracking. Your developers approve every merge.
Nullify can't tell you whether this payload ran on a given server. Use the host and network checks above for that, then remove the dependency everywhere it appears.
Frequently Asked Questions
Which @leadstack/crm-connect versions are malicious?
SafeDep lists 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. OSV currently lists the first seven. Treat all nine as malicious, since all were published by the same account on November 16, 2026.
Is Hermes Agent itself compromised?
No evidence shows that. SafeDep says nothing points to Hermes Agent or the hermes-agent npm wrapper being malicious. The malicious package installed the agent without the owner's knowledge and connected it to a Telegram bot controlled by the attacker.
What should I do if a server installed this package as root?
Treat the server as fully compromised. Rebuild it rather than cleaning it, and rotate every credential the server or application environment could reach. SafeDep gives this advice because the agent could run commands as root through the attacker's Telegram bot.
Are the related brandnet-connect packages malicious?
SafeDep found no malicious code in their tarballs on November 19. However, each declares an optional dependency downloaded from zmaticco.dev, a domain on the attacker's server, so its contents could change at any time. Remove them and block that domain.
Update Log
- Nov 23, 2026: page published from the primary sources linked above.