{
  "type": "workflow_collections",
  "macros": [],
  "exported_tags": [],
  "data": [
    {
      "@type": "WorkflowCollection",
      "name": "CVE Exploit Priority",
      "description": "Rank a CVE by how likely it is to be exploited, using the free EPSS feed.",
      "visible": true,
      "image": null,
      "uuid": "cfd35898-9e3f-535b-87f6-cbf60bd0bf78",
      "recordTags": [],
      "workflows": [
        {
          "@type": "Workflow",
          "name": "Prioritize CVE by EPSS",
          "aliasName": null,
          "tag": "",
          "recordTags": [],
          "description": "Looks up a CVE's EPSS score (the probability it is exploited in the next 30 days) and its percentile, and returns a priority. Call it from a vulnerability playbook with cve_id. Thresholds are in the first step.",
          "isActive": false,
          "debug": false,
          "singleRecordExecution": false,
          "remoteExecutableFlag": 0,
          "parameters": [
            "cve_id"
          ],
          "synchronous": false,
          "triggerStep": "/api/3/workflow_steps/89f38f8e-83fa-5214-80a2-0eae43e6d691",
          "steps": [
            {
              "@type": "WorkflowStep",
              "name": "Start",
              "description": null,
              "arguments": {
                "step_variables": {
                  "input": {
                    "params": []
                  }
                }
              },
              "status": null,
              "top": "120",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/b348f017-9a94-471f-87f8-ce88b6a7ad62",
              "group": null,
              "uuid": "89f38f8e-83fa-5214-80a2-0eae43e6d691"
            },
            {
              "@type": "WorkflowStep",
              "name": "Thresholds",
              "description": null,
              "arguments": {
                "critical_at": 0.5,
                "high_at": 0.1,
                "medium_percentile": 0.9,
                "cve": "{{ vars.input.params.cve_id | default('', true) | string | trim | upper }}"
              },
              "status": null,
              "top": "250",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null,
              "uuid": "8acb9036-ee20-5129-a5f8-b5f1108cef27"
            },
            {
              "@type": "WorkflowStep",
              "name": "Is it a CVE id",
              "description": null,
              "arguments": {
                "conditions": [
                  {
                    "option": "CVE id",
                    "condition": "{{ (vars.cve | regex_search('^CVE-[0-9]{4}-[0-9]{4,}$')) is string }}",
                    "step_iri": "/api/3/workflow_steps/46300a46-4c50-56e3-8f11-55c43bd43b54",
                    "step_name": "Get EPSS score"
                  },
                  {
                    "option": "Else",
                    "default": true,
                    "step_iri": "/api/3/workflow_steps/cf9a7665-af3a-5ca3-a5a7-8e34f7377ea6",
                    "step_name": "Not a CVE id"
                  }
                ]
              },
              "status": null,
              "top": "380",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/12254cf5-5db7-4b1a-8cb1-3af081924b28",
              "group": null,
              "uuid": "cf82a25a-89ef-535f-a800-2080e3bec929"
            },
            {
              "@type": "WorkflowStep",
              "name": "Not a CVE id",
              "description": null,
              "arguments": {
                "cve": "{{ vars.cve }}",
                "found": false,
                "priority": "Unknown",
                "reason": "'{{ vars.cve }}' is not a CVE id"
              },
              "status": null,
              "top": "510",
              "left": "540",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null,
              "uuid": "cf9a7665-af3a-5ca3-a5a7-8e34f7377ea6"
            },
            {
              "@type": "WorkflowStep",
              "name": "Get EPSS score",
              "description": null,
              "arguments": {
                "connector": "exploit-prediction-scoring-system",
                "operation": "get_epss_score_by_cve_id",
                "params": {
                  "cve": "{{ vars.cve }}",
                  "scope": "Public",
                  "envelope": true,
                  "pretty": true,
                  "orderResult": false
                },
                "version": "1.0.0",
                "name": "Exploit Prediction Scoring System (EPSS)",
                "operationTitle": "Get EPSS Score By CVE ID",
                "step_variables": [],
                "pickFromTenant": false,
                "config": ""
              },
              "status": null,
              "top": "510",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/0bfed618-0316-11e7-93ae-92361f002671",
              "group": null,
              "uuid": "46300a46-4c50-56e3-8f11-55c43bd43b54"
            },
            {
              "@type": "WorkflowStep",
              "name": "Read score",
              "description": null,
              "arguments": {
                "row": "{{ (vars.steps.Get_EPSS_score.data.data | default([], true) | first) | default({}, true) }}"
              },
              "status": null,
              "top": "640",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null,
              "uuid": "f36e1ac2-3f95-5f49-8ca7-72d546f4920d"
            },
            {
              "@type": "WorkflowStep",
              "name": "Result",
              "description": null,
              "arguments": {
                "cve": "{{ vars.cve }}",
                "found": "{{ vars.row.epss is defined }}",
                "epss": "{{ vars.row.epss | default(0) | float }}",
                "percentile": "{{ vars.row.percentile | default(0) | float }}",
                "scored_on": "{{ vars.row.date | default('') }}",
                "priority": "{%- set e = vars.row.epss | default(0) | float -%} {%- set p = vars.row.percentile | default(0) | float -%} {%- if vars.row.epss is not defined -%}Unknown {%- elif e >= vars.critical_at | float -%}Critical {%- elif e >= vars.high_at | float -%}High {%- elif p >= vars.medium_percentile | float -%}Medium {%- else -%}Low{%- endif -%}"
              },
              "status": null,
              "top": "770",
              "left": "200",
              "stepType": "/api/3/workflow_step_types/04d0cf46-b6a8-42c4-8683-60a7eaa69e8f",
              "group": null,
              "uuid": "3c96934f-72a4-5bba-91c0-ffe6ed877e33"
            }
          ],
          "routes": [
            {
              "@type": "WorkflowRoute",
              "name": "Start -> Thresholds",
              "targetStep": "/api/3/workflow_steps/8acb9036-ee20-5129-a5f8-b5f1108cef27",
              "sourceStep": "/api/3/workflow_steps/89f38f8e-83fa-5214-80a2-0eae43e6d691",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "4b8b74cb-5de4-50ce-86f5-28aa1cd30f8e"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Thresholds -> Is it a CVE id",
              "targetStep": "/api/3/workflow_steps/cf82a25a-89ef-535f-a800-2080e3bec929",
              "sourceStep": "/api/3/workflow_steps/8acb9036-ee20-5129-a5f8-b5f1108cef27",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "e3d89d52-9c85-589f-af7d-a709377a1c82"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Is it a CVE id -> Get EPSS score",
              "targetStep": "/api/3/workflow_steps/46300a46-4c50-56e3-8f11-55c43bd43b54",
              "sourceStep": "/api/3/workflow_steps/cf82a25a-89ef-535f-a800-2080e3bec929",
              "label": "CVE id",
              "isExecuted": false,
              "group": null,
              "uuid": "93a40528-b9e5-5c09-9d23-ffb23e1500b7"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Is it a CVE id -> Not a CVE id",
              "targetStep": "/api/3/workflow_steps/cf9a7665-af3a-5ca3-a5a7-8e34f7377ea6",
              "sourceStep": "/api/3/workflow_steps/cf82a25a-89ef-535f-a800-2080e3bec929",
              "label": "Else",
              "isExecuted": false,
              "group": null,
              "uuid": "9f5f6c1a-a1dc-589b-a4a2-801fe227faef"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Get EPSS score -> Read score",
              "targetStep": "/api/3/workflow_steps/f36e1ac2-3f95-5f49-8ca7-72d546f4920d",
              "sourceStep": "/api/3/workflow_steps/46300a46-4c50-56e3-8f11-55c43bd43b54",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "0c8d7d29-e501-512b-96ba-0d5dddd8fc6b"
            },
            {
              "@type": "WorkflowRoute",
              "name": "Read score -> Result",
              "targetStep": "/api/3/workflow_steps/3c96934f-72a4-5bba-91c0-ffe6ed877e33",
              "sourceStep": "/api/3/workflow_steps/f36e1ac2-3f95-5f49-8ca7-72d546f4920d",
              "label": null,
              "isExecuted": false,
              "group": null,
              "uuid": "c6b05b1d-52e1-5592-93c2-071d8242c9cb"
            }
          ],
          "groups": [],
          "priority": "/api/3/picklists/9e8d41e4-8ada-4a2c-bd02-07f62c6d0a00",
          "isEditable": true,
          "uuid": "b2ec3553-0b86-529f-a50b-514a83692e54",
          "isPrivate": false
        }
      ]
    }
  ]
}
