<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/hunting-for-scheduled-task-persistence-using-kql-in-sentinel-j33e1awgx" -->

---
title: Hunting for scheduled task persistence using KQL in Sentinel
description: Scheduled tasks are a common Windows persistence mechanism, and this guide walks through hunting for suspicious task creation and execution using KQL in...
canonical: https://daily.dev/posts/hunting-for-scheduled-task-persistence-using-kql-in-sentinel-j33e1awgx
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Hunting for scheduled task persistence using KQL in Sentinel | daily.dev
og:description: Scheduled tasks are a common Windows persistence mechanism, and this guide walks through hunting for suspicious task creation and execution using KQL in...
og:url: https://daily.dev/posts/hunting-for-scheduled-task-persistence-using-kql-in-sentinel-j33e1awgx
og:image: https://api.daily.dev/og/posts/J33E1AWGX.png
og:image:alt: Hunting for scheduled task persistence using KQL in Sentinel
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Hunting for scheduled task persistence using KQL in Sentinel

**[Security Boulevard](https://daily.dev/sources/securityboulevard)** · 14 min read · 0 upvotes · 0 comments

## Summary

Scheduled tasks are a common Windows persistence mechanism, and this guide walks through hunting for suspicious task creation and execution using KQL in Microsoft Sentinel. It covers required telemetry (SecurityEvent, SysmonEvent, DeviceProcessEvents), building host-role baselines, high-signal indicators (script hosts, obfuscated command lines, remote script locations, unusual frequency), reducing false positives with tightly scoped allow-lists, triage steps, and how to turn repeated high-confidence hunts into Sentinel analytics rules with a tiered response workflow.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://securityboulevard.com/2026/09/hunting-for-scheduled-task-persistence-using-kql-in-sentinel>

## Questions this post answers

### What Windows logs and telemetry sources should I use to detect scheduled task persistence in Microsoft Sentinel?

Windows task-related security events, Sysmon process creation data, and endpoint telemetry such as DeviceProcessEvents together give the best visibility into scheduled task persistence. Security logs alone often lack command-line and process chain context, so Sysmon or Defender for Endpoint telemetry is needed to see parent-child relationships and the exact command line the task launched.

_Track evolving Sentinel and Sysmon telemetry guidance on daily.dev while building out scheduled task detections._

### How do I tell if a scheduled task on Windows is malicious versus legitimate IT automation?

Compare the task against a baseline built per host role, checking its author, path, trigger, run-as account, command line, signer, and parent process. Red flags include script hosts like powershell.exe, cmd.exe, wscript, mshta, or rundll32 in the task action, encoded or base64-like command-line arguments, execution from writable paths like user profiles or ProgramData, and unusual run frequency such as every few minutes on a workstation.

_Developers securing Windows fleets can follow triage techniques like these via daily.dev._

### Which process names should I check as parents when hunting for scheduled task execution abuse in DeviceProcessEvents?

Look for processes whose parent is taskeng.exe, svchost.exe in the task scheduler context, or another scheduler-related process depending on Windows version, then inspect the command line, file path, signer, and account. A task launching from C:\Users, C:\ProgramData, or C:\Windows\Temp is more suspicious than one launching a signed binary from C:\Windows\System32, and a task spawning powershell.exe that then launches cmd.exe or wscript.exe is a stronger indicator of abuse.

_Security teams refining endpoint detection logic often keep up with hunts like this through daily.dev._

## Similar posts on daily.dev

- [Detecting credential theft and misuse patterns for UK SMEs](https://daily.dev/posts/detecting-credential-theft-and-misuse-patterns-for-uk-smes-nrspfwg3o) · Security Boulevard · 0 upvotes · 0 comments
- [AI SIEM Search](https://daily.dev/posts/ai-siem-search-o6xnsnwpb) · Huntress Blog · 0 upvotes · 0 comments
- [The Enemy Already Inside — Hunt Forward Lab \#002: LOLBAS Detection](https://daily.dev/posts/the-enemy-already-inside-hunt-forward-lab-002-lolbas-detection-kfpatesoo) · InfoSec Write-ups · 0 upvotes · 0 comments
- [Memory and credential attack detection with Defender for Endpoint](https://daily.dev/posts/memory-and-credential-attack-detection-with-defender-for-endpoint-dmg1e17qa) · Security Boulevard · 0 upvotes · 0 comments
- [Microsoft does something useful, adds Sysmon to Windows](https://daily.dev/posts/microsoft-does-something-useful-adds-sysmon-to-windows-ctxnh0vfu) · The Register · 2 upvotes · 0 comments

---

[View this post on daily.dev](https://daily.dev/posts/hunting-for-scheduled-task-persistence-using-kql-in-sentinel-j33e1awgx)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Hunting for scheduled task persistence using KQL in Sentinel","url":"https://daily.dev/posts/hunting-for-scheduled-task-persistence-using-kql-in-sentinel-j33e1awgx","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/hunting-for-scheduled-task-persistence-using-kql-in-sentinel-j33e1awgx"},"datePublished":"2026-09-20T09:30:02.962Z","dateModified":"2026-09-20T09:30:30.750Z","description":"Scheduled tasks are a common Windows persistence mechanism, and this guide walks through hunting for suspicious task creation and execution using KQL in...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/8fe9eeb967de205fd6743e2535f16178?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/8fe9eeb967de205fd6743e2535f16178?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Security Boulevard","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Security Boulevard","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/3613c832180040de8d85bb29f74395be","url":"https://daily.dev/sources/securityboulevard"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/hunting-for-scheduled-task-persistence-using-kql-in-sentinel-j33e1awgx","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"","timeRequired":"PT14M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Security Boulevard","item":"https://daily.dev/sources/securityboulevard"},{"@type":"ListItem","position":3,"name":"Hunting for scheduled task persistence using KQL in Sentinel"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/hunting-for-scheduled-task-persistence-using-kql-in-sentinel-j33e1awgx#faq","mainEntity":[{"@type":"Question","name":"What Windows logs and telemetry sources should I use to detect scheduled task persistence in Microsoft Sentinel?","acceptedAnswer":{"@type":"Answer","text":"Windows task-related security events, Sysmon process creation data, and endpoint telemetry such as DeviceProcessEvents together give the best visibility into scheduled task persistence. Security logs alone often lack command-line and process chain context, so Sysmon or Defender for Endpoint telemetry is needed to see parent-child relationships and the exact command line the task launched. Track evolving Sentinel and Sysmon telemetry guidance on daily.dev while building out scheduled task detections."}},{"@type":"Question","name":"How do I tell if a scheduled task on Windows is malicious versus legitimate IT automation?","acceptedAnswer":{"@type":"Answer","text":"Compare the task against a baseline built per host role, checking its author, path, trigger, run-as account, command line, signer, and parent process. Red flags include script hosts like powershell.exe, cmd.exe, wscript, mshta, or rundll32 in the task action, encoded or base64-like command-line arguments, execution from writable paths like user profiles or ProgramData, and unusual run frequency such as every few minutes on a workstation. Developers securing Windows fleets can follow triage techniques like these via daily.dev."}},{"@type":"Question","name":"Which process names should I check as parents when hunting for scheduled task execution abuse in DeviceProcessEvents?","acceptedAnswer":{"@type":"Answer","text":"Look for processes whose parent is taskeng.exe, svchost.exe in the task scheduler context, or another scheduler-related process depending on Windows version, then inspect the command line, file path, signer, and account. A task launching from C:\\Users, C:\\ProgramData, or C:\\Windows\\Temp is more suspicious than one launching a signed binary from C:\\Windows\\System32, and a task spawning powershell.exe that then launches cmd.exe or wscript.exe is a stronger indicator of abuse. Security teams refining endpoint detection logic often keep up with hunts like this through daily.dev."}}]}
```

