A disabled task was enabled.
Re-enabling dormant tasks as a persistence mechanism. Pre-positioned tasks re-enabled later during active attack phase.
Alert: tasks enabled outside business hours. Correlate with 4698 for original creation context.
SubjectUserNameTargetUserNameLogonTypeIpAddressWorkstationName | Tactic | Technique |
|---|---|
| Persistence | Scheduled Task (T1053.005) |
Starting points — adapt the log source, projected fields and thresholds for your environment.
SecurityEvent
| where EventID == 4700 // A scheduled task was enabled
| project TimeGenerated, Computer, SubjectUserName, TargetUserName, LogonType, IpAddress, WorkstationName
| sort by TimeGenerated desc
index=* sourcetype="WinEventLog:Security" EventCode=4700
| stats count earliest(_time) as first_seen latest(_time) as last_seen by ComputerName
| sort - count `# A scheduled task was enabled — add EventData fields: SubjectUserName, TargetUserName, LogonType, IpAddress`
A scheduled task was enabled. A disabled task was enabled.
Event 4700 is written to the Security channel by Microsoft-Windows-Security-Auditing. Advanced Audit Policy — enable the 'Policy Change' subcategory (Success and/or Failure).
Event 4700 is associated with: Scheduled Task (T1053.005).
Alert: tasks enabled outside business hours. Correlate with 4698 for original creation context.