Triage Defender incidents and respond to Defender endpoints
Two Microsoft 365 Defender workflows: approval-gated incident triage with Graph containment, and endpoint response on one incident.
triage-defender-incidents-and-respond-to-defender-endpoints-1.0.0.json
Sanitized by the pipeline and shipped inactive. Follow the before turning it on.
Needs a connector that isn't on the Content Hub
microsoft-365-defender-v2, microsoft-graph-v2 - you'll need to obtain this custom connector (or build an equivalent) before it will run.
Two response workflows for Microsoft 365 Defender incidents and endpoints. They run on the Microsoft 365 Defender v2 connector (microsoft-365-defender-v2, version 3.0.2), which is the "Triage Microsoft 365 Defender incidents and contain endpoints" item in this catalogue. The workflows ship inactive; set the approver, the named location ID and the Graph alert ID inputs to your own values before use (the defaults are placeholders).
Required connectors
- Microsoft 365 Defender v2 (microsoft-365-defender-v2, 3.0.2): both workflows. In this catalogue.
- microsoft-graph-v2: the triage workflow's approve path calls it (block new IP ranges in a Conditional Access named location, revoke a user's sessions, add a comment on a Graph security alert). It is NOT in this shipment. It is the older Microsoft Graph connector; the Microsoft Entra and Microsoft Graph security v2 connectors are separate items in the catalogue.
- Microsoft Teams: the triage workflow sends its approval card to a Microsoft Teams channel (from the FortiSOAR for Microsoft Teams solution pack). Not part of this item.
Triage Defender Incident to Response Fetches active Defender incidents, oldest first, and pulls the oldest one in full. It hunts the incident's devices with a read-only advanced hunting query for the last 24 hours of network activity, creates a FortiSOAR alert that records the triage, then sends a Teams approval card. Approve: the incident is set to In Progress and classified TruePositive, the reported IP is appended to the named location, and the user's sessions are revoked (microsoft-graph-v2 steps). Reject: the incident stays open with a comment on the Graph security alert, and nothing else changes. If no incident is active, the workflow ends with nothing to triage.
Respond to Defender Endpoint Incident Pulls one incident, finds the device in its alert evidence and checks that the device is onboarded to Defender for Endpoint. An analyst then picks the response: isolate the device (full isolation), run a quick antivirus scan, collect an investigation package, or record no action. Machine actions are polled until Defender reports them finished.
Not live-tested
- Respond to Defender Endpoint Incident, "Close Not Onboarded" branch: the lab tenant had one onboarded device, so a device that Defender does not know could not be produced.
- Respond to Defender Endpoint Incident, "Run AV Scan" branch: the branch ran to its end, but Defender refused the scan on the device (device-side action failure), so a finished scan was not seen.
- Triage Defender Incident to Response, approve paths (user path and no-user path) and reject path: the approval card was never answered in the lab, because the Teams approval listener was stopped. The microsoft-graph-v2 steps on these paths were therefore not run here either.