{"id":"09576804-7a05-458e-a817-eb718ca91f54","title":"Suspicious PowerShell IEX Execution Patterns","description":"Detects suspicious ways to run Invoke-Execution using IEX alias","author":"Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems)","status":"test","level":"high","date":"2022-03-24","modified":"2022-11-28","tags":["attack.execution","attack.t1059.001"],"technique_ids":["T1059.001"],"logsource":{"product":"windows","category":"process_creation"},"falsepositives":["Legitimate scripts that use IEX"],"references":["https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/invoke-expression?view=powershell-7.2","https://www.huntress.com/blog/slashandgrab-screen-connect-post-exploitation-in-the-wild-cve-2024-1709-cve-2024-1708"],"source_path":"rules/windows/process_creation/proc_creation_win_powershell_iex_patterns.yml","source_sha256":"7e144560eb1c8c65a7e728842d128a12eb2ff6375a5a0c481b1703247ee0c852","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_powershell_iex_patterns.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Suspicious PowerShell IEX Execution Patterns\nid: 09576804-7a05-458e-a817-eb718ca91f54\nstatus: test\ndescription: Detects suspicious ways to run Invoke-Execution using IEX alias\nreferences:\n    - https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/invoke-expression?view=powershell-7.2\n    - https://www.huntress.com/blog/slashandgrab-screen-connect-post-exploitation-in-the-wild-cve-2024-1709-cve-2024-1708\nauthor: Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems)\ndate: 2022-03-24\nmodified: 2022-11-28\ntags:\n    - attack.execution\n    - attack.t1059.001\nlogsource:\n    product: windows\n    category: process_creation\ndetection:\n    selection_combined_1:\n        Image|endswith:\n            - '\\powershell.exe'\n            - '\\pwsh.exe'\n        CommandLine|contains:\n            - ' | iex;'\n            - ' | iex '\n            - ' | iex}'\n            - ' | IEX ;'\n            - ' | IEX -Error'\n            - ' | IEX (new'\n            - ');IEX '\n    selection_combined_2:\n        CommandLine|contains:\n            - '::FromBase64String'\n            - '.GetString([System.Convert]::'\n    selection_standalone:\n        CommandLine|contains:\n            - ')|iex;$'\n            - ');iex($'\n            - ');iex $'\n            - ' | IEX | '\n            - ' | iex\\\"'\n    condition: all of selection_combined_* or selection_standalone\nfalsepositives:\n    - Legitimate scripts that use IEX\nlevel: high\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/09576804-7a05-458e-a817-eb718ca91f54.json","kind":"sigma"}
