Skip to content

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

Siemphony’s repertoire

PowerShell engine loaded by a process that is not a PowerShell host

Siemphony@siemphonylowT1059.001unverified
AN1252 asks the strategy to cover indirect invocation as well as powershell.exe itself, and the module load is where indirect invocation is actually visible: anything that runs PowerShell without the shipped executable — a C# loader, a signed application hosting a runspace, an implant calling into the automation engine — still has to map System.Management.Automation.dll into its address space, and neither a renamed interpreter nor a bypassed command line changes that. The rule matches that load and subtracts the binaries Microsoft ships as PowerShell hosts, leaving processes that are running PowerShell under some other name. The encoded and hidden arguments MITRE's CommandLinePattern knob points at are deliberately not written here: they belong to the process-creation side and describe obfuscation rather than execution, and the document-parent-spawns- PowerShell chain the ParentProcessName knob names is already the corpus's T1204 rule. Two limits worth stating: the filter is by image path, so a binary renamed to powershell.exe is excluded by the same list that makes the rule usable at all; and Sysmon EventID 7 is off in a bare install while the widely deployed configurations restrict module logging to a named DLL allowlist, so confirm System.Management.Automation.dll is in the running config before reading an empty result as quiet rather than blind. UNVERIFIED AS AUTHORED — derived from MITRE ATT&CK DET0455, 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.

DeviceImageLoadEvents| where ((FolderPath endswith "\\System.Management.Automation.dll" or FolderPath endswith "\\System.Management.Automation.ni.dll") and not ((InitiatingProcessFolderPath endswith "\\powershell.exe" or InitiatingProcessFolderPath endswith "\\powershell_ise.exe" or InitiatingProcessFolderPath endswith "\\pwsh.exe" or InitiatingProcessFolderPath endswith "\\wsmprovhost.exe" or InitiatingProcessFolderPath endswith "\\sdiagnhost.exe" or InitiatingProcessFolderPath endswith "\\ServerManager.exe")))

Splunk · SPL

Run this as a search.

index=* ((ImageLoaded="*\\System.Management.Automation.dll" OR ImageLoaded="*\\System.Management.Automation.ni.dll") AND NOT ((Image="*\\powershell.exe" OR Image="*\\powershell_ise.exe" OR Image="*\\pwsh.exe" OR Image="*\\wsmprovhost.exe" OR Image="*\\sdiagnhost.exe" OR Image="*\\ServerManager.exe")))

Elastic · ES|QL

Run this as a search.

FROM logs-*| WHERE ((TO_LOWER(file.path) LIKE "*\\\\system.management.automation.dll" OR TO_LOWER(file.path) LIKE "*\\\\system.management.automation.ni.dll") AND NOT ((TO_LOWER(process.executable) LIKE "*\\\\powershell.exe" OR TO_LOWER(process.executable) LIKE "*\\\\powershell_ise.exe" OR TO_LOWER(process.executable) LIKE "*\\\\pwsh.exe" OR TO_LOWER(process.executable) LIKE "*\\\\wsmprovhost.exe" OR TO_LOWER(process.executable) LIKE "*\\\\sdiagnhost.exe" OR TO_LOWER(process.executable) LIKE "*\\\\servermanager.exe")))

Wazuh · XML rule

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

<group name="sigma,windows,image_load,">  <!-- 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="ImageLoaded" type="pcre2">(?i)(\\System\.Management\.Automation\.dll$|\\System\.Management\.Automation\.ni\.dll$)</field>    <field name="Image" negate="yes" type="pcre2">(?i)(\\powershell\.exe$|\\powershell_ise\.exe$|\\pwsh\.exe$|\\wsmprovhost\.exe$|\\sdiagnhost\.exe$|\\ServerManager\.exe$)</field>    <description>PowerShell engine loaded by a process that is not a PowerShell host</description>    <mitre>      <id>T1059.001</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.