Windows Scheduled Task XML Built Via Console Echo
The following analytic detects cmd.exe being used to write a Windows Scheduled Task XML definition to disk through the echo command. This analytic focuses on command lines that combine echo with the Task Scheduler…
Description
The following analytic detects cmd.exe being used to write a Windows Scheduled Task XML definition to disk through the echo command. This analytic focuses on command lines that combine echo with the Task Scheduler XML namespace. This is a significant activity because legitimate software rarely assembles a task definition on the fly from the console. Browser hijackers and adware droppers do this to create a scheduled task, through schtasks.exe and the generated XML file, that periodically relaunches a copy of themselves, and then delete the XML file to hinder forensic analysis. If confirmed malicious, this could allow an attacker to establish persistence, repeatedly execute a payload and maintain control over the victim's browser.
Detection logic
Detection requirements
- Platform
- Windows
The rule states no platform. This is derived from the ATT&CK technique it maps to.
- Log source category
- crowdstrike_processrollup2sysmon_eventid_1windows_event_log_security_4688
Known benign triggers
- False positives are not expected as building a scheduled task XML definition through echo on the command line is rare in legitimate software. Some custom installers or administrative scripts that generate task definitions this way may trigger this detection. Filter as needed based on the parent process.
MITRE ATT&CK mappings
0 exclusive techniques.This is coverage no other published rule has; it is not this rule's total technique count.
References
| Reference | Cited by |
|---|---|
| learn.microsoft.com/en-us/windows/win32/taskschd/task-scheduler-schema | Only this detection cites it |
| www.gdatasoftware.com/blog/2025/11/38298-learning-about-browser-hijacking | 7 |
| www.joesandbox.com/analysis/1965188/0/html | 3 |
From the source
- At source
- Open at source
- Upstream identifier
- 63081a3e-8546-4f2c-bd48-c7f96bb8ae14
- Tagged by the source as
- Browser HijackingLiving Off The LandScheduled TasksEndpointendpointSplunk CloudSplunk EnterpriseSplunk Enterprise Securityendpoint
Licence
- Published under
- Apache License 2.0Read the licence
- Attribution
- Required
- Obtained under
- Apache-2.0Read the origin licence
Authorship
- Written by
- Published
- Nov 3, 2026
- Version
- 1