Detectionmediumtest
PowerShell Script Run in AppData
Detects a suspicious command line execution that invokes PowerShell with reference to an AppData folder
Convert In Phoenix Studio
Open this Sigma rule in the converter with the YAML preloaded and ready for backend selection.
Launch
Florian Roth (Nextron Systems), Jonhnathan Ribeiro, oscd.communityCreated Wed Jan 09Updated Thu Jul 14ac175779-025a-4f12-98b0-acdaeb77ea85windows
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 Logic2 selectors
detection:
selection1:
CommandLine|contains:
- 'powershell.exe'
- '\powershell'
- '\pwsh'
- 'pwsh.exe'
selection2:
CommandLine|contains|all:
- '/c '
- '\AppData\'
CommandLine|contains:
- 'Local\'
- 'Roaming\'
condition: all of selection*False Positives
Administrative scripts
MITRE ATT&CK
Tactics
Sub-techniques
Rule Metadata
Rule ID
ac175779-025a-4f12-98b0-acdaeb77ea85
Status
test
Level
medium
Type
Detection
Created
Wed Jan 09
Modified
Thu Jul 14
Path
rules/windows/process_creation/proc_creation_win_powershell_susp_ps_appdata.yml
Raw Tags
attack.executionattack.t1059.001