4702 Security log · Policy Change high severity low volume

Windows Event ID 4702 — A scheduled task was updated

Existing scheduled task was modified. New TaskContent replaces old content.

Why event 4702 matters

Stealthy persistence by modifying existing legitimate tasks rather than creating new ones — task retains its original name but executes attacker payload.

How to detect it

Alert: TaskContent changes adding PowerShell, cmd, or paths in temp/user directories. Compare new vs. old task content if available.

Log source
Security
Advanced Audit Policy — enable the 'Policy Change' subcategory (Success and/or Failure).
Fields to pivot on
SubjectUserNameTargetUserNameLogonTypeIpAddressWorkstationName

MITRE ATT&CK mapping

Tactic Technique
Persistence Scheduled Task (T1053.005)

Detection queries

Starting points — adapt the log source, projected fields and thresholds for your environment.

Sentinel / Defender KQL
SecurityEvent
| where EventID == 4702   // A scheduled task was updated
| project TimeGenerated, Computer, SubjectUserName, TargetUserName, LogonType, IpAddress, WorkstationName
| sort by TimeGenerated desc
Splunk SPL
index=* sourcetype="WinEventLog:Security" EventCode=4702
| stats count earliest(_time) as first_seen latest(_time) as last_seen by ComputerName
| sort - count   `# A scheduled task was updated — add EventData fields: SubjectUserName, TargetUserName, LogonType, IpAddress`
Hunt event 4702 in Sentinel/Defender →
Build a KQL query for this event in the KQL Query Builder.
Search all event IDs →
Open the interactive Windows Event ID lookup.

Related Policy Change events

4698 A scheduled task was created 4699 A scheduled task was deleted 4700 A scheduled task was enabled 4701 A scheduled task was disabled 4703 A token right was adjusted 4704 A user right was assigned 4705 A user right was removed 4706 A new trust was created to a domain 4707 A trust to a domain was removed 4713 Kerberos policy was changed 4714 Encrypted data recovery policy was changed 4715 The audit policy (SACL) on an object was changed

Frequently asked questions

What is Windows Event ID 4702?

A scheduled task was updated. Existing scheduled task was modified. New TaskContent replaces old content.

Which log records event 4702?

Event 4702 is written to the Security channel by Microsoft-Windows-Security-Auditing. Advanced Audit Policy — enable the 'Policy Change' subcategory (Success and/or Failure).

What MITRE ATT&CK techniques map to event 4702?

Event 4702 is associated with: Scheduled Task (T1053.005).

How do you detect activity around event 4702?

Alert: TaskContent changes adding PowerShell, cmd, or paths in temp/user directories. Compare new vs. old task content if available.