What is Scheduled Task/Job?
Using the operating system's own scheduler to run attacker code — at boot, at a set time, or on a trigger. Simple, reliable, survives reboots, and hides among the hundreds of legitimate tasks already there.
Scheduled Task/Job covers abuse of task scheduling facilities — Windows Task Scheduler, cron, systemd timers, container orchestration jobs — for execution, persistence and privilege escalation. It is one of the most common persistence mechanisms in real intrusions because it is trivial to set up, needs no custom code, works remotely, and blends into environments that already contain hundreds of legitimate scheduled tasks with unremarkable names. It can also escalate privilege where a task runs as a more privileged account than the one that can modify it. Defensively the good news is that task creation and modification are logged by default on modern systems, so detection is largely a matter of collecting and reviewing those events, with particular attention to tasks created remotely or running from unusual paths such as user profile or temporary directories. For decision-makers, this is a reminder that eviction requires enumerating persistence mechanisms, not just removing what was found first.
Source: MITRE ATT&CK (T1053).
Practice it in a lab
Free, hands-on labs that teach Scheduled Task/Job. 3 more labs also cover it.
- Catch ATT&CK T1053.005 Scheduled Task persistence on Windows with Sysmon, tune out the backup job, and prove cleanup (Windows Purple 6 of 6) (intermediate, ~60 min)
- Detect scheduled-task persistence in Windows event logs (intermediate, ~50 min)
- Find malicious and hidden scheduled tasks in the Windows task store (XML files + TaskCache) (intermediate, ~75 min)
- Audit a Linux VM you own like an assessor: collect the inventory, then write findings with fixes (beginner, ~50 min)
- Characterize adware: bundled installers, pop-up processes, and ad-network traffic (beginner, ~40 min)
- Characterize a cryptominer: CPU abuse, pool connections, and how it hides (intermediate, ~50 min)
- Find every way a sample survives reboot: Run keys, services, tasks, startup, and WMI (intermediate, ~50 min)
- Harden a Windows host from a WinPEAS audit: find and fix the weak configurations (intermediate, ~45 min)
Related terms
Related
- Catch ATT&CK T1053.005 Scheduled Task persistence on Windows with Sysmon, tune out the backup job, and prove cleanup (Windows Purple 6 of 6)
- Detect scheduled-task persistence in Windows event logs
- Find malicious and hidden scheduled tasks in the Windows task store (XML files + TaskCache)
- Audit a Linux VM you own like an assessor: collect the inventory, then write findings with fixes
- Characterize adware: bundled installers, pop-up processes, and ad-network traffic
- Characterize a cryptominer: CPU abuse, pool connections, and how it hides
- Find every way a sample survives reboot: Run keys, services, tasks, startup, and WMI
- Harden a Windows host from a WinPEAS audit: find and fix the weak configurations
- Persistence
- PowerShell
- MITRE ATT&CK
- False positive
- Cybersecurity glossary
- Free cyber labs