Exfiltration Over Web Service T1567

Tactic: Exfiltration

Adversaries may use an existing, legitimate external Web service to exfiltrate data rather than their primary command and control channel. Popular Web services acting as an exfiltration mechanism may give a significant amount of cover due to the likelihood that hosts within a network are already communicating with them prior to compromise. Firewall rules may also already exist to permit traffic to these services.

Events covered

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

Authoring guide

These 169 rules share fields, values, and exclusions.

Fields filtered most (150 distinct)

These fields appear most often in rule filters.

FieldRulesHowSample values
EventType25eq 24, in 1exec, message, ConnectionEvent, CreateInstanceExportTask, CreateStoreImageTask
CommandLine18contains 13, regex_match 6, in 2 --form, --data , --data-, (?i)\s+(((copy|move|moveto|copyto)\s+.*\S+:\S+\s+.*\S+:\S..., * account add*
EventID18eq 17, in 14688, 1, change_acl_editors, change_document_access_scope, change_document_visibility
data_stream.dataset16eq 16aws.cloudtrail, github.audit, azure.platformlogs, o365.audit, windows.sysmon
DestinationHostname13ends_with 9, contains 5, eq 1, starts_with 1, wildcard 1tunnel.ap.ngrok.com, tunnel.au.ngrok.com, tunnel.eu.ngrok.com, *.4shared.com, *.aternos.me
process_basename12eq 8, is_not_null 3, in 2, starts_with 2, node, python*, AzCopy.exe, CertReq.exe
Image11ends_with 9, eq 2, contains 1, starts_with 1/curl, \curl.exe, /aws, /azcopy, /gsutil
event.type10eq 10start, change
sourcetype10eq 9, in 1o365:management:activity, cisco:sfw:estreamer, bash_history, cisco:nvm:flowdata, cisco:nvm:flowdata:v2
QueryName9contains 6, is_not_null 3, wildcard 2, ends_with 1, .anonfiles.com, ufile.io, userstorage.mega.co.nz, *.2miners.com
event.outcome9eq 9success
OriginalFileName8eq 7, ends_with 1*gdrive.exe, CertReq.exe, ConfigSecurityPolicy.exe, DataSvcUtil.exe, azcopy.exe
Initiated7eq 7true
Provider_Name7eq 7dynamodb.amazonaws.com, sns.amazonaws.com, OneDrive, ec2.amazonaws.com, rds.amazonaws.com
process_name7regex_match 6, eq 1(?i)mega(sync|cmd), (?i)megasync\.exe|megacmd, (?i)rclone, rclone.exe

Top indicator values (1374 distinct)

These values appear most often in rule predicates.

FieldKindValueRules (here)Corpus reach
Initiatedeq
true
750
data_stream.dataseteq
aws.cloudtrail
7143
data_stream.dataseteq
github.audit
514
event.outcomeeq
success
7306
CsUsernameis_not_null
58
event.typeeq
start
51036
event.typeeq
change
389
sourcetypeeq
o365:management:activity
580
CommandLinecontains
--form
33
CommandLinecontains
--data
23
CommandLinecontains
--data-
22
CommandLinecontains
--upload-file
22
CommandLinecontains
://127.0.0.1
2
CommandLinecontains
://localhost
2
CommandLineregex_match
\s-[FTd]\s
33
EventIDeq
1
3226
EventIDeq
4688
3284
EventTypeeq
message
38
NetworkDirectioneq
outbound
34
QueryNameis_not_null
319
countgt
50
35
process_basenameis_not_null
332
resultTypein
Succeeded
351
resultTypein
Success
351
Activeeq
true
260
CommandLinein
* account add*
22
CommandLinein
* download *
23
CommandLinein
* drives *
22
CommandLinein
* files *
22
CommandLinein
* list*
22

Exclusions (235 distinct)

These values appear most often in top-level exclusions.

FieldKindValueRules excluding
CommandLinecontains
://127.0.0.1
2
CommandLinecontains
://localhost
2
IpPermissionsEgressis_null
2
aws::userAgentcontains
*Terraform*
2
dest_ipin
10.0.0.0/8
2
dest_ipin
100.64.0.0/10
2
dest_ipin
127.0.0.0/8
2
dest_ipin
169.254.0.0/16
2
dest_ipin
172.16.0.0/12
2
dest_ipin
192.0.0.0/24
2
dest_ipin
192.0.0.0/29
2
dest_ipin
192.0.0.10/32
2
dest_ipin
192.0.0.170/32
2
dest_ipin
192.0.0.171/32
2
dest_ipin
192.0.0.8/32
2

Rules under this technique

These vendors publish rules tagged with this technique.

Platform (all)
Domain (all)

Sigma 30 rules

Elastic 27 rules

Splunk 27 rules

Kusto 48 rules

YARA-L 7 rules

Panther 30 rules