Suspicious PowerShell Encoded Command Patterns
Description
Detects PowerShell command line patterns in combincation with encoded commands that often appear in malware infection chains
Query · sigma
selection_img: - Image|endswith: - \powershell.exe - \pwsh.exe - OriginalFileName: - PowerShell.Exe - pwsh.dll selection_flags: CommandLine|contains: - ' -e ' - ' -en ' - ' -enc ' - ' -enco' selection_encoded: CommandLine|contains: - ' JAB' - ' SUVYI' - ' SQBFAFgA' - ' aWV4I' - ' IAB' - ' PAA' - ' aQBlAHgA' filter_gcworker: ParentImage|contains: - C:\Packages\Plugins\Microsoft.GuestConfiguration.ConfigurationforWindows\ - \gc_worker.exe condition: all of selection_* and not 1 of filter_*
Known false positives
- Other tools that work with encoded scripts in the command line instead of script files