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

Patterns shared across the 25 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 (19 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
CommandLine18contains 10, match 5, is_not_null 2, ends_with 1, eq 1, regex_match 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, 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
parent_process_name2eq 1, match 1(?i)(powershell\.exe)|(cmd\.exe), wmiprvse.exe
Description1eq 1Epoolsoft Windows Information View Tools
Hashes1contains 1imphash=0479f44df47cfa2ef1ccc4416a538663, imphash=444d210cea1ff8112f256a4997eed7ff, md5=228dd0c2e6287547e26ffbd973a40f14
ParentImage1is_not_null 1

Top indicator values (245 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
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
CommandLinematch
(?i)((tracert)|(query)|(net\s+((localgroup)|(group)|(config)|(share)|(use)|(u...
33
CommandLinematch
(?i)((netstat)|(netsh)|(schtasks)|(tasklist)|(driverquery)|(qprocess)|(nslook...
22
CommandLinematch
(?i)((whoami)|(dir)|(hostname)|(hostname)|(systeminfo)|(ipconfig)|(route)|(ar...
22
CommandLinematch
(?i)whoami|systeminfo|ipconfig|arp|nltest|dclist|domain_trusts|tasklist|quser...
22
EventIDeq
1
3237
EventIDeq
4688
3313
EventIDeq
4104
2268
process_nameeq
net1.exe
335
process_nameeq
net.exe
222
process_nameeq
sc.exe
229
process_nameeq
tasklist.exe
29
OriginalFileNameeq
net.exe
228
OriginalFileNameeq
net1.exe
244
OriginalFileNameeq
sc.exe
226
dc_processgt
3
24
dc_process_namegt
1
22
dc_process_namegt
2
24
event.categoryeq
process
2128
event.typeeq
start
2606
process_namematch
(?i)(whoami|systeminfo|ipconfig|arp|nltest|tasklist|net1?|quser|tasklist|nets...
22

Exclusions (41 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
CommandLinematch
(?i)\x5cSplunkUniversalForwarder\x5c(etc|bin)\x5c
2
usermatch
\$$
2
user.idin
S-1-5-18
2
user.idin
S-1-5-19
2
user.idin
S-1-5-20
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
ParentImagein
c:\program files\azureconnectedmachineagent\azcmagent.exe
1
ParentImagein
c:\program files\azureconnectedmachineagent\himds.exe
1
ParentImagein
c:\program...
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.

Platform (all)
Domain (all)

Sigma 11 rules

Elastic 4 rules

Splunk 10 rules