{"id":"bb780e0c-16cf-4383-8383-1e5471db6cf9","title":"Suspicious XOR Encoded PowerShell Command","description":"Detects presence of a potentially xor encoded powershell command","author":"Sami Ruohonen, Harish Segar, Tim Shelton, Teymur Kheirkhabarov, Vasiliy Burov, oscd.community, Nasreddine Bencherchali","status":"test","level":"medium","date":"2018-09-05","modified":"2023-01-30","tags":["attack.execution","attack.stealth","attack.t1059.001","attack.t1140","attack.t1027"],"technique_ids":["T1027","T1059.001","T1140"],"logsource":{"category":"process_creation","product":"windows"},"falsepositives":["Unknown"],"references":["https://speakerdeck.com/heirhabarov/hunting-for-powershell-abuse?slide=65","https://redcanary.com/blog/yellow-cockatoo/","https://zero2auto.com/2020/05/19/netwalker-re/","https://mez0.cc/posts/cobaltstrike-powershell-exec/"],"source_path":"rules/windows/process_creation/proc_creation_win_powershell_xor_commandline.yml","source_sha256":"06e0d8f74735fc5b1f15d0c244023addd14d22486027c6866e837e1b79ca2f03","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_powershell_xor_commandline.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 XOR Encoded PowerShell Command\nid: bb780e0c-16cf-4383-8383-1e5471db6cf9\nrelated:\n    - id: 5b572dcf-254b-425c-a8c5-d9af6bea35a6\n      type: obsolete\nstatus: test\ndescription: Detects presence of a potentially xor encoded powershell command\nreferences:\n    - https://speakerdeck.com/heirhabarov/hunting-for-powershell-abuse?slide=65\n    - https://redcanary.com/blog/yellow-cockatoo/\n    - https://zero2auto.com/2020/05/19/netwalker-re/\n    - https://mez0.cc/posts/cobaltstrike-powershell-exec/\nauthor: Sami Ruohonen, Harish Segar, Tim Shelton, Teymur Kheirkhabarov, Vasiliy Burov, oscd.community, Nasreddine Bencherchali\ndate: 2018-09-05\nmodified: 2023-01-30\ntags:\n    - attack.execution\n    - attack.stealth\n    - attack.t1059.001\n    - attack.t1140\n    - attack.t1027\nlogsource:\n    category: process_creation\n    product: windows\ndetection:\n    selection_img:\n        - Image|endswith:\n              - '\\powershell.exe'\n              - '\\pwsh.exe'\n        - OriginalFileName:\n              - 'PowerShell.EXE'\n              - 'pwsh.dll'\n        - Description: 'Windows PowerShell'\n        - Product: 'PowerShell Core 6'\n    selection_cli_xor:\n        CommandLine|contains: 'bxor'\n    selection_cli_other:\n        CommandLine|contains:\n            - 'ForEach'\n            - 'for('\n            - 'for '\n            - '-join '\n            - \"-join'\"\n            - '-join\"'\n            - '-join`'\n            - '::Join'\n            - '[char]'\n    condition: all of selection_*\nfalsepositives:\n    - Unknown\nlevel: medium\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/"},{"key":"enterprise/T1059.001","id":"T1059.001","name":"PowerShell","page":"techniques/enterprise/T1059.001/"},{"key":"enterprise/T1140","id":"T1140","name":"Deobfuscate/Decode Files or Information","page":"techniques/enterprise/T1140/"}],"data_path":"data/detection-rules/bb780e0c-16cf-4383-8383-1e5471db6cf9.json","kind":"sigma"}
