PowerShell Script Run in AppData
Last updated on:
In this page
About the rule
Rule Type
Standard
Rule Description
Detects a suspicious command line execution that invokes PowerShell with reference to an AppData folder
Severity
Trouble
Rule Requirement
Criteria
Action1:
actionname = "Process started" AND COMMANDLINE contains "powershell.exe,\powershell,\pwsh,pwsh.exe" AND ((COMMANDLINE contains "/c " AND COMMANDLINE contains "\AppData") AND COMMANDLINE contains "Local\,Roaming")
select Action1.HOSTNAME,Action1.MESSAGE,Action1.COMMANDLINE,Action1.FILE_NAME,Action1.PROCESSNAME,Action1.USERNAME,Action1.PARENTPROCESSNAME,Action1.DOMAIN,Action1.ORIGINALFILENAME,Action1.PARENTPROCESSID,Action1.PROCESSID,Action1.PRODUCT_NAME,Action1.SECURITYID
Detection
Execution Mode
realtime
Log Sources
Windows
Author
Florian Roth (Nextron Systems), Jonhnathan Ribeiro, oscd.community


