{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/onyphe/json-schema/onyphe-datascan-document-schema.json",
  "title": "DatascanDocument",
  "description": "**datascan data model**, shared by `datascan`, `vulnscan` and `riskscan`\n(ASM). Flat, with application sub-objects under `app`. `cve` and `cpe` are\nroot fields. `riskscan` documents carry `risk::*` tags; `vulnscan` documents\ncarry a verdict tag. `additionalProperties` is true.\n",
  "x-generated": "2026-11-16",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/onyphe-openapi.yml#/components/schemas/DatascanDocument",
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "@category": {
      "type": "string",
      "enum": [
        "datascan",
        "vulnscan",
        "riskscan"
      ]
    },
    "@timestamp": {
      "type": "string",
      "format": "date-time"
    },
    "seen_date": {
      "type": "string",
      "format": "date"
    },
    "ip": {
      "type": "string"
    },
    "ipv6": {
      "type": "string"
    },
    "port": {
      "type": "integer"
    },
    "transport": {
      "type": "string"
    },
    "protocol": {
      "type": "string"
    },
    "tls": {
      "type": "string",
      "enum": [
        "true",
        "false"
      ],
      "description": "String, not a JSON boolean."
    },
    "status": {
      "type": "integer",
      "description": "Application status."
    },
    "hostname": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Deduplicated hostnames from DNS and certificates."
    },
    "domain": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "url": {
      "type": "string"
    },
    "asn": {
      "type": "string"
    },
    "organization": {
      "type": "string"
    },
    "country": {
      "type": "string"
    },
    "subnet": {
      "type": "string"
    },
    "product": {
      "type": "string"
    },
    "productvendor": {
      "type": "string"
    },
    "productversion": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "cpe": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "cpecount": {
      "type": "integer"
    },
    "cve": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "CVE identifiers detected on the service (vulnscan; propagated to riskscan/datascan)."
    },
    "cvecount": {
      "type": "integer"
    },
    "tag": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Examples: `risk::exposeddatabase`, `risk::criticalcve` (riskscan);\n`vulnerable`, `notvulnerable`, `maybevulnerable`, `unknownvulnerable`,\n`vulnerableversion`, `notvulnerableversion`, `maybevulnerableversion`,\n`partialversion`, `unknownversion`, `version` (vulnscan);\n`cisa::kev`, `onyphe::kev`, `anssi::top10`, `nsa::top25`, `log4shell`;\n`open` (unauthenticated access).\n"
    },
    "data": {
      "type": "string",
      "description": "Raw response, capped at 16384 bytes."
    },
    "device": {
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "class": {
          "type": "string"
        },
        "product": {
          "type": "string"
        },
        "productvendor": {
          "type": "string"
        },
        "productversion": {
          "type": "string"
        }
      }
    },
    "app": {
      "type": "object",
      "additionalProperties": true,
      "description": "Protocol sub-objects such as `app.http`, `app.smb`."
    },
    "trackquery": {
      "type": "string"
    }
  }
}