Sigma rule: Run PowerShell Script from Redirected Input Stream
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-9fbeee6528f9, updated 2021-11-27T00:00:00.000Z.
Rule
- Title
- Run PowerShell Script from Redirected Input Stream
- Status
- test
- Level
- high
- Author
- Moriarty Meng (idea), Anton Kutepov (rule), oscd.community
- Date
- 2020-10-17
- Modified
- 2021-11-27
- File
- rules/windows/process_creation/proc_creation_win_powershell_run_script_from_input_stream.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Detects PowerShell script execution via input stream redirect
Log source
- product
- windows
- category
- process_creation
Detection
selection:
Image|endswith:
- '\powershell.exe'
- '\pwsh.exe'
CommandLine|re: '\s-\s*<'
condition: selectionFalse positives (as the rule lists them)
- Unknown
Tags
- attack.execution
- attack.t1059
MITRE ATT&CK ids this rule names
References
- https://github.com/LOLBAS-Project/LOLBAS/blob/4db780e0f0b2e2bb8cb1fa13e09196da9b9f1834/yml/LOLUtilz/OSBinaries/Powershell.yml
- https://twitter.com/Moriarty_Meng/status/984380793383370752
Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_powershell_run_script_from_input_stream.yml
Sources and licences
SigmaHQ
"Run PowerShell Script from Redirected Input Stream" by Moriarty Meng (idea), Anton Kutepov (rule), oscd.community (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_powershell_run_script_from_input_stream.yml.
Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License
Cite this page
Dragons Eye Ransomware Tracker, "Sigma rule: Run PowerShell Script from Redirected Input Stream",
entity page, dataset version ref-9fbeee6528f9, updated 2021-11-27T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/c83bf4b5-cdf0-437c-90fa-43d734f7c476 (accessed 2026-11-03).
Underlying source: SigmaHQ rule c83bf4b5-cdf0-437c-90fa-43d734f7c476, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.
Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.