Report schema
JSON Schema for --format json (and each line of --format jsonl), generated from the Report model by python scripts/gen_docs.py. Raw file.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/cpeoples/shorsighted/blob/main/docs/report.schema.json",
"$defs": {
"CertInfo": {
"properties": {
"position": {
"title": "Position",
"type": "string"
},
"subject": {
"title": "Subject",
"type": "string"
},
"issuer": {
"title": "Issuer",
"type": "string"
},
"serial": {
"title": "Serial",
"type": "string"
},
"sha256": {
"title": "Sha256",
"type": "string"
},
"key_type": {
"title": "Key Type",
"type": "string"
},
"key_size": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Key Size"
},
"curve": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Curve"
},
"key_oid": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Key Oid"
},
"signature_algorithm": {
"title": "Signature Algorithm",
"type": "string"
},
"signature_oid": {
"title": "Signature Oid",
"type": "string"
},
"signature_hash": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Signature Hash"
},
"ski": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Ski"
},
"aki": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Aki"
},
"not_before": {
"format": "date-time",
"title": "Not Before",
"type": "string"
},
"not_after": {
"format": "date-time",
"title": "Not After",
"type": "string"
},
"is_ca": {
"default": false,
"title": "Is Ca",
"type": "boolean"
},
"self_signed": {
"default": false,
"title": "Self Signed",
"type": "boolean"
},
"san": {
"items": {
"type": "string"
},
"title": "San",
"type": "array"
},
"from_trust_store": {
"default": false,
"title": "From Trust Store",
"type": "boolean"
}
},
"required": [
"position",
"subject",
"issuer",
"serial",
"sha256",
"key_type",
"signature_algorithm",
"signature_oid",
"not_before",
"not_after"
],
"title": "CertInfo",
"type": "object"
},
"ChainObservation": {
"properties": {
"ip": {
"title": "Ip",
"type": "string"
},
"leaf_sha256": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Leaf Sha256"
},
"leaf_not_after": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Leaf Not After"
},
"served": {
"default": 0,
"title": "Served",
"type": "integer"
},
"verified": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"title": "Verified"
},
"verify_error": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Verify Error"
},
"error": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Error"
}
},
"required": [
"ip"
],
"title": "ChainObservation",
"type": "object"
},
"DeadlineCategory": {
"enum": [
"leaf_lifetime",
"ca_key_algo",
"kex",
"signature_algo",
"policy"
],
"title": "DeadlineCategory",
"type": "string"
},
"KexProbe": {
"description": "Result of the raw ClientHello probe against one IP.",
"properties": {
"ip": {
"title": "Ip",
"type": "string"
},
"status": {
"$ref": "#/$defs/KexStatus"
},
"selected_group": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Selected Group"
},
"group_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Group Name"
},
"tls_version": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Tls Version"
},
"hello_retry": {
"default": false,
"title": "Hello Retry",
"type": "boolean"
},
"alert": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Alert"
},
"error": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Error"
},
"error_kind": {
"anyOf": [
{
"enum": [
"timeout",
"refused",
"reset",
"unreachable",
"closed",
"starttls_not_offered",
"starttls_rejected",
"starttls_protocol",
"starttls_closed"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Error Kind"
},
"attempts": {
"items": {
"additionalProperties": true,
"type": "object"
},
"title": "Attempts",
"type": "array"
},
"starttls_greeting": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Starttls Greeting"
},
"starttls_capabilities": {
"items": {
"type": "string"
},
"title": "Starttls Capabilities",
"type": "array"
}
},
"required": [
"ip",
"status"
],
"title": "KexProbe",
"type": "object"
},
"KexStatus": {
"enum": [
"pq_hybrid",
"legacy_draft_pq",
"classical_only",
"no_tls13",
"error"
],
"title": "KexStatus",
"type": "string"
},
"Kind": {
"enum": [
"fix",
"plan",
"note",
"pass"
],
"title": "Kind",
"type": "string"
},
"ProbeResult": {
"properties": {
"target": {
"$ref": "#/$defs/Target"
},
"status": {
"$ref": "#/$defs/ProbeStatus",
"default": "ok"
},
"error": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Error"
},
"ips": {
"items": {
"type": "string"
},
"title": "Ips",
"type": "array"
},
"kex": {
"items": {
"$ref": "#/$defs/KexProbe"
},
"title": "Kex",
"type": "array"
},
"ssh": {
"items": {
"$ref": "#/$defs/SshProbe"
},
"title": "Ssh",
"type": "array"
},
"chain": {
"items": {
"$ref": "#/$defs/CertInfo"
},
"title": "Chain",
"type": "array"
},
"chain_error": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Chain Error"
},
"chain_source": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Chain Source"
},
"chain_verified": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"title": "Chain Verified"
},
"chain_anchored": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"title": "Chain Anchored"
},
"verify_error": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Verify Error"
},
"hostname_match": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"title": "Hostname Match"
},
"tls_versions": {
"$ref": "#/$defs/TlsVersionSupport"
},
"sni_required": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"title": "Sni Required"
},
"starttls": {
"anyOf": [
{
"$ref": "#/$defs/StartTlsInfo"
},
{
"type": "null"
}
],
"default": null
},
"trust_store": {
"default": "bundled",
"title": "Trust Store",
"type": "string"
},
"duration_ms": {
"default": 0.0,
"title": "Duration Ms",
"type": "number"
},
"other_chains": {
"items": {
"$ref": "#/$defs/ChainObservation"
},
"title": "Other Chains",
"type": "array"
}
},
"required": [
"target"
],
"title": "ProbeResult",
"type": "object"
},
"ProbeStatus": {
"enum": [
"ok",
"dns_error",
"tls_error",
"timeout",
"skipped"
],
"title": "ProbeStatus",
"type": "string"
},
"Provenance": {
"description": "Where a target came from (argument, file line, AWS record...).",
"properties": {
"source": {
"title": "Source",
"type": "string"
},
"detail": {
"default": "",
"title": "Detail",
"type": "string"
}
},
"required": [
"source"
],
"title": "Provenance",
"type": "object"
},
"Remediation": {
"additionalProperties": false,
"properties": {
"kind": {
"$ref": "#/$defs/Kind"
},
"title": {
"title": "Title",
"type": "string"
},
"why": {
"default": "",
"title": "Why",
"type": "string"
},
"steps": {
"default": [],
"items": {
"type": "string"
},
"title": "Steps",
"type": "array"
},
"snippets": {
"additionalProperties": {
"type": "string"
},
"title": "Snippets",
"type": "object"
},
"references": {
"default": [],
"items": {
"type": "string"
},
"title": "References",
"type": "array"
},
"remediation": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Remediation"
},
"runbook": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Runbook"
}
},
"required": [
"kind",
"title"
],
"title": "Remediation",
"type": "object"
},
"ScoredFinding": {
"properties": {
"id": {
"title": "Id",
"type": "string"
},
"rule": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Rule"
},
"severity": {
"$ref": "#/$defs/Severity"
},
"target": {
"title": "Target",
"type": "string"
},
"title": {
"title": "Title",
"type": "string"
},
"detail": {
"default": "",
"title": "Detail",
"type": "string"
},
"evidence": {
"additionalProperties": true,
"title": "Evidence",
"type": "object"
},
"deadline_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Deadline Id"
},
"applies_to": {
"anyOf": [
{
"$ref": "#/$defs/DeadlineCategory"
},
{
"type": "null"
}
],
"default": null
},
"remediation": {
"title": "Remediation",
"type": "string"
},
"passed": {
"default": false,
"title": "Passed",
"type": "boolean"
},
"max_severity": {
"anyOf": [
{
"$ref": "#/$defs/Severity"
},
{
"type": "null"
}
],
"default": null
},
"tags": {
"items": {
"type": "string"
},
"title": "Tags",
"type": "array"
},
"owner": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Owner"
},
"base_severity": {
"$ref": "#/$defs/Severity"
},
"deadline_date": {
"anyOf": [
{
"format": "date",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Deadline Date"
},
"days_until": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Days Until"
},
"deadline_verified": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"title": "Deadline Verified"
},
"deadline_source_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Deadline Source Url"
},
"runbook": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Runbook"
}
},
"required": [
"id",
"severity",
"target",
"title",
"remediation",
"base_severity"
],
"title": "ScoredFinding",
"type": "object"
},
"Severity": {
"enum": [
"info",
"low",
"medium",
"high",
"critical"
],
"title": "Severity",
"type": "string"
},
"SshProbe": {
"description": "Result of reading an SSH server's banner and KEXINIT on one IP.",
"properties": {
"ip": {
"title": "Ip",
"type": "string"
},
"banner": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Banner"
},
"software": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Software"
},
"kex_algorithms": {
"items": {
"type": "string"
},
"title": "Kex Algorithms",
"type": "array"
},
"host_key_algorithms": {
"items": {
"type": "string"
},
"title": "Host Key Algorithms",
"type": "array"
},
"ciphers": {
"items": {
"type": "string"
},
"title": "Ciphers",
"type": "array"
},
"macs": {
"items": {
"type": "string"
},
"title": "Macs",
"type": "array"
},
"error": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Error"
},
"error_kind": {
"anyOf": [
{
"enum": [
"timeout",
"refused",
"reset",
"unreachable",
"closed",
"starttls_not_offered",
"starttls_rejected",
"starttls_protocol",
"starttls_closed"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Error Kind"
}
},
"required": [
"ip"
],
"title": "SshProbe",
"type": "object"
},
"StartTlsInfo": {
"description": "What the plaintext side of a STARTTLS service said before the upgrade.",
"properties": {
"protocol": {
"title": "Protocol",
"type": "string"
},
"offered": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"title": "Offered"
},
"greeting": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Greeting"
},
"software": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Software"
},
"capabilities": {
"items": {
"type": "string"
},
"title": "Capabilities",
"type": "array"
},
"error": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Error"
}
},
"required": [
"protocol"
],
"title": "StartTlsInfo",
"type": "object"
},
"Target": {
"properties": {
"host": {
"title": "Host",
"type": "string"
},
"port": {
"default": 443,
"title": "Port",
"type": "integer"
},
"protocol": {
"default": "tls",
"title": "Protocol",
"type": "string"
},
"sni": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Sni"
},
"tags": {
"items": {
"type": "string"
},
"title": "Tags",
"type": "array"
},
"owner": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Owner"
},
"provenance": {
"items": {
"$ref": "#/$defs/Provenance"
},
"title": "Provenance",
"type": "array"
},
"probe_skipped": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Probe Skipped"
},
"resources": {
"items": {
"type": "string"
},
"title": "Resources",
"type": "array"
}
},
"required": [
"host"
],
"title": "Target",
"type": "object"
},
"TargetSummary": {
"properties": {
"target": {
"title": "Target",
"type": "string"
},
"status": {
"title": "Status",
"type": "string"
},
"grade": {
"title": "Grade",
"type": "string"
},
"counts": {
"additionalProperties": {
"type": "integer"
},
"title": "Counts",
"type": "object"
},
"nearest_deadline": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Nearest Deadline"
},
"nearest_deadline_date": {
"anyOf": [
{
"format": "date",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Nearest Deadline Date"
},
"nearest_deadline_days": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Nearest Deadline Days"
},
"tags": {
"items": {
"type": "string"
},
"title": "Tags",
"type": "array"
},
"owner": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Owner"
},
"duration_ms": {
"default": 0.0,
"title": "Duration Ms",
"type": "number"
},
"error": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Error"
}
},
"required": [
"target",
"status",
"grade"
],
"title": "TargetSummary",
"type": "object"
},
"TlsVersionSupport": {
"properties": {
"tls13": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"title": "Tls13"
},
"tls12": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"title": "Tls12"
},
"tls11": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"title": "Tls11"
},
"tls10": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"title": "Tls10"
},
"ciphers": {
"additionalProperties": {
"type": "string"
},
"title": "Ciphers",
"type": "object"
},
"weak_accepted": {
"additionalProperties": {
"type": "string"
},
"title": "Weak Accepted",
"type": "object"
}
},
"title": "TlsVersionSupport",
"type": "object"
}
},
"properties": {
"schema_version": {
"default": 1,
"title": "Schema Version",
"type": "integer"
},
"tool_version": {
"title": "Tool Version",
"type": "string"
},
"generated_at": {
"format": "date-time",
"title": "Generated At",
"type": "string"
},
"trust_store": {
"default": "bundled",
"title": "Trust Store",
"type": "string"
},
"deadlines_source": {
"items": {
"type": "string"
},
"title": "Deadlines Source",
"type": "array"
},
"targets": {
"items": {
"$ref": "#/$defs/TargetSummary"
},
"title": "Targets",
"type": "array"
},
"findings": {
"items": {
"$ref": "#/$defs/ScoredFinding"
},
"title": "Findings",
"type": "array"
},
"totals": {
"additionalProperties": {
"type": "integer"
},
"title": "Totals",
"type": "object"
},
"severity_counts": {
"additionalProperties": {
"type": "integer"
},
"title": "Severity Counts",
"type": "object"
},
"warnings": {
"items": {
"type": "string"
},
"title": "Warnings",
"type": "array"
},
"slowest": {
"items": {
"additionalProperties": true,
"type": "object"
},
"title": "Slowest",
"type": "array"
},
"dns_failures": {
"items": {
"type": "string"
},
"title": "Dns Failures",
"type": "array"
},
"tls_failures": {
"items": {
"type": "string"
},
"title": "Tls Failures",
"type": "array"
},
"probes": {
"items": {
"$ref": "#/$defs/ProbeResult"
},
"title": "Probes",
"type": "array"
},
"remediations": {
"additionalProperties": {
"$ref": "#/$defs/Remediation"
},
"title": "Remediations",
"type": "object"
}
},
"required": [
"tool_version",
"generated_at"
],
"title": "Report",
"type": "object"
}