{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/palo-alto-networks/main/json-schema/palo-alto-networks-scan-report-schema.json",
  "title": "ScanReport",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/palo-alto-networks-scans-api-openapi.yml#/components/schemas/ScanReport",
  "type": "object",
  "properties": {
    "scan_id": {
      "type": "string",
      "description": "Unique identifier of the scan."
    },
    "target_id": {
      "type": "string",
      "description": "ID of the assessed target."
    },
    "target_name": {
      "type": "string",
      "description": "Display name of the assessed target."
    },
    "overall_risk_score": {
      "type": "number",
      "format": "float",
      "description": "Overall vulnerability risk score from 0.0 (no risk) to 10.0 (critical).",
      "minimum": 0.0,
      "maximum": 10.0
    },
    "total_attacks_executed": {
      "type": "integer",
      "description": "Total number of attack probes executed."
    },
    "vulnerabilities_found": {
      "type": "integer",
      "description": "Total number of vulnerabilities discovered."
    },
    "category_summaries": {
      "type": "array",
      "description": "Vulnerability summary per attack category.",
      "items": {
        "type": "object",
        "properties": {
          "category_id": {
            "type": "string"
          },
          "category_name": {
            "type": "string"
          },
          "attacks_executed": {
            "type": "integer"
          },
          "vulnerabilities_found": {
            "type": "integer"
          },
          "risk_score": {
            "type": "number",
            "format": "float"
          }
        }
      }
    },
    "findings": {
      "type": "array",
      "description": "Individual vulnerability findings.",
      "items": {
        "$ref": "#/$defs/VulnerabilityFinding"
      }
    },
    "generated_at": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp when the report was generated."
    }
  },
  "$defs": {
    "VulnerabilityFinding": {
      "type": "object",
      "properties": {
        "finding_id": {
          "type": "string",
          "description": "Unique identifier of the finding."
        },
        "category_id": {
          "type": "string",
          "description": "Attack category identifier."
        },
        "category_name": {
          "type": "string",
          "description": "Human-readable attack category name."
        },
        "severity": {
          "type": "string",
          "enum": [
            "informational",
            "low",
            "medium",
            "high",
            "critical"
          ],
          "description": "Severity level of the vulnerability."
        },
        "title": {
          "type": "string",
          "description": "Brief title describing the vulnerability."
        },
        "description": {
          "type": "string",
          "description": "Detailed description of the vulnerability and its impact."
        },
        "attack_prompt": {
          "type": "string",
          "description": "The adversarial prompt that revealed the vulnerability."
        },
        "model_response": {
          "type": "string",
          "description": "The AI model's response to the attack prompt, demonstrating the vulnerability. May be truncated."
        },
        "remediation": {
          "type": "string",
          "description": "Recommended steps to mitigate the vulnerability."
        }
      }
    }
  }
}