Skip to content

Siemphony is in beta and still being built. How a rule earns its badge.

Siemphony’s repertoire

Registry queried for host, software or security configuration

Siemphony@siemphonylowT1012unverified
Matches a registry read issued on a command line — reg query, or the PowerShell registry-provider cmdlets — against keys that describe the host, its installed software and its security posture, which is MITRE's TargetRegistryPath knob populated here with the OS version, uninstall, machine GUID, BIOS, disk enumeration, Defender, UAC and Terminal Server keys. The registry categories the brief also offers cannot express this at all: Sysmon EventID 13 records a value being written and 14 a key being renamed, so a query leaves no registry event behind and a rule built on registry_set could never fire. A read performed through the API without a command line — a compiled implant, or a .NET call buried inside a longer script — is invisible here, so a quiet result is not evidence that nothing enumerated the registry. Discovery of this kind is what ordinary administration and inventory tooling does all day, which is why the level below is set for a hunting input rather than an alert. UNVERIFIED AS AUTHORED — derived from MITRE ATT&CK DET0209, not hand-written and not tested by its author. Any lab result is on this rule's own page.Full description

The detection

The 4 SIEM queries below are previews produced by Siemphony’s own translator, not pySigma, and none has been executed against a real backend — review before you deploy.

detection.yml

Sentinel · KQL

Run this as a search.

DeviceProcessEvents| where ((ProcessCommandLine contains "reg query" or ProcessCommandLine contains "reg.exe query" or ProcessCommandLine contains "Get-ItemProperty" or ProcessCommandLine contains "Get-ItemPropertyValue" or ProcessCommandLine contains "Get-ChildItem HKLM" or ProcessCommandLine contains "Get-ChildItem -Path HKLM") and (ProcessCommandLine contains "Windows NT\\CurrentVersion" or ProcessCommandLine contains "CurrentVersion\\Uninstall" or ProcessCommandLine contains "CurrentVersion\\Policies\\System" or ProcessCommandLine contains "Microsoft\\Cryptography" or ProcessCommandLine contains "Microsoft\\Windows Defender" or ProcessCommandLine contains "Control\\SystemInformation" or ProcessCommandLine contains "Control\\Terminal Server" or ProcessCommandLine contains "HARDWARE\\DESCRIPTION\\System" or ProcessCommandLine contains "Services\\Disk\\Enum"))

Splunk · SPL

Run this as a search.

index=* ((CommandLine="*reg query*" OR CommandLine="*reg.exe query*" OR CommandLine="*Get-ItemProperty*" OR CommandLine="*Get-ItemPropertyValue*" OR CommandLine="*Get-ChildItem HKLM*" OR CommandLine="*Get-ChildItem -Path HKLM*") AND (CommandLine="*Windows NT\\CurrentVersion*" OR CommandLine="*CurrentVersion\\Uninstall*" OR CommandLine="*CurrentVersion\\Policies\\System*" OR CommandLine="*Microsoft\\Cryptography*" OR CommandLine="*Microsoft\\Windows Defender*" OR CommandLine="*Control\\SystemInformation*" OR CommandLine="*Control\\Terminal Server*" OR CommandLine="*HARDWARE\\DESCRIPTION\\System*" OR CommandLine="*Services\\Disk\\Enum*"))

Elastic · ES|QL

Run this as a search.

FROM logs-*| WHERE ((TO_LOWER(process.command_line) LIKE "*reg query*" OR TO_LOWER(process.command_line) LIKE "*reg.exe query*" OR TO_LOWER(process.command_line) LIKE "*get-itemproperty*" OR TO_LOWER(process.command_line) LIKE "*get-itempropertyvalue*" OR TO_LOWER(process.command_line) LIKE "*get-childitem hklm*" OR TO_LOWER(process.command_line) LIKE "*get-childitem -path hklm*") AND (TO_LOWER(process.command_line) LIKE "*windows nt\\\\currentversion*" OR TO_LOWER(process.command_line) LIKE "*currentversion\\\\uninstall*" OR TO_LOWER(process.command_line) LIKE "*currentversion\\\\policies\\\\system*" OR TO_LOWER(process.command_line) LIKE "*microsoft\\\\cryptography*" OR TO_LOWER(process.command_line) LIKE "*microsoft\\\\windows defender*" OR TO_LOWER(process.command_line) LIKE "*control\\\\systeminformation*" OR TO_LOWER(process.command_line) LIKE "*control\\\\terminal server*" OR TO_LOWER(process.command_line) LIKE "*hardware\\\\description\\\\system*" OR TO_LOWER(process.command_line) LIKE "*services\\\\disk\\\\enum*"))

Wazuh · XML rule

Deploy to your manager — this is a rule, not a search.

<group name="sigma,windows,process_creation,">  <!-- Rule ids must be unique on your manager; 100000+ is the user range. -->  <rule id="100000" level="5">    <!-- Set <if_sid> to the decoder/base rule for windows so this only evaluates relevant events. -->    <field name="CommandLine" type="pcre2">(?i)(reg query|reg\.exe query|Get-ItemProperty|Get-ItemPropertyValue|Get-ChildItem HKLM|Get-ChildItem -Path HKLM)</field>    <field name="CommandLine" type="pcre2">(?i)(Windows NT\\CurrentVersion|CurrentVersion\\Uninstall|CurrentVersion\\Policies\\System|Microsoft\\Cryptography|Microsoft\\Windows Defender|Control\\SystemInformation|Control\\Terminal Server|HARDWARE\\DESCRIPTION\\System|Services\\Disk\\Enum)</field>    <description>Registry queried for host, software or security configuration</description>    <mitre>      <id>T1012</id>    </mitre>  </rule></group>

Verdicts · reactions · comments

Community

Verdicts from engineers who actually deployed it, and the conversation around it.

Log in to react
Not yet reported on

Nobody has run this in a real environment and said what happened.

Verdicts from engineers who deployed it

0 cast

No verdicts reported yet. The first one is worth more than the tenth — say what you ran it against.

Log in to report a verdict.

Log in to join the discussion.

No comments yet. Someone who deploys this will have something to say about it.