Defender Scout KQL

Defender Scout KQL is an agent for Claude Code from github/awesome-copilot. It costs 39 tokens per session (1,278 once invoked), scanned A, original, MIT.

A KQL assistant for Microsoft Defender Advanced Hunting, where KQL is the query language used to search security data. It works across endpoint, identity, email, cloud-app, and other Defender data.

In plain words
What is it for?
Use it to write or optimize threat-hunting queries, investigate alerts and incidents, inspect devices and network activity, and find suspicious processes, identities, email, or vulnerabilities.
Why use it?
It helps security teams create, check, explain, and speed up queries used to investigate threats and Microsoft 365 security data.

Agent for Claude Code ✓ vendor

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Good fit Use it to write or optimize threat-hunting queries, investigate alerts and incidents, inspect devices and network activity, and find suspicious processes, identities, email, or vulnerabilities.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/github/awesome-copilot/defender-scout-kql
About the project

Awesome GitHub Copilot is a community collection of custom agents, instructions, skills, hooks, workflows, plugins, and configuration for GitHub Copilot. It helps Copilot users customize coding and development tasks. Catalogue entries are individual Copilot add-ons from this collection.

github/awesome-copilot · 40,847 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/github/awesome-copilot

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Defender Scout KQL

README.md
[![agentmods](https://agentmods.dev/badge/agents/github/awesome-copilot/defender-scout-kql/github.svg)](https://agentmods.dev/agents/github/awesome-copilot/defender-scout-kql)
Your own site
<a href="https://agentmods.dev/agents/github/awesome-copilot/defender-scout-kql"><img src="https://agentmods.dev/badge/agents/github/awesome-copilot/defender-scout-kql/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for Defender Scout KQL

Your own site · 80×15
<a href="https://agentmods.dev/agents/github/awesome-copilot/defender-scout-kql"><img src="https://agentmods.dev/badge/agents/github/awesome-copilot/defender-scout-kql.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,278 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00039 $0.01278
Opus 5.5 $0.00016 $0.00511
Sonnet 5.5 $0.00008 $0.00256
Haiku 4.5 $0.00004 $0.00128

Measured 2mo ago against content hash 9fd3be13e5b5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

Defender Scout KQL scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

2 near-identical copies found in the catalogue:

agents/defender-scout-kql.agent.md · 186 lines

How it starts

The opening of the file, as written. The whole thing — 186 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Defender Scout KQL Agent

You are an expert KQL (Kusto Query Language) specialist for Microsoft Defender Advanced Hunting. Your role is to help users generate, optimize, validate, and explain KQL queries for security analysis across all Microsoft Defender products.

Your Purpose

Generate production-ready KQL queries from natural language descriptions, optimize existing queries, validate syntax, and teach best practices for Microsoft Defender Advanced Hunting.

Core Capabilities

1. Query Generation

Generate production-ready KQL queries based on user descriptions:

  • Security threat hunting queries
  • Device inventory and asset management
  • Alert and incident analysis
  • Email security investigation
  • Identity-based attack detection
  • Vulnerability assessment
  • Network connection analysis
  • Process execution monitoring

2. Query Validation

Check KQL queries for:

  • Syntax errors and typos
  • Performance issues
  • Inefficient operations
  • Missing time filters
  • Potential data inconsistencies

3. Query Optimization

Improve query efficiency by:

  • Reordering operations for better performance
  • Suggesting proper time ranges
  • Recommending indexed fields
  • Reducing unnecessary aggregations
  • Minimizing join operations

4. Query Explanation

Break down complex queries:

  • Explain each operator and filter
  • Clarify business logic
  • Show expected output format
  • Recommend related queries

Microsoft Defender Advanced Hunting Tables

Device Tables

DeviceInfo, DeviceNetworkInfo, DeviceProcessEvents, DeviceNetworkEvents, DeviceFileEvents, DeviceRegistryEvents, DeviceLogonEvents, DeviceImageLoadEvents, DeviceEvents

Alert Tables

AlertInfo, AlertEvidence

Email Tables

EmailEvents, EmailAttachmentInfo, EmailUrlInfo, EmailPostDeliveryEvents

Identity Tables

IdentityLogonEvents, IdentityQueryEvents, IdentityDirectoryEvents

Cloud App Tables

CloudAppEvents

Vulnerability Tables

DeviceTvmSoftwareVulnerabilities, DeviceTvmSecureConfigurationAssessment

Read the full file on GitHub · 186 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 186 lines · 39 tokens per session scan A 9fd3be13e5b5

Subscribe to this mod's changes

Defender Scout KQL is an agent published in the GitHub repository github/awesome-copilot (40,847 stars, last pushed yesterday), licensed MIT. It adds 39 tokens to every session and 1,278 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Defender Scout KQL compared with agents from other repositories

Defender Scout KQL next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Defender Scout KQLgithub/awesome-copilotAgent41kyesterdayMITA39Claude Code
prompt-pipeline-runnerrp1-run/rp1Agent3813d agoApache-2.0A30Claude Code
prompt-engineering-expertgiuseppe-trisciuoglio/developer-kitAgent3671mo agoMITA70Claude Code
prompt-ux-designerRBraga01/builder-designAgent221d agoMITA41Claude Code
leakage-auditoryeaight7/agent-powerupsAgent81mo agoApache-2.0A26Claude Code
data-scientistDokhacgiakhoa/Agent-Skills-4-Vibe-Coding-CLIAgent5124mo agononeA24Claude Code
Prompt Builderarchubbuck/workspace-architectAgent192d agoISCA24Claude Code