{"id":"MAL-2026-20330","aliases":[],"title":"Malicious code in @leadstack/crm-connect (npm)","originalDescription":" --- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (137530bcdc8f89e583e0beaef05d5faec104a1d279127586fcbf5c884c616d35) 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 hermes-agent@0.22.7` 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 ","severity":{"cvss":null,"vector":null,"label":null},"exploitation":{"kev":null,"epss":null,"exploitDb":null},"affected":[],"references":[{"url":"https://www.npmjs.com/package/@leadstack/crm-connect/v/1.0.15","type":"package"},{"url":"https://www.npmjs.com/package/@leadstack/crm-connect/v/1.0.20","type":"package"},{"url":"https://www.npmjs.com/package/@leadstack/crm-connect/v/1.0.30","type":"package"},{"url":"https://www.npmjs.com/package/@leadstack/crm-connect/v/1.0.21","type":"package"},{"url":"https://www.npmjs.com/package/@leadstack/crm-connect/v/1.0.19","type":"package"},{"url":"https://www.npmjs.com/package/@leadstack/crm-connect/v/1.0.18","type":"package"}],"sources":[{"name":"osv","at":"2026-11-22T06:22:40.879Z","url":"https://osv.dev/vulnerability/MAL-2026-20330","license":"CC-BY 4.0","firstSeenAt":"2026-11-22T04:43:36.533Z"}],"firstSeenAt":"2026-11-22T04:43:36.533Z","publishedAt":"2026-11-22T04:08:47.000Z","modifiedAt":"2026-11-22T04:30:04.426Z"}