Skip to content

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

Siemphony’s repertoire

PowerShell reading or writing an alternate data stream by name

Siemphony@siemphonymediumT1564.004unverified
AN1206 names three concrete signals — colon syntax in a file path, ZwSetEaFile/ZwQueryEaFile API calls, and "PowerShell/Windows utilities interacting with -stream parameters" — and only the last is observable as a literal token in a single event. The colon-syntax signal (file.ext:ads) is not a usable Sigma filter on this brief's create_stream_hash source: Sysmon EventID 15 fires only for named-stream creation, so TargetFilename already contains a colon on every event in that category by definition, and the two existing corpus rules against non-Zone.Identifier-stream siblings of this technique (T1027.006, T1204.002) already cover the Zone.Identifier-specific case. The EA API calls have no Sigma-visible logsource in this brief at all. So this rule instead matches process_creation where powershell.exe or pwsh.exe is invoked with the -Stream parameter, which every stream-aware cmdlet — Get-Content, Set-Content, Add-Content, Get-Item, Remove-Item — accepts identically to name the alternate stream it targets, whether reading a hidden payload out or writing one in. It cannot tell a read from a write, or a malicious stream name from a legitimate one, from the command line alone. Sysmon EventID 1 must be enabled and capturing CommandLine, which is the default when Sysmon is installed at all (unlike Security 4688, this source needs no separate audit policy for command-line capture). UNVERIFIED AS AUTHORED — derived from MITRE ATT&CK DET0432, 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 "\\powershell.exe" or FolderPath endswith "\\pwsh.exe") and (ProcessCommandLine contains "-stream" or ProcessCommandLine contains "/stream" or ProcessCommandLine contains "–stream" or ProcessCommandLine contains "—stream" or ProcessCommandLine contains "―stream"))

Splunk · SPL

Run this as a search.

index=* ((Image="*\\powershell.exe" OR Image="*\\pwsh.exe") AND (CommandLine="*-stream*" OR CommandLine="*/stream*" OR CommandLine="*–stream*" OR CommandLine="*—stream*" OR CommandLine="*―stream*"))

Elastic · ES|QL

Run this as a search.

FROM logs-*| WHERE ((TO_LOWER(process.executable) LIKE "*\\\\powershell.exe" OR TO_LOWER(process.executable) LIKE "*\\\\pwsh.exe") AND (TO_LOWER(process.command_line) LIKE "*-stream*" OR TO_LOWER(process.command_line) LIKE "*/stream*" OR TO_LOWER(process.command_line) LIKE "*–stream*" OR TO_LOWER(process.command_line) LIKE "*—stream*" OR TO_LOWER(process.command_line) LIKE "*―stream*"))

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="7">    <!-- Set <if_sid> to the decoder/base rule for windows so this only evaluates relevant events. -->    <field name="Image" type="pcre2">(?i)(\\powershell\.exe$|\\pwsh\.exe$)</field>    <field name="CommandLine" type="pcre2">(?i)(-stream|/stream|–stream|—stream|―stream)</field>    <description>PowerShell reading or writing an alternate data stream by name</description>    <mitre>      <id>T1564.004</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.