Scheduled Task Executing Encoded Payload from Registry
Last updated on:
In this page
About the rule
Rule Type
Standard
Rule Description
Detects the creation of a schtask that potentially executes a base64 encoded payload stored in the Windows Registry using PowerShell.
Severity
Trouble
Rule Requirement
Criteria
Action1: actionname = "Process started" AND (PROCESSNAME endswith "\schtasks.exe" OR ORIGINALFILENAME = "schtasks.exe") AND COMMANDLINE contains "/Create" AND COMMANDLINE contains "FromBase64String,encodedcommand" AND COMMANDLINE contains "Get-ItemProperty, gp " AND COMMANDLINE contains "HKCU:,HKLM:,registry::,HKEY_" select Action1.HOSTNAME,Action1.MESSAGE,Action1.COMMANDLINE,Action1.FILE_NAME,Action1.PROCESSNAME,Action1.USERNAME,Action1.PARENTPROCESSNAME
Detection
Execution Mode
realtime
Log Sources
Windows
Author
pH-T (Nextron Systems), @Kostastsale, @TheDFIRReport, X__Junior (Nextron Systems), Nasreddine Bencherchali (Nextron Systems)


