{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-xdr/json-schema/cisco-xdr-enveloped-query-ocsfbundle-schema.json",
  "title": "EnvelopedQueryOCSFBundle",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-xdr-query-api-openapi.yml#/components/schemas/EnvelopedQueryOCSFBundle",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/EnvelopedQueryOcsfBundleData"
      }
    },
    "errors": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ErrorMessage"
      }
    }
  },
  "additionalProperties": false,
  "$defs": {
    "EnvelopedQueryOcsfBundleData": {
      "type": "object",
      "properties": {
        "module": {
          "type": "string"
        },
        "module_instance_id": {
          "type": "string"
        },
        "module_type_id": {
          "type": "string"
        },
        "module_instance_state": {
          "type": "string"
        },
        "start_time": {
          "type": "integer",
          "format": "int64"
        },
        "end_time": {
          "type": "integer",
          "format": "int64"
        },
        "count": {
          "type": "integer",
          "format": "int64"
        },
        "events": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/EnvelopedQueryOcsfBundleDataEvents"
          }
        }
      },
      "additionalProperties": false,
      "required": [
        "module",
        "module_instance_id",
        "module_type_id",
        "start_time",
        "end_time",
        "count",
        "events"
      ]
    },
    "EnvelopedQueryOcsfBundleDataEvents": {
      "description": "Security Finding events describe findings, detections, anomalies, alerts and/or actions performed by security products",
      "type": "object",
      "properties": {
        "severity_id": {
          "description": "<p>The normalized identifier of the event severity.</p>The normalized severity is a measurement the effort and expense required to manage and resolve an event or incident. Smaller numerical values represent lower impact events, and larger numerical values represent higher impact events.",
          "type": "integer",
          "format": "int64"
        },
        "category_uid": {
          "description": "The category unique identifier of the event.",
          "type": "integer",
          "format": "int64"
        },
        "status_id": {
          "description": "The normalized identifier of the event status.",
          "type": "integer",
          "format": "int64"
        },
        "data_sources": {
          "description": "The data sources for the finding.",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "api": {
          "$ref": "#/$defs/EnvelopedQueryOcsfBundleDataEventsApi"
        },
        "unmapped": {
          "$ref": "#/$defs/EnvelopedQueryOcsfBundleDataEventsUnmapped"
        },
        "class_name": {
          "description": "The event class name, as defined by class_uid value: <code>Cisco Security Finding</code>.",
          "type": "string"
        },
        "type_uid": {
          "description": "The event type ID. It identifies the event's semantics and structure. The value is calculated by the logging system as: <code>class_uid * 100 + activity_id</code>.",
          "type": "integer",
          "format": "int64"
        },
        "start_time_dt": {
          "description": "The start time of a time period, or the time of the least recent event included in the aggregate event.",
          "type": "string"
        },
        "impact_score": {
          "description": "The impact of the finding, valid range 0-100.",
          "type": "integer",
          "format": "int64"
        },
        "impact_id": {
          "description": "The normalized impact of the finding.",
          "type": "integer",
          "format": "int64"
        },
        "enrichments": {
          "description": "The additional information from an external data source, which is associated with the event. For example add location information for the IP address in the DNS answers:</p><code>[{\"name\": \"answers.ip\", \"value\": \"92.24.47.250\", \"type\": \"location\", \"data\": {\"city\": \"Socotra\", \"continent\": \"Asia\", \"coordinates\": [-25.4153, 17.0743], \"country\": \"YE\", \"desc\": \"Yemen\"}}]</code>",
          "type": "array",
          "items": {
            "$ref": "#/$defs/EnvelopedQueryOcsfBundleDataEventsEnrichments"
          }
        },
        "nist": {
          "description": "The NIST Cybersecurity Framework recommendations for managing the cybersecurity risk.",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "cloud": {
          "$ref": "#/$defs/EnvelopedQueryOcsfBundleDataEventsCloud"
        },
        "time": {
          "description": "The normalized event occurrence time.",
          "type": "integer",
          "format": "int64"
        },
        "evidence": {
          "description": "The data the finding exposes to the analyst."
        },
        "process": {
          "$ref": "#/$defs/EnvelopedQueryOcsfBundleDataEventsProcess"
        },
        "start_time": {
          "description": "The start time of a time period, or the time of the least recent event included in the aggregate event.",
          "type": "integer",
          "format": "int64"
        },
        "risk_level": {
          "description": "The risk level, normalized to the caption of the risk_level_id value. In the case of 'Other', it is defined by the event source.",
          "type": "string"
        },
        "observables": {
          "description": "The observables associated with the event.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/EnvelopedQueryOcsfBundleDataEventsObservables"
          }
        },
        "risk_score": {
          "description": "The risk score as reported by the event source.",
          "type": "integer",
          "format": "int64"
        },
        "time_dt": {
          "description": "The normalized event occurrence time.",
          "type": "string"
        },
        "dispositions": {
          "description": "A list of actions taken by the security product and their status code that represents the failure reason",
          "type": "array",
          "items": {
            "$ref": "#/$defs/EnvelopedQueryOcsfBundleDataEventsDispositions"
          }
        },
        "duration": {
          "description": "The event duration or aggregate time, the amount of time the event covers from <code>start_time</code> to <code>end_time</code> in milliseconds.",
          "type": "integer",
          "format": "int64"
        },
        "state": {
          "description": "The normalized state of a security finding.",
          "type": "string"
        },
        "class_uid": {
          "description": "The unique identifier of a class. A Class describes the attributes available in an event.",
          "type": "integer",
          "format": "int64"
        },
        "kill_chain": {
          "description": "The <a target='_blank' href='https://www.lockheedmartin.com/en-us/capabilities/cyber/cyber-kill-chain.html'>Cyber Kill Chain®</a>.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/EnvelopedQueryOcsfBundleDataEventsKillChain"
          }
        },
        "disposition": {
          "description": "The event disposition name, normalized to the caption of the disposition_id value. In the case of 'Other', it is defined by the event source.",
          "type": "string"
        },
        "end_time": {
          "description": "The end time of a time period, or the time of the most recent event included in the aggregate event.",
          "type": "integer",
          "format": "int64"
        },
        "category_name": {
          "description": "The event category name, as defined by category_uid value: <code>Findings</code>.",
          "type": "string"
        },
        "analytic": {
          "$ref": "#/$defs/EnvelopedQueryOcsfBundleDataEventsAnalytic"
        },
        "activity_name": {
          "description": "The event activity name, as defined by the activity_id.",
          "type": "string"
        },
        "confidence_score": {
          "description": "The confidence score as reported by the event source.",
          "type": "integer",
          "format": "int64"
        },
        "timezone_offset": {
          "description": "The number of minutes that the reported event <code>time</code> is ahead or behind UTC, in the range -1,080 to +1,080.",
          "type": "integer",
          "format": "int64"
        },
        "status": {
          "description": "The event status, normalized to the caption of the status_id value. In the case of 'Other', it is defined by the event source.",
          "type": "string"
        },
        "count": {
          "description": "The number of times that events in the same logical group occurred during the event <strong>Start Time</strong> to <strong>End Time</strong> period.",
          "type": "integer",
          "format": "int64"
        },
        "severity": {
          "description": "The event severity, normalized to the caption of the severity_id value. In the case of 'Other', it is defined by the event source.",
          "type": "string"
        },
        "cis_csc": {
          "description": "The CIS Critical Security Controls is a list of top 20 actions and practices an organization’s security team can take on such that cyber attacks or malware, are minimized and prevented.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/EnvelopedQueryOcsfBundleDataEventsCisCsc"
          }
        },
        "status_detail": {
          "description": "The status details contains additional information about the event outcome.",
          "type": "string"
        },
        "end_time_dt": {
          "description": "The end time of a time period, or the time of the most recent event included in the aggregate event.",
          "type": "string"
        },
        "device": {
          "$ref": "#/$defs/EnvelopedQueryOcsfBundleDataEventsDevice"
        },
        "status_code": {
          "description": "The event status code, as reported by the event source.<br /><br />For example, in a Windows Failed Authentication event, this would be the value of 'Failure Code', e.g. 0x18.",
          "type": "string"
        },
        "attacks": {
          "description": "The attack object describes the technique and associated tactics as defined by <a target='_blank' href='https://attack.mitre.org/wiki/ATT&CK_Matrix'>ATT&CK Matrix<sup>TM</sup></a>.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/EnvelopedQueryOcsfBundleDataEventsAttacks"
          }
        },
        "activities": {
          "$ref": "#/$defs/EnvelopedQueryOcsfBundleDataEventsActivities"
        },
        "disposition_id": {
          "description": "When security issues, such as malware or policy violations, are detected and possibly corrected, then <code>disposition_id</code> describes one ore more successful actions taken by the security product",
          "type": "integer",
          "format": "int64"
        },
        "finding": {
          "$ref": "#/$defs/EnvelopedQueryOcsfBundleDataEventsFinding"
        },
        "raw_data": {
          "description": "The event data as received from the event source.",
          "type": "string"
        },
        "confidence": {
          "description": "The confidence, normalized to the caption of the confidence_id value. In the case of 'Other', it is defined by the event source.",
          "type": "string"
        },
        "activity_id": {
          "description": "The normalized identifier of the activity that triggered the event.",
          "type": "integer",
          "format": "int64"
        },
        "resources": {
          "description": "Describes details about resources that were affected by the activity/event.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/EnvelopedQueryOcsfBundleDataEventsResources"
          }
        },
        "type_name": {
          "description": "The event type name, as defined by the type_uid.",
          "type": "string"
        },
        "confidence_id": {
          "description": "The normalized confidence refers to the accuracy of the rule that created the finding. A rule with a low confidence means that the finding scope is wide and may create finding reports that may not be malicious in nature.",
          "type": "integer",
          "format": "int64"
        },
        "impact": {
          "description": "The impact , normalized to the caption of the impact_id value. In the case of 'Other', it is defined by the event source.",
          "type": "string"
        },
        "metadata": {
          "$ref": "#/$defs/EnvelopedQueryOcsfBundleDataEventsMetadata"
        },
        "compliance": {
          "$ref": "#/$defs/EnvelopedQueryOcsfBundleDataEventsCompliance"
        },
        "message": {
          "description": "The description of the event, as defined by the event source.",
          "type": "string"
        },
        "vulnerabilities": {
          "description": "This object describes vulnerabilities reported in a security finding.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/EnvelopedQueryOcsfBundleDataEventsVulnerabilities"
          }
        },
        "malware": {
          "description": "The list of malware identified by a finding.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/EnvelopedQueryOcsfBundleDataEventsMalware"
          }
        },
        "actor": {
          "$ref": "#/$defs/EnvelopedQueryOcsfBundleDataEventsActor"
        },
        "state_id": {
          "description": "The normalized state identifier of a security finding.",
          "type": "integer",
          "format": "int64"
        },
        "risk_level_id": {
          "description": "The normalized risk level id.",
          "type": "integer",
          "format": "int64"
        }
      },
      "additionalProperties": false,
      "required": [
        "severity_id",
        "category_uid",
        "type_uid",
        "time",
        "class_uid",
        "disposition_id",
        "finding",
        "activity_id",
        "metadata",
        "state_id"
      ]
    },
    "EnvelopedQueryOcsfBundleDataEventsActivities": {
      "description": "Activities",
      "type": "object",
      "additionalProperties": {}
    },
    "EnvelopedQueryOcsfBundleDataEventsActor": {
      "description": "The actor object describes details about the user/role/process that was the source of the activity.",
      "type": "object",
      "additionalProperties": {}
    },
    "EnvelopedQueryOcsfBundleDataEventsAnalytic": {
      "description": "The analytic technique used to create the finding or detection",
      "type": "object",
      "additionalProperties": {}
    },
    "EnvelopedQueryOcsfBundleDataEventsApi": {
      "description": "Describes details about a typical API (Application Programming Interface) call.",
      "type": "object",
      "additionalProperties": {}
    },
    "EnvelopedQueryOcsfBundleDataEventsAttacks": {
      "type": "object",
      "additionalProperties": {}
    },
    "EnvelopedQueryOcsfBundleDataEventsCisCsc": {
      "type": "object",
      "additionalProperties": {}
    },
    "EnvelopedQueryOcsfBundleDataEventsCloud": {
      "description": "Describes details about the Cloud environment where the event was originally created or logged.",
      "type": "object",
      "additionalProperties": {}
    },
    "EnvelopedQueryOcsfBundleDataEventsCompliance": {
      "description": "The compliance object provides context to compliance findings (e.g., a check against a specific regulatory or best practice framework such as CIS or NIST) and contains compliance related details.",
      "type": "object",
      "additionalProperties": {}
    },
    "EnvelopedQueryOcsfBundleDataEventsDevice": {
      "description": "An addressable device, computer system or host.",
      "type": "object",
      "additionalProperties": {}
    },
    "EnvelopedQueryOcsfBundleDataEventsDispositions": {
      "type": "object",
      "additionalProperties": {}
    },
    "EnvelopedQueryOcsfBundleDataEventsEnrichments": {
      "type": "object",
      "additionalProperties": {}
    },
    "EnvelopedQueryOcsfBundleDataEventsFinding": {
      "description": "Finding object provides details related to a finding generated by security tool",
      "type": "object",
      "additionalProperties": {}
    },
    "EnvelopedQueryOcsfBundleDataEventsKillChain": {
      "type": "object",
      "additionalProperties": {}
    },
    "EnvelopedQueryOcsfBundleDataEventsMalware": {
      "type": "object",
      "additionalProperties": {}
    },
    "EnvelopedQueryOcsfBundleDataEventsMetadata": {
      "description": "The metadata associated with the event.",
      "type": "object",
      "additionalProperties": {}
    },
    "EnvelopedQueryOcsfBundleDataEventsObservables": {
      "type": "object",
      "additionalProperties": {}
    },
    "EnvelopedQueryOcsfBundleDataEventsProcess": {
      "description": "The process object.",
      "type": "object",
      "additionalProperties": {}
    },
    "EnvelopedQueryOcsfBundleDataEventsResources": {
      "type": "object",
      "additionalProperties": {}
    },
    "EnvelopedQueryOcsfBundleDataEventsUnmapped": {
      "description": "The attributes that are not mapped to the event schema. The names and values of those attributes are specific to the event source.",
      "type": "object",
      "additionalProperties": {}
    },
    "EnvelopedQueryOcsfBundleDataEventsVulnerabilities": {
      "type": "object",
      "additionalProperties": {}
    },
    "ErrorMessage": {
      "type": "object",
      "properties": {
        "module_instance_id": {
          "type": "string"
        },
        "module_type_id": {
          "type": "string"
        },
        "module_instance_state": {
          "type": "string"
        },
        "code": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "fatal",
            "warning",
            "error"
          ]
        },
        "module": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "required": [
        "module_instance_id",
        "module_type_id",
        "code",
        "message",
        "type"
      ]
    }
  }
}