{"id":"ca2092a1-c273-4878-9b4b-0d60115bf5ea","title":"Suspicious Encoded PowerShell Command Line","description":"Detects suspicious powershell process starts with base64 encoded commands (e.g. Emotet)","author":"Florian Roth (Nextron Systems), Markus Neis, Jonhnathan Ribeiro, Daniil Yugoslavskiy, Anton Kutepov, oscd.community","status":"test","level":"high","date":"2018-09-03","modified":"2023-04-06","tags":["attack.execution","attack.t1059.001"],"technique_ids":["T1059.001"],"logsource":{"category":"process_creation","product":"windows"},"falsepositives":[],"references":["https://app.any.run/tasks/6217d77d-3189-4db2-a957-8ab239f3e01e"],"source_path":"rules/windows/process_creation/proc_creation_win_powershell_base64_encoded_cmd.yml","source_sha256":"d09f16965f8a5d45ddbfc0cf62a393753aefe90854ea10cbde017f65d138322f","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_powershell_base64_encoded_cmd.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 Encoded PowerShell Command Line\nid: ca2092a1-c273-4878-9b4b-0d60115bf5ea\nstatus: test\ndescription: Detects suspicious powershell process starts with base64 encoded commands (e.g. Emotet)\nreferences:\n    - https://app.any.run/tasks/6217d77d-3189-4db2-a957-8ab239f3e01e\nauthor: Florian Roth (Nextron Systems), Markus Neis, Jonhnathan Ribeiro, Daniil Yugoslavskiy, Anton Kutepov, oscd.community\ndate: 2018-09-03\nmodified: 2023-04-06\ntags:\n    - attack.execution\n    - attack.t1059.001\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    selection_cli_enc:\n        CommandLine|contains: ' -e' # covers -en and -enc\n    selection_cli_content:\n        CommandLine|contains:\n            - ' JAB'\n            - ' SUVYI'\n            - ' SQBFAFgA'\n            - ' aQBlAHgA'\n            - ' aWV4I'\n            - ' IAA'\n            - ' IAB'\n            - ' UwB'\n            - ' cwB'\n    selection_standalone:\n        CommandLine|contains:\n            - '.exe -ENCOD '\n            - ' BA^J e-' # Reversed\n    filter_optional_remote_signed:\n        CommandLine|contains: ' -ExecutionPolicy remotesigned '\n    condition: selection_img and (all of selection_cli_* or selection_standalone) and not 1 of filter_optional_*\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/ca2092a1-c273-4878-9b4b-0d60115bf5ea.json","kind":"sigma"}
