Detectionhightest
Execution of Powershell Script in Public Folder
This rule detects execution of PowerShell scripts located in the "C:\Users\Public" folder
Convert In Phoenix Studio
Open this Sigma rule in the converter with the YAML preloaded and ready for backend selection.
Launch
Max Altgelt (Nextron Systems)Created Wed Apr 06Updated Thu Jul 14fb9d3ff7-7348-46ab-af8c-b55f5fbf39b4windows
Log Source
WindowsProcess Creation
ProductWindows← raw: windows
CategoryProcess Creation← raw: process_creation
Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.
Detection Logic
Detection Logic1 selector
detection:
selection:
Image|endswith:
- '\powershell.exe'
- '\pwsh.exe'
CommandLine|contains:
- '-f C:\Users\Public'
- '-f "C:\Users\Public'
- '-f %Public%'
- '-fi C:\Users\Public'
- '-fi "C:\Users\Public'
- '-fi %Public%'
- '-fil C:\Users\Public'
- '-fil "C:\Users\Public'
- '-fil %Public%'
- '-file C:\Users\Public'
- '-file "C:\Users\Public'
- '-file %Public%'
condition: selectionFalse Positives
Unlikely
False positives are unlikely for most environments. High confidence detection.
References
MITRE ATT&CK
Tactics
Sub-techniques
Rule Metadata
Rule ID
fb9d3ff7-7348-46ab-af8c-b55f5fbf39b4
Status
test
Level
high
Type
Detection
Created
Wed Apr 06
Modified
Thu Jul 14
Path
rules/windows/process_creation/proc_creation_win_powershell_public_folder.yml
Raw Tags
attack.executionattack.t1059.001