{
  "type": "workflow_collections",
  "data": [
    {
      "description": "This playbook will retrieve unique value artifacts from the triggered events of an Incident such as users, sourec and destination ip and others, that can then be used to enrich, the purpose of it is to provide immediate relevant data from the incent, that would otherwise require post processing by the analist, give all relevant data in made available, enrichement and incident decisions can now be executed.",
      "name": "001 - Investigate Incident",
      "recordTags": [],
      "image": null,
      "@type": "WorkflowCollection",
      "visible": true,
      "workflows": [
        {
          "description": "This playbook will try to extract all available artifacts from the triggering events, they can later be enriched to allow triage and suggest follow-up actions.\n\nConfiguration\n\nPlease update the following steps and connectors:\n\nSteps\n====\nStep: \"pre-configure\":\n1) timeZone to match your instance timezone (ex: \"Europe/Lisbon\" or \"US/Eastern\" INSIDE the quotes)\n2) The variable eventIdList instructions there are two options\n2.1) To get the complete list of events triggered in the incident set the variable to\narrayStringConcat(groupArray(inIncidentEventIdList), ',')\n2.2) Specify and replace the number of triggering events to be analysed. Default in the playbook is 50 events.\narrayStringConcat(arraySlice(groupArray(inIncidentEventIdList), 1, 50), ',')\n\nSteps: RunAdvQry, Comment Incident- Using the FortiSIEM Connector define the Target \"supervisor-agent\"",
          "synchronous": false,
          "isPrivate": false,
          "parameters": [],
          "recordTags": [
            "Super",
            "Policy Violation"
          ],
          "steps": [
            {
              "arguments": {
                "evt_summary": "[\n  {% for event in vars.evt_fulldetail %}\n  {\n    {% for key, value in event.items() if value is not none %}\n    \"{{ key }}\": {{ value|tojson }}{% if not loop.last %},{% endif %}\n    {% endfor %}\n  }{% if not loop.last %},{% endif %}\n  {% endfor %}\n]"
              },
              "description": null,
              "top": "398",
              "left": "1008",
              "name": "RetrieveSummary",
              "status": null,
              "uuid": "10cd15db-46df-43b6-8ea9-187c9bb92957",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "@id": "/api/workflow/events/de983a69-9e4b-4151-aee2-f712436361ee/",
                "tag": null,
                "name": "When an incident is created",
                "poll": null,
                "type": [
                  "PUSH"
                ],
                "uuid": "de983a69-9e4b-4151-aee2-f712436361ee",
                "@type": "ApplicationEvent",
                "agentId": "421187_deploy_10067",
                "event_id": "fortinet-fortisiem.get_incidents_created",
                "schedule": null,
                "start_time": null,
                "description": "Run the playbook when a FortiSIEM incident is created",
                "sample_data": [
                  {
                    "count": 2,
                    "customer": "TCL",
                    "eventName": "Sudden Increase in User Login Volume",
                    "eventType": "PH_RULE_USER_MON_SUDDEN_LOGIN_VOLUME_CHANGE",
                    "incidentId": 3912,
                    "incidentSrc": {
                      "computer": ""
                    },
                    "incidentReso": 1,
                    "eventSeverity": 7,
                    "incidentRptIp": "10.10.10.10",
                    "incidentTitle": "Sudden logon volume increase for $computer to root on qa-sys1",
                    "incidentDetail": "",
                    "incidentStatus": 0,
                    "incidentTarget": {
                      "user": "root",
                      "destName": "qa-sys1"
                    },
                    "eventSeverityCat": "MEDIUM",
                    "incidentLastSeen": 1708888260000,
                    "incidentFirstSeen": 1708801860000,
                    "incidentStatusStr": "active",
                    "incidentRptDevName": "HOST-10.10.10.10",
                    "phIncidentCategory": 4,
                    "incidentClearedTime": 0,
                    "phSubIncidentCategory": "Behavioral Anomaly"
                  }
                ],
                "installed_by": "SOLUTION_PACK",
                "createUser_id": null,
                "modifyUser_id": null,
                "connector_icon": "data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAIAAAD8GO2jAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3hpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ4IDc5LjE2NDAzNiwgMjAxOS8wOC8xMy0wMTowNjo1NyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo1MDNhYTZiMy0zYzEzLTQ5YzEtODNiZi00MThjZWIxM2VhNTIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6OTU3MkQ4QjkzRUFFMTFFQUJCQjJCRDNGMkZEOEUzMEUiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6OTU3MkQ4QjgzRUFFMTFFQUJCQjJCRDNGMkZEOEUzMEUiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKE1hY2ludG9zaCkiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo0MjI1MGJmZi03MjQyLTRhNDItOTA3Ny1hYThiOTk5Yjk3YTIiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NTAzYWE2YjMtM2MxMy00OWMxLTgzYmYtNDE4Y2ViMTNlYTUyIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+SVYIEAAABGVJREFUeNpi/P//PwMtARMDjQHNLWDBFHrz9v2Va3eYmZkZGEgIvT9//qqpyEtLiaOJM6LFAdD01q7ZxoaaQoL8f//9w28oIwMjExPTv3//GBkZv3z9euTYhZL8eHk5KXw+uHnrgZiYcEyELxmh8f7DlwuXbqBZgB4HjEyMrKwsRJo4Z+E6C5vwjVv2QR3LwsLEzEQ4kuGBRjCIZs1dffLovi07DqFpJGABMGSB5Io1263tIleu3YEsdfX6nd37jj94+PTv33+9kxZZWxn1TuqtKkklLRUBYwxIrt+87+TRgw3ffsjLSlqY6b989Ta3pP3u3cfi4sLv338COjbQ36W/o5ScZPrvPyhkmmuzDfU1tTQUgSGwYcv+o8fPa2gobVo9+d2Hj2ysrJV1E+7df0xURP1HBUdPnO+aMB9NsHfyIlPbCCDj3fuPuqaBd+8//v79h65ZEFAxsrJZ89du2rYfTS9ROfnzpy92tiZg1zCIS4gAkxkHB7uOlsq1G/eoU1SIigrfvvMIyODkZLe3MRETEQKy7957/Pr1O6Abnz1//fHjZ4os8HSzPnT07PzFG4ChLyMlDkwFwEADeuLnz19xqdWm9pG+obnfv/9kZWEmx4Jfv37PmLMqIzl0yozlwdGFDx8/9w3NKSluMzXWaajO8vN2ePb05fMXb/7+/QtJfoRTETL4/edPWW2/rpZqcnxgQXbMgiUbN209kBgXALRm2oxlHq7WoYFuJw4sBRZcPDxcv37/IcECYKm3cs3OC5dvWpjpJccFAkXExYQTYvxfvXmfEh8kKy3uG5iVW9R2YOd8c1M90pJp94QFQEZj+3SgmeoGvsDCEiIFLDlScxo4+fTnLlwP5NY2T2VgUIpNqQIGDmnJ9D+4GrC1MtI3sQoP8fiP5JbXb95///z11Zt3QF5VaYqLt/PiOcvmL9lIWk6GAEc7sxNHVnCwsyHSAxPTzEl1eZnRVub6QC5Qakp/VfrPnzzcnCRYAKk9IGxk0yFATFQIiOBcdVWFA7sXwrnMTEzA4CJggYy0xIM1O4+fvMDNzQkMfMIZlYkJUkoDU/PFyzeT4gIIVJlAAFR38fItNjYWkqqzX79/qyrJWZobELZgiDdb3r17d+XKFUZmZg0xUcEPn/98+sGmJHnz1+8Xz55JSEj8+P799evXYuLifHx8d+7c5ubmUVJSun37FisLKxMzM1Cvrq6ujIwMPgtOnDg+YUK/lrFxrqg8DwMLo7Liz/lrpry69/bDe3Y2Nn0Dg8+fPsnJy58+dVpLWwuoftmypS+eP4+IjPry5fOF8xf09PQI+ICJiTkoKNjeyUny8s3ftx6wfvryj5UJ6PbI2NhjR4+oqarx8vGxsbGdPXPW1dXt+/fvVy5fYWfn+P7tm6amJgc7h7g4oYYXUA87Ozsw8TH8+P73xev/338xSQp9ZmLh5+P78uULUDGwxQdqZn35AgwlIPfz588fP34EZnIJSUlgJuDh4QE3CYdTKgIIMAAEe1lyT/xWdwAAAABJRU5ErkJggg==",
                "connector_name": "fortinet-fortisiem",
                "step_variables": {
                  "input": {
                    "params": {}
                  }
                },
                "connector_label": "Fortinet FortiSIEM",
                "exit_if_running": false,
                "batch_preference": 0,
                "connector_action": "get_incidents",
                "connector_mapping": {
                  "datetime": {
                    "to": "timeTo",
                    "from": "timeFrom"
                  },
                  "response": "{{data.data}}"
                },
                "connector_version": "5.3.0",
                "trigger_condition": {
                  "sort": [],
                  "limit": 30,
                  "logic": "AND",
                  "filters": [
                    {
                      "type": "",
                      "field": "incidentTitle",
                      "value": "batatas",
                      "operator": "eq",
                      "evaluation": false,
                      "originalValue": "batatas"
                    }
                  ]
                },
                "connector_action_inputs": {}
              },
              "description": null,
              "top": "268",
              "left": "300",
              "name": "When an incident is created",
              "status": null,
              "uuid": "ca5a7439-397d-4ee7-af5c-91db03093933",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/b348f017-9a94-471f-87f8-ce88b6a7ad62",
              "group": null
            },
            {
              "arguments": {
                "ioc_cve": "{{  vars.vulnerabilities  | unique }}",
                "ioc_dns": "{{  vars.domains_hostnames  | unique }}",
                "ioc_ips": "{{  vars.ip_addresses  | unique }}",
                "ioc_url": "{{  vars.urls  | unique }}",
                "ioc_usr": "{{  vars.users  | unique }}",
                "ioc_hash": "{{  vars.hashes  | unique }}",
                "unique_FoI": "{% set keys = vars.FoInt[0].keys() %}\n{\n{% set ns = namespace(first=true) %}\n{% for key in keys %}\n  {% set unique_vals = [] %}\n  {% for row in vars.FoInt %}\n    {% set val = row.get(key) %}\n    {% if val is defined and val is not none and val != \"\" %}\n      {# If the value looks like a JSON array string, parse it #}\n      {% if val is string and val.startswith(\"[\") and val.endswith(\"]\") %}\n        {% set parsed = val|safe|from_json %}\n        {% for p in parsed %}\n          {% if p not in unique_vals %}\n            {% do unique_vals.append(p) %}\n          {% endif %}\n        {% endfor %}\n      {% else %}\n        {% if val not in unique_vals %}\n          {% do unique_vals.append(val) %}\n        {% endif %}\n      {% endif %}\n    {% endif %}\n  {% endfor %}\n  {% if not ns.first %},{% endif %}\n  \"{{ key }}\": {{ unique_vals|tojson }}\n  {% set ns.first = false %}\n{% endfor %}\n}",
                "relevant_artifacts": "{{ vars.other_artifacts | unique }}"
              },
              "description": null,
              "top": "651",
              "left": "1013",
              "name": "UniqueArtifiacts",
              "status": null,
              "uuid": "6ec68b49-2e7d-4097-bb13-f3e6fa3fb900",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "timeZone": "\"US/Eastern\"",
                "eventIdList": "arrayStringConcat(arraySlice(groupArray(inIncidentEventIdList), 1, 50), ',')"
              },
              "description": "Please Update the pre-configure step:\ntimeZone to match your instance (ex: \"Europe/Lisbon\" or \"US/Eastern\" INSIDE the quotes)\n\neventIdList var instructions:\nTo get the complete list of events triggered in the incident use:\n\narrayStringConcat(groupArray(inIncidentEventIdList), ',')\n\nor specify and replace the number of incidents count (50)\narrayStringConcat(arraySlice(groupArray(inIncidentEventIdList), 1, 50), ',')\n\nLast, confirm that the right connector is being used in each connector step.",
              "top": "410",
              "left": "300",
              "name": "pre-configure",
              "status": null,
              "uuid": "e962972e-570a-4bc9-b72c-6ecbbbe62dc4",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "urls": "[]",
                "users": "[]",
                "hashes": "[]",
                "incLastSeen": "{{ arrow.get( vars.input.records[0].incidentLastSeen + 600000 ).to( vars.timeZone ).format(\"YYYY-MM-DD HH:mm:ss\") }}",
                "unique_vals": "[]",
                "fsm_advquery": "hostIpAddrV4, srcIpAddrV4, destIpAddrV4, user, srcUser, targetUser, computer, hostName, srcName, destName,ipProto, destIpPort, domain, targetDomain, fileName, targetProcName, metrics_string.value[indexOf(metrics_string.name, 'hashCode')] AS hashCode, metrics_string.value[indexOf(metrics_string.name, 'hashMD5')] AS hashMD5, metrics_string.value[indexOf(metrics_string.name, 'hashSHA1')] AS hashSHA1, metrics_string.value[indexOf(metrics_string.name, 'hashSHA256')] AS hashSHA256, metrics_string.value[indexOf(metrics_string.name, 'hashSHA512')] AS hashSHA512, uriStem, metrics_string.value[indexOf(metrics_string.name, 'infoURL')] AS infoURL, metrics_string.value[indexOf(metrics_string.name, 'ipsSignatureId')] AS ipsSignatureId, metrics_string.value[indexOf(metrics_string.name, 'vulnCVEId')] AS vulnCVEId",
                "incFirstSeen": "{{ arrow.get( vars.input.records[0].incidentFirstSeen - 600000 ).to( vars.timeZone ).format(\"YYYY-MM-DD HH:mm:ss\") }}",
                "ip_addresses": "[]",
                "incident_data": "{{ vars.input.records[0] }}",
                "evt_fulldetail": "[]",
                "fsm_attributes": "reptDevIpAddr,srcIpAddr,destIpAddr,preNATDestIpAddr,user,ipProto,destIpPort,uriStem,infoURL,fileName,filePath,swParam,hashMD5,hashSHA1,hashSHA256,hashSHA512,vulnCVEId,ipsSignatureId,hostName,srcName,destName",
                "other_artifacts": "[]",
                "vulnerabilities": "[]",
                "domains_hostnames": "[]",
                "artifact_exclusion": "w3.org,1.1.1.1,127.0.0.0/8"
              },
              "description": null,
              "top": "268",
              "left": "648",
              "name": "Configuration",
              "status": null,
              "uuid": "fa0a8ea5-45f2-4072-884d-e33b0780c788",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "output": "{{ vars.steps[\"Comment IncidentString\"].commentHTML }}",
                "output0": "<h2>Fields of Interest</h2>\n<p>\n  Below is a list of all unique Fields of Interest extracted from all triggered Events on the Incident\n</p>\n<table border=\"1\" cellpadding=\"4\" cellspacing=\"0\">\n  <thead>\n    <tr>\n      <th>Field</th>\n      <th>Unique Values</th>\n    </tr>\n  </thead>\n  <tbody>\n    {% for key, values in vars.unique_FoI.items() %}\n    <tr>\n      <td>{{ key }}</td>\n      <td>{{ values | join(\", \") }}</td>\n    </tr>\n    {% endfor %}\n  </tbody>\n</table>"
              },
              "description": null,
              "top": "851",
              "left": "650",
              "name": "Set Output",
              "status": null,
              "uuid": "6112eed7-3fd8-40a1-b7c7-c6ed0675acc3",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "FoInt": "[\n{% for event in vars.evt_summary -%}\n  {\n    {%- set pairs = [] -%}\n    {%- for key, value in event.items()\n          if value is not none\n          and value != \"\"\n          and key != \"attribute\"\n          and key != \"EventsCount\"\n          and not (value is string and value.startswith(\"HOST-\")) %}\n      {%- set _ = pairs.append('\"%s\": %s' % (key, value|tojson)) -%}\n    {%- endfor -%}\n    {{ pairs | join(', ') }}\n  }{{ \",\" if not loop.last }}\n{%- endfor %}\n]"
              },
              "description": null,
              "top": "540",
              "left": "1211",
              "name": "FieldsOfInterest",
              "status": null,
              "uuid": "85a4075a-740a-4a9f-a787-bd19ab19b2ea",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "id": "{{ vars.incident_data.incidentId }}",
                  "comment_text": "{{ vars.steps[\"Comment IncidentString\"].comment }}"
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "incident_comment",
                "pickFromTenant": false,
                "step_variables": {},
                "from_str": ""
              },
              "description": null,
              "top": "851",
              "left": "1116",
              "name": "Comment Incident",
              "status": null,
              "uuid": "64dce123-4b6a-4aa3-b648-b27d755bbc5e",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "start": 0,
                  "perPage": 250,
                  "sql_query": "WITH ( SELECT {{ vars.eventIdList }} AS eventId FROM fsiem.events WHERE (eventType = '{{ vars.incident_data.eventType }}') AND (incidentId = {{ vars.incident_data.incidentId }}) AND (inIncidentEventIdList IS NOT NULL) AND (phRecvTime BETWEEN '{{ vars.incFirstSeen }}' AND '{{ vars.incLastSeen }}') ) AS id_list SELECT count(*) AS EventsCount, {{ vars.fsm_advquery }} FROM fsiem.events WHERE eventId IN ( SELECT arrayJoin(arrayFilter(x -> (x IS NOT NULL), arrayMap(x -> toUInt64OrNull(trimBoth(x)), splitByChar(',', assumeNotNull(id_list))))) ) GROUP BY ALL ORDER BY count() DESC",
                  "query_type": "SQL Query"
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "run_report",
                "pickFromTenant": false,
                "step_variables": {
                  "_evt_fulldetail": "{%- for event in vars.steps.RunAdvQry.data.events %}\n  {%- set parsed = {} %}\n  {%- for item in event.dataStr.entry %}\n    {%- if item.value is defined and item.value[\"#text\"] is defined %}\n      {%- set _ = parsed.update({ item.key: item.value[\"#text\"] }) %}\n    {%- else %}\n      {%- set _ = parsed.update({ item.key: None }) %}\n    {%- endif %}\n  {%- endfor %}\n  {%- set _ = vars.evt_fulldetail.append(parsed) %}\n{%- endfor %}"
                },
                "from_str": ""
              },
              "description": null,
              "top": "268",
              "left": "1011",
              "name": "RunAdvQry",
              "status": null,
              "uuid": "8f3e24bf-6bc5-401e-bb0f-b89c26ed1262",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "_temp": "{%- for key, value in vars.item.items() -%}\n        {%- if value is defined and value is not none and value != \"\" -%}\n            {%- if key == \"srcIpAddr\" or key == \"destIpAddr\" or key == \"preNATDestIpAddr\" or key == \"srcIpAddrV4\" or key == \"destIpAddrV4\" or key == \"hostIpAddrV4\" -%}\n                {%- do vars.ip_addresses.append(value) -%}\n            {%- elif key == \"uriStem\" or key == \"infoURL\" -%}\n                {%- do vars.urls.append(value) -%}\n            {%- elif key == \"hashMD5\" or key == \"hashSHA1\" or key == \"hashSHA256\" or key == \"hashSHA512\" or key == \"hashCode\" -%}\n                {%- do vars.hashes.append(value) -%}\n            {%- elif key == \"user\" or key == \"srcUser\" or key == \"targetUser\" -%}\n                {%- do vars.users.append(value) -%}\n            {%- elif key == \"vulnCVEId\" or key == \"ipsSignatureId\" -%}\n                {%- do vars.vulnerabilities.append(value) -%}\n            {%- elif key == \"hostName\" or key == \"srcName\" or key == \"destName\" or key == \"computer\" or key == \"domain\" or key == \"targetDomain\" -%}\n                {%- do vars.domains_hostnames.append(value) -%}\n            {%- elif key == \"reptDevIpAddr\" or key == \"filePath\" or key == \"fileName\" or key == \"swParam\" -%}\n                {%- do vars.other_artifacts.append(value) -%}\n            {%- endif -%}\n        {%- endif -%}\n{%- endfor -%}",
                "for_each": {
                  "item": "{{ vars.evt_summary }}",
                  "parallel": false
                },
                "apply_async": false
              },
              "description": null,
              "top": "538",
              "left": "804",
              "name": "MapArtifacts",
              "status": null,
              "uuid": "57445ddd-f46e-4d2f-9c97-69a910f8af62",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "comment": "{% if vars.input.records|length > 0 %}\n{# Access the first record #}\n{% set incident = vars.input.records[0] %}\n\n{# Format timestamps to readable dates using Arrow #}\n{% set first_seen = arrow.get(incident.incidentFirstSeen / 1000).to(\"UTC\").format(\"YYYY-MM-DD HH:mm:ss ZZ\") %}\n{% set last_seen = arrow.get(incident.incidentLastSeen / 1000).to(\"UTC\").format(\"YYYY-MM-DD HH:mm:ss ZZ\") %}\n\n# Security Incident Report\n\n## Summary\n**Incident ID:** {{ incident.incidentId }}  \n**Title:** {{ incident.incidentTitle }}  \n**Status:** {{ \"🔴 Active\" if incident.incidentStatus == 0 else \"🟢 Resolved\" }}  \n**Severity:** {{ incident.eventSeverityCat }} ({{ incident.eventSeverity }}/10)\n\n## Threat Details\n| Attribute | Value |\n|-----------|-------|\n| **Attack Tactic** | {{ incident.attackTactic }} |\n| **Attack Technique** | {{ incident.attackTechniqueId }} - {{ (incident.attackTechnique|from_json)[0].name if incident.attackTechnique }} |\n\n## Timeline\n| Event | Timestamp |\n|-------|-----------|\n| **First Seen** | {{ first_seen }} |\n| **Last Seen** | {{ last_seen }} |\n{% if incident.incidentClearedTime > 0 %}| **Cleared** | {{ arrow.get(incident.incidentClearedTime / 1000).to(\"UTC\").format(\"YYYY-MM-DD HH:mm:ss ZZ\") }} |{% endif %}\n\n## Reporting Information\n| Field | Value |\n|-------|-------|\n| **Reporting Device** | {{ incident.incidentRptDevName }} ({{ incident.incidentRptIp }}) |\n| **Customer** | {{ incident.customer }} |\n\n\n## Summary Fields of Interest\n{% for key, values in vars.unique_FoI.items() %}\n### {{ key }}\n{{ values | join(\", \") }}\n{% endfor %}\n\n{% else %}\n## No Security Incidents Found\n\nNo security incidents were found in the provided data.\n\n{% endif %}",
                "commentHTML": "{% if vars.input.records|length > 0 %}\n{# Access the first record #}\n{% set incident = vars.input.records[0] %}\n\n{% set first_seen = arrow.get(incident.incidentFirstSeen / 1000).to(\"UTC\").format(\"YYYY-MM-DD HH:mm:ss ZZ\") %}\n{% set last_seen = arrow.get(incident.incidentLastSeen / 1000).to(\"UTC\").format(\"YYYY-MM-DD HH:mm:ss ZZ\") %}\n\n<h1>Security Incident Report</h1>\n\n<h2>Summary</h2>\n<p><strong>Incident ID:</strong> {{ incident.incidentId }}<br>\n<strong>Title:</strong> {{ incident.incidentTitle }}<br>\n<strong>Status:</strong> {{ \"🔴 Active\" if incident.incidentStatus == 0 else \"🟢 Resolved\" }}<br>\n<strong>Severity:</strong> {{ incident.eventSeverityCat }} ({{ incident.eventSeverity }}/10)</p>\n<br>\n<h2>Threat Details</h2>\n<table border=\"1\" cellspacing=\"0\" cellpadding=\"5\">\n  <tr>\n    <th>Attribute</th>\n    <th>Value</th>\n  </tr>\n  <tr>\n    <td><strong>Attack Tactic</strong></td>\n    <td>{{ incident.attackTactic }}</td>\n  </tr>\n  <tr>\n    <td><strong>Attack Technique</strong></td>\n    <td>{{ incident.attackTechniqueId }} - {{ (incident.attackTechnique|from_json)[0].name if incident.attackTechnique }}</td>\n  </tr>\n</table>\n<br>\n<h2>Timeline</h2>\n<table border=\"1\" cellspacing=\"0\" cellpadding=\"5\">\n  <tr>\n    <th>Event</th>\n    <th>Timestamp</th>\n  </tr>\n  <tr>\n    <td><strong>First Seen</strong></td>\n    <td>{{ first_seen }}</td>\n  </tr>\n  <tr>\n    <td><strong>Last Seen</strong></td>\n    <td>{{ last_seen }}</td>\n  </tr>\n  {% if incident.incidentClearedTime > 0 %}\n  <tr>\n    <td><strong>Cleared</strong></td>\n    <td>{{ arrow.get(incident.incidentClearedTime / 1000).to(\"UTC\").format(\"YYYY-MM-DD HH:mm:ss ZZ\") }}</td>\n  </tr>\n  {% endif %}\n</table>\n<br>\n<h2>Reporting Information</h2>\n<table border=\"1\" cellspacing=\"0\" cellpadding=\"5\">\n  <tr>\n    <th>Field</th>\n    <th>Value</th>\n  </tr>\n  <tr>\n    <td><strong>Reporting Device</strong></td>\n    <td>{{ incident.incidentRptDevName }} ({{ incident.incidentRptIp }})</td>\n  </tr>\n  <tr>\n    <td><strong>Customer</strong></td>\n    <td>{{ incident.customer }}</td>\n  </tr>\n</table>\n<br>\n<h2>Summary Fields of Interest</h2>\n{% for key, values in vars.unique_FoI.items() %}\n<p><strong>{{ key }}: </strong>{{ values | join(\", \") }}</p>\n{% endfor %}\n\n{% else %}\n<h2>No Security Incidents Found</h2>\n<p>No security incidents were found in the provided data.</p>\n{% endif %}"
              },
              "description": null,
              "top": "751",
              "left": "977",
              "name": "Comment IncidentString",
              "status": null,
              "uuid": "bf166578-33ef-4031-a2e5-6ffca73736fc",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            }
          ],
          "routes": [
            {
              "@type": "WorkflowRoute",
              "name": "Configuration->RunAdvQry",
              "targetStep": "/api/3/workflow_steps/8f3e24bf-6bc5-401e-bb0f-b89c26ed1262",
              "sourceStep": "/api/3/workflow_steps/fa0a8ea5-45f2-4072-884d-e33b0780c788",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "51e4b053-7b61-4beb-a322-f3fe0f3ba8f5"
            },
            {
              "@type": "WorkflowRoute",
              "name": "47fcc961-d518-4432-979d-31ff86eef3dc",
              "targetStep": "/api/3/workflow_steps/6ec68b49-2e7d-4097-bb13-f3e6fa3fb900",
              "sourceStep": "/api/3/workflow_steps/85a4075a-740a-4a9f-a787-bd19ab19b2ea",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "3ae02170-3aa1-4d31-931c-db466812dd76"
            },
            {
              "@type": "WorkflowRoute",
              "name": "53c6d4df-0448-45e3-ba25-4cc172d16f9b",
              "targetStep": "/api/3/workflow_steps/64dce123-4b6a-4aa3-b648-b27d755bbc5e",
              "sourceStep": "/api/3/workflow_steps/bf166578-33ef-4031-a2e5-6ffca73736fc",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "230f0c73-2a73-4a05-9f13-c518d6af253a"
            },
            {
              "@type": "WorkflowRoute",
              "name": "6e490cbc-8f98-41fa-bcbe-9d184a0453c7",
              "targetStep": "/api/3/workflow_steps/bf166578-33ef-4031-a2e5-6ffca73736fc",
              "sourceStep": "/api/3/workflow_steps/6ec68b49-2e7d-4097-bb13-f3e6fa3fb900",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "ec826b2d-d279-4bab-b52a-3e915daddb5f"
            },
            {
              "@type": "WorkflowRoute",
              "name": "When an incident is created->pre-configure",
              "targetStep": "/api/3/workflow_steps/e962972e-570a-4bc9-b72c-6ecbbbe62dc4",
              "sourceStep": "/api/3/workflow_steps/ca5a7439-397d-4ee7-af5c-91db03093933",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "4bdefe7d-08ee-4db5-a4d3-5745d637f2ed"
            },
            {
              "@type": "WorkflowRoute",
              "name": "b7512f2b-ad67-4ee3-ab1f-997d5118ddb7",
              "targetStep": "/api/3/workflow_steps/fa0a8ea5-45f2-4072-884d-e33b0780c788",
              "sourceStep": "/api/3/workflow_steps/e962972e-570a-4bc9-b72c-6ecbbbe62dc4",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "cb51e2ff-fee3-4e45-95ae-f87bacdc9fc5"
            },
            {
              "@type": "WorkflowRoute",
              "name": "efcb4d1b-4264-4967-b77a-0b473883c54a",
              "targetStep": "/api/3/workflow_steps/6112eed7-3fd8-40a1-b7c7-c6ed0675acc3",
              "sourceStep": "/api/3/workflow_steps/64dce123-4b6a-4aa3-b648-b27d755bbc5e",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "a7a5b60d-e0be-4da4-9f81-bfae0f1e2bb0"
            },
            {
              "@type": "WorkflowRoute",
              "name": "RetrieveSummary->FieldsOfInterest",
              "targetStep": "/api/3/workflow_steps/85a4075a-740a-4a9f-a787-bd19ab19b2ea",
              "sourceStep": "/api/3/workflow_steps/10cd15db-46df-43b6-8ea9-187c9bb92957",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "4c8b9c10-6fa7-454c-85e6-826bcc209b9e"
            },
            {
              "@type": "WorkflowRoute",
              "name": "dd4d5a9b-5313-40ca-a5d2-4162cd65714f",
              "targetStep": "/api/3/workflow_steps/57445ddd-f46e-4d2f-9c97-69a910f8af62",
              "sourceStep": "/api/3/workflow_steps/10cd15db-46df-43b6-8ea9-187c9bb92957",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "9ee2d3a0-a7c8-4ff3-8c73-fc8b637095b3"
            },
            {
              "@type": "WorkflowRoute",
              "name": "902e8199-29ee-49e7-9436-803467451960",
              "targetStep": "/api/3/workflow_steps/10cd15db-46df-43b6-8ea9-187c9bb92957",
              "sourceStep": "/api/3/workflow_steps/8f3e24bf-6bc5-401e-bb0f-b89c26ed1262",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "af833ff7-09db-41e1-a55a-1de560353f61"
            },
            {
              "@type": "WorkflowRoute",
              "name": "bd02c1e3-dd4d-4526-9c4e-b78ba18fb954",
              "targetStep": "/api/3/workflow_steps/6ec68b49-2e7d-4097-bb13-f3e6fa3fb900",
              "sourceStep": "/api/3/workflow_steps/57445ddd-f46e-4d2f-9c97-69a910f8af62",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "3c63b317-1c95-4731-8732-f947e8f399c3"
            }
          ],
          "isActive": false,
          "groups": [],
          "tag": null,
          "uuid": "d1287f83-903e-414d-8fc0-ae5c74fc607c",
          "triggerStep": "/api/3/workflow_steps/ca5a7439-397d-4ee7-af5c-91db03093933",
          "singleRecordExecution": false,
          "priority": "/api/3/picklists/2b563c61-ae2c-41c0-a85a-c9709585e3f2",
          "debug": true,
          "remoteExecutableFlag": false,
          "@type": "Workflow",
          "name": "Incident Summary",
          "importedBy": [],
          "triggerLimit": null,
          "aliasName": null
        }
      ]
    },
    {
      "description": null,
      "name": "002 - Remediations",
      "recordTags": [],
      "image": null,
      "@type": "WorkflowCollection",
      "visible": true,
      "workflows": [
        {
          "description": "Playbook asks the operator to approve the user password reset and optionally disable the suspected compromised user account..\n\nConfiguration\nConfirm that the correct connector configuration is used for each connector step:\n\nStep: Reset Password – Active Director Connector. Requires LDAPS, LDAP is not supported. Select the Target that has connectivity to the Active Directory Server.\nStep: Comment Incident- Using the FortiSIEM Connector define the Target \"supervisor-agent\"",
          "synchronous": false,
          "isPrivate": false,
          "parameters": null,
          "recordTags": [
            "User Account Change"
          ],
          "steps": [
            {
              "arguments": {
                "name": "Active Directory",
                "config": "",
                "params": {
                  "search_attr_name": "SamAccount Name",
                  "search_attr_value": "{{ vars.steps[\"Ask Operator For Permission\"].input.selectUser }}"
                },
                "version": "2.4.0",
                "connector": "activedirectory",
                "operation": "disable_user_account",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "300",
              "left": "4848",
              "name": "Disable User",
              "status": null,
              "uuid": "8fee2eff-7ff4-4fb1-8532-d877910cbff2",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "user_list": "{%- set raw_users = [vars.user, vars.targetUser] -%}{%- set restricted = vars.restricted_users -%}{%- set user_list = raw_users | reject('in', restricted) | list -%}{{ user_list }}"
              },
              "description": null,
              "top": "417",
              "left": "1680",
              "name": "Make User List",
              "status": null,
              "uuid": "81b4e282-7c8d-4cf6-ad84-197ee2f822db",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "user_change": "{{ vars.steps[\"Ask Operator For Permission\"].input.selectUser }}",
                "new_password": "{{ vars.steps[\"Ask Operator For Permission\"].input.manualPassword }}"
              },
              "description": null,
              "top": "417",
              "left": "3360",
              "name": "Manual",
              "status": null,
              "uuid": "874e583d-68c3-48c9-af50-54aec4224978",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "output": "{{ vars.my_comment }}"
              },
              "description": null,
              "top": "302",
              "left": "6280",
              "name": "Final Output",
              "status": null,
              "uuid": "e6d16ff4-094e-45ed-8ad9-fe79dc7da13a",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "output": "No Users found in Incident {{ vars.steps.Configuration.incident_id }}"
              },
              "description": null,
              "top": "349",
              "left": "2440",
              "name": "No Users Found",
              "status": null,
              "uuid": "8955e04d-8169-4e33-8288-fb3954f7fbf2",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "my_comment": "SOC Operator {{ vars.steps[\"Ask Operator For Permission\"].username }} chose to reset the user : {{ vars.user_change }} password to {{ vars.new_password }}"
              },
              "description": null,
              "top": "426",
              "left": "4825",
              "name": "Set No Response",
              "status": null,
              "uuid": "03d76e4a-61c4-4463-9307-3300b2a3a110",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "conditions": [
                  {
                    "option": "Success",
                    "step_iri": "/api/3/workflow_steps/838074df-da5a-478a-8ca2-05b6f5420c49",
                    "condition": "{{vars.steps[\"Reset Password\"].data.type == \"modifyResponse\" and\nvars.steps[\"Reset Password\"].status == \"Success\"}}",
                    "step_name": "Disable Account?"
                  },
                  {
                    "option": "Unsuccessful",
                    "default": true,
                    "step_iri": "/api/3/workflow_steps/a5512bdf-849c-40d7-b1ac-7c441b3deaa5",
                    "step_name": "Unsuccessful Output"
                  }
                ]
              },
              "description": null,
              "top": "363",
              "left": "4280",
              "name": "Reset Success?",
              "status": null,
              "uuid": "88c1c08e-1bc5-4672-a288-09e0460f1966",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/12254cf5-5db7-4b1a-8cb1-3af081924b28",
              "group": null
            },
            {
              "arguments": {
                "output": "Password Reset for User: {{ vars.user_change }} failed.\n\nError if reported was : {{ vars.steps[\"Reset Password\"].data.message }}"
              },
              "description": null,
              "top": "552",
              "left": "4580",
              "name": "Unsuccessful Output",
              "status": null,
              "uuid": "a5512bdf-849c-40d7-b1ac-7c441b3deaa5",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "output": "SOC Operator {{ vars.steps[\"Ask Operator For Permission\"].username }} did not provide a password reset method."
              },
              "description": null,
              "top": "691",
              "left": "3368",
              "name": "Set No Selection",
              "status": null,
              "uuid": "ea830e48-8e7b-4669-80ec-95c2ae7a0aae",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "digit_count": "2",
                "lower_count": "2",
                "upper_count": "2",
                "special_count": "2"
              },
              "description": null,
              "top": "417",
              "left": "760",
              "name": "Set Random Password Requirements",
              "status": null,
              "uuid": "d3d9e4c2-3129-46a4-b1ea-923bddbbf781",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "conditions": [
                  {
                    "option": "Yes",
                    "step_iri": "/api/3/workflow_steps/8fee2eff-7ff4-4fb1-8532-d877910cbff2",
                    "condition": "{{vars.steps[\"Ask Operator For Permission\"].input.disableUser == true}}",
                    "step_name": "Disable User"
                  },
                  {
                    "option": "No",
                    "default": true,
                    "step_iri": "/api/3/workflow_steps/03d76e4a-61c4-4463-9307-3300b2a3a110",
                    "step_name": "Set Response"
                  }
                ]
              },
              "description": null,
              "top": "298",
              "left": "4578",
              "name": "Disable Account?",
              "status": null,
              "uuid": "838074df-da5a-478a-8ca2-05b6f5420c49",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/12254cf5-5db7-4b1a-8cb1-3af081924b28",
              "group": null
            },
            {
              "arguments": {
                "__triggerLimit": true,
                "step_variables": {
                  "input": {
                    "params": []
                  }
                },
                "triggerOnSource": true,
                "triggerOnReplicate": false
              },
              "description": null,
              "top": "417",
              "left": "300",
              "name": "Start",
              "status": null,
              "uuid": "30317ae2-d53d-4ac4-8543-0cd7c5a07655",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/b348f017-9a94-471f-87f8-ce88b6a7ad62",
              "group": null
            },
            {
              "arguments": {
                "user": "{{ vars.input.records[0].targetDict.user }}",
                "targetUser": "{{ vars.input.records[0].targetDict.targetUser }}",
                "incident_id": "{{ vars.input.records[0].incidentId }}",
                "incidentTitle": "{{ vars.input.records[0].incidentTitle }}",
                "restricted_users": "[ \"administrator\", \"root\" ]"
              },
              "description": null,
              "top": "417",
              "left": "1220",
              "name": "Configuration",
              "status": null,
              "uuid": "39867fb3-5fa3-412e-84d9-9ebcec878612",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "user_change": "{{ vars.steps[\"Ask Operator For Permission\"].input.selectUser }}",
                "new_password": "{%- set raw = (uuid() ~ uuid()).replace(\"-\", \"\") | list -%}\n{%- set special_chars = \"!@#$%^&*?\" | list -%}\n{%- set digits_all = \"0123456789\" | list -%}\n{%- set uppercase = [] -%}\n{%- set lowercase = [] -%}\n{%- set digits = [] -%}\n\n{# Collect characters manually #}\n{%- for c in raw -%}\n  {%- if c in ['A','B','C','D','E','F'] and uppercase|length < vars.upper_count -%}\n    {%- set _ = uppercase.append(c) -%}\n  {%- elif c in ['a','b','c','d','e','f'] and lowercase|length < vars.lower_count -%}\n    {%- set _ = lowercase.append(c) -%}\n  {%- elif c in digits_all and digits|length < vars.digit_count -%}\n    {%- set _ = digits.append(c) -%}\n  {%- endif -%}\n  {%- if uppercase|length == vars.upper_count and lowercase|length == vars.lower_count and digits|length == vars.digit_count -%}\n    {%- break -%}\n  {%- endif -%}\n{%- endfor -%}\n\n{# Pad if any character class is short #}\n{%- if uppercase|length < vars.upper_count -%}\n  {%- set _ = uppercase.extend(['A'] * (vars.upper_count - uppercase|length)) -%}\n{%- endif -%}\n{%- if lowercase|length < vars.lower_count -%}\n  {%- set _ = lowercase.extend(['a'] * (vars.lower_count - lowercase|length)) -%}\n{%- endif -%}\n{%- if digits|length < vars.digit_count -%}\n  {%- set _ = digits.extend(['0'] * (vars.digit_count - digits|length)) -%}\n{%- endif -%}\n\n{# Pick 2 random specials #}\n{%- set specials = (special_chars | shuffle)[:vars.special_count] -%}\n\n{# Combine and shuffle all characters #}\n{%- set password_chars = (uppercase + lowercase + digits + specials) | shuffle -%}\n{{- password_chars | join('') -}}"
              },
              "description": null,
              "top": "282",
              "left": "3360",
              "name": "Generate Random Password",
              "status": null,
              "uuid": "d5f42c4a-7df3-4151-8b3b-3425449cf67a",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "name": "Active Directory",
                "config": "",
                "params": {
                  "new_password": "{{ vars.new_password }}",
                  "search_attr_name": "SamAccount Name",
                  "search_attr_value": "{{ vars.user_change }}"
                },
                "version": "2.4.0",
                "connector": "activedirectory",
                "operation": "reset_password",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "383",
              "left": "3820",
              "name": "Reset Password",
              "status": null,
              "uuid": "dd2dbae5-18ee-4eb1-9509-7f267816a195",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "conditions": [
                  {
                    "option": "Success",
                    "step_iri": "/api/3/workflow_steps/7f224567-8952-4e88-8102-ce6ef083988e",
                    "condition": "{{vars.steps[\"Disable User\"].data.type == \"modifyResponse\" and\nvars.steps[\"Disable User\"].status == \"Success\"}}",
                    "step_name": "Successful Disable"
                  },
                  {
                    "option": "Failed",
                    "default": true,
                    "step_iri": "/api/3/workflow_steps/8864240c-568c-49ff-87db-bcb0dde3f3cd",
                    "step_name": "Disable Failed"
                  }
                ]
              },
              "description": null,
              "top": "226",
              "left": "5226",
              "name": "Disable Success?",
              "status": null,
              "uuid": "c1d302ff-f42b-4a1c-a91c-39186b445b73",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/12254cf5-5db7-4b1a-8cb1-3af081924b28",
              "group": null
            },
            {
              "arguments": {
                "my_comment": "SOC Operator {{ vars.steps[\"Ask Operator For Permission\"].username }} successfully reset the user : {{ vars.user_change }} password to {{ vars.new_password }} and the user account was also disabled."
              },
              "description": null,
              "top": "144",
              "left": "5550",
              "name": "Successful Disable",
              "status": null,
              "uuid": "7f224567-8952-4e88-8102-ce6ef083988e",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "my_comment": "SOC Operator {{ vars.steps[\"Ask Operator For Permission\"].username }} successfully reset the user : {{ vars.user_change }} password to {{ vars.new_password }} but disabling the user account failed."
              },
              "description": null,
              "top": "30",
              "left": "5457",
              "name": "Disable Failed",
              "status": null,
              "uuid": "8864240c-568c-49ff-87db-bcb0dde3f3cd",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "type": "InputBased",
                "input": {
                  "schema": {
                    "title": "Reset User Password",
                    "description": "<div class=\"container mt-4\">\n<h4 class=\"mb-3\">🧩 Instructions</h4>\n<p>For Incident : {{ vars.incidentTitle }}</p>\n<!-- Step 1 -->\n<div class=\"card mb-3\">\n<div class=\"card-header bg-primary text-white\">Step 1: Select The User &amp; Set Password Method</div>\n</div>\n<!-- Step 2 -->\n<div class=\"card mb-3\">\n<div class=\"card-header bg-primary text-white\">Step 2: Decide Whether To Also Disable The Account</div>\n</div>\n</div>",
                    "inputVariables": [
                      {
                        "name": "selectUser",
                        "type": "select",
                        "label": "Select User",
                        "options": "{{ vars.user_list }}",
                        "tooltip": "",
                        "formType": "select",
                        "required": false,
                        "isMultiple": false,
                        "defaultValue": null,
                        "useRecordFieldDefault": false
                      },
                      {
                        "name": "manualPassword",
                        "type": "string",
                        "label": "Manual Password",
                        "options": [],
                        "tooltip": "Enter a new password here",
                        "formType": "textarea",
                        "required": false,
                        "isMultiple": false,
                        "defaultValue": null,
                        "useRecordFieldDefault": false
                      },
                      {
                        "name": "generateRandomPassword",
                        "type": "boolean",
                        "label": "Generate Random Password",
                        "options": [],
                        "tooltip": "Select to Generate a Random Password",
                        "formType": "checkbox",
                        "required": false,
                        "isMultiple": false,
                        "defaultValue": "{{ False }}",
                        "useRecordFieldDefault": false
                      },
                      {
                        "name": "disableUser",
                        "type": "boolean",
                        "label": "Disable User",
                        "options": [],
                        "tooltip": "Disable User",
                        "formType": "checkbox",
                        "required": false,
                        "isMultiple": false,
                        "defaultValue": "{{ False }}",
                        "useRecordFieldDefault": false
                      }
                    ]
                  }
                },
                "is_approval": false,
                "owner_detail": {
                  "isAssigned": false,
                  "assignedToField": null,
                  "assignedToPerson": []
                },
                "response_mapping": {
                  "options": [
                    {
                      "option": "OK",
                      "primary": true,
                      "step_iri": "api/3/workflow_steps/774ca161-d711-4d33-98a6-3af76dfc4c0e",
                      "step_uuid": "/api/3/workflow_steps/774ca161-d711-4d33-98a6-3af76dfc4c0e"
                    },
                    {
                      "option": "Exit",
                      "primary": false,
                      "step_iri": "api/3/workflow_steps/06956ff5-68ef-45d6-ade1-24a025051697",
                      "step_uuid": "/api/3/workflow_steps/06956ff5-68ef-45d6-ade1-24a025051697"
                    }
                  ],
                  "connecteStepsLength": 0,
                  "customSuccessMessage": "Awaiting Playbook resumed successfully"
                },
                "email_notification": {
                  "enabled": false,
                  "smtpParameters": {}
                },
                "inline_channel_list": [],
                "external_channel_list": [],
                "unauthenticated_input": false
              },
              "description": null,
              "top": "484",
              "left": "2440",
              "name": "Ask Operator For Permission",
              "status": null,
              "uuid": "72a1040b-4bf3-448d-9448-4a4313d335d3",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/fc04082a-d7dc-4299-96fb-6837b1baa0fe",
              "group": null
            },
            {
              "arguments": {
                "conditions": [
                  {
                    "option": "Random",
                    "step_iri": "/api/3/workflow_steps/d5f42c4a-7df3-4151-8b3b-3425449cf67a",
                    "condition": "{{vars.steps[\"Ask Operator For Permission\"].input.generateRandomPassword == true}}",
                    "step_name": "Generate Random Password"
                  },
                  {
                    "option": "Manually Set",
                    "step_iri": "/api/3/workflow_steps/874e583d-68c3-48c9-af50-54aec4224978",
                    "condition": "{{vars.steps[\"Ask Operator For Permission\"].input.manualPassword}}",
                    "step_name": "Manual"
                  },
                  {
                    "option": "No Reset Method",
                    "default": true,
                    "step_iri": "/api/3/workflow_steps/ea830e48-8e7b-4669-80ec-95c2ae7a0aae",
                    "step_name": "Set No Selection"
                  }
                ]
              },
              "description": null,
              "top": "397",
              "left": "2899",
              "name": "Reset Password Method",
              "status": null,
              "uuid": "774ca161-d711-4d33-98a6-3af76dfc4c0e",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/12254cf5-5db7-4b1a-8cb1-3af081924b28",
              "group": null
            },
            {
              "arguments": {
                "output": "SOC Admin {{ vars.steps[\"Ask Operator For Permission\"].username }}, declined to reset a user password."
              },
              "description": null,
              "top": "572",
              "left": "2900",
              "name": "No Change",
              "status": null,
              "uuid": "06956ff5-68ef-45d6-ade1-24a025051697",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "id": "{{ vars.incident_id }}",
                  "comment_text": "{{ vars.my_comment }}"
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "incident_comment",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "302",
              "left": "5914",
              "name": "Add Comment To Incident",
              "status": null,
              "uuid": "19fc3a9a-7c58-4d98-b2ce-8f872de4920a",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "conditions": [
                  {
                    "option": "No Users",
                    "step_iri": "/api/3/workflow_steps/8955e04d-8169-4e33-8288-fb3954f7fbf2",
                    "condition": "{{vars.user_list is not defined or vars.user_list|length == 0}}",
                    "step_name": "No Users Found"
                  },
                  {
                    "option": "Users Found",
                    "default": true,
                    "step_iri": "/api/3/workflow_steps/72a1040b-4bf3-448d-9448-4a4313d335d3",
                    "step_name": "Ask Operator For Permission"
                  }
                ]
              },
              "description": null,
              "top": "397",
              "left": "2140",
              "name": "Users Present?",
              "status": null,
              "uuid": "5452c7cc-8163-4b14-b410-cdd476dbd602",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/12254cf5-5db7-4b1a-8cb1-3af081924b28",
              "group": null
            }
          ],
          "routes": [
            {
              "@type": "WorkflowRoute",
              "name": "3a7e078e-670f-425b-8784-1cf1635d891b",
              "targetStep": "/api/3/workflow_steps/d5f42c4a-7df3-4151-8b3b-3425449cf67a",
              "sourceStep": "/api/3/workflow_steps/774ca161-d711-4d33-98a6-3af76dfc4c0e",
              "label": "Random",
              "isExecuted": false,
              "group": null,
              "uuid": "53f9308e-7f63-4964-9bd3-232109673167"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Method->what",
              "targetStep": "/api/3/workflow_steps/874e583d-68c3-48c9-af50-54aec4224978",
              "sourceStep": "/api/3/workflow_steps/774ca161-d711-4d33-98a6-3af76dfc4c0e",
              "label": "Manually Set",
              "isExecuted": false,
              "group": null,
              "uuid": "ba0951f4-5eaf-436b-ade2-8f1a8e07750c"
            },
            {
              "@type": "WorkflowRoute",
              "name": "ccb9d2af-32fd-4bb1-a401-34ec1fdf75cd",
              "targetStep": "/api/3/workflow_steps/774ca161-d711-4d33-98a6-3af76dfc4c0e",
              "sourceStep": "/api/3/workflow_steps/72a1040b-4bf3-448d-9448-4a4313d335d3",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "74927747-483d-4d23-a4fc-e0bfefd2b01d"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Capture Variables->Make User List",
              "targetStep": "/api/3/workflow_steps/81b4e282-7c8d-4cf6-ad84-197ee2f822db",
              "sourceStep": "/api/3/workflow_steps/39867fb3-5fa3-412e-84d9-9ebcec878612",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "4a9a0d3f-4f9a-4a9f-be30-670d7f24678d"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Ask Operator For Permission->No Change",
              "targetStep": "/api/3/workflow_steps/06956ff5-68ef-45d6-ade1-24a025051697",
              "sourceStep": "/api/3/workflow_steps/72a1040b-4bf3-448d-9448-4a4313d335d3",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "d2d7a1be-bc66-43f5-b528-eb149777a8cf"
            },
            {
              "@type": "WorkflowRoute",
              "name": "cbb7ccee-0bb7-48fe-9549-84fb62c8ae34",
              "targetStep": "/api/3/workflow_steps/dd2dbae5-18ee-4eb1-9509-7f267816a195",
              "sourceStep": "/api/3/workflow_steps/d5f42c4a-7df3-4151-8b3b-3425449cf67a",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "906b54ea-2e7a-4dcb-bd97-1a42658eb3aa"
            },
            {
              "@type": "WorkflowRoute",
              "name": "cbd7d9e5-a054-47c8-b0bc-fe7519ddbc31",
              "targetStep": "/api/3/workflow_steps/dd2dbae5-18ee-4eb1-9509-7f267816a195",
              "sourceStep": "/api/3/workflow_steps/874e583d-68c3-48c9-af50-54aec4224978",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "60f9f367-e2ba-4f71-8ff3-9a978c22d692"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Add Comment To Incident->Final Output",
              "targetStep": "/api/3/workflow_steps/e6d16ff4-094e-45ed-8ad9-fe79dc7da13a",
              "sourceStep": "/api/3/workflow_steps/19fc3a9a-7c58-4d98-b2ce-8f872de4920a",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "eb61c309-bbb9-4c78-9252-6fe16b04188a"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Reset Password->Rest Success?",
              "targetStep": "/api/3/workflow_steps/88c1c08e-1bc5-4672-a288-09e0460f1966",
              "sourceStep": "/api/3/workflow_steps/dd2dbae5-18ee-4eb1-9509-7f267816a195",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "09e92b60-946b-4f57-9db2-96a1b5f422bd"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Rest Success?->Unsuccessful Output",
              "targetStep": "/api/3/workflow_steps/a5512bdf-849c-40d7-b1ac-7c441b3deaa5",
              "sourceStep": "/api/3/workflow_steps/88c1c08e-1bc5-4672-a288-09e0460f1966",
              "label": "Unsuccessful",
              "isExecuted": false,
              "group": null,
              "uuid": "a4309cb0-491c-42c2-9de5-75b58e074050"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Reset Password Method->Set No Selection",
              "targetStep": "/api/3/workflow_steps/ea830e48-8e7b-4669-80ec-95c2ae7a0aae",
              "sourceStep": "/api/3/workflow_steps/774ca161-d711-4d33-98a6-3af76dfc4c0e",
              "label": "No Reset Method",
              "isExecuted": false,
              "group": null,
              "uuid": "ed945f6d-bba4-4919-a24e-75574a05d24f"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Start->Set Random Password Requirements",
              "targetStep": "/api/3/workflow_steps/d3d9e4c2-3129-46a4-b1ea-923bddbbf781",
              "sourceStep": "/api/3/workflow_steps/30317ae2-d53d-4ac4-8543-0cd7c5a07655",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "f0d78b3f-ad1f-42ce-9c56-fc812fa2030b"
            },
            {
              "@type": "WorkflowRoute",
              "name": "e0d013a5-cb6f-44d8-83ef-71fffcd2df59",
              "targetStep": "/api/3/workflow_steps/39867fb3-5fa3-412e-84d9-9ebcec878612",
              "sourceStep": "/api/3/workflow_steps/d3d9e4c2-3129-46a4-b1ea-923bddbbf781",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "1bc4379c-29bb-489b-a615-8c680875cb5a"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Users Present?->No Users Found",
              "targetStep": "/api/3/workflow_steps/8955e04d-8169-4e33-8288-fb3954f7fbf2",
              "sourceStep": "/api/3/workflow_steps/5452c7cc-8163-4b14-b410-cdd476dbd602",
              "label": "No Users",
              "isExecuted": false,
              "group": null,
              "uuid": "6cc0a0a9-e127-4f6c-8f10-05b0b8ad1ea2"
            },
            {
              "@type": "WorkflowRoute",
              "name": "73915bb9-5885-4640-9e36-33d6af7462c1",
              "targetStep": "/api/3/workflow_steps/72a1040b-4bf3-448d-9448-4a4313d335d3",
              "sourceStep": "/api/3/workflow_steps/5452c7cc-8163-4b14-b410-cdd476dbd602",
              "label": "Users Found",
              "isExecuted": false,
              "group": null,
              "uuid": "d699909a-dd55-4715-ae89-23e40822a591"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Reset Success?->Disable Account?",
              "targetStep": "/api/3/workflow_steps/838074df-da5a-478a-8ca2-05b6f5420c49",
              "sourceStep": "/api/3/workflow_steps/88c1c08e-1bc5-4672-a288-09e0460f1966",
              "label": "Success",
              "isExecuted": false,
              "group": null,
              "uuid": "04399627-63d3-444e-a8e2-15467af73738"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Disable Account?->Disable User",
              "targetStep": "/api/3/workflow_steps/8fee2eff-7ff4-4fb1-8532-d877910cbff2",
              "sourceStep": "/api/3/workflow_steps/838074df-da5a-478a-8ca2-05b6f5420c49",
              "label": "Yes",
              "isExecuted": false,
              "group": null,
              "uuid": "b91947d7-e325-45d4-bf36-59c547619187"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Disable Account?->Set Response",
              "targetStep": "/api/3/workflow_steps/03d76e4a-61c4-4463-9307-3300b2a3a110",
              "sourceStep": "/api/3/workflow_steps/838074df-da5a-478a-8ca2-05b6f5420c49",
              "label": "No",
              "isExecuted": false,
              "group": null,
              "uuid": "d53ccbad-0107-4f1d-b89f-75528c3723fa"
            },
            {
              "@type": "WorkflowRoute",
              "name": "5e7f2937-5e9b-425c-a8fd-bbbf1099b46b",
              "targetStep": "/api/3/workflow_steps/19fc3a9a-7c58-4d98-b2ce-8f872de4920a",
              "sourceStep": "/api/3/workflow_steps/03d76e4a-61c4-4463-9307-3300b2a3a110",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "c4299a23-4792-4777-9ef9-8e097f84e152"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Disable User->Disable Success?",
              "targetStep": "/api/3/workflow_steps/c1d302ff-f42b-4a1c-a91c-39186b445b73",
              "sourceStep": "/api/3/workflow_steps/8fee2eff-7ff4-4fb1-8532-d877910cbff2",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "e00a7b7f-50e3-4e56-b008-466c6aa8c846"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Disable Success?->Successful Disable",
              "targetStep": "/api/3/workflow_steps/7f224567-8952-4e88-8102-ce6ef083988e",
              "sourceStep": "/api/3/workflow_steps/c1d302ff-f42b-4a1c-a91c-39186b445b73",
              "label": "Success",
              "isExecuted": false,
              "group": null,
              "uuid": "692d24fe-6272-4cdc-9ed4-8aa9698af8cb"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Disable Success?->Disable Failed",
              "targetStep": "/api/3/workflow_steps/8864240c-568c-49ff-87db-bcb0dde3f3cd",
              "sourceStep": "/api/3/workflow_steps/c1d302ff-f42b-4a1c-a91c-39186b445b73",
              "label": "Failed",
              "isExecuted": false,
              "group": null,
              "uuid": "f00cfc55-c773-42f0-9f34-e27bd8475a56"
            },
            {
              "@type": "WorkflowRoute",
              "name": "f46b0e49-bb2d-45a4-bc6c-c3d3410729d6",
              "targetStep": "/api/3/workflow_steps/19fc3a9a-7c58-4d98-b2ce-8f872de4920a",
              "sourceStep": "/api/3/workflow_steps/7f224567-8952-4e88-8102-ce6ef083988e",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "aef5a8e3-e6d6-4521-b81d-48491f534c67"
            },
            {
              "@type": "WorkflowRoute",
              "name": "68f6edaf-2064-4463-b4ec-48b627a0cfc1",
              "targetStep": "/api/3/workflow_steps/19fc3a9a-7c58-4d98-b2ce-8f872de4920a",
              "sourceStep": "/api/3/workflow_steps/8864240c-568c-49ff-87db-bcb0dde3f3cd",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "df6dc0d5-f717-4f9f-8411-a67c50edd4d8"
            },
            {
              "@type": "WorkflowRoute",
              "name": "c22bf2ce-fe2f-47cf-93f6-36deebd9cd10",
              "targetStep": "/api/3/workflow_steps/5452c7cc-8163-4b14-b410-cdd476dbd602",
              "sourceStep": "/api/3/workflow_steps/81b4e282-7c8d-4cf6-ad84-197ee2f822db",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "f57788d6-9827-4e6a-8939-7461a8ab4f13"
            }
          ],
          "isActive": false,
          "groups": [],
          "tag": null,
          "uuid": "d6ecca99-fd53-4006-85ad-04f5e0c4dfc8",
          "triggerStep": "/api/3/workflow_steps/30317ae2-d53d-4ac4-8543-0cd7c5a07655",
          "singleRecordExecution": false,
          "priority": "/api/3/picklists/2b563c61-ae2c-41c0-a85a-c9709585e3f2",
          "debug": true,
          "remoteExecutableFlag": false,
          "@type": "Workflow",
          "name": "AD Compromised User - Reset and Optionally Disable Password",
          "importedBy": [],
          "triggerLimit": null,
          "aliasName": null
        },
        {
          "description": "Overview\nPlaybook asks the operator to approve the password reset for a suspected compromised user account.\n\nConfiguration\nConfirm that the correct connector configuration is used for each connector step:\nStep: Reset Password – Active Director Connector. Requires LDAPS, LDAP is not supported. Select the Target that has connectivity to the Active Directory Server.\nStep: Comment Incident- Using the FortiSIEM Connector define the Target \"supervisor-agent\"",
          "synchronous": false,
          "isPrivate": false,
          "parameters": null,
          "recordTags": [
            "User Account Change"
          ],
          "steps": [
            {
              "arguments": {
                "output": "SOC Admin {{ vars.steps[\"Ask Operator For Permission\"].username }}, declined to reset a user password."
              },
              "description": null,
              "top": "633",
              "left": "1932",
              "name": "No Change",
              "status": null,
              "uuid": "0398e3bf-2ea5-412e-ac36-14a8591cef32",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "name": "Active Directory",
                "config": "",
                "params": {
                  "new_password": "{{ vars.new_password }}",
                  "search_attr_name": "SamAccount Name",
                  "search_attr_value": "{{ vars.user_change }}"
                },
                "version": "2.4.0",
                "connector": "activedirectory",
                "operation": "reset_password",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "974",
              "left": "2320",
              "name": "Reset Password",
              "status": null,
              "uuid": "224082b4-a2a3-4be5-9222-0f880a381d5c",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "user_list": "{%- set raw_users = [vars.user, vars.targetUser] -%}{%- set restricted = vars.restricted_users -%}{%- set user_list = raw_users | reject('in', restricted) | list -%}{{ user_list }}"
              },
              "description": null,
              "top": "392",
              "left": "1452",
              "name": "Make User List",
              "status": null,
              "uuid": "a0bcb82b-e21b-4128-a537-47ddddf06900",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "conditions": [
                  {
                    "option": "Random",
                    "step_iri": "/api/3/workflow_steps/7446177d-1d70-4b3e-bdaa-343d963f966e",
                    "condition": "{{vars.steps[\"Ask Operator For Permission\"].input.generateRandomPassword == true}}",
                    "step_name": "Generate Random Password"
                  },
                  {
                    "option": "Manually Set",
                    "step_iri": "/api/3/workflow_steps/424ffb6f-c7f2-417d-9e8b-5dd4acb109bc",
                    "condition": "{{vars.steps[\"Ask Operator For Permission\"].input.manualPassword}}",
                    "step_name": "what"
                  },
                  {
                    "option": "No Reset Method",
                    "default": true,
                    "step_iri": "/api/3/workflow_steps/894cf0f4-2938-4c3e-bd41-d4ce71197e05",
                    "step_name": "Set No Selection"
                  }
                ]
              },
              "description": null,
              "top": "596",
              "left": "2400",
              "name": "Reset Password Method",
              "status": null,
              "uuid": "648a899a-3414-427d-a10f-df09200cbd43",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/12254cf5-5db7-4b1a-8cb1-3af081924b28",
              "group": null
            },
            {
              "arguments": {
                "user_change": "{{ vars.steps[\"Ask Operator For Permission\"].input.selectUser }}",
                "new_password": "{{ vars.steps[\"Ask Operator For Permission\"].input.manualPassword }}"
              },
              "description": null,
              "top": "782",
              "left": "2640",
              "name": "Manual",
              "status": null,
              "uuid": "424ffb6f-c7f2-417d-9e8b-5dd4acb109bc",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "__triggerLimit": true,
                "step_variables": {
                  "input": {
                    "params": []
                  }
                },
                "triggerOnSource": true,
                "triggerOnReplicate": false
              },
              "description": null,
              "top": "30",
              "left": "1448",
              "name": "Start",
              "status": null,
              "uuid": "caaad4cd-23cf-485e-840f-128e0a598cc8",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/b348f017-9a94-471f-87f8-ce88b6a7ad62",
              "group": null
            },
            {
              "arguments": {
                "user": "{{ vars.input.records[0].targetDict.user }}",
                "targetUser": "{{ vars.input.records[0].targetDict.targetUser }}",
                "incident_id": "{{ vars.input.records[0].incidentId }}",
                "restricted_users": "[ \"administrator\", \"root\" ]"
              },
              "description": null,
              "top": "196",
              "left": "1132",
              "name": "Configuration",
              "status": null,
              "uuid": "099a8246-f41c-427e-9d1d-24780da4478e",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "id": "{{ vars.incident_id }}",
                  "comment_text": "xxx"
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "incident_comment",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "974",
              "left": "1542",
              "name": "Add Comment To Incident",
              "status": null,
              "uuid": "eb6c6bf6-8ad3-4cae-82a6-2ec1e57029af",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "user_change": "{{ vars.steps[\"Ask Operator For Permission\"].input.selectUser }}",
                "new_password": "{%- set raw = (uuid() ~ uuid()).replace(\"-\", \"\") | list -%}\n{%- set special_chars = \"!@#$%^&*?\" | list -%}\n{%- set digits_all = \"0123456789\" | list -%}\n{%- set uppercase = [] -%}\n{%- set lowercase = [] -%}\n{%- set digits = [] -%}\n\n{# Collect characters manually #}\n{%- for c in raw -%}\n  {%- if c in ['A','B','C','D','E','F'] and uppercase|length < vars.upper_count -%}\n    {%- set _ = uppercase.append(c) -%}\n  {%- elif c in ['a','b','c','d','e','f'] and lowercase|length < vars.lower_count -%}\n    {%- set _ = lowercase.append(c) -%}\n  {%- elif c in digits_all and digits|length < vars.digit_count -%}\n    {%- set _ = digits.append(c) -%}\n  {%- endif -%}\n  {%- if uppercase|length == vars.upper_count and lowercase|length == vars.lower_count and digits|length == vars.digit_count -%}\n    {%- break -%}\n  {%- endif -%}\n{%- endfor -%}\n\n{# Pad if any character class is short #}\n{%- if uppercase|length < vars.upper_count -%}\n  {%- set _ = uppercase.extend(['A'] * (vars.upper_count - uppercase|length)) -%}\n{%- endif -%}\n{%- if lowercase|length < vars.lower_count -%}\n  {%- set _ = lowercase.extend(['a'] * (vars.lower_count - lowercase|length)) -%}\n{%- endif -%}\n{%- if digits|length < vars.digit_count -%}\n  {%- set _ = digits.extend(['0'] * (vars.digit_count - digits|length)) -%}\n{%- endif -%}\n\n{# Pick 2 random specials #}\n{%- set specials = (special_chars | shuffle)[:vars.special_count] -%}\n\n{# Combine and shuffle all characters #}\n{%- set password_chars = (uppercase + lowercase + digits + specials) | shuffle -%}\n{{- password_chars | join('') -}}"
              },
              "description": null,
              "top": "779",
              "left": "2320",
              "name": "Generate Random Password",
              "status": null,
              "uuid": "7446177d-1d70-4b3e-bdaa-343d963f966e",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "type": "InputBased",
                "input": {
                  "schema": {
                    "title": "Reset User Password",
                    "description": "<p>Select the User from below, and either enter a new password or select the random generation option.</p>",
                    "inputVariables": [
                      {
                        "name": "selectUser",
                        "type": "select",
                        "label": "Select User",
                        "options": "{{ vars.user_list }}",
                        "tooltip": "",
                        "formType": "select",
                        "required": false,
                        "isMultiple": false,
                        "defaultValue": null,
                        "useRecordFieldDefault": false
                      },
                      {
                        "name": "manualPassword",
                        "type": "string",
                        "label": "Manual Password",
                        "options": [],
                        "tooltip": "Enter a new password here",
                        "formType": "textarea",
                        "required": false,
                        "isMultiple": false,
                        "defaultValue": null,
                        "useRecordFieldDefault": false
                      },
                      {
                        "name": "generateRandomPassword",
                        "type": "boolean",
                        "label": "Generate Random Password",
                        "options": [],
                        "tooltip": "Select to Generate a Random Password",
                        "formType": "checkbox",
                        "required": false,
                        "isMultiple": false,
                        "defaultValue": "{{ False }}",
                        "useRecordFieldDefault": false
                      }
                    ]
                  }
                },
                "is_approval": false,
                "owner_detail": {
                  "isAssigned": false,
                  "assignedToField": null,
                  "assignedToPerson": []
                },
                "response_mapping": {
                  "options": [
                    {
                      "option": "OK",
                      "primary": true,
                      "step_iri": "api/3/workflow_steps/648a899a-3414-427d-a10f-df09200cbd43",
                      "step_uuid": "/api/3/workflow_steps/648a899a-3414-427d-a10f-df09200cbd43"
                    },
                    {
                      "option": "Exit",
                      "primary": false,
                      "step_iri": "api/3/workflow_steps/0398e3bf-2ea5-412e-ac36-14a8591cef32",
                      "step_uuid": "/api/3/workflow_steps/0398e3bf-2ea5-412e-ac36-14a8591cef32"
                    }
                  ],
                  "connecteStepsLength": 0,
                  "customSuccessMessage": "Awaiting Playbook resumed successfully"
                },
                "email_notification": {
                  "enabled": false,
                  "smtpParameters": {}
                },
                "inline_channel_list": [],
                "external_channel_list": [],
                "unauthenticated_input": false
              },
              "description": null,
              "top": "459",
              "left": "2140",
              "name": "Ask Operator For Permission",
              "status": null,
              "uuid": "a2c621bb-6d5d-42c5-b2d4-1b2771cbcb53",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/fc04082a-d7dc-4299-96fb-6837b1baa0fe",
              "group": null
            },
            {
              "arguments": {
                "output": "SOC Operator {{ vars.steps[\"Ask Operator For Permission\"].username }} chose to reset the user : {{ vars.user_change }} password to {{ vars.new_password }}"
              },
              "description": null,
              "top": "1182",
              "left": "1541",
              "name": "Final Output",
              "status": null,
              "uuid": "824ecd68-a640-4f1b-8f56-2d9c3f006a85",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "conditions": [
                  {
                    "option": "Success",
                    "step_iri": "/api/3/workflow_steps/eb6c6bf6-8ad3-4cae-82a6-2ec1e57029af",
                    "condition": "{{vars.steps[\"Reset Password\"].data.type == \"modifyResponse\" and\nvars.steps[\"Reset Password\"].data.description == \"success\"}}",
                    "step_name": "Add Comment To Incident"
                  },
                  {
                    "option": "Unsuccessful",
                    "default": true,
                    "step_iri": "/api/3/workflow_steps/cf257eee-0fe9-4f82-8154-e142a80d3a16",
                    "step_name": "Unsuccessful Output"
                  }
                ]
              },
              "description": null,
              "top": "954",
              "left": "2026",
              "name": "Reset Success?",
              "status": null,
              "uuid": "74ea882f-fe53-470d-8074-7b3fae3034ed",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/12254cf5-5db7-4b1a-8cb1-3af081924b28",
              "group": null
            },
            {
              "arguments": {
                "output": "Password Reset for User: {{ vars.user_change }} failed.\n\nError if reported was : {{ vars.steps[\"Reset Password\"].data.message }}"
              },
              "description": null,
              "top": "1179",
              "left": "1947",
              "name": "Unsuccessful Output",
              "status": null,
              "uuid": "cf257eee-0fe9-4f82-8154-e142a80d3a16",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "output": "SOC Operator {{ vars.steps[\"Ask Operator For Permission\"].username }} did not provide a password reset method."
              },
              "description": null,
              "top": "733",
              "left": "1930",
              "name": "Set No Selection",
              "status": null,
              "uuid": "894cf0f4-2938-4c3e-bd41-d4ce71197e05",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "digit_count": "2",
                "lower_count": "2",
                "upper_count": "2",
                "special_count": "2"
              },
              "description": null,
              "top": "192",
              "left": "1448",
              "name": "Set Random Password Requirements",
              "status": null,
              "uuid": "79414061-3176-4243-aee3-485646e77588",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "conditions": [
                  {
                    "option": "No Users",
                    "step_iri": "/api/3/workflow_steps/17ebcb56-519b-4fa0-8092-472251829f6e",
                    "condition": "{{vars.user_list is not defined or vars.user_list|length == 0}}",
                    "step_name": "No Users Found"
                  },
                  {
                    "option": "Users Found",
                    "default": true,
                    "step_iri": "/api/3/workflow_steps/a2c621bb-6d5d-42c5-b2d4-1b2771cbcb53",
                    "step_name": "Ask Operator For Permission"
                  }
                ]
              },
              "description": null,
              "top": "372",
              "left": "1840",
              "name": "Users Present?",
              "status": null,
              "uuid": "23ec2fe2-3cb0-4e9a-a0b0-0898b94e8a13",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/12254cf5-5db7-4b1a-8cb1-3af081924b28",
              "group": null
            },
            {
              "arguments": {
                "output": "No Users found in Incident {{ vars.steps.Configuration.incident_id }}"
              },
              "description": null,
              "top": "324",
              "left": "2140",
              "name": "No Users Found",
              "status": null,
              "uuid": "17ebcb56-519b-4fa0-8092-472251829f6e",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            }
          ],
          "routes": [
            {
              "@type": "WorkflowRoute",
              "name": "3a7e078e-670f-425b-8784-1cf1635d891b",
              "targetStep": "/api/3/workflow_steps/7446177d-1d70-4b3e-bdaa-343d963f966e",
              "sourceStep": "/api/3/workflow_steps/648a899a-3414-427d-a10f-df09200cbd43",
              "label": "Random",
              "isExecuted": false,
              "group": null,
              "uuid": "3403bede-8403-4ead-879d-a239c5be2331"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Method->what",
              "targetStep": "/api/3/workflow_steps/424ffb6f-c7f2-417d-9e8b-5dd4acb109bc",
              "sourceStep": "/api/3/workflow_steps/648a899a-3414-427d-a10f-df09200cbd43",
              "label": "Manually Set",
              "isExecuted": false,
              "group": null,
              "uuid": "96132d55-5d78-4411-a967-424ef09e6503"
            },
            {
              "@type": "WorkflowRoute",
              "name": "ccb9d2af-32fd-4bb1-a401-34ec1fdf75cd",
              "targetStep": "/api/3/workflow_steps/648a899a-3414-427d-a10f-df09200cbd43",
              "sourceStep": "/api/3/workflow_steps/a2c621bb-6d5d-42c5-b2d4-1b2771cbcb53",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "190e58ab-171d-485c-b704-01003b89d017"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Capture Variables->Make User List",
              "targetStep": "/api/3/workflow_steps/a0bcb82b-e21b-4128-a537-47ddddf06900",
              "sourceStep": "/api/3/workflow_steps/099a8246-f41c-427e-9d1d-24780da4478e",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "800a1a55-1ac4-439a-943c-b770fe108d29"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Ask Operator For Permission->No Change",
              "targetStep": "/api/3/workflow_steps/0398e3bf-2ea5-412e-ac36-14a8591cef32",
              "sourceStep": "/api/3/workflow_steps/a2c621bb-6d5d-42c5-b2d4-1b2771cbcb53",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "ddf1b068-ed2b-4858-9248-0fa91f5f62c4"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Add Comment To Incident->Final Output",
              "targetStep": "/api/3/workflow_steps/824ecd68-a640-4f1b-8f56-2d9c3f006a85",
              "sourceStep": "/api/3/workflow_steps/eb6c6bf6-8ad3-4cae-82a6-2ec1e57029af",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "45b6179c-cbed-442d-b940-a2b5b822d73d"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Reset Password->Rest Success?",
              "targetStep": "/api/3/workflow_steps/74ea882f-fe53-470d-8074-7b3fae3034ed",
              "sourceStep": "/api/3/workflow_steps/224082b4-a2a3-4be5-9222-0f880a381d5c",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "3abb227e-fb0d-46d1-a248-bdbe02499b8c"
            },
            {
              "@type": "WorkflowRoute",
              "name": "f740e089-600f-41fd-868a-23774cd2ecac",
              "targetStep": "/api/3/workflow_steps/eb6c6bf6-8ad3-4cae-82a6-2ec1e57029af",
              "sourceStep": "/api/3/workflow_steps/74ea882f-fe53-470d-8074-7b3fae3034ed",
              "label": "Success",
              "isExecuted": false,
              "group": null,
              "uuid": "cf97cc7b-0049-4f05-92ca-8f1fea9efcc4"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Rest Success?->Unsuccessful Output",
              "targetStep": "/api/3/workflow_steps/cf257eee-0fe9-4f82-8154-e142a80d3a16",
              "sourceStep": "/api/3/workflow_steps/74ea882f-fe53-470d-8074-7b3fae3034ed",
              "label": "Unsuccessful",
              "isExecuted": false,
              "group": null,
              "uuid": "90518060-fdf9-423f-ad2a-eedc9cb45bd1"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Reset Password Method->Set No Selection",
              "targetStep": "/api/3/workflow_steps/894cf0f4-2938-4c3e-bd41-d4ce71197e05",
              "sourceStep": "/api/3/workflow_steps/648a899a-3414-427d-a10f-df09200cbd43",
              "label": "No Reset Method",
              "isExecuted": false,
              "group": null,
              "uuid": "40919024-9bcd-4f30-a31d-62c666d8d959"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Start->Set Random Password Requirements",
              "targetStep": "/api/3/workflow_steps/79414061-3176-4243-aee3-485646e77588",
              "sourceStep": "/api/3/workflow_steps/caaad4cd-23cf-485e-840f-128e0a598cc8",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "15311115-a3e5-4307-af11-22da61a55b5d"
            },
            {
              "@type": "WorkflowRoute",
              "name": "e0d013a5-cb6f-44d8-83ef-71fffcd2df59",
              "targetStep": "/api/3/workflow_steps/099a8246-f41c-427e-9d1d-24780da4478e",
              "sourceStep": "/api/3/workflow_steps/79414061-3176-4243-aee3-485646e77588",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "59ed8edc-16de-40e3-a1b2-0b5f44afb302"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Make User List->Users Present?",
              "targetStep": "/api/3/workflow_steps/23ec2fe2-3cb0-4e9a-a0b0-0898b94e8a13",
              "sourceStep": "/api/3/workflow_steps/a0bcb82b-e21b-4128-a537-47ddddf06900",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "1015cbe7-fee8-48fb-b425-043938146832"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Users Present?->No Users Found",
              "targetStep": "/api/3/workflow_steps/17ebcb56-519b-4fa0-8092-472251829f6e",
              "sourceStep": "/api/3/workflow_steps/23ec2fe2-3cb0-4e9a-a0b0-0898b94e8a13",
              "label": "No Users",
              "isExecuted": false,
              "group": null,
              "uuid": "a06ce308-0304-4c17-9739-e242d7f21db6"
            },
            {
              "@type": "WorkflowRoute",
              "name": "73915bb9-5885-4640-9e36-33d6af7462c1",
              "targetStep": "/api/3/workflow_steps/a2c621bb-6d5d-42c5-b2d4-1b2771cbcb53",
              "sourceStep": "/api/3/workflow_steps/23ec2fe2-3cb0-4e9a-a0b0-0898b94e8a13",
              "label": "Users Found",
              "isExecuted": false,
              "group": null,
              "uuid": "6dbe8039-86e8-4ee8-a86e-504911b4385e"
            },
            {
              "@type": "WorkflowRoute",
              "name": "7effecf3-4cb5-4d1f-a2fb-111de9401a76",
              "targetStep": "/api/3/workflow_steps/224082b4-a2a3-4be5-9222-0f880a381d5c",
              "sourceStep": "/api/3/workflow_steps/7446177d-1d70-4b3e-bdaa-343d963f966e",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "f1e97115-7edb-4e82-bf89-d4e44df29117"
            },
            {
              "@type": "WorkflowRoute",
              "name": "11fc9519-48b2-483f-a19b-58961a05fa24",
              "targetStep": "/api/3/workflow_steps/224082b4-a2a3-4be5-9222-0f880a381d5c",
              "sourceStep": "/api/3/workflow_steps/424ffb6f-c7f2-417d-9e8b-5dd4acb109bc",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "1cb94466-aa95-4e09-b39d-f307d6516736"
            }
          ],
          "isActive": false,
          "groups": [],
          "tag": null,
          "uuid": "2fb1566f-d93d-4a14-bdee-dd16c248796e",
          "triggerStep": "/api/3/workflow_steps/caaad4cd-23cf-485e-840f-128e0a598cc8",
          "singleRecordExecution": false,
          "priority": "/api/3/picklists/2b563c61-ae2c-41c0-a85a-c9709585e3f2",
          "debug": true,
          "remoteExecutableFlag": false,
          "@type": "Workflow",
          "name": "AD Compromised User - Reset Password",
          "importedBy": [],
          "triggerLimit": null,
          "aliasName": null
        },
        {
          "description": "This playbook will block a malicious IP on a CheckPoint Firewall-1. The playbook will ask the user to confirm if they need to block the IP, if confirmed the Incident will also be set to a True Positive, else will be set to a False Positive.\n\nConfiguration\n\nConfirm that the correct connector configuration is used for each connector step:\nSteps: Add Summary, Not Blocked, Add Blocked Comment, Clear Incident, Close TP - FortiSIEM connector and using the Target \"supervisor-agent\"\nStep: Block IP – Using the CheckPoint Connector define the Target",
          "synchronous": false,
          "isPrivate": false,
          "parameters": [],
          "recordTags": [
            "Brute Force Logon",
            "Network Discovery",
            "Traffic Anomaly",
            "ioc match",
            "Suspicious Collection Activity",
            "Suspicious Logon",
            "Initial Access",
            "Host Discovery",
            "Data Exfiltration",
            "Botnet Detected"
          ],
          "steps": [
            {
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "id": "{{ vars.incident_id }}",
                  "comment_text": "{{ vars.asset }} has been contained, need to investigate suspicious activity to and from this device in the past X weeks."
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "clear_incident",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "975",
              "left": "760",
              "name": "Clear Incident",
              "status": null,
              "uuid": "112c27f6-8dcb-4b46-a3d0-99c2660e9dc8",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "asset": "{{ vars.input.records[0].srcDict.srcIpAddr }}",
                "rptDevName": "{{ vars.input.records[0].incidentRptDevName }}",
                "incident_id": "{{ vars.input.records[0].incidentId }}",
                "incident_data": "{{ vars.input.records[0] }}"
              },
              "description": null,
              "top": "165",
              "left": "530",
              "name": "Configuration",
              "status": null,
              "uuid": "01ae0e25-d8ec-46f0-bf17-c1e279e62d17",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "id": "{{ vars.incident_id }}",
                  "comment_text": "{{ vars.comment }}"
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "incident_comment",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "435",
              "left": "530",
              "name": "Add Summary",
              "status": null,
              "uuid": "c506e699-45b6-474d-a0c7-9b72075f628c",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "name": "Check Point Firewall",
                "config": "",
                "params": {
                  "ip_address_list": "{{ vars.asset }}"
                },
                "version": "2.1.0",
                "connector": "checkpoint-firewall",
                "operation": "block_ip",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "705",
              "left": "760",
              "name": "Block IP",
              "status": null,
              "uuid": "718b1e99-33ba-40c3-8e59-4115ae5004a4",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "type": "InputBased",
                "input": {
                  "schema": {
                    "title": "Confirm Quarantine ",
                    "description": "<p>Quarantine Request for IncidentID: {{ vars.incident_id }}</p>\n<p>Title:{{ vars.incident_data.incidentTitle }}</p>\n<p>Reason: {{ vars.incident_data.attackTechniqueId }} - {{ (vars.incident_data.attackTechnique|from_json)[0].name if vars.incident_data.attackTechnique }}</p>\n<p>Please review and approve quarantine of {{ vars.asset }} on {{ vars.rptDevName }} Firewall.</p>",
                    "inputVariables": []
                  }
                },
                "is_approval": false,
                "owner_detail": {
                  "isAssigned": false,
                  "assignedToField": null,
                  "assignedToPerson": []
                },
                "response_mapping": {
                  "options": [
                    {
                      "option": "Approve",
                      "primary": false,
                      "step_iri": "api/3/workflow_steps/718b1e99-33ba-40c3-8e59-4115ae5004a4",
                      "step_uuid": "/api/3/workflow_steps/718b1e99-33ba-40c3-8e59-4115ae5004a4"
                    },
                    {
                      "option": "Cancel",
                      "primary": false,
                      "step_iri": "api/3/workflow_steps/9a0d5d75-d7eb-4473-80fc-7ee3bbf40fff",
                      "step_uuid": "/api/3/workflow_steps/9a0d5d75-d7eb-4473-80fc-7ee3bbf40fff"
                    }
                  ],
                  "connecteStepsLength": 0,
                  "customSuccessMessage": "Awaiting Playbook resumed successfully"
                },
                "email_notification": {
                  "enabled": false,
                  "smtpParameters": {}
                },
                "inline_channel_list": [],
                "external_channel_list": [],
                "unauthenticated_input": false
              },
              "description": null,
              "top": "570",
              "left": "530",
              "name": "Approve Task",
              "status": null,
              "uuid": "42166106-6b51-4b4c-8c9f-1390e8c968d4",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/fc04082a-d7dc-4299-96fb-6837b1baa0fe",
              "group": null
            },
            {
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "id": "{{ vars.incident_id }}",
                  "comment_text": "\n** Quarantine Compromised Source IP Approved **\n{{ vars.asset }} has been blocked with {{ vars.steps[\"Block IP\"].status }}"
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "incident_comment",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "840",
              "left": "760",
              "name": "Add Blocked Comment",
              "status": null,
              "uuid": "8a126f4f-19b3-4996-a366-6cd3154de8e7",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "@id": "/api/workflow/events/de983a69-9e4b-4151-aee2-f712436361ee/",
                "tag": null,
                "name": "When an incident is created",
                "poll": null,
                "type": [
                  "PUSH"
                ],
                "uuid": "de983a69-9e4b-4151-aee2-f712436361ee",
                "@type": "ApplicationEvent",
                "agentId": "421187_deploy_10067",
                "event_id": "fortinet-fortisiem.get_incidents_created",
                "schedule": null,
                "start_time": null,
                "description": "Run the playbook when a FortiSIEM incident is created",
                "sample_data": [
                  {
                    "count": 2,
                    "customer": "TCL",
                    "eventName": "Sudden Increase in User Login Volume",
                    "eventType": "PH_RULE_USER_MON_SUDDEN_LOGIN_VOLUME_CHANGE",
                    "incidentId": 3912,
                    "incidentSrc": {
                      "computer": ""
                    },
                    "incidentReso": 1,
                    "eventSeverity": 7,
                    "incidentRptIp": "10.10.10.10",
                    "incidentTitle": "Sudden logon volume increase for $computer to root on qa-sys1",
                    "incidentDetail": "",
                    "incidentStatus": 0,
                    "incidentTarget": {
                      "user": "root",
                      "destName": "qa-sys1"
                    },
                    "eventSeverityCat": "MEDIUM",
                    "incidentLastSeen": 1708888260000,
                    "incidentFirstSeen": 1708801860000,
                    "incidentStatusStr": "active",
                    "incidentRptDevName": "HOST-10.10.10.10",
                    "phIncidentCategory": 4,
                    "incidentClearedTime": 0,
                    "phSubIncidentCategory": "Behavioral Anomaly"
                  }
                ],
                "installed_by": "SOLUTION_PACK",
                "createUser_id": null,
                "modifyUser_id": null,
                "connector_icon": "data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAIAAAD8GO2jAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3hpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ4IDc5LjE2NDAzNiwgMjAxOS8wOC8xMy0wMTowNjo1NyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo1MDNhYTZiMy0zYzEzLTQ5YzEtODNiZi00MThjZWIxM2VhNTIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6OTU3MkQ4QjkzRUFFMTFFQUJCQjJCRDNGMkZEOEUzMEUiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6OTU3MkQ4QjgzRUFFMTFFQUJCQjJCRDNGMkZEOEUzMEUiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKE1hY2ludG9zaCkiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo0MjI1MGJmZi03MjQyLTRhNDItOTA3Ny1hYThiOTk5Yjk3YTIiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NTAzYWE2YjMtM2MxMy00OWMxLTgzYmYtNDE4Y2ViMTNlYTUyIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+SVYIEAAABGVJREFUeNpi/P//PwMtARMDjQHNLWDBFHrz9v2Va3eYmZkZGEgIvT9//qqpyEtLiaOJM6LFAdD01q7ZxoaaQoL8f//9w28oIwMjExPTv3//GBkZv3z9euTYhZL8eHk5KXw+uHnrgZiYcEyELxmh8f7DlwuXbqBZgB4HjEyMrKwsRJo4Z+E6C5vwjVv2QR3LwsLEzEQ4kuGBRjCIZs1dffLovi07DqFpJGABMGSB5Io1263tIleu3YEsdfX6nd37jj94+PTv33+9kxZZWxn1TuqtKkklLRUBYwxIrt+87+TRgw3ffsjLSlqY6b989Ta3pP3u3cfi4sLv338COjbQ36W/o5ScZPrvPyhkmmuzDfU1tTQUgSGwYcv+o8fPa2gobVo9+d2Hj2ysrJV1E+7df0xURP1HBUdPnO+aMB9NsHfyIlPbCCDj3fuPuqaBd+8//v79h65ZEFAxsrJZ89du2rYfTS9ROfnzpy92tiZg1zCIS4gAkxkHB7uOlsq1G/eoU1SIigrfvvMIyODkZLe3MRETEQKy7957/Pr1O6Abnz1//fHjZ4os8HSzPnT07PzFG4ChLyMlDkwFwEADeuLnz19xqdWm9pG+obnfv/9kZWEmx4Jfv37PmLMqIzl0yozlwdGFDx8/9w3NKSluMzXWaajO8vN2ePb05fMXb/7+/QtJfoRTETL4/edPWW2/rpZqcnxgQXbMgiUbN209kBgXALRm2oxlHq7WoYFuJw4sBRZcPDxcv37/IcECYKm3cs3OC5dvWpjpJccFAkXExYQTYvxfvXmfEh8kKy3uG5iVW9R2YOd8c1M90pJp94QFQEZj+3SgmeoGvsDCEiIFLDlScxo4+fTnLlwP5NY2T2VgUIpNqQIGDmnJ9D+4GrC1MtI3sQoP8fiP5JbXb95///z11Zt3QF5VaYqLt/PiOcvmL9lIWk6GAEc7sxNHVnCwsyHSAxPTzEl1eZnRVub6QC5Qakp/VfrPnzzcnCRYAKk9IGxk0yFATFQIiOBcdVWFA7sXwrnMTEzA4CJggYy0xIM1O4+fvMDNzQkMfMIZlYkJUkoDU/PFyzeT4gIIVJlAAFR38fItNjYWkqqzX79/qyrJWZobELZgiDdb3r17d+XKFUZmZg0xUcEPn/98+sGmJHnz1+8Xz55JSEj8+P799evXYuLifHx8d+7c5ubmUVJSun37FisLKxMzM1Cvrq6ujIwMPgtOnDg+YUK/lrFxrqg8DwMLo7Liz/lrpry69/bDe3Y2Nn0Dg8+fPsnJy58+dVpLWwuoftmypS+eP4+IjPry5fOF8xf09PQI+ICJiTkoKNjeyUny8s3ftx6wfvryj5UJ6PbI2NhjR4+oqarx8vGxsbGdPXPW1dXt+/fvVy5fYWfn+P7tm6amJgc7h7g4oYYXUA87Ozsw8TH8+P73xev/338xSQp9ZmLh5+P78uULUDGwxQdqZn35AgwlIPfz588fP34EZnIJSUlgJuDh4QE3CYdTKgIIMAAEe1lyT/xWdwAAAABJRU5ErkJggg==",
                "connector_name": "fortinet-fortisiem",
                "step_variables": {
                  "input": {
                    "params": {}
                  }
                },
                "connector_label": "Fortinet FortiSIEM",
                "exit_if_running": false,
                "batch_preference": 0,
                "connector_action": "get_incidents",
                "connector_mapping": {
                  "datetime": {
                    "to": "timeTo",
                    "from": "timeFrom"
                  },
                  "response": "{{data.data}}"
                },
                "connector_version": "5.3.0",
                "trigger_condition": {
                  "sort": [],
                  "limit": 30,
                  "logic": "AND",
                  "filters": [
                    {
                      "type": "",
                      "field": "incidentTitle",
                      "value": "batatas",
                      "operator": "eq",
                      "evaluation": false,
                      "originalValue": "batatas"
                    }
                  ]
                },
                "connector_action_inputs": {}
              },
              "description": null,
              "top": "30",
              "left": "530",
              "name": "When an incident is created",
              "status": null,
              "uuid": "35c5c76e-1c6b-40ae-99f9-e12950c5f9d4",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/b348f017-9a94-471f-87f8-ce88b6a7ad62",
              "group": null
            },
            {
              "arguments": {
                "comment": "{% if vars.input.records|length > 0 %}\n{# Access the first record #}\n{% set incident = vars.input.records[0] %}\n\n{# Format timestamps to readable dates using Arrow #}\n{% set first_seen = arrow.get(incident.incidentFirstSeen / 1000).to(\"UTC\").format(\"YYYY-MM-DD HH:mm:ss ZZ\") %}\n{% set last_seen = arrow.get(incident.incidentLastSeen / 1000).to(\"UTC\").format(\"YYYY-MM-DD HH:mm:ss ZZ\") %}\n\n# Security Incident Report\n\n## Summary\n**Incident ID:** {{ incident.incidentId }}  \n**Title:** {{ incident.incidentTitle }}  \n**Status:** {{ \"🔴 Active\" if incident.incidentStatus == 0 else \"🟢 Resolved\" }}  \n**Severity:** {{ incident.eventSeverityCat }} ({{ incident.eventSeverity }}/10)\n\n## Threat Details\n| Attribute | Value |\n|-----------|-------|\n| **Compromised Host** | `{{ vars.asset }}` |\n| **Attack Tactic** | {{ incident.attackTactic }} |\n| **Attack Technique** | {{ incident.attackTechniqueId }} - {{ (incident.attackTechnique|from_json)[0].name if incident.attackTechnique }} |\n\n## Timeline\n| Event | Timestamp |\n|-------|-----------|\n| **First Seen** | {{ first_seen }} |\n| **Last Seen** | {{ last_seen }} |\n{% if incident.incidentClearedTime > 0 %}| **Cleared** | {{ arrow.get(incident.incidentClearedTime / 1000).to(\"UTC\").format(\"YYYY-MM-DD HH:mm:ss ZZ\") }} |{% endif %}\n\n## Reporting Information\n| Field | Value |\n|-------|-------|\n| **Reporting Device** | {{ incident.incidentRptDevName }} ({{ incident.incidentRptIp }}) |\n| **Customer** | {{ incident.customer }}\n\n{% else %}\n## No Security Incidents Found\n\nNo security incidents were found in the provided data.\n{% endif %}"
              },
              "description": null,
              "top": "300",
              "left": "530",
              "name": "Comment String0",
              "status": null,
              "uuid": "cb76fd00-75b9-449e-90dc-2b6e7d367619",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "comments": "",
                  "severity": "",
                  "incidentId": "{{ vars.incident_id }}",
                  "resolution": "True Positive",
                  "actionStatus": "",
                  "incidentStatus": "Manually Cleared",
                  "externalTicketId": "",
                  "externalTicketType": "",
                  "externalTicketState": "",
                  "externalAssignedUser": ""
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "update_incident",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "1110",
              "left": "760",
              "name": "Close TP",
              "status": null,
              "uuid": "ab87584a-d25a-4794-8df8-888fc322f316",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "id": "{{ vars.incident_id }}",
                  "comment_text": "\n** Quarantine Compromised Source IP Canceled **\n\nSource IP {{ vars.asset }} has not been Quarantined, by {{ vars.serialized_request_attrs.username }}"
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "incident_comment",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "705",
              "left": "300",
              "name": "Not Blocked",
              "status": null,
              "uuid": "9a0d5d75-d7eb-4473-80fc-7ee3bbf40fff",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            }
          ],
          "routes": [
            {
              "@type": "WorkflowRoute",
              "name": "9372fbb3-5a42-4b74-a5f1-3f74b5ffdedb",
              "targetStep": "/api/3/workflow_steps/01ae0e25-d8ec-46f0-bf17-c1e279e62d17",
              "sourceStep": "/api/3/workflow_steps/35c5c76e-1c6b-40ae-99f9-e12950c5f9d4",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "18e4dbc8-74e8-4d36-a695-db6b76647fe1"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Configuration->Comment String0",
              "targetStep": "/api/3/workflow_steps/cb76fd00-75b9-449e-90dc-2b6e7d367619",
              "sourceStep": "/api/3/workflow_steps/01ae0e25-d8ec-46f0-bf17-c1e279e62d17",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "655a0cf9-05e0-4b27-8292-0209f8305067"
            },
            {
              "@type": "WorkflowRoute",
              "name": "8584565c-d1bb-46ca-a293-c767f3a4e6d7",
              "targetStep": "/api/3/workflow_steps/c506e699-45b6-474d-a0c7-9b72075f628c",
              "sourceStep": "/api/3/workflow_steps/cb76fd00-75b9-449e-90dc-2b6e7d367619",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "81349fb0-f3b3-402a-92e2-bd58582140c3"
            },
            {
              "@type": "WorkflowRoute",
              "name": "aaea4c07-b461-4d9e-9ff3-cf166d3f153e",
              "targetStep": "/api/3/workflow_steps/42166106-6b51-4b4c-8c9f-1390e8c968d4",
              "sourceStep": "/api/3/workflow_steps/c506e699-45b6-474d-a0c7-9b72075f628c",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "89137457-ac77-444f-acce-af425dbca839"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Approve Task->Not Blocked",
              "targetStep": "/api/3/workflow_steps/9a0d5d75-d7eb-4473-80fc-7ee3bbf40fff",
              "sourceStep": "/api/3/workflow_steps/42166106-6b51-4b4c-8c9f-1390e8c968d4",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "e11d3fa3-212b-4b07-b36f-acdbe5d9bd05"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Add Blocked Comment->Clear Incident",
              "targetStep": "/api/3/workflow_steps/112c27f6-8dcb-4b46-a3d0-99c2660e9dc8",
              "sourceStep": "/api/3/workflow_steps/8a126f4f-19b3-4996-a366-6cd3154de8e7",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "3d542895-e648-4420-9d91-ceaf54adb95b"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Clear Incident->Close TP",
              "targetStep": "/api/3/workflow_steps/ab87584a-d25a-4794-8df8-888fc322f316",
              "sourceStep": "/api/3/workflow_steps/112c27f6-8dcb-4b46-a3d0-99c2660e9dc8",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "22471aa8-2317-411e-9e2d-609ba1347261"
            },
            {
              "@type": "WorkflowRoute",
              "name": "ea92fbbb-57d3-435a-b63d-517ac878fd44",
              "targetStep": "/api/3/workflow_steps/8a126f4f-19b3-4996-a366-6cd3154de8e7",
              "sourceStep": "/api/3/workflow_steps/718b1e99-33ba-40c3-8e59-4115ae5004a4",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "3a394674-7c62-4a56-b1c4-06b73792a148"
            },
            {
              "@type": "WorkflowRoute",
              "name": "d9ed1635-2ad9-457c-a4ff-90fb2faf3310",
              "targetStep": "/api/3/workflow_steps/718b1e99-33ba-40c3-8e59-4115ae5004a4",
              "sourceStep": "/api/3/workflow_steps/42166106-6b51-4b4c-8c9f-1390e8c968d4",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "1f7877ab-c7c8-4e30-b58f-6c4ab4895709"
            }
          ],
          "isActive": false,
          "groups": [],
          "tag": null,
          "uuid": "d28c6e5d-e440-400f-8840-6389f9b9e3fe",
          "triggerStep": "/api/3/workflow_steps/35c5c76e-1c6b-40ae-99f9-e12950c5f9d4",
          "singleRecordExecution": false,
          "priority": "/api/3/picklists/2b563c61-ae2c-41c0-a85a-c9709585e3f2",
          "debug": false,
          "remoteExecutableFlag": false,
          "@type": "Workflow",
          "name": "Block Source IP in CheckPoint Firewall-1",
          "importedBy": [],
          "triggerLimit": null,
          "aliasName": null
        },
        {
          "description": "This playbook will block a malicious IP on a Cisco ASA. The playbook will ask the user to confirm if they need to block the IP, if confirmed the Incident will also be set to a True Positive, else will be set to a False Positive.\n\nConfiguration\n\nConfirm that the correct connector configuration is used for each connector step:\nStep: Configuration - step is using \"FAS_BlockIPs\" group name to add the Malicious IP into it, please make sure the group exists, or setup your own group name and update the \"Configuration\" step with proper group name.\nSteps: Add Summary, Not Blocked, Add Blocked Comment, Clear Incident, Close TP - FortiSIEM connector and using the Target \"supervisor-agent\"\nStep: Block IP – Using the Cisco ASA Connector define the Target",
          "synchronous": false,
          "isPrivate": false,
          "parameters": [],
          "recordTags": [
            "Brute Force Logon",
            "Network Discovery",
            "Traffic Anomaly",
            "ioc match",
            "Suspicious Collection Activity",
            "Suspicious Logon",
            "Initial Access",
            "Host Discovery",
            "Data Exfiltration",
            "Botnet Detected"
          ],
          "steps": [
            {
              "arguments": {
                "@id": "/api/workflow/events/de983a69-9e4b-4151-aee2-f712436361ee/",
                "tag": null,
                "name": "When an incident is created",
                "poll": null,
                "type": [
                  "PUSH"
                ],
                "uuid": "de983a69-9e4b-4151-aee2-f712436361ee",
                "@type": "ApplicationEvent",
                "agentId": "421187_deploy_10067",
                "event_id": "fortinet-fortisiem.get_incidents_created",
                "schedule": null,
                "start_time": null,
                "description": "Run the playbook when a FortiSIEM incident is created",
                "sample_data": [
                  {
                    "count": 2,
                    "customer": "TCL",
                    "eventName": "Sudden Increase in User Login Volume",
                    "eventType": "PH_RULE_USER_MON_SUDDEN_LOGIN_VOLUME_CHANGE",
                    "incidentId": 3912,
                    "incidentSrc": {
                      "computer": ""
                    },
                    "incidentReso": 1,
                    "eventSeverity": 7,
                    "incidentRptIp": "10.10.10.10",
                    "incidentTitle": "Sudden logon volume increase for $computer to root on qa-sys1",
                    "incidentDetail": "",
                    "incidentStatus": 0,
                    "incidentTarget": {
                      "user": "root",
                      "destName": "qa-sys1"
                    },
                    "eventSeverityCat": "MEDIUM",
                    "incidentLastSeen": 1708888260000,
                    "incidentFirstSeen": 1708801860000,
                    "incidentStatusStr": "active",
                    "incidentRptDevName": "HOST-10.10.10.10",
                    "phIncidentCategory": 4,
                    "incidentClearedTime": 0,
                    "phSubIncidentCategory": "Behavioral Anomaly"
                  }
                ],
                "installed_by": "SOLUTION_PACK",
                "createUser_id": null,
                "modifyUser_id": null,
                "connector_icon": "data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAIAAAD8GO2jAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3hpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ4IDc5LjE2NDAzNiwgMjAxOS8wOC8xMy0wMTowNjo1NyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo1MDNhYTZiMy0zYzEzLTQ5YzEtODNiZi00MThjZWIxM2VhNTIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6OTU3MkQ4QjkzRUFFMTFFQUJCQjJCRDNGMkZEOEUzMEUiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6OTU3MkQ4QjgzRUFFMTFFQUJCQjJCRDNGMkZEOEUzMEUiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKE1hY2ludG9zaCkiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo0MjI1MGJmZi03MjQyLTRhNDItOTA3Ny1hYThiOTk5Yjk3YTIiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NTAzYWE2YjMtM2MxMy00OWMxLTgzYmYtNDE4Y2ViMTNlYTUyIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+SVYIEAAABGVJREFUeNpi/P//PwMtARMDjQHNLWDBFHrz9v2Va3eYmZkZGEgIvT9//qqpyEtLiaOJM6LFAdD01q7ZxoaaQoL8f//9w28oIwMjExPTv3//GBkZv3z9euTYhZL8eHk5KXw+uHnrgZiYcEyELxmh8f7DlwuXbqBZgB4HjEyMrKwsRJo4Z+E6C5vwjVv2QR3LwsLEzEQ4kuGBRjCIZs1dffLovi07DqFpJGABMGSB5Io1263tIleu3YEsdfX6nd37jj94+PTv33+9kxZZWxn1TuqtKkklLRUBYwxIrt+87+TRgw3ffsjLSlqY6b989Ta3pP3u3cfi4sLv338COjbQ36W/o5ScZPrvPyhkmmuzDfU1tTQUgSGwYcv+o8fPa2gobVo9+d2Hj2ysrJV1E+7df0xURP1HBUdPnO+aMB9NsHfyIlPbCCDj3fuPuqaBd+8//v79h65ZEFAxsrJZ89du2rYfTS9ROfnzpy92tiZg1zCIS4gAkxkHB7uOlsq1G/eoU1SIigrfvvMIyODkZLe3MRETEQKy7957/Pr1O6Abnz1//fHjZ4os8HSzPnT07PzFG4ChLyMlDkwFwEADeuLnz19xqdWm9pG+obnfv/9kZWEmx4Jfv37PmLMqIzl0yozlwdGFDx8/9w3NKSluMzXWaajO8vN2ePb05fMXb/7+/QtJfoRTETL4/edPWW2/rpZqcnxgQXbMgiUbN209kBgXALRm2oxlHq7WoYFuJw4sBRZcPDxcv37/IcECYKm3cs3OC5dvWpjpJccFAkXExYQTYvxfvXmfEh8kKy3uG5iVW9R2YOd8c1M90pJp94QFQEZj+3SgmeoGvsDCEiIFLDlScxo4+fTnLlwP5NY2T2VgUIpNqQIGDmnJ9D+4GrC1MtI3sQoP8fiP5JbXb95///z11Zt3QF5VaYqLt/PiOcvmL9lIWk6GAEc7sxNHVnCwsyHSAxPTzEl1eZnRVub6QC5Qakp/VfrPnzzcnCRYAKk9IGxk0yFATFQIiOBcdVWFA7sXwrnMTEzA4CJggYy0xIM1O4+fvMDNzQkMfMIZlYkJUkoDU/PFyzeT4gIIVJlAAFR38fItNjYWkqqzX79/qyrJWZobELZgiDdb3r17d+XKFUZmZg0xUcEPn/98+sGmJHnz1+8Xz55JSEj8+P799evXYuLifHx8d+7c5ubmUVJSun37FisLKxMzM1Cvrq6ujIwMPgtOnDg+YUK/lrFxrqg8DwMLo7Liz/lrpry69/bDe3Y2Nn0Dg8+fPsnJy58+dVpLWwuoftmypS+eP4+IjPry5fOF8xf09PQI+ICJiTkoKNjeyUny8s3ftx6wfvryj5UJ6PbI2NhjR4+oqarx8vGxsbGdPXPW1dXt+/fvVy5fYWfn+P7tm6amJgc7h7g4oYYXUA87Ozsw8TH8+P73xev/338xSQp9ZmLh5+P78uULUDGwxQdqZn35AgwlIPfz588fP34EZnIJSUlgJuDh4QE3CYdTKgIIMAAEe1lyT/xWdwAAAABJRU5ErkJggg==",
                "connector_name": "fortinet-fortisiem",
                "step_variables": {
                  "input": {
                    "params": {}
                  }
                },
                "connector_label": "Fortinet FortiSIEM",
                "exit_if_running": false,
                "batch_preference": 0,
                "connector_action": "get_incidents",
                "connector_mapping": {
                  "datetime": {
                    "to": "timeTo",
                    "from": "timeFrom"
                  },
                  "response": "{{data.data}}"
                },
                "connector_version": "5.3.0",
                "trigger_condition": {
                  "sort": [],
                  "limit": 30,
                  "logic": "AND",
                  "filters": [
                    {
                      "type": "",
                      "field": "incidentTitle",
                      "value": "batatas",
                      "operator": "eq",
                      "evaluation": false,
                      "originalValue": "batatas"
                    }
                  ]
                },
                "connector_action_inputs": {}
              },
              "description": null,
              "top": "268",
              "left": "300",
              "name": "When an incident is created",
              "status": null,
              "uuid": "17d65d4a-28a5-4b93-884c-99f387228be6",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/b348f017-9a94-471f-87f8-ce88b6a7ad62",
              "group": null
            },
            {
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "id": "{{ vars.incident_id }}",
                  "comment_text": "\n** Quarantine Compromised Source IP Canceled **\n\nSource IP {{ vars.asset }} has not been Quarantined, by {{ vars.serialized_request_attrs.username }}"
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "incident_comment",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "752",
              "left": "844",
              "name": "Not Blocked",
              "status": null,
              "uuid": "79d53668-091b-4781-8675-7a307a2a7956",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "id": "{{ vars.incident_id }}",
                  "comment_text": "{{ vars.asset }} has been contained, need to investigate suspicious activity to and from this device in the past X weeks."
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "clear_incident",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "1031",
              "left": "464",
              "name": "Clear Incident",
              "status": null,
              "uuid": "4ae4c11e-b678-493e-ad32-d9183ac64cad",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "comments": "",
                  "severity": "",
                  "incidentId": "{{ vars.incident_id }}",
                  "resolution": "True Positive",
                  "actionStatus": "",
                  "incidentStatus": "Manually Cleared",
                  "externalTicketId": "",
                  "externalTicketType": "",
                  "externalTicketState": "",
                  "externalAssignedUser": ""
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "update_incident",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "1159",
              "left": "465",
              "name": "Close TP",
              "status": null,
              "uuid": "b6808465-dbf6-4e8d-85d1-562799c8a01d",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "asset": "{{ vars.input.records[0].srcDict.srcIpAddr }}",
                "0_readme": "Replace ruleName and AddrGroupName value to match your policy rule and group name pre-configured to block malicious IP",
                "ruleName": "pre-block-pol",
                "rptDevName": "{{ vars.input.records[0].incidentRptDevName }}",
                "incident_id": "{{ vars.input.records[0].incidentId }}",
                "addrGroupName": "FAS_BlockIPs",
                "incident_data": "{{ vars.input.records[0] }}"
              },
              "description": null,
              "top": "268",
              "left": "648",
              "name": "Configuration",
              "status": null,
              "uuid": "486b4cde-31a1-4e9b-8785-5141e2aecd85",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "id": "{{ vars.incident_id }}",
                  "comment_text": "{{ vars.comment }}"
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "incident_comment",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "515",
              "left": "648",
              "name": "Add Summary",
              "status": null,
              "uuid": "a73b5573-712a-45c6-bfc8-1581a64db89b",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "type": "InputBased",
                "input": {
                  "schema": {
                    "title": "Confirm Quarantine ",
                    "description": "<p>Quarantine Request for IncidentID: {{ vars.incident_id }}</p>\n<p>Title:{{ vars.incident_data.incidentTitle }}</p>\n<p>Reason: {{ vars.incident_data.attackTechniqueId }} - {{ (vars.incident_data.attackTechnique|from_json)[0].name if vars.incident_data.attackTechnique }}</p>\n<p>Please review and approve quarantine of {{ vars.asset }} on {{ vars.rptDevName }} Firewall.</p>",
                    "inputVariables": []
                  }
                },
                "is_approval": false,
                "owner_detail": {
                  "isAssigned": false,
                  "assignedToField": null,
                  "assignedToPerson": []
                },
                "response_mapping": {
                  "options": [
                    {
                      "option": "Approve",
                      "primary": false,
                      "step_iri": "api/3/workflow_steps/21cd9f88-5223-4c26-9708-372b1974d13f",
                      "step_uuid": "/api/3/workflow_steps/21cd9f88-5223-4c26-9708-372b1974d13f"
                    },
                    {
                      "option": "Cancel",
                      "primary": false,
                      "step_iri": "api/3/workflow_steps/79d53668-091b-4781-8675-7a307a2a7956",
                      "step_uuid": "/api/3/workflow_steps/79d53668-091b-4781-8675-7a307a2a7956"
                    }
                  ],
                  "connecteStepsLength": 0,
                  "customSuccessMessage": "Awaiting Playbook resumed successfully"
                },
                "email_notification": {
                  "enabled": false,
                  "smtpParameters": {}
                },
                "inline_channel_list": [],
                "external_channel_list": [],
                "unauthenticated_input": false
              },
              "description": null,
              "top": "640",
              "left": "648",
              "name": "Approve Task",
              "status": null,
              "uuid": "6044735b-403e-4d3e-8e14-09472e21d35e",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/fc04082a-d7dc-4299-96fb-6837b1baa0fe",
              "group": null
            },
            {
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "id": "{{ vars.incident_id }}",
                  "comment_text": "\n** Quarantine Compromised Source IP Approved **\n{{ vars.asset }} has been blocked with {{ vars.steps[\"Block IP\"].status }}"
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "incident_comment",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "877",
              "left": "464",
              "name": "Add Blocked Comment",
              "status": null,
              "uuid": "a682129b-318c-4987-9805-4f3be804d920",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "comment": "{% if vars.input.records|length > 0 %}\n{# Access the first record #}\n{% set incident = vars.input.records[0] %}\n\n{# Format timestamps to readable dates using Arrow #}\n{% set first_seen = arrow.get(incident.incidentFirstSeen / 1000).to(\"UTC\").format(\"YYYY-MM-DD HH:mm:ss ZZ\") %}\n{% set last_seen = arrow.get(incident.incidentLastSeen / 1000).to(\"UTC\").format(\"YYYY-MM-DD HH:mm:ss ZZ\") %}\n\n# Security Incident Report\n\n## Summary\n**Incident ID:** {{ incident.incidentId }}  \n**Title:** {{ incident.incidentTitle }}  \n**Status:** {{ \"🔴 Active\" if incident.incidentStatus == 0 else \"🟢 Resolved\" }}  \n**Severity:** {{ incident.eventSeverityCat }} ({{ incident.eventSeverity }}/10)\n\n## Threat Details\n| Attribute | Value |\n|-----------|-------|\n| **Compromised Host** | `{{ vars.asset }}` |\n| **Attack Tactic** | {{ incident.attackTactic }} |\n| **Attack Technique** | {{ incident.attackTechniqueId }} - {{ (incident.attackTechnique|from_json)[0].name if incident.attackTechnique }} |\n\n## Timeline\n| Event | Timestamp |\n|-------|-----------|\n| **First Seen** | {{ first_seen }} |\n| **Last Seen** | {{ last_seen }} |\n{% if incident.incidentClearedTime > 0 %}| **Cleared** | {{ arrow.get(incident.incidentClearedTime / 1000).to(\"UTC\").format(\"YYYY-MM-DD HH:mm:ss ZZ\") }} |{% endif %}\n\n## Reporting Information\n| Field | Value |\n|-------|-------|\n| **Reporting Device** | {{ incident.incidentRptDevName }} ({{ incident.incidentRptIp }}) |\n| **Customer** | {{ incident.customer }}\n\n{% else %}\n## No Security Incidents Found\n\nNo security incidents were found in the provided data.\n{% endif %}"
              },
              "description": null,
              "top": "391",
              "left": "648",
              "name": "Comment String0",
              "status": null,
              "uuid": "c5c11a7d-6145-4a9b-91d4-4b4b31bf2a32",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "name": "Cisco ASA",
                "config": "",
                "params": {
                  "src": "{{ vars.asset }}",
                  "dest": "0.0.0.0/0",
                  "direction": "Both",
                  "interface": "lan",
                  "access_list": "{{ vars.ruleName }}"
                },
                "version": "2.0.1",
                "connector": "cisco-asa",
                "operation": "block_ip",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "752",
              "left": "464",
              "name": "Block IP",
              "status": null,
              "uuid": "21cd9f88-5223-4c26-9708-372b1974d13f",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            }
          ],
          "routes": [
            {
              "@type": "WorkflowRoute",
              "name": "9372fbb3-5a42-4b74-a5f1-3f74b5ffdedb",
              "targetStep": "/api/3/workflow_steps/486b4cde-31a1-4e9b-8785-5141e2aecd85",
              "sourceStep": "/api/3/workflow_steps/17d65d4a-28a5-4b93-884c-99f387228be6",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "3509c535-d51f-487f-ab95-32bfc0236de6"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Configuration->Comment String0",
              "targetStep": "/api/3/workflow_steps/c5c11a7d-6145-4a9b-91d4-4b4b31bf2a32",
              "sourceStep": "/api/3/workflow_steps/486b4cde-31a1-4e9b-8785-5141e2aecd85",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "58b3d3ca-a042-48e7-bc9c-a99809bb44e3"
            },
            {
              "@type": "WorkflowRoute",
              "name": "8584565c-d1bb-46ca-a293-c767f3a4e6d7",
              "targetStep": "/api/3/workflow_steps/a73b5573-712a-45c6-bfc8-1581a64db89b",
              "sourceStep": "/api/3/workflow_steps/c5c11a7d-6145-4a9b-91d4-4b4b31bf2a32",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "a09f8bba-7993-45ab-bd4b-6c228b9062d9"
            },
            {
              "@type": "WorkflowRoute",
              "name": "aaea4c07-b461-4d9e-9ff3-cf166d3f153e",
              "targetStep": "/api/3/workflow_steps/6044735b-403e-4d3e-8e14-09472e21d35e",
              "sourceStep": "/api/3/workflow_steps/a73b5573-712a-45c6-bfc8-1581a64db89b",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "4f37ba49-bf39-4723-9b7e-324d28a8bc31"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Approve Task->Not Blocked",
              "targetStep": "/api/3/workflow_steps/79d53668-091b-4781-8675-7a307a2a7956",
              "sourceStep": "/api/3/workflow_steps/6044735b-403e-4d3e-8e14-09472e21d35e",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "a13a1665-ca0c-412a-bf77-a6ea082f9abb"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Add Blocked Comment->Clear Incident",
              "targetStep": "/api/3/workflow_steps/4ae4c11e-b678-493e-ad32-d9183ac64cad",
              "sourceStep": "/api/3/workflow_steps/a682129b-318c-4987-9805-4f3be804d920",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "46005849-157f-4ad4-b1f5-a8042b347d7b"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Clear Incident->Close TP",
              "targetStep": "/api/3/workflow_steps/b6808465-dbf6-4e8d-85d1-562799c8a01d",
              "sourceStep": "/api/3/workflow_steps/4ae4c11e-b678-493e-ad32-d9183ac64cad",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "cde852ff-ed19-4b41-9a2e-c7aaab6e440c"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Approve Task->Block IP",
              "targetStep": "/api/3/workflow_steps/21cd9f88-5223-4c26-9708-372b1974d13f",
              "sourceStep": "/api/3/workflow_steps/6044735b-403e-4d3e-8e14-09472e21d35e",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "68fa41a5-93d5-47ae-98f7-b33252e34822"
            },
            {
              "@type": "WorkflowRoute",
              "name": "73935770-0d8e-453c-80cc-b70c7ba9c08e",
              "targetStep": "/api/3/workflow_steps/a682129b-318c-4987-9805-4f3be804d920",
              "sourceStep": "/api/3/workflow_steps/21cd9f88-5223-4c26-9708-372b1974d13f",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "ca1ffceb-333e-4184-9764-d8e5641cd0c8"
            }
          ],
          "isActive": false,
          "groups": [],
          "tag": null,
          "uuid": "f8ebe055-8614-441c-aeca-6eea8fbc84b9",
          "triggerStep": "/api/3/workflow_steps/17d65d4a-28a5-4b93-884c-99f387228be6",
          "singleRecordExecution": false,
          "priority": "/api/3/picklists/2b563c61-ae2c-41c0-a85a-c9709585e3f2",
          "debug": false,
          "remoteExecutableFlag": false,
          "@type": "Workflow",
          "name": "Block Source IP in Cisco ASA",
          "importedBy": [],
          "triggerLimit": null,
          "aliasName": null
        },
        {
          "description": "This playbook will block a malicious IP on a FortiGate firewall by updating a rule policy and address group name that must be defined in the playbook. The playbook will ask the user to confirm if they need to block the IP, if confirmed the Incident will also be set to a True Positive, else will be set to a False Positive.\nConfiguration\n\nConfirm that the correct connector configuration is used for each connector step:\nSteps: Add Summary, Not Blocked, Add Blocked Comment, Clear Incident, Close TP - FortiSIEM connector and using the Target \"supervisor-agent\"\nStep: Block IP – Using the FortiGate Connector define the Target\n\nStep: Configuration - Replace ruleName and AddrGroupName value to match your FortiGate policy rule and group name.",
          "synchronous": false,
          "isPrivate": false,
          "parameters": [],
          "recordTags": [
            "Brute Force Logon",
            "Network Discovery",
            "Traffic Anomaly",
            "ioc match",
            "Suspicious Collection Activity",
            "Suspicious Logon",
            "Initial Access",
            "Host Discovery",
            "Data Exfiltration",
            "Botnet Detected"
          ],
          "steps": [
            {
              "arguments": {
                "@id": "/api/workflow/events/de983a69-9e4b-4151-aee2-f712436361ee/",
                "tag": null,
                "name": "When an incident is created",
                "poll": null,
                "type": [
                  "PUSH"
                ],
                "uuid": "de983a69-9e4b-4151-aee2-f712436361ee",
                "@type": "ApplicationEvent",
                "agentId": "421187_deploy_10067",
                "event_id": "fortinet-fortisiem.get_incidents_created",
                "schedule": null,
                "start_time": null,
                "description": "Run the playbook when a FortiSIEM incident is created",
                "sample_data": [
                  {
                    "count": 2,
                    "customer": "TCL",
                    "eventName": "Sudden Increase in User Login Volume",
                    "eventType": "PH_RULE_USER_MON_SUDDEN_LOGIN_VOLUME_CHANGE",
                    "incidentId": 3912,
                    "incidentSrc": {
                      "computer": ""
                    },
                    "incidentReso": 1,
                    "eventSeverity": 7,
                    "incidentRptIp": "10.10.10.10",
                    "incidentTitle": "Sudden logon volume increase for $computer to root on qa-sys1",
                    "incidentDetail": "",
                    "incidentStatus": 0,
                    "incidentTarget": {
                      "user": "root",
                      "destName": "qa-sys1"
                    },
                    "eventSeverityCat": "MEDIUM",
                    "incidentLastSeen": 1708888260000,
                    "incidentFirstSeen": 1708801860000,
                    "incidentStatusStr": "active",
                    "incidentRptDevName": "HOST-10.10.10.10",
                    "phIncidentCategory": 4,
                    "incidentClearedTime": 0,
                    "phSubIncidentCategory": "Behavioral Anomaly"
                  }
                ],
                "installed_by": "SOLUTION_PACK",
                "createUser_id": null,
                "modifyUser_id": null,
                "connector_icon": "data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAIAAAD8GO2jAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3hpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ4IDc5LjE2NDAzNiwgMjAxOS8wOC8xMy0wMTowNjo1NyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo1MDNhYTZiMy0zYzEzLTQ5YzEtODNiZi00MThjZWIxM2VhNTIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6OTU3MkQ4QjkzRUFFMTFFQUJCQjJCRDNGMkZEOEUzMEUiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6OTU3MkQ4QjgzRUFFMTFFQUJCQjJCRDNGMkZEOEUzMEUiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKE1hY2ludG9zaCkiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo0MjI1MGJmZi03MjQyLTRhNDItOTA3Ny1hYThiOTk5Yjk3YTIiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NTAzYWE2YjMtM2MxMy00OWMxLTgzYmYtNDE4Y2ViMTNlYTUyIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+SVYIEAAABGVJREFUeNpi/P//PwMtARMDjQHNLWDBFHrz9v2Va3eYmZkZGEgIvT9//qqpyEtLiaOJM6LFAdD01q7ZxoaaQoL8f//9w28oIwMjExPTv3//GBkZv3z9euTYhZL8eHk5KXw+uHnrgZiYcEyELxmh8f7DlwuXbqBZgB4HjEyMrKwsRJo4Z+E6C5vwjVv2QR3LwsLEzEQ4kuGBRjCIZs1dffLovi07DqFpJGABMGSB5Io1263tIleu3YEsdfX6nd37jj94+PTv33+9kxZZWxn1TuqtKkklLRUBYwxIrt+87+TRgw3ffsjLSlqY6b989Ta3pP3u3cfi4sLv338COjbQ36W/o5ScZPrvPyhkmmuzDfU1tTQUgSGwYcv+o8fPa2gobVo9+d2Hj2ysrJV1E+7df0xURP1HBUdPnO+aMB9NsHfyIlPbCCDj3fuPuqaBd+8//v79h65ZEFAxsrJZ89du2rYfTS9ROfnzpy92tiZg1zCIS4gAkxkHB7uOlsq1G/eoU1SIigrfvvMIyODkZLe3MRETEQKy7957/Pr1O6Abnz1//fHjZ4os8HSzPnT07PzFG4ChLyMlDkwFwEADeuLnz19xqdWm9pG+obnfv/9kZWEmx4Jfv37PmLMqIzl0yozlwdGFDx8/9w3NKSluMzXWaajO8vN2ePb05fMXb/7+/QtJfoRTETL4/edPWW2/rpZqcnxgQXbMgiUbN209kBgXALRm2oxlHq7WoYFuJw4sBRZcPDxcv37/IcECYKm3cs3OC5dvWpjpJccFAkXExYQTYvxfvXmfEh8kKy3uG5iVW9R2YOd8c1M90pJp94QFQEZj+3SgmeoGvsDCEiIFLDlScxo4+fTnLlwP5NY2T2VgUIpNqQIGDmnJ9D+4GrC1MtI3sQoP8fiP5JbXb95///z11Zt3QF5VaYqLt/PiOcvmL9lIWk6GAEc7sxNHVnCwsyHSAxPTzEl1eZnRVub6QC5Qakp/VfrPnzzcnCRYAKk9IGxk0yFATFQIiOBcdVWFA7sXwrnMTEzA4CJggYy0xIM1O4+fvMDNzQkMfMIZlYkJUkoDU/PFyzeT4gIIVJlAAFR38fItNjYWkqqzX79/qyrJWZobELZgiDdb3r17d+XKFUZmZg0xUcEPn/98+sGmJHnz1+8Xz55JSEj8+P799evXYuLifHx8d+7c5ubmUVJSun37FisLKxMzM1Cvrq6ujIwMPgtOnDg+YUK/lrFxrqg8DwMLo7Liz/lrpry69/bDe3Y2Nn0Dg8+fPsnJy58+dVpLWwuoftmypS+eP4+IjPry5fOF8xf09PQI+ICJiTkoKNjeyUny8s3ftx6wfvryj5UJ6PbI2NhjR4+oqarx8vGxsbGdPXPW1dXt+/fvVy5fYWfn+P7tm6amJgc7h7g4oYYXUA87Ozsw8TH8+P73xev/338xSQp9ZmLh5+P78uULUDGwxQdqZn35AgwlIPfz588fP34EZnIJSUlgJuDh4QE3CYdTKgIIMAAEe1lyT/xWdwAAAABJRU5ErkJggg==",
                "connector_name": "fortinet-fortisiem",
                "step_variables": {
                  "input": {
                    "params": {}
                  }
                },
                "connector_label": "Fortinet FortiSIEM",
                "exit_if_running": false,
                "batch_preference": 0,
                "connector_action": "get_incidents",
                "connector_mapping": {
                  "datetime": {
                    "to": "timeTo",
                    "from": "timeFrom"
                  },
                  "response": "{{data.data}}"
                },
                "connector_version": "5.3.0",
                "trigger_condition": {
                  "sort": [],
                  "limit": 30,
                  "logic": "AND",
                  "filters": [
                    {
                      "type": "",
                      "field": "incidentTitle",
                      "value": "batatas",
                      "operator": "eq",
                      "evaluation": false,
                      "originalValue": "batatas"
                    }
                  ]
                },
                "connector_action_inputs": {}
              },
              "description": null,
              "top": "268",
              "left": "300",
              "name": "When an incident is created",
              "status": null,
              "uuid": "708bb465-da77-49fa-b19b-9a773a5e1638",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/b348f017-9a94-471f-87f8-ce88b6a7ad62",
              "group": null
            },
            {
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "id": "{{ vars.incident_id }}",
                  "comment_text": "\n** Quarantine Compromised Source IP Canceled **\n\nSource IP {{ vars.asset }} has not been Quarantined, by {{ vars.serialized_request_attrs.username }}"
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "incident_comment",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "752",
              "left": "844",
              "name": "Not Blocked",
              "status": null,
              "uuid": "defd956a-5cbd-4b56-ae4a-6d299a1d06f1",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "id": "{{ vars.incident_id }}",
                  "comment_text": "{{ vars.asset }} has been contained, need to investigate suspicious activity to and from this device in the past X weeks."
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "clear_incident",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "1031",
              "left": "464",
              "name": "Clear Incident",
              "status": null,
              "uuid": "327be885-7cf6-4785-9037-ef747fdbb022",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "id": "{{ vars.incident_id }}",
                  "comment_text": "{{ vars.comment }}"
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "incident_comment",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "515",
              "left": "648",
              "name": "Add Summary",
              "status": null,
              "uuid": "449ef98b-6824-412e-bae7-98df6f1f5d15",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "comments": "",
                  "severity": "",
                  "incidentId": "{{ vars.incident_id }}",
                  "resolution": "True Positive",
                  "actionStatus": "",
                  "incidentStatus": "Manually Cleared",
                  "externalTicketId": "",
                  "externalTicketType": "",
                  "externalTicketState": "",
                  "externalAssignedUser": ""
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "update_incident",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "1159",
              "left": "465",
              "name": "Close TP",
              "status": null,
              "uuid": "69ad1964-3001-406b-af39-514283de61dc",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "asset": "{{ vars.input.records[0].srcDict.srcIpAddr }}",
                "0_readme": "Replace ruleName and AddrGroupName value to match your policy rule and group name pre-configured to block malicious IP",
                "ruleName": "Block Malicious FEDR_FMG",
                "rptDevName": "{{ vars.input.records[0].incidentRptDevName }}",
                "incident_id": "{{ vars.input.records[0].incidentId }}",
                "addrGroupName": "FAS_BlockIPs",
                "incident_data": "{{ vars.input.records[0] }}"
              },
              "description": null,
              "top": "268",
              "left": "648",
              "name": "Configuration",
              "status": null,
              "uuid": "b00229d8-0fb7-4bb0-8896-7c8614f16d5c",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "type": "InputBased",
                "input": {
                  "schema": {
                    "title": "Confirm Quarantine ",
                    "description": "<p>Quarantine Request for IncidentID: {{ vars.incident_id }}</p>\n<p>Title:{{ vars.incident_data.incidentTitle }}</p>\n<p>Reason: {{ vars.incident_data.attackTechniqueId }} - {{ (vars.incident_data.attackTechnique|from_json)[0].name if vars.incident_data.attackTechnique }}</p>\n<p>Please review and approve quarantine of {{ vars.asset }} on {{ vars.rptDevName }} Firewall.</p>\n<p>NOTE: If Quarentine is approved, and all remediation tasks are sucessfully executed, the incident will get cleared with true positive code.</p>",
                    "inputVariables": []
                  }
                },
                "is_approval": false,
                "owner_detail": {
                  "isAssigned": false,
                  "assignedToField": null,
                  "assignedToPerson": []
                },
                "response_mapping": {
                  "options": [
                    {
                      "option": "Approve",
                      "primary": false,
                      "step_iri": "api/3/workflow_steps/dfcea480-b884-4e91-afe3-7274719dd07b",
                      "step_uuid": "/api/3/workflow_steps/dfcea480-b884-4e91-afe3-7274719dd07b"
                    },
                    {
                      "option": "Cancel",
                      "primary": false,
                      "step_iri": "api/3/workflow_steps/defd956a-5cbd-4b56-ae4a-6d299a1d06f1",
                      "step_uuid": "/api/3/workflow_steps/defd956a-5cbd-4b56-ae4a-6d299a1d06f1"
                    }
                  ],
                  "connecteStepsLength": 0,
                  "customSuccessMessage": "Awaiting Playbook resumed successfully"
                },
                "email_notification": {
                  "enabled": false,
                  "smtpParameters": {}
                },
                "inline_channel_list": [],
                "external_channel_list": [],
                "unauthenticated_input": false
              },
              "description": null,
              "top": "640",
              "left": "648",
              "name": "Approve Task",
              "status": null,
              "uuid": "173ee627-22f0-4b07-93ec-d48f45902a8d",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/fc04082a-d7dc-4299-96fb-6837b1baa0fe",
              "group": null
            },
            {
              "arguments": {
                "name": "Fortinet FortiGate",
                "config": "",
                "params": {
                  "ip": "{{ vars.asset }}",
                  "vdom": "",
                  "is_new": true,
                  "method": "Policy Based",
                  "ip_type": "IPv4",
                  "ngfw_mode": "Profile Based",
                  "ip_group_name": "{{ vars.addrGroupName }}",
                  "ip_block_policy": "{{ vars.ruleName }}"
                },
                "version": "5.4.0",
                "connector": "fortigate-firewall",
                "operation": "block_ip_new",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "749",
              "left": "464",
              "name": "Block IP",
              "status": null,
              "uuid": "dfcea480-b884-4e91-afe3-7274719dd07b",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "id": "{{ vars.incident_id }}",
                  "comment_text": "\n** Quarantine Compromised Source IP Approved **\n{{ vars.asset }} has been blocked with {{ vars.steps[\"Block IP\"].status }}"
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "incident_comment",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "877",
              "left": "464",
              "name": "Add Blocked Comment",
              "status": null,
              "uuid": "a97a6f30-dd44-4e8a-aaf8-2bad63a9e573",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "comment": "{% if vars.input.records|length > 0 %}\n{# Access the first record #}\n{% set incident = vars.input.records[0] %}\n\n{# Format timestamps to readable dates using Arrow #}\n{% set first_seen = arrow.get(incident.incidentFirstSeen / 1000).to(\"UTC\").format(\"YYYY-MM-DD HH:mm:ss ZZ\") %}\n{% set last_seen = arrow.get(incident.incidentLastSeen / 1000).to(\"UTC\").format(\"YYYY-MM-DD HH:mm:ss ZZ\") %}\n\n# Security Incident Report\n\n## Summary\n**Incident ID:** {{ incident.incidentId }}  \n**Title:** {{ incident.incidentTitle }}  \n**Status:** {{ \"🔴 Active\" if incident.incidentStatus == 0 else \"🟢 Resolved\" }}  \n**Severity:** {{ incident.eventSeverityCat }} ({{ incident.eventSeverity }}/10)\n\n## Threat Details\n| Attribute | Value |\n|-----------|-------|\n| **Compromised Host** | `{{ vars.asset }}` |\n| **Attack Tactic** | {{ incident.attackTactic }} |\n| **Attack Technique** | {{ incident.attackTechniqueId }} - {{ (incident.attackTechnique|from_json)[0].name if incident.attackTechnique }} |\n\n## Timeline\n| Event | Timestamp |\n|-------|-----------|\n| **First Seen** | {{ first_seen }} |\n| **Last Seen** | {{ last_seen }} |\n{% if incident.incidentClearedTime > 0 %}| **Cleared** | {{ arrow.get(incident.incidentClearedTime / 1000).to(\"UTC\").format(\"YYYY-MM-DD HH:mm:ss ZZ\") }} |{% endif %}\n\n## Reporting Information\n| Field | Value |\n|-------|-------|\n| **Reporting Device** | {{ incident.incidentRptDevName }} ({{ incident.incidentRptIp }}) |\n| **Customer** | {{ incident.customer }}\n\n{% else %}\n## No Security Incidents Found\n\nNo security incidents were found in the provided data.\n{% endif %}"
              },
              "description": null,
              "top": "391",
              "left": "648",
              "name": "Comment String0",
              "status": null,
              "uuid": "e9c80d6b-4497-4f6c-b3eb-f2fe7615b0b9",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            }
          ],
          "routes": [
            {
              "@type": "WorkflowRoute",
              "name": "9372fbb3-5a42-4b74-a5f1-3f74b5ffdedb",
              "targetStep": "/api/3/workflow_steps/b00229d8-0fb7-4bb0-8896-7c8614f16d5c",
              "sourceStep": "/api/3/workflow_steps/708bb465-da77-49fa-b19b-9a773a5e1638",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "ffacbde4-071f-4ee2-a7c8-8457a8fd3a9e"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Configuration->Comment String0",
              "targetStep": "/api/3/workflow_steps/e9c80d6b-4497-4f6c-b3eb-f2fe7615b0b9",
              "sourceStep": "/api/3/workflow_steps/b00229d8-0fb7-4bb0-8896-7c8614f16d5c",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "b8e047f8-d48a-409b-bc87-e0b61a2c42d3"
            },
            {
              "@type": "WorkflowRoute",
              "name": "8584565c-d1bb-46ca-a293-c767f3a4e6d7",
              "targetStep": "/api/3/workflow_steps/449ef98b-6824-412e-bae7-98df6f1f5d15",
              "sourceStep": "/api/3/workflow_steps/e9c80d6b-4497-4f6c-b3eb-f2fe7615b0b9",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "db367a2f-090e-49fb-b4f1-3fb5c7bcb7a2"
            },
            {
              "@type": "WorkflowRoute",
              "name": "aaea4c07-b461-4d9e-9ff3-cf166d3f153e",
              "targetStep": "/api/3/workflow_steps/173ee627-22f0-4b07-93ec-d48f45902a8d",
              "sourceStep": "/api/3/workflow_steps/449ef98b-6824-412e-bae7-98df6f1f5d15",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "c558d89d-1af5-4ec6-aec0-17356e333ac7"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Approve Task->Block IP",
              "targetStep": "/api/3/workflow_steps/dfcea480-b884-4e91-afe3-7274719dd07b",
              "sourceStep": "/api/3/workflow_steps/173ee627-22f0-4b07-93ec-d48f45902a8d",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "9352fc9c-6c7a-46e8-9146-846fc6faea0e"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Block IP->Add Blocked Comment",
              "targetStep": "/api/3/workflow_steps/a97a6f30-dd44-4e8a-aaf8-2bad63a9e573",
              "sourceStep": "/api/3/workflow_steps/dfcea480-b884-4e91-afe3-7274719dd07b",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "b3bb5b32-c73e-421e-8553-a3a6d20a21ff"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Approve Task->Not Blocked",
              "targetStep": "/api/3/workflow_steps/defd956a-5cbd-4b56-ae4a-6d299a1d06f1",
              "sourceStep": "/api/3/workflow_steps/173ee627-22f0-4b07-93ec-d48f45902a8d",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "6cd83781-3752-419d-9ca6-9fc1799339d5"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Add Blocked Comment->Clear Incident",
              "targetStep": "/api/3/workflow_steps/327be885-7cf6-4785-9037-ef747fdbb022",
              "sourceStep": "/api/3/workflow_steps/a97a6f30-dd44-4e8a-aaf8-2bad63a9e573",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "3ed5793a-4fab-4c4f-972b-87c4d5ad1b0b"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Clear Incident->Close TP",
              "targetStep": "/api/3/workflow_steps/69ad1964-3001-406b-af39-514283de61dc",
              "sourceStep": "/api/3/workflow_steps/327be885-7cf6-4785-9037-ef747fdbb022",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "45f88b3f-ca01-44c4-9de5-516581e37fe3"
            }
          ],
          "isActive": false,
          "groups": [],
          "tag": null,
          "uuid": "0c5fa86c-716c-4503-b951-9d6ae1e3be37",
          "triggerStep": "/api/3/workflow_steps/708bb465-da77-49fa-b19b-9a773a5e1638",
          "singleRecordExecution": false,
          "priority": "/api/3/picklists/2b563c61-ae2c-41c0-a85a-c9709585e3f2",
          "debug": false,
          "remoteExecutableFlag": false,
          "@type": "Workflow",
          "name": "Block Source IP in FortiGate",
          "importedBy": [],
          "triggerLimit": null,
          "aliasName": null
        },
        {
          "description": "This playbook will block a malicious IP on a Palo Alto firewall. The playbook will ask the user to confirm if they need to block the IP, if confirmed the Incident will also be set to a True Positive, else will be set to a False Positive. \n\nConfiguration\n\nSteps: Add Summary, Not Blocked, Add Blocked Comment, Clear Incident, Close TP - FortiSIEM connector and using the Target \"supervisor-agent\"\nStep: Block IP – Using the Palo Alto Firewall Connector define the Target",
          "synchronous": false,
          "isPrivate": false,
          "parameters": [],
          "recordTags": [
            "Brute Force Logon",
            "Network Discovery",
            "Traffic Anomaly",
            "ioc match",
            "Suspicious Collection Activity",
            "Suspicious Logon",
            "Initial Access",
            "Host Discovery",
            "Data Exfiltration",
            "Botnet Detected"
          ],
          "steps": [
            {
              "arguments": {
                "@id": "/api/workflow/events/de983a69-9e4b-4151-aee2-f712436361ee/",
                "tag": null,
                "name": "When an incident is created",
                "poll": null,
                "type": [
                  "PUSH"
                ],
                "uuid": "de983a69-9e4b-4151-aee2-f712436361ee",
                "@type": "ApplicationEvent",
                "agentId": "421187_deploy_10067",
                "event_id": "fortinet-fortisiem.get_incidents_created",
                "schedule": null,
                "start_time": null,
                "description": "Run the playbook when a FortiSIEM incident is created",
                "sample_data": [
                  {
                    "count": 2,
                    "customer": "TCL",
                    "eventName": "Sudden Increase in User Login Volume",
                    "eventType": "PH_RULE_USER_MON_SUDDEN_LOGIN_VOLUME_CHANGE",
                    "incidentId": 3912,
                    "incidentSrc": {
                      "computer": ""
                    },
                    "incidentReso": 1,
                    "eventSeverity": 7,
                    "incidentRptIp": "10.10.10.10",
                    "incidentTitle": "Sudden logon volume increase for $computer to root on qa-sys1",
                    "incidentDetail": "",
                    "incidentStatus": 0,
                    "incidentTarget": {
                      "user": "root",
                      "destName": "qa-sys1"
                    },
                    "eventSeverityCat": "MEDIUM",
                    "incidentLastSeen": 1708888260000,
                    "incidentFirstSeen": 1708801860000,
                    "incidentStatusStr": "active",
                    "incidentRptDevName": "HOST-10.10.10.10",
                    "phIncidentCategory": 4,
                    "incidentClearedTime": 0,
                    "phSubIncidentCategory": "Behavioral Anomaly"
                  }
                ],
                "installed_by": "SOLUTION_PACK",
                "createUser_id": null,
                "modifyUser_id": null,
                "connector_icon": "data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAIAAAD8GO2jAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3hpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ4IDc5LjE2NDAzNiwgMjAxOS8wOC8xMy0wMTowNjo1NyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo1MDNhYTZiMy0zYzEzLTQ5YzEtODNiZi00MThjZWIxM2VhNTIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6OTU3MkQ4QjkzRUFFMTFFQUJCQjJCRDNGMkZEOEUzMEUiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6OTU3MkQ4QjgzRUFFMTFFQUJCQjJCRDNGMkZEOEUzMEUiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKE1hY2ludG9zaCkiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo0MjI1MGJmZi03MjQyLTRhNDItOTA3Ny1hYThiOTk5Yjk3YTIiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NTAzYWE2YjMtM2MxMy00OWMxLTgzYmYtNDE4Y2ViMTNlYTUyIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+SVYIEAAABGVJREFUeNpi/P//PwMtARMDjQHNLWDBFHrz9v2Va3eYmZkZGEgIvT9//qqpyEtLiaOJM6LFAdD01q7ZxoaaQoL8f//9w28oIwMjExPTv3//GBkZv3z9euTYhZL8eHk5KXw+uHnrgZiYcEyELxmh8f7DlwuXbqBZgB4HjEyMrKwsRJo4Z+E6C5vwjVv2QR3LwsLEzEQ4kuGBRjCIZs1dffLovi07DqFpJGABMGSB5Io1263tIleu3YEsdfX6nd37jj94+PTv33+9kxZZWxn1TuqtKkklLRUBYwxIrt+87+TRgw3ffsjLSlqY6b989Ta3pP3u3cfi4sLv338COjbQ36W/o5ScZPrvPyhkmmuzDfU1tTQUgSGwYcv+o8fPa2gobVo9+d2Hj2ysrJV1E+7df0xURP1HBUdPnO+aMB9NsHfyIlPbCCDj3fuPuqaBd+8//v79h65ZEFAxsrJZ89du2rYfTS9ROfnzpy92tiZg1zCIS4gAkxkHB7uOlsq1G/eoU1SIigrfvvMIyODkZLe3MRETEQKy7957/Pr1O6Abnz1//fHjZ4os8HSzPnT07PzFG4ChLyMlDkwFwEADeuLnz19xqdWm9pG+obnfv/9kZWEmx4Jfv37PmLMqIzl0yozlwdGFDx8/9w3NKSluMzXWaajO8vN2ePb05fMXb/7+/QtJfoRTETL4/edPWW2/rpZqcnxgQXbMgiUbN209kBgXALRm2oxlHq7WoYFuJw4sBRZcPDxcv37/IcECYKm3cs3OC5dvWpjpJccFAkXExYQTYvxfvXmfEh8kKy3uG5iVW9R2YOd8c1M90pJp94QFQEZj+3SgmeoGvsDCEiIFLDlScxo4+fTnLlwP5NY2T2VgUIpNqQIGDmnJ9D+4GrC1MtI3sQoP8fiP5JbXb95///z11Zt3QF5VaYqLt/PiOcvmL9lIWk6GAEc7sxNHVnCwsyHSAxPTzEl1eZnRVub6QC5Qakp/VfrPnzzcnCRYAKk9IGxk0yFATFQIiOBcdVWFA7sXwrnMTEzA4CJggYy0xIM1O4+fvMDNzQkMfMIZlYkJUkoDU/PFyzeT4gIIVJlAAFR38fItNjYWkqqzX79/qyrJWZobELZgiDdb3r17d+XKFUZmZg0xUcEPn/98+sGmJHnz1+8Xz55JSEj8+P799evXYuLifHx8d+7c5ubmUVJSun37FisLKxMzM1Cvrq6ujIwMPgtOnDg+YUK/lrFxrqg8DwMLo7Liz/lrpry69/bDe3Y2Nn0Dg8+fPsnJy58+dVpLWwuoftmypS+eP4+IjPry5fOF8xf09PQI+ICJiTkoKNjeyUny8s3ftx6wfvryj5UJ6PbI2NhjR4+oqarx8vGxsbGdPXPW1dXt+/fvVy5fYWfn+P7tm6amJgc7h7g4oYYXUA87Ozsw8TH8+P73xev/338xSQp9ZmLh5+P78uULUDGwxQdqZn35AgwlIPfz588fP34EZnIJSUlgJuDh4QE3CYdTKgIIMAAEe1lyT/xWdwAAAABJRU5ErkJggg==",
                "connector_name": "fortinet-fortisiem",
                "step_variables": {
                  "input": {
                    "params": {}
                  }
                },
                "connector_label": "Fortinet FortiSIEM",
                "exit_if_running": false,
                "batch_preference": 0,
                "connector_action": "get_incidents",
                "connector_mapping": {
                  "datetime": {
                    "to": "timeTo",
                    "from": "timeFrom"
                  },
                  "response": "{{data.data}}"
                },
                "connector_version": "5.3.0",
                "trigger_condition": {
                  "sort": [],
                  "limit": 30,
                  "logic": "AND",
                  "filters": [
                    {
                      "type": "",
                      "field": "incidentTitle",
                      "value": "batatas",
                      "operator": "eq",
                      "evaluation": false,
                      "originalValue": "batatas"
                    }
                  ]
                },
                "connector_action_inputs": {}
              },
              "description": null,
              "top": "268",
              "left": "300",
              "name": "When an incident is created",
              "status": null,
              "uuid": "31ad6386-ee28-4a99-b60f-d5ad93e91d0e",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/b348f017-9a94-471f-87f8-ce88b6a7ad62",
              "group": null
            },
            {
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "id": "{{ vars.incident_id }}",
                  "comment_text": "\n{{ vars.asset }} has been contained, need to investigate suspicious activity to and from this device in the past X weeks.\n"
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "clear_incident",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "1031",
              "left": "464",
              "name": "Clear Incident",
              "status": null,
              "uuid": "8da1c2d7-f51a-4bd8-aa51-41f9cd2e7a96",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "id": "{{ vars.incident_id }}",
                  "comment_text": "\n**Quarantine Compromised Source IP Approved**\n{{ vars.asset }} has been blocked with {{ vars.steps[\"Block IP\"].status }}\n"
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "incident_comment",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "877",
              "left": "464",
              "name": "Add Blocked Comment",
              "status": null,
              "uuid": "da00e249-b18c-4745-9ef1-205f89b18bba",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "name": "Palo Alto Firewall",
                "config": "",
                "params": {
                  "ip": "{{ vars.asset }}"
                },
                "version": "3.3.0",
                "connector": "paloalto-firewall",
                "operation": "block_ip",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "753",
              "left": "464",
              "name": "Block IP",
              "status": null,
              "uuid": "9a808577-0141-4efd-b7fa-3f709d585f85",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "id": "{{ vars.incident_id }}",
                  "comment_text": "\n** Quarantine Compromised Source IP Canceled **\n\nSource IP {{ vars.asset }} has not been Quarantined, by {{ vars.serialized_request_attrs.username }}"
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "incident_comment",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "752",
              "left": "844",
              "name": "Not Blocked",
              "status": null,
              "uuid": "55f6cb61-7880-43ce-9cde-e5ce2e244a2b",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "comments": "",
                  "severity": "",
                  "incidentId": "{{ vars.incident_id }}",
                  "resolution": "True Positive",
                  "actionStatus": "",
                  "incidentStatus": "Manually Cleared",
                  "externalTicketId": "",
                  "externalTicketType": "",
                  "externalTicketState": "",
                  "externalAssignedUser": ""
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "update_incident",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "1159",
              "left": "465",
              "name": "Close TP",
              "status": null,
              "uuid": "9c42cb17-45ec-4523-bd14-26ab3cf21057",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "asset": "{{ vars.input.records[0].srcDict.srcIpAddr }}",
                "rptDevName": "{{ vars.input.records[0].incidentRptDevName }}",
                "incident_id": "{{ vars.input.records[0].incidentId }}",
                "incident_data": "{{ vars.input.records[0] }}"
              },
              "description": null,
              "top": "268",
              "left": "648",
              "name": "Configuration",
              "status": null,
              "uuid": "b8457598-e10d-4021-bf23-a61e4853b517",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "id": "{{ vars.incident_id }}",
                  "comment_text": "{{ vars.comment }}"
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "incident_comment",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "515",
              "left": "648",
              "name": "Add Summary",
              "status": null,
              "uuid": "77df16a7-e503-4c35-b3ca-1af76ec72565",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "type": "InputBased",
                "input": {
                  "schema": {
                    "title": "Confirm Quarantine ",
                    "description": "<p>Quarantine Request for IncidentID: {{ vars.incident_id }}</p>\n<p>Title:{{ vars.incident_data.incidentTitle }}</p>\n<p>Reason: {{ vars.incident_data.attackTechniqueId }} - {{ (vars.incident_data.attackTechnique|from_json)[0].name if vars.incident_data.attackTechnique }}</p>\n<p>Please review and approve quarantine of {{ vars.asset }} on {{ vars.rptDevName }} Firewall.</p>",
                    "inputVariables": []
                  }
                },
                "is_approval": false,
                "owner_detail": {
                  "isAssigned": false,
                  "assignedToField": null,
                  "assignedToPerson": []
                },
                "response_mapping": {
                  "options": [
                    {
                      "option": "Approve",
                      "primary": false,
                      "step_iri": "api/3/workflow_steps/9a808577-0141-4efd-b7fa-3f709d585f85",
                      "step_uuid": "/api/3/workflow_steps/9a808577-0141-4efd-b7fa-3f709d585f85"
                    },
                    {
                      "option": "Cancel",
                      "primary": false,
                      "step_iri": "api/3/workflow_steps/55f6cb61-7880-43ce-9cde-e5ce2e244a2b",
                      "step_uuid": "/api/3/workflow_steps/55f6cb61-7880-43ce-9cde-e5ce2e244a2b"
                    }
                  ],
                  "connecteStepsLength": 0,
                  "customSuccessMessage": "Awaiting Playbook resumed successfully"
                },
                "email_notification": {
                  "enabled": false,
                  "smtpParameters": {}
                },
                "inline_channel_list": [],
                "external_channel_list": [],
                "unauthenticated_input": false
              },
              "description": null,
              "top": "640",
              "left": "648",
              "name": "Approve Task",
              "status": null,
              "uuid": "3e4aee17-79f2-473f-98b3-5c251ff2c216",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/fc04082a-d7dc-4299-96fb-6837b1baa0fe",
              "group": null
            },
            {
              "arguments": {
                "comment": "{% if vars.input.records|length > 0 %}\n{# Access the first record #}\n{% set incident = vars.input.records[0] %}\n\n{# Format timestamps to readable dates using Arrow #}\n{% set first_seen = arrow.get(incident.incidentFirstSeen / 1000).to(\"UTC\").format(\"YYYY-MM-DD HH:mm:ss ZZ\") %}\n{% set last_seen = arrow.get(incident.incidentLastSeen / 1000).to(\"UTC\").format(\"YYYY-MM-DD HH:mm:ss ZZ\") %}\n\n# Security Incident Report\n\n## Summary\n**Incident ID:** {{ incident.incidentId }}  \n**Title:** {{ incident.incidentTitle }}  \n**Status:** {{ \"🔴 Active\" if incident.incidentStatus == 0 else \"🟢 Resolved\" }}  \n**Severity:** {{ incident.eventSeverityCat }} ({{ incident.eventSeverity }}/10)\n\n## Threat Details\n| Attribute | Value |\n|-----------|-------|\n| **Compromised Host** | `{{ vars.asset }}` |\n| **Attack Tactic** | {{ incident.attackTactic }} |\n| **Attack Technique** | {{ incident.attackTechniqueId }} - {{ (incident.attackTechnique|from_json)[0].name if incident.attackTechnique }} |\n\n## Timeline\n| Event | Timestamp |\n|-------|-----------|\n| **First Seen** | {{ first_seen }} |\n| **Last Seen** | {{ last_seen }} |\n{% if incident.incidentClearedTime > 0 %}| **Cleared** | {{ arrow.get(incident.incidentClearedTime / 1000).to(\"UTC\").format(\"YYYY-MM-DD HH:mm:ss ZZ\") }} |{% endif %}\n\n## Reporting Information\n| Field | Value |\n|-------|-------|\n| **Reporting Device** | {{ incident.incidentRptDevName }} ({{ incident.incidentRptIp }}) |\n| **Customer** | {{ incident.customer }}\n\n{% else %}\n## No Security Incidents Found\n\nNo security incidents were found in the provided data.\n{% endif %}"
              },
              "description": null,
              "top": "391",
              "left": "648",
              "name": "Comment String0",
              "status": null,
              "uuid": "a928d2c7-3a70-445f-89cb-6830d8b501d3",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            }
          ],
          "routes": [
            {
              "@type": "WorkflowRoute",
              "name": "9372fbb3-5a42-4b74-a5f1-3f74b5ffdedb",
              "targetStep": "/api/3/workflow_steps/b8457598-e10d-4021-bf23-a61e4853b517",
              "sourceStep": "/api/3/workflow_steps/31ad6386-ee28-4a99-b60f-d5ad93e91d0e",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "bfaf000a-03af-4acd-bd42-72217e425a5c"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Configuration->Comment String0",
              "targetStep": "/api/3/workflow_steps/a928d2c7-3a70-445f-89cb-6830d8b501d3",
              "sourceStep": "/api/3/workflow_steps/b8457598-e10d-4021-bf23-a61e4853b517",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "a637c7a4-236d-4dd0-84d7-327a1e4d344d"
            },
            {
              "@type": "WorkflowRoute",
              "name": "8584565c-d1bb-46ca-a293-c767f3a4e6d7",
              "targetStep": "/api/3/workflow_steps/77df16a7-e503-4c35-b3ca-1af76ec72565",
              "sourceStep": "/api/3/workflow_steps/a928d2c7-3a70-445f-89cb-6830d8b501d3",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "fb4a93ab-adab-4b4f-bae6-78c32e62a9cb"
            },
            {
              "@type": "WorkflowRoute",
              "name": "aaea4c07-b461-4d9e-9ff3-cf166d3f153e",
              "targetStep": "/api/3/workflow_steps/3e4aee17-79f2-473f-98b3-5c251ff2c216",
              "sourceStep": "/api/3/workflow_steps/77df16a7-e503-4c35-b3ca-1af76ec72565",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "864c7393-850b-4d9d-bf9f-589209033599"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Approve Task->Not Blocked",
              "targetStep": "/api/3/workflow_steps/55f6cb61-7880-43ce-9cde-e5ce2e244a2b",
              "sourceStep": "/api/3/workflow_steps/3e4aee17-79f2-473f-98b3-5c251ff2c216",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "311f6815-90e1-4ae6-8651-ee3488bacb33"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Add Blocked Comment->Clear Incident",
              "targetStep": "/api/3/workflow_steps/8da1c2d7-f51a-4bd8-aa51-41f9cd2e7a96",
              "sourceStep": "/api/3/workflow_steps/da00e249-b18c-4745-9ef1-205f89b18bba",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "72798c7f-5839-49b4-b2b4-a85afef66099"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Clear Incident->Close TP",
              "targetStep": "/api/3/workflow_steps/9c42cb17-45ec-4523-bd14-26ab3cf21057",
              "sourceStep": "/api/3/workflow_steps/8da1c2d7-f51a-4bd8-aa51-41f9cd2e7a96",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "6355f2b6-38c3-4ef1-92e1-8ba742e817ef"
            },
            {
              "@type": "WorkflowRoute",
              "name": "97407930-01a5-4fe7-a967-7a43659a2196",
              "targetStep": "/api/3/workflow_steps/9a808577-0141-4efd-b7fa-3f709d585f85",
              "sourceStep": "/api/3/workflow_steps/3e4aee17-79f2-473f-98b3-5c251ff2c216",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "ebb940b8-d403-439f-bbd0-753a4be8ba0f"
            },
            {
              "@type": "WorkflowRoute",
              "name": "ae38e870-dfe1-4157-b111-e5de08ae128d",
              "targetStep": "/api/3/workflow_steps/da00e249-b18c-4745-9ef1-205f89b18bba",
              "sourceStep": "/api/3/workflow_steps/9a808577-0141-4efd-b7fa-3f709d585f85",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "78d5d847-afed-4e65-b5cb-fcd9c0d9a4a3"
            }
          ],
          "isActive": false,
          "groups": [],
          "tag": null,
          "uuid": "f0db847c-1265-4752-bc4d-d89ddb2fd5d4",
          "triggerStep": "/api/3/workflow_steps/31ad6386-ee28-4a99-b60f-d5ad93e91d0e",
          "singleRecordExecution": false,
          "priority": "/api/3/picklists/2b563c61-ae2c-41c0-a85a-c9709585e3f2",
          "debug": false,
          "remoteExecutableFlag": false,
          "@type": "Workflow",
          "name": "Block Source IP in Palo Alto Firewall",
          "importedBy": [],
          "triggerLimit": null,
          "aliasName": null
        },
        {
          "description": "Creates a Lookup Table named \"AllowedDomainAdmins\" for the automated removal of non-authorized users being added to the Windows Domain Admins Group. To execute the playbook, define a schedule for the playbook to run and execute it once.\nIn Resources / Lookup Tables / \"AllowedDomainAdmins\", enter or upload the list of Allowed Domain Admins\n\nConfiguration\n\nThis playbook is used by the \"Remove & Disable new Domain Administrator account\" playbook.\n\nStep: Get All Lookup Tables, Create Lookup Table – Using the FortiSIEM Connector define the Target \"supervisor-agent\"",
          "synchronous": false,
          "isPrivate": false,
          "parameters": null,
          "recordTags": [],
          "steps": [
            {
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "size": 100,
                  "stat": 0
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "get_all_lookup_tables",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "50",
              "left": "699",
              "name": "Get All Lookup Tables",
              "status": null,
              "uuid": "81e90b4f-9d42-4cc3-86d8-b6bf05151449",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "__triggerLimit": true,
                "step_variables": {
                  "input": {
                    "params": []
                  }
                },
                "triggerOnSource": true,
                "triggerOnReplicate": false
              },
              "description": null,
              "top": "50",
              "left": "300",
              "name": "Start",
              "status": null,
              "uuid": "a1319693-b8d6-4ed9-afe4-24255e0b1990",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/b348f017-9a94-471f-87f8-ce88b6a7ad62",
              "group": null
            },
            {
              "arguments": {
                "conditions": [
                  {
                    "option": "No",
                    "step_iri": "/api/3/workflow_steps/d853bb92-9c0d-4476-9be4-f2e85912eb06",
                    "condition": "{{vars.queryResult is false}}",
                    "step_name": "Create Lookup Table"
                  },
                  {
                    "option": "Yes",
                    "step_iri": "/api/3/workflow_steps/863fec41-3808-4bdd-8b42-b9978aab82e8",
                    "condition": "{{vars.queryResult is true}}",
                    "step_name": "Return Output"
                  }
                ]
              },
              "description": null,
              "top": "30",
              "left": "1768",
              "name": "Lookup Table Exists",
              "status": null,
              "uuid": "6ed3f886-dfa0-4c16-973b-57d08b4f4acb",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/12254cf5-5db7-4b1a-8cb1-3af081924b28",
              "group": null
            },
            {
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "name": "AllowedDomainAdmins",
                  "columnList": [
                    {
                      "key": true,
                      "name": "adminName",
                      "type": "STRING"
                    }
                  ],
                  "description": "List of Allowed Domain Admins to be used with the Playbook: Domain Admins",
                  "organizationName": "Super"
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "create_lookup_table",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "49",
              "left": "2028",
              "name": "Create Lookup Table",
              "status": null,
              "uuid": "d853bb92-9c0d-4476-9be4-f2e85912eb06",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "allTables": "{{ vars.steps[\"Get All Lookup Tables\"].data.data }}"
              },
              "description": null,
              "top": "50",
              "left": "1055",
              "name": "Capture All Tables Data",
              "status": null,
              "uuid": "9e957ef4-73ea-4dbd-82b5-9d963bf8c100",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "queryResult": "{{ vars.allTables | json_query('[?name == `AllowedDomainAdmins`]') | length > 0}}"
              },
              "description": null,
              "top": "50",
              "left": "1404",
              "name": "Find AllowedDomainAdmins",
              "status": null,
              "uuid": "73f8c952-d1d3-42e7-9214-affa9da1636f",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "output": "Lookup Table \"AllowedDomainAdmins\" already exists!, nothing to do"
              },
              "description": null,
              "top": "212",
              "left": "1856",
              "name": "Return Output",
              "status": null,
              "uuid": "863fec41-3808-4bdd-8b42-b9978aab82e8",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            }
          ],
          "routes": [
            {
              "@type": "WorkflowRoute",
              "name": "Start->Get All Lookup Tables",
              "targetStep": "/api/3/workflow_steps/81e90b4f-9d42-4cc3-86d8-b6bf05151449",
              "sourceStep": "/api/3/workflow_steps/a1319693-b8d6-4ed9-afe4-24255e0b1990",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "10f4def5-c7ca-4b30-9c79-c0c1803af592"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Get All Lookup Tables->Capture All Tables Data",
              "targetStep": "/api/3/workflow_steps/9e957ef4-73ea-4dbd-82b5-9d963bf8c100",
              "sourceStep": "/api/3/workflow_steps/81e90b4f-9d42-4cc3-86d8-b6bf05151449",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "79b45e8e-80af-4dbe-8c9c-4dae7174fb7d"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Capture All Tables Data->Find AllowedDomainAdmins",
              "targetStep": "/api/3/workflow_steps/73f8c952-d1d3-42e7-9214-affa9da1636f",
              "sourceStep": "/api/3/workflow_steps/9e957ef4-73ea-4dbd-82b5-9d963bf8c100",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "3df68f1b-f25f-4bbe-a4f7-db92cfc99afa"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Find AllowedDomainAdmins->Lookup Table Exists",
              "targetStep": "/api/3/workflow_steps/6ed3f886-dfa0-4c16-973b-57d08b4f4acb",
              "sourceStep": "/api/3/workflow_steps/73f8c952-d1d3-42e7-9214-affa9da1636f",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "6144f6c1-2177-4cb1-a330-05d6a07e9926"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Lookup Table Exists->Create Lookup Table",
              "targetStep": "/api/3/workflow_steps/d853bb92-9c0d-4476-9be4-f2e85912eb06",
              "sourceStep": "/api/3/workflow_steps/6ed3f886-dfa0-4c16-973b-57d08b4f4acb",
              "label": "No",
              "isExecuted": false,
              "group": null,
              "uuid": "c7533820-f5ce-4153-af5c-7b925ac160f9"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Lookup Table Exists->Return Output",
              "targetStep": "/api/3/workflow_steps/863fec41-3808-4bdd-8b42-b9978aab82e8",
              "sourceStep": "/api/3/workflow_steps/6ed3f886-dfa0-4c16-973b-57d08b4f4acb",
              "label": "Yes",
              "isExecuted": false,
              "group": null,
              "uuid": "b5472595-b740-4295-9e81-9cf38efcfd2b"
            }
          ],
          "isActive": false,
          "groups": [],
          "tag": null,
          "uuid": "8ac70e15-9921-46ab-9cae-447d278e0bcc",
          "triggerStep": "/api/3/workflow_steps/a1319693-b8d6-4ed9-afe4-24255e0b1990",
          "singleRecordExecution": false,
          "priority": "/api/3/picklists/2b563c61-ae2c-41c0-a85a-c9709585e3f2",
          "debug": false,
          "remoteExecutableFlag": false,
          "@type": "Workflow",
          "name": "Config - Enterprise - Create AllowedDomainAdmins Lookup Table",
          "importedBy": [],
          "triggerLimit": null,
          "aliasName": null
        },
        {
          "description": "This playbook is used by the \"Active Remove & Disable new Domain Adminstrator account\" playbook.\n\nConfiguration\n\nCreate a Lookup Table named \"AllowedDomainAdmins\" belonging to the [DEFINE_ORG__NAME] Org for the automated removal of non authorized users being added to the Domain Admins Group Use Case Example.\nIn the final step of the playbook and in the FortiSIEM Connector, change the Organisation Name from [DEFINE_ORG__NAME] to the correct Organisation Name",
          "synchronous": false,
          "isPrivate": false,
          "parameters": null,
          "recordTags": [],
          "steps": [
            {
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "name": "AllowedDomainAdmins",
                  "columnList": [
                    {
                      "key": true,
                      "name": "adminName",
                      "type": "STRING"
                    }
                  ],
                  "description": "List of Allowed Domain Admins to be used with the Playbook: Domain Admins",
                  "organizationName": "DEFINE_ORG__NAME"
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "create_lookup_table",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "49",
              "left": "2028",
              "name": "Create Lookup Table",
              "status": null,
              "uuid": "a6c8f59a-8524-4a13-9505-f77066620679",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "__triggerLimit": true,
                "step_variables": {
                  "input": {
                    "params": []
                  }
                },
                "triggerOnSource": true,
                "triggerOnReplicate": false
              },
              "description": null,
              "top": "50",
              "left": "300",
              "name": "Start",
              "status": null,
              "uuid": "6c2d6d4b-ff28-4f5a-aca4-3a4a6166d94e",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/b348f017-9a94-471f-87f8-ce88b6a7ad62",
              "group": null
            },
            {
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "size": 100,
                  "stat": 0
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "get_all_lookup_tables",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "50",
              "left": "699",
              "name": "Get All Lookup Tables",
              "status": null,
              "uuid": "c28b0039-949c-4f95-a93c-133ca77e37c1",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "allTables": "{{ vars.steps[\"Get All Lookup Tables\"].data.data }}"
              },
              "description": null,
              "top": "50",
              "left": "1055",
              "name": "Capture All Tables Data",
              "status": null,
              "uuid": "12a031b2-4b80-4422-9c55-2cf3ab4bdd72",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "conditions": [
                  {
                    "option": "No",
                    "step_iri": "/api/3/workflow_steps/a6c8f59a-8524-4a13-9505-f77066620679",
                    "condition": "{{vars.queryResult is false}}",
                    "step_name": "Create Lookup Table"
                  },
                  {
                    "option": "Yes",
                    "step_iri": "/api/3/workflow_steps/625f64b8-5865-45a3-af65-5d0a6a7de183",
                    "condition": "{{vars.queryResult is true}}",
                    "step_name": "Return Output"
                  }
                ]
              },
              "description": null,
              "top": "30",
              "left": "1768",
              "name": "Lookup Table Exists",
              "status": null,
              "uuid": "811adab0-74cd-4c05-9398-c5b995384df0",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/12254cf5-5db7-4b1a-8cb1-3af081924b28",
              "group": null
            },
            {
              "arguments": {
                "queryResult": "{{ vars.allTables | json_query('[?name == `AllowedDomainAdmins`]') | length > 0}}"
              },
              "description": null,
              "top": "50",
              "left": "1404",
              "name": "Find AllowedDomainAdmins",
              "status": null,
              "uuid": "a7d2ef18-e750-46d0-88a9-a2dc2546f6f3",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "output": "Lookup Table \"AllowedDomainAdmins\" already exists!, nothing to do"
              },
              "description": null,
              "top": "212",
              "left": "1856",
              "name": "Return Output",
              "status": null,
              "uuid": "625f64b8-5865-45a3-af65-5d0a6a7de183",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            }
          ],
          "routes": [
            {
              "@type": "WorkflowRoute",
              "name": "Start->Get All Lookup Tables",
              "targetStep": "/api/3/workflow_steps/c28b0039-949c-4f95-a93c-133ca77e37c1",
              "sourceStep": "/api/3/workflow_steps/6c2d6d4b-ff28-4f5a-aca4-3a4a6166d94e",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "d9d3b22e-8dbc-4b1f-a492-534e70a1156b"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Get All Lookup Tables->Capture All Tables Data",
              "targetStep": "/api/3/workflow_steps/12a031b2-4b80-4422-9c55-2cf3ab4bdd72",
              "sourceStep": "/api/3/workflow_steps/c28b0039-949c-4f95-a93c-133ca77e37c1",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "7b86b8c3-5382-4084-b557-8430d3442059"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Capture All Tables Data->Find AllowedDomainAdmins",
              "targetStep": "/api/3/workflow_steps/a7d2ef18-e750-46d0-88a9-a2dc2546f6f3",
              "sourceStep": "/api/3/workflow_steps/12a031b2-4b80-4422-9c55-2cf3ab4bdd72",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "e4615644-4441-425f-bd4c-53c6c8ff33a9"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Lookup Table Exists->Create Lookup Table",
              "targetStep": "/api/3/workflow_steps/a6c8f59a-8524-4a13-9505-f77066620679",
              "sourceStep": "/api/3/workflow_steps/811adab0-74cd-4c05-9398-c5b995384df0",
              "label": "No",
              "isExecuted": false,
              "group": null,
              "uuid": "926f265d-57bd-4949-8a25-2d9c3bc9220d"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Find AllowedDomainAdmins->Lookup Table Exists",
              "targetStep": "/api/3/workflow_steps/811adab0-74cd-4c05-9398-c5b995384df0",
              "sourceStep": "/api/3/workflow_steps/a7d2ef18-e750-46d0-88a9-a2dc2546f6f3",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "ef710e66-9cf2-4d43-a7a7-f118729137b8"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Lookup Table Exists->Return Output",
              "targetStep": "/api/3/workflow_steps/625f64b8-5865-45a3-af65-5d0a6a7de183",
              "sourceStep": "/api/3/workflow_steps/811adab0-74cd-4c05-9398-c5b995384df0",
              "label": "Yes",
              "isExecuted": false,
              "group": null,
              "uuid": "93ad9eca-00df-40ab-85e3-ab1a45f5749d"
            }
          ],
          "isActive": false,
          "groups": [],
          "tag": null,
          "uuid": "4813ea66-e325-4b80-bf34-48becb71e83a",
          "triggerStep": "/api/3/workflow_steps/6c2d6d4b-ff28-4f5a-aca4-3a4a6166d94e",
          "singleRecordExecution": false,
          "priority": "/api/3/picklists/2b563c61-ae2c-41c0-a85a-c9709585e3f2",
          "debug": false,
          "remoteExecutableFlag": false,
          "@type": "Workflow",
          "name": "Config - SP - Create AllowedDomainAdmins Lookup Table",
          "importedBy": [],
          "triggerLimit": null,
          "aliasName": null
        },
        {
          "description": "This playbook will disable a compromised User account. The playbook will ask the user to confirm if they need to block the user, if confirmed the Incident will also be set to a True Positive, else will be set to a False Positive.\n\nConfiguration\n\nConfirm that the correct connector configuration is used for each connector step:\n\nStep: Reset Password – Active Director Connector. Requires LDAPS, LDAP is not supported. Select the Target that has connectivity to the Active Directory Server.\nStep: Comment Incident- Using the FortiSIEM Connector define the Target \"supervisor-agent\"",
          "synchronous": false,
          "isPrivate": false,
          "parameters": [],
          "recordTags": [
            "Super",
            "User Account Change",
            "Brute Force Logon",
            "Suspicious Logon"
          ],
          "steps": [
            {
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "id": "{{ vars.incident_id }}",
                  "comment_text": "Account {{ vars.asset }} has been disabled, need to investigate suspicious activity about the Account in the past X weeks."
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "clear_incident",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "1031",
              "left": "464",
              "name": "Clear Incident",
              "status": null,
              "uuid": "f7ac51db-5271-4053-b2e0-19728f368e35",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "name": "Active Directory",
                "config": "",
                "params": {
                  "search_attr_name": "SamAccount Name",
                  "search_attr_value": "{{ vars.asset }}"
                },
                "version": "2.4.0",
                "connector": "activedirectory",
                "operation": "disable_user_account",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "751",
              "left": "464",
              "name": "Disable Account",
              "status": null,
              "uuid": "4fa5f8c9-b2af-40c7-bf78-d5d896cade5f",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "@id": "/api/workflow/events/de983a69-9e4b-4151-aee2-f712436361ee/",
                "tag": null,
                "name": "When an incident is created",
                "poll": null,
                "type": [
                  "PUSH"
                ],
                "uuid": "de983a69-9e4b-4151-aee2-f712436361ee",
                "@type": "ApplicationEvent",
                "agentId": "421187_deploy_10067",
                "event_id": "fortinet-fortisiem.get_incidents_created",
                "schedule": null,
                "start_time": null,
                "description": "Run the playbook when a FortiSIEM incident is created",
                "sample_data": [
                  {
                    "count": 2,
                    "customer": "TCL",
                    "eventName": "Sudden Increase in User Login Volume",
                    "eventType": "PH_RULE_USER_MON_SUDDEN_LOGIN_VOLUME_CHANGE",
                    "incidentId": 3912,
                    "incidentSrc": {
                      "computer": ""
                    },
                    "incidentReso": 1,
                    "eventSeverity": 7,
                    "incidentRptIp": "10.10.10.10",
                    "incidentTitle": "Sudden logon volume increase for $computer to root on qa-sys1",
                    "incidentDetail": "",
                    "incidentStatus": 0,
                    "incidentTarget": {
                      "user": "root",
                      "destName": "qa-sys1"
                    },
                    "eventSeverityCat": "MEDIUM",
                    "incidentLastSeen": 1708888260000,
                    "incidentFirstSeen": 1708801860000,
                    "incidentStatusStr": "active",
                    "incidentRptDevName": "HOST-10.10.10.10",
                    "phIncidentCategory": 4,
                    "incidentClearedTime": 0,
                    "phSubIncidentCategory": "Behavioral Anomaly"
                  }
                ],
                "installed_by": "SOLUTION_PACK",
                "createUser_id": null,
                "modifyUser_id": null,
                "connector_icon": "data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAIAAAD8GO2jAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3hpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ4IDc5LjE2NDAzNiwgMjAxOS8wOC8xMy0wMTowNjo1NyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo1MDNhYTZiMy0zYzEzLTQ5YzEtODNiZi00MThjZWIxM2VhNTIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6OTU3MkQ4QjkzRUFFMTFFQUJCQjJCRDNGMkZEOEUzMEUiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6OTU3MkQ4QjgzRUFFMTFFQUJCQjJCRDNGMkZEOEUzMEUiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKE1hY2ludG9zaCkiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo0MjI1MGJmZi03MjQyLTRhNDItOTA3Ny1hYThiOTk5Yjk3YTIiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NTAzYWE2YjMtM2MxMy00OWMxLTgzYmYtNDE4Y2ViMTNlYTUyIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+SVYIEAAABGVJREFUeNpi/P//PwMtARMDjQHNLWDBFHrz9v2Va3eYmZkZGEgIvT9//qqpyEtLiaOJM6LFAdD01q7ZxoaaQoL8f//9w28oIwMjExPTv3//GBkZv3z9euTYhZL8eHk5KXw+uHnrgZiYcEyELxmh8f7DlwuXbqBZgB4HjEyMrKwsRJo4Z+E6C5vwjVv2QR3LwsLEzEQ4kuGBRjCIZs1dffLovi07DqFpJGABMGSB5Io1263tIleu3YEsdfX6nd37jj94+PTv33+9kxZZWxn1TuqtKkklLRUBYwxIrt+87+TRgw3ffsjLSlqY6b989Ta3pP3u3cfi4sLv338COjbQ36W/o5ScZPrvPyhkmmuzDfU1tTQUgSGwYcv+o8fPa2gobVo9+d2Hj2ysrJV1E+7df0xURP1HBUdPnO+aMB9NsHfyIlPbCCDj3fuPuqaBd+8//v79h65ZEFAxsrJZ89du2rYfTS9ROfnzpy92tiZg1zCIS4gAkxkHB7uOlsq1G/eoU1SIigrfvvMIyODkZLe3MRETEQKy7957/Pr1O6Abnz1//fHjZ4os8HSzPnT07PzFG4ChLyMlDkwFwEADeuLnz19xqdWm9pG+obnfv/9kZWEmx4Jfv37PmLMqIzl0yozlwdGFDx8/9w3NKSluMzXWaajO8vN2ePb05fMXb/7+/QtJfoRTETL4/edPWW2/rpZqcnxgQXbMgiUbN209kBgXALRm2oxlHq7WoYFuJw4sBRZcPDxcv37/IcECYKm3cs3OC5dvWpjpJccFAkXExYQTYvxfvXmfEh8kKy3uG5iVW9R2YOd8c1M90pJp94QFQEZj+3SgmeoGvsDCEiIFLDlScxo4+fTnLlwP5NY2T2VgUIpNqQIGDmnJ9D+4GrC1MtI3sQoP8fiP5JbXb95///z11Zt3QF5VaYqLt/PiOcvmL9lIWk6GAEc7sxNHVnCwsyHSAxPTzEl1eZnRVub6QC5Qakp/VfrPnzzcnCRYAKk9IGxk0yFATFQIiOBcdVWFA7sXwrnMTEzA4CJggYy0xIM1O4+fvMDNzQkMfMIZlYkJUkoDU/PFyzeT4gIIVJlAAFR38fItNjYWkqqzX79/qyrJWZobELZgiDdb3r17d+XKFUZmZg0xUcEPn/98+sGmJHnz1+8Xz55JSEj8+P799evXYuLifHx8d+7c5ubmUVJSun37FisLKxMzM1Cvrq6ujIwMPgtOnDg+YUK/lrFxrqg8DwMLo7Liz/lrpry69/bDe3Y2Nn0Dg8+fPsnJy58+dVpLWwuoftmypS+eP4+IjPry5fOF8xf09PQI+ICJiTkoKNjeyUny8s3ftx6wfvryj5UJ6PbI2NhjR4+oqarx8vGxsbGdPXPW1dXt+/fvVy5fYWfn+P7tm6amJgc7h7g4oYYXUA87Ozsw8TH8+P73xev/338xSQp9ZmLh5+P78uULUDGwxQdqZn35AgwlIPfz588fP34EZnIJSUlgJuDh4QE3CYdTKgIIMAAEe1lyT/xWdwAAAABJRU5ErkJggg==",
                "connector_name": "fortinet-fortisiem",
                "step_variables": {
                  "input": {
                    "params": {}
                  }
                },
                "connector_label": "Fortinet FortiSIEM",
                "exit_if_running": false,
                "batch_preference": 0,
                "connector_action": "get_incidents",
                "connector_mapping": {
                  "datetime": {
                    "to": "timeTo",
                    "from": "timeFrom"
                  },
                  "response": "{{data.data}}"
                },
                "connector_version": "5.3.0",
                "trigger_condition": {
                  "sort": [],
                  "limit": 30,
                  "logic": "AND",
                  "filters": [
                    {
                      "type": "",
                      "field": "incidentTitle",
                      "value": "batatas",
                      "operator": "eq",
                      "evaluation": false,
                      "originalValue": "batatas"
                    }
                  ]
                },
                "connector_action_inputs": {}
              },
              "description": null,
              "top": "268",
              "left": "300",
              "name": "When an incident is created",
              "status": null,
              "uuid": "9eca94b6-e453-477f-b4f7-999c405b4689",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/b348f017-9a94-471f-87f8-ce88b6a7ad62",
              "group": null
            },
            {
              "arguments": {
                "asset": "{% if  vars.input.records[0].targetDict.targetUser is defined and vars.input.records[0].targetDict.targetUser %} {{ vars.input.records[0].targetDict.targetUser }} {% else %} {{ vars.input.records[0].targetDict.user }} {% endif %}",
                "rptDevName": "{{ vars.input.records[0].incidentRptDevName }}",
                "incident_id": "{{ vars.input.records[0].incidentId }}",
                "incident_data": "{{ vars.input.records[0] }}",
                "is_asset_email": "{{ \"vars.asset\"| regex_findall(\"^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$\") }}"
              },
              "description": null,
              "top": "268",
              "left": "648",
              "name": "Configuration",
              "status": null,
              "uuid": "8accc7bb-72eb-455a-b074-ee8de050cbd1",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "id": "{{ vars.incident_id }}",
                  "comment_text": "{{ vars.comment }}"
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "incident_comment",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "515",
              "left": "648",
              "name": "Add Summary",
              "status": null,
              "uuid": "b7e49e50-a7cb-491f-9c59-758b0b580b8e",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "id": "{{ vars.incident_id }}",
                  "comment_text": " ** Disable Active Directory Account Approved ** \n\nAccount {{ vars.asset }} has been disabled at the Active  with {{ vars.steps[\"Disable Account\"].status }}"
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "incident_comment",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "877",
              "left": "464",
              "name": "Add Blocked Comment",
              "status": null,
              "uuid": "09b6ec3f-736c-453e-a8ba-5519c67e4b98",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "type": "InputBased",
                "input": {
                  "schema": {
                    "title": "Confirm User Disable at AD",
                    "description": "<p>Request for IncidentID: {{ vars.incident_id }}</p>\n<p>Title: {{ vars.incident_data.incidentTitle }}</p>\n<p>Reason: {{ vars.incident_data.attackTechniqueId }} - {{ (vars.incident_data.attackTechnique|from_json)[0].name if vars.incident_data.attackTechnique }}</p>\n<p>Please review {{ vars.asset }} and confirm disabling this account at the Active Directory.</p>",
                    "inputVariables": []
                  }
                },
                "is_approval": false,
                "owner_detail": {
                  "isAssigned": false,
                  "assignedToField": null,
                  "assignedToPerson": []
                },
                "response_mapping": {
                  "options": [
                    {
                      "option": "Approve",
                      "primary": false,
                      "step_iri": "api/3/workflow_steps/4fa5f8c9-b2af-40c7-bf78-d5d896cade5f",
                      "step_uuid": "/api/3/workflow_steps/4fa5f8c9-b2af-40c7-bf78-d5d896cade5f"
                    },
                    {
                      "option": "Cancel",
                      "primary": false,
                      "step_iri": "api/3/workflow_steps/9fd7598c-c3d2-47e3-923f-94e7bfd06deb",
                      "step_uuid": "/api/3/workflow_steps/9fd7598c-c3d2-47e3-923f-94e7bfd06deb"
                    }
                  ],
                  "connecteStepsLength": 0,
                  "customSuccessMessage": "Awaiting Playbook resumed successfully"
                },
                "email_notification": {
                  "enabled": false,
                  "smtpParameters": {}
                },
                "inline_channel_list": [],
                "external_channel_list": [],
                "unauthenticated_input": false
              },
              "description": null,
              "top": "640",
              "left": "648",
              "name": "Approve Task",
              "status": null,
              "uuid": "8e20cf80-8544-4820-809a-c89375bfbaa7",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/fc04082a-d7dc-4299-96fb-6837b1baa0fe",
              "group": null
            },
            {
              "arguments": {
                "comment": "{% if vars.input.records|length > 0 %}\n{# Access the first record #}\n{% set incident = vars.input.records[0] %}\n\n{# Format timestamps to readable dates using Arrow #}\n{% set first_seen = arrow.get(incident.incidentFirstSeen / 1000).to(\"UTC\").format(\"YYYY-MM-DD HH:mm:ss ZZ\") %}\n{% set last_seen = arrow.get(incident.incidentLastSeen / 1000).to(\"UTC\").format(\"YYYY-MM-DD HH:mm:ss ZZ\") %}\n\n# Security Incident Report\n\n## Summary\n**Incident ID:** {{ incident.incidentId }}  \n**Title:** {{ incident.incidentTitle }}  \n**Status:** {{ \"🔴 Active\" if incident.incidentStatus == 0 else \"🟢 Resolved\" }}  \n**Severity:** {{ incident.eventSeverityCat }} ({{ incident.eventSeverity }}/10)\n\n## Threat Details\n| Attribute | Value |\n|-----------|-------|\n| **Compromised User** | `{{ vars.asset }}` |\n| **Attack Tactic** | {{ incident.attackTactic }} |\n| **Attack Technique** | {{ incident.attackTechniqueId }} - {{ (incident.attackTechnique|from_json)[0].name if incident.attackTechnique }} |\n\n## Timeline\n| Event | Timestamp |\n|-------|-----------|\n| **First Seen** | {{ first_seen }} |\n| **Last Seen** | {{ last_seen }} |\n{% if incident.incidentClearedTime > 0 %}| **Cleared** | {{ arrow.get(incident.incidentClearedTime / 1000).to(\"UTC\").format(\"YYYY-MM-DD HH:mm:ss ZZ\") }} |{% endif %}\n\n## Reporting Information\n| Field | Value |\n|-------|-------|\n| **Reporting Device** | {{ incident.incidentRptDevName }} ({{ incident.incidentRptIp }}) |\n| **Customer** | {{ incident.customer }}\n\n{% else %}\n## No Security Incidents Found\n\nNo security incidents were found in the provided data.\n{% endif %}"
              },
              "description": null,
              "top": "391",
              "left": "648",
              "name": "Comment String0",
              "status": null,
              "uuid": "c19a9b0c-b5d5-43c9-9c2f-1d2c4a601434",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "id": "{{ vars.incident_id }}",
                  "comment_text": "\n** User Account Disable Canceled ** \n\nAccount {{ vars.asset }} has not been disabled, by {{ vars.serialized_request_attrs.username }}"
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "incident_comment",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "752",
              "left": "844",
              "name": "Not Blocked",
              "status": null,
              "uuid": "9fd7598c-c3d2-47e3-923f-94e7bfd06deb",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "comments": "",
                  "severity": "",
                  "incidentId": "{{ vars.incident_id }}",
                  "resolution": "True Positive",
                  "actionStatus": "",
                  "incidentStatus": "Manually Cleared",
                  "externalTicketId": "",
                  "externalTicketType": "",
                  "externalTicketState": "",
                  "externalAssignedUser": ""
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "update_incident",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "1158",
              "left": "464",
              "name": "Close TP",
              "status": null,
              "uuid": "086774c8-bbcb-47e5-8ff0-ada5d19760e8",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            }
          ],
          "routes": [
            {
              "@type": "WorkflowRoute",
              "name": "9372fbb3-5a42-4b74-a5f1-3f74b5ffdedb",
              "targetStep": "/api/3/workflow_steps/8accc7bb-72eb-455a-b074-ee8de050cbd1",
              "sourceStep": "/api/3/workflow_steps/9eca94b6-e453-477f-b4f7-999c405b4689",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "02a3c55f-3199-4912-a829-5b0466ba6dfc"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Configuration->Comment String0",
              "targetStep": "/api/3/workflow_steps/c19a9b0c-b5d5-43c9-9c2f-1d2c4a601434",
              "sourceStep": "/api/3/workflow_steps/8accc7bb-72eb-455a-b074-ee8de050cbd1",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "1e5c3b28-c4b0-4802-8431-57e6a46f28fb"
            },
            {
              "@type": "WorkflowRoute",
              "name": "aaea4c07-b461-4d9e-9ff3-cf166d3f153e",
              "targetStep": "/api/3/workflow_steps/8e20cf80-8544-4820-809a-c89375bfbaa7",
              "sourceStep": "/api/3/workflow_steps/b7e49e50-a7cb-491f-9c59-758b0b580b8e",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "b70594ae-2246-472d-8f24-76c453d85063"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Approve Task->Not Blocked",
              "targetStep": "/api/3/workflow_steps/9fd7598c-c3d2-47e3-923f-94e7bfd06deb",
              "sourceStep": "/api/3/workflow_steps/8e20cf80-8544-4820-809a-c89375bfbaa7",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "4110d3f3-9163-4c2d-965d-ebef9c6be4ae"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Clear Incident->Close TP",
              "targetStep": "/api/3/workflow_steps/086774c8-bbcb-47e5-8ff0-ada5d19760e8",
              "sourceStep": "/api/3/workflow_steps/f7ac51db-5271-4053-b2e0-19728f368e35",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "ff19ab65-ae2e-4d4d-9c5e-37f73c6ff0ba"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Add Blocked Comment->Clear Incident",
              "targetStep": "/api/3/workflow_steps/f7ac51db-5271-4053-b2e0-19728f368e35",
              "sourceStep": "/api/3/workflow_steps/09b6ec3f-736c-453e-a8ba-5519c67e4b98",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "229d4861-445e-4ddd-93d9-dbce7fe0b35d"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Approve Task->Disable Account",
              "targetStep": "/api/3/workflow_steps/4fa5f8c9-b2af-40c7-bf78-d5d896cade5f",
              "sourceStep": "/api/3/workflow_steps/8e20cf80-8544-4820-809a-c89375bfbaa7",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "2592da29-a01c-41ab-baa3-809e546559f0"
            },
            {
              "@type": "WorkflowRoute",
              "name": "5b7e2aa0-1739-4760-bd06-b9bfaca14e09",
              "targetStep": "/api/3/workflow_steps/09b6ec3f-736c-453e-a8ba-5519c67e4b98",
              "sourceStep": "/api/3/workflow_steps/4fa5f8c9-b2af-40c7-bf78-d5d896cade5f",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "e75169bd-1c22-4ece-9794-e8ac0b390a72"
            },
            {
              "@type": "WorkflowRoute",
              "name": "19052ad2-37fb-4899-a1b8-795bc8ae35a6",
              "targetStep": "/api/3/workflow_steps/b7e49e50-a7cb-491f-9c59-758b0b580b8e",
              "sourceStep": "/api/3/workflow_steps/c19a9b0c-b5d5-43c9-9c2f-1d2c4a601434",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "2d322b1e-fce7-4796-a486-e5eac4a67222"
            }
          ],
          "isActive": false,
          "groups": [],
          "tag": null,
          "uuid": "d298749c-2a6d-4123-8d6b-0e8a3c829d31",
          "triggerStep": "/api/3/workflow_steps/9eca94b6-e453-477f-b4f7-999c405b4689",
          "singleRecordExecution": false,
          "priority": "/api/3/picklists/2b563c61-ae2c-41c0-a85a-c9709585e3f2",
          "debug": false,
          "remoteExecutableFlag": false,
          "@type": "Workflow",
          "name": "Disable User in Active Directory",
          "importedBy": [],
          "triggerLimit": null,
          "aliasName": null
        },
        {
          "description": "This playbook will disable a user account on a Linux server. The playbook will ask the user to confirm if they need to disable the account, if confirmed the Incident will also be set to a True Positive, else will be set to a False Positive.\nConfiguration\n\nSteps: Add Summary, Not Blocked, Add Blocked Comment, Clear Incident, Close TP - FortiSIEM connector and using the Target \"supervisor-agent\"\nStep: Disable Account – Using the SSH Connector define the Target",
          "synchronous": false,
          "isPrivate": false,
          "parameters": [],
          "recordTags": [
            "Super",
            "User Account Change",
            "Brute Force Logon",
            "Suspicious Logon"
          ],
          "steps": [
            {
              "arguments": {
                "@id": "/api/workflow/events/de983a69-9e4b-4151-aee2-f712436361ee/",
                "tag": null,
                "name": "When an incident is created",
                "poll": null,
                "type": [
                  "PUSH"
                ],
                "uuid": "de983a69-9e4b-4151-aee2-f712436361ee",
                "@type": "ApplicationEvent",
                "agentId": "421187_deploy_10067",
                "event_id": "fortinet-fortisiem.get_incidents_created",
                "schedule": null,
                "start_time": null,
                "description": "Run the playbook when a FortiSIEM incident is created",
                "sample_data": [
                  {
                    "count": 2,
                    "customer": "TCL",
                    "eventName": "Sudden Increase in User Login Volume",
                    "eventType": "PH_RULE_USER_MON_SUDDEN_LOGIN_VOLUME_CHANGE",
                    "incidentId": 3912,
                    "incidentSrc": {
                      "computer": ""
                    },
                    "incidentReso": 1,
                    "eventSeverity": 7,
                    "incidentRptIp": "10.10.10.10",
                    "incidentTitle": "Sudden logon volume increase for $computer to root on qa-sys1",
                    "incidentDetail": "",
                    "incidentStatus": 0,
                    "incidentTarget": {
                      "user": "root",
                      "destName": "qa-sys1"
                    },
                    "eventSeverityCat": "MEDIUM",
                    "incidentLastSeen": 1708888260000,
                    "incidentFirstSeen": 1708801860000,
                    "incidentStatusStr": "active",
                    "incidentRptDevName": "HOST-10.10.10.10",
                    "phIncidentCategory": 4,
                    "incidentClearedTime": 0,
                    "phSubIncidentCategory": "Behavioral Anomaly"
                  }
                ],
                "installed_by": "SOLUTION_PACK",
                "createUser_id": null,
                "modifyUser_id": null,
                "connector_icon": "data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAIAAAD8GO2jAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3hpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ4IDc5LjE2NDAzNiwgMjAxOS8wOC8xMy0wMTowNjo1NyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo1MDNhYTZiMy0zYzEzLTQ5YzEtODNiZi00MThjZWIxM2VhNTIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6OTU3MkQ4QjkzRUFFMTFFQUJCQjJCRDNGMkZEOEUzMEUiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6OTU3MkQ4QjgzRUFFMTFFQUJCQjJCRDNGMkZEOEUzMEUiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKE1hY2ludG9zaCkiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo0MjI1MGJmZi03MjQyLTRhNDItOTA3Ny1hYThiOTk5Yjk3YTIiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NTAzYWE2YjMtM2MxMy00OWMxLTgzYmYtNDE4Y2ViMTNlYTUyIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+SVYIEAAABGVJREFUeNpi/P//PwMtARMDjQHNLWDBFHrz9v2Va3eYmZkZGEgIvT9//qqpyEtLiaOJM6LFAdD01q7ZxoaaQoL8f//9w28oIwMjExPTv3//GBkZv3z9euTYhZL8eHk5KXw+uHnrgZiYcEyELxmh8f7DlwuXbqBZgB4HjEyMrKwsRJo4Z+E6C5vwjVv2QR3LwsLEzEQ4kuGBRjCIZs1dffLovi07DqFpJGABMGSB5Io1263tIleu3YEsdfX6nd37jj94+PTv33+9kxZZWxn1TuqtKkklLRUBYwxIrt+87+TRgw3ffsjLSlqY6b989Ta3pP3u3cfi4sLv338COjbQ36W/o5ScZPrvPyhkmmuzDfU1tTQUgSGwYcv+o8fPa2gobVo9+d2Hj2ysrJV1E+7df0xURP1HBUdPnO+aMB9NsHfyIlPbCCDj3fuPuqaBd+8//v79h65ZEFAxsrJZ89du2rYfTS9ROfnzpy92tiZg1zCIS4gAkxkHB7uOlsq1G/eoU1SIigrfvvMIyODkZLe3MRETEQKy7957/Pr1O6Abnz1//fHjZ4os8HSzPnT07PzFG4ChLyMlDkwFwEADeuLnz19xqdWm9pG+obnfv/9kZWEmx4Jfv37PmLMqIzl0yozlwdGFDx8/9w3NKSluMzXWaajO8vN2ePb05fMXb/7+/QtJfoRTETL4/edPWW2/rpZqcnxgQXbMgiUbN209kBgXALRm2oxlHq7WoYFuJw4sBRZcPDxcv37/IcECYKm3cs3OC5dvWpjpJccFAkXExYQTYvxfvXmfEh8kKy3uG5iVW9R2YOd8c1M90pJp94QFQEZj+3SgmeoGvsDCEiIFLDlScxo4+fTnLlwP5NY2T2VgUIpNqQIGDmnJ9D+4GrC1MtI3sQoP8fiP5JbXb95///z11Zt3QF5VaYqLt/PiOcvmL9lIWk6GAEc7sxNHVnCwsyHSAxPTzEl1eZnRVub6QC5Qakp/VfrPnzzcnCRYAKk9IGxk0yFATFQIiOBcdVWFA7sXwrnMTEzA4CJggYy0xIM1O4+fvMDNzQkMfMIZlYkJUkoDU/PFyzeT4gIIVJlAAFR38fItNjYWkqqzX79/qyrJWZobELZgiDdb3r17d+XKFUZmZg0xUcEPn/98+sGmJHnz1+8Xz55JSEj8+P799evXYuLifHx8d+7c5ubmUVJSun37FisLKxMzM1Cvrq6ujIwMPgtOnDg+YUK/lrFxrqg8DwMLo7Liz/lrpry69/bDe3Y2Nn0Dg8+fPsnJy58+dVpLWwuoftmypS+eP4+IjPry5fOF8xf09PQI+ICJiTkoKNjeyUny8s3ftx6wfvryj5UJ6PbI2NhjR4+oqarx8vGxsbGdPXPW1dXt+/fvVy5fYWfn+P7tm6amJgc7h7g4oYYXUA87Ozsw8TH8+P73xev/338xSQp9ZmLh5+P78uULUDGwxQdqZn35AgwlIPfz588fP34EZnIJSUlgJuDh4QE3CYdTKgIIMAAEe1lyT/xWdwAAAABJRU5ErkJggg==",
                "connector_name": "fortinet-fortisiem",
                "step_variables": {
                  "input": {
                    "params": {}
                  }
                },
                "connector_label": "Fortinet FortiSIEM",
                "exit_if_running": false,
                "batch_preference": 0,
                "connector_action": "get_incidents",
                "connector_mapping": {
                  "datetime": {
                    "to": "timeTo",
                    "from": "timeFrom"
                  },
                  "response": "{{data.data}}"
                },
                "connector_version": "5.3.0",
                "trigger_condition": {
                  "sort": [],
                  "limit": 30,
                  "logic": "AND",
                  "filters": [
                    {
                      "type": "",
                      "field": "incidentTitle",
                      "value": "batatas",
                      "operator": "eq",
                      "evaluation": false,
                      "originalValue": "batatas"
                    }
                  ]
                },
                "connector_action_inputs": {}
              },
              "description": null,
              "top": "268",
              "left": "300",
              "name": "When an incident is created",
              "status": null,
              "uuid": "365638a4-c787-484e-99d9-57ac2dcdf2f4",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/b348f017-9a94-471f-87f8-ce88b6a7ad62",
              "group": null
            },
            {
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "id": "{{ vars.incident_id }}",
                  "comment_text": "{{ vars.comment }}"
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "incident_comment",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "515",
              "left": "648",
              "name": "Add Summary",
              "status": null,
              "uuid": "46b09832-e7e0-4e26-9bdf-f13a1b5e0af9",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "name": "SSH",
                "config": "",
                "params": {
                  "cmd": "loginctl kill-user {{ vars.asset }}; usermod -L {{ vars.asset }}",
                  "allowed_exit": "-1,0,1",
                  "is_super_user": false
                },
                "version": "2.1.2",
                "connector": "ssh",
                "operation": "run_remote_command",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "753",
              "left": "464",
              "name": "Disable Account",
              "status": null,
              "uuid": "af479373-249b-43ca-94e0-08f859a571d2",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "comment": "{% if vars.input.records|length > 0 %}\n{# Access the first record #}\n{% set incident = vars.input.records[0] %}\n\n{# Format timestamps to readable dates using Arrow #}\n{% set first_seen = arrow.get(incident.incidentFirstSeen / 1000).to(\"UTC\").format(\"YYYY-MM-DD HH:mm:ss ZZ\") %}\n{% set last_seen = arrow.get(incident.incidentLastSeen / 1000).to(\"UTC\").format(\"YYYY-MM-DD HH:mm:ss ZZ\") %}\n\n# Security Incident Report\n\n## Summary\n**Incident ID:** {{ incident.incidentId }}  \n**Title:** {{ incident.incidentTitle }}  \n**Status:** {{ \"🔴 Active\" if incident.incidentStatus == 0 else \"🟢 Resolved\" }}  \n**Severity:** {{ incident.eventSeverityCat }} ({{ incident.eventSeverity }}/10)\n\n## Threat Details\n| Attribute | Value |\n|-----------|-------|\n| **Compromised User** | `{{ vars.asset }}` |\n| **Attack Tactic** | {{ incident.attackTactic }} |\n| **Attack Technique** | {{ incident.attackTechniqueId }} - {{ (incident.attackTechnique|from_json)[0].name if incident.attackTechnique }} |\n\n## Timeline\n| Event | Timestamp |\n|-------|-----------|\n| **First Seen** | {{ first_seen }} |\n| **Last Seen** | {{ last_seen }} |\n{% if incident.incidentClearedTime > 0 %}| **Cleared** | {{ arrow.get(incident.incidentClearedTime / 1000).to(\"UTC\").format(\"YYYY-MM-DD HH:mm:ss ZZ\") }} |{% endif %}\n\n## Reporting Information\n| Field | Value |\n|-------|-------|\n| **Reporting Device** | {{ incident.incidentRptDevName }} ({{ incident.incidentRptIp }}) |\n| **Customer** | {{ incident.customer }}\n\n{% else %}\n## No Security Incidents Found\n\nNo security incidents were found in the provided data.\n{% endif %}"
              },
              "description": null,
              "top": "391",
              "left": "648",
              "name": "Comment String0",
              "status": null,
              "uuid": "f23b5eb4-a95e-4fcc-809d-334efd9e7dcb",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "asset": "{{ vars.input.records[0].targetDict.user }}",
                "rptDevName": "{{ vars.input.records[0].incidentRptDevName }}",
                "incident_id": "{{ vars.input.records[0].incidentId }}",
                "incident_data": "{{ vars.input.records[0] }}"
              },
              "description": null,
              "top": "268",
              "left": "648",
              "name": "Configuration",
              "status": null,
              "uuid": "2429239c-f68c-4573-984d-c06efdefcdaa",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "id": "{{ vars.incident_id }}",
                  "comment_text": "\n**Disable User Account Approved**\n\nAccount {{ vars.asset }} has been disabled at the {{vars.rptDevName}} with {{ vars.steps[\"Disable Account\"].status }}"
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "incident_comment",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "877",
              "left": "464",
              "name": "Add Blocked Comment",
              "status": null,
              "uuid": "c882bfb3-5dd0-4076-aa66-a7b036d8ae6d",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "type": "InputBased",
                "input": {
                  "schema": {
                    "title": "Confirm User Disable at AD",
                    "description": "<p>Request for IncidentID: {{ vars.incident_id }}</p>\n<p>Title: {{ vars.incident_data.incidentTitle }}</p>\n<p>Reason: {{ vars.incident_data.attackTechniqueId }} - {{ (vars.incident_data.attackTechnique|from_json)[0].name if vars.incident_data.attackTechnique }}</p>\n<p>Please review {{ vars.asset }} and confirm disabling this account at {{ vars.rptDevName }}.</p>",
                    "inputVariables": []
                  }
                },
                "is_approval": false,
                "owner_detail": {
                  "isAssigned": false,
                  "assignedToField": null,
                  "assignedToPerson": []
                },
                "response_mapping": {
                  "options": [
                    {
                      "option": "Approve",
                      "primary": true,
                      "step_iri": "api/3/workflow_steps/af479373-249b-43ca-94e0-08f859a571d2",
                      "step_uuid": "/api/3/workflow_steps/af479373-249b-43ca-94e0-08f859a571d2"
                    },
                    {
                      "option": "Cancel",
                      "primary": false,
                      "step_iri": "api/3/workflow_steps/bbd064ab-a10e-4252-bca8-9dc5bef7fd67",
                      "step_uuid": "/api/3/workflow_steps/bbd064ab-a10e-4252-bca8-9dc5bef7fd67"
                    }
                  ],
                  "connecteStepsLength": 0,
                  "customSuccessMessage": "Awaiting Playbook resumed successfully"
                },
                "email_notification": {
                  "enabled": false,
                  "smtpParameters": {}
                },
                "inline_channel_list": [],
                "external_channel_list": [],
                "unauthenticated_input": false
              },
              "description": null,
              "top": "640",
              "left": "648",
              "name": "Approve Task",
              "status": null,
              "uuid": "e2e5b487-12cb-4e8f-b15c-e99c74e9ae18",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/fc04082a-d7dc-4299-96fb-6837b1baa0fe",
              "group": null
            },
            {
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "id": "{{ vars.incident_id }}",
                  "comment_text": "\n** User Account Disable Canceled ** \n\nAccount {{ vars.asset }} has not been disabled, by {{ vars.serialized_request_attrs.username }}"
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "incident_comment",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "752",
              "left": "844",
              "name": "Not Blocked",
              "status": null,
              "uuid": "bbd064ab-a10e-4252-bca8-9dc5bef7fd67",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "id": "{{ vars.incident_id }}",
                  "comment_text": "\nAccount {{ vars.asset }} has been disabled, need to investigate suspicious activity about the Account in the past X weeks.\n"
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "clear_incident",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "1031",
              "left": "464",
              "name": "Clear Incident",
              "status": null,
              "uuid": "bbfdbd59-995e-4f98-83c9-6b41872f595b",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "comments": "",
                  "severity": "",
                  "incidentId": "{{ vars.incident_id }}",
                  "resolution": "True Positive",
                  "actionStatus": "",
                  "incidentStatus": "Manually Cleared",
                  "externalTicketId": "",
                  "externalTicketType": "",
                  "externalTicketState": "",
                  "externalAssignedUser": ""
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "update_incident",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "1158",
              "left": "464",
              "name": "Close TP",
              "status": null,
              "uuid": "c7af765d-5d2f-4953-9dcf-5278bbf89e42",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            }
          ],
          "routes": [
            {
              "@type": "WorkflowRoute",
              "name": "9372fbb3-5a42-4b74-a5f1-3f74b5ffdedb",
              "targetStep": "/api/3/workflow_steps/2429239c-f68c-4573-984d-c06efdefcdaa",
              "sourceStep": "/api/3/workflow_steps/365638a4-c787-484e-99d9-57ac2dcdf2f4",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "22a873aa-f128-4610-84f0-555d79cb35ef"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Configuration->Comment String0",
              "targetStep": "/api/3/workflow_steps/f23b5eb4-a95e-4fcc-809d-334efd9e7dcb",
              "sourceStep": "/api/3/workflow_steps/2429239c-f68c-4573-984d-c06efdefcdaa",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "9365f816-d671-4cac-bb1d-db27eed7d4fe"
            },
            {
              "@type": "WorkflowRoute",
              "name": "aaea4c07-b461-4d9e-9ff3-cf166d3f153e",
              "targetStep": "/api/3/workflow_steps/e2e5b487-12cb-4e8f-b15c-e99c74e9ae18",
              "sourceStep": "/api/3/workflow_steps/46b09832-e7e0-4e26-9bdf-f13a1b5e0af9",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "c6a40555-0a50-48a7-b962-c6ff36bd5e24"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Approve Task->Not Blocked",
              "targetStep": "/api/3/workflow_steps/bbd064ab-a10e-4252-bca8-9dc5bef7fd67",
              "sourceStep": "/api/3/workflow_steps/e2e5b487-12cb-4e8f-b15c-e99c74e9ae18",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "ecb14f76-fe57-4478-8760-f95d7e5e9f57"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Add Blocked Comment->Clear Incident",
              "targetStep": "/api/3/workflow_steps/bbfdbd59-995e-4f98-83c9-6b41872f595b",
              "sourceStep": "/api/3/workflow_steps/c882bfb3-5dd0-4076-aa66-a7b036d8ae6d",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "2a48429a-bd0b-4d68-81f9-cc6495726049"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Clear Incident->Close TP",
              "targetStep": "/api/3/workflow_steps/c7af765d-5d2f-4953-9dcf-5278bbf89e42",
              "sourceStep": "/api/3/workflow_steps/bbfdbd59-995e-4f98-83c9-6b41872f595b",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "c93930b0-9efa-4889-9e0f-94089d233f77"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Approve Task->Disable Account",
              "targetStep": "/api/3/workflow_steps/af479373-249b-43ca-94e0-08f859a571d2",
              "sourceStep": "/api/3/workflow_steps/e2e5b487-12cb-4e8f-b15c-e99c74e9ae18",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "2989035d-098e-423a-a2b5-f6340705eda0"
            },
            {
              "@type": "WorkflowRoute",
              "name": "f6f3f974-6eca-4507-aa3f-b2860f1bc006",
              "targetStep": "/api/3/workflow_steps/c882bfb3-5dd0-4076-aa66-a7b036d8ae6d",
              "sourceStep": "/api/3/workflow_steps/af479373-249b-43ca-94e0-08f859a571d2",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "e5a458ae-e843-4ad2-b9ff-27bedb55e983"
            },
            {
              "@type": "WorkflowRoute",
              "name": "6b89ad4d-8e41-49be-8441-76114d2b3109",
              "targetStep": "/api/3/workflow_steps/46b09832-e7e0-4e26-9bdf-f13a1b5e0af9",
              "sourceStep": "/api/3/workflow_steps/f23b5eb4-a95e-4fcc-809d-334efd9e7dcb",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "3679dc95-d4dc-4547-b382-3261c9ed708c"
            }
          ],
          "isActive": false,
          "groups": [],
          "tag": null,
          "uuid": "d73e5d6f-e7b6-4d7d-a730-d17c1f2736dd",
          "triggerStep": "/api/3/workflow_steps/365638a4-c787-484e-99d9-57ac2dcdf2f4",
          "singleRecordExecution": false,
          "priority": "/api/3/picklists/2b563c61-ae2c-41c0-a85a-c9709585e3f2",
          "debug": false,
          "remoteExecutableFlag": false,
          "@type": "Workflow",
          "name": "Disable User in Linux",
          "importedBy": [],
          "triggerLimit": null,
          "aliasName": null
        },
        {
          "description": "This playbook will quarantine a compromised host for 12 Hours. The playbook will ask the user to confirm if they need to block the IP, if confirmed the Incident will also be set to a True Positive, else will be set to a False Positive.\n\nConfiguration\n\nConfirm that the correct connector configuration is used for each connector step:\nSteps: Add Summary, Not Blocked, Add Blocked Comment, Clear Incident, Close TP - FortiSIEM connector and using the Target \"supervisor-agent\"\nStep: Block IP – Using the FortiGate Connector define the Target",
          "synchronous": false,
          "isPrivate": false,
          "parameters": [],
          "recordTags": [
            "Brute Force Logon",
            "Network Discovery",
            "Traffic Anomaly",
            "ioc match",
            "Suspicious Collection Activity",
            "Suspicious Logon",
            "Initial Access",
            "Host Discovery",
            "Data Exfiltration",
            "Botnet Detected"
          ],
          "steps": [
            {
              "arguments": {
                "@id": "/api/workflow/events/de983a69-9e4b-4151-aee2-f712436361ee/",
                "tag": null,
                "name": "When an incident is created",
                "poll": null,
                "type": [
                  "PUSH"
                ],
                "uuid": "de983a69-9e4b-4151-aee2-f712436361ee",
                "@type": "ApplicationEvent",
                "agentId": "421187_deploy_10067",
                "event_id": "fortinet-fortisiem.get_incidents_created",
                "schedule": null,
                "start_time": null,
                "description": "Run the playbook when a FortiSIEM incident is created",
                "sample_data": [
                  {
                    "count": 2,
                    "customer": "TCL",
                    "eventName": "Sudden Increase in User Login Volume",
                    "eventType": "PH_RULE_USER_MON_SUDDEN_LOGIN_VOLUME_CHANGE",
                    "incidentId": 3912,
                    "incidentSrc": {
                      "computer": ""
                    },
                    "incidentReso": 1,
                    "eventSeverity": 7,
                    "incidentRptIp": "10.10.10.10",
                    "incidentTitle": "Sudden logon volume increase for $computer to root on qa-sys1",
                    "incidentDetail": "",
                    "incidentStatus": 0,
                    "incidentTarget": {
                      "user": "root",
                      "destName": "qa-sys1"
                    },
                    "eventSeverityCat": "MEDIUM",
                    "incidentLastSeen": 1708888260000,
                    "incidentFirstSeen": 1708801860000,
                    "incidentStatusStr": "active",
                    "incidentRptDevName": "HOST-10.10.10.10",
                    "phIncidentCategory": 4,
                    "incidentClearedTime": 0,
                    "phSubIncidentCategory": "Behavioral Anomaly"
                  }
                ],
                "installed_by": "SOLUTION_PACK",
                "createUser_id": null,
                "modifyUser_id": null,
                "connector_icon": "data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAIAAAD8GO2jAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3hpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ4IDc5LjE2NDAzNiwgMjAxOS8wOC8xMy0wMTowNjo1NyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo1MDNhYTZiMy0zYzEzLTQ5YzEtODNiZi00MThjZWIxM2VhNTIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6OTU3MkQ4QjkzRUFFMTFFQUJCQjJCRDNGMkZEOEUzMEUiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6OTU3MkQ4QjgzRUFFMTFFQUJCQjJCRDNGMkZEOEUzMEUiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKE1hY2ludG9zaCkiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo0MjI1MGJmZi03MjQyLTRhNDItOTA3Ny1hYThiOTk5Yjk3YTIiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NTAzYWE2YjMtM2MxMy00OWMxLTgzYmYtNDE4Y2ViMTNlYTUyIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+SVYIEAAABGVJREFUeNpi/P//PwMtARMDjQHNLWDBFHrz9v2Va3eYmZkZGEgIvT9//qqpyEtLiaOJM6LFAdD01q7ZxoaaQoL8f//9w28oIwMjExPTv3//GBkZv3z9euTYhZL8eHk5KXw+uHnrgZiYcEyELxmh8f7DlwuXbqBZgB4HjEyMrKwsRJo4Z+E6C5vwjVv2QR3LwsLEzEQ4kuGBRjCIZs1dffLovi07DqFpJGABMGSB5Io1263tIleu3YEsdfX6nd37jj94+PTv33+9kxZZWxn1TuqtKkklLRUBYwxIrt+87+TRgw3ffsjLSlqY6b989Ta3pP3u3cfi4sLv338COjbQ36W/o5ScZPrvPyhkmmuzDfU1tTQUgSGwYcv+o8fPa2gobVo9+d2Hj2ysrJV1E+7df0xURP1HBUdPnO+aMB9NsHfyIlPbCCDj3fuPuqaBd+8//v79h65ZEFAxsrJZ89du2rYfTS9ROfnzpy92tiZg1zCIS4gAkxkHB7uOlsq1G/eoU1SIigrfvvMIyODkZLe3MRETEQKy7957/Pr1O6Abnz1//fHjZ4os8HSzPnT07PzFG4ChLyMlDkwFwEADeuLnz19xqdWm9pG+obnfv/9kZWEmx4Jfv37PmLMqIzl0yozlwdGFDx8/9w3NKSluMzXWaajO8vN2ePb05fMXb/7+/QtJfoRTETL4/edPWW2/rpZqcnxgQXbMgiUbN209kBgXALRm2oxlHq7WoYFuJw4sBRZcPDxcv37/IcECYKm3cs3OC5dvWpjpJccFAkXExYQTYvxfvXmfEh8kKy3uG5iVW9R2YOd8c1M90pJp94QFQEZj+3SgmeoGvsDCEiIFLDlScxo4+fTnLlwP5NY2T2VgUIpNqQIGDmnJ9D+4GrC1MtI3sQoP8fiP5JbXb95///z11Zt3QF5VaYqLt/PiOcvmL9lIWk6GAEc7sxNHVnCwsyHSAxPTzEl1eZnRVub6QC5Qakp/VfrPnzzcnCRYAKk9IGxk0yFATFQIiOBcdVWFA7sXwrnMTEzA4CJggYy0xIM1O4+fvMDNzQkMfMIZlYkJUkoDU/PFyzeT4gIIVJlAAFR38fItNjYWkqqzX79/qyrJWZobELZgiDdb3r17d+XKFUZmZg0xUcEPn/98+sGmJHnz1+8Xz55JSEj8+P799evXYuLifHx8d+7c5ubmUVJSun37FisLKxMzM1Cvrq6ujIwMPgtOnDg+YUK/lrFxrqg8DwMLo7Liz/lrpry69/bDe3Y2Nn0Dg8+fPsnJy58+dVpLWwuoftmypS+eP4+IjPry5fOF8xf09PQI+ICJiTkoKNjeyUny8s3ftx6wfvryj5UJ6PbI2NhjR4+oqarx8vGxsbGdPXPW1dXt+/fvVy5fYWfn+P7tm6amJgc7h7g4oYYXUA87Ozsw8TH8+P73xev/338xSQp9ZmLh5+P78uULUDGwxQdqZn35AgwlIPfz588fP34EZnIJSUlgJuDh4QE3CYdTKgIIMAAEe1lyT/xWdwAAAABJRU5ErkJggg==",
                "connector_name": "fortinet-fortisiem",
                "step_variables": {
                  "input": {
                    "params": {}
                  }
                },
                "connector_label": "Fortinet FortiSIEM",
                "exit_if_running": false,
                "batch_preference": 0,
                "connector_action": "get_incidents",
                "connector_mapping": {
                  "datetime": {
                    "to": "timeTo",
                    "from": "timeFrom"
                  },
                  "response": "{{data.data}}"
                },
                "connector_version": "5.3.0",
                "trigger_condition": {
                  "sort": [],
                  "limit": 30,
                  "logic": "AND",
                  "filters": [
                    {
                      "type": "",
                      "field": "incidentTitle",
                      "value": "batatas",
                      "operator": "eq",
                      "evaluation": false,
                      "originalValue": "batatas"
                    }
                  ]
                },
                "connector_action_inputs": {}
              },
              "description": null,
              "top": "268",
              "left": "300",
              "name": "When an incident is created",
              "status": null,
              "uuid": "1305cfdf-98c2-4d9e-956a-886bb7fa53d9",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/b348f017-9a94-471f-87f8-ce88b6a7ad62",
              "group": null
            },
            {
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "id": "{{ vars.incident_id }}",
                  "comment_text": "\n** Quarantine Compromised Source IP Canceled **\n\nSource IP {{ vars.asset }} has not been Quarantined, by {{ vars.serialized_request_attrs.username }}"
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "incident_comment",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "752",
              "left": "844",
              "name": "Not Blocked",
              "status": null,
              "uuid": "e73c1b1f-5c2c-4fb1-829f-98f3f6652679",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "asset": "{{ vars.input.records[0].srcDict.srcIpAddr }}",
                "rptDevName": "{{ vars.input.records[0].incidentRptDevName }}",
                "incident_id": "{{ vars.input.records[0].incidentId }}",
                "incident_data": "{{ vars.input.records[0] }}"
              },
              "description": null,
              "top": "268",
              "left": "648",
              "name": "Configuration",
              "status": null,
              "uuid": "ccf22f72-3d6c-4205-ab72-91c966202e2c",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "name": "Fortinet FortiGate",
                "config": "",
                "params": {
                  "vdom": "",
                  "method": "Quarantine Based",
                  "ip_addresses": "{{ vars.asset }}",
                  "time_to_live": "12 Hour"
                },
                "version": "5.4.0",
                "connector": "fortigate-firewall",
                "operation": "block_ip_new",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "749",
              "left": "464",
              "name": "Block IP",
              "status": null,
              "uuid": "2aab9d90-bc1d-41a5-989a-fa25c936ce04",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "id": "{{ vars.incident_id }}",
                  "comment_text": "{{ vars.asset }} has been contained, need to investigate suspicious activity to and from this device in the past X weeks."
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "clear_incident",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "1031",
              "left": "464",
              "name": "Clear Incident",
              "status": null,
              "uuid": "39c1af11-4c69-4fb8-9094-cfee3c8a3210",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "comments": "",
                  "severity": "",
                  "incidentId": "{{ vars.incident_id }}",
                  "resolution": "True Positive",
                  "actionStatus": "",
                  "incidentStatus": "Manually Cleared",
                  "externalTicketId": "",
                  "externalTicketType": "",
                  "externalTicketState": "",
                  "externalAssignedUser": ""
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "update_incident",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "1159",
              "left": "465",
              "name": "Close TP",
              "status": null,
              "uuid": "36f9b5be-d109-4c24-b84c-9190647a0da3",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "type": "InputBased",
                "input": {
                  "schema": {
                    "title": "Confirm Quarantine ",
                    "description": "<p>Quarantine Request for IncidentID: {{ vars.incident_id }}</p>\n<p>Title:{{ vars.incident_data.incidentTitle }}</p>\n<p>Reason: {{ vars.incident_data.attackTechniqueId }} - {{ (vars.incident_data.attackTechnique|from_json)[0].name if vars.incident_data.attackTechnique }}</p>\n<p>Please review and approve quarantine of {{ vars.asset }} on {{ vars.rptDevName }} Firewall.</p>",
                    "inputVariables": []
                  }
                },
                "is_approval": false,
                "owner_detail": {
                  "isAssigned": false,
                  "assignedToField": null,
                  "assignedToPerson": []
                },
                "response_mapping": {
                  "options": [
                    {
                      "option": "Approve",
                      "primary": false,
                      "step_iri": "api/3/workflow_steps/2aab9d90-bc1d-41a5-989a-fa25c936ce04",
                      "step_uuid": "/api/3/workflow_steps/2aab9d90-bc1d-41a5-989a-fa25c936ce04"
                    },
                    {
                      "option": "Cancel",
                      "primary": false,
                      "step_iri": "api/3/workflow_steps/e73c1b1f-5c2c-4fb1-829f-98f3f6652679",
                      "step_uuid": "/api/3/workflow_steps/e73c1b1f-5c2c-4fb1-829f-98f3f6652679"
                    }
                  ],
                  "connecteStepsLength": 0,
                  "customSuccessMessage": "Awaiting Playbook resumed successfully"
                },
                "email_notification": {
                  "enabled": false,
                  "smtpParameters": {}
                },
                "inline_channel_list": [],
                "external_channel_list": [],
                "unauthenticated_input": false
              },
              "description": null,
              "top": "640",
              "left": "648",
              "name": "Approve Task",
              "status": null,
              "uuid": "d1a64031-859f-44eb-b4d6-e162ec2ebeff",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/fc04082a-d7dc-4299-96fb-6837b1baa0fe",
              "group": null
            },
            {
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "id": "{{ vars.incident_id }}",
                  "comment_text": "{{ vars.comment }}"
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "incident_comment",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "515",
              "left": "648",
              "name": "Add Summary",
              "status": null,
              "uuid": "8a456579-7b2e-411a-8e69-08722e9003ed",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "id": "{{ vars.incident_id }}",
                  "comment_text": "\n** Quarantine Compromised Source IP Approved **\n{{ vars.asset }} has been blocked with {{ vars.steps[\"Block IP\"].status }}"
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "incident_comment",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "877",
              "left": "464",
              "name": "Add Blocked Comment",
              "status": null,
              "uuid": "7b3fa6b7-9b21-430b-adb2-309656c231a3",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "comment": "{% if vars.input.records|length > 0 %}\n{# Access the first record #}\n{% set incident = vars.input.records[0] %}\n\n{# Format timestamps to readable dates using Arrow #}\n{% set first_seen = arrow.get(incident.incidentFirstSeen / 1000).to(\"UTC\").format(\"YYYY-MM-DD HH:mm:ss ZZ\") %}\n{% set last_seen = arrow.get(incident.incidentLastSeen / 1000).to(\"UTC\").format(\"YYYY-MM-DD HH:mm:ss ZZ\") %}\n\n# Security Incident Report\n\n## Summary\n**Incident ID:** {{ incident.incidentId }}  \n**Title:** {{ incident.incidentTitle }}  \n**Status:** {{ \"🔴 Active\" if incident.incidentStatus == 0 else \"🟢 Resolved\" }}  \n**Severity:** {{ incident.eventSeverityCat }} ({{ incident.eventSeverity }}/10)\n\n## Threat Details\n| Attribute | Value |\n|-----------|-------|\n| **Compromised Host** | `{{ vars.asset }}` |\n| **Attack Tactic** | {{ incident.attackTactic }} |\n| **Attack Technique** | {{ incident.attackTechniqueId }} - {{ (incident.attackTechnique|from_json)[0].name if incident.attackTechnique }} |\n\n## Timeline\n| Event | Timestamp |\n|-------|-----------|\n| **First Seen** | {{ first_seen }} |\n| **Last Seen** | {{ last_seen }} |\n{% if incident.incidentClearedTime > 0 %}| **Cleared** | {{ arrow.get(incident.incidentClearedTime / 1000).to(\"UTC\").format(\"YYYY-MM-DD HH:mm:ss ZZ\") }} |{% endif %}\n\n## Reporting Information\n| Field | Value |\n|-------|-------|\n| **Reporting Device** | {{ incident.incidentRptDevName }} ({{ incident.incidentRptIp }}) |\n| **Customer** | {{ incident.customer }}\n\n{% else %}\n## No Security Incidents Found\n\nNo security incidents were found in the provided data.\n{% endif %}"
              },
              "description": null,
              "top": "391",
              "left": "648",
              "name": "Comment String0",
              "status": null,
              "uuid": "64ff698a-9ab2-483b-ab80-fe5c57755c3b",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            }
          ],
          "routes": [
            {
              "@type": "WorkflowRoute",
              "name": "9372fbb3-5a42-4b74-a5f1-3f74b5ffdedb",
              "targetStep": "/api/3/workflow_steps/ccf22f72-3d6c-4205-ab72-91c966202e2c",
              "sourceStep": "/api/3/workflow_steps/1305cfdf-98c2-4d9e-956a-886bb7fa53d9",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "dab3cf65-69f5-484c-8cf5-01575b0ceabe"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Configuration->Comment String0",
              "targetStep": "/api/3/workflow_steps/64ff698a-9ab2-483b-ab80-fe5c57755c3b",
              "sourceStep": "/api/3/workflow_steps/ccf22f72-3d6c-4205-ab72-91c966202e2c",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "e7972bf8-fb95-4c2a-8437-f00b434c6d7d"
            },
            {
              "@type": "WorkflowRoute",
              "name": "8584565c-d1bb-46ca-a293-c767f3a4e6d7",
              "targetStep": "/api/3/workflow_steps/8a456579-7b2e-411a-8e69-08722e9003ed",
              "sourceStep": "/api/3/workflow_steps/64ff698a-9ab2-483b-ab80-fe5c57755c3b",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "a5c0943c-7f02-4a67-ae73-5145d4a40b4f"
            },
            {
              "@type": "WorkflowRoute",
              "name": "aaea4c07-b461-4d9e-9ff3-cf166d3f153e",
              "targetStep": "/api/3/workflow_steps/d1a64031-859f-44eb-b4d6-e162ec2ebeff",
              "sourceStep": "/api/3/workflow_steps/8a456579-7b2e-411a-8e69-08722e9003ed",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "43edc59a-de4e-4724-a36e-9871b70b2fdc"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Approve Task->Block IP",
              "targetStep": "/api/3/workflow_steps/2aab9d90-bc1d-41a5-989a-fa25c936ce04",
              "sourceStep": "/api/3/workflow_steps/d1a64031-859f-44eb-b4d6-e162ec2ebeff",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "701aea4b-15b2-4616-ac85-5d9180e37f17"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Block IP->Add Blocked Comment",
              "targetStep": "/api/3/workflow_steps/7b3fa6b7-9b21-430b-adb2-309656c231a3",
              "sourceStep": "/api/3/workflow_steps/2aab9d90-bc1d-41a5-989a-fa25c936ce04",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "bdca9c72-6ae1-4cd1-965d-898b1335acd8"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Approve Task->Not Blocked",
              "targetStep": "/api/3/workflow_steps/e73c1b1f-5c2c-4fb1-829f-98f3f6652679",
              "sourceStep": "/api/3/workflow_steps/d1a64031-859f-44eb-b4d6-e162ec2ebeff",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "ed67c6e0-a25c-4acf-a59b-60a6c81ce7ef"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Add Blocked Comment->Clear Incident",
              "targetStep": "/api/3/workflow_steps/39c1af11-4c69-4fb8-9094-cfee3c8a3210",
              "sourceStep": "/api/3/workflow_steps/7b3fa6b7-9b21-430b-adb2-309656c231a3",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "3b5dda18-2272-48b7-941a-4af8ee09efad"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Clear Incident->Close TP",
              "targetStep": "/api/3/workflow_steps/36f9b5be-d109-4c24-b84c-9190647a0da3",
              "sourceStep": "/api/3/workflow_steps/39c1af11-4c69-4fb8-9094-cfee3c8a3210",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "50ea7e98-123a-40d8-a5e1-2865c878d345"
            }
          ],
          "isActive": false,
          "groups": [],
          "tag": null,
          "uuid": "2955e56c-677a-4b6f-b91a-f3e6de230568",
          "triggerStep": "/api/3/workflow_steps/1305cfdf-98c2-4d9e-956a-886bb7fa53d9",
          "singleRecordExecution": false,
          "priority": "/api/3/picklists/2b563c61-ae2c-41c0-a85a-c9709585e3f2",
          "debug": false,
          "remoteExecutableFlag": false,
          "@type": "Workflow",
          "name": "Quarantine Compromised Source IP at FortiGate",
          "importedBy": [],
          "triggerLimit": null,
          "aliasName": null
        },
        {
          "description": "This playbook will ask the operator which IP (Source or Destination) from the Incident to block on a FortiGate firewall using the FortiGate Quarantine method.\n\nConfiguration\n\nTeam members will be emailed to approve the quarantine.\n\nUpdate the \"Quarantine Request\" step and select under the “Medium (Assign)” section which team members are authorised to quarantine the IP.\n\nConfirm that the correct connector configuration is used for each connector step:\nStep: Quarantine IP – Select the Target and Configuration that has connectivity to the FortiGate Firewall.\nStep: Add Comment – Using the FortiSIEM Connector define the Target \"supervisor-agent\"",
          "synchronous": false,
          "isPrivate": false,
          "parameters": null,
          "recordTags": [
            "Correlated IPS Alert",
            "OT Exploit"
          ],
          "steps": [
            {
              "arguments": {
                "dst": "{{ vars.input.records[0].targetDict.destIpAddr }}",
                "src": "{{ vars.input.records[0].srcDict.srcIpAddr }}",
                "incidentID": "{{ vars.input.records[0].incidentId }}",
                "incidentTitle": "{{ vars.input.records[0].incidentTitle }}"
              },
              "description": null,
              "top": "241",
              "left": "760",
              "name": "Configuration",
              "status": null,
              "uuid": "b3e806cb-bf9d-4a79-a335-bcc96dc70189",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "time": "{{ arrow.get(vars.steps[\"Quarantine Request\"].datetime, \"MM/DD/YYYY, HH:mm:ss\").to(\"US/Eastern\").format('HH:mm:ss ZZZ on MM/DD/YYYY') }}",
                "user": "{{ vars.steps[\"Quarantine Request\"].username }}"
              },
              "description": null,
              "top": "431",
              "left": "2140",
              "name": "Capture Time and User",
              "status": null,
              "uuid": "f3ae9609-af52-480d-a5e9-adcdaed8380f",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "output": "<html><body><h2 style=\"color: #FF0000;\">{{ vars.response }}</h2></body></html>"
              },
              "description": null,
              "top": "587",
              "left": "3062",
              "name": "Set Final Output",
              "status": null,
              "uuid": "84ff67db-758e-4d8e-89c0-a4a01a432783",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "ip": "{{ vars.steps[\"Quarantine Request\"].input.ip_selector }}",
                "time": "{{ arrow.get(vars.steps[\"Quarantine Request\"].datetime, \"MM/DD/YYYY, HH:mm:ss\").to(\"US/Eastern\").format('HH:mm:ss ZZZ on MM/DD/YYYY') }}",
                "user": "{{ vars.steps[\"Quarantine Request\"].username }}"
              },
              "description": null,
              "top": "50",
              "left": "2600",
              "name": "Store IP",
              "status": null,
              "uuid": "e021112f-ed37-49c5-bb95-482cf069797d",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "name": "Fortinet FortiGate",
                "config": "",
                "params": {
                  "vdom": "",
                  "method": "Quarantine Based",
                  "ip_addresses": "{{ vars.steps[\"Quarantine Request\"].input.ip_selector }}",
                  "time_to_live": "12 Hour"
                },
                "version": "5.4.0",
                "connector": "fortigate-firewall",
                "operation": "block_ip_new",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "50",
              "left": "2140",
              "name": "Quarantine IP",
              "status": null,
              "uuid": "4243f9f1-b13c-4e3c-be4d-921864330e3a",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "id": "{{ vars.incidentID }}",
                  "comment_text": "<html><body><h2 style=\"color: #FF0000;\">{{ vars.response }}</h2></body></html>"
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "incident_comment",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "431",
              "left": "3060",
              "name": "Add Comment",
              "status": null,
              "uuid": "07e858ad-07e3-4d57-926b-f0d76bea3427",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "__triggerLimit": true,
                "step_variables": {
                  "input": {
                    "params": []
                  }
                },
                "triggerOnSource": true,
                "triggerOnReplicate": false
              },
              "description": null,
              "top": "241",
              "left": "300",
              "name": "Start",
              "status": null,
              "uuid": "8ff0e6a7-9ee0-48f9-a3b7-f13ca539af27",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/b348f017-9a94-471f-87f8-ce88b6a7ad62",
              "group": null
            },
            {
              "arguments": {
                "response": "<html>\n    <body>\n        <table class=\"table table-bordered table-sm\">\n            <thead class=\"table-primary\">\n                <tr>\n                    <th colspan=\"2\">Playbook : Block IP by FortiGate</th>\n                </tr>\n            </thead>\n            <thead class=\"table-danger\">\n                <tr>\n                    <th colspan=\"2\">Operator declined to Quarantine any IP</th>\n                </tr>\n            </thead>\n            <tbody>\n                <tr>\n                    <td>User</td>\n                    <td>{{ vars.user }}</td>\n                </tr>\n                <tr>\n                    <td>Timestamp</td>\n                    <td>{{ vars.time }}</td>\n                </tr>\n            </tbody>\n        </table>\n    </body>\n</html>"
              },
              "description": null,
              "top": "431",
              "left": "2600",
              "name": "No to Quarantine",
              "status": null,
              "uuid": "eaca949b-9a92-4dac-a712-d5e08148e663",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "response": "{% if vars.ip == vars.src %}<html>  <body>    <table class=\"table table-bordered table-sm\">      <thead class=\"table-primary\">        <tr>          <th colspan=\"2\">Playbook : Block IP by FortiGate</th>        </tr>      </thead>      <thead class=\"table-success\">        <tr>          <th colspan=\"2\">IP Quarantine Details</th>        </tr>      </thead>      <tbody>        <tr>          <td>User</td>          <td>{{ vars.user }}</td>        </tr>        <tr>          <td>Timestamp</td>          <td>{{ vars.time }}</td>        </tr>        <tr>          <td>Source IP</td>          <td>{{ vars.src }}</td>        </tr>      </tbody>    </table>  </body></html>{% elif vars.ip == vars.dst %}<html>  <body>    <table class=\"table table-bordered table-sm\">      <thead class=\"table-primary\">        <tr>          <th colspan=\"2\">Playbook : Block IP by FortiGate</th>        </tr>      </thead>      <thead class=\"table-success\">        <tr>          <th colspan=\"2\">IP Quarantine Details</th>        </tr>      </thead>      <tbody>        <tr>          <td>User</td>          <td>{{ vars.user }}</td>        </tr>        <tr>          <td>Timestamp</td>          <td>{{ vars.time }}</td>        </tr>        <tr>          <td>Destination IP</td>          <td>{{ vars.dst }}</td>        </tr>      </tbody>    </table>  </body></html>{% else %}<html>  <body>    <h4 style=\"color: red;\">Unknown IP selection.</h4>  </body></html>{% endif %}"
              },
              "description": null,
              "top": "244",
              "left": "2960",
              "name": "Set Quarantine Response",
              "status": null,
              "uuid": "5d72be9c-a948-45c9-b823-f9b7c1249b54",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "ip_list": "{% set ip_list = [ vars.src, vars.dst ] | map('string') | list %}{{ ip_list }}"
              },
              "description": null,
              "top": "241",
              "left": "1220",
              "name": "Create IP List",
              "status": null,
              "uuid": "978cc533-bedf-479f-b948-e6a4fce9c4d8",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "conditions": [
                  {
                    "option": "Quarantined",
                    "step_iri": "/api/3/workflow_steps/5d72be9c-a948-45c9-b823-f9b7c1249b54",
                    "condition": "{{vars.ip in vars.steps[\"Quarantine IP\"].data.newly_blocked}}",
                    "step_name": "Set Quarantine Response"
                  },
                  {
                    "option": "Already Quarantined",
                    "step_iri": "/api/3/workflow_steps/e1633c37-f906-4e1e-887c-fdfdda8152b7",
                    "condition": "{{vars.ip in vars.steps[\"Quarantine IP\"].data.already_blocked}}",
                    "step_name": "Set Found Response"
                  }
                ]
              },
              "description": null,
              "top": "30",
              "left": "3060",
              "name": "Quarantined",
              "status": null,
              "uuid": "a735caff-80d0-4558-afbb-c2e58f464248",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/12254cf5-5db7-4b1a-8cb1-3af081924b28",
              "group": null
            },
            {
              "arguments": {
                "type": "InputBased",
                "input": {
                  "schema": {
                    "title": "Quarantine IP",
                    "description": "<div style=\"width: 100%; box-sizing: border-box; padding: 0 16px; font-family: 'Segoe UI', sans-serif; margin-top: 24px;\">\n<div style=\"border-radius: 12px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2); overflow: hidden; border: 1px solid #444;\">\n<div style=\"background: linear-gradient(to right, #1a73e8, #3f87f5); padding: 24px; color: white;\">\n<h1 style=\"color: white; margin: 0; font-size: 24px;\">🔎 Playbook Manual User Input Request</h1>\n<p style=\"margin: 4px 0 0; font-size: 14px; opacity: 0.9;\">&nbsp;</p>\n<p style=\"margin: 4px 0 0; font-size: 14px; opacity: 0.9;\">Incident ID: {{ vars.incidentID }}</p>\n<p style=\"margin: 4px 0 0; font-size: 14px; opacity: 0.9;\">Incident Title: &nbsp;{{ vars.incidentTitle }}</p>\n<p style=\"margin: 4px 0 0; font-size: 14px; opacity: 0.9;\">&nbsp;</p>\n<p style=\"margin: 4px 0 0; font-size: 14px; opacity: 0.9;\">Provide Your Input</p>\n</div>\n<div style=\"background-color: #1f1f1f; color: #eee; padding: 28px; font-size: 18px;\">\n<p style=\"margin-bottom: 16px; font-size: 20px;\"><strong style=\"color: orange;\">Quarantine Request</strong></p>\n<a style=\"color: #ffffff; font-size: 16px; font-weight: bold; text-decoration: none;\" href=\"#\">\n<p>Select one of the IP Addresses below to Quarantine</p>\n</a></div>\n</div>\n</div>",
                    "inputVariables": [
                      {
                        "name": "ip_selector",
                        "type": "select",
                        "label": "ip_selector",
                        "options": "{{ vars.ip_list }}",
                        "tooltip": "",
                        "formType": "select",
                        "required": true,
                        "isMultiple": false,
                        "defaultValue": null,
                        "useRecordFieldDefault": false
                      }
                    ]
                  }
                },
                "agent_id": null,
                "is_approval": false,
                "owner_detail": {
                  "isAssigned": false,
                  "assignedToTeam": [],
                  "assignedToField": null,
                  "emailRecipients": "",
                  "assignedToPerson": [],
                  "assignedToRecord": false
                },
                "response_mapping": {
                  "options": [
                    {
                      "option": "Submit",
                      "primary": true,
                      "step_iri": "api/3/workflow_steps/4243f9f1-b13c-4e3c-be4d-921864330e3a",
                      "step_uuid": "/api/3/workflow_steps/4243f9f1-b13c-4e3c-be4d-921864330e3a"
                    },
                    {
                      "option": "Cancel",
                      "primary": false,
                      "step_iri": "api/3/workflow_steps/f3ae9609-af52-480d-a5e9-adcdaed8380f",
                      "step_uuid": "/api/3/workflow_steps/f3ae9609-af52-480d-a5e9-adcdaed8380f"
                    }
                  ],
                  "connecteStepsLength": 0,
                  "customSuccessMessage": "Awaiting Playbook resumed successfully"
                },
                "inputExternalUser": false,
                "email_notification": {
                  "enabled": false,
                  "smtpParameters": {}
                },
                "inputInternalUsers": null,
                "customEmailExternal": false,
                "customEmailInternal": false,
                "inline_channel_list": [],
                "external_channel_list": [],
                "unauthenticated_input": false,
                "external_email_subject": null,
                "internal_email_subject": null,
                "custom_email_body_external": null,
                "custom_email_body_internal": null,
                "external_email_attachments": null,
                "internal_email_attachments": null
              },
              "description": null,
              "top": "241",
              "left": "1680",
              "name": "Quarantine Request",
              "status": null,
              "uuid": "720a4c93-36c9-4864-89ce-7a7a374e1e6b",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/fc04082a-d7dc-4299-96fb-6837b1baa0fe",
              "group": null
            },
            {
              "arguments": {
                "response": "{% if vars.ip == vars.src %}\n<html>\n  <body>\n    <table class=\"table table-bordered table-sm\">\n      <thead class=\"table-primary\">\n        <tr>\n          <th colspan=\"2\">Playbook : Block IP by FortiGate</th>\n        </tr>\n      </thead>\n      <thead class=\"table-success\">\n        <tr>\n          <th colspan=\"2\">IP is already Quarantined</th>\n        </tr>\n      </thead>\n      <tbody>\n        <tr>\n          <td>Source IP</td>\n          <td>{{ vars.src }}</td>\n        </tr>\n      </tbody>\n    </table>\n  </body>\n</html>\n\n{% elif vars.ip == vars.dst %}\n<html>\n  <body>\n    <table class=\"table table-bordered table-sm\">\n      <thead class=\"table-primary\">\n        <tr>\n          <th colspan=\"2\">Playbook : Block IP by FortiGate</th>\n        </tr>\n      </thead>\n      <thead class=\"table-success\">\n        <tr>\n          <th colspan=\"2\">IP is already Quarantined</th>\n        </tr>\n      </thead>\n      <tbody>\n        <tr>\n          <td>Destination IP</td>\n          <td>{{ vars.dst }}</td>\n        </tr>\n      </tbody>\n    </table>\n  </body>\n</html>\n\n{% else %}\n<html>\n  <body>\n    <h4 style=\"color: red;\">Unknown IP selection.</h4>\n  </body>\n</html>\n{% endif %}"
              },
              "description": null,
              "top": "215",
              "left": "3416",
              "name": "Set Already Quarantined Response",
              "status": null,
              "uuid": "e1633c37-f906-4e1e-887c-fdfdda8152b7",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            }
          ],
          "routes": [
            {
              "@type": "WorkflowRoute",
              "name": "Start->Set Vars",
              "targetStep": "/api/3/workflow_steps/b3e806cb-bf9d-4a79-a335-bcc96dc70189",
              "sourceStep": "/api/3/workflow_steps/8ff0e6a7-9ee0-48f9-a3b7-f13ca539af27",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "68d1a766-af6d-49c3-a9e8-cc97059129c5"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Set Vars->Create IP List",
              "targetStep": "/api/3/workflow_steps/978cc533-bedf-479f-b948-e6a4fce9c4d8",
              "sourceStep": "/api/3/workflow_steps/b3e806cb-bf9d-4a79-a335-bcc96dc70189",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "23cd4b0a-0e59-427e-8bc6-a97780efcec4"
            },
            {
              "@type": "WorkflowRoute",
              "name": "979c3429-7e61-4823-a97d-b2dfbb6d9521",
              "targetStep": "/api/3/workflow_steps/720a4c93-36c9-4864-89ce-7a7a374e1e6b",
              "sourceStep": "/api/3/workflow_steps/978cc533-bedf-479f-b948-e6a4fce9c4d8",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "c1199e96-fc6c-4612-952a-8bf0f4d21355"
            },
            {
              "@type": "WorkflowRoute",
              "name": "610512fd-c2b0-4a7b-8009-3106bbadd0a0",
              "targetStep": "/api/3/workflow_steps/07e858ad-07e3-4d57-926b-f0d76bea3427",
              "sourceStep": "/api/3/workflow_steps/5d72be9c-a948-45c9-b823-f9b7c1249b54",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "75c59308-948a-417c-94de-c2a8f36d10ae"
            },
            {
              "@type": "WorkflowRoute",
              "name": "ed159ec3-391a-4bdd-9636-26754706af8c",
              "targetStep": "/api/3/workflow_steps/84ff67db-758e-4d8e-89c0-a4a01a432783",
              "sourceStep": "/api/3/workflow_steps/07e858ad-07e3-4d57-926b-f0d76bea3427",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "24a7778e-9e63-42d3-a798-89a2297cc412"
            },
            {
              "@type": "WorkflowRoute",
              "name": "21526ed1-1a58-44cb-9c49-d1b4af9f8ca7",
              "targetStep": "/api/3/workflow_steps/07e858ad-07e3-4d57-926b-f0d76bea3427",
              "sourceStep": "/api/3/workflow_steps/eaca949b-9a92-4dac-a712-d5e08148e663",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "2c2b9b48-c278-47d4-b72e-19a40ae65423"
            },
            {
              "@type": "WorkflowRoute",
              "name": "8c2526c6-0156-4998-a26c-156124818012",
              "targetStep": "/api/3/workflow_steps/07e858ad-07e3-4d57-926b-f0d76bea3427",
              "sourceStep": "/api/3/workflow_steps/e1633c37-f906-4e1e-887c-fdfdda8152b7",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "fc5cd326-a1b1-4259-b7e2-a65abb1d15d2"
            },
            {
              "@type": "WorkflowRoute",
              "name": "8d75dd2d-851e-462c-95bb-75eaf9469ebb",
              "targetStep": "/api/3/workflow_steps/4243f9f1-b13c-4e3c-be4d-921864330e3a",
              "sourceStep": "/api/3/workflow_steps/720a4c93-36c9-4864-89ce-7a7a374e1e6b",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "4331410b-f59e-42dd-8de2-f53d8fee7b70"
            },
            {
              "@type": "WorkflowRoute",
              "name": "80f2c0c0-a311-4c69-afd2-359e3fcc79d7",
              "targetStep": "/api/3/workflow_steps/e1633c37-f906-4e1e-887c-fdfdda8152b7",
              "sourceStep": "/api/3/workflow_steps/a735caff-80d0-4558-afbb-c2e58f464248",
              "label": "Already Quarantined",
              "isExecuted": false,
              "group": null,
              "uuid": "67591da2-7665-4d15-9b7d-42b2d8d2e84d"
            },
            {
              "@type": "WorkflowRoute",
              "name": "da1b14ec-1226-4189-b2d8-153c8b99de70",
              "targetStep": "/api/3/workflow_steps/5d72be9c-a948-45c9-b823-f9b7c1249b54",
              "sourceStep": "/api/3/workflow_steps/a735caff-80d0-4558-afbb-c2e58f464248",
              "label": "Quarantined",
              "isExecuted": false,
              "group": null,
              "uuid": "c70ccc13-975f-4a7c-8721-7666afa59800"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Quarantine IP->Store IP",
              "targetStep": "/api/3/workflow_steps/e021112f-ed37-49c5-bb95-482cf069797d",
              "sourceStep": "/api/3/workflow_steps/4243f9f1-b13c-4e3c-be4d-921864330e3a",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "d572db85-b21a-409b-8630-df150855054c"
            },
            {
              "@type": "WorkflowRoute",
              "name": "fdb9b647-1e6d-48a5-9b8a-5eac5da85827",
              "targetStep": "/api/3/workflow_steps/a735caff-80d0-4558-afbb-c2e58f464248",
              "sourceStep": "/api/3/workflow_steps/e021112f-ed37-49c5-bb95-482cf069797d",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "61b8e09f-b31d-42dd-a285-0c31f3f966e4"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Ask Question->Capture Time and User",
              "targetStep": "/api/3/workflow_steps/f3ae9609-af52-480d-a5e9-adcdaed8380f",
              "sourceStep": "/api/3/workflow_steps/720a4c93-36c9-4864-89ce-7a7a374e1e6b",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "fb3ac7ed-f466-48fd-a690-cb29a64266fb"
            },
            {
              "@type": "WorkflowRoute",
              "name": "1afa09ce-5095-4252-843f-bf1e97bf6a80",
              "targetStep": "/api/3/workflow_steps/eaca949b-9a92-4dac-a712-d5e08148e663",
              "sourceStep": "/api/3/workflow_steps/f3ae9609-af52-480d-a5e9-adcdaed8380f",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "6f96ae3c-32da-443c-8dc5-e5581e003a42"
            }
          ],
          "isActive": false,
          "groups": [],
          "tag": null,
          "uuid": "cc08ceac-8764-4abe-ab9e-18b420232580",
          "triggerStep": "/api/3/workflow_steps/8ff0e6a7-9ee0-48f9-a3b7-f13ca539af27",
          "singleRecordExecution": false,
          "priority": "/api/3/picklists/2b563c61-ae2c-41c0-a85a-c9709585e3f2",
          "debug": true,
          "remoteExecutableFlag": false,
          "@type": "Workflow",
          "name": "Quarantine IP on FortiGate - With IP Selection Assign To Team Members",
          "importedBy": [],
          "triggerLimit": null,
          "aliasName": null
        },
        {
          "description": "This playbook uses the Incident generated by the Rule “User Added To Domain Admins Group” and will disable and remove the User from the Domain Admins Group and disable the User account on Active Directory.\n\nConfiguration\n\nThis playbook is similar to \"Remove & Disable new Domain Administrator account (Advanced)\"  but does not use the approved list of admins in the Lookup Table.\n\nConfirm that the correct connector configuration is used for each connector step:\nStep: Get Raw Message - FortiSIEM connector and using the Target \"supervisor-agent\"\nSteps: Get LDAP Details, Remove User from Group, Disable User – Select the Target and Configuration that has connectivity to the Active Directory server.\nStep: Add Comment – Using the FortiSIEM Connector define the Target \"supervisor-agent\"",
          "synchronous": false,
          "isPrivate": false,
          "parameters": null,
          "recordTags": [
            "User Account Change"
          ],
          "steps": [
            {
              "arguments": {
                "memberName": "{{ vars.myXML.split(\"<Data Name='MemberName'>\", 1)[1].split(\"</Data>\", 1)[0] }}"
              },
              "description": null,
              "top": "256",
              "left": "1232",
              "name": "Extract Member Name From XML",
              "status": null,
              "uuid": "d68785f1-ca32-43b3-808e-809e9fead914",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "incidentId": "{{ vars.input.records[0].incidentId }}",
                "targetUser": "{{ vars.input.records[0].targetDict.targetUser }}",
                "targetDomain": "{{ vars.input.records[0].targetDict.targetDomain }}"
              },
              "description": null,
              "top": "30",
              "left": "760",
              "name": "Configuration",
              "status": null,
              "uuid": "15c70041-225d-4c45-97e2-5f56b3e625fd",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "__triggerLimit": true,
                "step_variables": {
                  "input": {
                    "params": []
                  }
                },
                "triggerOnSource": true,
                "triggerOnReplicate": false
              },
              "description": null,
              "top": "30",
              "left": "300",
              "name": "Start",
              "status": null,
              "uuid": "b61efdb9-8f03-4681-b62f-ad8db760391d",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/b348f017-9a94-471f-87f8-ce88b6a7ad62",
              "group": null
            },
            {
              "arguments": {
                "myXML": "{{ vars.rawMsg.split('[xml]=', 1)[1] }}"
              },
              "description": null,
              "top": "256",
              "left": "1676",
              "name": "Extract XML From Raw",
              "status": null,
              "uuid": "465d24a5-6971-45c0-81a2-6ac3763a5059",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "name": "Active Directory",
                "config": "",
                "params": {
                  "cookie": "",
                  "page_size": "",
                  "size_limit": "",
                  "search_object": "User",
                  "search_attr_name": "Distinguished Name",
                  "search_attr_value": "{{ vars.memberName }}"
                },
                "version": "2.4.0",
                "connector": "activedirectory",
                "operation": "global_search",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "256",
              "left": "774",
              "name": "Get User LDAP Details",
              "status": null,
              "uuid": "cb01d5d4-4e62-4cbe-aaec-5ac01cb477d0",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "name": "Active Directory",
                "config": "",
                "params": {
                  "search_attr_name": "SamAccount Name",
                  "search_attr_value": "{{ vars.sam }}"
                },
                "version": "2.4.0",
                "connector": "activedirectory",
                "operation": "disable_user_account",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "492",
              "left": "809",
              "name": "Disable User",
              "status": null,
              "uuid": "6af1344e-fd50-4f0c-a2a5-1c51e535e571",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "name": "Active Directory",
                "config": "",
                "params": {
                  "group_dn": "CN=Domain Admins,CN=Users,DC=example-live,DC=com",
                  "object_dn": "{{vars.dn }}",
                  "object_class": "User"
                },
                "version": "2.4.0",
                "connector": "activedirectory",
                "operation": "remove_group_members",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "492",
              "left": "308",
              "name": "Remove User From Group",
              "status": null,
              "uuid": "60043b8f-5a82-48b7-ba07-5a9f6bcd0a18",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "rawMsg": "{{ vars.steps[\"Get Raw Message\"].data[0].rawMessage }}"
              },
              "description": null,
              "top": "30",
              "left": "1676",
              "name": "Extract Raw Message",
              "status": null,
              "uuid": "48bea649-ef31-4d42-8cf2-82f313bf0351",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "timeTo": "",
                  "perPage": 10,
                  "timeFrom": "",
                  "incident_id": "{{ vars.incidentId }}"
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "get_associated_events",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "30",
              "left": "1220",
              "name": "Get Raw Message",
              "status": null,
              "uuid": "d63c8799-3233-4146-9356-4c522a60145c",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "dn": "{{ vars.steps[\"Get User LDAP Details\"].data.entries[0].dn }}",
                "sam": "{{ vars.steps[\"Get User LDAP Details\"].data.entries[0].attributes.sAMAccountName }}"
              },
              "description": null,
              "top": "256",
              "left": "309",
              "name": "Capture LDAP Variables",
              "status": null,
              "uuid": "e921f7f3-c8d5-4021-a934-cb180c0d8184",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "output": "User `{{ vars.targetUser }}` was removed from the **Domain Admins** group in Active Directory, and the user account was **disabled**."
              },
              "description": null,
              "top": "492",
              "left": "1349",
              "name": "Set Output",
              "status": null,
              "uuid": "c23879e3-f059-4a34-8bc4-680633b11158",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            }
          ],
          "routes": [
            {
              "@type": "WorkflowRoute",
              "name": "Start->Capture Variables",
              "targetStep": "/api/3/workflow_steps/15c70041-225d-4c45-97e2-5f56b3e625fd",
              "sourceStep": "/api/3/workflow_steps/b61efdb9-8f03-4681-b62f-ad8db760391d",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "2f052f09-3ab9-450b-be43-cf6ee5ffd621"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Extract Raw Message->Extract Member Name From Raw",
              "targetStep": "/api/3/workflow_steps/465d24a5-6971-45c0-81a2-6ac3763a5059",
              "sourceStep": "/api/3/workflow_steps/48bea649-ef31-4d42-8cf2-82f313bf0351",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "e80cbe1a-41c8-48a5-bf66-07ba50ca63d1"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Extract Member Name From Raw->Extract Member Name From XML",
              "targetStep": "/api/3/workflow_steps/d68785f1-ca32-43b3-808e-809e9fead914",
              "sourceStep": "/api/3/workflow_steps/465d24a5-6971-45c0-81a2-6ac3763a5059",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "90521077-5a1a-4255-94d2-00d9d3973d25"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Extract Member Name From XML->Get User LDAP Details",
              "targetStep": "/api/3/workflow_steps/cb01d5d4-4e62-4cbe-aaec-5ac01cb477d0",
              "sourceStep": "/api/3/workflow_steps/d68785f1-ca32-43b3-808e-809e9fead914",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "2732fe28-44b9-450e-aab5-ac646973598e"
            },
            {
              "@type": "WorkflowRoute",
              "name": "817f9798-3f80-47e1-a78a-9408211ed146",
              "targetStep": "/api/3/workflow_steps/48bea649-ef31-4d42-8cf2-82f313bf0351",
              "sourceStep": "/api/3/workflow_steps/d63c8799-3233-4146-9356-4c522a60145c",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "6024a0bc-1cd3-46dc-8716-639fd5b74d74"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Get User LDAP Details->Capture LDAP Variables",
              "targetStep": "/api/3/workflow_steps/e921f7f3-c8d5-4021-a934-cb180c0d8184",
              "sourceStep": "/api/3/workflow_steps/cb01d5d4-4e62-4cbe-aaec-5ac01cb477d0",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "be0898bb-5aec-4883-aeca-cf8eef97dc64"
            },
            {
              "@type": "WorkflowRoute",
              "name": "473c00e0-94df-495b-9de7-b50c842978bc",
              "targetStep": "/api/3/workflow_steps/60043b8f-5a82-48b7-ba07-5a9f6bcd0a18",
              "sourceStep": "/api/3/workflow_steps/e921f7f3-c8d5-4021-a934-cb180c0d8184",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "4254b51b-3eda-468a-bc7e-6666ba16e0a7"
            },
            {
              "@type": "WorkflowRoute",
              "name": "c57ef7fd-43a8-4e5e-9a40-1704aa1f5123",
              "targetStep": "/api/3/workflow_steps/6af1344e-fd50-4f0c-a2a5-1c51e535e571",
              "sourceStep": "/api/3/workflow_steps/60043b8f-5a82-48b7-ba07-5a9f6bcd0a18",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "8d28cf82-c04d-4b26-b14d-31960561c3e3"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Disable User->Set Output",
              "targetStep": "/api/3/workflow_steps/c23879e3-f059-4a34-8bc4-680633b11158",
              "sourceStep": "/api/3/workflow_steps/6af1344e-fd50-4f0c-a2a5-1c51e535e571",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "131f5471-cc3b-439a-8806-2d5f02e8be42"
            },
            {
              "@type": "WorkflowRoute",
              "name": "9289777b-9cb3-45e3-bf5d-9a672b2a5f91",
              "targetStep": "/api/3/workflow_steps/d63c8799-3233-4146-9356-4c522a60145c",
              "sourceStep": "/api/3/workflow_steps/15c70041-225d-4c45-97e2-5f56b3e625fd",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "87dd9fc8-6ca6-4d85-8904-4c52a74941bd"
            }
          ],
          "isActive": false,
          "groups": [],
          "tag": null,
          "uuid": "31a9ec1b-015c-4580-b8d0-2a3b5a8251d3",
          "triggerStep": "/api/3/workflow_steps/b61efdb9-8f03-4681-b62f-ad8db760391d",
          "singleRecordExecution": false,
          "priority": "/api/3/picklists/2b563c61-ae2c-41c0-a85a-c9709585e3f2",
          "debug": true,
          "remoteExecutableFlag": false,
          "@type": "Workflow",
          "name": "Remove & Disable new Domain Administrator User account",
          "importedBy": [],
          "triggerLimit": null,
          "aliasName": null
        },
        {
          "description": "This playbook uses the Incident generated by the Rule “User Added To Domain Admins Group” and will disable and remove the User from the Domain Admins Group and disable the User account on Active Directory.\n\nConfiguration\n\nThis playbook is similar to \"Remove & Disable new Domain Administrator account” but uses the approved list of admins in the Lookup Table.\n\nThis playbook requires that the Allowed Domain Administrator lookup table is defined and a list of authorized Domain Administrators are present.\nStep 1) Run the enterprise or service provider version of the playbook depending on your installation:\n- \"Config - Enterprise - Create AllowedDomainAdmins Lookup Table\"\n- \"Config - SP - Create AllowedDomainAdmins Lookup Table\"\nStep 2) Manually populate the Lookup table AllowedDomainAdmins with authorized Domain Admins",
          "synchronous": false,
          "isPrivate": false,
          "parameters": null,
          "recordTags": [
            "User Account Change"
          ],
          "steps": [
            {
              "arguments": {
                "__triggerLimit": true,
                "step_variables": {
                  "input": {
                    "params": []
                  }
                },
                "triggerOnSource": true,
                "triggerOnReplicate": false
              },
              "description": null,
              "top": "30",
              "left": "300",
              "name": "Start",
              "status": null,
              "uuid": "0dbed5dc-ee8c-43f0-a3eb-19117ec21057",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/b348f017-9a94-471f-87f8-ce88b6a7ad62",
              "group": null
            },
            {
              "arguments": {
                "output": "User is an allowed Admin in the AllowedDomainAdmins Lookup Table"
              },
              "description": null,
              "top": "359",
              "left": "1692",
              "name": "Yes",
              "status": null,
              "uuid": "3b6d688f-84ab-4a53-98fe-8c7d73517ee3",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "memberName": "{{ vars.myXML.split(\"<Data Name='MemberName'>\", 1)[1].split(\"</Data>\", 1)[0] }}"
              },
              "description": null,
              "top": "968",
              "left": "311",
              "name": "Extract Member Name From XML",
              "status": null,
              "uuid": "7e706693-7bda-46a2-b890-8a41f14237d6",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "queryResult": "{{ vars.allTables | json_query('[?name == `AllowedDomainAdmins`]') | length > 0}}"
              },
              "description": null,
              "top": "228",
              "left": "1680",
              "name": "Query Tables",
              "status": null,
              "uuid": "10a45149-178d-43e7-b63d-f7453e7d8ce0",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "output": "User {{ vars.targetUser }} was not found in the expected DomainAdmins Lookup Table and hence removed from the Domain Admins group in Active Directory, and the user was disabled."
              },
              "description": null,
              "top": "1114",
              "left": "1241",
              "name": "Set Output",
              "status": null,
              "uuid": "4bd07a62-0f38-4e0b-908c-061943c9bc09",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "conditions": [
                  {
                    "option": "Not Exist",
                    "step_iri": "/api/3/workflow_steps/b344f3b3-ec70-444f-abc6-cbac475dce03",
                    "condition": "{{vars.queryResult is false}}",
                    "step_name": "Table Not Exist"
                  },
                  {
                    "option": "Exists",
                    "step_iri": "/api/3/workflow_steps/23becb4e-1ab0-40ae-af30-730bdb2e7540",
                    "condition": "{{vars.queryResult is true}}",
                    "step_name": "Get Table Id"
                  }
                ]
              },
              "description": null,
              "top": "204",
              "left": "1302",
              "name": "Check Lookup Table Exists",
              "status": null,
              "uuid": "b0ac6f02-eeb1-4f93-9a49-2da0c4fab9bd",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/12254cf5-5db7-4b1a-8cb1-3af081924b28",
              "group": null
            },
            {
              "arguments": {
                "output": "Lookup Table \"AllowedDomainAdmins\" does not exist, please run the Create Playbook Step"
              },
              "description": null,
              "top": "405",
              "left": "1226",
              "name": "Table Not Exist",
              "status": null,
              "uuid": "b344f3b3-ec70-444f-abc6-cbac475dce03",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "allTables": "{{ vars.steps[\"Get Lookup Tables\"].data.data }}"
              },
              "description": null,
              "top": "30",
              "left": "1680",
              "name": "Store Tables",
              "status": null,
              "uuid": "cb003beb-b64d-4646-90eb-4e33a97a492a",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "conditions": [
                  {
                    "option": "Users Populated",
                    "step_iri": "/api/3/workflow_steps/947e193e-2ea2-4145-96c6-4a43e40ea4fa",
                    "condition": "{{vars.countUsers > 0}}",
                    "step_name": "Query Result"
                  },
                  {
                    "option": "Empty",
                    "step_iri": "/api/3/workflow_steps/9bb41061-49d7-4fff-b687-d2a3176cb07e",
                    "condition": "{{vars.countUsers == 0}}",
                    "step_name": "Return Empty Output"
                  }
                ]
              },
              "description": null,
              "top": "518",
              "left": "828",
              "name": "Empty Lookup Table",
              "status": null,
              "uuid": "a9ad9e74-d9e5-4688-8982-1987dd61cf41",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/12254cf5-5db7-4b1a-8cb1-3af081924b28",
              "group": null
            },
            {
              "arguments": {
                "output": "Lookup Table \"AllowedDomainAdmins\" is empty! Please populate this list first before using this playbook."
              },
              "description": null,
              "top": "342",
              "left": "748",
              "name": "Return Empty Output",
              "status": null,
              "uuid": "9bb41061-49d7-4fff-b687-d2a3176cb07e",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "incidentId": "{{ vars.input.records[0].incidentId }}",
                "targetUser": "{{ vars.input.records[0].targetDict.targetUser }}",
                "targetDomain": "{{ vars.input.records[0].targetDict.targetDomain }}"
              },
              "description": null,
              "top": "30",
              "left": "760",
              "name": "Capture Variables",
              "status": null,
              "uuid": "85f44ddb-fd53-4e20-9ae3-9f1f9dbebde8",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "content": "No"
              },
              "description": null,
              "top": "782",
              "left": "1694",
              "name": "No",
              "status": null,
              "uuid": "91056dc7-ba70-4bf9-8ca2-c11332c0b1db",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "rawMsg": "{{ vars.steps[\"Get Raw Message\"].data[0].rawMessage }}"
              },
              "description": null,
              "top": "780",
              "left": "760",
              "name": "Extract Raw Message",
              "status": null,
              "uuid": "246ec656-6821-4f85-8012-05f9cd12fd44",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "capture": "{{ \"yes\" if vars.targetUser in vars.tableUsers | map(attribute=\"adminName\") else \"no\" }}"
              },
              "description": null,
              "top": "537",
              "left": "1216",
              "name": "Query Result",
              "status": null,
              "uuid": "947e193e-2ea2-4145-96c6-4a43e40ea4fa",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "tableId": "{% for item in vars.allTables %}    {% if item.name == \"AllowedDomainAdmins\" %}        {{ item.id }}    {% endif %}{% endfor %}"
              },
              "description": null,
              "top": "224",
              "left": "758",
              "name": "Get Table Id",
              "status": null,
              "uuid": "23becb4e-1ab0-40ae-af30-730bdb2e7540",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "countUsers": "{{ vars.steps[\"Table Data\"].data.data | length }}",
                "tableUsers": "{{ vars.steps[\"Table Data\"].data.data }}"
              },
              "description": null,
              "top": "538",
              "left": "320",
              "name": "Store Table Results",
              "status": null,
              "uuid": "3b7e1d69-3253-45da-8d34-42f5a264a72f",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "myXML": "{{ vars.rawMsg.split('[xml]=', 1)[1] }}"
              },
              "description": null,
              "top": "780",
              "left": "310",
              "name": "Extract XML From Raw",
              "status": null,
              "uuid": "1e4b29f2-c62f-412e-86e4-12e4272ad3e7",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            },
            {
              "arguments": {
                "name": "Active Directory",
                "config": "",
                "params": {
                  "cookie": "",
                  "page_size": "",
                  "size_limit": "",
                  "search_object": "User",
                  "search_attr_name": "Distinguished Name",
                  "search_attr_value": "{{ vars.memberName }}"
                },
                "version": "2.4.0",
                "connector": "activedirectory",
                "operation": "global_search",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "968",
              "left": "775",
              "name": "Get User LDAP Details",
              "status": null,
              "uuid": "1e222fe8-e7b8-478d-8f34-993014753204",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "name": "Active Directory",
                "config": "",
                "params": {
                  "search_attr_name": "SamAccount Name",
                  "search_attr_value": "{{ vars.sam }}"
                },
                "version": "2.4.0",
                "connector": "activedirectory",
                "operation": "disable_user_account",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "1114",
              "left": "1707",
              "name": "Disable User",
              "status": null,
              "uuid": "784f9170-fa6e-4e44-901e-a413883558a4",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "name": "Active Directory",
                "config": "",
                "params": {
                  "group_dn": "CN=Domain Admins,CN=Users,DC=example-live,DC=com",
                  "object_dn": "{{vars.dn }}",
                  "object_class": "User"
                },
                "version": "2.4.0",
                "connector": "activedirectory",
                "operation": "remove_group_members",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "964",
              "left": "1707",
              "name": "Remove User From Group",
              "status": null,
              "uuid": "f76e8688-1543-4186-af20-cb3775d62461",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "size": 25,
                  "stat": 0
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "get_all_lookup_tables",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "30",
              "left": "1220",
              "name": "Get Lookup Tables",
              "status": null,
              "uuid": "47391b4f-d764-4639-a2bd-a225181f74e7",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "size": 250,
                  "start": 0,
                  "sortBy": "",
                  "searchText": "",
                  "lookupTableId": "{{ vars.steps[\"Get Table Id\"].tableId }}"
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "get_lookup_table_data",
                "ignore_errors": true,
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "224",
              "left": "321",
              "name": "Table Data",
              "status": null,
              "uuid": "c0aa37bb-2f83-4f14-b888-2b2e6a6807a6",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "conditions": [
                  {
                    "option": "Yes",
                    "step_iri": "/api/3/workflow_steps/3b6d688f-84ab-4a53-98fe-8c7d73517ee3",
                    "condition": "{{vars.capture == \"yes\"}}",
                    "step_name": "Yes"
                  },
                  {
                    "option": "No",
                    "step_iri": "/api/3/workflow_steps/91056dc7-ba70-4bf9-8ca2-c11332c0b1db",
                    "condition": "{{vars.capture == \"no\"}}",
                    "step_name": "No"
                  }
                ]
              },
              "description": null,
              "top": "517",
              "left": "1774",
              "name": "User Exist",
              "status": null,
              "uuid": "60c16595-0604-412b-90ea-1842f84e5425",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/12254cf5-5db7-4b1a-8cb1-3af081924b28",
              "group": null
            },
            {
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "timeTo": "",
                  "perPage": 10,
                  "timeFrom": "",
                  "incident_id": "{{ vars.incidentId }}"
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "get_associated_events",
                "pickFromTenant": false,
                "from_str": ""
              },
              "description": null,
              "top": "781",
              "left": "1226",
              "name": "Get Raw Message",
              "status": null,
              "uuid": "d5e5015f-e350-4df6-9a49-a682f419a0f0",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null
            },
            {
              "arguments": {
                "dn": "{{ vars.steps[\"Get User LDAP Details\"].data.entries[0].dn }}",
                "sam": "{{ vars.steps[\"Get User LDAP Details\"].data.entries[0].attributes.sAMAccountName }}"
              },
              "description": null,
              "top": "966",
              "left": "1230",
              "name": "Capture LDAP Variables",
              "status": null,
              "uuid": "ad1a3e8d-fd11-478d-b56d-d46a633048ca",
              "@type": "WorkflowStep",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null
            }
          ],
          "routes": [
            {
              "@type": "WorkflowRoute",
              "name": "Start->Capture Variables",
              "targetStep": "/api/3/workflow_steps/85f44ddb-fd53-4e20-9ae3-9f1f9dbebde8",
              "sourceStep": "/api/3/workflow_steps/0dbed5dc-ee8c-43f0-a3eb-19117ec21057",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "e2819c23-f78f-4655-ba26-871c6d5cd48f"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Capture Variables->Lookup User",
              "targetStep": "/api/3/workflow_steps/47391b4f-d764-4639-a2bd-a225181f74e7",
              "sourceStep": "/api/3/workflow_steps/85f44ddb-fd53-4e20-9ae3-9f1f9dbebde8",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "5047c80d-487f-4c24-8567-aa67c3a7e70a"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Get Table Id->Table",
              "targetStep": "/api/3/workflow_steps/c0aa37bb-2f83-4f14-b888-2b2e6a6807a6",
              "sourceStep": "/api/3/workflow_steps/23becb4e-1ab0-40ae-af30-730bdb2e7540",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "ef6e09d2-8ac2-4a2d-b21a-564dff3e800a"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Table->Store Table Results",
              "targetStep": "/api/3/workflow_steps/3b7e1d69-3253-45da-8d34-42f5a264a72f",
              "sourceStep": "/api/3/workflow_steps/c0aa37bb-2f83-4f14-b888-2b2e6a6807a6",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "f1b5ac0c-22af-4e69-a904-66e270206a6a"
            },
            {
              "@type": "WorkflowRoute",
              "name": "User Exist->Yes",
              "targetStep": "/api/3/workflow_steps/3b6d688f-84ab-4a53-98fe-8c7d73517ee3",
              "sourceStep": "/api/3/workflow_steps/60c16595-0604-412b-90ea-1842f84e5425",
              "label": "Yes",
              "isExecuted": false,
              "group": null,
              "uuid": "da7a6dc1-5f48-4690-b5f8-4e8adbed4b16"
            },
            {
              "@type": "WorkflowRoute",
              "name": "User Exist->No",
              "targetStep": "/api/3/workflow_steps/91056dc7-ba70-4bf9-8ca2-c11332c0b1db",
              "sourceStep": "/api/3/workflow_steps/60c16595-0604-412b-90ea-1842f84e5425",
              "label": "No",
              "isExecuted": false,
              "group": null,
              "uuid": "b0871071-75fd-4661-a65f-2bd7ebc17809"
            },
            {
              "@type": "WorkflowRoute",
              "name": "1aca8bcf-d13c-4790-adf7-50edcad16c03",
              "targetStep": "/api/3/workflow_steps/60c16595-0604-412b-90ea-1842f84e5425",
              "sourceStep": "/api/3/workflow_steps/947e193e-2ea2-4145-96c6-4a43e40ea4fa",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "f19baa8b-9782-443b-8ca1-0e6695f56b26"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Extract Raw Message->Extract Member Name From Raw",
              "targetStep": "/api/3/workflow_steps/1e4b29f2-c62f-412e-86e4-12e4272ad3e7",
              "sourceStep": "/api/3/workflow_steps/246ec656-6821-4f85-8012-05f9cd12fd44",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "0d60f7cd-eb35-4eed-a9a2-59f584ee2029"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Extract Member Name From Raw->Extract Member Name From XML",
              "targetStep": "/api/3/workflow_steps/7e706693-7bda-46a2-b890-8a41f14237d6",
              "sourceStep": "/api/3/workflow_steps/1e4b29f2-c62f-412e-86e4-12e4272ad3e7",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "9536d13f-34ba-4b67-bd50-55ef3b638ec0"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Extract Member Name From XML->Get User LDAP Details",
              "targetStep": "/api/3/workflow_steps/1e222fe8-e7b8-478d-8f34-993014753204",
              "sourceStep": "/api/3/workflow_steps/7e706693-7bda-46a2-b890-8a41f14237d6",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "126c363e-c3c6-411b-9cbc-1bef8616da28"
            },
            {
              "@type": "WorkflowRoute",
              "name": "4dc3e4e3-6ec7-4bdc-8417-8c872c2709e2",
              "targetStep": "/api/3/workflow_steps/d5e5015f-e350-4df6-9a49-a682f419a0f0",
              "sourceStep": "/api/3/workflow_steps/91056dc7-ba70-4bf9-8ca2-c11332c0b1db",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "4007fcd5-c4b7-4acf-bb6b-9b058a700760"
            },
            {
              "@type": "WorkflowRoute",
              "name": "817f9798-3f80-47e1-a78a-9408211ed146",
              "targetStep": "/api/3/workflow_steps/246ec656-6821-4f85-8012-05f9cd12fd44",
              "sourceStep": "/api/3/workflow_steps/d5e5015f-e350-4df6-9a49-a682f419a0f0",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "c4ea07ac-bae7-432f-9b97-262c669c95c8"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Get User LDAP Details->Capture LDAP Variables",
              "targetStep": "/api/3/workflow_steps/ad1a3e8d-fd11-478d-b56d-d46a633048ca",
              "sourceStep": "/api/3/workflow_steps/1e222fe8-e7b8-478d-8f34-993014753204",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "a3d672f6-35d0-4f08-a558-50e2a13d9050"
            },
            {
              "@type": "WorkflowRoute",
              "name": "473c00e0-94df-495b-9de7-b50c842978bc",
              "targetStep": "/api/3/workflow_steps/f76e8688-1543-4186-af20-cb3775d62461",
              "sourceStep": "/api/3/workflow_steps/ad1a3e8d-fd11-478d-b56d-d46a633048ca",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "2d68cfaf-7649-4146-95d4-83bddde111e6"
            },
            {
              "@type": "WorkflowRoute",
              "name": "c57ef7fd-43a8-4e5e-9a40-1704aa1f5123",
              "targetStep": "/api/3/workflow_steps/784f9170-fa6e-4e44-901e-a413883558a4",
              "sourceStep": "/api/3/workflow_steps/f76e8688-1543-4186-af20-cb3775d62461",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "94228c1b-8a5b-475f-b15b-07acdb6285d3"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Disable User->Set Output",
              "targetStep": "/api/3/workflow_steps/4bd07a62-0f38-4e0b-908c-061943c9bc09",
              "sourceStep": "/api/3/workflow_steps/784f9170-fa6e-4e44-901e-a413883558a4",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "f4dd485e-7402-48a5-8195-c23b783bb2bb"
            },
            {
              "@type": "WorkflowRoute",
              "name": "ec2d4834-756b-41cc-9ac1-ee9294df7b5d",
              "targetStep": "/api/3/workflow_steps/b0ac6f02-eeb1-4f93-9a49-2da0c4fab9bd",
              "sourceStep": "/api/3/workflow_steps/10a45149-178d-43e7-b63d-f7453e7d8ce0",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "f4063cca-edd4-4ee0-a569-075b2e3aa7ab"
            },
            {
              "@type": "WorkflowRoute",
              "name": "fdbdda4e-32a6-4008-b21d-c8cd40822e6c",
              "targetStep": "/api/3/workflow_steps/23becb4e-1ab0-40ae-af30-730bdb2e7540",
              "sourceStep": "/api/3/workflow_steps/b0ac6f02-eeb1-4f93-9a49-2da0c4fab9bd",
              "label": "Exists",
              "isExecuted": false,
              "group": null,
              "uuid": "0deec7c0-e2df-4cfc-a797-1c7003387905"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Check Lookup Table Exists->Table Not Exist",
              "targetStep": "/api/3/workflow_steps/b344f3b3-ec70-444f-abc6-cbac475dce03",
              "sourceStep": "/api/3/workflow_steps/b0ac6f02-eeb1-4f93-9a49-2da0c4fab9bd",
              "label": "Not Exist",
              "isExecuted": false,
              "group": null,
              "uuid": "43b72358-e9e3-4a73-af86-162ed5a5b4dd"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Get Lookup Tables->Store Tables",
              "targetStep": "/api/3/workflow_steps/cb003beb-b64d-4646-90eb-4e33a97a492a",
              "sourceStep": "/api/3/workflow_steps/47391b4f-d764-4639-a2bd-a225181f74e7",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "40ee3a33-3ac5-4b7c-adad-922980643c6d"
            },
            {
              "@type": "WorkflowRoute",
              "name": "09f5ebc7-faf8-468a-8c39-2848e6b65e52",
              "targetStep": "/api/3/workflow_steps/10a45149-178d-43e7-b63d-f7453e7d8ce0",
              "sourceStep": "/api/3/workflow_steps/cb003beb-b64d-4646-90eb-4e33a97a492a",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "75675bd0-6ba2-418b-b270-49bb718d3b8c"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Store Table Results->Empty Lookup Table",
              "targetStep": "/api/3/workflow_steps/a9ad9e74-d9e5-4688-8982-1987dd61cf41",
              "sourceStep": "/api/3/workflow_steps/3b7e1d69-3253-45da-8d34-42f5a264a72f",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "cb320bd1-aa0f-481d-8033-509de5cad1b2"
            },
            {
              "@type": "WorkflowRoute",
              "name": "936dacc8-2270-4ac5-972e-62a0754245cb",
              "targetStep": "/api/3/workflow_steps/947e193e-2ea2-4145-96c6-4a43e40ea4fa",
              "sourceStep": "/api/3/workflow_steps/a9ad9e74-d9e5-4688-8982-1987dd61cf41",
              "label": "Users Populated",
              "isExecuted": false,
              "group": null,
              "uuid": "9297f206-4d8f-4ec4-b616-4eb1309ec00e"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Empty Lookup Table->Return Empty Output",
              "targetStep": "/api/3/workflow_steps/9bb41061-49d7-4fff-b687-d2a3176cb07e",
              "sourceStep": "/api/3/workflow_steps/a9ad9e74-d9e5-4688-8982-1987dd61cf41",
              "label": "Empty",
              "isExecuted": false,
              "group": null,
              "uuid": "37af93af-0c4f-4026-875d-a6a8141b4cab"
            }
          ],
          "isActive": false,
          "groups": [],
          "tag": null,
          "uuid": "20dc5ce5-e8b8-44ea-a6b4-af0832a55d5c",
          "triggerStep": "/api/3/workflow_steps/0dbed5dc-ee8c-43f0-a3eb-19117ec21057",
          "singleRecordExecution": false,
          "priority": "/api/3/picklists/2b563c61-ae2c-41c0-a85a-c9709585e3f2",
          "debug": true,
          "remoteExecutableFlag": false,
          "@type": "Workflow",
          "name": "Remove & Disable new Domain Adminstrator User account (Advanced)",
          "importedBy": [],
          "triggerLimit": null,
          "aliasName": null
        }
      ]
    },
    {
      "name": "003 - Enrichment",
      "@type": "WorkflowCollection",
      "visible": true,
      "workflows": [
        {
          "routes": [
            {
              "@type": "WorkflowRoute",
              "name": "Domain Outbound - Set Domain Variables->Check Domain with IP Quality Score",
              "targetStep": "/api/3/workflow_steps/a67a428c-3256-4550-a95d-87eb0e9618cf",
              "sourceStep": "/api/3/workflow_steps/fff615cf-acb3-4ca1-8fba-7b5e7cf8cce9",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "b0676c18-cb27-47c6-b8d4-cc88a270fd75"
            },
            {
              "@type": "WorkflowRoute",
              "name": "74863cda-b7b0-4859-8585-a521f2815781",
              "targetStep": "/api/3/workflow_steps/a9e0f960-16ac-48dc-86e6-9d44eb23a1ce",
              "sourceStep": "/api/3/workflow_steps/a67a428c-3256-4550-a95d-87eb0e9618cf",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "cb810b6c-f936-491c-885b-c5e1dc1c40dd"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Process URL Quality Score Domain->Set IP Quality Score Summary",
              "targetStep": "/api/3/workflow_steps/f64d374e-9e8b-4468-afc0-f2c4b81e38b6",
              "sourceStep": "/api/3/workflow_steps/7a4de80b-ae3b-4e8e-8d62-642bdd8cbcd6",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "d07afe1a-a38f-4bce-ae0d-f9db831e9903"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Check URL With Virus Total->VT Results",
              "targetStep": "/api/3/workflow_steps/81852d5b-cbfa-47c6-8a58-b4e73149e299",
              "sourceStep": "/api/3/workflow_steps/1615adb8-f5df-46d8-af6d-d10fae9e6a94",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "26907b59-49c1-4778-ac6e-80297a2ae5cc"
            },
            {
              "@type": "WorkflowRoute",
              "name": "e77cfb6d-7aa4-4f9e-a633-e32060b0808e",
              "targetStep": "/api/3/workflow_steps/a5e6c760-93d1-4256-87c1-aaf65b189965",
              "sourceStep": "/api/3/workflow_steps/81852d5b-cbfa-47c6-8a58-b4e73149e299",
              "label": "Results Found",
              "isExecuted": false,
              "group": null,
              "uuid": "403a04b1-466f-451d-9d2f-2740a5ff588b"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Check Domain In VirusTotal->VT Domain Found",
              "targetStep": "/api/3/workflow_steps/6aa03134-1fd0-43cf-8636-dd7c232e2760",
              "sourceStep": "/api/3/workflow_steps/d9831e0b-a68a-4a68-b11c-2c42f527a51c",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "9439a51e-37fb-48cb-afaf-ce9702ade857"
            },
            {
              "@type": "WorkflowRoute",
              "name": "b2e4e045-5778-465d-bd55-f1a7822061bb",
              "targetStep": "/api/3/workflow_steps/858aec92-4087-4745-bfb9-93ad9cb8c6c4",
              "sourceStep": "/api/3/workflow_steps/6aa03134-1fd0-43cf-8636-dd7c232e2760",
              "label": "Results Found",
              "isExecuted": false,
              "group": null,
              "uuid": "4a13f179-d952-4ae3-bc5f-e77ba1893d11"
            },
            {
              "@type": "WorkflowRoute",
              "name": "fac5ad37-6a06-408c-aa71-492e093222a7",
              "targetStep": "/api/3/workflow_steps/b0af8da8-5874-441f-8635-52c638f3f9f1",
              "sourceStep": "/api/3/workflow_steps/14089382-2ebb-4af2-8a4d-32b4f4e9085f",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "c1d2e8af-5472-4842-aeca-07a868eecf5f"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Set IP Quality Score URL Summary->Query FortiSIEM For URL",
              "targetStep": "/api/3/workflow_steps/03af116b-e9dc-43e0-ab95-b857c892a9da",
              "sourceStep": "/api/3/workflow_steps/f64d374e-9e8b-4468-afc0-f2c4b81e38b6",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "03cc757f-34c7-48a7-9611-c363eb02d68f"
            },
            {
              "@type": "WorkflowRoute",
              "name": "ec6bc730-063d-4bba-8811-ca6ecef9c833",
              "targetStep": "/api/3/workflow_steps/03af116b-e9dc-43e0-ab95-b857c892a9da",
              "sourceStep": "/api/3/workflow_steps/22c183bf-fe8a-4e58-929b-f82ba53e3c2f",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "c1253f71-85e5-4fb4-a838-90fbf960b72a"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Set IP Quality Score URL Summary->Adv SQL Query For Top 10 Results URL",
              "targetStep": "/api/3/workflow_steps/f097282a-cfe6-4418-b66f-b8b3e5c635d1",
              "sourceStep": "/api/3/workflow_steps/f64d374e-9e8b-4468-afc0-f2c4b81e38b6",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "4704ae7c-9219-411a-bed5-1ff41e1fb31f"
            },
            {
              "@type": "WorkflowRoute",
              "name": "53fbd1eb-e6b7-44cc-9b44-dd6a150669ad",
              "targetStep": "/api/3/workflow_steps/f097282a-cfe6-4418-b66f-b8b3e5c635d1",
              "sourceStep": "/api/3/workflow_steps/22c183bf-fe8a-4e58-929b-f82ba53e3c2f",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "748a1609-102f-431f-88ce-081dfb9ca7ed"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Create HTML Table for Grouped Results Query->Set Comments Template IP",
              "targetStep": "/api/3/workflow_steps/989aa8ee-61e1-4dda-aacd-2bc02b38ac4d",
              "sourceStep": "/api/3/workflow_steps/ed8d609f-08ad-48e1-8fc0-fb11e7fd6089",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "42c2e17d-8067-4355-895c-aacd2d67976e"
            },
            {
              "@type": "WorkflowRoute",
              "name": "ccc->Final Output IP",
              "targetStep": "/api/3/workflow_steps/6083214d-7ce5-41dc-b751-e4f47617eaec",
              "sourceStep": "/api/3/workflow_steps/55da58a5-15ce-4e90-a853-c692c75cced7",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "b23bc095-680a-4b25-ba7e-8c6462462a45"
            },
            {
              "@type": "WorkflowRoute",
              "name": "VT Results->blah",
              "targetStep": "/api/3/workflow_steps/724a2fe4-f37a-4463-991e-c6ae5b9c27e4",
              "sourceStep": "/api/3/workflow_steps/81852d5b-cbfa-47c6-8a58-b4e73149e299",
              "label": "Not Found",
              "isExecuted": false,
              "group": null,
              "uuid": "601d4db2-5874-4ec7-b2b8-c5e7e8270d3e"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Adv SQL Query For Top 10 Results URL->Build Table For SQL Results",
              "targetStep": "/api/3/workflow_steps/13ba3a4e-adad-4af3-b2c5-e702f2e9d27f",
              "sourceStep": "/api/3/workflow_steps/f097282a-cfe6-4418-b66f-b8b3e5c635d1",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "530626a7-1440-4cda-8a63-8cb1164007a9"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Query FortiSIEM For URL->Build Table For Grouped Results",
              "targetStep": "/api/3/workflow_steps/48c18f66-29b2-4805-a6e5-24de0e117137",
              "sourceStep": "/api/3/workflow_steps/03af116b-e9dc-43e0-ab95-b857c892a9da",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "389800f4-811b-4928-90eb-ff84483abc39"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Choose IOC Type->Set Domain Variables",
              "targetStep": "/api/3/workflow_steps/fff615cf-acb3-4ca1-8fba-7b5e7cf8cce9",
              "sourceStep": "/api/3/workflow_steps/d2d48142-93ce-49ee-a1e0-35a61cbc82cd",
              "label": "Domain Outbound",
              "isExecuted": false,
              "group": null,
              "uuid": "1cfb8c54-712a-4e39-b78d-972cc2a6a592"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Choose IOC Type->Set URL Variables",
              "targetStep": "/api/3/workflow_steps/928e1801-fc28-483c-a7a9-e51d528a7538",
              "sourceStep": "/api/3/workflow_steps/d2d48142-93ce-49ee-a1e0-35a61cbc82cd",
              "label": "URL Outbound",
              "isExecuted": false,
              "group": null,
              "uuid": "a1eb735e-2996-4535-9e25-d64f410f37cb"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Adv SQL Query->Create HTML Table",
              "targetStep": "/api/3/workflow_steps/4a261cbe-e1bd-4e81-b82d-66cc7c576a9e",
              "sourceStep": "/api/3/workflow_steps/0fe90644-1607-4dc7-ad7d-cf9b6a83edd3",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "478292e3-332a-4b2c-8862-9ab71c668377"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Query FortiSIEM For Other Hosts->Create HTML Table for Query",
              "targetStep": "/api/3/workflow_steps/ed8d609f-08ad-48e1-8fc0-fb11e7fd6089",
              "sourceStep": "/api/3/workflow_steps/78a2aa1b-1ada-4c6a-8589-566f02e9b027",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "4694a63e-7421-4df3-a8b9-941245c07103"
            },
            {
              "@type": "WorkflowRoute",
              "name": "96908bef-119f-4255-8f8a-5c9d631c7dfa",
              "targetStep": "/api/3/workflow_steps/9a18dc0d-3869-4eb0-a24e-812e719aedc4",
              "sourceStep": "/api/3/workflow_steps/8960991b-77ce-47ac-a873-12d09496e884",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "c1ba1214-e80e-41ec-a816-803c227ac568"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Check IP Reputation in Virus Total->Process VT IP Results",
              "targetStep": "/api/3/workflow_steps/967a9345-7768-4920-ac4e-9cf8902827c2",
              "sourceStep": "/api/3/workflow_steps/d0f84c8e-977c-46fa-b185-8415918b479d",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "a8dac940-ee77-4550-8850-6c112a6d12c7"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Check IP In IP Quality Score->Process IP Quality Score Results",
              "targetStep": "/api/3/workflow_steps/657cc2e3-0522-4d83-ab0f-6298adde2eab",
              "sourceStep": "/api/3/workflow_steps/993d36cc-a418-4e00-8bb3-f45f4062054f",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "3e672f65-ff96-41ff-8e7b-6c0d40b87935"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Process VT IP Results->Set VT Summary",
              "targetStep": "/api/3/workflow_steps/8466e7f7-069c-4118-9aaa-af8d7129f634",
              "sourceStep": "/api/3/workflow_steps/967a9345-7768-4920-ac4e-9cf8902827c2",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "89a28991-6dae-45ca-b486-cae4dd1f06d8"
            },
            {
              "@type": "WorkflowRoute",
              "name": "VT Domain Found->Blah DDD",
              "targetStep": "/api/3/workflow_steps/2d995b25-1e09-4b63-86ce-420dccb9e3c5",
              "sourceStep": "/api/3/workflow_steps/6aa03134-1fd0-43cf-8636-dd7c232e2760",
              "label": "Not Found",
              "isExecuted": false,
              "group": null,
              "uuid": "20340417-0fd9-4614-b068-2b814ead048b"
            },
            {
              "@type": "WorkflowRoute",
              "name": "87aad6cb-4d41-4836-a241-bd0cfd3a7244",
              "targetStep": "/api/3/workflow_steps/14089382-2ebb-4af2-8a4d-32b4f4e9085f",
              "sourceStep": "/api/3/workflow_steps/48c18f66-29b2-4805-a6e5-24de0e117137",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "f4f8d29b-3f47-48f7-b4fd-d19edf0b17d2"
            },
            {
              "@type": "WorkflowRoute",
              "name": "b862739d-269b-4073-896d-d30a82c6fb38",
              "targetStep": "/api/3/workflow_steps/14089382-2ebb-4af2-8a4d-32b4f4e9085f",
              "sourceStep": "/api/3/workflow_steps/13ba3a4e-adad-4af3-b2c5-e702f2e9d27f",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "70ce4a45-8e4e-40db-8bcd-00a1e15aff06"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Process Domain Quality Score Domain->Basic Query",
              "targetStep": "/api/3/workflow_steps/3505b754-c165-44ac-b076-c78de81ebfdc",
              "sourceStep": "/api/3/workflow_steps/a9e0f960-16ac-48dc-86e6-9d44eb23a1ce",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "9fbcfc00-cdb3-4e16-9061-b7cd3bc10dde"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Process Domain Quality Score Domain->xxx",
              "targetStep": "/api/3/workflow_steps/ce4419ca-3663-4070-97ba-a01252166953",
              "sourceStep": "/api/3/workflow_steps/a9e0f960-16ac-48dc-86e6-9d44eb23a1ce",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "f9f56af0-e324-4944-8bb2-9a391b8c8e4e"
            },
            {
              "@type": "WorkflowRoute",
              "name": "02c7ec1c-fbeb-4811-b0e9-a695bf77a364",
              "targetStep": "/api/3/workflow_steps/99bb179e-e4d4-436b-87e0-223ac0da8907",
              "sourceStep": "/api/3/workflow_steps/3505b754-c165-44ac-b076-c78de81ebfdc",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "fd0d7934-4362-44a7-9f12-ac575cff316d"
            },
            {
              "@type": "WorkflowRoute",
              "name": "f9c3ce6a-7fa2-4d5d-b50f-11ad5b8660de",
              "targetStep": "/api/3/workflow_steps/5f3f67f6-e65b-4b5b-8dcc-0ffbd49157c6",
              "sourceStep": "/api/3/workflow_steps/ce4419ca-3663-4070-97ba-a01252166953",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "59a18e54-2bbb-45dc-a144-48f65861c3c3"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Build Table For SQL Results - Domain->Set Comments Template Domain",
              "targetStep": "/api/3/workflow_steps/85b78c9e-0b44-40af-9951-57a8aacecc94",
              "sourceStep": "/api/3/workflow_steps/5f3f67f6-e65b-4b5b-8dcc-0ffbd49157c6",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "5bd637b1-25e6-481a-a6b4-78ba3e4d59da"
            },
            {
              "@type": "WorkflowRoute",
              "name": "ffeb8dba-1921-4ee6-9ccf-dfb2b8b08e08",
              "targetStep": "/api/3/workflow_steps/85b78c9e-0b44-40af-9951-57a8aacecc94",
              "sourceStep": "/api/3/workflow_steps/2d995b25-1e09-4b63-86ce-420dccb9e3c5",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "f4102404-36ba-4313-b44f-72a9d352fcfa"
            },
            {
              "@type": "WorkflowRoute",
              "name": "bb7d55d5-a42f-45e6-9037-efdbde788652",
              "targetStep": "/api/3/workflow_steps/ce4419ca-3663-4070-97ba-a01252166953",
              "sourceStep": "/api/3/workflow_steps/293bd174-9296-46e2-8f48-4c464cfdc3aa",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "8b6223c1-08ef-4a7c-8620-970752b65539"
            },
            {
              "@type": "WorkflowRoute",
              "name": "22f2e593-74a8-4477-966b-f60f7e009447",
              "targetStep": "/api/3/workflow_steps/3505b754-c165-44ac-b076-c78de81ebfdc",
              "sourceStep": "/api/3/workflow_steps/293bd174-9296-46e2-8f48-4c464cfdc3aa",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "7c9d9564-e7d6-470b-8f7b-4e9ea82ce4a4"
            },
            {
              "@type": "WorkflowRoute",
              "name": "143fc14f-efd3-4d69-85df-2184f8d28c91",
              "targetStep": "/api/3/workflow_steps/85b78c9e-0b44-40af-9951-57a8aacecc94",
              "sourceStep": "/api/3/workflow_steps/99bb179e-e4d4-436b-87e0-223ac0da8907",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "bc87551f-4f5d-4c24-bc7d-6b925d1e9928"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Set Comments Template Domain->Update Comments",
              "targetStep": "/api/3/workflow_steps/17317e8e-00e3-458b-9a3e-1d2634941dda",
              "sourceStep": "/api/3/workflow_steps/85b78c9e-0b44-40af-9951-57a8aacecc94",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "604512ec-610e-45fa-a6dc-fe41aed76d4e"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Add Incident Comments Domain->Final Output Domain",
              "targetStep": "/api/3/workflow_steps/55a31f05-20aa-44c8-99ce-acd22e62e35b",
              "sourceStep": "/api/3/workflow_steps/17317e8e-00e3-458b-9a3e-1d2634941dda",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "08965002-ebd9-4bac-8659-a0e041e60736"
            },
            {
              "@type": "WorkflowRoute",
              "name": "a6981797-02d0-4499-b701-edbf6ed60e11",
              "targetStep": "/api/3/workflow_steps/78a2aa1b-1ada-4c6a-8589-566f02e9b027",
              "sourceStep": "/api/3/workflow_steps/8466e7f7-069c-4118-9aaa-af8d7129f634",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "0aeac698-2ed4-4310-8307-64b0123c441e"
            },
            {
              "@type": "WorkflowRoute",
              "name": "f0b71125-e839-44c8-9440-9aa7427af34e",
              "targetStep": "/api/3/workflow_steps/0fe90644-1607-4dc7-ad7d-cf9b6a83edd3",
              "sourceStep": "/api/3/workflow_steps/8466e7f7-069c-4118-9aaa-af8d7129f634",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "7c46c1ea-7f7e-4794-b1ed-51f894e9a437"
            },
            {
              "@type": "WorkflowRoute",
              "name": "44febab9-2bbc-4401-a732-438cea2c1bf8",
              "targetStep": "/api/3/workflow_steps/acbc891e-3cad-448b-8f01-97390238502c",
              "sourceStep": "/api/3/workflow_steps/b0af8da8-5874-441f-8635-52c638f3f9f1",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "aea5025c-166f-44c3-a1e7-7afb3d99106f"
            },
            {
              "@type": "WorkflowRoute",
              "name": "c64a750d-9b79-4c68-8dec-c503977b99a7",
              "targetStep": "/api/3/workflow_steps/14089382-2ebb-4af2-8a4d-32b4f4e9085f",
              "sourceStep": "/api/3/workflow_steps/724a2fe4-f37a-4463-991e-c6ae5b9c27e4",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "2307b826-523e-44f6-b5dc-628ae935c715"
            },
            {
              "@type": "WorkflowRoute",
              "name": "810a8b6c-8fec-45aa-b442-cfbc2fecc701",
              "targetStep": "/api/3/workflow_steps/0fe90644-1607-4dc7-ad7d-cf9b6a83edd3",
              "sourceStep": "/api/3/workflow_steps/657cc2e3-0522-4d83-ab0f-6298adde2eab",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "f70e5631-97d7-4bd9-bad6-e4b2d0414456"
            },
            {
              "@type": "WorkflowRoute",
              "name": "9f6c62e2-5fe0-4cef-b9f0-50513150e7a7",
              "targetStep": "/api/3/workflow_steps/78a2aa1b-1ada-4c6a-8589-566f02e9b027",
              "sourceStep": "/api/3/workflow_steps/657cc2e3-0522-4d83-ab0f-6298adde2eab",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "ec31b118-476e-448d-beab-0d603358f7a5"
            },
            {
              "@type": "WorkflowRoute",
              "name": "0474e57b-942a-44c4-afc0-11c734cf0599",
              "targetStep": "/api/3/workflow_steps/989aa8ee-61e1-4dda-aacd-2bc02b38ac4d",
              "sourceStep": "/api/3/workflow_steps/4a261cbe-e1bd-4e81-b82d-66cc7c576a9e",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "09d5057d-9802-4e31-a73d-7cb58c40c622"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Start->Capture Variables",
              "targetStep": "/api/3/workflow_steps/8960991b-77ce-47ac-a873-12d09496e884",
              "sourceStep": "/api/3/workflow_steps/7e2f7ac0-46b9-4829-857f-7d37e03ca966",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "0627390b-e6d5-4153-8644-9ef8a743eb58"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Set IP->Check IP Reputation",
              "targetStep": "/api/3/workflow_steps/d0f84c8e-977c-46fa-b185-8415918b479d",
              "sourceStep": "/api/3/workflow_steps/20fdc1eb-6ee1-4d72-b0e9-d674aa14aaca",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "92a11561-10c3-45a5-a1c8-be191ce295e5"
            },
            {
              "@type": "WorkflowRoute",
              "name": "b5d53e5e-5df1-4926-bdd2-f366b45b659a",
              "targetStep": "/api/3/workflow_steps/d2d48142-93ce-49ee-a1e0-35a61cbc82cd",
              "sourceStep": "/api/3/workflow_steps/9a18dc0d-3869-4eb0-a24e-812e719aedc4",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "52337a7d-4e48-46ea-8287-d17ddb5b8172"
            },
            {
              "@type": "WorkflowRoute",
              "name": "07be8fd1-1d1f-45d3-998b-05af36680767",
              "targetStep": "/api/3/workflow_steps/20fdc1eb-6ee1-4d72-b0e9-d674aa14aaca",
              "sourceStep": "/api/3/workflow_steps/d2d48142-93ce-49ee-a1e0-35a61cbc82cd",
              "label": "IP Inbound",
              "isExecuted": false,
              "group": null,
              "uuid": "ff5f2d52-3924-476d-970e-bc9b1c1f6cad"
            },
            {
              "@type": "WorkflowRoute",
              "name": "43268aea-5a21-4f63-9d6a-82c6b78eb2f9",
              "targetStep": "/api/3/workflow_steps/1a7555ba-5705-4df8-99f4-634f1c3a388e",
              "sourceStep": "/api/3/workflow_steps/d2d48142-93ce-49ee-a1e0-35a61cbc82cd",
              "label": "IP Outbound",
              "isExecuted": false,
              "group": null,
              "uuid": "d72aca59-63ff-4cda-8c35-b6748c6c53c3"
            },
            {
              "@type": "WorkflowRoute",
              "name": "cb60aaf6-c2bd-4e94-a2c8-7333f338c9dd",
              "targetStep": "/api/3/workflow_steps/d0f84c8e-977c-46fa-b185-8415918b479d",
              "sourceStep": "/api/3/workflow_steps/1a7555ba-5705-4df8-99f4-634f1c3a388e",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "cc3dd63b-4cae-4202-b04e-88f1489fefa4"
            },
            {
              "@type": "WorkflowRoute",
              "name": "03373f15-ac0b-446e-b582-5a01d0534587",
              "targetStep": "/api/3/workflow_steps/993d36cc-a418-4e00-8bb3-f45f4062054f",
              "sourceStep": "/api/3/workflow_steps/1a7555ba-5705-4df8-99f4-634f1c3a388e",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "1fa2b064-e4f6-471d-a898-0366f2ee61dc"
            },
            {
              "@type": "WorkflowRoute",
              "name": "58d983e8-4151-4a1e-89e1-1833fe8545d2",
              "targetStep": "/api/3/workflow_steps/993d36cc-a418-4e00-8bb3-f45f4062054f",
              "sourceStep": "/api/3/workflow_steps/20fdc1eb-6ee1-4d72-b0e9-d674aa14aaca",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "16e98813-4076-4242-b9f7-8b87e32df585"
            },
            {
              "@type": "WorkflowRoute",
              "name": "44f477da-d488-49a7-ba78-1620ee0d4a70",
              "targetStep": "/api/3/workflow_steps/a1fc6ce9-3e9d-46ba-8680-9a8702c1ec76",
              "sourceStep": "/api/3/workflow_steps/d2d48142-93ce-49ee-a1e0-35a61cbc82cd",
              "label": "Domain Inbound",
              "isExecuted": false,
              "group": null,
              "uuid": "194134ac-b5b9-4369-a2ed-a4bad172b3c3"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Choose IOC Type->Other",
              "targetStep": "/api/3/workflow_steps/fc1a6bec-76e8-49a9-a258-dfdb75fc16a9",
              "sourceStep": "/api/3/workflow_steps/d2d48142-93ce-49ee-a1e0-35a61cbc82cd",
              "label": "Other",
              "isExecuted": false,
              "group": null,
              "uuid": "b0bcc1f3-f6dc-45e2-a2e9-623694c93e9d"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Domain Outbound - Set Domain Variables->Check Domain In VirusTotal",
              "targetStep": "/api/3/workflow_steps/d9831e0b-a68a-4a68-b11c-2c42f527a51c",
              "sourceStep": "/api/3/workflow_steps/fff615cf-acb3-4ca1-8fba-7b5e7cf8cce9",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "1462ef58-c663-4cdd-8205-0d5320e92dfd"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Set Comments Template IP->ccc",
              "targetStep": "/api/3/workflow_steps/55da58a5-15ce-4e90-a853-c692c75cced7",
              "sourceStep": "/api/3/workflow_steps/989aa8ee-61e1-4dda-aacd-2bc02b38ac4d",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "efaed6e8-c23c-47b0-81a9-0821c4902b86"
            },
            {
              "@type": "WorkflowRoute",
              "name": "7531bdeb-13f2-4db9-aaa7-4f873f5ec621",
              "targetStep": "/api/3/workflow_steps/d9831e0b-a68a-4a68-b11c-2c42f527a51c",
              "sourceStep": "/api/3/workflow_steps/a1fc6ce9-3e9d-46ba-8680-9a8702c1ec76",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "8143be4a-082f-4035-9d27-1db68842d9f2"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Set URL Variables->Check URL With Virus Total",
              "targetStep": "/api/3/workflow_steps/1615adb8-f5df-46d8-af6d-d10fae9e6a94",
              "sourceStep": "/api/3/workflow_steps/928e1801-fc28-483c-a7a9-e51d528a7538",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "fb751a56-3c37-45e5-845c-e15f7e769ec7"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Set URL Variables->Check URL with IP Quality Score",
              "targetStep": "/api/3/workflow_steps/6afd422e-9c7b-4a71-8ac0-06e23c51631e",
              "sourceStep": "/api/3/workflow_steps/928e1801-fc28-483c-a7a9-e51d528a7538",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "cab3bd1d-c58b-41e4-bae0-e23285a84c59"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Process VT URL Results->Set VT URL Summary",
              "targetStep": "/api/3/workflow_steps/22c183bf-fe8a-4e58-929b-f82ba53e3c2f",
              "sourceStep": "/api/3/workflow_steps/a5e6c760-93d1-4256-87c1-aaf65b189965",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "c89af39c-1c98-42fc-ad8f-553208ea2403"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Process VT Domain Results->Set VT Domain Results",
              "targetStep": "/api/3/workflow_steps/293bd174-9296-46e2-8f48-4c464cfdc3aa",
              "sourceStep": "/api/3/workflow_steps/858aec92-4087-4745-bfb9-93ad9cb8c6c4",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "cb1e45d1-c59e-4014-9bd6-de71da3a4c05"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Check URL with IP Quality Score->Process IP Quality Score Domain",
              "targetStep": "/api/3/workflow_steps/7a4de80b-ae3b-4e8e-8d62-642bdd8cbcd6",
              "sourceStep": "/api/3/workflow_steps/6afd422e-9c7b-4a71-8ac0-06e23c51631e",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "697da8e1-dc94-4ab4-8683-537c5923e072"
            }
          ],
          "@type": "Workflow",
          "parameters": [
            {
              "name": "ioc_type",
              "type": "any",
              "defaultValue": ""
            },
            {
              "name": "ioc_value",
              "type": "any",
              "defaultValue": ""
            }
          ],
          "uuid": "76a0084c-4884-4d59-8601-5938e06a6251",
          "debug": true,
          "singleRecordExecution": false,
          "groups": [],
          "isPrivate": false,
          "description": "This collection uses FortiGuard Threat Intel Connector to enrich IOC of IP, domain, IPS Signature enriched to CVE and return CVE Data and Malware\nConfiguration\n\nSteps: See Actions Performed Table in the documentation or configure each of the defined Connectors and set the Target . Configure the FortiSIEM Connector to use Target as \"supervisor-agent\"",
          "recordTags": [
            "ioc match"
          ],
          "priority": "/api/3/picklists/2b563c61-ae2c-41c0-a85a-c9709585e3f2",
          "synchronous": false,
          "isActive": false,
          "triggerStep": "/api/3/workflow_steps/7e2f7ac0-46b9-4829-857f-7d37e03ca966",
          "tag": null,
          "steps": [
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "a116f38a-355d-45ef-8c7f-fcf78916c2a2",
              "left": "300",
              "arguments": {
                "data": "{\"value\":\"{{ vars.input.params.ioc_value }}\",\"reputation\":\"{{ vars.steps.Enrich_Filehash.data.attributes.last_analysis_stats.malicious  }}\",\"type\":\"{{ vars.input.params.ioc_type }}\"}"
              },
              "name": "Set Enrich FileHash",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "description": null,
              "top": "2641"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "d0f84c8e-977c-46fa-b185-8415918b479d",
              "left": "2445",
              "arguments": {
                "name": "VirusTotal",
                "config": "",
                "params": {
                  "ip": "{{ vars.lookup_ip }}",
                  "relationships": ""
                },
                "version": "3.2.1",
                "connector": "virustotal",
                "operation": "query_ip",
                "pickFromTenant": false,
                "from_str": ""
              },
              "name": "Check IP Reputation in Virus Total",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "description": null,
              "top": "1211"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "d9831e0b-a68a-4a68-b11c-2c42f527a51c",
              "left": "2447",
              "arguments": {
                "name": "VirusTotal",
                "config": "",
                "params": {
                  "domain": "{{ vars.domain }}",
                  "relationships": ""
                },
                "version": "3.2.1",
                "connector": "virustotal",
                "operation": "query_domain",
                "pickFromTenant": false,
                "from_str": ""
              },
              "name": "Check Domain In VirusTotal",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "description": null,
              "top": "740"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "1615adb8-f5df-46d8-af6d-d10fae9e6a94",
              "left": "2444",
              "arguments": {
                "name": "VirusTotal",
                "config": "",
                "params": {
                  "url": "{{ vars.url }}",
                  "relationships": ""
                },
                "version": "3.2.1",
                "connector": "virustotal",
                "operation": "query_url",
                "ignore_errors": true,
                "pickFromTenant": false,
                "from_str": ""
              },
              "name": "Check URL With Virus Total",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "description": null,
              "top": "304"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "81852d5b-cbfa-47c6-8a58-b4e73149e299",
              "left": "2911",
              "arguments": {
                "conditions": [
                  {
                    "option": "Not Found",
                    "step_iri": "/api/3/workflow_steps/724a2fe4-f37a-4463-991e-c6ae5b9c27e4",
                    "condition": "{{vars.steps[\"Check URL With Virus Total\"].data.code == 'NotFoundError'}}",
                    "step_name": "Virus Total URL No Results"
                  },
                  {
                    "option": "Results Found",
                    "default": true,
                    "step_iri": "/api/3/workflow_steps/a5e6c760-93d1-4256-87c1-aaf65b189965",
                    "step_name": "Process VT URL Results"
                  }
                ]
              },
              "name": "VT Results",
              "stepType": "/api/3/workflow_step_types/12254cf5-5db7-4b1a-8cb1-3af081924b28",
              "description": null,
              "top": "177"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "b0af8da8-5874-441f-8635-52c638f3f9f1",
              "left": "5263",
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "id": "{{ vars.steps.Configuration.incidentId }}",
                  "comment_text": "{{ vars.template }}"
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "incident_comment",
                "pickFromTenant": false,
                "from_str": ""
              },
              "name": "Add Incident Comments URL",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "description": null,
              "top": "271"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "03af116b-e9dc-43e0-ab95-b857c892a9da",
              "left": "4365",
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "cond": "{{ vars.basic_query }}",
                  "start": 0,
                  "value": 24,
                  "groupby": "{{ vars.basic_group_by }}",
                  "orderby": "phRecvTime DESC",
                  "perPage": 10,
                  "AttrList": "{{ vars.basic_fields }}",
                  "rel_time": "Hours",
                  "query_type": "Basic Query",
                  "time_selection": "Relative Time"
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "run_report",
                "ignore_errors": true,
                "pickFromTenant": false,
                "from_str": ""
              },
              "name": "Query FortiSIEM For URL",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "description": null,
              "top": "158"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "e291e48a-81ac-4a9c-ba54-9d13558aaf32",
              "left": "300",
              "arguments": {
                "data": "{\"value\":\"{{ vars.input.params.ioc_value }}\",\"reputation\":\"{{ vars.steps.Enrich_IP.data.attributes.last_analysis_stats.malicious }}\",\"type\":\"{{ vars.input.params.ioc_type }}\"}"
              },
              "name": "Set Enriched IP",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "description": null,
              "top": "2236"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "873b357b-81a8-4ac3-a868-e106dd48242c",
              "left": "300",
              "arguments": {
                "data": "{\"value\":\"{{ vars.input.params.ioc_value }}\",\"reputation\":\"{{vars.steps.Enrich_URL.data.attributes.last_analysis_stats.malicious}}\",\"type\":\"{{ vars.input.params.ioc_type }}\"}"
              },
              "name": "Set Enriched URL",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "description": null,
              "top": "2371"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "fc1a6bec-76e8-49a9-a258-dfdb75fc16a9",
              "left": "1884",
              "arguments": {
                "ioc": "None",
                "output": "No Enrichment Available for this Incident with this Playbook. "
              },
              "name": "Other",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "description": null,
              "top": "1803"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "2d995b25-1e09-4b63-86ce-420dccb9e3c5",
              "left": "3044",
              "arguments": {
                "last_analysis_time": "Not Available",
                "vt_domain_result_table": "No Results for {{ vars.ioc }}"
              },
              "name": "Virus Total Domain No Results",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "description": null,
              "top": "821"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "17317e8e-00e3-458b-9a3e-1d2634941dda",
              "left": "5483",
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "id": "{{ vars.steps.Configuration.incidentId }}",
                  "comment_text": "{{ vars.template }}"
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "incident_comment",
                "pickFromTenant": false,
                "from_str": ""
              },
              "name": "Add Incident Comments Domain",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "description": null,
              "top": "718"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "724a2fe4-f37a-4463-991e-c6ae5b9c27e4",
              "left": "3310",
              "arguments": {
                "last_analysis_time": "Not Available",
                "vt_url_result_table": "No Results for {{ vars.url }}"
              },
              "name": "Virus Total URL No Results",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "description": null,
              "top": "285"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "f64d374e-9e8b-4468-afc0-f2c4b81e38b6",
              "left": "3309",
              "arguments": {
                "qual_score_url_summary": "<html>\n  <body style=\"background-color:#1e1e1e; font-family:Arial, sans-serif; color:#ffffff; padding:15px;\">\n    <h4 style=\"margin-bottom: 5px;\">🔎 IP Quality Score Assessment</h4>\n    <p style=\"margin: 0;\">The assessed risk score is: {{ vars.steps[\"Check URL with IP Quality Score\"].data.risk_score }}\n  </body>\n</html>"
              },
              "name": "Set IP Quality Score URL Summary",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "description": null,
              "top": "58"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "7e2f7ac0-46b9-4829-857f-7d37e03ca966",
              "left": "300",
              "arguments": {
                "__triggerLimit": true,
                "step_variables": {
                  "input": {
                    "params": []
                  }
                },
                "triggerOnSource": true,
                "triggerOnReplicate": false
              },
              "name": "Start",
              "stepType": "/api/3/workflow_step_types/b348f017-9a94-471f-87f8-ce88b6a7ad62",
              "description": null,
              "top": "1042"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "a597f125-6a8f-4d8c-91a6-0cae233d659b",
              "left": "300",
              "arguments": {
                "data": "{\"value\":\"{{ vars.input.params.ioc_value }}\",\"reputation\":\"{{vars.steps.Enrich_Domain.data.attributes.last_analysis_stats.malicious }}\",\"type\":\"{{ vars.input.params.ioc_type }}\"}"
              },
              "name": "Set Enriched Domain",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "description": null,
              "top": "2506"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "657cc2e3-0522-4d83-ab0f-6298adde2eab",
              "left": "2859",
              "arguments": {
                "ip_qual_ip_table": "### 📊 Quality Data\n\n#### IP Details\n| Field        | Value |\n|--------------|-------|\n| ASN          | {{ vars.steps[\"Check IP In IP Quality Score\"].data.ASN }} |\n| ISP          | {{ vars.steps[\"Check IP In IP Quality Score\"].data.ISP }} |\n| Organization | {{ vars.steps[\"Check IP In IP Quality Score\"].data.organization }} |\n| Timezone     | {{ vars.steps[\"Check IP In IP Quality Score\"].data.timezone }} |\n\n#### Network Flags\n| Field      | Value |\n|------------|-------|\n| Proxy      | {{ vars.steps[\"Check IP In IP Quality Score\"].data.proxy }} |\n| Active TOR | {{ vars.steps[\"Check IP In IP Quality Score\"].data.active_tor }} |\n| Is Crawler | {{ vars.steps[\"Check IP In IP Quality Score\"].data.is_crawler }} |\n| Bot Status | {{ vars.steps[\"Check IP In IP Quality Score\"].data.bot_status }} |\n\n#### Abuse Indicators\n| Field         | Value |\n|---------------|-------|\n| Recent Abuse  | {{ vars.steps[\"Check IP In IP Quality Score\"].data.recent_abuse }} |\n| Fraud Score   | {{ vars.steps[\"Check IP In IP Quality Score\"].data.fraud_score }} |\n",
                "ip_qual_ip_table_html": "<h3 style=\"color:#333;\">📊 Quality Data</h3>\n<table border=\"1\" style=\"border-collapse: collapse; width: 60%;\">\n  <thead>\n    <tr style=\"background:#1B2554; color:#fff;\">\n      <th colspan=\"2\" style=\"text-align:center;\">IP Details</th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr>\n      <td style=\"background:white;\">ASN</td>\n      <td style=\"background:white;\">{{ vars.steps[\"Check IP In IP Quality Score\"].data.ASN }}</td>\n    </tr>\n    <tr>\n      <td style=\"background:white;\">ISP</td>\n      <td style=\"background:white;\">{{ vars.steps[\"Check IP In IP Quality Score\"].data.ISP }}</td>\n    </tr>\n    <tr>\n      <td style=\"background:white;\">Organization</td>\n      <td style=\"background:white;\">{{ vars.steps[\"Check IP In IP Quality Score\"].data.organization }}</td>\n    </tr>\n    <tr>\n      <td style=\"background:white;\">Timezone</td>\n      <td style=\"background:white;\">{{ vars.steps[\"Check IP In IP Quality Score\"].data.timezone }}</td>\n    </tr>\n    <!-- Separator -->\n    <tr style=\"background:#1B2554; color:#fff;\">\n      <td colspan=\"2\" style=\"text-align:center;\">\n        <strong>Network Flags</strong>\n      </td>\n    </tr>\n    <tr>\n      <td style=\"background:white;\">Proxy</td>\n      <td style=\"background:white;\">{{ vars.steps[\"Check IP In IP Quality Score\"].data.proxy }}</td>\n    </tr>\n    <tr>\n      <td style=\"background:white;\">Active TOR</td>\n      <td style=\"background:white;\">{{ vars.steps[\"Check IP In IP Quality Score\"].data.active_tor }}</td>\n    </tr>\n    <tr>\n      <td style=\"background:white;\">Is Crawler</td>\n      <td style=\"background:white;\">{{ vars.steps[\"Check IP In IP Quality Score\"].data.is_crawler }}</td>\n    </tr>\n    <tr>\n      <td style=\"background:white;\">Bot Status</td>\n      <td style=\"background:white;\">{{ vars.steps[\"Check IP In IP Quality Score\"].data.bot_status }}</td>\n    </tr>\n    <!-- Separator -->\n    <tr style=\"background:#1B2554; color:#fff;\">\n      <td colspan=\"2\" style=\"text-align:center;\">\n        <strong>Abuse Indicators</strong>\n      </td>\n    </tr>\n    <tr>\n      <td style=\"background:white;\">Recent Abuse</td>\n      <td style=\"background:white;\">{{ vars.steps[\"Check IP In IP Quality Score\"].data.recent_abuse }}</td>\n    </tr>\n    <tr>\n      <td style=\"background:white;\">Fraud Score</td>\n      <td style=\"background:white;\">{{ vars.steps[\"Check IP In IP Quality Score\"].data.fraud_score }}</td>\n    </tr>\n  </tbody>\n</table>"
              },
              "name": "Process IP Quality Score Results",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "description": null,
              "top": "1331"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "928e1801-fc28-483c-a7a9-e51d528a7538",
              "left": "1874",
              "arguments": {
                "ioc": "{{ vars.input.records[0].detailDict.infoURL }}",
                "url": "{{ vars.input.records[0].detailDict.infoURL }}",
                "asset": "{{ vars.steps.Configuration.srcIp }}",
                "basic_query": "infoURL = \"{{ vars.input.records[0].detailDict.infoURL }}\" AND phCustId = {{ vars.input.records[0].phCustId }}",
                "basic_fields": "srcIpAddr,destName,infoURL,fwAction,profileName,COUNT(*)",
                "basic_group_by": "srcIpAddr,destName,infoURL,fwAction,profileName",
                "adv_sql_siem_query": "SELECT phRecvTime AS \"Event Receive Time\", reptDevName AS \"Reporting Device\", eventType AS \"Event Type\", srcIpAddrV4 AS \"Source IP\", destName AS \"Destination Name\", metrics_string.value[indexOf(metrics_string.name, 'infoURL')] AS \"Informational URL\", metrics_string.value[indexOf(metrics_string.name, 'fwAction')] AS \"Firewall Action\", metrics_string.value[indexOf(metrics_string.name, 'policyName')] AS \"Policy Name\" FROM fsiem.events WHERE (phCustId = '{{ vars.steps.Configuration.custId }}') AND (metrics_string.value[indexOf(metrics_string.name, 'infoURL')] = '{{ vars.input.records[0].detailDict.infoURL }}') AND (eventType NOT ILIKE '%PH_RULE%') AND (phRecvTime > (now() - toIntervalDay(1))) LIMIT 20"
              },
              "name": "Set URL Variables",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "description": null,
              "top": "163"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "55da58a5-15ce-4e90-a853-c692c75cced7",
              "left": "5207",
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "id": "{{ vars.steps.Configuration.incidentId }}",
                  "comment_text": "{{ vars.template }}"
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "incident_comment",
                "pickFromTenant": false,
                "from_str": ""
              },
              "name": "Add Incident Comments IP",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "description": null,
              "top": "1265"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "14089382-2ebb-4af2-8a4d-32b4f4e9085f",
              "left": "4957",
              "arguments": {
                "template": "{% if vars.input.records|length > 0 %}\n{% set incident = vars.input.records[0] %}\n{% set first_seen = arrow.get(incident.incidentFirstSeen / 1000).to(\"UTC\").format(\"YYYY-MM-DD HH:mm:ss ZZ\") %}\n{% set last_seen = arrow.get(incident.incidentLastSeen / 1000).to(\"UTC\").format(\"YYYY-MM-DD HH:mm:ss ZZ\") %}\n\n## 📋 Security Incident Summary\n- **Incident ID:** {{ incident.incidentId }}\n- **Title:** {{ incident.incidentTitle }}\n- **Status:** {{ \"🔴 Active\" if incident.incidentStatus == 0 else \"🟢 Resolved\" }}\n- **Severity:** {{ incident.eventSeverityCat }} ({{ incident.eventSeverity }}/10)\n\n---\n\n### 🧨 Threat Details\n| Field              | Value |\n|--------------------|-------|\n| Compromised Device | `{{ vars.asset }}` |\n| Attack Tactic      | {{ incident.attackTactic }} |\n| Attack Technique   | {{ incident.attackTechniqueId }} - {{ (incident.attackTechnique|from_json)[0].name if incident.attackTechnique }} |\n\n---\n\n### ⏱️ Timeline\n| Field       | Value |\n|-------------|-------|\n| First Seen  | {{ first_seen }} |\n| Last Seen   | {{ last_seen }} |\n{% if incident.incidentClearedTime > 0 -%}\n| Cleared     | {{ arrow.get(incident.incidentClearedTime / 1000).to(\"UTC\").format(\"YYYY-MM-DD HH:mm:ss ZZ\") }} |\n{% endif %}\n\n---\n\n### 📡 Reporting Information\n| Field            | Value |\n|------------------|-------|\n| Reporting Device | {{ incident.incidentRptDevName }} ({{ incident.incidentRptIp }}) |\n| Customer         | {{ incident.customer }} |\n\n---\n\n### 🦠 VirusTotal Analysis\n- **Analysis Date:** {{ vars.last_analysis_time }}\n- Results:  \n  {{ vars.vt_url_result_table }}\n\n---\n\n### 🌐 IP Quality Score\n- **Risk Score:** {{ vars.steps[\"Check URL with IP Quality Score\"].data.risk_score }}\n- Results:  \n  {{ vars.ip_qual_url_table }}\n\n---\n\n### 📊 FortiSIEM Historical Queries\n**Other Hosts observed with IOC – Top 10**\n\n{{ vars.basic_table_url }}\n\n---\n\n### 🧾 Last 20 – Raw Events\n{{ vars.adv_sql_table_url }}\n\n{% else %}\nℹ️ **No Security Incidents Found**: No security incidents were found in the provided data.\n{% endif %}\n"
              },
              "name": "Set Comments Template URL",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "description": null,
              "top": "274"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "22c183bf-fe8a-4e58-929b-f82ba53e3c2f",
              "left": "3705",
              "arguments": {
                "vt_url_result_table": "| Category   | Count |\n|------------|-------|\n| Harmless   | {{ vars.steps[\"Process VT URL Results\"].harmlessCount or '0' }} |\n| Malicious  | {{ vars.steps[\"Process VT URL Results\"].maliciousCount or '0' }} |\n| Suspicious | {{ vars.steps[\"Process VT URL Results\"].suspiciousCount or '0' }} |\n| Undetected | {{ vars.steps[\"Process VT URL Results\"].undetectedCount or '0' }} |\n\n🔗 [View full VirusTotal Report]({{ vars.vt_link }})",
                "vt_url_result_table_html": "<table border=\"1\" style=\"border-collapse:collapse;\">  <thead style=\"background:#1B2554; color:#fff;\">    <tr>      <th>Category</th>      <th>Count</th>    </tr>  </thead>  <tbody>    <tr>      <td style=\"background:white;\">Harmless</td>      <td style=\"background:white;\">{{ vars.steps[\"Process VT URL Results\"].harmlessCount }}</td>    </tr>    <tr>      <td style=\"background:white;\">Malicious</td>      <td style=\"background:white;\">{{ vars.steps[\"Process VT URL Results\"].maliciousCount }}</td>    </tr>    <tr>      <td style=\"background:white;\">Suspicious</td>      <td style=\"background:white;\">{{ vars.steps[\"Process VT URL Results\"].suspiciousCount }}</td>    </tr>    <tr>      <td style=\"background:white;\">Undetected</td>      <td style=\"background:white;\">{{ vars.steps[\"Process VT URL Results\"].undetectedCount }}</td>    </tr>  </tbody></table><p style=\"margin-top:15px;\">  🔗 <a href=\"{{ vars.vt_link }}\" target=\"_blank\">View full VirusTotal Report</a></p>"
              },
              "name": "Set VT URL Summary",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "description": null,
              "top": "184"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "8466e7f7-069c-4118-9aaa-af8d7129f634",
              "left": "3237",
              "arguments": {
                "vt_ip_result_table": "| Category   | Count |\n|------------|-------|\n| Harmless   | {{ vars.steps[\"Process VT IP Results\"].harmlessCount or '0' }} |\n| Malicious  | {{ vars.steps[\"Process VT IP Results\"].maliciousCount or '0' }} |\n| Suspicious | {{ vars.steps[\"Process VT IP Results\"].suspiciousCount or '0' }} |\n| Undetected | {{ vars.steps[\"Process VT IP Results\"].undetectedCount or '0' }} |\n\n🔗 [View full VirusTotal Report]({{ vars.vt_link }})",
                "vt_ip_result_table_html": "<table border=\"1\" style=\"border-collapse:collapse;\">  <thead style=\"background:#1B2554; color:#fff;\">    <tr>      <th>Category</th>      <th>Count</th>    </tr>  </thead>  <tbody>    <tr>      <td style=\"background:white;\">Harmless</td>      <td style=\"background:white;\">{{ vars.steps[\"Process VT IP Results\"].harmlessCount }}</td>    </tr>    <tr>      <td style=\"background:white;\">Malicious</td>      <td style=\"background:white;\">{{ vars.steps[\"Process VT IP Results\"].maliciousCount }}</td>    </tr>    <tr>      <td style=\"background:white;\">Suspicious</td>      <td style=\"background:white;\">{{ vars.steps[\"Process VT IP Results\"].suspiciousCount }}</td>    </tr>    <tr>      <td style=\"background:white;\">Undetected</td>      <td style=\"background:white;\">{{ vars.steps[\"Process VT IP Results\"].undetectedCount }}</td>    </tr>  </tbody></table><p style=\"margin-top:15px;\">  🔗 <a href=\"{{ vars.vt_link }}\" target=\"_blank\">View full VirusTotal Report</a></p>"
              },
              "name": "Set VT IP Summary",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "description": null,
              "top": "1213"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "6aa03134-1fd0-43cf-8636-dd7c232e2760",
              "left": "2807",
              "arguments": {
                "conditions": [
                  {
                    "option": "Not Found",
                    "step_iri": "/api/3/workflow_steps/2d995b25-1e09-4b63-86ce-420dccb9e3c5",
                    "condition": "{{vars.steps[\"Check Domain In VirusTotal\"].data.code == 'NotFoundError'}}",
                    "step_name": "Virus Total Domain No Results"
                  },
                  {
                    "option": "Results Found",
                    "default": true,
                    "step_iri": "/api/3/workflow_steps/858aec92-4087-4745-bfb9-93ad9cb8c6c4",
                    "step_name": "Process VT Domain Results"
                  }
                ]
              },
              "name": "VT Domain Found",
              "stepType": "/api/3/workflow_step_types/12254cf5-5db7-4b1a-8cb1-3af081924b28",
              "description": null,
              "top": "703"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "7a4de80b-ae3b-4e8e-8d62-642bdd8cbcd6",
              "left": "2837",
              "arguments": {
                "ip_qual_url_table": "| Category               | Value |\n|-------------------------|-------|\n| Adult                  | {{ vars.steps[\"Check URL with IP Quality Score\"].data.adult or '' }} |\n| Server                 | {{ vars.steps[\"Check URL with IP Quality Score\"].data.server or '' }} |\n| Unsafe                 | {{ vars.steps[\"Check URL with IP Quality Score\"].data.unsafe or '' }} |\n| Malware                | {{ vars.steps[\"Check URL with IP Quality Score\"].data.malware or '' }} |\n| Parking                | {{ vars.steps[\"Check URL with IP Quality Score\"].data.parking or '' }} |\n| Category               | {{ vars.steps[\"Check URL with IP Quality Score\"].data.category or '' }} |\n| Phishing               | {{ vars.steps[\"Check URL with IP Quality Score\"].data.phishing or '' }} |\n| Spamming               | {{ vars.steps[\"Check URL with IP Quality Score\"].data.spamming or '' }} |\n| A Records              | {{ vars.steps[\"Check URL with IP Quality Score\"].data.a_records | join(', ') }} |\n| Domain Age (Timestamp) | {{ arrow.get(vars.steps[\"Check URL with IP Quality Score\"].data.domain_age.timestamp | int).format(\"D MMMM YYYY HH:mm:ss\") }} |\n| Risk Score             | {{ vars.steps[\"Check URL with IP Quality Score\"].data.risk_score or '' }} |\n| Suspicious             | {{ vars.steps[\"Check URL with IP Quality Score\"].data.suspicious or '' }} |\n| Status Code            | {{ vars.steps[\"Check URL with IP Quality Score\"].data.status_code or '' }} |\n| Language Code          | {{ vars.steps[\"Check URL with IP Quality Score\"].data.language_code or '' }} |\n",
                "ip_qual_url_table_html": "<table border=\"1\" style=\"border-collapse:collapse;\">  <thead style=\"background:#1B2554; color:white;\">    <tr>      <th>Category</th>      <th>Value</th>    </tr>  </thead>  <tbody>    <tr>      <td style=\"background:white;\">Adult</td>      <td style=\"background:white;\">{{ vars.steps[\"Check URL with IP Quality Score\"].data.adult }}</td>    </tr>    <tr>      <td style=\"background:white;\">Server</td>      <td style=\"background:white;\">{{ vars.steps[\"Check URL with IP Quality Score\"].data.server }}</td>    </tr>    <tr>      <td style=\"background:white;\">Unsafe</td>      <td style=\"background:white;\">{{ vars.steps[\"Check URL with IP Quality Score\"].data.unsafe }}</td>    </tr>    <tr>      <td style=\"background:white;\">Malware</td>      <td style=\"background:white;\">{{ vars.steps[\"Check URL with IP Quality Score\"].data.malware }}</td>    </tr>    <tr>      <td style=\"background:white;\">Parking</td>      <td style=\"background:white;\">{{ vars.steps[\"Check URL with IP Quality Score\"].data.parking }}</td>    </tr>    <tr>      <td style=\"background:white;\">Category</td>      <td style=\"background:white;\">{{ vars.steps[\"Check URL with IP Quality Score\"].data.category }}</td>    </tr>    <tr>      <td style=\"background:white;\">Phishing</td>      <td style=\"background:white;\">{{ vars.steps[\"Check URL with IP Quality Score\"].data.phishing }}</td>    </tr>    <tr>      <td style=\"background:white;\">Spamming</td>      <td style=\"background:white;\">{{ vars.steps[\"Check URL with IP Quality Score\"].data.spamming }}</td>    </tr>    <tr>      <td style=\"background:white;\">A Records</td>      <td style=\"background:white;\">{{ vars.steps[\"Check URL with IP Quality Score\"].data.a_records | join('\t\t\t\t<br>') }}      </td>    </tr>    <tr>      <td style=\"background:white;\">Domain Age (Timestamp)</td>      <td style=\"background:white;\">{{ arrow.get(vars.steps[\"Check URL with IP Quality Score\"].data.domain_age.timestamp | int).format(\"D MMMM YYYY HH:mm:ss\") }}</td>    </tr>    <tr>      <td style=\"background:white;\">Risk Score</td>      <td style=\"background:white;\">{{ vars.steps[\"Check URL with IP Quality Score\"].data.risk_score }}</td>    </tr>    <tr>      <td style=\"background:white;\">Suspicious</td>      <td style=\"background:white;\">{{ vars.steps[\"Check URL with IP Quality Score\"].data.suspicious }}</td>    </tr>    <tr>      <td style=\"background:white;\">Status Code</td>      <td style=\"background:white;\">{{ vars.steps[\"Check URL with IP Quality Score\"].data.status_code }}</td>    </tr>    <tr>      <td style=\"background:white;\">Language Code</td>      <td style=\"background:white;\">{{ vars.steps[\"Check URL with IP Quality Score\"].data.language_code }}</td>    </tr>  </tbody></table>"
              },
              "name": "Process URL Quality Score Domain",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "description": null,
              "top": "59"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "99bb179e-e4d4-436b-87e0-223ac0da8907",
              "left": "4755",
              "arguments": {
                "basic_table_domain": "| Source IP | Source Domain | Destination IP | Destination Domain | Count |\n|-----------|---------------|----------------|--------------------|-------|\n{% if vars.steps[\"Query FortiSIEM For Domain\"].data.events | length == 0 -%}\n| 🚫 No Results Found | - | - | - | - |\n{%- else -%}\n{%- for event in vars.steps[\"Query FortiSIEM For Domain\"].data.events -%}\n| {{ event.attributes.get('srcIpAddr','') or '' }} | {{ event.attributes.get('srcDomain','') or '' }} | {{ event.attributes.get('destIpAddr','') or '' }} | {{ event.attributes.get('destDomain','') or '' }} | {{ event.attributes.get('COUNT(*)','') or '' }} |\n{%- endfor -%}\n{%- endif %}",
                "basic_table_domain_html": " <table border=\"1\" style=\"border-collapse:collapse; width: 100%; text-align: left;\">   <thead style=\"background:#1B2554; color:#fff;\">     <tr>       <th>Source IP</th>       <th>Source Domain</th>       <th>Destination IP</th>       <th>Destination Domain</th>       <th>Count</th>     </tr>   </thead>   <tbody> {% if vars.steps[\"Query FortiSIEM For Domain\"].data.events | length == 0 %} <tr>       <td colspan=\"3\" style=\"background:white; text-align:center; font-style:italic; color: #555; padding: 10px;\"> 🚫 No Results Found </td>     </tr> {% else %} {% for event in vars.steps[\"Query FortiSIEM For Domain\"].data.events %} <tr>       <td style=\"background:white;\">{{ event.attributes.get('srcIpAddr', '') }}</td>       <td style=\"background:white;\">{{ event.attributes.get('destDomain', '') }}</td>       <td style=\"background:white;\">{{ event.attributes.get('fwAction', '') }}</td>       <td style=\"background:white;\">{{ event.attributes.get('policyName', '') }}</td>       <td style=\"background:white;\">{{ event.attributes.get('COUNT(*)', '') }}</td>     </tr> {% endfor %} {% endif %} </tbody> </table>"
              },
              "name": "Build Table For Grouped Results - Domain",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "description": null,
              "top": "778"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "ce4419ca-3663-4070-97ba-a01252166953",
              "left": "4395",
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "start": 0,
                  "perPage": 10,
                  "sql_query": "{{ vars.adv_sql_siem_query }}",
                  "query_type": "SQL Query"
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "run_report",
                "ignore_errors": true,
                "pickFromTenant": false,
                "from_str": ""
              },
              "name": "Adv SQL Query For Top 10 Results Domain",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "description": null,
              "top": "614"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "a9e0f960-16ac-48dc-86e6-9d44eb23a1ce",
              "left": "3026",
              "arguments": {
                "ip_qual_domain_table": "| Category                 | Value |\n|---------------------------|-------|\n| Valid DNS                | {{ vars.steps[\"Check Domain with IP Quality Score\"].data.dns_valid or '' }} |\n| Root Domain              | {{ vars.steps[\"Check Domain with IP Quality Score\"].data.root_domain or '' }} |\n| Scanned URL              | {{ vars.steps[\"Check Domain with IP Quality Score\"].data.scanned_url or '' }} |\n| Adult                    | {{ vars.steps[\"Check Domain with IP Quality Score\"].data.adult or '' }} |\n| Server                   | {{ vars.steps[\"Check Domain with IP Quality Score\"].data.server or '' }} |\n| Unsafe                   | {{ vars.steps[\"Check Domain with IP Quality Score\"].data.unsafe or '' }} |\n| Malware                  | {{ vars.steps[\"Check Domain with IP Quality Score\"].data.malware or '' }} |\n| Parking                  | {{ vars.steps[\"Check Domain with IP Quality Score\"].data.parking or '' }} |\n| Category                 | {{ vars.steps[\"Check Domain with IP Quality Score\"].data.category or '' }} |\n| Phishing                 | {{ vars.steps[\"Check Domain with IP Quality Score\"].data.phishing or '' }} |\n| Spamming                 | {{ vars.steps[\"Check Domain with IP Quality Score\"].data.spamming or '' }} |\n| A Records                | {{ vars.steps[\"Check Domain with IP Quality Score\"].data.a_records | join(', ') }} |\n| Domain Age (Timestamp)   | {{ arrow.get(vars.steps[\"Check Domain with IP Quality Score\"].data.domain_age.timestamp | int).format(\"D MMMM YYYY HH:mm:ss\") }} |\n| Risk Score               | {{ vars.steps[\"Check Domain with IP Quality Score\"].data.risk_score or '' }} |\n| Suspicious               | {{ vars.steps[\"Check Domain with IP Quality Score\"].data.suspicious or '' }} |\n| Status Code              | {{ vars.steps[\"Check Domain with IP Quality Score\"].data.status_code or '' }} |\n| Language Code            | {{ vars.steps[\"Check Domain with IP Quality Score\"].data.language_code or '' }} |\n",
                "ip_qual_domain_table_html": "<table border=\"1\" style=\"border-collapse:collapse;\">  <thead style=\"background:#1B2554; color:#fff;\">    <tr>      <th>Category</th>      <th>Value</th>    </tr>  </thead>  <tbody>    <tr>      <td style=\"background:white;\">Valid DNS</td>      <td style=\"background:white;\">{{ vars.steps[\"Check Domain with IP Quality Score\"].data.dns_valid }}</td>    </tr>    <tr>      <td style=\"background:white;\">Root Domain</td>      <td style=\"background:white;\">{{ vars.steps[\"Check Domain with IP Quality Score\"].data.root_domain }}</td>    </tr>    <tr>      <td style=\"background:white;\">Scanned URL</td>      <td style=\"background:white;\">{{ vars.steps[\"Check Domain with IP Quality Score\"].data.scanned_url }}</td>    </tr>    <tr>      <td style=\"background:white;\">Adult</td>      <td style=\"background:white;\">{{ vars.steps[\"Check Domain with IP Quality Score\"].data.adult }}</td>    </tr>    <tr>      <td style=\"background:white;\">Server</td>      <td style=\"background:white;\">{{ vars.steps[\"Check Domain with IP Quality Score\"].data.server }}</td>    </tr>    <tr>      <td style=\"background:white;\">Unsafe</td>      <td style=\"background:white;\">{{ vars.steps[\"Check Domain with IP Quality Score\"].data.unsafe }}</td>    </tr>    <tr>      <td style=\"background:white;\">Malware</td>      <td style=\"background:white;\">{{ vars.steps[\"Check Domain with IP Quality Score\"].data.malware }}</td>    </tr>    <tr>      <td style=\"background:white;\">Parking</td>      <td style=\"background:white;\">{{ vars.steps[\"Check Domain with IP Quality Score\"].data.parking }}</td>    </tr>    <tr>      <td style=\"background:white;\">Category</td>      <td style=\"background:white;\">{{ vars.steps[\"Check Domain with IP Quality Score\"].data.category }}</td>    </tr>    <tr>      <td style=\"background:white;\">Phishing</td>      <td style=\"background:white;\">{{ vars.steps[\"Check Domain with IP Quality Score\"].data.phishing }}</td>    </tr>    <tr>      <td style=\"background:white;\">Spamming</td>      <td style=\"background:white;\">{{ vars.steps[\"Check Domain with IP Quality Score\"].data.spamming }}</td>    </tr>    <tr>      <td style=\"background:white;\">A Records</td>      <td style=\"background:white;\">{{ vars.steps[\"Check Domain with IP Quality Score\"].data.a_records | join('\t\t\t\t<br>') }}      </td>    </tr>    <tr>      <td style=\"background:white;\">Domain Age (Timestamp)</td>      <td style=\"background:white;\">{{ arrow.get(vars.steps[\"Check Domain with IP Quality Score\"].data.domain_age.timestamp | int).format(\"D MMMM YYYY HH:mm:ss\") }}</td>    </tr>    <tr>      <td style=\"background:white;\">Risk Score</td>      <td style=\"background:white;\">{{ vars.steps[\"Check Domain with IP Quality Score\"].data.risk_score }}</td>    </tr>    <tr>      <td style=\"background:white;\">Suspicious</td>      <td style=\"background:white;\">{{ vars.steps[\"Check Domain with IP Quality Score\"].data.suspicious }}</td>    </tr>    <tr>      <td style=\"background:white;\">Status Code</td>      <td style=\"background:white;\">{{ vars.steps[\"Check Domain with IP Quality Score\"].data.status_code }}</td>    </tr>    <tr>      <td style=\"background:white;\">Language Code</td>      <td style=\"background:white;\">{{ vars.steps[\"Check Domain with IP Quality Score\"].data.language_code }}</td>    </tr>  </tbody></table>"
              },
              "name": "Process Domain Quality Score Domain",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "description": null,
              "top": "601"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "6083214d-7ce5-41dc-b751-e4f47617eaec",
              "left": "5663",
              "arguments": {
                "output": "<html>\n   <!-- Header -->  \n   <h2 style=\"color:#00008B; margin-bottom: 20px;\">🛡️ Playbook Threat Intelligence Summary</h2>\n   <p>\n      For IOC : <strong>{{ vars.ioc }}</strong>  <!-- Section Box Template -->  \n   <div style=\"margin-bottom: 20px; background-color: #f0f0f0; border-left: 4px solid #00008B;; border-radius: 10px; padding: 15px;\">\n      <details open>\n         <summary style=\"font-size: 16px; font-weight: bold; color:#00000;\">🔎 IP Quality Score Assessment</summary>\n         <div style=\"margin-top: 10px;\">\n            <p style=\"margin: 0;\">The assessed fraud score from IP Quality Score is:</p>\n            <div style=\"background-color: #FFFFFF; border: 2px solid #FF4C4C; color: #FF4C4C; display: inline-block; padding: 10px 20px; font-size: 24px; font-weight: bold; border-radius: 8px; margin-top: 10px;\"> {{ vars.steps[\"Check IP In IP Quality Score\"].data.fraud_score }} </div>\n            <p>      \n         </div>\n         {{ vars.steps[\"Process IP Quality Score Results\"].ip_qual_ip_table_html }}    \n      </details>\n   </div>\n   <!-- VirusTotal -->  \n   <div style=\"margin-bottom: 20px; background-color: #f0f0f0; border-left: 4px solid #00008B; border-radius: 10px; padding: 15px;\">\n      <details>\n         <summary style=\"font-size: 16px; font-weight: bold; color:#00000;\">🧪 VirusTotal Detection Overview</summary>\n         <div style=\"margin-top: 10px;\">\n            <p style=\"margin: 0 0 10px 0; color: #000000;\"> Last Analysis Time of IOC: <span style=\"color: #FF4C4C;\">{{ vars.steps[\"Process VT IP Results\"].last_analysis_time }}</span>        </p>\n            {{ vars.steps[\"Set VT IP Summary\"].vt_ip_result_table_html }}      \n         </div>\n      </details>\n   </div>\n   <!-- Other Hosts -->  \n   <div style=\"margin-bottom: 20px; background-color: #f0f0f0; border-left: 4px solid #00008B; border-radius: 10px; padding: 15px;\">\n      <details>\n         <summary style=\"font-size: 16px; font-weight: bold; color:#00000;\">🌐 Other Hosts Associated with IOC - Last 24 Hours</summary>\n         <div style=\"margin-top: 10px;\">{{ vars.basic_table_ip_html }}      </div>\n      </details>\n   </div>\n   <!-- Raw Events -->  \n   <div style=\"margin-bottom: 20px; background-color: #f0f0f0; border-left: 4px solid #00008B; border-radius: 10px; padding: 15px;\">\n      <details>\n         <summary style=\"font-size: 16px; font-weight: bold; color:#00000;\">📄 Raw Events - Last 24 Hours</summary>\n         <div style=\"margin-top: 10px;\">{{ vars.adv_sql_table_ip_html }}      </div>\n      </details>\n   </div>\n   <!-- Final Note -->  \n   <div style=\"margin-top: 30px; background-color: #f0f0f0; border-left: 4px solid #00008B; padding: 15px; color: #000000; font-weight: bold; border-radius: 6px;\"> 📌 Incident Comments have been updated automatically </div>\n   </body>\n</html>"
              },
              "name": "Final Output IP",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "description": null,
              "top": "1267"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "3505b754-c165-44ac-b076-c78de81ebfdc",
              "left": "4355",
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "cond": "{{ vars.basic_query }}",
                  "start": 0,
                  "value": 24,
                  "groupby": "{{ vars.basic_group_by }}",
                  "orderby": "phRecvTime DESC",
                  "perPage": 10,
                  "AttrList": "{{ vars.basic_fields }}",
                  "rel_time": "Hours",
                  "query_type": "Basic Query",
                  "time_selection": "Relative Time"
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "run_report",
                "ignore_errors": true,
                "pickFromTenant": false,
                "from_str": ""
              },
              "name": "Query FortiSIEM For Domain",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "description": null,
              "top": "768"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "d2d48142-93ce-49ee-a1e0-35a61cbc82cd",
              "left": "1680",
              "arguments": {
                "conditions": [
                  {
                    "option": "IP Outbound",
                    "step_iri": "/api/3/workflow_steps/1a7555ba-5705-4df8-99f4-634f1c3a388e",
                    "condition": "{{vars.ioc_type == 'IP_OUTBOUND'}}",
                    "step_name": "IP Outbound - Set IP Variables"
                  },
                  {
                    "option": "IP Inbound",
                    "step_iri": "/api/3/workflow_steps/20fdc1eb-6ee1-4d72-b0e9-d674aa14aaca",
                    "condition": "{{vars.ioc_type == 'IP_INBOUND'}}",
                    "step_name": "IP Inbound - Set IP Variables"
                  },
                  {
                    "option": "Domain Inbound",
                    "step_iri": "/api/3/workflow_steps/a1fc6ce9-3e9d-46ba-8680-9a8702c1ec76",
                    "condition": "{{vars.ioc_type == 'DOMAIN_INBOUND'}}",
                    "step_name": "Domain Inbound - Set Domain Variables"
                  },
                  {
                    "option": "Domain Outbound",
                    "step_iri": "/api/3/workflow_steps/fff615cf-acb3-4ca1-8fba-7b5e7cf8cce9",
                    "condition": "{{vars.ioc_type == 'DOMAIN_OUTBOUND'}}",
                    "step_name": "Domain Outbound - Set Domain Variables"
                  },
                  {
                    "option": "URL Outbound",
                    "step_iri": "/api/3/workflow_steps/928e1801-fc28-483c-a7a9-e51d528a7538",
                    "condition": "{{vars.ioc_type == 'URL_OUTBOUND'}}",
                    "step_name": "Set URL Variables"
                  },
                  {
                    "option": "Other",
                    "step_iri": "/api/3/workflow_steps/fc1a6bec-76e8-49a9-a258-dfdb75fc16a9",
                    "condition": "{{vars.ioc_type == 'OTHER'}}",
                    "step_name": "Other"
                  }
                ]
              },
              "name": "Choose IOC Type",
              "stepType": "/api/3/workflow_step_types/12254cf5-5db7-4b1a-8cb1-3af081924b28",
              "description": null,
              "top": "1022"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "993d36cc-a418-4e00-8bb3-f45f4062054f",
              "left": "2440",
              "arguments": {
                "name": "IP Quality Score",
                "config": "",
                "params": {
                  "fast": true,
                  "mobile": false,
                  "ip_address": "{{ vars.lookup_ip }}",
                  "strictness": 0,
                  "user_agent": "",
                  "user_language": "",
                  "lighter_penalties": false,
                  "transaction_strictness": 0,
                  "allow_public_access_points": false
                },
                "version": "1.0.1",
                "connector": "ip-quality-score",
                "operation": "get_ip_reputation",
                "pickFromTenant": false,
                "from_str": ""
              },
              "name": "Check IP In IP Quality Score",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "description": null,
              "top": "1332"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "acbc891e-3cad-448b-8f01-97390238502c",
              "left": "5582",
              "arguments": {
                "output": "{% if vars.steps[\"Set VT URL Summary\"].vt_url_result_table_html is not none and vars.steps[\"Set VT URL Summary\"].vt_url_result_table_html | length > 0 %}  {% set vt_url_result_table_html = vars.steps[\"Set VT URL Summary\"].vt_url_result_table_html %}{% else %}  {% set vt_url_result_table_html = vars.steps[\"Virus Total URL No Results\"].vt_url_result_table_html %}  {% set last_analysis_time = vars.steps[\"Virus Total URL No Results\"].last_analysis_time_html %}{% endif %}\n<html>\n   <!-- Header -->  \n   <h2 style=\"color:#00008B; margin-bottom: 20px;\">🛡️ Playbook Threat Intelligence Summary</h2>\n   <p>\n      For IOC : <strong>{{ vars.ioc }}</strong>  <!-- Section Box Template -->  \n   <div style=\"margin-bottom: 20px; background-color: #f0f0f0; border-left: 4px solid #00008B;; border-radius: 10px; padding: 15px;\">\n      <details open>\n         <summary style=\"font-size: 16px; font-weight: bold; color:#00000;\">🔎 IP Quality Score Assessment</summary>\n         <div style=\"margin-top: 10px;\">\n            <p style=\"margin: 0;\">The assessed risk score from IP Quality Score is:</p>\n            <div style=\"background-color: #FFFFFF; border: 2px solid #FF4C4C; color: #FF4C4C; display: inline-block; padding: 10px 20px; font-size: 24px; font-weight: bold; border-radius: 8px; margin-top: 10px;\"> {{ vars.steps[\"Check URL with IP Quality Score\"].data.risk_score }} </div>\n            <p>      \n         </div>\n         {{ vars.steps[\"Process URL Quality Score Domain\"].ip_qual_url_table_html }}     \n      </details>\n   </div>\n   <!-- VirusTotal -->  \n   <div style=\"margin-bottom: 20px; background-color: #f0f0f0; border-left: 4px solid #00008B; border-radius: 10px; padding: 15px;\">\n      <details>\n         <summary style=\"font-size: 16px; font-weight: bold; color:#00000;\">🧪 VirusTotal Detection Overview</summary>\n         <div style=\"margin-top: 10px;\">\n            <p style=\"margin: 0 0 10px 0; color: #000000;\"> Last Analysis Time of IOC: <span style=\"color: #FF4C4C;\">{{ vars.last_analysis_time }}</span>        </p>\n            {{ vars.vt_url_result_table_html }}      \n         </div>\n      </details>\n   </div>\n   <!-- Other Hosts -->  \n   <div style=\"margin-bottom: 20px; background-color: #f0f0f0; border-left: 4px solid #00008B; border-radius: 10px; padding: 15px;\">\n      <details>\n         <summary style=\"font-size: 16px; font-weight: bold; color:#00000;\">🌐 Other Hosts Associated with IOC - Last 24 Hours</summary>\n         <div style=\"margin-top: 10px;\">{{ vars.basic_table_url_html }}      </div>\n      </details>\n   </div>\n   <!-- Raw Events -->  \n   <div style=\"margin-bottom: 20px; background-color: #f0f0f0; border-left: 4px solid #00008B; border-radius: 10px; padding: 15px;\">\n      <details>\n         <summary style=\"font-size: 16px; font-weight: bold; color:#00000;\">📄 Raw Events - Last 24 Hours</summary>\n         <div style=\"margin-top: 10px;\">{{ vars.adv_sql_table_url_html }}      </div>\n      </details>\n   </div>\n   <!-- Final Note -->  \n   <div style=\"margin-top: 30px; background-color: #f0f0f0; border-left: 4px solid #00008B; padding: 15px; color: #000000; font-weight: bold; border-radius: 6px;\"> 📌 Incident Comments have been updated automatically </div>\n   </body>\n</html>"
              },
              "name": "Final Output URL",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "description": null,
              "top": "269"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "858aec92-4087-4745-bfb9-93ad9cb8c6c4",
              "left": "3044",
              "arguments": {
                "code": "{{ vars.steps[\"Check Domain In VirusTotal\"].data.code }}",
                "status": "{{ vars.steps[\"Check Domain In VirusTotal\"].status }}",
                "vt_link": "{{ vars.steps[\"Check Domain In VirusTotal\"].data.links.self }}",
                "harmlessCount": "{% set total_votes = 0 %} {% if vars.steps[\"Check Domain In VirusTotal\"].data.attributes.last_analysis_stats.harmless is defined %}   {% set total_votes = vars.steps[\"Check Domain In VirusTotal\"].data.attributes.last_analysis_stats.harmless %} {% endif %} {{ total_votes | int }}",
                "maliciousCount": "{% set total_votes = 0 %} {% if vars.steps[\"Check Domain In VirusTotal\"].data.attributes.last_analysis_stats.malicious is defined %}   {% set total_votes = vars.steps[\"Check Domain In VirusTotal\"].data.attributes.last_analysis_stats.malicious %} {% endif %} {{ total_votes | int }}",
                "suspiciousCount": "{% set total_votes = 0 %} {% if vars.steps[\"Check Domain In VirusTotal\"].data.attributes.last_analysis_stats.suspicious is defined %}   {% set total_votes = vars.steps[\"Check Domain In VirusTotal\"].data.attributes.last_analysis_stats.suspicious %} {% endif %} {{ total_votes | int }}",
                "undetectedCount": "{% set total_votes = 0 %} {% if vars.steps[\"Check Domain In VirusTotal\"].data.attributes.last_analysis_stats.undetected is defined %}   {% set total_votes = vars.steps[\"Check Domain In VirusTotal\"].data.attributes.last_analysis_stats.undetected %} {% endif %} {{ total_votes | int }}",
                "last_analysis_time": "{% if vars.steps[\"Check Domain In VirusTotal\"].data.attributes.last_analysis_date is defined %}\n  {{ arrow.get(vars.steps[\"Check Domain In VirusTotal\"].data.attributes.last_analysis_date | int).format(\"D MMMM YYYY HH:mm:ss\") }}\n{% else %}\n  Not Available\n{% endif %}"
              },
              "name": "Process VT Domain Results",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "description": null,
              "top": "706"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "967a9345-7768-4920-ac4e-9cf8902827c2",
              "left": "2854",
              "arguments": {
                "vt_link": "{{ vars.steps[\"Check IP Reputation in Virus Total\"].data.links.self }}",
                "harmlessCount": "{% set total_votes = 0 %} {% if vars.steps[\"Check IP Reputation in Virus Total\"].data.attributes.last_analysis_stats.harmless is defined %}   {% set total_votes = vars.steps[\"Check IP Reputation in Virus Total\"].data.attributes.last_analysis_stats.harmless %} {% endif %} {{ total_votes | int }}",
                "maliciousCount": "{% set total_votes = 0 %} {% if vars.steps[\"Check IP Reputation in Virus Total\"].data.attributes.last_analysis_stats.malicious is defined %}   {% set total_votes = vars.steps[\"Check IP Reputation in Virus Total\"].data.attributes.last_analysis_stats.malicious %} {% endif %} {{ total_votes | int }}",
                "suspiciousCount": "{% set total_votes = 0 %} {% if vars.steps[\"Check IP Reputation in Virus Total\"].data.attributes.last_analysis_stats.suspicious is defined %}   {% set total_votes = vars.steps[\"Check IP Reputation in Virus Total\"].data.attributes.last_analysis_stats.suspicious %} {% endif %} {{ total_votes | int }}",
                "undetectedCount": "{% set total_votes = 0 %} {% if vars.steps[\"Check IP Reputation in Virus Total\"].data.attributes.last_analysis_stats.undetected is defined %}   {% set total_votes = vars.steps[\"Check IP Reputation in Virus Total\"].data.attributes.last_analysis_stats.undetected %} {% endif %} {{ total_votes | int }}",
                "last_analysis_time": "{%- if vars.steps[\"Check IP Reputation in Virus Total\"].data.attributes.last_analysis_date is defined and vars.steps[\"Check IP Reputation in Virus Total\"].data.attributes.last_analysis_date is not none -%}   {%- set last_analysis_time = arrow.get(vars.steps[\"Check IP Reputation in Virus Total\"].data.attributes.last_analysis_date | int).format(\"D MMMM YYYY HH:mm:ss\") -%} {%- else -%}   {%- set last_analysis_time = 'Not Available' -%} {%- endif -%}  {{ last_analysis_time }}"
              },
              "name": "Process VT IP Results",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "description": null,
              "top": "1215"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "48c18f66-29b2-4805-a6e5-24de0e117137",
              "left": "4698",
              "arguments": {
                "basic_table_url": "| Source IP | Destination Host Name | Informational URL | Firewall Action | Profile Name | Count |\n|-----------|-----------------------|-------------------|-----------------|--------------|-------|\n{% if vars.steps[\"Query FortiSIEM For URL\"].data.events | length == 0 -%}\n| 🚫 No Results Found | - | - | - | - | - |\n{%- else -%}\n{%- for event in vars.steps[\"Query FortiSIEM For URL\"].data.events -%}\n| {{ event.attributes.get('srcIpAddr','') or '' }} | {{ event.attributes.get('destName','') or '' }} | {{ event.attributes.get('infoURL','') or '' }} | {{ event.attributes.get('fwAction','') or '' }} | {{ event.attributes.get('profileName','') or '' }} | {{ event.attributes.get('COUNT(*)','') or '' }} |\n{%- endfor -%}\n{%- endif %}",
                "basic_table_url_html": "        <table border=\"1\" style=\"border-collapse:collapse; width: 100%; text-align: left;\">          <thead style=\"background:#1B2554; color:#fff;\">            <tr>              <th>Source IP</th>              <th>Destination Host Name</th>              <th>Informational URL</th>                                  <th>Firewall Action</th>              <th>Profile Name</th>              <th>Count</th>            </tr>          </thead>          <tbody> {% if vars.steps[\"Query FortiSIEM For URL\"].data.events | length == 0 %}           <tr>  <td colspan=\"3\" style=\"background:white; text-align:center; font-style:italic; color: #555; padding: 10px;\">    🚫 No Results Found  </td></tr>          {% else %} {% for event in vars.steps[\"Query FortiSIEM For URL\"].data.events %}             <tr>  <td style=\"background:white;\">{{ event.attributes.get('srcIpAddr', '') }}</td>  <td style=\"background:white;\">{{ event.attributes.get('destName', '') }}</td>  <td style=\"background:white;\">{{ event.attributes.get('infoURL', '') }}</td>  <td style=\"background:white;\">{{ event.attributes.get('fwAction', '') }}</td>  <td style=\"background:white;\">{{ event.attributes.get('profileName', '') }}</td>  <td style=\"background:white;\">{{ event.attributes.get('COUNT(*)', '') }}</td></tr>            {% endfor %} {% endif %} </tbody>        </table>"
              },
              "name": "Build Table For Grouped Results",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "description": null,
              "top": "142"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "a5e6c760-93d1-4256-87c1-aaf65b189965",
              "left": "3308",
              "arguments": {
                "status": "{{ vars.steps[\"Check URL With Virus Total\"].status }}",
                "vt_link": "{{ vars.steps[\"Check URL With Virus Total\"].data.links.self }}",
                "harmlessCount": "{% set total_votes = 0 %} {% if vars.steps[\"Check URL With Virus Total\"].data.attributes.last_analysis_stats.harmless is defined %}   {% set total_votes = vars.steps[\"Check URL With Virus Total\"].data.attributes.last_analysis_stats.harmless %} {% endif %} {{ total_votes | int }}",
                "maliciousCount": "{% set total_votes = 0 %} {% if vars.steps[\"Check URL With Virus Total\"].data.attributes.last_analysis_stats.malicious is defined %}   {% set total_votes = vars.steps[\"Check URL With Virus Total\"].data.attributes.last_analysis_stats.malicious %} {% endif %} {{ total_votes | int }}",
                "suspiciousCount": "{% set total_votes = 0 %} {% if vars.steps[\"Check URL With Virus Total\"].data.attributes.last_analysis_stats.suspicious is defined %}   {% set total_votes =vars.steps[\"Check URL With Virus Total\"].data.attributes.last_analysis_stats.suspicious %} {% endif %} {{ total_votes | int }}",
                "undetectedCount": "{% set total_votes = 0 %} {% if vars.steps[\"Check URL With VirusTotal\"].data.attributes.last_analysis_stats.undetected is defined %}   {% set total_votes = vars.steps[\"Check URL With VirusTotal\"].data.attributes.last_analysis_stats.undetected %} {% endif %} {{ total_votes | int }}",
                "last_analysis_time": "{% if vars.steps[\"Check URL With Virus Total\"].data.attributes.last_analysis_date is defined %}\n  {{ arrow.get(vars.steps[\"Check URL With Virus Total\"].data.attributes.last_analysis_date | int).format(\"D MMMM YYYY HH:mm:ss\") }}\n{% else %}\n  Not Available\n{% endif %}"
              },
              "name": "Process VT URL Results",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "description": null,
              "top": "185"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "fff615cf-acb3-4ca1-8fba-7b5e7cf8cce9",
              "left": "1871",
              "arguments": {
                "ioc": "{{ vars.steps.Configuration.destDomain }}",
                "url": "{{ vars.steps.Configuration.destDomain }}",
                "asset": "{{ vars.steps.Configuration.srcIp }}",
                "domain": "{{ vars.steps.Configuration.destDomain }}",
                "basic_query": "destDomain = \"{{ vars.steps.Configuration.destDomain }}\" AND phCustId = {{ vars.steps.Configuration.custId }}",
                "basic_fields": "srcIpAddr,srcDomain,destIpAddr,destDomain,COUNT(*)",
                "basic_group_by": "srcIpAddr,srcDomain,destIpAddr,destDomain",
                "adv_sql_siem_query": "SELECT phRecvTime AS \"Event Receive Time\", reptDevName AS \"Reporting IP\", eventType AS \"Event Type\", srcIpAddrV4 AS \"Source IP\", metrics_string.value[indexOf(metrics_string.name, 'srcDomain')] AS \"Source Domain\", destIpAddrV4 AS \"Destination IP\", metrics_string.value[indexOf(metrics_string.name, 'destDomain')] AS \"Destination Domain\", if(has(metrics_string.name, 'fwAction'), metrics_string.value[indexOf(metrics_string.name, 'fwAction')], NULL) AS \"Firewall Action\", if(has(metrics_string.name, 'policyName'), metrics_string.value[indexOf(metrics_string.name, 'policyName')], NULL) AS \"Policy Name\" FROM fsiem.events WHERE (phCustId = '{{ vars.steps.Configuration.custId }}') AND destName = '{{ vars.steps.Configuration.destDomain }}' AND (eventType NOT ILIKE '%PH_RULE%') AND (phRecvTime > (now() - toIntervalDay(1))) LIMIT 20;"
              },
              "name": "Domain Outbound - Set Domain Variables",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "description": null,
              "top": "615"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "78a2aa1b-1ada-4c6a-8589-566f02e9b027",
              "left": "3669",
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "cond": "{{ vars.basic_query }}",
                  "start": 0,
                  "value": 24,
                  "groupby": "{{ vars.basic_group_by }}",
                  "orderby": "phRecvTime DESC",
                  "perPage": 10,
                  "AttrList": "{{ vars.basic_fields }}",
                  "rel_time": "Hours",
                  "query_type": "Basic Query",
                  "time_selection": "Relative Time"
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "run_report",
                "ignore_errors": true,
                "pickFromTenant": false,
                "from_str": ""
              },
              "name": "Query FortiSIEM For IP",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "description": null,
              "top": "1218"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "f097282a-cfe6-4418-b66f-b8b3e5c635d1",
              "left": "4336",
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "start": 0,
                  "perPage": 10,
                  "sql_query": "{{ vars.steps[\"Set URL Variables\"].adv_sql_siem_query }}",
                  "query_type": "SQL Query"
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "run_report",
                "ignore_errors": true,
                "pickFromTenant": false,
                "from_str": ""
              },
              "name": "Adv SQL Query For Top 10 Results URL",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "description": null,
              "top": "33"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "13ba3a4e-adad-4af3-b2c5-e702f2e9d27f",
              "left": "4708",
              "arguments": {
                "adv_sql_table_url": "| Event Receive Time | Reporting Device | Event Type | Source IP | Destination Name | Informational URL | Firewall Action | Policy Name |\n|--------------------|------------------|------------|-----------|------------------|-------------------|-----------------|-------------|\n{% if vars.steps[\"Adv SQL Query For Top 10 Results URL\"].data.events | length == 0 -%}\n| 🚫 No Results Found | - | - | - | - | - | - | - |\n{%- else -%}\n{%- for event in vars.steps[\"Adv SQL Query For Top 10 Results URL\"].data.events -%}\n{%- set entry_dict = {} -%}\n{%- for item in event.dataStr.entry -%}\n{%- set key = item.key -%}\n{%- set val = item.value['#text'] if item.value is defined and item.value['#text'] is defined else '' -%}\n{%- set _ = entry_dict.update({ key: val }) -%}\n{%- endfor -%}\n| {{ entry_dict['Event Receive Time'] or '' }} | {{ entry_dict['Reporting Device'] or '' }} | {{ entry_dict['Event Type'] or '' }} | {{ entry_dict['Source IP'] or '' }} | {{ entry_dict['Destination Name'] or '' }} | {{ entry_dict['Informational URL'] or '' }} | {{ entry_dict['Firewall Action'] or '' }} | {{ entry_dict['Policy Name'] or '' }} |\n{%- endfor -%}\n{%- endif %}\n",
                "adv_sql_table_url_html": "        <table border=\"1\" style=\"border-collapse:collapse; width: 100%; text-align: left;\">          <thead style=\"background:#1B2554; color:#fff;\">            <tr>              <th>Event Receive Time</th>              <th>Reporting Device</th>              <th>Event Type</th>              <th>Source IP</th>              <th>Destination Name</th>              <th>Informational URL</th>              <th>Firewall Action</th>              <th>Policy Name</th>            </tr>          </thead>          <tbody> {% if vars.steps[\"Adv SQL Query For Top 10 Results URL\"].data.events | length == 0 %}<tr><td colspan=\"11\" style=\"background:white; text-align:center; font-style:italic; color:#555; padding:10px;\">🚫 No Results Found</td></tr>            </tr> {% else %} {% for event in vars.steps[\"Adv SQL Query For Top 10 Results URL\"].data.events %} {% set entry_dict = {} %} {% for item in event.dataStr.entry %} {% set key = item.key %} {% set val = item.value['#text'] if item.value is defined and item.value['#text'] is defined else '' %} {% set _ = entry_dict.update({ key: val }) %} {% endfor %}             <tr>  <td style=\"background:white;\">{{ entry_dict['Event Receive Time'] }}</td>  <td style=\"background:white;\">{{ entry_dict['Reporting Device'] }}</td>  <td style=\"background:white;\">{{ entry_dict['Event Type'] }}</td>  <td style=\"background:white;\">{{ entry_dict['Source IP'] }}</td>  <td style=\"background:white;\">{{ entry_dict['Destination Name'] }}</td>  <td style=\"background:white;\">{{ entry_dict['Informational URL'] }}</td>  <td style=\"background:white;\">{{ entry_dict['Firewall Action'] }}</td>  <td style=\"background:white;\">{{ entry_dict['Policy Name'] }}</td></tr>            {% endfor %} {% endif %} </tbody>        </table>"
              },
              "name": "Build Table For SQL Results",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "description": null,
              "top": "30"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "8960991b-77ce-47ac-a873-12d09496e884",
              "left": "760",
              "arguments": {
                "srcIp": "{{ vars.input.records[0].srcDict.srcIpAddr }}",
                "custId": "{{ vars.input.records[0].phCustId }}",
                "destIp": "{{ vars.input.records[0].targetDict.destIpAddr }}",
                "record": "{{ vars.input.records[0] }}",
                "eventName": "{{ vars.input.records[0].eventName }}",
                "eventType": "{{ vars.input.records[0].eventType }}",
                "destDomain": "{{ vars.input.records[0].targetDict.destDomain if vars.input.records[0].targetDict.destDomain else vars.input.records[0].targetDict.destName }}",
                "incidentId": " {{ vars.input.records[0].incidentId }}"
              },
              "name": "Configuration",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "description": null,
              "top": "1042"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "9a18dc0d-3869-4eb0-a24e-812e719aedc4",
              "left": "1220",
              "arguments": {
                "ioc_type": "{%- set ioc = 'OTHER' -%}{%- if 'PH_Rule_' in vars.eventType and 'MalwareIP_Inbound' in vars.eventType -%} {%- set ioc = 'IP_INBOUND' -%}{%- elif 'PH_RULE_FROM' in vars.eventType and ('MALWARE_IP' in vars.eventType or 'THREAT_IP' in vars.eventType) -%} {%- set ioc = 'IP_INBOUND' -%}{%- elif 'PH_Rule_' in vars.eventType and 'MalwareIP_Outbound' in vars.eventType -%} {%- set ioc = 'IP_OUTBOUND' -%}{%- elif 'PH_RULE_TO' in vars.eventType and ('MALWARE_IP' in vars.eventType or 'THREAT_IP' in vars.eventType) -%} {%- set ioc = 'IP_OUTBOUND' -%}{%- elif 'PH_Rule' in vars.eventType and 'MalwareDomain_Outbound' in vars.eventType -%} {%- set ioc = 'DOMAIN_OUTBOUND' -%}{%- elif 'PH_RULE' in vars.eventType and 'MALWARE_DOMAIN' in vars.eventType -%} {%- set ioc = 'DOMAIN_OUTBOUND' -%}{%- elif 'PH_Rule' in vars.eventType and 'MalwareDomain_Inbound' in vars.eventType -%} {%- set ioc = 'DOMAIN_INBOUND' -%}{%- elif 'PH_Rule' in vars.eventType and 'MalwareURL_Outbound' in vars.eventType -%} {%- set ioc = 'URL_OUTBOUND' -%}{%- elif 'PH_RULE' in vars.eventType and 'MALWARE_URL' in vars.eventType -%} {%- set ioc = 'URL_OUTBOUND' -%}{%- elif 'Malware hash match' in vars.eventType -%} {%- set ioc = 'HASH_MATCH' -%}{%- endif -%}{%- if ioc == 'OTHER' -%} {%- set src_ip = vars.input.records[0].srcDict.srcIpAddr|string -%} {%- set dest_ip = vars.input.records[0].targetDict.destIpAddr|string -%} {%- set src_public = src_ip | ipaddr('public') -%} {%- set dest_public = dest_ip | ipaddr('public') -%} {# Only check dest fallback if IP is in valid dotted format #} {%- set dest_in_100_64 = false -%} {%- if dest_ip.count('.') == 3 -%} {%- set dest_octets = dest_ip.split('.') -%} {%- set dest_octet1 = dest_octets[0]|int -%} {%- set dest_octet2 = dest_octets[1]|int -%} {%- set dest_in_100_64 = (dest_octet1 == 100 and dest_octet2 >= 64 and dest_octet2 <= 127) -%} {%- endif -%} {%- if src_public -%} {%- set ioc = 'IP_INBOUND' -%} {%- elif dest_public or dest_in_100_64 -%} {%- set ioc = 'IP_OUTBOUND' -%} {%- endif -%}{%- endif -%}{{ ioc }}"
              },
              "name": "Extract Incident Type",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "description": null,
              "top": "1042"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "20fdc1eb-6ee1-4d72-b0e9-d674aa14aaca",
              "left": "1880",
              "arguments": {
                "ioc": "{{ vars.steps.Configuration.srcIp }}",
                "asset": "{{ vars.steps.Configuration.destIp }}",
                "lookup_ip": "{{ vars.steps.Configuration.srcIp }}",
                "basic_query": "phCustId = {{ vars.steps.Configuration.custId }} AND ((eventType IN (Group@PH_SYS_EVENT_PermitTraffic) OR eventAction = '0')) AND srcIpAddr = {{ vars.steps.Configuration.srcIp }} AND (fwAction NOT IN (\"deny\",\"dropped\",\"block\",\"blocked\",\"ban-ip\",\"Alert_Deny\"))",
                "basic_fields": "srcIpAddr,srcGeoCountry,destIpAddr,destGeoCountry,destIpPort,COUNT(*)",
                "basic_group_by": "srcIpAddr,srcGeoCountry,destIpAddr,destGeoCountry,destIpPort",
                "adv_sql_siem_query": "SELECT phRecvTime AS \"Event Receive Time\", reptDevName AS \"Reporting IP\", eventType AS \"Event Type\", srcIpAddrV4 AS \"Source IP\", srcGeoCountry AS \"Source Country\", destIpAddrV4 AS \"Destination IP\", destGeoCountry AS \"Destination Country\", if(has(metrics_string.name, 'fwAction'), metrics_string.value[indexOf(metrics_string.name, 'fwAction')], NULL) AS \"Firewall Action\", sentBytes64 AS \"Sent Bytes64\", recvBytes64 AS \"Received Bytes64\", if(has(metrics_string.name, 'policyName'), metrics_string.value[indexOf(metrics_string.name, 'policyName')], NULL) AS \"Policy Name\" FROM fsiem.events WHERE (phCustId = '{{ vars.steps.Configuration.custId }}') AND (dictHas('fsiem.dict_cmdb_group', (phCustId, toString(eventType), 'PH_SYS_EVENT_PermitTraffic')) OR dictHas('fsiem.dict_cmdb_group', (toUInt32(0), toString(eventType), 'PH_SYS_EVENT_PermitTraffic'))) AND srcIpAddrV4 = '{{ vars.steps.Configuration.srcIp }}' AND eventType NOT ILIKE '%PH_RULE%' AND (has(metrics_string.name, 'fwAction') = 0 OR metrics_string.value[indexOf(metrics_string.name, 'fwAction')] NOT IN ('deny', 'dropped', 'block', 'blocked', 'ban-ip', 'Alert_Deny')) AND phRecvTime > (now() - toIntervalDay(1)) LIMIT 20;"
              },
              "name": "IP Inbound - Set IP Variables",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "description": null,
              "top": "1318"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "1a7555ba-5705-4df8-99f4-634f1c3a388e",
              "left": "1873",
              "arguments": {
                "ioc": "{{ vars.steps.Configuration.destIp }}",
                "asset": "{{ vars.steps.Configuration.srcIp }}",
                "lookup_ip": "{{ vars.steps.Configuration.destIp }}",
                "basic_query": "phCustId = {{ vars.steps.Configuration.custId }} AND destIpAddr = {{ vars.steps.Configuration.destIp }}",
                "basic_fields": "srcIpAddr,srcGeoCountry,destIpAddr,destGeoCountry,destIpPort,COUNT(*)",
                "basic_group_by": "srcIpAddr,srcGeoCountry,destIpAddr,destGeoCountry,destIpPort",
                "adv_sql_siem_query": "SELECT phRecvTime AS \"Event Receive Time\", reptDevName AS \"Reporting IP\", eventType AS \"Event Type\", srcIpAddrV4 AS \"Source IP\", srcGeoCountry AS \"Source Country\", destIpAddrV4 AS \"Destination IP\", destGeoCountry AS \"Destination Country\", if(has(metrics_string.name, 'fwAction'), metrics_string.value[indexOf(metrics_string.name, 'fwAction')], NULL) AS \"Firewall Action\", sentBytes64 AS \"Sent Bytes64\", recvBytes64 AS \"Received Bytes64\", if(has(metrics_string.name, 'policyName'), metrics_string.value[indexOf(metrics_string.name, 'policyName')], NULL) AS \"Policy Name\" FROM fsiem.events WHERE (phCustId = '{{ vars.steps.Configuration.custId }}') AND (destIpAddrV4 = '{{ vars.steps.Configuration.destIp }}') AND (eventType NOT ILIKE '%PH_RULE%') AND (phRecvTime > (now() - toIntervalDay(1))) LIMIT 20;"
              },
              "name": "IP Outbound - Set IP Variables",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "description": null,
              "top": "1483"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "a1fc6ce9-3e9d-46ba-8680-9a8702c1ec76",
              "left": "1869",
              "arguments": {
                "ioc": "{{ vars.input.records[0].srcDict.srcDomain }}",
                "asset": "{{ vars.input.records[0].targetDict.destIpAddr }}",
                "domain": "{{ vars.input.records[0].srcDict.srcDomain }}",
                "basic_query": "phCustId = {{ vars.steps.Configuration.custId }} AND eventType IN (Group@PH_SYS_EVENT_PermitTraffic) AND srcDomain = {{ vars.ioc }} AND (eventAction=0 OR fwAction NOT IN (\"deny\",\"dropped\",\"block\",\"blocked\",\"ban-ip\",\"Alert_Deny\"))",
                "basic_fields": "srcIpAddr,srcDomain,destIpAddr,destDomain",
                "basic_group_by": "srcIpAddr,srcDomain,destIpAddr,destDomain,COUNT(*)",
                "adv_sql_siem_query": "SELECT phRecvTime AS \"Event Receive Time\", reptDevName AS \"Reporting IP\", eventType AS \"Event Type\", srcIpAddrV4 AS \"Source IP\", metrics_string.value[indexOf(metrics_string.name, 'srcDomain')] AS \"Source Domain\", destIpAddrV4 AS \"Destination IP\", metrics_string.value[indexOf(metrics_string.name, 'destDomain')] AS \"Destination Domain\", if(has(metrics_string.name, 'fwAction'), metrics_string.value[indexOf(metrics_string.name, 'fwAction')], NULL) AS \"Firewall Action\", if(has(metrics_string.name, 'policyName'), metrics_string.value[indexOf(metrics_string.name, 'policyName')], NULL) AS \"Policy Name\" FROM fsiem.events WHERE (phCustId = '{{ vars.steps.Configuration.custId }}') AND ((metrics_string.value[indexOf(metrics_string.name, 'srcDomain')]) = '{{ vars.ioc }}') AND (eventType NOT ILIKE '%PH_RULE%') AND (has(metrics_string.name, 'fwAction') = 0 OR metrics_string.value[indexOf(metrics_string.name, 'fwAction')] NOT IN ('deny','dropped','block','blocked','ban-ip','Alert_Deny')) AND (phRecvTime > (now() - toIntervalDay(1))) LIMIT 20;"
              },
              "name": "Domain Inbound - Set Domain Variables",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "description": null,
              "top": "797"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "5f3f67f6-e65b-4b5b-8dcc-0ffbd49157c6",
              "left": "4777",
              "arguments": {
                "adv_sql_table_domain": "| Event Receive Time | Reporting IP | Event Type | Source IP | Source Domain | Destination IP | Destination Domain | Firewall Action | Policy Name |\n|--------------------|--------------|------------|-----------|---------------|----------------|--------------------|-----------------|-------------|\n{% if vars.steps[\"Adv SQL Query For Top 10 Results Domain\"].data.events | length == 0 -%}\n| 🚫 No Results Found | - | - | - | - | - | - | - | - |\n{%- else -%}\n{%- for event in vars.steps[\"Adv SQL Query For Top 10 Results Domain\"].data.events -%}\n{%- set entry_dict = {} -%}\n{%- for item in event.dataStr.entry -%}\n{%- set key = item.key -%}\n{%- set val = item.value['#text'] if item.value is defined and item.value['#text'] is defined else '' -%}\n{%- set _ = entry_dict.update({ key: val }) -%}\n{%- endfor -%}\n| {{ entry_dict['Event Receive Time'] or '' }} | {{ entry_dict['Reporting IP'] or '' }} | {{ entry_dict['Event Type'] or '' }} | {{ entry_dict['Source IP'] or '' }} | {{ entry_dict['Source Domain'] or '' }} | {{ entry_dict['Destination IP'] or '' }} | {{ entry_dict['Destination Domain'] or '' }} | {{ entry_dict['Firewall Action'] or '' }} | {{ entry_dict['Policy Name'] or '' }} |\n{%- endfor -%}\n{%- endif %}\n",
                "adv_sql_table_domain_html": "<table border=\"1\" style=\"border-collapse:collapse; width: 100%; text-align: left;\">\n  <thead style=\"background:#1B2554; color:#fff;\">\n    <tr>\n      <th>Event Receive Time</th>\n      <th>Reporting IP</th>\n      <th>Event Type</th>\n      <th>Source IP</th>\n      <th>Source Domain</th>\n      <th>Destination IP</th>\n      <th>Destination Domain</th>\n      <th>Firewall Action</th>\n      <th>Policy Name</th>\n    </tr>\n  </thead>\n  <tbody> {% if vars.steps[\"Adv SQL Query For Top 10 Results Domain\"].data.events | length == 0 %} <tr>\n      <td colspan=\"11\" style=\"background:white; text-align:center; font-style:italic; color:#555; padding:10px;\">🚫 No Results Found</td>\n    </tr>\n    </tr> {% else %} {% for event in vars.steps[\"Adv SQL Query For Top 10 Results Domain\"].data.events %} {% set entry_dict = {} %} {% for item in event.dataStr.entry %} {% set key = item.key %} {% set val = item.value['#text'] if item.value is defined and item.value['#text'] is defined else '' %} {% set _ = entry_dict.update({ key: val }) %} {% endfor %} <tr>\n      <td style=\"background:white;\">{{ entry_dict['Event Receive Time'] }}</td>\n      <td style=\"background:white;\">{{ entry_dict['Reporting IP'] }}</td>\n      <td style=\"background:white;\">{{ entry_dict['Event Type'] }}</td>\n      <td style=\"background:white;\">{{ entry_dict['Source IP'] }}</td>\n      <td style=\"background:white;\">{{ entry_dict['Source Domain'] }}</td>\n      <td style=\"background:white;\">{{ entry_dict['Destination IP'] }}</td>\n      <td style=\"background:white;\">{{ entry_dict['Destination Domain'] }}</td>\n      <td style=\"background:white;\">{{ entry_dict['Firewall Action'] }}</td>\n      <td style=\"background:white;\">{{ entry_dict['Policy Name'] }}</td>\n    </tr> {% endfor %} {% endif %} </tbody>\n</table>"
              },
              "name": "Build Table For SQL Results - Domain",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "description": null,
              "top": "594"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "6afd422e-9c7b-4a71-8ac0-06e23c51631e",
              "left": "2444",
              "arguments": {
                "name": "IP Quality Score",
                "config": "",
                "params": {
                  "url": "{{ vars.url }}",
                  "fast": true,
                  "strictness": 0
                },
                "version": "1.0.1",
                "connector": "ip-quality-score",
                "operation": "get_url_reputation",
                "pickFromTenant": false,
                "from_str": ""
              },
              "name": "Check URL with IP Quality Score",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "description": null,
              "top": "59"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "0fe90644-1607-4dc7-ad7d-cf9b6a83edd3",
              "left": "3669",
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "start": 0,
                  "perPage": 10,
                  "sql_query": "{{ vars.adv_sql_siem_query }}",
                  "query_type": "SQL Query"
                },
                "version": "5.4.2",
                "connector": "fortinet-fortisiem",
                "operation": "run_report",
                "ignore_errors": true,
                "pickFromTenant": false,
                "from_str": ""
              },
              "name": "Adv SQL Query For Top 10 Results IP",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "description": null,
              "top": "1359"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "4a261cbe-e1bd-4e81-b82d-66cc7c576a9e",
              "left": "4194",
              "arguments": {
                "adv_sql_table_ip": "| Event Receive Time | Reporting Device | Event Type | Source IP | Source Country | Destination IP | Destination Country | Firewall Action | Sent Bytes64 | Received Bytes64 | Policy Name |\n|--------------------|------------------|------------|-----------|----------------|----------------|---------------------|-----------------|--------------|------------------|-------------|\n{% if vars.steps[\"Adv SQL Query For Top 10 Results IP\"].data.events | length == 0 -%}\n| 🚫 No Results Found | - | - | - | - | - | - | - | - | - | - |\n{%- else %}\n{%- for event in vars.steps[\"Adv SQL Query For Top 10 Results IP\"].data.events -%}\n{%- set entry_dict = {} -%}\n{%- for item in event.dataStr.entry -%}\n{%- set key = item.key -%}\n{%- set val = item.value['#text'] if item.value is defined and item.value['#text'] is defined else '' -%}\n{%- set _ = entry_dict.update({ key: val }) -%}\n{%- endfor -%}\n| {{ entry_dict['Event Receive Time'] }} | {{ entry_dict['Reporting Device'] }} | {{ entry_dict['Event Type'] }} | {{ entry_dict['Source IP'] }} | {{ entry_dict['Source Country'] }} | {{ entry_dict['Destination IP'] }} | {{ entry_dict['Destination Country'] }} | {{ entry_dict['Firewall Action'] }} | {{ entry_dict['Sent Bytes64'] }} | {{ entry_dict['Received Bytes64'] }} | {{ entry_dict['Policy Name'] }} |\n{%- endfor %}\n{%- endif %}",
                "adv_sql_table_ip_html": "        <table border=\"1\" style=\"border-collapse:collapse; width: 100%; text-align: left;\">\n          <thead style=\"background:#1B2554; color:#fff;\">\n            <tr>\n              <th>Event Receive Time</th>\n              <th>Reporting Device</th>\n              <th>Event Type</th>\n              <th>Source IP</th>\n              <th>Source Country</th>\n              <th>Destination IP</th>\n              <th>Destination Country</th>\n              <th>Firewall Action</th>\n              <th>Sent Bytes64</th>\n              <th>Received Bytes64</th>\n              <th>Policy Name</th>\n            </tr>\n          </thead>\n          <tbody> {% if vars.steps[\"Adv SQL Query For Top 10 Results IP\"].data.events | length == 0 %} <tr>\n              <td colspan=\"11\" style=\"background:white; text-align:center; font-style:italic; color:#555; padding:10px;\">🚫 No Results Found</td>\n            </tr>\n            </tr> {% else %} {% for event in vars.steps[\"Adv SQL Query For Top 10 Results IP\"].data.events %} {% set entry_dict = {} %} {% for item in event.dataStr.entry %} {% set key = item.key %} {% set val = item.value['#text'] if item.value is defined and item.value['#text'] is defined else '' %} {% set _ = entry_dict.update({ key: val }) %} {% endfor %} <tr>\n              <td style=\"background:white;\">{{ entry_dict['Event Receive Time'] }}</td>\n              <td style=\"background:white;\">{{ entry_dict['Reporting Device'] }}</td>\n              <td style=\"background:white;\">{{ entry_dict['Event Type'] }}</td>\n              <td style=\"background:white;\">{{ entry_dict['Source IP'] }}</td>\n              <td style=\"background:white;\">{{ entry_dict['Source Country'] }}</td>\n              <td style=\"background:white;\">{{ entry_dict['Destination IP'] }}</td>\n              <td style=\"background:white;\">{{ entry_dict['Destination Country'] }}</td>\n              <td style=\"background:white;\">{{ entry_dict['Firewall Action'] }}</td>\n              <td style=\"background:white;\">{{ entry_dict['Sent Bytes64'] }}</td>\n              <td style=\"background:white;\">{{ entry_dict['Received Bytes64'] }}</td>\n              <td style=\"background:white;\">{{ entry_dict['Policy Name'] }}</td>\n            </tr> {% endfor %} {% endif %} </tbody>\n        </table>"
              },
              "name": "Create HTML Table",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "description": null,
              "top": "1360"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "293bd174-9296-46e2-8f48-4c464cfdc3aa",
              "left": "3459",
              "arguments": {
                "vt_domain_result_table": "| Category   | Count |\n|------------|-------|\n| Harmless   | {{ vars.steps[\"Process VT Domain Results\"].harmlessCount or '0' }} |\n| Malicious  | {{ vars.steps[\"Process VT Domain Results\"].maliciousCount or '0' }} |\n| Suspicious | {{ vars.steps[\"Process VT Domain Results\"].suspiciousCount or '0' }} |\n| Undetected | {{ vars.steps[\"Process VT Domain Results\"].undetectedCount or '0' }} |\n\n🔗 [View full VirusTotal Report]({{ vars.vt_link }})",
                "vt_domain_result_table_html": "<table border=\"1\" style=\"border-collapse:collapse;\">  <thead style=\"background:#1B2554; color:#fff;\">    <tr>      <th>Category</th>      <th>Count</th>    </tr>  </thead>  <tbody>    <tr>      <td style=\"background:white;\">Harmless</td>      <td style=\"background:white;\">{{ vars.steps[\"Process VT Domain Results\"].harmlessCount }}</td>    </tr>    <tr>      <td style=\"background:white;\">Malicious</td>      <td style=\"background:white;\">{{ vars.steps[\"Process VT Domain Results\"].maliciousCount }}</td>    </tr>    <tr>      <td style=\"background:white;\">Suspicious</td>      <td style=\"background:white;\">{{ vars.steps[\"Process VT Domain Results\"].suspiciousCount }}</td>    </tr>    <tr>      <td style=\"background:white;\">Undetected</td>      <td style=\"background:white;\">{{ vars.steps[\"Process VT Domain Results\"].undetectedCount }}</td>    </tr>  </tbody></table><p style=\"margin-top:15px;\">  🔗 <a href=\"{{ vars.vt_link }}\" target=\"_blank\">View full VirusTotal Report</a></p>"
              },
              "name": "Set VT Domain Results",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "description": null,
              "top": "696"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "ed8d609f-08ad-48e1-8fc0-fb11e7fd6089",
              "left": "4195",
              "arguments": {
                "basic_table_ip": "| Source IP | Source Country | Destination IP | Destination Country | Destination TCP/UDP Port | Count |\n|-----------|----------------|----------------|---------------------|--------------------------|-------|\n{% if vars.steps[\"Query FortiSIEM For IP\"].data.events | length == 0 -%}\n| 🚫 No Results Found | - | - | - | - | - |\n{%- else -%}\n{%- for event in vars.steps[\"Query FortiSIEM For IP\"].data.events -%}\n| {{ event.attributes.get('srcIpAddr','') or '' }} | {{ event.attributes.get('srcGeoCountry','') or '' }} | {{ event.attributes.get('destIpAddr','') or '' }} | {{ event.attributes.get('destGeoCountry','') or '' }} | {{ event.attributes.get('destIpPort','') or '' }} | {{ event.attributes.get('COUNT(*)','') or '' }} |\n{%- endfor -%}\n{%- endif %}",
                "basic_table_ip_html": "        <table border=\"1\" style=\"border-collapse:collapse; width: 100%; text-align: left;\">          <thead style=\"background:#1B2554; color:#fff;\">            <tr>              <th>Source IP</th>              <th>Source Country</th>              <th>Destination IP</th>              <th>Destination Country</th>              <th>Destination TCP/UDP Port</th>              <th>Count</th>            </tr>          </thead>          <tbody> {% if vars.steps[\"Query FortiSIEM For IP\"].data.events | length == 0 %} <tr>              <td colspan=\"3\" style=\"background:white; text-align:center; font-style:italic; color: #555; padding: 10px;\"> 🚫 No Results Found </td>            </tr> {% else %} {% for event in vars.steps[\"Query FortiSIEM For IP\"].data.events %} <tr>              <td style=\"background:white;\">{{ event.attributes.get('srcIpAddr', '') }}</td>              <td style=\"background:white;\">{{ event.attributes.get('srcGeoCountry', '') }}</td>              <td style=\"background:white;\">{{ event.attributes.get('destIpAddr', '') }}</td>              <td style=\"background:white;\">{{ event.attributes.get('destGeoCountry', '') }}</td>              <td style=\"background:white;\">{{ event.attributes.get('destIpPort', '') }}</td>              <td style=\"background:white;\">{{ event.attributes.get('COUNT(*)', '') }}</td>            </tr> {% endfor %} {% endif %} </tbody>        </table>"
              },
              "name": "Create HTML Table for Grouped Results Query",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "description": null,
              "top": "1218"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "a67a428c-3256-4550-a95d-87eb0e9618cf",
              "left": "2428",
              "arguments": {
                "name": "IP Quality Score",
                "config": "",
                "params": {
                  "url": "{{ vars.domain }}",
                  "fast": true,
                  "strictness": 0
                },
                "version": "1.0.1",
                "connector": "ip-quality-score",
                "operation": "get_url_reputation",
                "pickFromTenant": false,
                "from_str": ""
              },
              "name": "Check Domain with IP Quality Score",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "description": null,
              "top": "601"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "85b78c9e-0b44-40af-9951-57a8aacecc94",
              "left": "5097",
              "arguments": {
                "template": "{% if vars.input.records|length > 0 %}\n{% set incident = vars.input.records[0] %}\n{% set first_seen = arrow.get(incident.incidentFirstSeen / 1000).to(\"UTC\").format(\"YYYY-MM-DD HH:mm:ss ZZ\") %}\n{% set last_seen = arrow.get(incident.incidentLastSeen / 1000).to(\"UTC\").format(\"YYYY-MM-DD HH:mm:ss ZZ\") %}\n\n## 📋 Security Incident Summary\n- **Incident ID:** {{ incident.incidentId }}\n- **Title:** {{ incident.incidentTitle }}\n- **Status:** {{ \"🔴 Active\" if incident.incidentStatus == 0 else \"🟢 Resolved\" }}\n- **Severity:** {{ incident.eventSeverityCat }} ({{ incident.eventSeverity }}/10)\n\n---\n\n### 🧨 Threat Details\n| Field              | Value |\n|--------------------|-------|\n| Compromised Device | `{{ vars.asset }}` |\n| Attack Tactic      | {{ incident.attackTactic }} |\n| Attack Technique   | {{ incident.attackTechniqueId }} - {{ (incident.attackTechnique|from_json)[0].name if incident.attackTechnique }} |\n\n---\n\n### ⏱️ Timeline\n| Field       | Value |\n|-------------|-------|\n| First Seen  | {{ first_seen }} |\n| Last Seen   | {{ last_seen }} |\n{% if incident.incidentClearedTime > 0 -%}\n| Cleared     | {{ arrow.get(incident.incidentClearedTime / 1000).to(\"UTC\").format(\"YYYY-MM-DD HH:mm:ss ZZ\") }} |\n{% endif %}\n\n---\n\n### 📡 Reporting Information\n| Field            | Value |\n|------------------|-------|\n| Reporting Device | {{ incident.incidentRptDevName }} ({{ incident.incidentRptIp }}) |\n| Customer         | {{ incident.customer }} |\n\n---\n\n### 🌐 IP Quality Score\n- **Risk Score:** {{ vars.steps[\"Check Domain with IP Quality Score\"].data.risk_score }}\n- Results:  \n  {{ vars.ip_qual_domain_table }}\n\n---\n\n### 🦠 VirusTotal Analysis\n- **Analysis Date:** {{ vars.last_analysis_time }}\n- Results:  \n  {{ vars.vt_domain_result_table }}\n\n---\n\n### 📊 FortiSIEM Historical Queries\n**Other Hosts observed with IOC – Top 10**\n\n{{ vars.basic_table_domain }}\n\n---\n\n### 🧾 Last 20 – Raw Events\n{{ vars.adv_sql_table_domain }}\n\n{% else %}\nℹ️ **No Security Incidents Found**: No security incidents were found in the provided data.\n{% endif %}\n"
              },
              "name": "Set Comments Template Domain",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "description": null,
              "top": "692"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "55a31f05-20aa-44c8-99ce-acd22e62e35b",
              "left": "5829",
              "arguments": {
                "output": "{% if vars.steps[\"Set VT Domain Results\"].vt_domain_result_table_html is not none and vars.steps[\"Set VT Domain Results\"].vt_domain_result_table_html | length > 0 %}  {% set vt_domain_result_table_html = vars.steps[\"Set VT Domain Results\"].vt_domain_result_table_html %}{% else %}  {% set vt_domain_result_table_html = vars.steps[\"Virus Total Domain No Results\"].vt_domain_result_table_html %}  {% set last_analysis_time = vars.steps[\"Virus Total Domain No Results\"].last_analysis_time_html %}{% endif %}\n<html>\n   <!-- Header -->  \n   <h2 style=\"color:#00008B; margin-bottom: 20px;\">🛡️ Playbook Threat Intelligence Summary</h2>\n   <p>\n      For IOC : <strong>{{ vars.ioc }}</strong>    <!-- Section Box Template -->  \n   <div style=\"margin-bottom: 20px; background-color: #f0f0f0; border-left: 4px solid #00008B;; border-radius: 10px; padding: 15px;\">\n      <details open>\n         <summary style=\"font-size: 16px; font-weight: bold; color:#00000;\">🔎 IP Quality Score Assessment</summary>\n         <div style=\"margin-top: 10px;\">\n            <p style=\"margin: 0;\">The assessed risk score from IP Quality Score is:</p>\n            <div style=\"background-color: #FFFFFF; border: 2px solid #FF4C4C; color: #FF4C4C; display: inline-block; padding: 10px 20px; font-size: 24px; font-weight: bold; border-radius: 8px; margin-top: 10px;\"> {{ vars.steps[\"Check Domain with IP Quality Score\"].data.risk_score }} </div>\n            <p>      \n         </div>\n         {{ vars.steps[\"Process Domain Quality Score Domain\"].ip_qual_domain_table_html }}     \n      </details>\n   </div>\n   <!-- VirusTotal -->  \n   <div style=\"margin-bottom: 20px; background-color: #f0f0f0; border-left: 4px solid #00008B; border-radius: 10px; padding: 15px;\">\n      <details>\n         <summary style=\"font-size: 16px; font-weight: bold; color:#00000;\">🧪 VirusTotal Detection Overview</summary>\n         <div style=\"margin-top: 10px;\">\n            <p style=\"margin: 0 0 10px 0; color: #000000;\"> Last Analysis Time of IOC: <span style=\"color: #FF4C4C;\">{{ vars.last_analysis_time }}</span>        </p>\n            {{ vars.vt_domain_result_table_html }}      \n         </div>\n      </details>\n   </div>\n   <!-- Other Hosts -->  \n   <div style=\"margin-bottom: 20px; background-color: #f0f0f0; border-left: 4px solid #00008B; border-radius: 10px; padding: 15px;\">\n      <details>\n         <summary style=\"font-size: 16px; font-weight: bold; color:#00000;\">🌐 Other Hosts Associated with IOC - Last 24 Hours</summary>\n         <div style=\"margin-top: 10px;\">{{ vars.basic_table_domain_html }} </div>\n      </details>\n   </div>\n   <!-- Raw Events -->  \n   <div style=\"margin-bottom: 20px; background-color: #f0f0f0; border-left: 4px solid #00008B; border-radius: 10px; padding: 15px;\">\n      <details>\n         <summary style=\"font-size: 16px; font-weight: bold; color:#00000;\">📄 Raw Events - Last 24 Hours</summary>\n         <div style=\"margin-top: 10px;\">{{ vars.adv_sql_table_domain_html }} </div>\n      </details>\n   </div>\n   <!-- Final Note -->  \n   <div style=\"margin-top: 30px; background-color: #f0f0f0; border-left: 4px solid #00008B; padding: 15px; color: #000000; font-weight: bold; border-radius: 6px;\"> 📌 Incident Comments have been updated automatically </div>\n   </body>\n</html>"
              },
              "name": "Final Output Domain",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "description": null,
              "top": "752"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "989aa8ee-61e1-4dda-aacd-2bc02b38ac4d",
              "left": "4783",
              "arguments": {
                "template": "## 🛡️ Playbook Threat Intelligence Summary\n\nFor IOC: **{{ vars.ioc }}**\n\n---\n\n### 🔎 IP Quality Score Assessment\nThe assessed fraud score from IP Quality Score is:\n\n**`{{ vars.steps[\"Check IP In IP Quality Score\"].data.fraud_score }}`**\n\n{{ vars.steps[\"Process IP Quality Score Results\"].ip_qual_ip_table }}\n\n---\n\n### 🧪 VirusTotal Detection Overview\nLast Analysis Time of IOC: **{{ vars.steps[\"Process VT IP Results\"].last_analysis_time }}**\n\n{{ vars.steps[\"Set VT IP Summary\"].vt_ip_result_table }}\n\n---\n\n### 🌐 Other Hosts Associated with IOC – Last 24 Hours\n{{ vars.basic_table_ip }}\n\n---\n\n### 📄 Raw Events – Last 24 Hours\n{{ vars.adv_sql_table_ip }}\n\n---\n\n📌 **Incident Comments have been updated automatically**\n"
              },
              "name": "Set Comments Template IP",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "description": null,
              "top": "1265"
            }
          ],
          "triggerLimit": null,
          "aliasName": null,
          "name": "Incident IOC investigations",
          "importedBy": [],
          "remoteExecutableFlag": false
        }
      ],
      "description": "This collection uses FortiGuard Threat Intel Connector to enrich IOC of IP, domain, IPS Signature enriched to CVE and return CVE Data and Malware",
      "image": null,
      "recordTags": [
        "Enrichment"
      ]
    },
    {
      "name": "004 - AD User Response",
      "@type": "WorkflowCollection",
      "visible": true,
      "workflows": [
        {
          "routes": [
            {
              "@type": "WorkflowRoute",
              "name": "Start->Capture Variables",
              "targetStep": "/api/3/workflow_steps/dc6dcb1a-eb10-4efb-9463-2e419b3e1c94",
              "sourceStep": "/api/3/workflow_steps/15f3a47c-49bc-42f6-bf60-37b5ac8d5714",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "3cbe02d3-93d7-49ef-a3dd-648169bbc6d5"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Capture Variables->FortiSIEM Case Creation",
              "targetStep": "/api/3/workflow_steps/36a7f75b-f26e-4dc2-8b72-03a9a91070f6",
              "sourceStep": "/api/3/workflow_steps/dc6dcb1a-eb10-4efb-9463-2e419b3e1c94",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "da84509e-24f8-4d65-be3c-62373b5a4e0e"
            },
            {
              "@type": "WorkflowRoute",
              "name": "FortiSIEM Case Creation->Disable AD user",
              "targetStep": "/api/3/workflow_steps/e92d58ba-1f00-4864-bc84-7c80d1435453",
              "sourceStep": "/api/3/workflow_steps/36a7f75b-f26e-4dc2-8b72-03a9a91070f6",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "05c816e2-e995-46bb-9dd1-d3dbc0ef3ae0"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Disable AD user->Get user details from AD",
              "targetStep": "/api/3/workflow_steps/19446bdd-951c-4302-a0a4-867277733bbc",
              "sourceStep": "/api/3/workflow_steps/e92d58ba-1f00-4864-bc84-7c80d1435453",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "edb09c3f-61d3-4675-83a4-b6367872d9e8"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Get user details from AD->Remove user from domain admin group",
              "targetStep": "/api/3/workflow_steps/ef05b65b-9c2e-4cc5-a223-bcd05d32aa7a",
              "sourceStep": "/api/3/workflow_steps/19446bdd-951c-4302-a0a4-867277733bbc",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "25f0d87c-74c4-4049-9e1b-182ef139418f"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Remove user from domain admin group->FortiSIEM Case Update",
              "targetStep": "/api/3/workflow_steps/69b06fa3-1fd8-46d1-919b-0157370fa83e",
              "sourceStep": "/api/3/workflow_steps/ef05b65b-9c2e-4cc5-a223-bcd05d32aa7a",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "64fedf71-9319-451c-b543-05e269c2bc23"
            },
            {
              "@type": "WorkflowRoute",
              "name": "FortiSIEM Case Update->Send email",
              "targetStep": "/api/3/workflow_steps/72d3b65c-ed24-4b12-b326-d19b7ac1acc9",
              "sourceStep": "/api/3/workflow_steps/69b06fa3-1fd8-46d1-919b-0157370fa83e",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "2ffc9f21-ae02-4721-8cb8-a5e7bc4a7319"
            }
          ],
          "@type": "Workflow",
          "parameters": null,
          "uuid": "acf32c87-0590-4d74-b3c0-0ac4e1f953d4",
          "debug": false,
          "singleRecordExecution": false,
          "groups": [],
          "isPrivate": false,
          "description": null,
          "recordTags": [
            "User Account Change"
          ],
          "priority": "/api/3/picklists/2b563c61-ae2c-41c0-a85a-c9709585e3f2",
          "synchronous": false,
          "isActive": false,
          "triggerStep": "/api/3/workflow_steps/15f3a47c-49bc-42f6-bf60-37b5ac8d5714",
          "tag": null,
          "steps": [
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "15f3a47c-49bc-42f6-bf60-37b5ac8d5714",
              "left": "300",
              "arguments": {
                "@id": "/api/workflow/events/ade31b8a-e4a3-438a-a38f-f9efb2e87842/",
                "tag": null,
                "name": "When an incident is created",
                "poll": null,
                "type": [
                  "PUSH"
                ],
                "uuid": "ade31b8a-e4a3-438a-a38f-f9efb2e87842",
                "@type": "ApplicationEvent",
                "agentId": "421187_deploy_10067",
                "default": false,
                "event_id": "fortinet-fortisiem.get_incidents_created",
                "schedule": null,
                "start_time": null,
                "description": "Run the playbook when a FortiSIEM incident is created",
                "sample_data": [
                  ""
                ],
                "installed_by": "SOLUTION_PACK",
                "createUser_id": null,
                "modifyUser_id": null,
                "connector_icon": "data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAIAAAD8GO2jAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3hpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ4IDc5LjE2NDAzNiwgMjAxOS8wOC8xMy0wMTowNjo1NyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo1MDNhYTZiMy0zYzEzLTQ5YzEtODNiZi00MThjZWIxM2VhNTIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6OTU3MkQ4QjkzRUFFMTFFQUJCQjJCRDNGMkZEOEUzMEUiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6OTU3MkQ4QjgzRUFFMTFFQUJCQjJCRDNGMkZEOEUzMEUiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKE1hY2ludG9zaCkiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo0MjI1MGJmZi03MjQyLTRhNDItOTA3Ny1hYThiOTk5Yjk3YTIiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NTAzYWE2YjMtM2MxMy00OWMxLTgzYmYtNDE4Y2ViMTNlYTUyIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+SVYIEAAABGVJREFUeNpi/P//PwMtARMDjQHNLWDBFHrz9v2Va3eYmZkZGEgIvT9//qqpyEtLiaOJM6LFAdD01q7ZxoaaQoL8f//9w28oIwMjExPTv3//GBkZv3z9euTYhZL8eHk5KXw+uHnrgZiYcEyELxmh8f7DlwuXbqBZgB4HjEyMrKwsRJo4Z+E6C5vwjVv2QR3LwsLEzEQ4kuGBRjCIZs1dffLovi07DqFpJGABMGSB5Io1263tIleu3YEsdfX6nd37jj94+PTv33+9kxZZWxn1TuqtKkklLRUBYwxIrt+87+TRgw3ffsjLSlqY6b989Ta3pP3u3cfi4sLv338COjbQ36W/o5ScZPrvPyhkmmuzDfU1tTQUgSGwYcv+o8fPa2gobVo9+d2Hj2ysrJV1E+7df0xURP1HBUdPnO+aMB9NsHfyIlPbCCDj3fuPuqaBd+8//v79h65ZEFAxsrJZ89du2rYfTS9ROfnzpy92tiZg1zCIS4gAkxkHB7uOlsq1G/eoU1SIigrfvvMIyODkZLe3MRETEQKy7957/Pr1O6Abnz1//fHjZ4os8HSzPnT07PzFG4ChLyMlDkwFwEADeuLnz19xqdWm9pG+obnfv/9kZWEmx4Jfv37PmLMqIzl0yozlwdGFDx8/9w3NKSluMzXWaajO8vN2ePb05fMXb/7+/QtJfoRTETL4/edPWW2/rpZqcnxgQXbMgiUbN209kBgXALRm2oxlHq7WoYFuJw4sBRZcPDxcv37/IcECYKm3cs3OC5dvWpjpJccFAkXExYQTYvxfvXmfEh8kKy3uG5iVW9R2YOd8c1M90pJp94QFQEZj+3SgmeoGvsDCEiIFLDlScxo4+fTnLlwP5NY2T2VgUIpNqQIGDmnJ9D+4GrC1MtI3sQoP8fiP5JbXb95///z11Zt3QF5VaYqLt/PiOcvmL9lIWk6GAEc7sxNHVnCwsyHSAxPTzEl1eZnRVub6QC5Qakp/VfrPnzzcnCRYAKk9IGxk0yFATFQIiOBcdVWFA7sXwrnMTEzA4CJggYy0xIM1O4+fvMDNzQkMfMIZlYkJUkoDU/PFyzeT4gIIVJlAAFR38fItNjYWkqqzX79/qyrJWZobELZgiDdb3r17d+XKFUZmZg0xUcEPn/98+sGmJHnz1+8Xz55JSEj8+P799evXYuLifHx8d+7c5ubmUVJSun37FisLKxMzM1Cvrq6ujIwMPgtOnDg+YUK/lrFxrqg8DwMLo7Liz/lrpry69/bDe3Y2Nn0Dg8+fPsnJy58+dVpLWwuoftmypS+eP4+IjPry5fOF8xf09PQI+ICJiTkoKNjeyUny8s3ftx6wfvryj5UJ6PbI2NhjR4+oqarx8vGxsbGdPXPW1dXt+/fvVy5fYWfn+P7tm6amJgc7h7g4oYYXUA87Ozsw8TH8+P73xev/338xSQp9ZmLh5+P78uULUDGwxQdqZn35AgwlIPfz588fP34EZnIJSUlgJuDh4QE3CYdTKgIIMAAEe1lyT/xWdwAAAABJRU5ErkJggg==",
                "connector_name": "fortinet-fortisiem",
                "connector_label": "Fortinet FortiSIEM",
                "exit_if_running": false,
                "batch_preference": 0,
                "connector_action": "get_incidents",
                "connector_mapping": {
                  "datetime": {
                    "to": "timeTo",
                    "from": "timeFrom"
                  },
                  "response": "{{data.data}}"
                },
                "connector_version": "5.4.3",
                "trigger_condition": {
                  "sort": [],
                  "limit": 30,
                  "logic": "AND",
                  "filters": []
                },
                "connector_action_inputs": {}
              },
              "name": "Start",
              "stepType": "/api/3/workflow_step_types/b348f017-9a94-471f-87f8-ce88b6a7ad62",
              "description": null,
              "top": "30"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "19446bdd-951c-4302-a0a4-867277733bbc",
              "left": "300",
              "arguments": {
                "name": "Active Directory",
                "config": "",
                "params": {
                  "search_object": "User",
                  "search_attr_value": "{{ vars.targetUser }}"
                },
                "version": "2.4.0",
                "connector": "activedirectory",
                "operation": "get_specific_object_details",
                "pickFromTenant": false,
                "from_str": ""
              },
              "name": "Get user details from AD",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "description": null,
              "top": "570"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "36a7f75b-f26e-4dc2-8b72-03a9a91070f6",
              "left": "300",
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "note": "",
                  "stage": "Analysis",
                  "status": "New",
                  "dueDate": "",
                  "summary": "Unauthorized user {{ vars.targetUser }} was added to Domain Admin on {{ vars.input.records[0].hostName }}",
                  "assignee": "team_queue_L1",
                  "severity": "Medium",
                  "incidentIds": "{{ vars.input.records[0].incidentId }}",
                  "organization": "{{ vars.org }}",
                  "caseMgmtPolicy": ""
                },
                "version": "5.4.3",
                "connector": "fortinet-fortisiem",
                "operation": "create_case",
                "ignore_errors": false,
                "pickFromTenant": false,
                "from_str": ""
              },
              "name": "FortiSIEM Case Creation",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "description": null,
              "top": "300"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "69b06fa3-1fd8-46d1-919b-0157370fa83e",
              "left": "300",
              "arguments": {
                "name": "Fortinet FortiSIEM",
                "config": "",
                "params": {
                  "note": "The user {{ vars.targetUser }} has been disabled and removed from {{ vars.input.records[0].targetDict.targetDomain }} group",
                  "stage": "",
                  "caseId": "{{ vars.steps[\"FortiSIEM Case Creation\"].data.caseId }}",
                  "status": "InProgress",
                  "dueDate": "",
                  "summary": "",
                  "assignee": "",
                  "severity": "",
                  "incidentIds": "",
                  "caseMgmtPolicy": ""
                },
                "version": "5.4.3",
                "connector": "fortinet-fortisiem",
                "operation": "update_cases",
                "pickFromTenant": false,
                "from_str": ""
              },
              "name": "FortiSIEM Case Update",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "description": null,
              "top": "840"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "72d3b65c-ed24-4b12-b326-d19b7ac1acc9",
              "left": "300",
              "arguments": {
                "name": "SMTP",
                "config": "",
                "params": {
                  "body": "The user {{ vars.targetUser }} has been disabled and removed from {{ vars.targetGroup }} group because he/she are not authorised to be part of this group. If this user is indeed authorised, please raise a change request and obtain approval from both the line manager and IT manager to follow the proper change management process. This is a mandatory step to ensure the security and integrity of our Active Directory. Thank you",
                  "subject": "The user {{ vars.targetUser }} has been disabled and removed from {{ vars.targetGroup }} group",
                  "iri_list": "",
                  "cc_recipients": "itmanager@example.com",
                  "to_recipients": "soc-team@example.com",
                  "bcc_recipients": ""
                },
                "version": "2.6.0",
                "connector": "smtp",
                "operation": "send_email",
                "pickFromTenant": false,
                "from_str": ""
              },
              "name": "Send email",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "description": null,
              "top": "975"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "dc6dcb1a-eb10-4efb-9463-2e419b3e1c94",
              "left": "300",
              "arguments": {
                "org": "{{ vars.input.records[0].customer }}",
                "targetUser": "{{ vars.input.records[0].targetDict.targetUser }}",
                "targetGroup": "{{ vars.input.records[0].targetDict.targetUserGrp }}",
                "targetDomain": "{{ vars.input.records[0].targetDict.targetDomain }}"
              },
              "name": "Capture Variables",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "description": null,
              "top": "165"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "e92d58ba-1f00-4864-bc84-7c80d1435453",
              "left": "300",
              "arguments": {
                "name": "Active Directory",
                "config": "",
                "params": {
                  "search_attr_name": "SamAccount Name",
                  "search_attr_value": "{{ vars.targetUser }}"
                },
                "version": "2.4.0",
                "connector": "activedirectory",
                "operation": "disable_user_account",
                "pickFromTenant": false,
                "from_str": ""
              },
              "name": "Disable AD user",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "description": null,
              "top": "435"
            },
            {
              "group": null,
              "@type": "WorkflowStep",
              "status": null,
              "uuid": "ef05b65b-9c2e-4cc5-a223-bcd05d32aa7a",
              "left": "300",
              "arguments": {
                "name": "Active Directory",
                "config": "",
                "params": {
                  "group_dn": "CN=Domain Admins,CN=Users,DC=example,DC=com",
                  "object_dn": "{{ vars.steps[\"Get user details from AD\"].data.entries[0].dn }}",
                  "object_class": "User"
                },
                "version": "2.4.0",
                "connector": "activedirectory",
                "operation": "remove_group_members",
                "pickFromTenant": false,
                "from_str": ""
              },
              "name": "Remove user from domain admin group",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "description": null,
              "top": "705"
            }
          ],
          "triggerLimit": null,
          "aliasName": null,
          "name": "Unauthorized new AD User",
          "importedBy": [],
          "remoteExecutableFlag": false
        }
      ],
      "description": null,
      "image": null,
      "recordTags": []
    }
  ]
}
