{"id":"fd0f5778-d3cb-4c9a-9695-66759d04702a","title":"Invoke-Obfuscation Obfuscated IEX Invocation - Security","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":"security","definition":"The 'System Security Extension' audit subcategory need to be enabled to log the EID 4697"},"falsepositives":["Unknown"],"references":["https://github.com/danielbohannon/Invoke-Obfuscation/blob/f20e7f843edd0a3a7716736e9eddfa423395dd26/Out-ObfuscatedStringCommand.ps1#L873-L888"],"source_path":"rules/windows/builtin/security/win_security_invoke_obfuscation_obfuscated_iex_services_security.yml","source_sha256":"cc78c5bdae2e401b0bb2efbcb04381f89d95242d9503cd06d713e487086c0b66","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/builtin/security/win_security_invoke_obfuscation_obfuscated_iex_services_security.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 - Security\nid: fd0f5778-d3cb-4c9a-9695-66759d04702a\nrelated:\n    - id: 51aa9387-1c53-4153-91cc-d73c59ae1ca9\n      type: derived\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: security\n    definition: The 'System Security Extension' audit subcategory need to be enabled to log the EID 4697\ndetection:\n    selection_eid:\n        EventID: 4697\n    selection_servicefilename:\n        - ServiceFileName|re: '\\$PSHome\\[\\s*\\d{1,3}\\s*\\]\\s*\\+\\s*\\$PSHome\\['\n        - ServiceFileName|re: '\\$ShellId\\[\\s*\\d{1,3}\\s*\\]\\s*\\+\\s*\\$ShellId\\['\n        - ServiceFileName|re: '\\$env:Public\\[\\s*\\d{1,3}\\s*\\]\\s*\\+\\s*\\$env:Public\\['\n        - ServiceFileName|re: '\\$env:ComSpec\\[(\\s*\\d{1,3}\\s*,){2}'\n        - ServiceFileName|re: '\\\\*mdr\\*\\W\\s*\\)\\.Name'\n        - ServiceFileName|re: '\\$VerbosePreference\\.ToString\\('\n        - ServiceFileName|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/fd0f5778-d3cb-4c9a-9695-66759d04702a.json","kind":"sigma"}
