Azure Kusto Irql
MicrosoftOfficialCreated by Microsoft
- Skill
- Tool integration
- Software development
- MIT
- No issues found
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
The azure-kusto-irql skill enables analysts to build complex cybersecurity hunting pipelines in Kusto (KQL) by leveraging a standardized function-based dialect called IRQL. Instead of writing raw, schema-heavy KQL, users can chain pre-deployed Get_*, Extract_*, and Enrich_* functions to perform investigations. This approach abstracts away underlying table schemas and join keys, providing a consistent interface for tasks like phishing triage, lateral movement detection, and authentication analysis. The skill is designed to work on databases where IRQL functions are already deployed.
What it does
- Translates natural language hunting questions into composable IRQL function pipelines.
- Uses Get_* functions to project source tables into a unified, schema-consistent format.
- Applies Extract_* functions to derive new fields from existing data.
- Uses Enrich_* functions to perform left-joins for contextual data augmentation.
- Provides a structured composition pattern: Selector -> Extract -> Filter -> Enrich -> Summarize/Project.
- Supports outputting KQL queries for manual execution or Kusto Explorer integration.
When to use it
- When performing threat hunting or incident response on a Kusto database with IRQL functions deployed.
- When you need to express complex security queries without manually managing raw table schemas.
- When you want to chain modular, reusable security functions to build a hunting pipeline.
- When investigating specific events like failed logins, phishing, or process execution using standardized IRQL primitives.
Advantages
- Unified schema across disparate security data sources.
- High composability through function chaining.
- Improved portability of hunting logic across different clusters.
- Reduces cognitive load by hiding complex join logic and schema details.
Usage examples
- “Find all failed logins in ValdyTimes using IRQL.”
- The agent generates a pipeline starting with Get_Event_Authentication, filtering for 'Failed Login', and summarizing the count by username.
- “Write an IRQL query to find powershell or rundll32 execution on any host.”
- The agent generates a pipeline using Get_Event_Process, filtering the command line for specific malicious strings, and projecting relevant process details.
Install
Download the skill as a ZIP:
https://autogineer.com/agent-skills/microsoft/azure-kusto-irql/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip azure-kusto-irql.zip -d .agents/skills
Documentation by Microsoft
IRQL -- Incident Response Query Language
Compose IRQL function pipelines from selector, extractor, and enricher building blocks. IRQL wraps raw KQL security tables behind intent-revealing, composable functions so analysts (and LLMs) can express hunts without memorizing schemas, cluster locations, or join keys.
Activation Triggers
Use this skill when the user:
Explicitly mentions IRQL,
Get_*,Extract_*, orEnrich_*functionsSays "use IRQL" or "write an IRQL query"
Requests a composable hunting pipeline using known IRQL selectors
Do not activate for generic security queries (e.g. "find failed logins") unless the user explicitly asks for IRQL. Route those to azure-kusto instead.
Not a natural-language-to-IRQL converter. This skill composes IRQL function pipelines and may handle basic natural-language requests that map directly to known selectors and simple filters. For general NL-to-KQL or NL-to-IRQL conversion, use a dedicated query-generation skill (available separately).
IRQL Function Preflight
Before generating a pipeline, verify IRQL is available on the target database:
.show functions
| where Name startswith "Get_" or Name startswith "Extract_" or Name startswith "Enrich_"
| project NameIf no IRQL functions are found, inform the user that IRQL is not deployed on the target database and suggest using azure-kusto for raw KQL queries instead. IRQL functions are a prerequisite -- this skill does not deploy base IRQL selectors.
What IRQL Is
IRQL is a function-based dialect on top of KQL. It provides:
Unified schema -- disparate security tables project into consistent column names regardless of the underlying data source
Composability -- small functions chain via
| invoketo build complex hunts from simple stepsPortability -- the same IRQL pipeline works across different clusters/databases; only the
Get_*primitives need re-pointing
IRQL is not a separate language. It's KQL functions you invoke. Any valid KQL works alongside IRQL functions.
Deploying IRQL
IRQL functions are stored KQL functions (.create-or-alter function). They must already be deployed to the target database before this skill can generate pipelines.
Public example cluster (functions pre-deployed):
Cluster:
https://kc7001.eastus.kusto.windows.netDatabases:
ValdyTimes,JoJosHospital
To port IRQL to a new cluster/database, create Get_* selectors that project your source tables into the unified schema (column names below), then deploy extractors and enrichers. The extractors and enrichers work unchanged as long as the input schema matches.
Function Catalog
1. Selectors -- Get_*
Return projected, schema-unified views of source tables. Use the minimal form by default; use _All when extra columns are needed.
| Function | Columns |
|---|---|
Get_Event_Authentication | EnvTime, Hostname, ClientIp, Username, Result |
Get_Event_Authentication_All | + Description, UserAgent, PasswordHash |
Get_Email | EnvTime, EmailSender, EmailRecipient, Subject, Url |
Get_Email_All | + ReplyTo, Verdict |
Get_Employees | Name, ClientIp, Email, Username, Hostname, Role |
Get_Employees_All | + HireDate, UserAgent, Domain |
Get_Event_FileCreation | EnvTime, Hostname, Filename, Path |
Get_Event_FileCreation_All | + Username, Sha256, ProcessName |
Get_Event_NetworkInbound | EnvTime, ClientIp, Url |
Get_Event_NetworkInbound_All | + Method, UserAgent, StatusCode |
Get_Event_NetworkOutbound | EnvTime, ClientIp, Url |
Get_Event_NetworkOutbound_All | + Method, UserAgent |
Get_Dns_All | EnvTime, Domain, ClientIp |
Get_Event_Process | EnvTime, ProcessCommandLine, ProcessName, Hostname, Username |
Get_Event_Process_All | + ParentProcessName, ParentProcessHash, ProcessHash |
Get_SecurityAlerts_All | EnvTime, AlertType, Severity, Description, Indicators |
Get_Network_Connection_All | EnvTime, SourceIp, SourcePort, DestinationIp, DestinationPort, Protocol, Bytes |
2. Extractors -- Extract_*
Derive a new column from an existing one. Invoke after a selector.
| Function | Input Column | Adds |
|---|---|---|
Extract_Email_Sender_Domain(T) | EmailSender | Domain |
Extract_Employee_Firstname(T) | Name | Firstname |
Extract_Event_Network_Domain(T) | Url | DomainName |
3. Enrichers -- Enrich_*
Left-join helpers that attach context from a related table.
| Function | Key Column | Enriches With |
|---|---|---|
Enrich_Event_Authentication_Username(T) | Username | Auth events for user |
Enrich_Ip_Employee(T) | ClientIp | Employee identity from IP |
Enrich_Username_Employee(T) | Username | Employee identity from username |
Enrich_Ip_Domain(T) | ClientIp | DNS domains resolved to IP |
Enrich_Ip_Event_NetworkOutbound(T) | ClientIp | Outbound network from IP |
Enrich_Ip_Network_Connection(T) | ClientIp | Network flows from IP |
4. External Enrichment
| Function | Source | Requirement |
|---|---|---|
Enrich_Sha256_VirusTotal(T) | VirusTotal file report | API key + callout policy |
Get_CISA_KEV() / Enrich_CISA_KEV(T) | CISA KEV catalog | Callout policy |
Composition Rules
Selector -> Extract -> Filter -> Enrich -> Summarize/ProjectStart with a Selector:
Get_Event_Authentication,Get_Email, etc.Extract derived fields:
| invoke Extract_Email_Sender_Domain()Filter to the signal:
| where Result == "Failed Login"Enrich with context:
| invoke Enrich_Username_Employee()Summarize / project the answer
Always pipe (|) between steps. Extractors and Enrichers use | invoke FunctionName().
Query Generation Guidelines
Use the minimal selector unless extra columns are needed -> then
_AllChain extractors before enrichers (extractors add columns enrichers may key on)
Place
wherefilters as early as possibleUse
summarizefor aggregations,projectfor final column selectionEnd with
order by+taketo limit output
Examples
For additional prompts and worked examples, see references/EXAMPLES.md.
Brute-force detection
Get_Event_Authentication
| where Result == "Failed Login"
| summarize FailedCount = count() by Username
| where FailedCount > 19
| invoke Enrich_Username_Employee()
| project Username, Name, Role, Email, FailedCount
| order by FailedCount descPhishing triage by recipient seniority
Get_Email
| invoke Extract_Email_Sender_Domain()
| project EnvTime, EmailSender, Domain, Username = EmailRecipient, Subject, Url
| invoke Enrich_Username_Employee()
| extend Seniority = case(
Role has_any ("CEO", "Chief", "Director", "VP", "President"), 3,
Role has_any ("Manager", "Lead", "Senior"), 2,
1)
| summarize
TotalEmails = count(),
SeniorityScore = sum(Seniority),
Recipients = make_set(Name, 50),
DistinctRecipients = dcount(Username)
by Domain
| where DistinctRecipients >= 2
| order by SeniorityScore desc
| take 20Post-exploitation pivot from an indicator
let victims =
Get_Event_FileCreation_All
| where Filename has "<INDICATOR>"
| distinct Hostname;
Get_Event_Process
| where Hostname in (victims)
| where ProcessCommandLine has_any ("rundll32", "regsvr32", "powershell", "systeminfo")
| project EnvTime, Hostname, Username, ProcessName, ProcessCommandLine
| order by EnvTime ascSuspicious outbound traffic enriched with identity
Get_Event_NetworkOutbound
| invoke Extract_Event_Network_Domain()
| where DomainName has_any ("<SUSPICIOUS_DOMAIN_1>", "<SUSPICIOUS_DOMAIN_2>")
| invoke Enrich_Ip_Employee()
| project EnvTime, Name, Role, DomainName, Url, ClientIp
| order by EnvTime descExternal IP authentication anomaly
Get_Event_Authentication_All
| where not(ClientIp startswith "10.") and not(ClientIp startswith "192.168.")
| summarize
Attempts = count(),
Failures = countif(Result == "Failed Login"),
Users = make_set(Username)
by ClientIp
| order by Failures desc
| take 20MCP Tools Used
| Tool | Purpose |
|---|---|
kusto_query | Execute IRQL pipelines against a Kusto database |
kusto_table_schema_get | Discover available tables and columns |
kusto_cluster_list | List available ADX clusters |
kusto_database_list | List databases in a cluster |
Opening Queries in Kusto Explorer (Windows Only)
Optional convenience feature. The default workflow is to output the KQL in chat and let the user copy it into Kusto Explorer or the VS Code Kusto extension manually. Auto-launch is opt-in only.
Always output the complete KQL query in the chat response with Step 1 (connect) and Step 2 (query) clearly labeled:
// Step 1: Connect to your cluster (skip if already connected)
// Example: uncomment to connect to the KC7 training cluster
// #connect cluster('kc7001.eastus.kusto.windows.net').database('ValdyTimes')
// Or replace with your own cluster:
// #connect cluster('<YOUR_CLUSTER>').database('<YOUR_DATABASE>')
// Step 2: Run the query below
<KQL_QUERY>If the user asks to save or open in Kusto Explorer, follow the procedure in references/KUSTO_EXPLORER_LAUNCH.md. Key rules:
Use
ask_userto confirm before writing files or launching executablesDisplay file contents in chat so the user can review before opening
Never use shell interpolation or here-strings — write files via
Set-Content/Add-ContentNever encode queries into browser URLs
On macOS/Linux, save the
.kqlfile and suggest the VS Code Kusto extension or ADX Web ExplorerFor graph visualization from IRQL data, see
azure-kusto-graphandazure-kusto-irql-graph
Files
- ATTRIBUTION.mdAdded by AutoGineer1016 B
- LICENSELicence file added by AutoGineer1.1 KiB
- SKILL.md10.2 KiB
- references/EXAMPLES.md2.2 KiB
- references/KUSTO_EXPLORER_LAUNCH.md2.6 KiB
ATTRIBUTION.md
Attribution
This folder is an unmodified copy of the Agent Skill "azure-kusto-irql", distributed by AutoGineer (https://autogineer.com/agent-skills).
Commit: 0696600436a9669184ce47e8d8b2ceac62e4bfac
Created by: Microsoft (https://github.com/microsoft/skills/tree/0696600436a9669184ce47e8d8b2ceac62e4bfac/.github/plugins/azure-kusto-graph-skills/skills/azure-kusto-irql)
Publisher: Microsoft (https://github.com/microsoft)
Licence: MIT License (https://spdx.org/licenses/MIT.html)
Licence evidence: declared in the frontmatter ("license: MIT")
Retrieved: 2026-11-07
The skill's own files are unmodified copies. AutoGineer is not affiliated with or endorsed by the author or the publisher.
Files added by AutoGineer
ATTRIBUTION.md: this file, written by AutoGineer
LICENSE: copied from .github/plugins/azure-kusto-graph-skills/LICENSE
Requirements and compatibility
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Needs: Needs an API key
Security
No issues found by our static scan· No issues found
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Created by
- Microsoft
- Publisher
- Microsoft (Official)
- Source
- microsoft/skills · .github/plugins/azure-kusto-graph-skills/skills/azure-kusto-irql · commit 0696600
- Licence
- MIT License (redistribution allowed)
- LICENSE (added by AutoGineer from .github/plugins/azure-kusto-graph-skills/LICENSE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by Microsoft or Microsoft.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download azure-kusto-irql.zip