highSupply Chain

RedC2 4.0 Linux Backdoor via Trojanized npm Packages

First seen Aug 22, 2026 · Updated Aug 22, 2026

npmsupply-chainlinuxbackdoormalicious-packageai-c2agent-relevantnodejsdeveloper-tools

Researchers identified 14 trojanized npm packages disguised as calendar and streak-tracking utilities that covertly deploy an AI-powered Linux backdoor called RedC2 4.0. The malware extracts and executes a bundled binary as a detached background process, giving attackers persistent, AI-assisted command-and-control capability on infected hosts.

Technical Analysis

The malicious npm packages embed a compiled binary that, upon module load, is located on disk, given executable permissions, and launched as a detached background process to evade parent-process termination and casual inspection. RedC2 4.0 reportedly leverages AI-assisted C2 logic, suggesting dynamic decision-making or obfuscated command generation to complicate detection and static analysis. Because npm is a primary distribution channel for JavaScript/Node.js tooling, this attack fits a classic dependency-confusion or typosquatting supply-chain pattern targeting developer and CI/CD environments. Organizations running AI agent frameworks, RAG pipelines, or LLM tool-use systems built on Node.js are directly at risk if these frameworks or their build environments pull in the compromised packages, potentially exposing API keys, model credentials, and agent orchestration secrets to the embedded backdoor. Given Linux is the dominant OS for agent hosting infrastructure and CI runners, successful compromise could lead to lateral movement into production agent pipelines and exfiltration of sensitive tokens used for tool/API access.

Affected Systems

Linux systems (developer workstations, CI/CD runners, servers) with Node.js/npm installed that have installed any of the 14 identified trojanized packages masquerading as calendar/streak utility tools

Indicators of Compromise

  • Trojanized npm packages (calendar/streak utility names - specific package names not disclosed in source)
  • Bundled executable binary marked with execute permissions post-install
  • Detached background process spawned at module load time
  • RedC2 4.0 implant/backdoor binary

Remediation Steps

  1. 1

    Audit npm dependencies

    Review installed npm packages, especially recently added calendar/streak/utility packages, against known-malicious package lists from Trend Micro/TrendAI advisories.

  2. 2

    Isolate and inspect suspicious hosts

    Check Linux hosts for unexpected detached background processes and unrecognized executable binaries dropped by node_modules directories.

  3. 3

    Rotate credentials

    Rotate API keys, tokens, and secrets accessible on any system where a trojanized package was installed, including those used by AI agent or automation pipelines.

  4. 4

    Implement package vetting

    Use lockfiles, package integrity verification (npm audit, Sigstore/provenance checks), and private registries with allowlisting to prevent installation of unvetted packages.

  5. 5

    Monitor outbound C2 traffic

    Deploy network monitoring for anomalous outbound connections from build/CI servers and agent-hosting infrastructure indicative of C2 beaconing.

  6. 6

    Restrict CI/CD execution privileges

    Limit the ability of build pipelines to execute arbitrary binaries dropped by npm postinstall scripts.

Industries Most Exposed

TechnologySoftware DevelopmentSaaSCloud ServicesAny industry using Node.js-based AI agent infrastructure

Sources

Respond to this threat

Pro subscribers get a full AI-generated incident-response playbook for this threat — detection, containment, eradication, and recovery steps — plus an unlimited AI Threat Advisor for questions about your environment.