Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Detection gaps are a persistent challenge for security operations teams. Building effective custom detections requires analysts to understand attacker behaviors, available data schemas, and query logic before they can create rules that are useful in their environment.
The Detection Authoring Agent helps analysts generate custom detection recommendations from threat intelligence and accelerate the creation of custom detection rules.
Before starting a session, confirm product availability, licensing, and the required analyst and agent identity permissions. For details, see Before you begin.
Important
The Detection Authoring Agent only recommends detections. It never creates, enables, or modifies detection rules in your tenant. A detection becomes active only after an analyst opens it in the custom detection wizard, reviews it, and saves it.
The Detection Authoring Agent operates as part of the proactive protection workflow. The proactive protection workflow is the end-to-end process that starts with a threat intelligence (TI) article and uses multiple agents to turn threat intelligence into actionable detections. The Threat Intelligence Agent analyzes the TI article and extracts information about attacker behaviors and techniques. The Detection Authoring Agent uses that analysis to generate custom detection recommendations that help security teams identify similar activity in their environment.
The agent participates in two playbooks:
- Protect against a threat combines the Threat Intelligence Agent, Recon Agent, Posture Prioritization Agent, and Detection Authoring Agent. The playbook turns threat intelligence into attack path analysis, prioritized posture recommendations, and detection recommendations.
- Detect emerging threats combines the Threat Intelligence Agent and Detection Authoring Agent. The playbook recommends tenant-aware Kusto Query Language (KQL) detections for threats identified in a threat intelligence article.
For the list of playbooks and their participating agents, see Work with playbooks.
The agent provides a Detection coverage report that includes:
- Proposed detections with KQL query logic and explanations of the query approach, selected tables, and schemas, along with frequency and lookback configurations. Each proposal includes full detection and alert enrichment: title, description, severity, MITRE tactics and techniques, entity mapping configuration, and recommended actions. Recommended actions help analysts respond if the alert triggers.
- Additional information in each proposed detection, including the strategy used to generate it, alert volume estimation, known benign sources, parameter tuning recommendations, and potential limitations to consider before deploying the detection.
- Existing custom detections and analytics rules that already cover similar behaviors, so detection engineers can review them and avoid creating duplicates.
Analysts can review the recommendations, ask follow-up questions about the report, and open a suggested detection in the custom detection wizard to review, adjust, and save it. Saving the detection is what activates it in the tenant.
Why use the Detection Authoring Agent?
Building high-fidelity detections requires detection engineers to understand attacker tradecraft, map behaviors to detection logic, and validate rules against real data without generating excessive noise. The Detection Authoring Agent acts as an autonomous detection engineer in Microsoft Defender, helping detection engineers expand threat coverage faster by generating detection recommendations based on threat intelligence and observed attack patterns.
In the proactive protection workflow, the detection engineer starts from a threat intelligence article. The Threat Intelligence Agent analyzes the article and produces tactics, techniques, and procedures (TTPs), and the Detection Authoring Agent uses those TTPs to recommend detections. Detection engineers can continue refining detection rules, adjusting thresholds, and exploring coverage gaps through an interactive chat experience.
Use cases
| Use case | Detection Authoring Agent |
|---|---|
| Generate detection recommendations from threat intelligence | Creates proposed KQL-based detections that help cover attacker behaviors identified in a threat intelligence article. |
| Surface your existing detection coverage for the threat intelligence input | Maps the behaviors identified in the threat intelligence article to your existing rules and surfaces techniques that no existing rule covers. |
| Validate before you deploy | Simulates each proposed detection against historical tenant data and reports the projected alert volume, so you can judge its quality and noise before you save it. |
| Review detection tuning recommendations | Provides recommendations to help detection engineers tune proposed detections for their environment. |
| Explain detection rationale | Provides plain-language explanations of what each rule detects and why the logic is structured that way. |
| Create a custom detection from a recommendation | Opens the suggested detection in the custom detection wizard with fields such as frequency, severity, MITRE techniques, alert details, and entity mapping prefilled. |
| Ask follow-up questions about the report | Lets detection engineers use the agent chat to ask questions about the detection report and its output. |
Before you begin
Confirm the required product availability, licensing, permissions, and configuration before you use the Detection Authoring Agent.
Prerequisites
To run the Detection Authoring Agent in your environment, you need:
- Plugins: The Detection Authoring Agent automatically activates these Security Copilot plugins: Microsoft Defender XDR, Microsoft Threat Intelligence, and Microsoft Sentinel (if applicable).
- Unified role-based access control (RBAC): Enable unified RBAC and activate the relevant workloads for the data sources you want to query. For more information, see Workload-specific prerequisites.
Additional permissions required
To use the Detection Authoring Agent, you also need the following permissions in Microsoft Defender XDR:
- Security operations > Security data > Security data basics: Read.
- Security operations > Raw data (Email & collaboration) > Email & collaboration metadata: Read.
For details about these permissions, see Microsoft Defender unified RBAC permissions.
For more information about unified RBAC in the Defender portal, see Microsoft Defender XDR Unified role-based access control (RBAC).
Agent identity permissions
The agent runs under its own identity, not the identity of the analyst who starts the session. The agent identity needs read access to the data used for detections, including any device groups that scope access to device data.
If the agent identity is missing permissions, a simulation can report zero hits. An analyst with different permissions might see results for the same query. Check the agent's access to the relevant data and device groups before interpreting simulation results.
Set up the Detection Authoring Agent
To set up this agent, follow the steps in Set up an agent.
Verify that the agent identity has the required data access, including access to the relevant device groups.
Start a new Detection Authoring Agent session
For ways to start a session, see Start a new session.
This agent runs through the following playbooks:
| Playbook | Required input |
|---|---|
| Protect against a threat | A threat intelligence article. |
| Detect emerging threats | A threat intelligence article. |
To start a Detection Authoring Agent session from either playbook, follow these steps:
- Select New session and choose Protect against a threat or Detect emerging threats.
- Provide a threat intelligence article as the required input.
- Select Start session.
Select the ellipsis (...) in the upper-right corner of the page to manage the agent. Select Pause to temporarily stop the agent or Run to resume agent activity.
After the session starts, the proactive protection workflow analyzes the selected threat intelligence article and generates a Detection coverage report. The report includes recommended detections, detection logic, and supporting information that help analysts understand how the recommendations address threats identified in the article.
Review the Detection coverage report
When a session completes, the agent generates output that appears in the Summary view.
You can ask follow-up questions on the report in the chat interface.
Use the report to understand which threat behaviors are covered, evaluate proposed detections, and decide what to deploy.
Important
The agent only recommends detections. It never creates, enables, or modifies detection rules in your tenant. A detection becomes active only after an analyst opens it in the custom detection wizard, reviews it, and saves it.
- When the session completes, open the report in the Summary view.
- Review the coverage matrix to see how proposed and existing detections map to the article's behaviors and MITRE ATT&CK techniques.
- Review each proposed detection's query, rationale, simulation results, and tuning recommendations.
- Check existing similar detections before creating a rule to avoid duplicates.
Report sections
The report usually proposes several detections for a TI article. Each proposal references the TTPs extracted by the Threat Intelligence Agent, so you can trace the detection back to the threat behavior it covers.
| Section | What to review |
|---|---|
| Summary | An overview of the article, identified techniques, and number of proposed detections. |
| Coverage matrix | Behavior clusters and MITRE ATT&CK techniques mapped to proposed and existing detections. |
| Proposed detections | KQL queries, configuration, alert enrichment, simulation results, and tuning recommendations. |
| Existing similar detections | Custom detections and analytics rules in your tenant that already cover similar behavior. |
Each proposed detection includes a threat summary, methodology, and strategy. It also includes:
- Query logic and explanations of the approach, selected tables, and schemas.
- Frequency and lookback settings.
- Alert title, description, severity, MITRE tactics and techniques, entity mapping, and recommended actions.
- Estimated alert volume, known benign sources, parameter tuning recommendations, and potential limitations.
Detection categories
Both the coverage matrix and proposed detections are divided into two categories:
- Ready to deploy: Detections estimated to produce low alert volume compared with the tenant's median custom detection.
- Requires tuning: Detections estimated to produce high alert volume and require analyst tuning before activation.
The agent compares simulated alert volume with the alert volume of the tenant's median custom detection. An estimate below that baseline is classified as not noisy and categorized as Ready to deploy. This category is an estimate, not automatic deployment: review the detection before saving it.
Simulation results
Each proposed detection is replayed against up to 14 days of tenant data. The agent divides the data into windows that match the detection's lookback. For example, a one-hour lookback produces 336 windows over 14 days.
For large data volumes, the test period can be reduced to seven or three days. Three days is the minimum. Results from shorter periods are converted to a 14-day equivalent for comparison with the tenant's normal alert volume.
The simulation report includes:
- The period tested and number of windows.
- Raw alerts produced during that period.
- The calculated 14-day equivalent, when applicable.
- Peak and median alerts per window.
- Distinct affected entities.
- The tenant-specific noise threshold.
- A noisy or not noisy classification.
Note
The estimate treats each query result record as an alert. Microsoft Defender can merge alerts with similar events, so the actual alert volume might be lower. Simulation results also depend on the agent identity's permissions. Access limited to certain device groups can produce lower estimates because the agent sees only part of the data.
Tenant-aware detection analysis and tuning
Unlike generic detection recommendations, the agent tailors every proposal to your specific environment. It does this through three core capabilities:
Tenant-aware detection creation: The agent identifies which tables and data sources are available in the tenant and bases its recommendations on that data. This means every proposed detection is grounded in what your environment actually collects, rather than assuming data availability that may not exist.
Detection simulation and noise estimation: For each proposed detection, the agent runs a simulation against historical tenant data and reports the projected alert volume. This gives you an early indication of the detection's expected coverage, potential noise level, and overall quality before you deploy it.
Automated tenant-specific tuning: Based on simulation results, the agent identifies detections likely to be noisy and automatically suggests optimizations. By analyzing the generated alerts, it can detect recurring benign patterns and refine the proposed query accordingly. For example, if a specific user, device, or application appears frequently in simulated alerts and is assessed as benign, the agent might recommend excluding it from the detection logic. If the agent attempts tuning, it reports the tuning action and the simulation results before and after the change. It can also suggest additional tuning for the reviewer to consider. Tuning a proposal doesn't modify an existing rule in your tenant.
Existing similar detections
The agent reviews custom detections and analytics rules. It uses semantic matching to compare their descriptions and alert titles with attacker behaviors from the article. It doesn't review native Defender XDR detections.
Use the existing similar detections list to assess coverage and avoid creating duplicate rules.
Follow-up questions
Use the agent chat to explore the report. For example:
- "Explain the logic of detection 3."
- "Explain how you calculated the expected alert volume."
Create a custom detection from a recommendation
Open a recommendation in the custom detection wizard to review its settings and activate it.
- In the report's Detections section, find the proposed detection and select Open in wizard.
- In the Microsoft Defender Custom detection wizard, review the prefilled settings. Check the query, frequency, lookback, severity, MITRE techniques, alert details, entity mapping, and recommended actions.
- Adjust the settings as needed. For example, apply tuning recommendations or add exclusions for known benign activity.
- Select Save to create and activate the rule. Nothing is deployed to your tenant until you save the detection in the wizard.
Most proposed queries include KQL comments that explain the logic. Near-real-time (NRT) detections don't include comments because NRT rules don't support them.
Detection origin
Detections created from the report have an Origin value of Copilot. Use this property to filter and identify agent-generated detections in your custom detections list.
Supported data sources
The Detection Authoring Agent can recommend detections that use all Microsoft Defender XDR tables in advanced hunting and the third-party Microsoft Sentinel tables listed in this section.
Recommendations use only tables that contain data in your tenant. If a supported table doesn't contain data, the agent doesn't use it and reports it as a telemetry gap.
Support levels for third-party tables
| Support level | What it includes |
|---|---|
| Enhanced | Specialized security knowledge for each table. Supports complex queries and detection scenarios, including correlation across different third-party sources. |
| Basic | Schema awareness and general knowledge of the table, enough for basic detections. |
Tables with Enhanced support
| Vendor | Tables |
|---|---|
| Amazon Web Services (AWS) | AWSCloudTrail, AWSGuardDuty |
| Okta | OktaV2_CL |
| Salesforce | CloudAppEvents (Salesforce) |
Tables with Basic support
| Vendor | Tables |
|---|---|
| Amazon Web Services (AWS) | AWSCloudWatch, AWSEKSLogs, AWSVPCFlow, AWSRoute53Resolver, AWSS3ServerAccess, AWSSecurityHubFindings, AWSWAF, AWSNetworkFirewallFlow, AWSNetworkFirewallAlert, AWSNetworkFirewallTls, AWSALBAccessLogs, AWSNLBAccessLogs |
| CrowdStrike | CrowdStrikeAlerts, CrowdStrikeCases, CrowdStrikeHosts, CrowdStrikeIncidents, CrowdStrikeVulnerabilities, CrowdStrikeDetections (legacy), CrowdStrike_Audit_Events_CL, CrowdStrike_Auth_Events_CL, CrowdStrike_DNS_Events_CL, CrowdStrike_File_Events_CL, CrowdStrike_Network_Events_CL, CrowdStrike_Process_Events_CL, CrowdStrike_Registry_Events_CL, CrowdStrike_UserMgmt_Events_CL |
| Salesforce | SalesforceAuditTrail, SalesforceLoginHistory, SalesforceServiceCloudV3_CL, SalesforceServiceCloud_CL |
| Proofpoint TAP | ProofPointTAPMessagesDeliveredV2_CL, ProofPointTAPMessagesBlocked_CL, ProofPointTAPMessagesDelivered_CL |
| Proofpoint on Demand (POD) | ProofpointPOD_message_CL, ProofpointPOD_maillog_CL |
| Google Cloud Platform | GCPAuditLogs |
| Fortinet and other appliances that use Common Event Format (CEF) | CommonSecurityLog |