Skip to content

Commit

Permalink
Merge branch 'oasis-open:main' into fix-pap-schema
Browse files Browse the repository at this point in the history
  • Loading branch information
ghackford-mitre authored Mar 14, 2024
2 parents 134c2b0 + 9e57aa0 commit 146fcae
Show file tree
Hide file tree
Showing 133 changed files with 3,099 additions and 179 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"name": "Test Company",
"description": "a company",
"identity_class": "organization",
"contact_information": "[email protected]",
"extensions": {
"extension-definition--66e2492a-bbd3-4be6-88f5-cc91a017a498": {
"extension_type": "property-extension",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,152 +1,177 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/oasis-open/cti-stix-common-objects/main/extension-definition-specifications/identity-66e/extension-definition--66e2492a-bbd3-4be6-88f5-cc91a017a498.json",
"title": "Identity Contact Information",
"description": "This extension allows contact information to be included in identities in a manner that allows them to be machine parsable.",
"type": "object",
"required": [
"extension_type"
],
"minProperties": 2,
"additionalProperties": false,
"properties": {
"extension_type": {
"type": "string",
"description": "Defined by STIX 2.1 extension definition rules from 'extension-type-enum'.",
"enum": [
"property-extension"
]
},
"contact_numbers": {
"type": "array",
"description": "A list of contact number objects that contain the phone and fax numbers.",
"minItems": 1,
"additionalProperties": false,
"items": {
"type": "object",
"required": ["contact_number", "contact_number_type"],
"properties": {
"contact_number": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/oasis-open/cti-stix-common-objects/main/extension-definition-specifications/identity-66e/extension-definition--66e2492a-bbd3-4be6-88f5-cc91a017a498.json",
"title": "Identity Contact Information",
"description": "This extension allows contact information to be included in identities in a manner that allows them to be machine parsable.",
"type": "object",
"allOf": [
{
"$ref": "https://raw.githubusercontent.com/oasis-open/cti-stix2-json-schemas/stix2.1/schemas/sdos/identity.json"
},
{
"properties": {
"extensions": {
"additionalProperties": true,
"properties": {
"extension-definition--66e2492a-bbd3-4be6-88f5-cc91a017a498": {
"type": "object",
"additionalProperties": false,
"required": [
"extension_type"
],
"properties": {
"extension_type": {
"type": "string",
"description": "Defined by STIX 2.1 extension definition rules from 'extension-type-enum'.",
"enum": [
"property-extension"
]
},
"contact_numbers": {
"type": "array",
"description": "A list of contact number objects that contain the phone and fax numbers.",
"minItems": 1,
"additionalProperties": false,
"items": {
"type": "object",
"required": [
"contact_number",
"contact_number_type"
],
"properties": {
"contact_number": {
"type": "string",
"description": "The contact number. Typically a phone number."
},
"classified": {
"type": "boolean",
"default": false,
"description": "Can be used to reach the individual on a classified phone."
},
"contact_number_type": {
},
"classified": {
"type": "boolean",
"default": false,
"description": "Can be used to reach the individual on a classified phone."
},
"contact_number_type": {
"type": "string",
"description": "The type of number this is used for. This SHOULD be drawn from contact-number-ov."
},
"description": {
},
"description": {
"type": "string",
"description": "An additional description for the phone number and its purpose"
}
}
}
}
},
"email_addresses": {
"type": "array",
"description": "A list of contact number objects that contain the phone and fax numbers.",
"minItems": 1,
"additionalProperties": false,
"items": {
"type": "object",
"required": ["email_address_ref", "digital_contact_type"],
"properties": {
"email_address_ref": {
}
},
"email_addresses": {
"type": "array",
"description": "A list of contact number objects that contain the phone and fax numbers.",
"minItems": 1,
"additionalProperties": false,
"items": {
"type": "object",
"properties": {
"email_address_ref": {
"type": "string",
"description": "A reference to the email address itself",
"$ref": "https://raw.githubusercontent.com/oasis-open/cti-stix2-json-schemas/stix2.1/schemas/common/identifier.json",
"pattern": "^email-addr--"
},
"classified": {
"type": "boolean",
"default": false,
"description": "Can be used to reach the individual on a classified network."
},
"digital_contact_type": {
},
"classified": {
"type": "boolean",
"default": false,
"description": "Can be used to reach the individual on a classified network."
},
"digital_contact_type": {
"type": "string",
"description": "The type of email that address is used for. This SHOULD be drawn from digital-contact-ov."
},
"description": {
},
"description": {
"type": "string",
"description": "An additional description for the email and its purpose"
}
}
}
},
"social_media_accounts": {
"type": "array",
"description": "A list of contact number objects that contain the phone and fax numbers.",
"minItems": 1,
"additionalProperties": false,
"items": {
"type": "object",
"required": ["user_account_ref", "digital_contact_type"],
"properties": {
"user_account_ref": {
}
},
"required": [
"email_address_ref",
"digital_contact_type"
]
}
},
"social_media_accounts": {
"type": "array",
"description": "A list of contact number objects that contain the phone and fax numbers.",
"minItems": 1,
"additionalProperties": false,
"items": {
"type": "object",
"required": [
"user_account_ref",
"digital_contact_type"
],
"properties": {
"user_account_ref": {
"type": "string",
"description": "A reference to the social media account itself",
"$ref": "https://raw.githubusercontent.com/oasis-open/cti-stix2-json-schemas/stix2.1/schemas/sdos/identity.json",
"$ref": "https://raw.githubusercontent.com/oasis-open/cti-stix2-json-schemas/stix2.1/schemas/common/identifier.json",
"pattern": "^user-account--"
},
"classified": {
"type": "boolean",
"default": false,
"description": "Can be used to reach the individual on a classified network."
},
"digital_contact_type": {
},
"classified": {
"type": "boolean",
"default": false,
"description": "Can be used to reach the individual on a classified network."
},
"digital_contact_type": {
"type": "string",
"description": "The type of social media account that relates to. This SHOULD be drawn from digital-contact-ov."
},
"description": {
},
"description": {
"type": "string",
"description": "An additional description for the social media account and its purpose"
}
}
}
},
"first_name": {
"type": "string",
"description": "The first name of an individual"
},
"last_name": {
"type": "string",
"description": "The last name of an individual"
},
"middle_name": {
"type": "string",
"description": "The middle name of an individual"
},
"prefix": {
"type": "string",
"description": "A prefix or title for an individual such as “Mr” or “Ms”"
},
"suffix": {
"type": "string",
"description": "A suffix for the individual such as “PhD”"
}
}
}
},
"first_name": {
"type": "string",
"description": "The first name of an individual"
},
"last_name": {
"type": "string",
"description": "The last name of an individual"
},
"middle_name": {
"type": "string",
"description": "The middle name of an individual"
},
"prefix": {
"type": "string",
"description": "A prefix or title for an individual such as “Mr” or “Ms”"
},
"suffix": {
"type": "string",
"description": "A suffix for the individual such as “PhD”"
}
}
}
}
],
"definitions": {
"contact-number-ov": {
"type": "string",
"enum": [
"personal-landline-phone",
"personal-mobile-phone",
"personal-fax",
"work-phone",
"work-fax"
]
},
"defs": {
"contact-number-ov": {
"type": "string",
"enum": [
"personal-landline-phone",
"personal-mobile-phone",
"personal-fax",
"work-phone",
"work-fax"
]
},
"digital-number-ov": {
"type": "string",
"enum": [
"organizational",
"personal",
"work"
]
}
"digital-number-ov": {
"type": "string",
"enum": [
"organizational",
"personal",
"work"
]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"purpose": "mission-id",
"extensions": {
"extension-definition--8b1aa84c-5532-4c69-a8e7-b6170facfd3d": {
"extension_type": "new-sco"
}
"extension_type": "new-sco"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"$id": "https://raw.githubusercontent.com/oasis-open/cti-stix-common-objects/main/extension-definition-specifications/observed-string-8b1/extension-definition--8b1aa84c-5532-4c69-a8e7-b6170facfd3d.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "observed-string-extension-schema",
"description": "This is the wrapper for the observed-strings extension",
"type": "object",
"allOf": [
{
"$ref": "http://raw.githubusercontent.com/oasis-open/cti-stix2-json-schemas/stix2.1/schemas/common/cyber-observerable-core.json"
"$ref": "https://raw.githubusercontent.com/oasis-open/cti-stix2-json-schemas/stix2.1/schemas/common/cyber-observable-core.json"
},
{
"properties": {
Expand All @@ -15,14 +15,33 @@
"properties": {
"extension-definition--8b1aa84c-5532-4c69-a8e7-b6170facfd3d": {
"type": "object",
"$ref": "observed-string.json"
}
}
}
"additionalProperties": false,
"properties": {
"extension_type": {
"type": "string",
"const": "new-sco"
}
},
"required": [
"extension_type"
]
}
}
},
"required": [
"extensions"
]
"purpose": {
"type": "string",
"description": "What this string is used for"
},
"value": {
"type": "string",
"description": "The Unicode encoded value of the string. It SHOULD come from string-purpose-ov"
},
"required": [
"extensions",
"purpose",
"value"
]
}
}
]
}
Expand Down
Loading

0 comments on commit 146fcae

Please sign in to comment.