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).

WindowsPersistenceParser: scheduled_tasks33 fieldsCollected by priority triage

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:

FieldTypeMeaning
uriVARCHARScheduled task URI
task_pathVARCHARScheduled task path (\folder\task)
registration_date_rawVARCHARRaw scheduled task registration date
authorVARCHARModule author
task_enabledBOOLEANScheduled task enabled flag
commandVARCHARCommand text from sudo activity or sudoers policy
actionVARCHARAction taken (quarantine/delete)
task_principal_idVARCHARScheduled task principal ID
principal_idsVARCHAR[]Scheduled task principal IDs
run_levelVARCHARScheduled task run level
logon_typeVARCHARScheduled task logon type
security_descriptorVARCHARScheduled task security descriptor
task_registration_dateTIMESTAMPScheduled task registration timestamp
guidVARCHAREntity GUID
last_registeredTIMESTAMPScheduled task last registered timestamp
task_last_stopTIMESTAMPScheduled task last stop timestamp
last_resultBIGINTScheduled task last result code
task_flagsVARCHARScheduled task flags
task_hiddenBOOLEANScheduled task hidden flag
security_descriptor_registryVARCHARScheduled task registry security descriptor
xml_hash_matchBOOLEANScheduled task XML hash match flag
last_runTIMESTAMPScheduled task last run timestamp
record_typeVARCHARRecord type code
action_typeVARCHARScheduled task action type
argumentsVARCHARScheduled task action arguments
working_directoryVARCHARpwd
task_class_idVARCHARScheduled task COM class ID
com_dataVARCHARScheduled task COM action data
trigger_typeVARCHARScheduled task trigger type
trigger_start_boundaryVARCHARScheduled task trigger start boundary
trigger_end_boundaryVARCHARScheduled task trigger end boundary
task_trigger_enabledBOOLEANScheduled task trigger enabled flag
source_file_modifiedTIMESTAMPModification 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