{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://ostering.com/taxonomies/ostering-taxonomy-stix-extension.schema.json",
  "title": "ostering.com threat taxonomy properties for STIX 2.1",
  "description": "Property extension used by the ostering.com email infrastructure and Software Factory threat taxonomies.",
  "type": "object",
  "properties": {
    "extension_type": {
      "const": "property-extension"
    },
    "taxonomy": {
      "type": "string",
      "description": "Which taxonomy the object belongs to."
    },
    "reference": {
      "type": "string",
      "description": "The entry's stable reference, shared with the card game, e.g. DP·J or T2."
    },
    "group_code": {
      "type": "string"
    },
    "group_name": {
      "type": "string"
    },
    "stride": {
      "type": "array",
      "items": {
        "enum": [
          "S",
          "T",
          "R",
          "I",
          "D",
          "E"
        ]
      }
    },
    "stride_fit": {
      "enum": [
        "Clean",
        "Loose"
      ]
    },
    "capec_match": {
      "enum": [
        "Direct",
        "Partial",
        "None"
      ]
    },
    "cwe_match": {
      "enum": [
        "Direct",
        "Partial",
        "None"
      ],
      "description": "Rating for the entry's CWE list as a whole; see cwe_ids."
    },
    "capec_ids": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "CAPEC IDs in best-fit order; capec_match rates the list as a whole, and for Direct the first ID describes the threat."
    },
    "cwe_ids": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "CWE IDs in best-fit order; cwe_match rates the list as a whole, and for Direct the first ID names the flaw."
    },
    "seen_in": {
      "type": "string"
    },
    "mitigation_principle": {
      "type": "string"
    },
    "design_measures": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "extension_type",
    "taxonomy"
  ],
  "additionalProperties": false
}