Web Service T1102

Tactic: Command & Control

Adversaries may use an existing, legitimate external Web service as a means for relaying data to/from a compromised system. Popular websites, cloud services, and social media acting as a mechanism for C2 may give a significant amount of cover due to the likelihood that hosts within a network are already communicating with them prior to a compromise. Using common services, such as those offered by Google, Microsoft, or Twitter, makes it easier for adversaries to hide in expected noise. Web service providers commonly use SSL/TLS encryption, giving adversaries an added level of protection.

Events covered

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

Authoring guide

These 73 rules share fields, values, and exclusions.

Fields filtered most (58 distinct)

These fields appear most often in rule filters.

FieldRulesHowSample values
process_basename25in 12, eq 9, starts_with 6, wildcard 5, is_not_null 3.*, bash, busybox, node,
EventType21eq 16, in 4, ne 1exec, lookup_result, start, ProcessRollup2, exec_event
DestinationHostname17contains 8, ends_with 7, starts_with 2, wildcard 2, eq 1, in 1, is_null 1.localto.net, .localtonet.com, tunnel.ap.ngrok.com, tunnel.au.ngrok.com, tunnel.eu.ngrok.com
Image16ends_with 8, wildcard 8, starts_with 5, eq 4, contains 3, is_null 3./*, /boot/*, /dev/shm/*, , C:\Program Files (x86)\Avant Browser\
QueryName16wildcard 7, is_not_null 6, ends_with 4, in 2, contains 1, ne 1, *.4shared.com, *.aternos.me, *.geojs.io, *.000webhostapp.com
event.type15eq 15start, creation
CommandLine11contains 9, in 2 tunnel , *--config*, *api.telegram.org*, *authtoken*, *http*
Initiated5eq 5true
DvcAction3eq 1, in 1, starts_with 11, 3, BLOCK_, NONE
EventID3eq 322, 4688
OriginalFileName3eq 3PowerShell.EXE, RegAsm.exe, RegSvcs.exe, Runner.Listener.dll, Runner.Worker.dll
event.category3eq 3network, process
process.args3eq 3--endpoint-url, -CLSID:{0002DF01-0000-0000-C000-000000000046}, tunnel
process_name3contains 2, ne 1squid, telegram.exe
CurrentDirectory2starts_with 1, wildcard 1/boot*, /dev/shm*, /home/*/*, /lost+found*

Top indicator values (1562 distinct)

These values appear most often in rule predicates.

FieldKindValueRules (here)Corpus reach
event.typeeq
start
131036
process_basenamein
curl
982
process_basenamein
bash
7181
process_basenamein
sh
7180
process_basenamein
wget
741
process_basenamein
zsh
7180
process_basenamein
busybox
667
process_basenamein
csh
6148
process_basenamein
dash
6150
process_basenamein
env
616
process_basenamein
fish
6151
process_basenamein
ksh
6149
process_basenamein
tcsh
6145
EventTypeeq
exec
7547
EventTypeeq
lookup_result
69
Imagewildcard
./*
611
Imagewildcard
/boot/*
613
Imagewildcard
/dev/shm/*
616
Imagewildcard
/home/*/*
615
Imagewildcard
/lost+found/*
69
Imagewildcard
/proc/*
69
Imagewildcard
/root/*
610
Imagewildcard
/run/*
69
Imagewildcard
/sys/*
69
Imagewildcard
/tmp/*
617
Imagewildcard
/var/mail/*
69
Imagewildcard
/var/run/*
67
Imagewildcard
/var/tmp/*
616
Imagewildcard
/var/www/*
69
QueryNameis_not_null
619

Exclusions (507 distinct)

These values appear most often in top-level exclusions.

FieldKindValueRules excluding
Imageends_with
\WindowsApps\MicrosoftEdge.exe
5
Imageends_with
\brave.exe
5
Imageends_with
\maxthon.exe
5
Imageends_with
\msedge.exe
5
Imageends_with
\msedgewebview2.exe
5
Imageends_with
\opera.exe
5
Imageends_with
\safari.exe
5
Imageends_with
\seamonkey.exe
5
Imageends_with
\vivaldi.exe
5
Imageends_with
\whale.exe
5
Imageeq
C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
4
Imageeq
C:\Program Files (x86)\Internet Explorer\iexplore.exe
4
Imageeq
C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe
4
Imageeq
C:\Program Files (x86)\Mozilla Firefox\firefox.exe
4
Imageeq
C:\Program Files\Google\Chrome\Application\chrome.exe
4

Rules under this technique

These vendors publish rules tagged with this technique.

Platform (all)
Domain (all)

Sigma 19 rules

Elastic 31 rules

Splunk 6 rules

Kusto 17 rules