Exfiltration Over C2 Channel T1041

Adversaries may steal data by exfiltrating it over an existing command and control channel. Stolen data is encoded into the normal communications channel using the same protocol as command and control communications.

Events covered

16 catalog events are tagged with this technique by at least one rule.

Authoring guide

Patterns shared across the 14 rules above: which fields they filter on, what specific values they look for, and what they exclude. The catalog normalizes field names across vendors so Sigma's Image, Elastic's process.name, and Splunk's process_name collapse into one row. Each rule contributes at most once per row.

Fields filtered most (18 distinct)

The fields most rules look at when detecting this technique. The How column shows the operators authors use (eq, wildcard, regex_match, match) and how often each appears. Sample values are concrete examples to start from, not an exhaustive list.

FieldRulesHowSample values
EventID6eq 64104, 3, 4103, 4688, 5156
CommandLine3contains 3-d, -encodedcommand, api.telegram.org, curl, webhook.site/bb8ca5f6-4175-45d2-b042-fc9ebb8170b7
ScriptBlockText3contains 3, match 1 -infile , -method , -uri , .uploadstring, createjoblocal( $folders )
Image2ends_with 2/curl, \httptunnel.exe, \plink.exe, \socat.exe
user2is_not_null 1, ne 1system
DestinationHostname1ends_with 1.portmap.io
EfectiveCommand1regex_match 1regexEmpire
EventData1contains 1-encodedcommand, powershell.exe, powershell_ise.exe
EventType1eq 1FileCreated
Initiated1eq 1true
IsActive1eq 1true
ObservableKey1eq 1ipv4-addr:value
ObservableValue1is_not_null 1
RequestURL1is_not_null 1
TargetFilename1starts_with 1driveletter

Top indicator values (40 distinct)

Specific (field, operator, value) combinations the rules check for, ranked by how many rules under this technique use each one. The Corpus reach column counts how many rules across the entire catalog (any technique) check the same combination. High numbers point to widely-used indicators that are likely noisy on their own; combine them with another condition for useful signal. Blank means the combination is specific to rules under this technique. Click a value to expand the rules under this technique that use it.

FieldKindValueRules (here)Corpus reach
EventIDeq
4104
2268
EventIDeq
3
116
EventIDeq
4103
1105
EventIDeq
4688
1312
EventIDeq
5156
115
CommandLinecontains
-d
1
CommandLinecontains
-encodedcommand
13
CommandLinecontains
api.telegram.org
1
CommandLinecontains
curl
112
CommandLinecontains
webhook.site/bb8ca5f6-4175-45d2-b042-fc9ebb8170b7
1
DestinationHostnameends_with
.portmap.io
1
EfectiveCommandregex_match
regexEmpire
1
EventDatacontains
-encodedcommand
1
EventDatacontains
powershell.exe
1
EventDatacontains
powershell_ise.exe
1
EventDatacontains
pwsh.exe
1
EventTypeeq
FileCreated
15
Imageends_with
/curl
19
Imageends_with
\httptunnel.exe
1
Imageends_with
\plink.exe
13
Imageends_with
\socat.exe
1
Imageends_with
\stunnel.exe
1
Initiatedeq
true
148
IsActiveeq
true
16
ObservableKeyeq
ipv4-addr:value
12
ScriptBlockTextcontains
-infile
1
ScriptBlockTextcontains
-method
1
ScriptBlockTextcontains
-uri
1
ScriptBlockTextcontains
post
1
ScriptBlockTextcontains
.uploadstring
1

Exclusions (9 distinct)

Field/operator/value combinations excluded by rules under this technique (top-level not() clauses), sorted by how many rules exclude each. These are the false-positive paths the community has learned to filter out. A new rule that ignores the high-count entries here will likely fire on the same noisy paths. Click a value to expand the rules under this technique that exclude it.

FieldKindValueRules excluding
dest_ipregex_match
(?i)^(127|10|172\.1[6-9]|172\.2[0-9]|172\.3[0-1]|192\.168|169\.254|20)\.|(::1...
2
CommandLinein
* --single-argument*
1
CommandLinein
*-osint -url*
1
EventDatacontains
gc_service.exe
1
EventDatacontains
gc_worker.exe
1
ParentImagecontains
gc_service.exe
1
ParentImagecontains
gc_worker.exe
1
TargetFilenamestarts_with
\\
1
TargetFilenamestarts_with
c:\\
1

Rules under this technique

Every rule in the catalog tagged with this technique, grouped by vendor. Click a rule title for its full predicates, exclusions, and indicators.

Sigma 4 rules

Splunk 6 rules

Kusto 4 rules