VeriKQL by Kaushik Saha

T1053 Scheduled Task/Job

ExecutionPersistencePrivilege Escalationon attack.mitre.org

ATT&CK Enterprise 20.0 · 20.1 released, update in review

How MITRE detects it

DET0094 Cross-Platform Behavioral Detection of Scheduled Task/Job Abuse

AN0258 Windows

Detects creation or modification of scheduled tasks using schtasks.exe, at.exe, or COM objects followed by execution of outlier processes tied to the scheduled job.

MITRE log sourceIn Microsoft Sentinel
WinEventLog:SecurityEventCode=4698
  • Windows Security Events via AMA → SecurityEvent
    SecurityEvent | where EventID in (4698)
  • Security Events via Legacy Agent → SecurityEvent
    SecurityEvent | where EventID in (4698)
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Channel == "Security" | where EventID in (4698)

The same events land in SecurityEvent (Windows Security Events connectors) or WindowsEvent (Windows Event Forwarding); many built-in rules read SecurityEvent only.

WinEventLog:SysmonEventCode=1
  • Windows event logs (Azure Monitor Agent) → Event
    Event | where Source == "Microsoft-Windows-Sysmon" | where EventID in (1)
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Provider == "Microsoft-Windows-Sysmon" | where EventID in (1)

Sysmon has no dedicated Sentinel connector: it is collected as a Windows event log into Event or WindowsEvent.

WinEventLog:SysmonEventCode=2
  • Windows event logs (Azure Monitor Agent) → Event
    Event | where Source == "Microsoft-Windows-Sysmon" | where EventID in (2)
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Provider == "Microsoft-Windows-Sysmon" | where EventID in (2)

Sysmon has no dedicated Sentinel connector: it is collected as a Windows event log into Event or WindowsEvent.

AN0259 Linux

Detects creation or modification of cron jobs via crontab, /etc/cron.* directories, or systemd timer units with execution by unusual users or non-standard intervals.

MITRE log sourceIn Microsoft Sentinel
auditd:SYSCALLwrite, renameNot mapped to Sentinel yet.
auditd:SYSCALLexecveNot mapped to Sentinel yet.
linux:osquerycrontab, systemd_timersNot mapped to Sentinel yet.

AN0260 macOS

Detects creation or alteration of LaunchAgents or LaunchDaemons with corresponding plist modification followed by execution of associated binaries.

MITRE log sourceIn Microsoft Sentinel
macos:unifiedlogprocess launchNot mapped to Sentinel yet.
fs:fsusagedisk activity on /Library/LaunchAgents or LaunchDaemonsNot mapped to Sentinel yet.
macos:osquerylaunchd_jobsNot mapped to Sentinel yet.

AN0261 Containers

Detects unusual use of `cron` or `sleep` loops inside containers executing unfamiliar scripts or binaries repeatedly.

MITRE log sourceIn Microsoft Sentinel
auditd:SYSCALLexecveNot mapped to Sentinel yet.
containerd:runtimefile change monitoring within /etc/cron.*, /tmp, or mounted volumesNot mapped to Sentinel yet.

AN0262 ESXi

Detects modification of ESXi cron jobs, local.sh scripts, or scheduled API calls to persist custom binaries or shell scripts.

MITRE log sourceIn Microsoft Sentinel
esxi:vmkernelStartup script and task execution logsNot mapped to Sentinel yet.
esxi:hostdshell access or job registrationNot mapped to Sentinel yet.
esxi:cronmanual edits to /etc/rc.local.d/local.sh or cron.dNot mapped to Sentinel yet.

Content Hub rules tagged with it (32)

Showing 25 of 32.

Rules tagged with this technique (or a sub-technique) in their metadata. Whether one fits your connectors is the coverage view (M2).

How the Content Hub rules for T1053 are built: their tables, filters, joins, schedules and windows.

In Sigma rules

73 SigmaHQ community rules name it or one of its sub-techniques in their tags.

Showing 25 of 73: stable rules first, then by level.

Community rules, not Microsoft's, and not checked by VeriKQL (Sigma is not KQL). From SigmaHQ/sigma at f083329, under the Detection Rule License (DRL) 1.1; each rule is credited to its author.

Mitigations

Sub-techniques

MITRE ATT&CK® is a registered trademark of The MITRE Corporation. VeriKQL is not affiliated with or endorsed by MITRE. ATT&CK data © The MITRE Corporation, used under its terms of use.