Defender Automation and Remediation¶
Last updated: 2026-07-27
References
Defender detects, recommends, investigates, and performs specific supported response actions. Policy and automation services provide broader enforcement and remediation. Match the tool to the decision being made.
Why it matters¶
Detection without response just produces alerts faster than people can act on them. Automation closes that gap by handling repetitive triage, enrichment, and containment in seconds while keeping humans in control of disruptive actions. The value comes from pairing the right enforcement tool with each decision.
| Manual-only operations | With measured automation |
|---|---|
| Analysts repeat the same triage steps | Playbooks normalize and enrich alerts instantly |
| Response time depends on staff availability | Routine containment happens in seconds, any hour |
| Enforcement is inconsistent | Policy and pipelines apply controls uniformly |
| Disruptive actions risk mistakes | Approval gates protect high-impact steps |
Value in one line: automation removes the busywork and slow hand-offs from response while keeping human approval on the actions that can disrupt production.
Control map¶
| Goal | Typical tool |
|---|---|
| Prevent an unsafe Azure configuration | Azure Policy deny or modify effect |
| Enforce Kubernetes admission rules | Azure Policy for Kubernetes or Gatekeeper |
| Repair deployed infrastructure | Infrastructure-as-code pull request and pipeline |
| Respond to a Defender for Cloud alert | Workflow automation with Logic Apps |
| Orchestrate a cross-product incident | Defender XDR automation or Sentinel playbook |
| Manage endpoint settings | Intune security policy |
| Restrict risky identity access | Conditional Access |
Safe automation pattern¶
- Normalize the alert, resource, identity, severity, and confidence.
- Enrich with ownership, criticality, exposure, maintenance, and threat context.
- Use idempotent actions and least-privilege managed identities.
- Start with notification or ticket creation.
- Add approval for disruptive actions such as isolation, deletion, or key rotation.
- Record every action and preserve evidence before remediation.
- Verify recovery, close the loop, and expire temporary exceptions.
Guardrails¶
- Do not trust an alert title as the sole authorization for a destructive action.
- Suppress duplicates without hiding recurring or escalating behavior.
- Set concurrency, retry, timeout, and cost limits.
- Protect automation credentials and restrict who can edit playbooks.
- Maintain break-glass, rollback, and manual execution procedures.
- Test with simulations and non-production resources.
Continuous export and SIEM integration¶
- Stream Defender for Cloud alerts and recommendations with continuous export to Log Analytics (
SecurityAlertandSecurityRecommendation) or to Event Hubs for a SIEM or data lake. - Connect Defender XDR to Microsoft Sentinel for bidirectional incident synchronization, and use advanced hunting (KQL) to build custom detections.
- Trigger response with Logic App playbooks or Azure Functions bound to a least-privilege managed identity, and gate disruptive steps behind approval.
- Keep automation idempotent and observable: log every action, emit metrics, and alert on playbook failures.
Operational decisions¶
- Categorize actions as notify, enrich, ticket, contain, or destructive, and require a documented owner and approval rule for every category.
- Build idempotency, retry, timeout, and audit logging into every playbook before connecting it to production alerts; test the same event more than once.
- Retain playbook version, trigger alert, identity used, input and output status, approval record, rollback action, and resulting incident update.
Business example¶
A high-severity Key Vault alert triggers a Logic App. The playbook enriches the alert with the vault owner, resource tags, and recent sign-in context, then opens a ticket and sends the owner an approval request. On approval, it removes the suspect role assignment, records the action in the incident, and starts a secret rotation task; without approval, it preserves the evidence and escalates to the on-call analyst.