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...
Image10ends_with 10/esxcli, /crontab, \PCHunter32.exe, \PCHunter64.exe, \net.exe
EventID8eq 81, 4688, 4104
OriginalFileName6eq 6net.exe, net1.exe, sc.exe, PCHunter.exe, psservice.exe
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*, *Start-ACLCheck*, *UnquotedServicePathCheck*, .GetGPOReport()
process_basename3eq 3net1.exe, arp.exe, dsget.exe, dsquery.exe, net.exe
process_name3regex_match 3(?i)(whoami|systeminfo|ipconfig|arp|nltest|tasklist|net1?..., (?i)((netstat)|(netsh)|(schtasks)|(tasklist)|(driverquery..., (?i)((tracert)|(query)|(net\s+((localgroup)|(group)|(conf..., (?i)((whoami)|(dir)|(hostname)|(hostname)|(systeminfo)|(i...
dc_process2gt 23
event.category2eq 2process
event.type2eq 2start
Description1eq 1Epoolsoft Windows Information View Tools
Hashes1contains 1IMPHASH=0479F44DF47CFA2EF1CCC4416A538663, IMPHASH=444D210CEA1FF8112F256A4997EED7FF, MD5=228DD0C2E6287547E26FFBD973A40F14
ParentImage1is_not_null 1
c_process1gt 12

Top indicator values (249 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
CommandLinecontains
stop
18
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
3226
EventIDeq
4688
3284
EventIDeq
4104
2269
process_basenameeq
net1.exe
340
process_basenameeq
net.exe
230
process_basenameeq
sc.exe
232
process_basenameeq
tasklist.exe
211
CommandLineis_not_null
223
OriginalFileNameeq
net1.exe
239
dc_processgt
3
24
dc_process_namegt
1
22
dc_process_namegt
2
24
event.categoryeq
process
2105
event.typeeq
start
21036
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