Scheduled task
Windows scheduled tasks are defined as XML files in C:\Windows\System32\Tasks, with matching entries in the TaskCache key of the SOFTWARE hive. Attackers use them to run payloads on a schedule or at startup (ATT&CK T1053.005).
What Scheduled Tasks is
Persistence artifacts are the places programs start from automatically: services, tasks, autostart keys, WMI subscriptions, cron and systemd. Attackers use them to survive reboots.
Forensic value
What Scheduled Tasks can tell an investigator:
- Task names, triggers, actions and the account a task runs as.
- Authors and registration times, which help date persistence.
- Hidden tasks: ones present in TaskCache but altered or removed from the Tasks folder.
What it does not prove
- Task creation event 4698 is only logged when object access auditing is enabled.
- Task Scheduler's operational log records runs, but it may be disabled or rolled over.
Where it is stored
Arcsentry looks for Scheduled Tasks at these locations inside a collection, disk image or mounted volume:
**/Windows/System32/Tasks/**
**/Windows/System32/config/SOFTWARE What Arcsentry records
Each Scheduled Tasks record is written to Arcsentry's common schema with these fields, alongside the host, timestamp and provenance every record carries:
| Field | Type | Meaning |
|---|---|---|
uri | VARCHAR | Scheduled task URI |
task_path | VARCHAR | Scheduled task path (\folder\task) |
registration_date_raw | VARCHAR | Raw scheduled task registration date |
author | VARCHAR | Module author |
task_enabled | BOOLEAN | Scheduled task enabled flag |
command | VARCHAR | Command text from sudo activity or sudoers policy |
action | VARCHAR | Action taken (quarantine/delete) |
task_principal_id | VARCHAR | Scheduled task principal ID |
principal_ids | VARCHAR[] | Scheduled task principal IDs |
run_level | VARCHAR | Scheduled task run level |
logon_type | VARCHAR | Scheduled task logon type |
security_descriptor | VARCHAR | Scheduled task security descriptor |
task_registration_date | TIMESTAMP | Scheduled task registration timestamp |
guid | VARCHAR | Entity GUID |
last_registered | TIMESTAMP | Scheduled task last registered timestamp |
task_last_stop | TIMESTAMP | Scheduled task last stop timestamp |
last_result | BIGINT | Scheduled task last result code |
task_flags | VARCHAR | Scheduled task flags |
task_hidden | BOOLEAN | Scheduled task hidden flag |
security_descriptor_registry | VARCHAR | Scheduled task registry security descriptor |
xml_hash_match | BOOLEAN | Scheduled task XML hash match flag |
last_run | TIMESTAMP | Scheduled task last run timestamp |
record_type | VARCHAR | Record type code |
action_type | VARCHAR | Scheduled task action type |
arguments | VARCHAR | Scheduled task action arguments |
working_directory | VARCHAR | pwd |
task_class_id | VARCHAR | Scheduled task COM class ID |
com_data | VARCHAR | Scheduled task COM action data |
trigger_type | VARCHAR | Scheduled task trigger type |
trigger_start_boundary | VARCHAR | Scheduled task trigger start boundary |
trigger_end_boundary | VARCHAR | Scheduled task trigger end boundary |
task_trigger_enabled | BOOLEAN | Scheduled task trigger enabled flag |
source_file_modified | TIMESTAMP | Modification time of the source artifact file, carried only on records that lack a parsed event timestamp (substituted-time provenance, never a forensic event time) |
Time
Arcsentry keeps each record's own time and labels its time zone when the source does not state one. A record with no time of its own stays untimed; Arcsentry never substitutes the collection time.
Collecting Scheduled Tasks with Arcsentry Collector
Arcsentry Collector gathers Scheduled Tasks in these triage profiles: windows::profile::triage::priority, windows::profile::triage::offline, windows::profile::triage::timeline, windows::profile::triage::full. It is read straight from the file system, on a live host or inside a disk image, without mounting.
The collection targets that pick it up: windows::execution::scheduled_tasks, windows::registry::registry_hives_system, windows::security::windows_hello, windows::system_state::srum.
.\arcsentry-collect.exe collect --local -t windows::profile::triage::priority `
-o E:\IR -f host.arcx --password-file E:\IR\pw.txt Every file lands in one AES-256 archive with a SHA-256 recorded for it, and the collection log notes which target collected it. See everything each profile collects.
Already collected with something else? Arcsentry also reads KAPE, Velociraptor and UAC collections, so Scheduled Tasks can come from the tools you already use.
Analysing Scheduled Tasks in Arcsentry
Ask in plain English, for example "show Scheduled Tasks records from the incident window, newest first", and Arcsentry shows the query before it runs. Or write it in AQL:
filter event_type == "scheduled_tasks"
sort {-timestamp}
take 100 Mark a record malicious or suspicious and it joins the timeline in its kill-chain lane. Add its values as indicators and Arcsentry matches them across every host. When the AI investigator works the case, it reads Scheduled Tasks records with the same tools and cites them by event ID.
Corroborate with
No single artifact settles a question on its own. Check Scheduled Tasks against:
- Windows event log: Parses Windows Event Log (.evtx) files.
- Registry Run keys: Parses autostart Run/RunOnce registry keys.
- Windows services: Windows service configurations including image paths, start types, and service DLLs.
- WMI persistence: Parses the WMI CIM repository (event subscriptions, instances, class definitions, namespaces and page allocation) and WMI MOF files.
Frequently asked
Where are scheduled tasks stored?
As XML files in C:\Windows\System32\Tasks, with registry entries under SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache.
Does Arcsentry parse Scheduled Tasks?
Yes. Arcsentry's Scheduled Tasks parser (scheduled_tasks) reads it from Windows evidence and records 33 fields per record, with provenance back to the source file.
How do I collect Scheduled Tasks?
Arcsentry Collector gathers it with the priority triage profile (windows::profile::triage::priority), live or from a disk image, sealed in an AES-256 archive with a SHA-256 for every file.
Parse Scheduled Tasks on your own evidence.
Tell us what you want to investigate. A person replies within one business day with the download and a trial licence.
Request a trial