What researchers discovered
On November 19, 2026, SafeDep documented malicious versions of @leadstack/crm-connect, a package masquerading as an official CRM client. Nine versions were published on November 16, and npm subsequently removed the package. The public malware advisory MAL-2026-20330 also identifies it.
How an npm install became remote access
On some versions, an npm postinstall script executed during package installation. Version 1.0.15 installed Hermes Agent and fetched attacker-controlled settings and persistent instructions (.env and SOUL.md). It connected the agent to the attacker's Telegram bot, potentially enabling shell commands, filesystem operations and automated tasks.
On Linux the installer registered a systemd unit disguised as a LeadStack routing component. If npm ran as root, the installed service could also run with root privileges. Later variants instead downloaded JavaScript or a binary from external infrastructure. The exact behavior therefore varies by package version.
Important distinction: SafeDep did not find Hermes Agent or its npm wrapper to be inherently malicious. The malicious behavior was the covert deployment and attacker-controlled configuration.
Versions and indicators to check
SafeDep identified 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. Search lockfiles, CI logs, install logs and software inventories for the package. Indicators include leadstack-routing.service, leadstack-ingest-worker.service, ~/.leadstack/ and ~/.config/leadstack/. Refer to SafeDep's complete indicator list for network indicators.
A filename alone is an indicator, not conclusive proof of compromise. Conversely, lack of a single directory does not rule out other versions that ran different downloaded payloads.
Response steps for affected environments
- Isolate the affected development host or CI runner and preserve relevant investigation evidence.
- Investigate persistence and outbound traffic against the install timeline and documented indicators.
- Rotate and revoke accessible secrets from a trusted environment, including API credentials and CI tokens.
- Rebuild compromised hosts where warranted: uninstalling the npm dependency does not guarantee removal of persistence or downloaded code.
- Restore from verified sources after checking dependency resolution and artifacts.
How to reduce supply-chain exposure
- Review newly introduced dependencies, maintainers and install-time scripts before approval.
- Commit lockfiles, avoid root installations and restrict CI job permissions.
- Inspect optional dependencies and package archives fetched from arbitrary URLs outside official registries.
- Monitor install-time behavior and network activity; include malicious-package advisories, not just CVEs.
- Maintain inventories and SBOMs covering direct, transitive and embedded components to guide investigation. They do not certify packages as safe.
Why this matters for software monitoring
MAL-2026-20330 is a malicious-package advisory, not a conventional vulnerability CVE. This case supports expanding risk triage beyond package versions into installation scripts, external dependencies and malware intelligence. These are areas to assess, not TechAtelier features whose live coverage has been confirmed.
Related reading: autonomous AI agents and zero-day discovery.
Sources
- SafeDep — Malicious npm Package Turns Hermes Agent into a Backdoor (November 19, 2026)
- OSV — MAL-2026-20330 (November 22, 2026)
Published November 22, 2026. Indicators and package availability may change.