{"id":"ed965133-513f-41d9-a441-e38076a0798f","title":"Suspicious PowerShell Invocations - Generic","description":"Detects suspicious PowerShell invocation command parameters","author":"Florian Roth (Nextron Systems)","status":"test","level":"high","date":"2017-03-12","modified":"2023-01-03","tags":["attack.execution","attack.t1059.001"],"technique_ids":["T1059.001"],"logsource":{"product":"windows","category":"ps_script","definition":"Requirements: Script Block Logging must be enabled"},"falsepositives":["Very special / sneaky PowerShell scripts"],"references":["Internal Research"],"source_path":"rules/windows/powershell/powershell_script/posh_ps_susp_invocation_generic.yml","source_sha256":"54a102facc7b98c18a7bd9165a54653fa308684cc03a1cdc7e664b1cc717c872","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/powershell/powershell_script/posh_ps_susp_invocation_generic.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 PowerShell Invocations - Generic\nid: ed965133-513f-41d9-a441-e38076a0798f\nrelated:\n    - id: 3d304fda-78aa-43ed-975c-d740798a49c1\n      type: derived\n    - id: bbb80e91-5746-4fbe-8898-122e2cafdbf4\n      type: similar\nstatus: test\ndescription: Detects suspicious PowerShell invocation command parameters\nreferences:\n    - Internal Research\nauthor: Florian Roth (Nextron Systems)\ndate: 2017-03-12\nmodified: 2023-01-03\ntags:\n    - attack.execution\n    - attack.t1059.001\nlogsource:\n    product: windows\n    category: ps_script\n    definition: 'Requirements: Script Block Logging must be enabled'\ndetection:\n    selection_encoded:\n        ScriptBlockText|contains:\n            - ' -enc '\n            - ' -EncodedCommand '\n            - ' -ec '\n    selection_hidden:\n        ScriptBlockText|contains:\n            - ' -w hidden '\n            - ' -window hidden '\n            - ' -windowstyle hidden '\n            - ' -w 1 '\n    selection_noninteractive:\n        ScriptBlockText|contains:\n            - ' -noni '\n            - ' -noninteractive '\n    condition: all of selection*\nfalsepositives:\n    - Very special / sneaky PowerShell scripts\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/ed965133-513f-41d9-a441-e38076a0798f.json","kind":"sigma"}
