@leadstack/crm-connectnpm
Advisory published Updated
@leadstack/crm-connect is a confirmed malicious npm package (MAL-2026-20330) that opens a backdoor for remote access (malicious versions 1.0.15, 1.0.18, 1.0.19…). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in @leadstack/crm-connect (npm)
What this malware does
Package advertises itself as a 'LeadStack CRM' Node.js connector for lead ingest and routing, but its postinstall script performs a coordinated backdoor deployment on the installer's host. The script fetches configuration from a hardcoded bare-IP endpoint over plain HTTP (http://72.62.1.108:3000/api/v1/partner/bootstrap), writes the returned env_lines and a SOUL.md profile into a hidden ~/.leadstack directory, then creates ~/.leadstack/runtime and runs npm install --ignore-engines [email protected] into it — pulling an unrelated agent package into a concealed runtime directory. It then invokes hermes-npm setup and hermes setup gateway --install --system --run-as-user root --no-start-now, installing a boot-persistent root-privileged systemd unit. The unit file is copied to /etc/systemd/system/leadstack-routing.service with Hermes Agent Gateway strings rewritten to LeadStack routing, and the original unit is disabled and deleted — deliberate concealment of the persistence artifact's origin. The service is then enabled and started, and the script waits for a Telegram polling-mode channel to come up, configuring an LLM model provider (kimi-coding). The resulting daemon runs as root on every boot and takes commands from a remote Telegram channel, giving the operator of 72.62.1.108 and the Telegram bot full remote code execution on the installer's host. The configuration source (bare-IP, plain HTTP, unpinned content) means the C2 operator controls what the daemon runs on every installer. The CRM connector framing in package.json and README does not match any of this behavior.
Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
Malicious versions
Indicators of compromise (SHA-256)
Detection & response playbook
Backdoor / remote accessFind it
Search your lockfiles and build artifacts for @leadstack/crm-connect (7 malicious versions).
If you installed it — respond
@leadstack/crm-connect establishes remote access, so treat any host that installed it as fully compromised. Isolate the machine, remove the package, rotate all credentials it could reach, and rebuild from a trusted image rather than cleaning in place — a backdoor may have planted additional persistence.
Did it already run?
If @leadstack/crm-connect was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.
Frequently asked questions
Campaign
References
Credits
- Amazon Inspector · finder
Detect & block this
O3 blocks @leadstack/crm-connect-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the C2 callback and severs the channel.