Windows PowerShell Script Execution from Alternate Data Stream (ADS)

Flags PowerShell processes using Get-Content -Stream to execute or retrieve script content from an ADS.

FreeReviewedSigma · High · v1
Product
windows
Category
process_creation
Author
Sergey Soldatov, Kaspersky Lab, oscd.community (SigmaHQ), DRL 1.1
Published
2019-10-30
Updated
2026-07-30

ATT&CK techniques

Defense Evasion
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Cred Access

  8. Discovery

  9. Lateral Movement

  10. Collection

  11. C2

  12. Exfiltration

  13. Impact

What it detects

This rule identifies cases where PowerShell (powershell.exe or pwsh.exe) reads script content using Alternate Data Streams by matching a command line containing Get-Content with the -Stream parameter. Attackers can use ADS to hide or deliver executable or script content without storing it as a standalone file, increasing stealth. The detection relies on Windows process creation telemetry, specifically process image paths and the full PowerShell command line.

Related detections9 linkedT1564.004 — drag to rearrange
Suspicious Alternate Data Stream Creation by MuddyWater (via file_event)
Suspicious Command Execution from NTFS Alternate Data Stream via cmd Redirection (via process_creation)
Suspicious Run Key Referencing Alternate Data Stream Payload
macOS chflags Hidden Flag Set via chflags hidden parameter
Windows Process Creation: CLI CommandLine References NTFS ::$index_allocation Stream
Windows Hidden Directory Creation Using NTFS $INDEX_ALLOCATION Stream
Windows rundll32 Launching DLL From Alternate Data Stream (ADS) Paths
Windows suspicious file download URLs using direct IP address with script/binary extensions
Windows Named Pipe Stream Created with Known Hack Tool IMPHASHs
Windows PowerShell Script Execution from Alternate Data Stream (ADS)
Pivot detection · T1564.004 · 9 related

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.