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 167 rules share fields, values, and exclusions.

Fields filtered most (201 distinct)

These fields appear most often in rule filters.

FieldRulesHowSample values
EventType25eq 24, in 1exec, message, connectionevent, PutBucketReplication, cloudaudit
EventID18eq 17, in 14688, 1, change_acl_editors, change_document_access_scope, change_document_visibility
process_name18eq 8, regex_match 6, is_not_null 3, starts_with 2, in 1(?i)mega(sync|cmd), (?i)megasync\.exe|megacmd, (?i)rclone, node, python
CommandLine17contains 12, regex_match 6, in 2 --form, --data , --data-, (?i)\s+(((copy|move|moveto|copyto)\s+.*\S+:\S+\s+.*\S+:\S..., * account add*
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, *.s3*.amazonaws.com, .4shared.com
Image11ends_with 9, eq 2, contains 1, starts_with 1/curl, \curl.exe, /aws, /azcopy, /gsutil
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, *.4shared.com
event.outcome9eq 9success
event.type9eq 9start, change
host.os.type9eq 9
Initiated7eq 7true
OriginalFileName7eq 6, ends_with 1certreq.exe, configsecuritypolicy.exe, curl.exe, datasvcutil.exe, gdrive.exe
Provider_Name7eq 7dynamodb.amazonaws.com, sns.amazonaws.com, ec2.amazonaws.com, onedrive, rds.amazonaws.com

Top indicator values (1462 distinct)

These values appear most often in rule predicates.

FieldKindValueRules (here)Corpus reach
event.outcomeeq
success
9375
data_stream.dataseteq
aws.cloudtrail
8173
data_stream.dataseteq
github.audit
518
Initiatedeq
true
750
event.typeeq
start
61087
event.typeeq
change
395
sourcetypeeq
o365:management:activity
580
EventIDeq
4688
4317
EventIDeq
1
3242
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
EventTypeeq
exec
3579
EventTypeeq
message
38
NetworkDirectioneq
outbound
34
countgt
50
35
resultTypein
Succeeded
351
resultTypein
Success
351
Activeeq
true
270
CommandLinein
* account add*
22
CommandLinein
* download *
23
CommandLinein
* drives *
22
CommandLinein
* files *
22
CommandLinein
* list*
22
CommandLinein
* share *
22
CommandLinein
* sync *
22

Exclusions (202 distinct)

These values appear most often in top-level exclusions.

FieldKindValueRules excluding
CommandLinecontains
://127.0.0.1
2
CommandLinecontains
://localhost
2
aws::userAgentcontains
terraform
2
process.code_signature.trustedeq
true
2
process_nameregex_match
(?i)(cmd|powershell).exe
2
DestinationHostnameends_with
.azurewebsites.net
1
DestinationHostnameends_with
.b-cdn.net
1
DestinationHostnameends_with
.blob.core.windows.net
1
DestinationHostnameends_with
.blob.storage.azure.net
1
DestinationHostnameends_with
.blogspot.com
1
DestinationHostnameends_with
.sharepoint.com
1
DestinationHostnameeq
api.onedrive.com
1
DestinationHostnameeq
drive.google.com
1
DestinationHostnameeq
onedrive.live.com
1
DestinationHostnamein
cdn.discordapp.com
1

Rules under this technique

These vendors publish rules tagged with this technique.

Platform (all)
Domain (all)

Sigma 30 rules

Elastic 26 rules

Splunk 26 rules

Kusto 48 rules

YARA-L 7 rules

Panther 30 rules