Threat reportThreat IntelligenceTL-2026-6213
Claude Code Memory Stores Abused as Covert C2 Channel to Control AI Agents and Exfiltrate Data (Darktrace research)
Darktrace Signal Labs showed in a lab that an attacker who already controls a device and holds a user's Claude Console credentials can use Claude memory stores (heartbeat/input/output files) to run Claude Code agents as C2 implants. The demonstrated chain covered network discovery, an SMB password spray and exfiltration of a 1 GB file in three parts through the Claude Files API.
Key facts
| Identifiers | TL-2026-6213 |
|---|---|
| Also known as | Living off the AI, Shared Memories C2 |
| Severity | MEDIUM |
| First disclosed | |
| Affected products | Anthropic Claude Code / Claude memory stores and Files API (feature abuse, not a vulnerability) |
| Malware | DUSTMAKER, QUIETVAULT, SANDWORM_MODE, s1ngularity |
| Tools | curl, nc, nmap, smbclient |
| MITRE ATT&CK techniques | T1018 Remote System Discovery, T1030 Data Transfer Size Limits, T1039 Data from Network Shared Drive, T1046 Network Service Discovery, T1059.004 Unix Shell, T1071.001 Web Protocols, T1078.002 Domain Accounts, T1102.002 Bidirectional Communication, T1110.003 Password Spraying, T1135 Network Share Discovery, T1528 Steal Application Access Token, T1543.002 Systemd Service and 2 more in the attack flow |
| Motivation | UNKNOWN |
| Target sectors | technology, enterprise, software-development |
| Target regions | Global |
| Detection rules | 9 (1 shown free) |
| Sources | 7 cited sources |
Detection coverage
As of 2026-11-17, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-6213 across Splunk SPL, Microsoft KQL and Sigma, covering 18 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.
Free detection: AI Agent Harness Host Running Recon Tooling or SMB Spray Pattern (TL-2026-6213) — Post-Exploitation
Correlates hosts where a Claude Code harness is running with ip/ss/nc/nmap discovery tooling or 10+ smbclient executions in 15 minutes, matching the agent-driven network discovery, share enumeration and SMB password spray in the lab chain.
- Languages: Splunk SPL, Microsoft KQL, Sigma
- ATT&CK: T1046, T1018, T1135, T1039, T1110.003
- Data sources: index=linux sourcetype=sysmon:linux (Sysmon for Linux EventID 1), auditd, defender_for_endpoint_linux
- Severity: high
- Confidence: medium
Splunk SPL
index=linux sourcetype="sysmon:linux" EventCode=1
(Image="*/claude" OR CommandLine="*claude*" OR ParentCommandLine="*claude*" OR Image IN ("*/nmap","*/smbclient","*/nc","*/ncat","*/ss"))
| eval is_harness=if(match(Image,"/claude$") OR match(ParentImage,"/claude$") OR like(CommandLine,"%@anthropic-ai/claude-code%"),1,0)
| eval recon_tool=case(match(Image,"/nmap$"),"nmap", match(Image,"/smbclient$"),"smbclient", match(Image,"/(nc|ncat)$"),"nc", match(Image,"/ss$"),"ss", true(),null())
| eval is_smbclient=if(recon_tool="smbclient",1,0)
| bin _time span=15m
| stats max(is_harness) AS harness_present dc(recon_tool) AS recon_tool_count sum(is_smbclient) AS smbclient_runs values(recon_tool) AS recon_tools values(eval(if(isnotnull(recon_tool),CommandLine,null()))) AS recon_cmdlines by host, _time
| where harness_present=1 AND (recon_tool_count>=2 OR smbclient_runs>=10)Microsoft KQL
// AI agent harness host running discovery tooling (ss/nc/nmap) or bulk smbclient (SMB spray / share enumeration)
let HarnessHosts = DeviceProcessEvents
| where Timestamp > ago(24h)
| where FileName =~ "claude" or ProcessCommandLine has "@anthropic-ai/claude-code"
| summarize HarnessFirstSeen = min(Timestamp) by DeviceId;
DeviceProcessEvents
| where Timestamp > ago(24h)
| where FileName in~ ("nmap", "smbclient", "nc", "ncat", "ss")
| summarize ReconTools = make_set(FileName), ToolCount = dcount(FileName), SmbclientRuns = countif(FileName =~ "smbclient"),
Commands = make_set(ProcessCommandLine, 20), FirstSeen = min(Timestamp), LastSeen = max(Timestamp)
by DeviceId, DeviceName, Window = bin(Timestamp, 15m)
| where ToolCount >= 2 or SmbclientRuns >= 10
| join kind=inner HarnessHosts on DeviceId
| where FirstSeen >= HarnessFirstSeen
| project Window, DeviceName, ReconTools, SmbclientRuns, Commands, HarnessFirstSeen, FirstSeen, LastSeenSigma
title: Linux Credential Store Harvesting and SMB Recon Tooling Consistent with Agent-Driven Intrusion
id: 8b3e2f14-6213-4c7d-a2e5-91d4c6b0f702
status: experimental
description: Detects reads of Claude Code credential files or API key variables by generic utilities, and smbclient/nmap share and service discovery, as seen in the TL-2026-6213 lab chain.
references:
- https://www.darktrace.com/blog/living-off-the-ai-shared-memories-as-a-covert-c2-channel
- https://gbhackers.com/claude-code-memory-hijacked/
author: Threadlinqs Team
date: 2026-11-17
tags:
- attack.credential-access
- attack.t1552.001
- attack.t1528
- attack.discovery
- attack.t1046
- attack.t1135
- attack.t1110.003
logsource:
category: process_creation
product: linux
detection:
selection_cred_read:
Image|endswith:
- '/cat'
- '/grep'
- '/base64'
- '/tar'
- '/curl'
CommandLine|contains:
- '.claude/.credentials.json'
- '.claude.json'
- 'ANTHROPIC_API_KEY'
selection_smb:
Image|endswith: '/smbclient'
CommandLine|contains:
- ' -L '
- ' -U '
selection_nmap:
Image|endswith: '/nmap'
CommandLine|contains:
- ' -sV'
- ' -p'
- ' -sC'
condition: 1 of selection_*
falsepositives:
- Administrators auditing SMB shares or scanning their own networks
- Backup or config-management jobs that read Claude configuration files
level: medium
Known false positives:
- Sysadmins running nmap/smbclient on a host where developers also use Claude Code
- Security scanning jobs
Tuning notes: Tune smbclient_runs and tool-count thresholds to environment size. Exclude vulnerability-scanner hosts. Add 4625/4771 correlation on the domain controller to confirm spray outcomes.
- Claude Code Harness Persistence via Transient systemd Unit — KQL (TL-2026-6213) · unlock with TL Creds
- Agent Harness Host Executing Discovery Tools and SMB Enumeration — KQL (TL-2026-6213) · unlock with TL Creds
- High-Volume or Repeated Claude Files API Uploads via Proxy — KQL (TL-2026-6213) · unlock with TL Creds
- Claude Code Harness Launched via Transient systemd Unit — Sigma (TL-2026-6213) · unlock with TL Creds
- Credential File Harvesting and SMB/Network Recon Tooling — Sigma (TL-2026-6213) · unlock with TL Creds
- Upload to Claude Files API or Memory Store API via Proxy — Sigma (TL-2026-6213) · unlock with TL Creds
- Claude Code Harness Persistence via Transient systemd Unit (TL-2026-6213) — Execution · unlock with TL Creds
- Anomalous Upload Volume to Claude Files/Memory API (TL-2026-6213) — C2 and Exfiltration · unlock with TL Creds
Indicators of compromise
As of 2026-11-17, Threadlinqs Intelligence tracks 18 indicators of compromise for TL-2026-6213.
Sample indicators (2 of 18)
- Domain:
api[.]anthropic[.]com - Domain:
platform[.]claude[.]com
Defanged, TLP:CLEAR. Full set of 18 indicators: unlock with TL Creds.
Technical analysis
It does not rely on a vulnerability in the Claude platform and has not been observed in the wild.
Darktrace Signal Labs (Moishe Tajtelbaum and Sam Lister) published 'Living off the AI: Shared Memories as a Covert C2 Channel' on 2026-11-12. GBHackers covered it on 2026-11-17. The work is a lab proof of concept. Darktrace states the technique does not rely on a vulnerability in the Claude platform and has not been observed in the wild. It requires an existing foothold on a device and a user's Claude Console API and OAuth credentials.
The C2 channel is the Claude memory stores feature. The operator creates a memory store in a Claude Console workspace the victim user is assigned to, containing three text files. The heartbeat file receives a time-stamped check-in from each harness process. The input file holds natural-language jobs for the agent. The output file receives the agent's results. All traffic goes to api.anthropic.com, the same endpoint used for normal inference, so it blends with legitimate agent activity. The Console at platform.claude.com can view and edit the stores.
In the lab chain, a lightweight payload was fetched with curl from a remote staging server and run via dash. It located a Claude Code harness, collected Claude Console API and OAuth credentials and sent them to the staging server. The server returned the memory store and file identifiers. The script then used systemd-run to create a transient systemd service that repeatedly launched Claude Code harness processes. Each process checks in, then invokes a Claude Sonnet 4.5 model in non-interactive mode to run the queued job. The initial script was then discarded. The operator queued nine jobs, each run in a separate harness process. Because objectives are written in natural language, the agent chooses its own tooling, which lowers the skill needed by the operator.
The agent ran ip, ss and nc, found 192.168.1.2 with FTP, SMB and SSH open, and ran a targeted nmap scan. It enumerated and downloaded files over anonymous FTP, which contained employee details and a password. It generated a list of about 190 usernames and sprayed the password against the domain controller over SMB, which found one valid account (greg.simon, a fictitious lab account). smbclient listed shares and revealed a 1 GB file. The agent downloaded it, split it into three parts and uploaded them through the Claude Files API (api.anthropic.com/v1/files).
Darktrace's detection guidance is behavioral: correlate process creation with network activity for agent harness processes, flag tool calls with unusual command-line arguments, and flag unusual data-transfer ratios to the AI platform API, all against behavioral baselines. The article has no dedicated mitigations section and does not describe a vendor-side fix or Anthropic's response. Related public reports describe credential stealers that hand secret hunting to on-device AI agents (QUIETVAULT, s1ngularity, SANDWORM_MODE, DUSTMAKER). The article notes these lack a feedback loop, which the memory-store channel adds. No payload hashes, staging server addresses or binaries were published. The only indicators are lab artifacts and legitimate Anthropic endpoints, so IOCs in this record are behavioral and hunting pivots, not malicious infrastructure.
MITRE ATT&CK techniques by tactic:
Discovery
T1018 Remote System Discovery; T1046 Network Service Discovery; T1135 Network Share Discovery
Exfiltration
T1030 Data Transfer Size Limits; T1567 Exfiltration Over Web Service
Collection
T1039 Data from Network Shared Drive
Execution
Command and Control
T1071.001 Web Protocols; T1102.002 Bidirectional Communication
Defense Evasion
Credential Access
T1110.003 Password Spraying; T1528 Steal Application Access Token; T1552.001 Credentials In Files
Persistence
Remediation
Immediate actions
- Hunt for Claude Code harness processes launched from transient systemd units (systemd-run) or with unusual command-line arguments
- Review Claude Console workspaces for unexpected memory stores containing heartbeat, input and output files
- Rotate Claude Console API keys and OAuth tokens on hosts suspected of compromise
Workarounds
- Limit Claude Console workspace membership and use least-privilege, short-lived credentials
- Block or proxy-inspect AI platform API egress from servers that do not need it
Longer-term hardening
- Baseline process creation and network activity for AI agent harness processes and alert on deviations
- Monitor data-transfer ratios to api.anthropic.com, especially uploads to /v1/files
- Restrict which hosts and users may reach AI platform APIs and limit stored credential exposure on developer and server hosts
Affected and fixed versions
- Anthropic — Claude Code / Claude memory stores and Files API (feature abuse, not a vulnerability)
Timeline
- Malicious Nx build tool versions were published to npm (August 2025, the s1ngularity incident); the malware invoked locally installed AI coding agents to hunt for secrets and exfiltrated them to public GitHub repositories (Checkmarx Zero). Day-of-month is the widely reported date; Checkmarx states only the month.
- Splunk Threat Research created its QuietVault analytic story covering a Google Threat Intelligence Group-identified JavaScript stealer that uses on-host AI CLI tools with crafted prompts to find secrets (last updated 2026-05-13).
- Cloud Security Alliance research note on agentic C2 (AI agents as command-and-control infrastructure), following BeyondTrust Phantom Labs' agentic C2 proof of concept using Claude computer use.
- Darktrace disclosed its separate agentic-harness hijacking research (conversation history poisoning) to Anthropic, OpenAI and AWS.
- Darktrace published 'Agent Hijacks: Hijacking Agentic Harnesses to Attack an Organization', the earlier research cited by the memory-store C2 paper.
- Checkmarx Zero published 'When malware borrows your AI coding agent to find your secrets', analysing QUIETVAULT and s1ngularity as malware that delegates secret hunting to installed AI CLIs.
- Darktrace Signal Labs published 'Living off the AI: Shared Memories as a Covert C2 Channel', a lab demonstration of Claude memory stores as an agent C2 channel.
- GBHackers reported the Darktrace research. Darktrace states no vulnerability is involved and the technique has not been observed in the wild.
Sources cited
- Living off the AI: Shared Memories as a Covert C2 Channel (Darktrace) darktrace.com · Research · 2026-11-12
- Agent Hijacks: Hijacking Agentic Harnesses to Attack an Organization (Darktrace) darktrace.com · Research · 2026-09-24
- Agentic C2: AI Agents as Command-and-Control Infrastructure (Cloud Security Alliance research note) labs.cloudsecurityalliance.org · Research · 2026-04-17
- Analytics Story: QuietVault (Splunk) research.splunk.com · Research · 2026-03-13
- When malware borrows your AI coding agent to find your secrets (Checkmarx) checkmarx.com · Blog · 2026-10-29
- Hackers Could Hijack Claude Code Memory to Control AI Agents and Steal Sensitive Corporate Data (GBHackers) gbhackers.com · News · 2026-11-17
- Darktrace proved that AI agent tools can be hijacked through their own memory (Forkast) forkast.news · News
Drafted by the Threadlinqs research pipeline from 7 sources; published ; last updated —.