4698 Security log · Policy Change high severity low volume

Windows Event ID 4698 — A scheduled task was created

Scheduled task created. TaskName, TaskContent (XML with action/triggers/principals), SubjectUserName are key. XML content reveals exactly what the task does.

Why event 4698 matters

Primary persistence mechanism (T1053.005). Tasks executing from temp/user paths, encoded PowerShell in actions, run-at-startup or logon triggers. Tools: schtasks.exe, Register-ScheduledTask. Common ransomware pre-deployment step.

How to detect it

Alert: TaskContent contains PowerShell -enc or wscript. Alert: task action in %TEMP% or %APPDATA%. Alert: created by non-SYSTEM outside business hours. Alert: RunAs SYSTEM created by non-admin. Parse TaskContent XML for suspicious CommandLine.

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

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.

Sigma rule
title: Suspicious Scheduled Task Created
status: stable
description: Scheduled task with suspicious content created
author: theadminstack.com
date: 2026/05/16
logsource:
    product: windows
    service: security
detection:
    selection:
        EventID: 4698
        TaskContent|contains:
            - 'powershell'
            - 'cmd.exe'
            - 'wscript'
            - 'AppData'
            - 'Temp'
    condition: selection
falsepositives:
    - Legitimate software installers
    - Admin automation
level: high
tags:
    - attack.persistence
    - attack.t1053.005
Sentinel / Defender KQL
SecurityEvent
| where EventID == 4698   // A scheduled task was created
| project TimeGenerated, Computer, TaskName, SubjectUserName, ClientProcessId
| sort by TimeGenerated desc
Splunk SPL
index=* sourcetype="WinEventLog:Security" EventCode=4698
| stats count earliest(_time) as first_seen latest(_time) as last_seen by ComputerName
| sort - count   `# A scheduled task was created — add EventData fields: TaskName, SubjectUserName, ClientProcessId`
Hunt event 4698 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

4699 A scheduled task was deleted 4700 A scheduled task was enabled 4701 A scheduled task was disabled 4702 A scheduled task was updated 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 4698?

A scheduled task was created. Scheduled task created. TaskName, TaskContent (XML with action/triggers/principals), SubjectUserName are key. XML content reveals exactly what the task does.

Which log records event 4698?

Event 4698 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 4698?

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

How do you detect activity around event 4698?

Alert: TaskContent contains PowerShell -enc or wscript. Alert: task action in %TEMP% or %APPDATA%. Alert: created by non-SYSTEM outside business hours. Alert: RunAs SYSTEM created by non-admin. Parse TaskContent XML for suspicious CommandLine.