Windows Security Event 4698: Kapeka-like Scheduled Task Creation

Flags suspicious Kapeka-like scheduled task creation via Event 4698 using TaskContent paths, rundll32/.wll command markers, and OneDrive/Sens Api task names.

FreeReviewedSigma · High · v5
Product
windows
Service
security
Author
Swachchhanda Shrawan Poudel (SigmaHQ), DRL 1.1
Published
2024-07-03
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 Windows scheduled task creation events (EventID 4698) whose task content includes specific file and command-line artifacts consistent with the Kapeka backdoor behavior. It matters because creating scheduled tasks is a common persistence technique and can be used to execute malicious payloads at recurring intervals or system events. The detection relies on Security log telemetry for TaskContent fields, including paths, rundll32/.wll/#1 command fragments, and task names such as “OneDrive” or “Sens Api”.

Related detections9 linkedT1053.005 — drag to rearrange
Suspicious Scheduled Task Persistence Named SchedulerLsass via schtasks (via process_creation)
Malicious SYSTEM Persistence via Scheduled Task Running rundll32 at Startup (via process_creation)
Suspicious Per-Minute SYSTEM Scheduled Task With Highest Privileges
Suspicious Scheduled Task Executing Rundll32 DLL Export by Ordinal
Suspicious Scheduled Task CacheTask Reconfigured to Run as SYSTEM
Malicious NodeSnake RAT Persistence via Scheduled Task and Node.js (via process_creation)
Malicious Scheduled Task Masquerading as Windows Defender Sync via schtasks (via process_creation)
Suspicious Scheduled Task Creation Launching mshta via schtasks (via process_creation)
Suspicious Service or Task Named windowsinspectionupdate (via process_creation)
Windows Security Event 4698: Kapeka-like Scheduled Task Creation
Pivot detection · T1053.005 · 9 related

Changelog

v5
  1. v5
    Candidate ingested via manual entry.2026-07-31
  2. v4
    Candidate ingested via manual entry.2026-07-31
  3. v3
    Candidate ingested via manual entry.2026-07-31
  4. v2
    Candidate ingested via manual entry.2026-07-31
  5. 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.