When an implant is already talking to its operator, the cheapest way to steal data is to send it down the same connection, and that is exactly what most intrusions do. MITRE ATT&CK tracks this as T1041 Exfiltration Over C2 Channel in the Exfiltration tactic (TA0010): stolen data is encoded into the normal command and control traffic using the same protocol. It has no sub-techniques and applies to Windows, Linux, macOS and ESXi in ATT&CK v20. This guide covers how the technique appears in real procedures, the telemetry and correlations that separate an exfiltrating implant from a quiet beacon, the controls that limit what can leave, and how to test your coverage. It is for SOC analysts, detection engineers and incident responders. For data theft across all channels, see the Data Exfiltration Guide; for finding the channel itself, see the Beaconing and C2 Detection Guide.
Key takeaways
- It is the default exfiltration path. ATT&CK v20 records more procedure examples for T1041 than for almost any other exfiltration technique, across espionage groups, ransomware crews and commodity stealers.
- Find the channel and you find the theft. T1041 cannot happen without an established C2 channel, so beacon detection and egress control are the first line; exfiltration analytics are the second.
- Direction changes, protocol does not. The tell is a long-lived session whose upload volume suddenly exceeds download volume, shortly after file access or archiving on the same host.
- ATT&CK lists only two mitigations. M1031 Network Intrusion Prevention and M1057 Data Loss Prevention; default-deny egress for servers and hypervisors does more in practice.
- Credentials are a common payload. Stealers and intrusion sets send harvested passwords, tokens and domain credentials over C2 first, so every confirmed T1041 event should trigger a credential rotation decision.
What T1041 is, and what it is not
The ATT&CK v20 description is short: adversaries steal data by exfiltrating it over an existing command and control channel, encoded into the normal communications using the same protocol. The defining feature is reuse. The adversary does not open a new connection type, sign in to a new web service or plug in a device; the same HTTP(S), DNS, SMTP or custom TCP session that carries tasking also carries the files.
That makes the boundary with neighbouring techniques important when you classify an incident or map coverage:
| Technique | How data leaves | Classify as T1041 when |
|---|---|---|
| T1041 Exfiltration Over C2 Channel | The implant's existing C2 protocol and destination | Upload goes to the same infrastructure that issues commands |
| T1048 Exfiltration Over Alternative Protocol | A different protocol from the C2 channel, such as FTP or DNS while C2 uses HTTPS | Not T1041: protocol differs from the C2 channel |
| T1567 Exfiltration Over Web Service | A legitimate service such as cloud storage or a code repository | Only when that service is itself the C2 channel (for example a Dropbox API C2) |
| T1020 Automated Exfiltration | Scripted collection and sending | Often combined: an automated stealer that posts results to its C2 |
| T1030 Data Transfer Size Limits | Data split into fixed-size chunks | Combined when chunks are sent over the C2 channel to stay under thresholds |
The overlap with T1567 is real in ATT&CK's own data: ZIRCONIUM (G0128) is recorded as exfiltrating files via a Dropbox API C2, and OilBooster (S1172) uses an actor-controlled OneDrive account for both C2 and exfiltration. If the cloud service carries commands too, the theft is T1041 riding a T1102 Web Service channel. See T1567 Exfiltration Over Web Service and T1048 Exfiltration Over Alternative Protocol for the other two branches.
How adversaries use it: cases from ATT&CK v20
The procedure examples show the range of channels and payloads. Each entry below is taken from the ATT&CK v20 technique data with the source ATT&CK cites.
| Actor or software | What ATT&CK records | Defensive point |
|---|---|---|
| Scattered Spider (G1015) | Exfiltrated data from compromised VMware vCenter servers through an established C2 channel using the Teleport remote access tool (Mandiant, July 2025) | Hypervisor management planes need egress control and logging like any server |
| Leviathan (G0065) | Exfiltrated data over its C2 channel (CISA advisory AA21-200A); also during the Leviathan Australian Intrusions campaign (C0049) | Long-running espionage relies on the same channel for months |
| Wizard Spider (G0102) | Exfiltrated domain credentials and network enumeration information over C2 | Credential theft over C2 precedes ransomware deployment |
| Ke3chang (G0004) | Transferred compressed and encrypted RAR files through the established backdoor C2 channel | Archive creation (T1560) is the precursor to watch |
| BRICKSTORM (S9015) | Uploaded files from victim systems to C2 servers (CISA AR25-338A, CrowdStrike, December 2025) | Backdoors on appliances and vCenter evade endpoint agents |
| StrelaStealer (S1183) | Exfiltrates collected email credentials via HTTP POST to C2 | A single small POST can be the whole theft |
| Contagious Interview (G1052), BeaverTail (S1246) | Exfiltrated data from developer hosts to actor-controlled C2 servers | Developer machines hold tokens and keys worth more than documents |
| Shark (S1019), NightClub (S1090) | Upload over DNS or HTTP C2 (Shark); SMTP and DNS for exfiltration and C2 (NightClub) | DNS and mail channels need volume analytics, not just web proxies |
The Scattered Spider case is worth reading in full. Mandiant's July 2025 report on UNC3944 describes the group installing Teleport as a systemd service on the vCenter Server Appliance, creating an encrypted reverse shell that bypassed most egress rules, then copying a domain controller's NTDS.dit from a detached virtual disk and moving it out through that channel to attacker-controlled cloud storage. No endpoint agent ran on the appliance, so the only usable signals were vCenter events, appliance logs and outbound flows from the management network. See the Scattered Spider Threat Actor Profile and the BRICKSTORM Backdoor Guide.
What to detect and where
ATT&CK v20 publishes one detection strategy for the technique, DET0348 Detection Strategy for Exfiltration Over C2 Channel, with four platform analytics. All four look for the same chain: access to data, then outbound traffic whose volume, direction or destination does not fit the process.
| Analytic | Platform | Log sources named in v20 | Tuning elements v20 exposes |
|---|---|---|---|
| AN0988 | Windows | Sysmon Event ID 1 (process creation), 3 and 22 (network connection, DNS query); Security 4663, 4670, 4656 (file access); flow or packet capture | Data volume threshold; known benign processes |
| AN0989 | Linux | auditd execve and connect syscalls; Zeek conn.log, files.log and ssl.log; session stats where bytes out exceed bytes in | Outbound entropy score; connection duration |
| AN0990 | macOS | Unified log open, sendto and connect messages; osquery socket_events and process_events | Parent process ancestry; protocol list |
| AN0991 | ESXi | vpxa connection and transmission logs; vmkernel network stack logs; syslog | Guest OS allowlist; transfer size threshold; protocol allowlist |
Correlations that work
- Read, pack, send: a burst of file reads (4663 or auditd open) or an archive write (Sysmon 11 for .zip, .rar or .7z) followed within minutes by an outbound session from the same process tree. Ke3chang's RAR-over-backdoor pattern fits this exactly.
- Ratio flip on a known channel: per host and destination, track bytes out against bytes in. A beacon that has exchanged small, regular check-ins for days and then uploads tens of megabytes is the clearest T1041 signal. D3FEND describes the method as D3-PHDURA Per Host Download-Upload Ratio Analysis.
- Unusual sender process: network connections from processes that rarely talk to the internet, such as rundll32.exe, regsvr32.exe, an Office application or a script host, carrying sustained uploads.
- Management plane egress: any outbound session from vCenter, ESXi, backup servers or network appliances to destinations outside the vendor update and support list. The Mandiant report recommends logging denied connections on the appliance firewall and forwarding ESXi and vCenter logs to the SIEM.
- DNS volume per host: long query names, high unique subdomain counts or TXT-heavy traffic to one domain, which covers DNS C2 used by tools such as Shark and NightClub.
Two practical limits apply. TLS hides content, so detection relies on volume, timing and process context rather than payload inspection; and many C2 frameworks throttle uploads, which is why T1030 chunking analytics belong in the same rule set. See the Zeek Network Monitoring Guide and the NetFlow and IPFIX Flow Telemetry Guide for the network side.
Mitigations
ATT&CK v20 maps two mitigations to T1041. Both help, neither is sufficient alone, so the table adds the controls NHI Mgmt Group recommends around them.
| Control | Source | What it does against T1041 | Limits |
|---|---|---|---|
| M1031 Network Intrusion Prevention | ATT&CK v20 | Signatures for specific malware C2 protocols block or flag the channel, and therefore the exfiltration | Signature-based; ATT&CK notes signatures may change with protocol variants |
| M1057 Data Loss Prevention | ATT&CK v20 | Detects and blocks sensitive data sent over unencrypted protocols | Encrypted or encoded C2 payloads defeat content inspection |
| Default-deny egress for servers and hypervisors | NHI Mgmt Group recommendation (D3FEND D3-OTF Outbound Traffic Filtering) | Removes the channel for most server implants; only named update and API destinations are reachable | Needs an inventory of legitimate destinations per role |
| Forced proxy with TLS inspection for user devices | NHI Mgmt Group recommendation | Gives method, size and destination per request; categorises newly registered domains | Legal, privacy and pinning exceptions; certificate-pinned implants fail closed, which is itself a signal |
| Protective DNS and blocking direct DNS to the internet | NHI Mgmt Group recommendation | Forces DNS through a resolver you log, which exposes DNS C2 | DNS over HTTPS from implants needs proxy controls too |
| Hypervisor lockdown and logging | Mandiant UNC3944 guidance | vSphere lockdown mode, execInstalledOnly, appliance iptables allowlists with logging, remote syslog | Requires change control for vendor support sessions |
Where identity fits
T1041 is frequently how stolen machine and user credentials leave. ATT&CK records Wizard Spider sending domain credentials, SUGARDUMP and StrelaStealer sending harvested credentials, and the SharePoint ToolShell exploitation campaign (C0058) sending stolen credentials and internal data over HTTPS to C2. On developer and build hosts, the payload is often cloud keys, CI tokens and package publishing tokens. Treat a confirmed T1041 event as a credential exposure: list the secrets the host could read (environment variables, credential files, browser stores, agent sockets), rotate them, and review their recent use from new locations. Short-lived, workload-bound credentials reduce what a single upload is worth. See the Command and Control (C2) Guide for the channel and the Contagious Interview Threat Actor Profile Guide for the developer-targeting case.
How to roll out and test coverage
- Join the telemetry first: make sure process creation, network connection and file access events share host and process identifiers with your flow or proxy data. Without the join, the read-pack-send correlation cannot run.
- Baseline per role: compute normal outbound byte ratios per host role (workstation, file server, build runner, backup server, hypervisor). Backup and sync hosts need their own baselines or they drown the alert.
- Deploy analytics in alert-only mode: run the ratio-flip and unusual-sender rules for two to four weeks, review every hit, and add documented exclusions rather than raising thresholds blindly.
- Close server egress: move server, hypervisor and appliance segments to default-deny egress in stages, starting with segments that have the fewest legitimate destinations. Keep each change as a reversible firewall policy with an owner, so it can be rolled back in minutes if a business flow breaks.
- Test with an authorised emulation: in a lab or approved scope, have a red team or breach and attack simulation tool upload a known test file of fixed size over an HTTPS and a DNS channel from a test host. Confirm which analytics fired, how long they took and whether the egress policy blocked the transfer.
- Feed results back: record each test against DET0348 analytics in your coverage map, and repeat after major network or EDR changes.
Small organisations without a SIEM can still get value: EDR network events plus a DNS filtering service and a firewall that reports per-host upload volume cover the ratio-flip and DNS cases. Larger estates should prioritise the hypervisor and appliance segments, where agents cannot run and Scattered Spider and BRICKSTORM operated.
Measuring whether it works
- Egress coverage: share of server and management segments under default-deny egress.
- Telemetry join rate: share of outbound flows that can be attributed to a host and process.
- Emulation detection rate: share of authorised T1041 test transfers detected, and median time to alert.
- Alert precision: ratio of confirmed to dismissed ratio-flip alerts per month, tracked after each tuning change.
- Rotation time: median time from confirmed exfiltration to rotation of every credential the host could reach.
Common failure patterns
- Watching only user devices: proxies and DLP cover laptops while vCenter, ESXi and backup servers have open egress and no agent, which is the route used in the UNC3944 intrusions.
- Treating beacon alerts as low priority: a beacon is the precondition for T1041; leaving it open for days gives the operator time to collect and send.
- Content-only DLP: relying on DLP pattern matching when the C2 channel is encrypted, so the upload passes as unknown TLS.
- One global volume threshold: a single bytes-out limit fires constantly on backup hosts and never on a stealer sending a few kilobytes of credentials.
- Ignoring DNS and mail: analytics built on proxy logs alone miss DNS and SMTP channels that ATT&CK records for several tools.
- No credential follow-through: cleaning the host but not rotating the tokens and keys that were sent out.
Framework mapping
| Framework | Reference | Relevance |
|---|---|---|
| MITRE ATT&CK v20 | TA0010 Exfiltration; T1041; DET0348; M1031, M1057 | Technique, detection strategy and listed mitigations |
| MITRE D3FEND | D3-OTF Outbound Traffic Filtering; D3-PHDURA Per Host Download-Upload Ratio Analysis; D3-NTA Network Traffic Analysis | Defensive techniques NHI Mgmt Group considers relevant |
| NIST SP 800-53 Rev. 5 | SC-7 Boundary Protection; SC-7(10) Prevent Exfiltration; AC-4 Information Flow Enforcement | Egress architecture and allowlisting |
| NIST SP 800-53 Rev. 5 | SI-4(4) Inbound and Outbound Communications Traffic; SI-4(18) Analyze Traffic and Covert Exfiltration | Volume and direction analytics |
| NIST CSF 2.0 | PR.DS-02; DE.CM-01 | Protecting data in transit; monitoring networks |
Practitioner checklist
- Map DET0348 analytics AN0988 to AN0991 to the log sources you actually collect on each platform, including ESXi.
- Join process, file and network telemetry on host and process identifiers.
- Baseline outbound byte ratios per host role and alert on ratio flips on long-lived sessions.
- Alert on sustained uploads from rundll32.exe, regsvr32.exe, script hosts and Office applications.
- Put vCenter, ESXi, backup and appliance segments under default-deny egress with logged denies.
- Force DNS through a logged resolver and analyse per-host query volume and subdomain entropy.
- Run authorised T1041 emulations over HTTPS and DNS at least twice a year and record the results.
- Rotate every credential a host could reach whenever exfiltration over C2 is confirmed.
Standards and references
- MITRE ATT&CK: Exfiltration Over C2 Channel (T1041)
- MITRE ATT&CK: Exfiltration (TA0010)
- MITRE D3FEND: Per Host Download-Upload Ratio Analysis
- MITRE D3FEND: Outbound Traffic Filtering
- Google Threat Intelligence (Mandiant): From Help Desk to Hypervisor, Defending Your VMware vSphere Estate from UNC3944
- NIST: SP 800-53 Rev. 5
- NIST: Cybersecurity Framework 2.0
Related NHI Mgmt Group resources: ATT&CK Exfiltration Tactic · Data Exfiltration Guide · Beaconing and C2 Detection Guide · M1057 Data Loss Prevention · Mobile T1646 Exfiltration Over C2 Channel