System Service Discovery T1007

Tactic: Discovery

Adversaries may try to gather information about registered local system services. Adversaries may obtain information about services using tools as well as OS utility commands such as sc query, tasklist /svc, systemctl --type=service, and net start. Adversaries may also gather information about schedule tasks via commands such as `schtasks` on Windows or `crontab -l` on Linux and macOS.

Events covered

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

Authoring guide

These 25 rules share fields, values, and exclusions.

Fields filtered most (20 distinct)

These fields appear most often in rule filters.

FieldRulesHowSample values
CommandLine18contains 10, regex_match 6, is_not_null 2, ends_with 1, eq 1 list, get, (?i)((tracert)|(query)|(net\s+((localgroup)|(group)|(conf..., (?i)((netstat)|(netsh)|(schtasks)|(tasklist)|(driverquery..., (?i)((whoami)|(dir)|(hostname)|(hostname)|(systeminfo)|(i...
Image10ends_with 10/esxcli, /crontab, \net.exe, \net1.exe, \pchunter32.exe
EventID8eq 81, 4688, 4104
OriginalFileName6eq 6net.exe, net1.exe, sc.exe, pchunter.exe, psservice.exe
process_name6eq 3, regex_match 3(?i)(whoami|systeminfo|ipconfig|arp|nltest|tasklist|net1?..., net1.exe, (?i)((netstat)|(netsh)|(schtasks)|(tasklist)|(driverquery..., (?i)((tracert)|(query)|(net\s+((localgroup)|(group)|(conf..., (?i)((whoami)|(dir)|(hostname)|(hostname)|(systeminfo)|(i...
dc_process_name5gt 51, 2, 0
ScriptBlockText4in 3, eq 1, regex_match 1(get-item|gci|get-childitem).{1,64}-path.{1,64}\\(current..., *get-clipboardtext*, *returnhotfixid*, *start-aclcheck*, .getgporeport()
Type3eq 3
dc_process2gt 23
event.category2eq 2process
event.type2eq 2start
host.os.type2eq 2
parent_process_name2eq 1, regex_match 1(?i)(powershell\.exe)|(cmd\.exe), wmiprvse.exe
Description1eq 1epoolsoft windows information view tools
Hashes1contains 1imphash=0479f44df47cfa2ef1ccc4416a538663, imphash=444d210cea1ff8112f256a4997eed7ff, md5=228dd0c2e6287547e26ffbd973a40f14

Top indicator values (245 distinct)

These values appear most often in rule predicates.

FieldKindValueRules (here)Corpus reach
Imageends_with
/esxcli
59
CommandLinecontains
get
44
CommandLinecontains
list
44
CommandLinecontains
start
22
CommandLinecontains
-l
13
CommandLinecontains
accounts
1
CommandLinecontains
group
12
CommandLinecontains
localgroup
1
CommandLinecontains
query
1
CommandLinecontains
share
1
CommandLineregex_match
(?i)((tracert)|(query)|(net\s+((localgroup)|(group)|(config)|(share)|(use)|(u...
33
CommandLineregex_match
(?i)((netstat)|(netsh)|(schtasks)|(tasklist)|(driverquery)|(qprocess)|(nslook...
22
CommandLineregex_match
(?i)((whoami)|(dir)|(hostname)|(hostname)|(systeminfo)|(ipconfig)|(route)|(ar...
22
CommandLineregex_match
(?i)whoami|systeminfo|ipconfig|arp|nltest|dclist|domain_trusts|tasklist|quser...
22
EventIDeq
1
3241
EventIDeq
4688
3317
EventIDeq
4104
2269
process_nameeq
net1.exe
339
process_nameeq
net.exe
228
process_nameeq
sc.exe
232
process_nameeq
tasklist.exe
210
OriginalFileNameeq
net.exe
231
OriginalFileNameeq
net1.exe
244
OriginalFileNameeq
sc.exe
230
dc_processgt
3
24
dc_process_namegt
1
22
dc_process_namegt
2
24
event.categoryeq
process
2142
event.typeeq
start
21078
process_nameregex_match
(?i)(whoami|systeminfo|ipconfig|arp|nltest|tasklist|net1?|quser|tasklist|nets...
22

Exclusions (44 distinct)

These values appear most often in top-level exclusions.

FieldKindValueRules excluding
CommandLineregex_match
(?i)\x5cSplunkUniversalForwarder\x5c(etc|bin)\x5c
2
userregex_match
\$$
2
CommandLineeq
sc query dokan1
1
CommandLinein
sc query "Axway_Integrator"
1
CommandLinein
sc query "Delta enteliVAULT PostgreSQL"
1
CommandLinein
sc query "WERMA-WIN-Connector"
1
CommandLinein
sc query _EWSSynchronizationServer_JDE
1
CommandLinein
sc queryex SCardSvr
1
CommandLinein
sc query SchneiderUPSMySQL
1
ParentCommandLineregex_match
(?i)\x5cSplunkUniversalForwarder\x5c(etc|bin)\x5c
1
ParentImagein
c:\program files\azureconnectedmachineagent\azcmagent.exe
1
ParentImagein
c:\program files\azureconnectedmachineagent\himds.exe
1
ParentImagein
c:\program...
1
ParentImagein
c:\senior\hcm\jdk-11.0.2\bin\java.exe
1
ParentImagein
c:\servicenow mid server mid-server-autosports-prod\agent\jre\bin\java.exe
1

Rules under this technique

These vendors publish rules tagged with this technique.

Domain: Endpoint

Platform (all)

Sigma 11 rules

Elastic 4 rules

Splunk 10 rules