Windows Scheduled Task Creation via PowerShell Using schtasks.exe with ONLOGON/DAILY/ONIDLE/HOURLY

Flags PowerShell-launched schtasks.exe /Create commands matching default PowerSploit/Empire scheduled task persistence behavior.

FreeReviewedSigma · High · v2
Product
windows
Category
process_creation
Author
Markus Neis, @Karneades (SigmaHQ), DRL 1.1
Published
2018-03-06
Updated
2026-07-31

ATT&CK techniques

Execution → Priv Esc
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Defense Evasion

  5. Cred Access

  6. Discovery

  7. Lateral Movement

  8. Collection

  9. C2

  10. Exfiltration

  11. Impact

What it detects

This rule flags process creation events where PowerShell (powershell.exe/pwsh.exe) launches schtasks.exe to create a scheduled task. It specifically matches a schtasks.exe /Create command targeting the /TN Updater and a /TR that includes a PowerShell non-interactive invocation, along with recurring trigger settings (/SC ONLOGON, /SC DAILY /ST, /SC ONIDLE, or /SC HOURLY). Attackers commonly use scheduled tasks for persistence and to execute payloads automatically, so this behavior is high-signal when seen in process telemetry. The rule relies on Windows process creation fields for ParentImage, Image, and CommandLine.

Related detections9 linkedT1053.005 — drag to rearrange
Suspicious Scheduled Task Running PowerShell Every Minute (via process_creation)
Scheduled Task Creating Per-Minute Hidden PowerShell Execution
Windows Process Creation: schtasks.exe Creating Scheduled Task Launching Registry-Stored PowerShell Payload
Windows Task Scheduler persistence using svchost-launched PowerShell with hidden/Bypass flags
Windows schtasks.exe Create Executes File from AppData\Local
Windows schtasks Creates Registry-Backed Base64 PowerShell Payload via Encoded Command
Windows ChromeLoader Execution via Scheduled Task and Hidden PowerShell Launch
Windows process command lines matching May 2020 Turla ComRAT command patterns
Windows Security: checkadmin.exe TargetUserName starting with Administr (Event ID 4799)
Windows Scheduled Task Creation via PowerShell Using schtasks.exe with ONLOGON/DAILY/ONIDLE/HOURLY
Pivot detection · T1053.005 · 9 related

Changelog

v2
  1. v2
    Candidate ingested via manual entry.2026-07-31
  2. v1
    No changelog recorded for this version.2026-07-30

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.