Signal Labs researchers have demonstrated that attackers can transform Claude Code agents into live command-and-control (C2) implants. This exploit leverages the Claude platform's memory stores feature. Attackers frequently "live off the land."

They exploit existing tools within a network rather than deploying new ones, allowing them to blend in. Claude Code Memory Hijacked Claude's memory stores, known as Claude Code, are collections of text files linked to a Claude Console workspace.

With stolen API credentials, an attacker can add a memory store and create three files within it: Heartbeat file: The agent sends a check-in message each time it starts. The attacker requires less skill because they can set a goal in simple language, and the agent can choose the commands. The test utilized a simulated Active Directory network with a Linux device running Claude Code, an SMB server, and a domain controller.

Darktrace Advanced Search data indicates process creation activity from dash processes executing shell commands from the initial payload (Source: darktrace). A small shell payload discovered the Claude harness, obtained the user’s API and OAuth credentials, and transmitted them to a staging server. The agent executed these actions: It scanned the network and identified a server at 192.168.1.2 with open FTP, SMB, and SSH ports.

Join 16,000+ SOC teams using ANY.RUN to streamline threat investigations and reduce manual effort.