Query Registry T1012

Tactic: Discovery

Adversaries may interact with the Windows Registry to gather information about the system, configuration, and installed software.

Events covered

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

Authoring guide

These 34 rules share fields, values, and exclusions.

Fields filtered most (27 distinct)

These fields appear most often in rule filters.

FieldRulesHowSample values
EventID15eq 154663, 4104, 4688, 1, 4103
CommandLine9contains 7, ends_with 2, in 1, is_not_null 1, match 1 -E , /E , –E , , -exec bypass -enc JgAg
TargetFilename8contains 4, ends_with 4*:\Windows\System32\drivers\etc\hosts, *\AppData\Local\Google\Chrome\User Data\Default\Local..., *\AppData\Local\Google\Chrome\User Data\Default\Login Data, *\AppData\Local\Google\Chrome\User Data\Local State, *\Microsoft\Windows\CurrentVersion\Uninstall\*
OriginalFileName7eq 7reg.exe, REGEDIT.EXE, PCHunter.exe, wmic.exe
Image5ends_with 5\regedit.exe, \PCHunter32.exe, \PCHunter64.exe, \reg.exe, \wmic.exe
ObjectName5ends_with 2, eq 2, contains 1, starts_with 1\REGISTRY\MACHINE\SOFTWARE\Microsoft\ADHealthAgent, \REGISTRY\MACHINE\SOFTWARE\Microsoft\Microsoft..., \REGISTRY\MACHINE\SYSTEM\ControlSet001\Control\CloudDomai..., \SAM, \SOFTWARE\Microsoft\Windows NT\CurrentVersion\WorkplaceJoin
ObjectType5eq 5Key, key
ScriptBlockText3contains 1, eq 1, in 1, regex_match 1(Get-Item|gci|Get-ChildItem).{1,64}-Path.{1,64}\\(current..., *Get-ItemProperty *, *Windows\CurrentVersion\Uninstall*, .GetGPOReport(), ::GetIPGlobalProperties()
process_basename3eq 3reg.exe, arp.exe, dsget.exe, dsquery.exe
process_name3contains 2, ne 1Microsoft.Identity.Health.Adfs.DiagnosticsAgent.exe, Microsoft.Identity.Health.Adfs.InsightsService.exe, Microsoft.Identity.Health.Adfs.MonitoringAgent.Startup.exe, *\\discord.exe
event.category2eq 2process
event.type2eq 2start
All_Risk.analyticstories1contains 1*Windows Post-Exploitation*
CallerProcessName1ends_with 1\checkadmin.exe
Description1eq 1Epoolsoft Windows Information View Tools

Top indicator values (269 distinct)

These values appear most often in rule predicates.

FieldKindValueRules (here)Corpus reach
EventIDeq
4663
931
EventIDeq
4104
2269
EventIDeq
4688
2284
ObjectTypeeq
Key
45
OriginalFileNameeq
reg.exe
341
OriginalFileNameeq
REGEDIT.EXE
26
process_basenameeq
reg.exe
328
CommandLinecontains
-E
217
CommandLinecontains
/E
25
CommandLinecontains
–E
22
CommandLinecontains
—E
22
CommandLinecontains
―E
22
CommandLinecontains
hkey_local_machine
22
CommandLinecontains
hklm
23
CommandLinecontains
-exec bypass -enc JgAg
1
CommandLinecontains
(New-Object System.Net.WebClient).UploadFile('http
1
CommandLinecontains
* restore *
1
CommandLinecontains
.hta
16
CommandLineends_with
\sam
2
CommandLineends_with
\security
2
CommandLineends_with
\system
2
Imageends_with
\regedit.exe
28
event.categoryeq
process
2105
process_namecontains
Microsoft.Identity.Health.Adfs.DiagnosticsAgent.exe
2
process_namecontains
Microsoft.Identity.Health.Adfs.InsightsService.exe
2
process_namecontains
Microsoft.Identity.Health.Adfs.MonitoringAgent.Startup.exe
2
process_namecontains
Microsoft.Identity.Health.Adfs.PshSurrogate.exe
2
process_namecontains
Microsoft.Identity.Health.Common.Clients.ResourceMonitor.exe
2
All_Risk.analyticstoriescontains
*Windows Post-Exploitation*
1
CallerProcessNameends_with
\checkadmin.exe
1

Exclusions (49 distinct)

These values appear most often in top-level exclusions.

FieldKindValueRules excluding
process_namein
*:\Windows\explorer.exe
4
process_namein
*\AppData\Local\Google\Chrome Beta\Application\chrome.exe
3
process_namein
*\AppData\Local\Google\Chrome Dev\Application\chrome.exe
3
process_namein
*\AppData\Local\Google\Chrome SxS\Application\chrome.exe
3
process_namein
*\AppData\Local\Google\Chrome Unstable\Application\chrome.exe
3
process_namein
*\AppData\Local\Google\Chrome\Application\chrome.exe
3
process_namein
*:\Windows\SysWow64\*
2
process_namein
*:\Windows\System32\*
2
process_namecontains
Microsoft.Identity.Health.Adfs.DiagnosticsAgent.exe
2
process_namecontains
Microsoft.Identity.Health.Adfs.InsightsService.exe
2
process_namecontains
Microsoft.Identity.Health.Adfs.MonitoringAgent.Startup.exe
2
process_namecontains
Microsoft.Identity.Health.Adfs.PshSurrogate.exe
2
process_namecontains
Microsoft.Identity.Health.Common.Clients.ResourceMonitor.exe
2
CommandLinecontains
hkey_local_machine
1
CommandLinecontains
hklm
1

Rules under this technique

These vendors publish rules tagged with this technique.

Platform: Windows

Domain: Endpoint

Sigma 13 rules

Elastic 3 rules

Splunk 17 rules

Kusto 1 rule