Automation Levels and Settings

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 11 read · keep scrolling

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

Lesson: Automation Levels and Settings in Microsoft Defender for Endpoint

Introduction: Why Automation Matters in Modern Security

In the current digital landscape, security operations centers (SOCs) are overwhelmed by an unprecedented volume of alerts. When a security professional has to manually investigate every single alert, they often suffer from "alert fatigue," which increases the probability of missing a legitimate, malicious event. Microsoft Defender for Endpoint (MDE) addresses this challenge through Automated Investigation and Response (AIR). By leveraging automation, you can offload repetitive, data-gathering, and remediation tasks to the system, allowing your human analysts to focus on complex threats that require nuanced decision-making.

Automation is not just about speed; it is about consistency and scale. A human analyst might investigate a file differently depending on their mood, time of day, or experience level. Automation follows a strict, repeatable logic, ensuring that every alert is handled according to your organization's predefined policies. This lesson will guide you through the intricacies of configuring these automation levels, understanding the different settings available, and ensuring that your environment is protected without causing unintended operational disruption.


Not read yet

Understanding Automated Investigation and Response (AIR)

Automated Investigation and Response (AIR) is the core engine that powers automation within Defender for Endpoint. When an alert is triggered, the system automatically launches an investigation. This process mimics the steps a seasoned security analyst would take: it gathers artifacts, checks threat intelligence databases, analyzes suspicious processes, and determines the overall severity of the incident.

The goal is to move from a state of "detect and notify" to "detect, investigate, and remediate." When the automated investigation identifies a threat—such as a malicious file, an unauthorized registry key, or a suspicious network connection—the system can take action to remediate it automatically, provided your configuration allows it.

The Lifecycle of an Automated Investigation

  1. Triggering: An alert is generated based on a sensor signal from an endpoint.
  2. Analysis: The system examines the artifacts (files, IPs, URLs, processes) associated with the alert.
  3. Correlation: It looks for related signals across the network to determine if the activity is isolated or part of a broader campaign.
  4. Decisioning: Based on the confidence level and your configuration, the system decides whether to remediate or seek human approval.
  5. Remediation: If authorized, the system performs actions like deleting files, killing processes, or isolating the host.

Callout: Automation vs. Orchestration It is important to distinguish between automation and orchestration. Automation, in the context of Defender for Endpoint, refers to the built-in, pre-configured logic that handles specific, known threat patterns. Orchestration, often handled by tools like Microsoft Sentinel, involves connecting multiple different systems (e.g., your firewall, your email gateway, and your identity provider) to create complex, cross-platform workflows. Defender for Endpoint provides the "local" automation, while Sentinel provides the "orchestration" across your entire environment.


Not read yet

Configuring Automation Levels

The most critical aspect of managing automation in Defender for Endpoint is setting the "Automation Level." This setting dictates how much agency the system has to take corrective actions on your behalf. You can find these settings in the Microsoft Defender portal under Settings > Endpoints > Automated investigation.

The Three Available Levels

When configuring your device groups, you are presented with three primary choices for automation:

  • Full - remediate threats automatically: This is the most aggressive setting. The system will investigate and remediate any threats found. If the system is highly confident that a file is malicious, it will delete it and terminate the process without asking for human intervention. This is ideal for organizations that want to minimize the "dwell time" of a threat.
  • Semi - require approval for any remediation: Under this setting, the system performs the investigation, but it stops short of taking action. It presents a list of "pending actions" in the Action Center. A human analyst must review the findings and click "Approve" for each action. This provides the highest level of control but requires a responsive security team.
  • No automated response: This setting effectively disables the remediation capabilities. The system will still generate alerts and provide investigation data, but no automated actions will be taken. This is rarely used in production environments, but it can be useful for testing or for highly sensitive systems where you want to ensure no automated process ever interferes with specialized, mission-critical applications.

Tip: Phased Implementation If you are new to Defender for Endpoint, do not jump straight to "Full" automation. Start with "Semi" to see what the system would do in your environment. Once you gain confidence in the system's accuracy and verify that it isn't flagging your custom internal applications as malicious, you can transition sensitive device groups to "Full" automation.


Not read yet

Practical Implementation: Step-by-Step Configuration

To configure your automation levels, follow these steps:

  1. Navigate to Settings: Log in to the Microsoft Defender portal. Go to Settings in the left-hand navigation pane and select Endpoints.
  2. Access Automated Investigation: Under the Rules section, click on Automated investigation.
  3. Define Device Groups: Automation levels are assigned to "Device Groups." If you haven't created device groups, you will need to define them first based on OS, department, or security sensitivity.
  4. Assign Level: Click on the device group you wish to edit. Use the dropdown menu to select your desired automation level (Full, Semi, or No automated response).
  5. Save Changes: Ensure you click the Save button. Changes can take up to 60 minutes to propagate across your endpoint fleet.

Managing Remediation Actions

Even when set to "Full," there are scenarios where the system may not be able to remediate automatically. For example, if a file is in use by a critical system process, the system might flag it for manual review to avoid a blue screen or system instability. You should monitor the Action Center daily. The Action Center acts as a centralized dashboard for all pending and completed actions.

Using PowerShell for Automation Visibility

While the portal is the primary management interface, you can use the Microsoft Graph API or the Defender for Endpoint PowerShell module to extract data about automated investigations. This is useful for building custom reports.

# Example: Retrieving recent automated investigations
# Note: You must have appropriate permissions (SecurityReader or higher)
$headers = @{ "Authorization" = "Bearer $token" }
$url = "https://api.security.microsoft.com/api/automatedinvestigations"
$investigations = Invoke-RestMethod -Method Get -Uri $url -Headers $headers

foreach ($inv in $investigations.value) {
    Write-Host "Investigation ID: $($inv.id)"
    Write-Host "Status: $($inv.status)"
    Write-Host "Risk Score: $($inv.riskScore)"
}

Explanation: This script fetches a list of recent automated investigations from the Microsoft Defender API. It iterates through the results and outputs the ID, status, and associated risk score. This allows you to quickly identify which endpoints have triggered the most investigations.


Not read yet

Best Practices for Automation Settings

Configuring automation is a balancing act between security and stability. To get the most out of your investment, follow these industry-standard practices.

1. Maintain Consistent Device Grouping

Do not apply the same automation level to your entire organization. Create separate device groups for:

  • Servers: These usually require "Semi" or "No automated response" because of the impact of an accidental system shutdown.
  • Executive Laptops: These may require higher oversight to ensure no false positives occur during high-stakes meetings.
  • General Workstations: These are the best candidates for "Full" automation to handle common threats like phishing-based malware.

2. Leverage Exclusion Lists

False positives are the enemy of automation. If your organization uses proprietary software that is frequently flagged by the system, you must add these to the Exclusion list. Navigate to Settings > Endpoints > Rules > Exclusions. You can exclude by file path, file extension, or process name. Always try to be as specific as possible to minimize the security gap created by the exclusion.

3. Review the Action Center Regularly

Even with full automation, you need to verify that the system is taking the right actions. At least once a week, review the "History" tab in the Action Center. Look for patterns: is the system repeatedly trying to delete a file that is actually a legitimate part of your software update process? If so, refine your exclusions rather than lowering your automation level.

4. Enable "Always Remediate" for PUA

Potentially Unwanted Applications (PUA) are a common source of system bloat and security risk. Ensure that your configuration for PUA is set to "On" in your Antivirus policies. This works in tandem with your automated investigation settings to clean up adware and unwanted software without requiring manual intervention.

Warning: Avoid "Global" Exclusions A common mistake is to add a broad exclusion (e.g., C:\Program Files\) to stop a false positive. This effectively creates a massive blind spot for attackers. Always scope your exclusions to the specific file or process that is being incorrectly identified.


Not read yet

Common Pitfalls and How to Avoid Them

Pitfall 1: Ignoring the "Confidence Level"

The system assigns a confidence level to every threat it finds. If you set your automation level to "Full," it only acts on threats with a "High" confidence level. Many administrators mistakenly believe that "Full" means "everything." If you find that the system is not catching threats you expect it to, check the investigation details to see if the confidence level was labeled as "Medium" or "Low."

Pitfall 2: Neglecting the "System-Critical" Flag

Microsoft Defender for Endpoint is designed to be "system-aware." If it determines that an action (like deleting a file) would crash the OS, it will mark the action as "Pending" or "Failed" even if you are on "Full" automation. Administrators often think their automation is broken when, in fact, it is working as intended by protecting the system's stability.

Pitfall 3: Failing to Test New Policies

Never push a change to your automation settings to 100% of your fleet at once. Use the "Device Group" feature to apply changes to a pilot group (e.g., your IT department's machines) first. Monitor their performance for 48 hours before rolling out to the rest of the organization.

Feature Full Automation Semi-Automation No Automation
User Intervention None required Required for every step Manual remediation only
Risk of False Positive Higher Low Zero
Dwell Time Minimal Moderate High
Best For Standard workstations Servers/Critical systems Testing/Audit only

Not read yet

Advanced Configuration: Customizing Remediation Logic

Beyond the high-level settings, you can influence the behavior of the engine through the "Advanced Features" menu.

Enabling "Automated Investigation for All Alerts"

By default, the system prioritizes high-severity alerts. However, you can toggle the option to "Automated investigation for all alerts" in the Advanced Features menu. This ensures that even lower-severity alerts are processed by the engine.

  • Pros: Better visibility into low-level reconnaissance activities.
  • Cons: Can lead to an influx of alerts and potential noise in the Action Center.

Configuring "Remediation for PUA"

You can also configure how the system handles PUA. By setting the PUA protection to "Audit" mode, you can see what would be blocked without actually blocking it. Once you are comfortable with the findings, switch to "Block" mode.

# Example: Setting PUA Protection to Block via PowerShell
Set-MpPreference -PUAProtection Enabled

Explanation: This command forces the Windows Defender engine on the local machine to block potentially unwanted applications. This is a foundational step for any automated environment, as it prevents the "low-level" clutter that often leads to larger security incidents.


Not read yet

The Role of Human-in-the-Loop

Even with the most advanced automation, the human analyst remains the final arbiter of truth. Automation is essentially a force multiplier; it handles the "easy" stuff so that humans can handle the "hard" stuff.

When an automated investigation is complete, the system provides a summary. This summary includes:

  • Evidence: A list of all files, processes, and network connections analyzed.
  • Entities: Users and devices involved in the alert.
  • Graph: A visual representation of the attack chain.

Use this information to perform "Threat Hunting." If the system found a malicious file on one machine, use the "Advanced Hunting" query language (KQL) to search for that same file hash across your entire enterprise.

Example KQL Query for Threat Hunting

If an investigation identifies a suspicious file, use this KQL query in the Advanced Hunting portal to find other infected machines:

DeviceFileEvents
| where SHA1 == "INSERT_HASH_HERE"
| project Timestamp, DeviceName, ActionType, FileName, FolderPath

Explanation: This query searches the DeviceFileEvents table for any instance of a specific file hash. If you find multiple instances, you can then trigger a manual "Isolate Machine" action through the portal, which is a powerful way to contain a breach that the initial automation might have missed.


Not read yet

Integrating with Microsoft Sentinel (SIEM)

For large organizations, managing automation within a single portal is not enough. You should connect your Defender for Endpoint data to Microsoft Sentinel. Sentinel allows you to create "Playbooks" using Logic Apps.

For example, you can create a workflow that says: "If Defender for Endpoint triggers an alert on a 'High' risk device, send an immediate notification to the user via Microsoft Teams and reset their Active Directory password." This extends the automation beyond just the endpoint and into your identity and communication layers.

Workflow for Sentinel Integration:

  1. Ingest: Connect the Defender for Endpoint data connector to Sentinel.
  2. Analyze: Create an Analytics Rule in Sentinel that triggers when a specific alert type appears.
  3. Act: Link the rule to an Azure Logic App (Playbook).
  4. Execute: The Logic App performs the external action (e.g., emailing the user, updating a ticket in ServiceNow).

Not read yet

Summary of Key Takeaways

  1. Automation is Essential for Scale: Modern security environments produce too much data for manual review. Automation (AIR) is the primary tool to reduce alert fatigue and response times.
  2. Start with "Semi" Automation: Always test your automation settings in a controlled environment before moving to "Full" automation to avoid unintended service interruptions.
  3. Device Groups are Key: Use device groups to apply different levels of automation to different types of endpoints (e.g., servers vs. workstations) based on their criticality and risk profile.
  4. Exclusions are a Precision Tool: Use exclusions to handle false positives, but keep them as narrow as possible. Broad exclusions create security holes that attackers will exploit.
  5. The Action Center is Your Dashboard: Regardless of your automation level, the Action Center is the single source of truth for all remediation activities. Check it daily.
  6. Humans are Still Required: Automation handles the knowns and the predictable. Human analysts are required for the unknowns, complex investigations, and strategic threat hunting.
  7. Leverage Advanced Hunting: Use the data provided by automated investigations to proactively search for threats across your environment using KQL.

By mastering these settings and philosophies, you move from a reactive security posture to a proactive, resilient one. Automation is not about replacing the human element; it is about empowering your security team to do their best work by removing the noise and focusing their attention where it matters most.


Not read yet

Frequently Asked Questions (FAQ)

Q: If I set my automation to "Full," will it ever delete something it shouldn't? A: While the system is highly accurate, false positives can occur, especially with custom-built software. This is why we recommend starting in "Semi" mode and using the exclusion lists to "train" the system on what is normal in your environment.

Q: Can I automate the isolation of a device? A: Yes. If you have "Full" automation enabled, the system can automatically isolate a device if it detects high-confidence malicious activity that poses an immediate threat to the network. You can also manually trigger isolation at any time from the device page.

Q: How long does it take for a change in automation settings to take effect? A: Typically, changes to device group settings propagate within 60 minutes. However, it is good practice to wait a few hours before assuming the new policy is fully active across all endpoints.

Q: What happens if an automated investigation fails? A: If an investigation fails to complete, it will be marked as "Failed" in the investigation list. You can click on the investigation to see the error logs and determine if it was a network connectivity issue or a permission error.

Q: Does automation work on non-Windows devices? A: Microsoft Defender for Endpoint supports automated investigation for macOS and Linux, though the specific remediation capabilities may differ slightly from Windows. Always verify the feature parity for your specific OS versions in the official documentation.

Not read yet

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