Skip to content

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

Siemphony’s repertoire

Driver enumeration by command line or services-key query

Matches the two Windows driver-discovery behaviours AN1595 names that leave a command line: an invocation of `driverquery`, and a registry read of `HKLM\SYSTEM\CurrentControlSet\Services` or the `HardwareProfiles` subtree. Every selection sits on `CommandLine` so the rule stays a single-field OR that all four backends render, and the value lists are ones assembled here — MITRE supplies the `AllowedUtilities` knob, not its contents. The analytic's other observables do not survive contact with the log sources: `EnumDeviceDrivers()` is an in-process API call that emits no event, and the registry sources the brief lists are Sysmon EventID 13 and 14, which record value writes and key renames — Sysmon has no registry-read event, so enumeration performed through the registry API rather than a command line is invisible here. Written in the Sysmon EventID 1 vocabulary; the Security EventID 4688 feed populates `CommandLine` only when *Audit Process Creation* and *Include command line in process creation events* are both enabled, and neither is on by default. UNVERIFIED AS AUTHORED — derived from MITRE ATT&CK DET0579, 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

title: Driver enumeration by command line or services-key queryid: cafc5b23-171f-4764-90e7-0596e5535099status: experimentaldescription: |  Matches the two Windows driver-discovery behaviours AN1595 names that leave a  command line: an invocation of `driverquery`, and a registry read of  `HKLM\SYSTEM\CurrentControlSet\Services` or the `HardwareProfiles` subtree.  Every selection sits on `CommandLine` so the rule stays a single-field OR that  all four backends render, and the value lists are ones assembled here — MITRE  supplies the `AllowedUtilities` knob, not its contents. The analytic's other  observables do not survive contact with the log sources: `EnumDeviceDrivers()`  is an in-process API call that emits no event, and the registry sources the  brief lists are Sysmon EventID 13 and 14, which record value writes and key  renames — Sysmon has no registry-read event, so enumeration performed through  the registry API rather than a command line is invisible here. Written in the  Sysmon EventID 1 vocabulary; the Security EventID 4688 feed populates  `CommandLine` only when *Audit Process Creation* and *Include command line in  process creation events* are both enabled, and neither is on by default.  UNVERIFIED AS AUTHORED — derived from MITRE ATT&CK DET0579, not hand-written and not tested by its author. Any lab result is on this rule's own page.references:  - https://attack.mitre.org/techniques/T1652  - https://attack.mitre.org/detectionstrategies/DET0579author: Siemphony pipeline (machine-derived from MITRE ATT&CK v19.2)date: 2026-08-16tags:  - attack.discovery  - attack.t1652logsource:  category: process_creation  product: windowsdetection:  selection_driverquery:    CommandLine|contains: 'driverquery'  selection_services_key:    CommandLine|contains|all:      - 'query'      - 'CurrentControlSet\Services'  selection_hardware_profiles:    CommandLine|contains: 'CurrentControlSet\HardwareProfiles'  condition: 1 of selection*falsepositives:  - "Asset-inventory and diagnostic scripts that snapshot driver versions on a schedule or at logon, typically as driverquery /v /fo csv redirected to a share. Wherever this exists it is the highest-volume match by a wide margin, and MITRE's AllowedUtilities knob is the place to pin the expected caller rather than dropping the utility from the rule."  - "Driver installers and hardware update agents that read HKLM\\SYSTEM\\CurrentControlSet\\Services with reg query during a version check before writing their own service entry, which fires once per managed device per update cycle."  - "Helpdesk and engineering troubleshooting of a device or service fault, where a human queries the Services key by hand or dumps the driver list before escalating a ticket."level: low

Sentinel · KQL

Run this as a search.

DeviceProcessEvents| where (ProcessCommandLine contains "driverquery" or (ProcessCommandLine contains "query" and ProcessCommandLine contains "CurrentControlSet\\Services") or ProcessCommandLine contains "CurrentControlSet\\HardwareProfiles")

Splunk · SPL

Run this as a search.

index=* (CommandLine="*driverquery*" OR (CommandLine="*query*" AND CommandLine="*CurrentControlSet\\Services*") OR CommandLine="*CurrentControlSet\\HardwareProfiles*")

Elastic · ES|QL

Run this as a search.

FROM logs-*| WHERE (TO_LOWER(process.command_line) LIKE "*driverquery*" OR (TO_LOWER(process.command_line) LIKE "*query*" AND TO_LOWER(process.command_line) LIKE "*currentcontrolset\\\\services*") OR TO_LOWER(process.command_line) LIKE "*currentcontrolset\\\\hardwareprofiles*")

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)(driverquery|(?=.*(?:query))(?=.*(?:CurrentControlSet\\Services)).*|CurrentControlSet\\HardwareProfiles)</field>    <description>Driver enumeration by command line or services-key query</description>    <mitre>      <id>T1652</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.