Skip to content

Siemphony is in beta and still being built. What ships today, and what does not.

Siemphony’s repertoire

Domain account and group enumeration from a command line

Siemphony@siemphonymediumT1087.002verified in lab
Matches the Windows arm of AN0363: a process creation carrying one of the four ways a domain principal list is asked for from a shell — `net`/`net1` with a `user`, `group` or `localgroup` subcommand plus the `/domain` switch, the Active Directory PowerShell cmdlets typed inline, an ADSI or DirectorySearcher LDAP query, and `dsquery`/`dsget` for users or groups. The `/domain` switch is the whole discriminator against the local-account sibling T1087.001: without it `net user` reads the local SAM, so it is required rather than optional in that branch, and both `net.exe` and the `net1.exe` it re-executes are listed because either can be the logged image. MITRE's `CommandLinePattern` knob names `net user /domain`, `Get-ADUser` and `Get-ADGroupMember`; the ADSI, PowerView, WMI and `dsquery` terms are added here, not taken from MITRE. `Get-ADGroup` is written without a suffix so it also covers `Get-ADGroupMember` by substring. Three limits are structural. A cmdlet called from inside a `.ps1`, a module or a here-string never reaches `CommandLine`, and the 4103/4104 script-block leg of the same analytic is a different log source that this rule does not attempt. MITRE's `SourceHost` knob — fire only on hosts that are not domain controllers or admin workstations — has no field in a single process-creation event and has to be applied when the rule is deployed. And `Win32_UserAccount`/`Win32_GroupUser` return local principals as well as domain ones on a domain-joined host, so those two terms overlap T1087.001 by design. This rule is written in the Sysmon EventID 1 vocabulary (`Image`, `CommandLine`) that AN0363 names; an estate feeding Security 4688 instead needs `NewProcessName` mapped onto `Image` first, and 4688 needs both *Audit Process Creation* and the separate *Include command line in process creation events* policy before `CommandLine` exists at all — neither is on by default or in the MS and CIS baselines. UNVERIFIED AS AUTHORED — derived from MITRE ATT&CK DET0129, 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 (((((FolderPath endswith "\\net.exe" or FolderPath endswith "\\net1.exe") and (ProcessCommandLine contains " user " or ProcessCommandLine contains " group " or ProcessCommandLine contains " localgroup ")) and (ProcessCommandLine contains " /do" or ProcessCommandLine contains " -do")) or (ProcessCommandLine contains "Get-ADUser" or ProcessCommandLine contains "Get-ADGroup" or ProcessCommandLine contains "Get-ADPrincipalGroupMembership" or ProcessCommandLine contains "Get-DomainUser" or ProcessCommandLine contains "Get-DomainGroupMember" or ProcessCommandLine contains "Get-NetUser" or ProcessCommandLine contains "Get-NetGroupMember" or ProcessCommandLine contains "adsisearcher" or ProcessCommandLine contains "DirectorySearcher" or ProcessCommandLine contains "Win32_UserAccount" or ProcessCommandLine contains "Win32_GroupUser")) or ((FolderPath endswith "\\dsquery.exe" or FolderPath endswith "\\dsget.exe") and (ProcessCommandLine contains " user" or ProcessCommandLine contains " group")))

Splunk · SPL

Run this as a search.

index=* (((((Image="*\\net.exe" OR Image="*\\net1.exe") AND (CommandLine="* user *" OR CommandLine="* group *" OR CommandLine="* localgroup *")) AND (CommandLine="* /do*" OR CommandLine="* -do*")) OR (CommandLine="*Get-ADUser*" OR CommandLine="*Get-ADGroup*" OR CommandLine="*Get-ADPrincipalGroupMembership*" OR CommandLine="*Get-DomainUser*" OR CommandLine="*Get-DomainGroupMember*" OR CommandLine="*Get-NetUser*" OR CommandLine="*Get-NetGroupMember*" OR CommandLine="*adsisearcher*" OR CommandLine="*DirectorySearcher*" OR CommandLine="*Win32_UserAccount*" OR CommandLine="*Win32_GroupUser*")) OR ((Image="*\\dsquery.exe" OR Image="*\\dsget.exe") AND (CommandLine="* user*" OR CommandLine="* group*")))

Elastic · ES|QL

Run this as a search.

FROM logs-*| WHERE (((((TO_LOWER(process.executable) LIKE "*\\\\net.exe" OR TO_LOWER(process.executable) LIKE "*\\\\net1.exe") AND (TO_LOWER(process.command_line) LIKE "* user *" OR TO_LOWER(process.command_line) LIKE "* group *" OR TO_LOWER(process.command_line) LIKE "* localgroup *")) AND (TO_LOWER(process.command_line) LIKE "* /do*" OR TO_LOWER(process.command_line) LIKE "* -do*")) OR (TO_LOWER(process.command_line) LIKE "*get-aduser*" OR TO_LOWER(process.command_line) LIKE "*get-adgroup*" OR TO_LOWER(process.command_line) LIKE "*get-adprincipalgroupmembership*" OR TO_LOWER(process.command_line) LIKE "*get-domainuser*" OR TO_LOWER(process.command_line) LIKE "*get-domaingroupmember*" OR TO_LOWER(process.command_line) LIKE "*get-netuser*" OR TO_LOWER(process.command_line) LIKE "*get-netgroupmember*" OR TO_LOWER(process.command_line) LIKE "*adsisearcher*" OR TO_LOWER(process.command_line) LIKE "*directorysearcher*" OR TO_LOWER(process.command_line) LIKE "*win32_useraccount*" OR TO_LOWER(process.command_line) LIKE "*win32_groupuser*")) OR ((TO_LOWER(process.executable) LIKE "*\\\\dsquery.exe" OR TO_LOWER(process.executable) LIKE "*\\\\dsget.exe") AND (TO_LOWER(process.command_line) LIKE "* user*" OR TO_LOWER(process.command_line) LIKE "* group*")))

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. -->  <!-- 3 rules: the Sigma condition ORs across different fields,       which one rule cannot express. Any one matching is a hit. -->  <rule id="100000" level="7">    <!-- Set <if_sid> to the decoder/base rule for windows so this only evaluates relevant events. -->    <field name="Image" type="pcre2">(?i)(\\net\.exe$|\\net1\.exe$)</field>    <field name="CommandLine" type="pcre2">(?i)( user | group | localgroup )</field>    <field name="CommandLine" type="pcre2">(?i)( /do| -do)</field>    <description>Domain account and group enumeration from a command line (1/3)</description>    <mitre>      <id>T1087.002</id>    </mitre>  </rule>   <rule id="100001" level="7">    <!-- Set <if_sid> to the decoder/base rule for windows so this only evaluates relevant events. -->    <field name="CommandLine" type="pcre2">(?i)(Get-ADUser|Get-ADGroup|Get-ADPrincipalGroupMembership|Get-DomainUser|Get-DomainGroupMember|Get-NetUser|Get-NetGroupMember|adsisearcher|DirectorySearcher|Win32_UserAccount|Win32_GroupUser)</field>    <description>Domain account and group enumeration from a command line (2/3)</description>    <mitre>      <id>T1087.002</id>    </mitre>  </rule>   <rule id="100002" level="7">    <!-- Set <if_sid> to the decoder/base rule for windows so this only evaluates relevant events. -->    <field name="Image" type="pcre2">(?i)(\\dsquery\.exe$|\\dsget\.exe$)</field>    <field name="CommandLine" type="pcre2">(?i)( user| group)</field>    <description>Domain account and group enumeration from a command line (3/3)</description>    <mitre>      <id>T1087.002</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.