{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://quickiso.app/data-portability/tables/vulnerabilities.schema.json",
  "title": "tables/vulnerabilities.json",
  "description": "The rows of the table vulnerabilities that belong to the workspace, one object per row, keyed by the database's column names.",
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "id": {
        "type": "string",
        "format": "uuid"
      },
      "organization_id": {
        "type": "string",
        "format": "uuid"
      },
      "vulnerability_key": {
        "type": "string"
      },
      "identifiers": {
        "type": [
          "object",
          "array",
          "string",
          "number",
          "boolean",
          "null"
        ]
      },
      "title": {
        "type": "string"
      },
      "description": {
        "type": "string"
      },
      "asset_kind": {
        "type": "string",
        "enum": [
          "repository",
          "cloud_resource",
          "host",
          "software",
          "other"
        ]
      },
      "asset_ref": {
        "type": "string"
      },
      "asset_key": {
        "type": "string"
      },
      "asset_name": {
        "type": "string"
      },
      "device_id": {
        "type": [
          "string",
          "null"
        ],
        "format": "uuid"
      },
      "system_id": {
        "type": [
          "string",
          "null"
        ],
        "format": "uuid"
      },
      "origin": {
        "type": "string",
        "enum": [
          "connector",
          "manual",
          "pentest"
        ]
      },
      "source_severity": {
        "type": [
          "string",
          "null"
        ],
        "enum": [
          "critical",
          "high",
          "medium",
          "low",
          "info",
          null
        ]
      },
      "cvss_score": {
        "type": [
          "number",
          "null"
        ]
      },
      "cvss_vector": {
        "type": [
          "string",
          "null"
        ]
      },
      "severity": {
        "type": "string",
        "enum": [
          "critical",
          "high",
          "medium",
          "low",
          "info"
        ]
      },
      "status": {
        "type": "string",
        "enum": [
          "new",
          "triaged",
          "in_remediation",
          "fixed",
          "verified",
          "closed",
          "risk_accepted",
          "false_positive"
        ]
      },
      "detected_on": {
        "type": "string",
        "format": "date",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
      },
      "due_on": {
        "type": [
          "string",
          "null"
        ],
        "format": "date",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
      },
      "owner_membership_id": {
        "type": [
          "string",
          "null"
        ],
        "format": "uuid"
      },
      "risk_id": {
        "type": [
          "string",
          "null"
        ],
        "format": "uuid"
      },
      "nonconformity_id": {
        "type": [
          "string",
          "null"
        ],
        "format": "uuid"
      },
      "fix_note": {
        "type": [
          "string",
          "null"
        ]
      },
      "fixed_on": {
        "type": [
          "string",
          "null"
        ],
        "format": "date",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
      },
      "verified_on": {
        "type": [
          "string",
          "null"
        ],
        "format": "date",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
      },
      "verification_note": {
        "type": [
          "string",
          "null"
        ]
      },
      "verified_by": {
        "type": [
          "string",
          "null"
        ],
        "format": "uuid"
      },
      "closed_on": {
        "type": [
          "string",
          "null"
        ],
        "format": "date",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
      },
      "acceptance_reason": {
        "type": [
          "string",
          "null"
        ]
      },
      "accepted_by": {
        "type": [
          "string",
          "null"
        ],
        "format": "uuid"
      },
      "accepted_on": {
        "type": [
          "string",
          "null"
        ],
        "format": "date",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
      },
      "acceptance_expires_on": {
        "type": [
          "string",
          "null"
        ],
        "format": "date",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
      },
      "false_positive_reason": {
        "type": [
          "string",
          "null"
        ]
      },
      "reopen_count": {
        "type": "integer"
      },
      "source_open": {
        "type": [
          "string",
          "null"
        ],
        "enum": [
          "open",
          "cleared",
          null
        ]
      },
      "source_seen_at": {
        "type": [
          "string",
          "null"
        ],
        "format": "date-time",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
      },
      "pentest_engagement_id": {
        "type": [
          "string",
          "null"
        ],
        "format": "uuid"
      },
      "pentest_scope_item_id": {
        "type": [
          "string",
          "null"
        ],
        "format": "uuid"
      },
      "cvss_version": {
        "type": [
          "string",
          "null"
        ],
        "enum": [
          "3.1",
          "4.0",
          null
        ]
      },
      "steps_to_reproduce": {
        "type": [
          "string",
          "null"
        ]
      },
      "impact": {
        "type": [
          "string",
          "null"
        ]
      },
      "recommendation": {
        "type": [
          "string",
          "null"
        ]
      },
      "finding_references": {
        "type": [
          "object",
          "array",
          "string",
          "number",
          "boolean",
          "null"
        ]
      },
      "reported_by": {
        "type": [
          "string",
          "null"
        ],
        "format": "uuid"
      },
      "retest_result": {
        "type": [
          "string",
          "null"
        ],
        "enum": [
          "pass",
          "fail",
          null
        ]
      },
      "retested_by": {
        "type": [
          "string",
          "null"
        ],
        "format": "uuid"
      },
      "retested_on": {
        "type": [
          "string",
          "null"
        ],
        "format": "date",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
      },
      "retest_note": {
        "type": [
          "string",
          "null"
        ]
      },
      "created_by": {
        "type": "string",
        "format": "uuid"
      },
      "created_at": {
        "type": "string",
        "format": "date-time",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
      },
      "updated_at": {
        "type": "string",
        "format": "date-time",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
      },
      "revision": {
        "type": "integer"
      }
    },
    "required": [
      "id",
      "organization_id",
      "vulnerability_key",
      "identifiers",
      "title",
      "description",
      "asset_kind",
      "asset_ref",
      "asset_key",
      "asset_name",
      "device_id",
      "system_id",
      "origin",
      "source_severity",
      "cvss_score",
      "cvss_vector",
      "severity",
      "status",
      "detected_on",
      "due_on",
      "owner_membership_id",
      "risk_id",
      "nonconformity_id",
      "fix_note",
      "fixed_on",
      "verified_on",
      "verification_note",
      "verified_by",
      "closed_on",
      "acceptance_reason",
      "accepted_by",
      "accepted_on",
      "acceptance_expires_on",
      "false_positive_reason",
      "reopen_count",
      "source_open",
      "source_seen_at",
      "pentest_engagement_id",
      "pentest_scope_item_id",
      "cvss_version",
      "steps_to_reproduce",
      "impact",
      "recommendation",
      "finding_references",
      "reported_by",
      "retest_result",
      "retested_by",
      "retested_on",
      "retest_note",
      "created_by",
      "created_at",
      "updated_at",
      "revision"
    ],
    "additionalProperties": false
  }
}
