Skip to main content
T1053.005Persistencemedium difficulty

Scheduled Task

The Windows-specific Scheduled Task sub-technique abuses Task Scheduler, via schtasks, the COM API, or the management console, to run code at startup, on a schedule, or on an event trigger, making it a durable persistence mechanism. Detection works from the task definitions themselves: newly created or modified XML tasks invoking Base64-encoded PowerShell, tasks launching from temp directories, and tasks set to run as SYSTEM or an elevated account without any change-management justification.

Practice detecting Scheduled Task on realistic XDR, SIEM alerts in SOCSimulator Operations.

XDRSIEM

What is Scheduled Task?

“Scheduled Task is documented as technique T1053.005 in MITRE ATT&CK® v19.1 under the Persistence tactic. Detection requires visibility into XDR, SIEM telemetry.”

Detection Strategies

The following detection strategies help SOC analysts identify Scheduled Task activity. These methods apply across XDR, SIEM environments and can be implemented as detection rules, correlation queries, or behavioral analytics in your security platform.

  1. 1

    Examine newly created scheduled task XML definitions for tasks using Base64-encoded PowerShell commands, tasks executing from temporary directories, and tasks configured to run with SYSTEM or elevated account credentials without a business justification.

  2. 2

    Monitor Windows Event ID 4698 for scheduled task creation and Event ID 4702 for modification, correlating with the creating process and user account to identify tasks created through unusual means such as via mshta.exe or office applications.

  3. 3

    Detect scheduled tasks created to run at logon or system startup from non-standard paths such as user AppData directories, temporary folders, or ProgramData subdirectories not associated with known software products.

  4. 4

    Alert on scheduled tasks that download content from the internet during execution, using command lines containing PowerShell Invoke-WebRequest, certutil download flags, or bitsadmin transfer jobs embedded within the task action.

  5. 5

    Implement baseline comparison for scheduled tasks on server and workstation images, alerting on any tasks present in the environment that do not appear in the approved baseline configuration for that system type.

Example Alerts

These realistic alert examples show what Scheduled Task looks like in your security tools. Use them to tune detection rules and train analysts to recognize true positives versus false positives in live environments.

HighSIEM

Scheduled Task with Encoded PowerShell Created at Startup

Windows Event 4698 recorded creation of scheduled task "MicrosoftEdgeUpdateTaskMachineUA" via schtasks.exe on workstation WS-MKTG-044. Despite the legitimate-sounding name, the task action executes powershell.exe with -EncodedCommand containing a Base64 string that decodes to a Cobalt Strike stager. The task is configured to run at system startup under the SYSTEM account.

HighXDR

Task Scheduler Used for Lateral Movement Execution

Remote scheduled task created on file server FILE-SRV-03 from an external workstation using at.exe with domain administrator credentials. The task executes a batch script uploaded to the ADMIN$ share that installs a backdoor service. Remote task creation combined with the use of domain admin credentials from a non-administrative workstation indicates compromised privileged credentials being leveraged for lateral movement.

CriticalXDR

Scheduled Task Downloading Second-Stage Payload

Scheduled task triggered and executed certutil.exe to download an executable file disguised as a certificate from an external CDN. The task fires every 4 hours and the downloaded payload is immediately executed. This recurring download mechanism ensures the attacker can push updated payloads and maintains persistence even if the initially deployed malware is detected and removed between task execution cycles.

Frequently Asked Questions

How do SOC analysts detect Scheduled Task?
Detection centers on XDR, SIEM telemetry for the persistence phase of the attack. Examine newly created scheduled task XML definitions for tasks using Base64-encoded PowerShell commands, tasks executing from temporary directories, and tasks configured to run with SYSTEM or elevated account credentials without a business justification. Monitor Windows Event ID 4698 for scheduled task creation and Event ID 4702 for modification, correlating with the creating process and user account to identify tasks created through unusual means such as via mshta.exe or office applications.
What does a Scheduled Task alert look like?
A representative SIEM detection is "Scheduled Task with Encoded PowerShell Created at Startup" (high severity): Windows Event 4698 recorded creation of scheduled task "MicrosoftEdgeUpdateTaskMachineUA" via schtasks.exe on workstation WS-MKTG-044. Despite the legitimate-sounding name, the task action executes powershell.exe with -EncodedCommand containing a Base64 string that decodes to a Cobalt Strike stager. The task is configured to run at system startup under the SYSTEM account.
Which tools detect Scheduled Task, and how can I practice?
Scheduled Task (T1053.005) is best surfaced with XDR, SIEM telemetry, which exposes the persistence signals described above. Practice detecting it on those exact consoles in SOCSimulator Operations, free.
Tool

XDR Training Console: SOCSimulator

The XDR console in SOCSimulator replicates the investigation workflow of platforms like CrowdStrike Falcon, Microsoft De…

Read more
Tool

SIEM Training Console: SOCSimulator

The SIEM console in SOCSimulator replicates the workflow of enterprise platforms like Splunk Enterprise Security, Micros…

Read more
Glossary

What is Persistence? SOC Glossary

Persistence is the set of techniques an adversary uses to keep access to a compromised system after whatever gave them t…

Read more
Glossary

What is EDR? SOC Glossary

EDR (endpoint detection and response) is security software that puts an agent on each laptop, server and workstation, re…

Read more
Glossary

What is Threat Hunting? SOC Glossary

Threat hunting is the proactive search through security telemetry for attackers that existing controls missed. The hunte…

Read more
Glossary

What is IOC (Indicator of Compromise)? SOC Glossary

In cyber security, an indicator of compromise (IOC) is forensic evidence, such as a file hash, IP, or domain, that links…

Read more
Career Path

Threat Hunter Career Guide: Salary & Skills

Threat Hunters do not wait for alerts. You develop hypotheses based on threat intelligence and adversary behavior models…

Read more
Career Path

Detection Engineer Career Guide: Salary & Skills

Detection Engineers build the rules, analytics, and automated workflows that determine what the SOC can see. You transla…

Read more
Comparison

SOCSimulator Vs. Letsdefend: Platform Comparison

SOCSimulator wins on operational realism. You get multi-tool shift simulation with SLA pressure, noise injection, and al…

Read more
Glossary

SOC Glossary: Security Operations Terminology

Complete glossary of Security Operations Center terminology for aspiring SOC analysts.

Read more
Feature

Shift Mode: Real-Time SOC Simulation

Practice alert triage under realistic time pressure with SLA timers and noise injection.

Read more
Feature

Operations: Guided Training Operations

Structured CTF-style investigation operations covering real-world attack scenarios.

Read more