{"id":"c83bf4b5-cdf0-437c-90fa-43d734f7c476","title":"Run PowerShell Script from Redirected Input Stream","description":"Detects PowerShell script execution via input stream redirect","author":"Moriarty Meng (idea), Anton Kutepov (rule), oscd.community","status":"test","level":"high","date":"2020-10-17","modified":"2021-11-27","tags":["attack.execution","attack.t1059"],"technique_ids":["T1059"],"logsource":{"category":"process_creation","product":"windows"},"falsepositives":["Unknown"],"references":["https://github.com/LOLBAS-Project/LOLBAS/blob/4db780e0f0b2e2bb8cb1fa13e09196da9b9f1834/yml/LOLUtilz/OSBinaries/Powershell.yml","https://twitter.com/Moriarty_Meng/status/984380793383370752"],"source_path":"rules/windows/process_creation/proc_creation_win_powershell_run_script_from_input_stream.yml","source_sha256":"536012ee601907aeef707484b2761802d29b6c75a07074b4b39bb0ef67b679bf","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_powershell_run_script_from_input_stream.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Run PowerShell Script from Redirected Input Stream\nid: c83bf4b5-cdf0-437c-90fa-43d734f7c476\nstatus: test\ndescription: Detects PowerShell script execution via input stream redirect\nreferences:\n    - https://github.com/LOLBAS-Project/LOLBAS/blob/4db780e0f0b2e2bb8cb1fa13e09196da9b9f1834/yml/LOLUtilz/OSBinaries/Powershell.yml\n    - https://twitter.com/Moriarty_Meng/status/984380793383370752\nauthor: Moriarty Meng (idea), Anton Kutepov (rule), oscd.community\ndate: 2020-10-17\nmodified: 2021-11-27\ntags:\n    - attack.execution\n    - attack.t1059\nlogsource:\n    category: process_creation\n    product: windows\ndetection:\n    selection:\n        Image|endswith:\n            - '\\powershell.exe'\n            - '\\pwsh.exe'\n        CommandLine|re: '\\s-\\s*<'\n    condition: selection\nfalsepositives:\n    - Unknown\nlevel: high\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1059","id":"T1059","name":"Command and Scripting Interpreter","page":"techniques/enterprise/T1059/"}],"data_path":"data/detection-rules/c83bf4b5-cdf0-437c-90fa-43d734f7c476.json","kind":"sigma"}
