Skip to content

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

Siemphony’s repertoire

Installed software inventory enumerated from the command line

Siemphony@siemphonylowT1518unverified
Matches the Windows leg of AN1100 in the form one process-creation record can carry: a command line naming the WMI/CIM classes that list installed products, the PowerShell package cmdlets, or the Uninstall registry subtree that every general-purpose software inventory actually reads. The Uninstall arm is a plain substring on the key path, so it covers `reg query`, `Get-ItemProperty HKLM:\...\Uninstall\*` and a WMI StdRegProv call alike without guessing at the tool; the `wmic.exe` arm is separate because `wmic product get` never contains the string `Win32_Product` and would otherwise be missed, and its alias carries a leading space so that a Security Center query such as `wmic ... path AntiVirusProduct get` does not fall through it. AN1100's second log source, the PowerShell operational log, is not used here: a cmdlet typed into a session already running, or called from inside a script, never reaches a process command line at all, so that half of the analytic needs its own 4104 rule with Script Block Logging switched on. This is the parent technique's own observable and it is disjoint from the published T1518.001 rule, which gates on security-vendor and Security Center names — a query for every installed product is not a query for the AV agent, and neither rule's value list appears in the other. What is not attempted: MITRE's `TimeWindow` knob asks for several discovery commands inside a short window, which needs an aggregation lib/sigma does not model, and the `ParentProcess` knob is left unused rather than turned into a filter, because the management tools it would exclude are exactly what an adversary living off the land would run through. The Linux arm AN1101 (`dpkg -l`, `rpm -qa` on auditd) and the macOS arm AN1102 (`system_profiler` on the unified log) are different feeds with different field vocabularies and belong in their own rules, not bolted onto this logsource. Prerequisite: the brief feeds this Sysmon-shaped `process_creation` category from Security EventID 4688, which needs *Audit Process Creation*, and every arm of this rule reads `CommandLine`, which needs the separate *Include command line in process creation events* policy — without that second policy the rule matches nothing at all, and zero rows reads as quiet when it means blind. UNVERIFIED AS AUTHORED — derived from MITRE ATT&CK DET0392, 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 "Win32_Product" or ProcessCommandLine contains "Win32_InstalledWin32Program" or ProcessCommandLine contains "Win32_InstalledStoreProgram" or ProcessCommandLine contains "Win32_SoftwareElement" or ProcessCommandLine contains "Win32_SoftwareFeature") or ProcessCommandLine contains "\\CurrentVersion\\Uninstall" or (ProcessCommandLine contains "Get-Package" or ProcessCommandLine contains "Get-AppxPackage" or ProcessCommandLine contains "Get-AppvClientPackage" or ProcessCommandLine contains "Get-WindowsCapability" or ProcessCommandLine contains "Get-InstalledModule") or (FolderPath endswith "\\wmic.exe" and ProcessCommandLine contains " product"))

Splunk · SPL

Run this as a search.

index=* ((CommandLine="*Win32_Product*" OR CommandLine="*Win32_InstalledWin32Program*" OR CommandLine="*Win32_InstalledStoreProgram*" OR CommandLine="*Win32_SoftwareElement*" OR CommandLine="*Win32_SoftwareFeature*") OR CommandLine="*\\CurrentVersion\\Uninstall*" OR (CommandLine="*Get-Package*" OR CommandLine="*Get-AppxPackage*" OR CommandLine="*Get-AppvClientPackage*" OR CommandLine="*Get-WindowsCapability*" OR CommandLine="*Get-InstalledModule*") OR (Image="*\\wmic.exe" AND CommandLine="* product*"))

Elastic · ES|QL

Run this as a search.

FROM logs-*| WHERE ((TO_LOWER(process.command_line) LIKE "*win32_product*" OR TO_LOWER(process.command_line) LIKE "*win32_installedwin32program*" OR TO_LOWER(process.command_line) LIKE "*win32_installedstoreprogram*" OR TO_LOWER(process.command_line) LIKE "*win32_softwareelement*" OR TO_LOWER(process.command_line) LIKE "*win32_softwarefeature*") OR TO_LOWER(process.command_line) LIKE "*\\\\currentversion\\\\uninstall*" OR (TO_LOWER(process.command_line) LIKE "*get-package*" OR TO_LOWER(process.command_line) LIKE "*get-appxpackage*" OR TO_LOWER(process.command_line) LIKE "*get-appvclientpackage*" OR TO_LOWER(process.command_line) LIKE "*get-windowscapability*" OR TO_LOWER(process.command_line) LIKE "*get-installedmodule*") OR (TO_LOWER(process.executable) LIKE "*\\\\wmic.exe" AND TO_LOWER(process.command_line) LIKE "* product*"))

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. -->  <!-- 4 rules: the Sigma condition ORs across different fields,       which one rule cannot express. Any one matching is a hit. -->  <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)(Win32_Product|Win32_InstalledWin32Program|Win32_InstalledStoreProgram|Win32_SoftwareElement|Win32_SoftwareFeature)</field>    <description>Installed software inventory enumerated from the command line (1/4)</description>    <mitre>      <id>T1518</id>    </mitre>  </rule>   <rule id="100001" level="5">    <!-- Set <if_sid> to the decoder/base rule for windows so this only evaluates relevant events. -->    <field name="CommandLine" type="pcre2">(?i)\\CurrentVersion\\Uninstall</field>    <description>Installed software inventory enumerated from the command line (2/4)</description>    <mitre>      <id>T1518</id>    </mitre>  </rule>   <rule id="100002" level="5">    <!-- Set <if_sid> to the decoder/base rule for windows so this only evaluates relevant events. -->    <field name="CommandLine" type="pcre2">(?i)(Get-Package|Get-AppxPackage|Get-AppvClientPackage|Get-WindowsCapability|Get-InstalledModule)</field>    <description>Installed software inventory enumerated from the command line (3/4)</description>    <mitre>      <id>T1518</id>    </mitre>  </rule>   <rule id="100003" level="5">    <!-- Set <if_sid> to the decoder/base rule for windows so this only evaluates relevant events. -->    <field name="Image" type="pcre2">(?i)\\wmic\.exe$</field>    <field name="CommandLine" type="pcre2">(?i) product</field>    <description>Installed software inventory enumerated from the command line (4/4)</description>    <mitre>      <id>T1518</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.