{
  "type": "workflow_collections",
  "macros": [],
  "exported_tags": [
    "Microsoft",
    "microsoft-defender-office-365-v2",
    "use-case"
  ],
  "data": [
    {
      "@type": "WorkflowCollection",
      "name": "SOC Use Cases - Defender for Office 365 v2",
      "description": "Office alert triage for the Microsoft Defender for Office 365 connector (2.0.0, Microsoft Graph alerts_v2): list new Office alerts, take the most recent one, and acknowledge it (In Progress, assigned to the analyst) when its severity is high or medium. Otherwise log it for review. With no Office alerts the run ends with an outcome of none.",
      "visible": true,
      "image": null,
      "uuid": "05a08de3-5f87-5b45-9183-18db7e775200",
      "recordTags": [
        "microsoft-defender-office-365-v2",
        "Microsoft",
        "use-case"
      ],
      "workflows": [
        {
          "@type": "Workflow",
          "name": "Defender O365 - Office alert triage",
          "aliasName": null,
          "tag": "",
          "recordTags": [],
          "description": "List up to 25 new Defender for Office 365 alerts. For the most recent one, acknowledge it when its severity is high or medium (status In Progress, assigned to the given analyst); otherwise log it for review.",
          "isActive": false,
          "debug": false,
          "singleRecordExecution": false,
          "remoteExecutableFlag": 0,
          "parameters": [
            "analyst"
          ],
          "synchronous": false,
          "triggerStep": "/api/3/workflow_steps/39b0fa7d-a976-54c4-a6b8-3264bd4b3b03",
          "steps": [
            {
              "@type": "WorkflowStep",
              "name": "Start",
              "description": null,
              "arguments": {
                "inputVariables": [
                  {
                    "name": "analyst"
                  }
                ],
                "title": "Defender O365 - Office alert triage",
                "resources": [
                  "alerts"
                ],
                "route": "400184e0-47fb-50ae-a41a-f5bd4c1e5c49",
                "step_variables": {
                  "input": {
                    "params": {
                      "analyst": "{{vars.request.data[\"analyst\"]}}"
                    },
                    "records": "{{vars.input.records}}"
                  }
                },
                "triggerOnSource": true,
                "triggerOnReplicate": false,
                "noRecordExecution": true,
                "singleRecordExecution": false,
                "__triggerLimit": true,
                "executeButtonText": "Execute",
                "showToasterMessage": {
                  "visible": false,
                  "messageVisible": true
                },
                "displayConditions": {
                  "alerts": {
                    "sort": [],
                    "limit": 30,
                    "logic": "AND",
                    "filters": []
                  }
                }
              },
              "status": null,
              "top": "120",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/f414d039-bb0d-4e59-9c39-a8f1e880b18a",
              "group": null,
              "uuid": "39b0fa7d-a976-54c4-a6b8-3264bd4b3b03"
            },
            {
              "@type": "WorkflowStep",
              "name": "Find Office Alerts",
              "description": null,
              "arguments": {
                "connector": "microsoft-defender-office-365-v2",
                "operation": "list_alerts",
                "params": {
                  "service_source": "microsoftDefenderForOffice365",
                  "status": "New",
                  "top": 25
                },
                "version": "2.0.0",
                "name": "Microsoft Defender for Office 365 v2",
                "operationTitle": "List Alerts",
                "step_variables": [],
                "pickFromTenant": false,
                "config": ""
              },
              "status": null,
              "top": "250",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null,
              "uuid": "ae338b81-829d-582a-9c48-937afe02fbc1"
            },
            {
              "@type": "WorkflowStep",
              "name": "Any Office Alerts",
              "description": null,
              "arguments": {
                "conditions": [
                  {
                    "option": "alerts",
                    "condition": "{{ vars.steps.Find_Office_Alerts.data.count | int > 0 }}",
                    "step_iri": "/api/3/workflow_steps/8f9442e5-c7d0-5e5b-88ac-99671fe20032",
                    "step_name": "Set Top Alert"
                  },
                  {
                    "option": "Else",
                    "default": true,
                    "step_iri": "/api/3/workflow_steps/8f52eb0b-eb33-5113-afd3-6f4acfe0b860",
                    "step_name": "No Office Alerts"
                  }
                ]
              },
              "status": null,
              "top": "380",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/12254cf5-5db7-4b1a-8cb1-3af081924b28",
              "group": null,
              "uuid": "9d52b7a2-1d86-5c20-b49b-56b8ef94676d"
            },
            {
              "@type": "WorkflowStep",
              "name": "Set Top Alert",
              "description": null,
              "arguments": {
                "alert_id": "{{ vars.steps.Find_Office_Alerts.data['items'][0].id }}",
                "alert_severity": "{{ vars.steps.Find_Office_Alerts.data['items'][0].severity }}"
              },
              "status": null,
              "top": "510",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null,
              "uuid": "8f9442e5-c7d0-5e5b-88ac-99671fe20032"
            },
            {
              "@type": "WorkflowStep",
              "name": "Severity Check",
              "description": null,
              "arguments": {
                "conditions": [
                  {
                    "option": "high or medium",
                    "condition": "{{ vars.alert_severity in ['high', 'medium'] }}",
                    "step_iri": "/api/3/workflow_steps/87ff6435-053b-55ec-9cbb-115308449678",
                    "step_name": "Acknowledge Alert"
                  },
                  {
                    "option": "Else",
                    "default": true,
                    "step_iri": "/api/3/workflow_steps/51431537-9b92-5575-8930-72a2703a51a7",
                    "step_name": "Log For Review"
                  }
                ]
              },
              "status": null,
              "top": "640",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/12254cf5-5db7-4b1a-8cb1-3af081924b28",
              "group": null,
              "uuid": "1cfa41b3-3871-5ff8-953e-90b809f85416"
            },
            {
              "@type": "WorkflowStep",
              "name": "Acknowledge Alert",
              "description": null,
              "arguments": {
                "connector": "microsoft-defender-office-365-v2",
                "operation": "update_alert",
                "params": {
                  "alert_id": "{{ vars.alert_id }}",
                  "status": "In Progress",
                  "assigned_to": "{{ vars.input.params.analyst }}"
                },
                "version": "2.0.0",
                "name": "Microsoft Defender for Office 365 v2",
                "operationTitle": "Update Alert",
                "step_variables": [],
                "pickFromTenant": false,
                "config": ""
              },
              "status": null,
              "top": "770",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null,
              "uuid": "87ff6435-053b-55ec-9cbb-115308449678"
            },
            {
              "@type": "WorkflowStep",
              "name": "Set Acknowledged",
              "description": null,
              "arguments": {
                "triage_outcome": "acknowledged"
              },
              "status": null,
              "top": "900",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null,
              "uuid": "655f0642-e6e7-550e-9b1b-96622e5add81"
            },
            {
              "@type": "WorkflowStep",
              "name": "Log For Review",
              "description": null,
              "arguments": {
                "triage_outcome": "logged_for_review"
              },
              "status": null,
              "top": "770",
              "left": "540",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null,
              "uuid": "51431537-9b92-5575-8930-72a2703a51a7"
            },
            {
              "@type": "WorkflowStep",
              "name": "No Office Alerts",
              "description": null,
              "arguments": {
                "triage_outcome": "none"
              },
              "status": null,
              "top": "510",
              "left": "540",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null,
              "uuid": "8f52eb0b-eb33-5113-afd3-6f4acfe0b860"
            },
            {
              "@type": "WorkflowStep",
              "name": "Done",
              "description": null,
              "arguments": {
                "connector": "cyops_utilities",
                "operation": "no_op",
                "config": "",
                "params": {},
                "version": "3.7.3",
                "name": "Utilities",
                "operationTitle": "Utils: No Operation",
                "step_variables": [],
                "pickFromTenant": false
              },
              "status": null,
              "top": "1030",
              "left": "540",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null,
              "uuid": "40110561-5c27-5180-9ce1-9dc11554ce05"
            }
          ],
          "routes": [
            {
              "@type": "WorkflowRoute",
              "name": "Start -> Find Office Alerts",
              "targetStep": "/api/3/workflow_steps/ae338b81-829d-582a-9c48-937afe02fbc1",
              "sourceStep": "/api/3/workflow_steps/39b0fa7d-a976-54c4-a6b8-3264bd4b3b03",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "879ba6dd-4aff-5cb8-9b8b-55c9000de586"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Find Office Alerts -> Any Office Alerts",
              "targetStep": "/api/3/workflow_steps/9d52b7a2-1d86-5c20-b49b-56b8ef94676d",
              "sourceStep": "/api/3/workflow_steps/ae338b81-829d-582a-9c48-937afe02fbc1",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "f88ed8c9-0190-5625-a71a-d77d003b8ec3"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Any Office Alerts -> Set Top Alert",
              "targetStep": "/api/3/workflow_steps/8f9442e5-c7d0-5e5b-88ac-99671fe20032",
              "sourceStep": "/api/3/workflow_steps/9d52b7a2-1d86-5c20-b49b-56b8ef94676d",
              "label": "alerts",
              "isExecuted": false,
              "group": null,
              "uuid": "5e5fe8eb-078d-5bff-856b-f0ff72837861"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Any Office Alerts -> No Office Alerts",
              "targetStep": "/api/3/workflow_steps/8f52eb0b-eb33-5113-afd3-6f4acfe0b860",
              "sourceStep": "/api/3/workflow_steps/9d52b7a2-1d86-5c20-b49b-56b8ef94676d",
              "label": "Else",
              "isExecuted": false,
              "group": null,
              "uuid": "20b08e95-a498-5e0d-8775-eed24a43da45"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Set Top Alert -> Severity Check",
              "targetStep": "/api/3/workflow_steps/1cfa41b3-3871-5ff8-953e-90b809f85416",
              "sourceStep": "/api/3/workflow_steps/8f9442e5-c7d0-5e5b-88ac-99671fe20032",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "2b4769b2-a1b3-5934-8e8c-4b039ed37250"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Severity Check -> Acknowledge Alert",
              "targetStep": "/api/3/workflow_steps/87ff6435-053b-55ec-9cbb-115308449678",
              "sourceStep": "/api/3/workflow_steps/1cfa41b3-3871-5ff8-953e-90b809f85416",
              "label": "high or medium",
              "isExecuted": false,
              "group": null,
              "uuid": "5660cb9a-0e64-5995-8393-59bd6ac7799b"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Severity Check -> Log For Review",
              "targetStep": "/api/3/workflow_steps/51431537-9b92-5575-8930-72a2703a51a7",
              "sourceStep": "/api/3/workflow_steps/1cfa41b3-3871-5ff8-953e-90b809f85416",
              "label": "Else",
              "isExecuted": false,
              "group": null,
              "uuid": "f1342a53-b2ca-5495-ad3f-d30127424a1f"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Acknowledge Alert -> Set Acknowledged",
              "targetStep": "/api/3/workflow_steps/655f0642-e6e7-550e-9b1b-96622e5add81",
              "sourceStep": "/api/3/workflow_steps/87ff6435-053b-55ec-9cbb-115308449678",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "d49df7b9-280f-5305-ab9a-965eea0c4c7e"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Set Acknowledged -> Done",
              "targetStep": "/api/3/workflow_steps/40110561-5c27-5180-9ce1-9dc11554ce05",
              "sourceStep": "/api/3/workflow_steps/655f0642-e6e7-550e-9b1b-96622e5add81",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "ecfc288a-7d12-50b3-908b-b3b4f54ded14"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Log For Review -> Done",
              "targetStep": "/api/3/workflow_steps/40110561-5c27-5180-9ce1-9dc11554ce05",
              "sourceStep": "/api/3/workflow_steps/51431537-9b92-5575-8930-72a2703a51a7",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "22cb5f97-b979-516e-9483-2ef1b4304421"
            },
            {
              "@type": "WorkflowRoute",
              "name": "No Office Alerts -> Done",
              "targetStep": "/api/3/workflow_steps/40110561-5c27-5180-9ce1-9dc11554ce05",
              "sourceStep": "/api/3/workflow_steps/8f52eb0b-eb33-5113-afd3-6f4acfe0b860",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "394b4b2a-273e-5845-ae1b-ecf42aad6020"
            }
          ],
          "groups": [],
          "priority": "/api/3/picklists/9e8d41e4-8ada-4a2c-bd02-07f62c6d0a00",
          "isEditable": true,
          "uuid": "f6e6efa3-d3bc-5404-ac2f-74ca7e26e3cf",
          "isPrivate": false
        }
      ]
    }
  ]
}
