RedC2 AI-Powered Linux Implant npm Supply Chain Attack
Score: 9/10

RedC2 AI-Powered Linux Implant npm Supply Chain Attack

A cluster of trojanized npm packages delivers the RedShell Linux implant, which features an AI-driven post-exploitation layer called Red Agent.

Executive Summary

TrendAI Research has identified a sophisticated supply chain attack targeting the npm ecosystem via a cluster of trojanized packages (e.g., streak-metrics-math). These packages provide legitimate date-utility functionality but bundle a malicious Linux ELF payload named RedShell. The loader is uniquely dangerous as it executes the payload via an async IIFE upon module import, bypassing traditional npm lifecycle hook protections like --ignore-scripts.

The RedC2 framework (v4.0+) introduced RedShell for Linux alongside 'Red Agent,' an LLM-backed orchestration layer that allows threat operators to convert natural-language prompts into complex post-exploitation tasks. The implant supports a wide array of capabilities, including credential harvesting, network pivoting via SOCKS5/TCP forwarding, and fileless execution using memfd_create.

This campaign signifies a growing trend in offensive AI integration, where LLMs lower the barrier for multi-stage intrusions. Affected organizations face risks of data exfiltration and long-term persistence through cron jobs, systemd services, and XDG autostart entries. Immediate sweeping for the C2 infrastructure at 217.60.77.63 is recommended.

Key Details

Threat Name

RedC2 Linux Implant

Affects

—

Adversary

—

Malware/Tools

RedC2, RedShell, Red Agent, Red Vert, Red Runner

Report Score

9out of 10
Quality Score
Excellent
IOC Quality9
TTP Details9
Detection Guidance8
Enterprise Relevance9
Clarity & Structure10
Technical Depth9

Sources