Windows Shell/Scripting Application File Write to Suspicious Folder
Last updated on:
In this page
About the rule
Rule Type
Standard
Rule Description
Detects Windows shells and scripting applications that write files to suspicious folders
Severity
Trouble
Rule Requirement
Criteria
Action1: actionname = "File Created or Modified" AND (PROCESSNAME endswith "\bash.exe,\cmd.exe,\cscript.exe,\msbuild.exe,\powershell.exe,\pwsh.exe,\sh.exe,\wscript.exe" AND (FILENAME startswith "C:\PerfLogs\,C:\Users\Public" OR OBJECTNAME startswith "C:\PerfLogs\,C:\Users\Public")) OR (PROCESSNAME endswith "\certutil.exe,\forfiles.exe,\mshta.exe,\schtasks.exe,\scriptrunner.exe,\wmic.exe" AND (FILENAME contains "C:\PerfLogs\,C:\Users\Public\,C:\Windows\Temp" OR OBJECTNAME contains "C:\PerfLogs\,C:\Users\Public\,C:\Windows\Temp")) select Action1.HOSTNAME,Action1.MESSAGE,Action1.USERNAME,Action1.DOMAIN,Action1.OBJECTNAME,Action1.FILENAME,Action1.PROCESSNAME
Detection
Execution Mode
realtime
Log Sources
Windows
Author
Florian Roth (Nextron Systems)


