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

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

title: PowerShell reading or writing an alternate data stream by nameid: 621ab722-5c86-4d5c-bed4-2832be06d7f2status: experimentaldescription: |  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.references:  - https://attack.mitre.org/techniques/T1564/004  - https://attack.mitre.org/detectionstrategies/DET0432author: Siemphony pipeline (machine-derived from MITRE ATT&CK v19.2)date: 2026-08-17tags:  - attack.defense-evasion  - attack.t1564.004logsource:  category: process_creation  product: windowsdetection:  selection_tool:    Image|endswith:      - '\powershell.exe'      - '\pwsh.exe'  selection_stream_flag:    CommandLine|contains|windash: '-stream'  condition: selection_tool and selection_stream_flagfalsepositives:  - "Security and IT scripts that check or strip the Zone.Identifier MOTW tag using Get-Item -Stream Zone.Identifier or a hand-rolled Unblock-File equivalent built on Get-Content/Remove-Item -Stream — the single most common legitimate reason to type -Stream on a Windows host, and indistinguishable here from a malicious write."  - "Backup, forensic and file-integrity tools written in PowerShell that enumerate every alternate data stream on a fileset with Get-Item -Stream * as part of routine auditing, which is the same flag this rule watches for."  - "Document-management, compliance and file-tagging products that store custom metadata in a named alternate stream through a PowerShell wrapper around Set-Content or Add-Content -Stream — a legitimate, intentional use of the exact same parameter this rule watches for."level: medium

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.