Automated Investigation and Response

Earn 25 points (50 with Pro) in two steps

  1. ① Read through the lesson — each section gets a ✓ as you scroll through it.
  2. ② When every section has a ✓, tap Complete lesson.

0 of 10 read · keep scrolling

✦ See fewer ads and earn double points — 50 a lesson instead of 25 — with Pro

Automated Investigation and Response in Microsoft Defender XDR

Introduction: The Challenge of Modern Security Operations

In the current digital landscape, security operations centers (SOCs) are inundated with a massive volume of alerts daily. The sheer velocity and variety of threats, ranging from sophisticated phishing campaigns to silent ransomware deployments, make it nearly impossible for human analysts to manually investigate every single event. When an alert triggers, an analyst must gather data from endpoints, identity providers, cloud applications, and email gateways to build a coherent picture of the attack. By the time this manual process is completed, the adversary may have already moved laterally or exfiltrated sensitive data.

Automated Investigation and Response (AIR) in Microsoft Defender XDR represents a fundamental shift in how organizations defend their infrastructure. Instead of requiring human intervention for every step of an investigation, AIR allows the system to perform high-fidelity, repeatable tasks—such as artifact analysis, file inspection, and process tree evaluation—at machine speed. This capability does not replace the human analyst; rather, it augments their capacity by handling the "grunt work" of initial triage, evidence gathering, and remediation, allowing the security team to focus on complex hunting and strategic defense.

Understanding how to effectively configure and trust automated investigation processes is essential for any security professional working within the Microsoft ecosystem. This lesson will walk you through the mechanics of AIR, how to manage automation levels, and how to ensure these systems operate safely within your specific environment.


Not read yet

Understanding the AIR Workflow

At its core, Automated Investigation and Response functions by mimicking the investigative steps a skilled analyst would take when confronted with a security alert. When a trigger condition is met—such as a suspicious process execution or a detected malware signature—the Defender system initiates a "Playbook." This playbook executes a series of automated actions to determine the scope of the incident.

The Phases of an Automated Investigation

  1. Triggering: The process begins when an alert is generated that is mapped to an automated investigation. This is often based on signals from Microsoft Defender for Endpoint or Defender for Office 365.
  2. Investigation: The system examines the artifacts involved. It looks at files, processes, services, registry keys, and network connections. It queries the cloud-based threat intelligence database to see if these artifacts have been seen elsewhere and if they are classified as malicious, suspicious, or clean.
  3. Evidence Collection: The system gathers forensic evidence. This might involve pulling file samples for sandbox analysis or examining logs to see if a specific user account was involved in anomalous behavior.
  4. Remediation: If the system concludes with a high degree of confidence that an artifact is malicious, it can take action. This might include deleting a malicious file, killing a process, isolating an endpoint, or disabling a compromised user account.
  5. Reporting: Once the investigation is complete, the system compiles a report that outlines the findings, the evidence gathered, and any actions taken. The analyst then reviews this report to decide if further manual intervention is required.

Callout: Automation vs. Human Intuition It is important to distinguish between "automation" and "autonomy." Automated investigation is not about relinquishing control to an algorithm. It is about accelerating the data gathering phase. The human analyst remains the final arbiter. In many configurations, the system will pause and wait for human approval before performing "disruptive" remediation, such as wiping a device or disabling a high-privileged account.


Not read yet

Configuring Automation Levels

One of the most critical aspects of managing AIR is setting the automation level. Microsoft Defender provides different levels of automation that dictate how much the system can do without human oversight. These settings are found within the Microsoft Defender portal under Settings > Endpoints > Automated investigation.

Automation Level Options

  • Full - remediate threats: This is the most aggressive setting. The system will automatically investigate and remediate any threats it finds. This is ideal for organizations with high trust in the platform and a high volume of commodity malware alerts.
  • Semi - require approval for any remediation: Under this setting, the system performs the full investigation and provides a comprehensive report, but it will not execute any remediation actions (like deleting files or isolating machines) until a human analyst reviews the evidence and clicks "Approve."
  • Semi - require approval for core remediation: This is a middle-ground approach. The system might automatically perform low-risk remediation (such as clearing a temporary file) but requires approval for high-risk actions (such as disabling a user account or isolating a server).
  • No automated remediation: This setting disables the "response" aspect of AIR, though it may still allow for automated investigation (data gathering). This is rarely recommended for production environments but can be useful during the initial pilot or testing phases.

Best Practices for Selecting Levels

If you are just starting with Microsoft Defender XDR, it is highly recommended to begin with the Semi - require approval for any remediation setting. This allows your team to audit the system's decisions, verify the accuracy of the automated findings, and build trust in the platform. Once your analysts become comfortable with the quality of the findings, you can incrementally move toward more automated settings for lower-risk assets.


Not read yet

Practical Examples of AIR in Action

To understand the value of AIR, let's look at two common scenarios that occur in almost every enterprise environment.

Scenario 1: Phishing and Malicious Attachments

An employee receives an email containing a weaponized document. The employee opens the document, which executes a PowerShell script to reach out to a Command and Control (C2) server.

  1. Detection: Defender for Office 365 detects the malicious email, and Defender for Endpoint detects the suspicious PowerShell execution.
  2. Investigation: The AIR playbook is triggered. It scans the PowerShell script and identifies the C2 domain. It then queries the environment to see if any other users received the same email.
  3. Evidence: The system identifies five other users who received the email. It marks these emails for deletion from the mailboxes.
  4. Remediation: The system isolates the initially infected machine to prevent lateral movement. It prompts the analyst: "Do you want to delete the malicious emails from the other five users' inboxes?"
  5. Outcome: A process that would have taken a human analyst an hour to research and coordinate is completed in minutes.

Scenario 2: Lateral Movement Attempt

A user's credentials are stolen. The attacker uses those credentials to attempt a remote login to a sensitive server.

  1. Detection: Identity Protection flags an impossible travel event, and Defender for Endpoint flags a suspicious remote login attempt.
  2. Investigation: The system correlates the login attempt with the identity alert. It examines the source IP address and determines it is associated with a known malicious proxy.
  3. Evidence: The system identifies the specific service account the attacker was attempting to use. It checks other machines where this account has recently logged in.
  4. Remediation: The system triggers an automated response to reset the compromised user's password and force a re-authentication. It notifies the IT team that the account has been disabled.
  5. Outcome: The attack is contained at the point of origin, preventing the attacker from gaining a foothold in the server environment.

Not read yet

Working with the Action Center

The Action Center is the central hub where you manage the outcomes of automated investigations. Whether an action was taken automatically or is pending approval, you will find it here.

Navigating the Action Center

The Action Center is divided into two primary views:

  • Pending Actions: These are actions that require your review and approval. You can see the entity involved, the reason for the action, and the evidence supporting the recommendation.
  • History: This provides a complete audit trail of all actions taken by the system or by your analysts. It is essential for compliance reporting and post-incident reviews.

Tip: Use the Action Center for Auditing Even if you use "Full" automation, make it a habit to check the Action Center daily. It provides a quick way to see everything the system is doing in your environment. If you notice a pattern of false positives, the Action Center allows you to quickly undo actions and refine your exclusion lists.


Not read yet

Common Pitfalls and How to Avoid Them

Even with sophisticated tools, misconfigurations can lead to unnecessary downtime or security gaps. Below are some common mistakes seen in enterprise deployments.

1. Over-reliance on Default Settings

Many organizations enable "Full" automation without considering the impact on critical infrastructure. If your organization has legacy applications that rely on specific processes or scripts, the system might flag these as "malicious" behavior.

  • The Fix: Use the "Exclusion" settings in the Microsoft Defender portal. You can define exclusions for files, paths, and processes that you know are legitimate but might trigger false positives.

2. Ignoring the "Evidence" Tab

Analysts sometimes look only at the "Alert" and the "Result," skipping the evidence gathered during the investigation.

  • The Fix: Always review the evidence tab. Even if the system's conclusion is correct, the evidence tab provides context—such as the command-line arguments used or the parent process—which is vital for understanding how the attacker attempted to compromise your environment.

3. Failing to Monitor "Pending" Actions

In "Semi" mode, if an analyst forgets to check the Action Center, a critical remediation might sit in a "Pending" state for days, leaving the threat active in the environment.

  • The Fix: Integrate your Action Center alerts with your SIEM or ITSM tool (like ServiceNow or Jira). Use Power Automate to send a notification to your team's communication channel (e.g., Microsoft Teams or Slack) whenever an action requires approval.

Not read yet

Scripting and Integration with Power Automate

While the built-in AIR capabilities are powerful, you can extend them using Power Automate. This allows you to create custom workflows that trigger based on Defender alerts.

Example: Notifying a Slack Channel for High-Severity Alerts

You can use the Microsoft Defender XDR connector in Power Automate to trigger a flow when an alert is generated.

{
  "trigger": "When an alert is created in Microsoft Defender XDR",
  "conditions": {
    "severity": "High"
  },
  "actions": [
    {
      "type": "Post message to Slack",
      "parameters": {
        "channel": "#security-alerts",
        "text": "High severity alert detected! Incident ID: @{triggerBody()?['incidentId']}. Review in Action Center immediately."
      }
    }
  ]
}

Note: The snippet above is a conceptual representation of a Power Automate flow. When building this, use the "Microsoft Defender XDR" connector and map the fields directly from the trigger output.

Why Use Custom Automation?

Custom automation is useful for tasks that are specific to your business logic. For example, if a machine is isolated due to a threat, you might want to automatically open a ticket in your helpdesk system, notify the machine's owner via email, and update the device's status in your asset management database. This reduces the administrative overhead of managing an incident.


Not read yet

Best Practices for Enterprise Security Teams

To make the most of Automated Investigation and Response, follow these industry-standard recommendations:

  1. Establish a Baseline: Before enabling full automation, observe the system in "Audit" or "Semi-automated" mode for at least 30 days. This helps you identify common false positives and tune your environment.
  2. Implement Role-Based Access Control (RBAC): Not everyone in the IT department needs the ability to approve remediation actions. Ensure that only authorized security analysts have the permissions required to approve or undo actions in the Action Center.
  3. Regularly Review Exclusions: Your environment changes constantly. Conduct a quarterly review of your exclusion lists to ensure they are still necessary and that they aren't inadvertently creating security gaps.
  4. Leverage Threat Intelligence: Ensure your Defender XDR instance is integrated with your existing threat intelligence feeds. This improves the accuracy of the automated investigations by providing context that is specific to your industry or region.
  5. Continuous Learning: The threat landscape evolves daily. Encourage your team to participate in "Threat Hunting" exercises using the data gathered by AIR. Use the reports generated by the automated investigations as a starting point for deeper analysis.

Not read yet

Comparison: Automated vs. Manual Investigation

Feature Manual Investigation Automated Investigation (AIR)
Speed Slow (Minutes to Hours) Fast (Seconds to Minutes)
Consistency Variable (Depends on analyst) High (Follows defined playbooks)
Data Gathering Manual log review / queries Automated artifact collection
Scale Limited by headcount Scales with incident volume
Decision Making High (Human intuition/experience) Moderate (Based on patterns/rules)

Callout: The "Human-in-the-Loop" Advantage While AIR is exceptionally efficient at handling the "known-unknowns" (threats that follow patterns we have seen before), it cannot replace human intuition for "unknown-unknowns" (novel, zero-day, or highly customized attacks). The best security posture is one where automation handles the scale, and humans handle the complexity.


Frequently Asked Questions (FAQ)

1. Does AIR delete my files automatically?

It depends on your configuration. If your automation level is set to "Full," the system may automatically delete files that it determines to be malicious. If you are in "Semi-automated" mode, it will only delete them after a human analyst reviews the evidence and approves the action.

2. What happens if the system makes a mistake?

If the system mistakenly identifies a legitimate file as malicious, you can go to the Action Center, find the action in the "History" tab, and select "Undo." This will restore the file and automatically add an exclusion to prevent the issue from recurring.

3. Can I customize the investigation playbooks?

Microsoft provides the playbooks, but you can influence their behavior through settings, exclusions, and custom detections. You can also build external workflows using Power Automate to augment the built-in investigation capabilities.

4. Does AIR work on all operating systems?

Automated Investigation and Response is primarily focused on endpoints managed by Microsoft Defender for Endpoint, which supports Windows, macOS, and Linux. Ensure your devices are properly onboarded to the platform for the features to function.

5. How do I know if an investigation was triggered?

You can view the status of all investigations in the "Investigations" tab within the Microsoft Defender portal. You will also see alerts related to these investigations in your incident queue.


Not read yet

Key Takeaways

  • Efficiency through Automation: Automated Investigation and Response is critical for managing the high volume of alerts in modern security environments. It allows teams to scale by automating the repetitive data-gathering and remediation tasks.
  • Trust but Verify: Always start with "Semi-automated" mode to build confidence in the system's decisions. Gradually move to "Full" automation only after your team has verified the accuracy of the automated findings in your specific environment.
  • The Action Center is Key: The Action Center is your primary interface for auditing and managing automated responses. Make it a central part of your daily security operations workflow.
  • Context Matters: Use the evidence gathered by AIR to inform your broader security strategy. An automated investigation shouldn't just be a "fire and forget" event; it should provide intelligence that helps you hunt for similar threats.
  • Customize and Integrate: Use Power Automate and custom integrations to tailor the response process to your specific organizational needs, such as ticketing, communication, and asset management.
  • Maintain Exclusions: Proactively manage your exclusion lists to minimize false positives, but be careful not to create security blind spots by over-excluding processes or paths.
  • Human-Centric Security: Remember that automation is an assistant, not a replacement for your security analysts. The goal is to free up human time for higher-level tasks like strategic threat hunting and architecture improvement.

By mastering the Automated Investigation and Response capabilities within Microsoft Defender XDR, you are not just responding to threats faster—you are building a more resilient, data-driven security culture that can adapt to the evolving demands of the modern threat landscape.

Not read yet

Each section gets a ✓ as you scroll through it. Tap the button to jump to the next one.