{"id":"51aa9387-1c53-4153-91cc-d73c59ae1ca9","title":"Invoke-Obfuscation Obfuscated IEX Invocation - System","description":"Detects all variations of obfuscated powershell IEX invocation code generated by Invoke-Obfuscation framework from the code block linked in the references","author":"Daniel Bohannon (@Mandiant/@FireEye), oscd.community","status":"test","level":"high","date":"2019-11-08","modified":"2022-11-27","tags":["attack.stealth","attack.t1027"],"technique_ids":["T1027"],"logsource":{"product":"windows","service":"system"},"falsepositives":["Unknown"],"references":["https://github.com/danielbohannon/Invoke-Obfuscation/blob/f20e7f843edd0a3a7716736e9eddfa423395dd26/Out-ObfuscatedStringCommand.ps1#L873-L888"],"source_path":"rules/windows/builtin/system/service_control_manager/win_system_invoke_obfuscation_obfuscated_iex_services.yml","source_sha256":"6b13bb822d87decfe759380fc4d73a0864fa118e11eaf9ef5e8203c9f7f8751e","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/builtin/system/service_control_manager/win_system_invoke_obfuscation_obfuscated_iex_services.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Invoke-Obfuscation Obfuscated IEX Invocation - System\nid: 51aa9387-1c53-4153-91cc-d73c59ae1ca9\nstatus: test\ndescription: Detects all variations of obfuscated powershell IEX invocation code generated by Invoke-Obfuscation framework from the code block linked in the references\nreferences:\n    - https://github.com/danielbohannon/Invoke-Obfuscation/blob/f20e7f843edd0a3a7716736e9eddfa423395dd26/Out-ObfuscatedStringCommand.ps1#L873-L888\nauthor: Daniel Bohannon (@Mandiant/@FireEye), oscd.community\ndate: 2019-11-08\nmodified: 2022-11-27\ntags:\n    - attack.stealth\n    - attack.t1027\nlogsource:\n    product: windows\n    service: system\ndetection:\n    selection_eid:\n        EventID: 7045\n    selection_imagepath:\n        - ImagePath|re: '\\$PSHome\\[\\s*\\d{1,3}\\s*\\]\\s*\\+\\s*\\$PSHome\\['\n        - ImagePath|re: '\\$ShellId\\[\\s*\\d{1,3}\\s*\\]\\s*\\+\\s*\\$ShellId\\['\n        - ImagePath|re: '\\$env:Public\\[\\s*\\d{1,3}\\s*\\]\\s*\\+\\s*\\$env:Public\\['\n        - ImagePath|re: '\\$env:ComSpec\\[(\\s*\\d{1,3}\\s*,){2}'\n        - ImagePath|re: '\\\\*mdr\\*\\W\\s*\\)\\.Name'\n        - ImagePath|re: '\\$VerbosePreference\\.ToString\\('\n        - ImagePath|re: '\\String\\]\\s*\\$VerbosePreference'\n    condition: all of selection_*\nfalsepositives:\n    - Unknown\nlevel: high\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1027","id":"T1027","name":"Obfuscated Files or Information","page":"techniques/enterprise/T1027/"}],"data_path":"data/detection-rules/51aa9387-1c53-4153-91cc-d73c59ae1ca9.json","kind":"sigma"}
