Security event 4698
A scheduled task was created
Channel: Security. Category: Object Access: Audit Other Object Access Events (Scheduled Tasks).
What it records
Generated every time a new scheduled task is registered with Task Scheduler, capturing the Task Name (path within the Task Scheduler Library tree) and the full Task Content XML: triggers, actions, run-as principal, and logon type.
Why it matters
The primary Security-log event for detecting Scheduled Task-based persistence. Malware and intruders commonly create a scheduled task to re-execute on a schedule, at logon, or at startup. Microsoft explicitly calls out tasks created directly under the Task Scheduler Library root node, and any task whose XML contains <LogonType>Password</LogonType> (which stores the run-as password in Credential Manager in cleartext, extractable with admin rights), as red flags. Well-established as a detection artifact for MITRE ATT&CK T1053.005 (Scheduled Task/Job: Scheduled Task).
What triggers it
Legitimate administrative or software-installer task scheduling, as well as adversaries creating a scheduled task for persistence, execution, or privilege escalation (e.g., a task configured to run as SYSTEM or with saved credentials).
Fields that carry the answer
| Field | What it tells you |
|---|---|
| Task Name | Full path within the Task Scheduler Library tree, which tasks created directly under the root node (rather than a vendor subfolder) are a documented red flag. |
| Task Content | Full task-definition XML (trigger, action/command, run-as principal, logon type). Check the <Command> element for what it runs and <LogonType> for whether it stores a cleartext-recoverable password in Credential Manager. |
In practice
A 4698 shows Task Name \Updater (created directly under the Task Scheduler Library root rather than a vendor subfolder) with Task Content XML whose <Command> element points at C:\ProgramData\updater.exe and whose <LogonType> is set to Password: both documented red flags: a root-level task name and a logon type that stores a recoverable cleartext credential in Credential Manager, consistent with persistence via scheduled task.
Sample record
A scheduled task was created.
Subject:
Security ID: S-1-5-21-3457937927-2839227994-823803824-1104
Account Name: jsmith
Account Domain: CORP
Logon ID: 0x2A9F31
Task Information:
Task Name: \Microsoft\Windows\UpdateOrchestrator\UpdateCheck
Task Content: <?xml version="1.0" encoding="UTF-16"?>
<Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
<RegistrationInfo>
<Author>CORP\jsmith</Author>
</RegistrationInfo>
<Triggers>
<TimeTrigger>
<StartBoundary>2024-01-15T09:00:00</StartBoundary>
<Enabled>true</Enabled>
</TimeTrigger>
</Triggers>
<Actions Context="Author">
<Exec>
<Command>C:\Windows\Temp\update.exe</Command>
</Exec>
</Actions>
</Task>ATT&CK techniques
- T1053.005: Scheduled Task
Sources
Paste a record into Event XML or open a log in EVTX Reader.