Windows Security log
4698 A scheduled task was created.
A scheduled task was registered. TaskContent holds the full task XML: the trigger, the account it runs as and the command.
- SecurityLog
- Microsoft-Windows-Security-AuditingSource
- Audit Other Object Access EventsAudit policy
- 4Cases and alerts that use it
Fields to read
| Field | What it tells you |
|---|---|
SubjectUserName | Who created the task. |
TaskName | The path and name, for example \Microsoft\Windows\UpdateOrchestrator\Reboot. |
TaskContent | The task XML: look at Actions/Exec/Command and Arguments. |
Normal
- Windows and software updaters (browsers, OneDrive, vendor tools) registering their own tasks.
Suspicious
- A task under \Microsoft\Windows\ created by a user instead of SYSTEM: something posing as Windows.
- A command in AppData, Temp or C:\Users\Public, or PowerShell with an encoded command.
- The same new task appearing on many hosts at once.
Find it
Microsoft Sentinel (KQL)
SecurityEvent
| where EventID == 4698Splunk (SPL)
index=wineventlog source="XmlWinEventLog:Security" EventCode=4698Table, index and source names as CyberSim uses them; your workspace may name them differently.
Where you meet it in CyberSim
Cases
- Fake PDF viewer installs a hidden scheduled task Intermediate · Endpoint
Alerts in the shift
- Installer child process created a scheduled task and an outbound connection
- Scheduled task created
- Scheduled task created by a user
The detection lab
- Suspicious scheduled task created
ATT&CK techniques it can show
- T1053.005 Scheduled Task/Job: Scheduled Task
- T1543.003 Create or Modify System Process: Windows Service
In the glossary
Other Security events
- 4624 An account was successfully logged on.
- 4625 An account failed to log on.
- 4634 An account was logged off.
- 4661 A handle to an object was requested.
- 4662 An operation was performed on an object.
- 4663 An attempt was made to access an object.
- 4672 Special privileges assigned to new logon.
- 4688 A new process has been created.
- 4720 A user account was created.
- 4728 A member was added to a security-enabled global group.
- 4768 A Kerberos authentication ticket (TGT) was requested.
- 4769 A Kerberos service ticket was requested.
- 4886 Certificate Services received a certificate request.
- 4887 Certificate Services approved a certificate request and issued a certificate.
- 5136 A directory service object was modified.
- 5145 A network share object was checked to see whether client can be granted desired access.
- 6416 A new external device was recognized by the System.
Source: Microsoft Learn: event 4698