{"id":"ee218c12-627a-4d27-9e30-d6fb2fe22ed2","title":"Powershell Inline Execution From A File","description":"Detects inline execution of PowerShell code from a file","author":"frack113","status":"test","level":"medium","date":"2022-12-25","modified":"","tags":["attack.execution","attack.t1059.001"],"technique_ids":["T1059.001"],"logsource":{"product":"windows","category":"process_creation"},"falsepositives":["Unknown"],"references":["https://speakerdeck.com/heirhabarov/hunting-for-powershell-abuse?slide=50"],"source_path":"rules/windows/process_creation/proc_creation_win_powershell_exec_data_file.yml","source_sha256":"8103d09f4cf9934967c67d3df7a939876eab8520f42238a5c83b22044a8d702c","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_powershell_exec_data_file.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Powershell Inline Execution From A File\nid: ee218c12-627a-4d27-9e30-d6fb2fe22ed2\nstatus: test\ndescription: Detects inline execution of PowerShell code from a file\nreferences:\n    - https://speakerdeck.com/heirhabarov/hunting-for-powershell-abuse?slide=50\nauthor: frack113\ndate: 2022-12-25\ntags:\n    - attack.execution\n    - attack.t1059.001\nlogsource:\n    product: windows\n    category: process_creation\ndetection:\n    selection_exec:\n        CommandLine|contains:\n            - 'iex '\n            - 'Invoke-Expression '\n            - 'Invoke-Command '\n            - 'icm '\n    selection_read:\n        CommandLine|contains:\n            - 'cat '\n            - 'get-content '\n            - 'type '\n    selection_raw:\n        CommandLine|contains: ' -raw'\n    condition: all of selection_*\nfalsepositives:\n    - Unknown\nlevel: medium\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1059.001","id":"T1059.001","name":"PowerShell","page":"techniques/enterprise/T1059.001/"}],"data_path":"data/detection-rules/ee218c12-627a-4d27-9e30-d6fb2fe22ed2.json","kind":"sigma"}
