Name:WinEvent Windows Task Scheduler Event Action Started id:b3632472-310b-11ec-9aab-acde48001122 version:5 date:2024-10-24 author:Michael Haag, Splunk status:production type:Hunting Description:The following analytic detects the execution of tasks registered in Windows Task Scheduler by monitoring EventID 200 (action run) and 201 (action completed) from the Task Scheduler logs. This detection leverages Task Scheduler logs to identify potentially suspicious or unauthorized task executions. Monitoring these events is significant for a SOC as it helps uncover evasive techniques used for persistence, unauthorized code execution, or other malicious activities. If confirmed malicious, this activity could lead to unauthorized access, data exfiltration, or the execution of harmful payloads, posing a significant threat to the environment. Data_source:
-Windows Event Log TaskScheduler 200
-Windows Event Log TaskScheduler 201
search:`wineventlog_task_scheduler` EventCode IN ("200","201") | stats count min(_time) as firstTime max(_time) as lastTime by TaskName dvc EventCode | `security_content_ctime(firstTime)` | `security_content_ctime(lastTime)` | `winevent_windows_task_scheduler_event_action_started_filter`
how_to_implement:Task Scheduler logs are required to be collected. Enable logging with inputs.conf by adding a stanza for [WinEventLog://Microsoft-Windows-TaskScheduler/Operational] and renderXml=false. Note, not translating it in XML may require a proper extraction of specific items in the Message. known_false_positives:False positives will be present. Filter based on ActionName paths or specify keywords of interest. References: -https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1053.005/T1053.005.md -https://thedfirreport.com/2021/10/18/icedid-to-xinglocker-ransomware-in-24-hours/ drilldown_searches:
: tags: analytic_story: - 'Qakbot' - 'Windows Persistence Techniques' - 'Winter Vivern' - 'Prestige Ransomware' - 'DarkCrystal RAT' - 'AsyncRAT' - 'Winter Vivern' - 'IcedID' - 'CISA AA22-257A' - 'Industroyer2' - 'Sandworm Tools' - 'Data Destruction' - 'Amadey' - 'Scheduled Tasks' - 'CISA AA24-241A' - 'BlackSuit Ransomware' - 'ValleyRAT' asset_type:Endpoint confidence:100 impact:80 message:A Scheduled Task was scheduled and ran on $dvc$. mitre_attack_id: - 'T1053.005' observable: name:'dvc' type:'Hostname' - role: - 'Victim' product: - 'Splunk Enterprise' - 'Splunk Enterprise Security' - 'Splunk Cloud' required_fields: - '_time' - 'TaskName' - 'ActionName' - 'EventID' - 'dvc' - 'ProcessID' risk_score:80 security_domain:endpoint