Security event 4702
A scheduled task was updated
Channel: Security. Category: Object Access: Audit Other Object Access Events (Scheduled Tasks).
What it records
Generated whenever an existing scheduled task's definition is changed (any modification other than enabling/disabling) recording the Task Name and the new Task Content XML.
Why it matters
Lets an analyst catch an attacker modifying an already-trusted scheduled task (e.g., repointing its action at a malicious payload) rather than creating a brand-new task, which is a common way to blend in since the task name itself doesn't change. Microsoft's guidance flags a <LogonType>Password</LogonType> value in the updated task's XML as a red flag, since it means the run-as password is stored in Credential Manager in cleartext and extractable with admin rights.
What triggers it
Legitimate task reconfiguration by administrators or software updates, or an adversary repurposing/modifying an existing scheduled task to execute a different payload or run under different credentials.
Fields that carry the answer
| Field | What it tells you |
|---|---|
| Task Name | Path of the updated task: the name itself doesn't change on update, which is exactly what makes repointing an already-trusted task a common way for an attacker to blend in. |
| Task New Content | The new task-definition XML after the update. Compare its <Command>/<Actions> against the prior 4698/4702 content for that Task Name to spot a payload swap, and check <LogonType> for a cleartext-recoverable password. |
In practice
Task Name \CorpTools\InventorySync is updated by CORP\itadmin, and Task New Content shows only a schedule-time change. Routine. If the same Task Name's new content instead shows its <Command> repointed to powershell.exe -enc <base64>, or a <LogonType>Password</LogonType> value appended, that's a sign an already-trusted task was hijacked to run a different payload, or now stores a run-as password recoverable in cleartext from Credential Manager.
Sample record
A scheduled task was updated.
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">
<Triggers>
<TimeTrigger>
<StartBoundary>2024-02-01T09:00:00</StartBoundary>
<Enabled>true</Enabled>
</TimeTrigger>
</Triggers>
<Actions Context="Author">
<Exec>
<Command>C:\Windows\Temp\update2.exe</Command>
<Arguments>-silent</Arguments>
</Exec>
</Actions>
</Task>ATT&CK techniques
- T1053.005: Scheduled Task
Sources
Paste a record into Event XML or open a log in EVTX Reader.