Suspicious Command Patterns In Scheduled Task Creation
Last updated on:
In this page
About the rule
Rule Type
Standard
Rule Description
Detects scheduled task creation using "schtasks" that contain potentially suspicious or uncommon commands
Severity
Trouble
Rule Requirement
Criteria
Action1: actionname = "Process started" AND (PROCESSNAME endswith "\schtasks.exe" AND COMMANDLINE contains "/Create ") AND ((COMMANDLINE contains "/sc minute ,/ru system " AND COMMANDLINE contains "cmd /c,cmd /k,cmd /r,cmd.exe /c ,cmd.exe /k ,cmd.exe /r ") OR COMMANDLINE contains " -decode , -enc , -w hidden , bypass , IEX,.DownloadData,.DownloadFile,.DownloadString,/c start /min ,FromBase64String,mshta http,mshta.exe http" OR (COMMANDLINE contains ":\ProgramData\,:\Temp\,:\Tmp\,:\Users\Public\,:\Windows\Temp\,\AppData\,%AppData%,%Temp%,%tmp%" AND COMMANDLINE contains "cscript,curl,wscript")) select Action1.HOSTNAME,Action1.MESSAGE,Action1.COMMANDLINE,Action1.FILE_NAME,Action1.PROCESSNAME,Action1.USERNAME,Action1.PARENTPROCESSNAME
Detection
Execution Mode
realtime
Log Sources
Windows
Author
Florian Roth (Nextron Systems)


