← Back to home Cybersecurity · AI-assisted analysis · High-stakes UX

From Intent to KQL

Designing Microsoft Defender Advanced Hunting as a guided, AI-assisted investigation workspace — so SOC analysts can start from a question and progressively reach expert-grade KQL, without losing depth, explainability, or trust.

Role
Senior Product Designer
Product
Defender · Advanced & Guided Hunting
Timeline
2021 – 2023
Partners
PM · Eng · Research · Data science

Start hereThe quick context

  • What is Advanced Hunting?Microsoft Defender's investigation and threat-hunting experience — it helps security analysts explore and analyze security data across devices, identities, email, cloud apps, and incidents. Instead of relying only on alerts, analysts can proactively investigate suspicious activity, uncover threats, and validate findings.
  • What is KQL?Kusto Query Language — the language used to search and analyze data in Advanced Hunting. It answers questions like "Who opened this phishing email?", "Which devices contacted this IP?", or "What happened before this alert?" by querying large volumes of security telemetry.

The challenge. Advanced Hunting is powerful, but KQL can be difficult to learn. Analysts often know what they want to investigate — but not which data to use, or how to write the query.

The contribution. This work spanned experiences such as Guided Hunting, Query Builder, Query Assistant, integrated filters, and reusable query workflows — helping analysts start from their investigation goal and arrive at the right query faster, with less reliance on KQL expertise.

The through-lineOne workspace, five layers of expertise.

The unifying idea across the whole design: let analysts start from intent, context, or guided structure — then progressively move toward expert KQL control. Each layer stands on its own, and hands off cleanly to the next.

Signature · Intent → KQL
AskRobin / Query AssistantAsk in natural language
Guided EntryFilters · samples · builder
Progressive StructureBoolean AND/OR · grouping
Expert ControlRaw KQL · tabs · saved queries
Scale & OperationsResource report · multi-tenant

The through-line. A single investigation flows down the connected wire from natural-language intent at the top to expert KQL and scale below — the same hunt, expressed at whatever level of expertise an analyst is comfortable with.

The problemThe power that made it valuable also made it unapproachable.

Advanced Hunting let analysts investigate threats across large-scale security data with KQL. But to use it, they had to understand schema, write KQL, manage query state, interpret results, avoid throttling, and pivot between alerts, incidents, Guided Hunting, and Advanced Hunting.

A 2022 design review captured the pain directly: KQL was “a big barrier,” less-experienced operators were “intimidated and discouraged,” and people were “afraid to even try.” The goal was never to remove KQL power — it was to make that power reachable.

How might we preserve the depth of Advanced Hunting while making it easier for analysts to start, explore, and scale their investigations?

The design principleProgressive expertise, not a simpler tool.

The work was framed as a single continuum. The same surface should meet a nervous first-timer and a veteran threat hunter — guiding one without slowing the other. Nothing is hidden; the analyst simply chooses how much structure they want.

Interactive · Hover the modes

Guided

Start from filters, sample queries, and context — no syntax required.

Builder

Compose conditions with AND/OR and grouping; watch the KQL take shape.

Raw KQL

Full expert control — tabs, schema, and custom detections.

Novice analystExpert hunter

One experience spans the whole expertise spectrum — from guided starts to raw KQL — instead of forking into separate “easy” and “advanced” products.

Research & discoveryGrounded in how SOC analysts actually work.

A field visit to a SOC team in Hyderabad — alongside a PM partner — put the work in front of analysts using Defender, Threat Explorer, and Guided Hunting under real pressure. Questions gathered from design and product stakeholders beforehand made it double as broader research — where hunts start, what triggers the move from an alert into hunting, and where guidance breaks down at scale.

Kit Horvath with the security operations team during the on-site field research visit in Hyderabad.
Field research · Hyderabad SOC On-site with the SOC team — watching analysts hunt under real pressure is what grounded every design decision that followed.
9Cybersecurity pros in the Guided Hunting usability study
SUS 71Just above average — but over half needed help to finish tasks
“Little to no guidance”The core research finding that shaped the strategy

The signal was consistent: Advanced Hunting was valuable but under-guided. That validated investing in structure, workspace maturity, and operational visibility — not dumbing it down.

Contribution 01Query Builder — turning logic into something you can see.

Collecting the grouping-condition requirements for Guided Hunting meant working with PM and engineering to close the technical spec. The hard part was interaction, not visuals: how do you let an analyst combine conditions with AND / OR and grouping without making them think like a programmer — while the UI silently generates valid KQL underneath?

Query Builder · Boolean + grouping
Sender in risky domains AND URL in threat list OR Attachment is executable
EmailEvents | where SenderDomain in (RiskyDomains) and Url in (ThreatList) or AttachmentType == "exe"

Query Builder logic. Three conditions combine with AND / OR inside a group, and that structure resolves into the exact KQL it generates — the bridge from analyst intent to expert syntax.

Because the design was “very technical,” keeping UX quality in scope took constant pushing — documenting accessibility and overflow behavior, and running the grouping model through cross-disciplinary review with product and engineering.

Annotated anatomy of the query-builder group: Boolean picker, summary, clear, chevron, filter pill, operator, value pill, more-options menu, and the add-filter and add-subgroup actions, each labelled with sizing and required or optional state.
Component spec · anatomy The query-builder group, part by part — a fixed-width Boolean picker, flexible filter / operator / value pills, per-row controls, and the add-filter and add-subgroup actions, each with defined sizing and required/optional states.
Early query-builder mocks in light and dark themes, composing a real hunt with AND and OR grouping across device status, risk score, OS platform, and compliance state.
Early mocks · light & dark The builder composing a real hunt — Device status equals Active, Risk score greater than 70, with an OR subgroup on OS platform and compliance state — shown in both themes.
Microsoft Defender Advanced Hunting: a KQL query workspace with a schema tree of security tables on the left and a results grid of sign-in events.
Product · Advanced Hunting Microsoft Defender Advanced Hunting — the workspace this Query Builder lives in: a schema tree of security tables, a KQL query editor, and a results grid.

Contribution 02Guided Hunting integrated filters — a confident way to start.

The Guided Hunting integrated filters let analysts narrow an investigation with structured inputs instead of a blank KQL editor. In August 2022 the feature was completed and merged to staging.

StagedIntegrated filters merged behind a feature flag
31 tenantsEarly Guided Hunting usage · 330 queries in Ring 1
“Build KQL without knowing KQL”Recurring customer sentiment
01 · Initial design
Initial design: workload-scoped integrated filters surfaced above the query, letting analysts pick a scope across apps, identities, and endpoints before writing KQL.

Initial designThe first concept — workload-scoped filters (apps, identities, endpoints) placed directly above the query, so analysts choose a scope before touching KQL.

02 · Implementation
Implementation: schema-aware filter pills wired into Advanced Hunting, with a toggle to reveal more filters and conditions.

ImplementationWhat shipped — integrated filters built into Advanced Hunting: schema-aware pills (AccountEmail, ActionType, DeviceName, SHA256…) and a toggle for more filters and conditions.

03 · Future plan
Future plan: an intent-led query hub with Copilot and data-lake support, folding filters and conditions into a guided starting experience.

Future planWhere it's heading — an intent-led query hub with Copilot and data-lake support, folding filters and conditions into guided, ready-to-run starting points.

Contribution 03Go Hunt — starting from context, not a blank page.

Analysts rarely begin from an empty editor; they start from an alert, an incident, or a suspicious entity. This work covered the Hunting-side UX of a cross-surface Go Hunt effort (partner designers owned the incidents/alerts side), shaping how investigation context flows straight into a hunt.

Go Hunt · Context bridge
Alert
Incident
Entity
Advanced Hunting · results in context

Go Hunt. An alert, incident, or entity carries its context straight into the Advanced Hunting workspace — so proactive search begins where the evidence already is, without context-switching.

Contribution 04A workspace for nonlinear hunting.

Hunting is nonlinear — analysts branch into hypotheses, compare paths, and return to earlier work. This work explored workspace behaviors like query tabs, saved guided queries, and templates, especially where multi-tenant and guided/advanced modes intersect, reframing a single-query editor as a multi-thread investigation space.

Tabs · Parallel hypotheses
Query 1
Hypothesis B
Pivot C
Root query Branch A Branch B Branch C

A multi-thread workspace. One root query branches into parallel hypotheses held in separate tabs — letting analysts chase several leads at once without losing their place, the way real hunting unfolds.

Contribution 05Schema navigation — you can only query what you can find.

The Advanced Hunting navigation tree was designed and documented here: browsing and discovering schema, organizing categories, expanding system tables and custom logs, searching, and source controls. When the implementation later moved to the Fluent Tree component, those core capabilities carried over.

Schema · Discover the data landscape
Email & collaboration
EmailEvents
EmailAttachmentInfo
EmailUrlInfo
UrlClickEvents
Devices & identities

Schema navigation. Categories expand to reveal the underlying tables, so analysts can see the available data landscape before writing a query — discoverability replacing memory and external docs.

Contribution 06Query Resources Report — operational maturity at scale.

As hunting scaled, customers needed to see which queries were expensive and how to avoid throttling. The Query Resources Report — designed here — launched to Ring 2 in November 2022 and GA in February 2023, giving visibility into CPU consumed over the last 30 days, the most resource-intensive queries, and excessive-usage patterns.

Resources · 30-day CPU cost
Expensive query flagged
30 days agoToday

Query Resources Report. Thirty days of query cost, with an over-budget query flagged above the throttle limit — letting customers self-diagnose expensive hunts and prevent throttling.

Contribution 07AskRobin — natural-language hunting, before the LLM boom.

This work contributed to early natural-language-to-KQL and Query Assistant UX as part of a cross-functional team. The timing is what makes this significant: AskRobin won its Hackathon and was presented to Thomas Dohmke, CEO of GitHub, in May 2022 — roughly six months before ChatGPT launched and kicked off the generative-AI wave. The concept — ask a question in plain English, get an expert KQL query — reframed hunting from syntax-first to intent-first while natural-language security investigation was still an unproven idea, not an obvious feature. The team was designing the Copilot-style, intent-first workflow years before that pattern became the industry default.

AskRobin · 2022 · before the LLM boom
NL “Show sign-ins from new countries that reached finance mailboxes this week.”
KQL SigninLogs | where IsNewCountry | join EmailEvents on Recipient | where Dept == "Finance"

AskRobin. A plain-language question resolves into a KQL query while keeping the generated syntax visible — anticipating Copilot-style security workflows a full generation of AI ahead of the curve, while letting analysts learn and stay in control.

Ask Robin, a natural-language query helper: the question 'Summarize all logons to more than one machine from a day ago' resolves into generated KQL with an Add-to-query button and a list of previously generated queries.
Product · Ask Robin The real query helper — a plain-English question resolves into generated KQL you can inspect and add straight to your query, with a running history of previous generations.

Contribution 08Multi-tenant hunting — one pane of glass.

Advanced Hunting became part of Microsoft 365 Defender multi-tenant management, with UX ownership of the hunting experience on this side. The 2023 public preview described a single pane of glass for threat hunting across workloads and tenants.

MTO · Scaled SOC operations
Tenant A
Tenant B
Tenant C
Tenant D
Hunt

Multi-tenant hunting. Scattered tenants converge into one aligned view — scaling from a single analyst's productivity to organizations hunting across many tenants from a single pane of glass.

Ways of workingMaking complexity actionable.

Advanced Hunting is a technical product where UX decisions directly change system behavior, so the work stayed close to PM and engineering throughout — defining V1 boundaries, translating analyst needs into technical requirements, aligning on Boolean and grouping logic, understanding KQL-generation constraints, documenting the schema tree, and moving the Query Resources Report from Figma to launch.

  • Design direction. A single through-line — intent → structure → expert control — aligned features that different teams owned.
  • Domain fluency. Field research and usability work built the credibility to be a voice for the analyst in product discussions.
  • Explainability & trust. In every AI-assisted or generated-query moment, the resulting KQL stayed visible and auditable — never a black box.
  • Communicated trade-offs. Rationale was presented to senior stakeholders, keeping UX quality in scope even when the work was deeply technical.

ImpactWhat changed.

AreaImpact
Accessibility of powerLowered the barrier for analysts who weren't KQL experts.
Expert productivityTabs, templates, schema discovery, and raw-KQL paths for veterans.
Shipped / stagedGuided Hunting integrated filters reached staging.
GA launchQuery Resources Report shipped to GA (Feb 2023).
AI innovationAskRobin / Query Assistant anticipated Copilot-style workflows ~6 months before ChatGPT.
Executive visibilityNatural-Language KQL presented to GitHub CEO Thomas Dohmke.
Enterprise scaleExtended into multi-tenant Advanced Hunting.

Looking aheadIlona — a future-facing ideation.

Beyond what shipped, the thinking kept pushing on where hunting goes next: an agentic, intent-first workspace where an analyst asks in plain language, pivots on a live attack graph or adjustable KQL, and turns a single confirmed case into an estate-wide fix in one move. Ilona is an interactive north-star prototype that makes that vision tangible — start from a recommended anomaly or fresh threat intel, work a case end to end, then scale and remediate.

The Ilona prototype — an agentic, intent-first threat-hunting workspace.
Prototype · Ilona An agentic, intent-first hunting workspace — tap to launch the interactive demo.
Opens an interactive demo in this window · press Esc to close

One-line takeawayThe bridge from intent to expertise.

A bridge from analyst intent to expert KQL — helping Microsoft Defender Advanced Hunting become a guided, AI-assisted, enterprise-ready investigation workspace.

Explore more work

Security Design System →