WinEvent Scheduled Task Created Within Public Path
The following analytic detects the creation of scheduled tasks within user-writable paths using Windows Security EventCode 4698. It identifies tasks registered via schtasks.exe or TaskService that execute commands…
Description
The following analytic detects the creation of scheduled tasks within user-writable paths using Windows Security EventCode 4698. It identifies tasks registered via schtasks.exe or TaskService that execute commands from directories like Public, ProgramData, Temp, and AppData. This behavior is significant as it may indicate an attempt to establish persistence or execute unauthorized commands. If confirmed malicious, an attacker could maintain long-term access, escalate privileges, or execute arbitrary code, posing a severe threat to system integrity and security.
Detection logic
Detection requirements
- Platform
- Windows
The rule states no platform. This is derived from the ATT&CK technique it maps to.
- Log source category
- windows_event_log_security_4698
Known benign triggers
- False positives are possible if legitimate applications are allowed to register tasks in public paths. Filter as needed based on paths that are used legitimately.
MITRE ATT&CK mappings
0 exclusive techniques.This is coverage no other published rule has; it is not this rule's total technique count.
References
| Reference | Cited by |
|---|---|
| app.any.run/tasks/e26f1b2e-befa-483b-91d2-e18636e2faf3/ | Only this detection cites it |
| docs.microsoft.com/en-us/windows/win32/taskschd/time-trigger-example--scripting-?redirectedfrom=MSDN | 2 |
| redcanary.com/threat-detection-report/techniques/scheduled-task-job/ | 3 |
| research.checkpoint.com/2021/irans-apt34-returns-with-an-updated-arsenal/ | 3 |
| www.ultimatewindowssecurity.com/securitylog/encyclopedia/event.aspx?eventID=4698 | 2 |
From the source
- At source
- Open at source
- Upstream identifier
- 5d9c6eee-988c-11eb-8253-acde48001122
- Tagged by the source as
- 0bj3ctivity StealerActive Directory Lateral MovementAPT37 Rustonotto and FadeStealerAsyncRATCastle RATChina-Nexus Threat ActivityCISA AA22-257ACISA AA23-347ACompromised Windows HostData DestructionIcedIDIndustroyer2Malicious Inno Setup LoaderMedusa RansomwarePlugXPrestige RansomwareQuasar RATRansomwareRemcosRyuk RansomwareSalt TyphoonScheduled TasksSystemBCValleyRATWindows Persistence TechniquesWinter VivernXWormEndpointendpointSplunk CloudSplunk EnterpriseSplunk Enterprise Securityendpoint
Licence
- Published under
- Apache License 2.0Read the licence
- Attribution
- Required
- Obtained under
- Apache-2.0Read the origin licence
Authorship
- Written by
- Published
- Aug 26, 2026
- Version
- 1