Skip to content

Commit

Permalink
update to 2020-12, use relative paths for
Browse files Browse the repository at this point in the history
  • Loading branch information
rpiazza committed Dec 6, 2024
1 parent 03ef48f commit 2b2ce09
Show file tree
Hide file tree
Showing 9 changed files with 89 additions and 107 deletions.
32 changes: 0 additions & 32 deletions extension-definition-specifications/artifact-805/artifact.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,32 +1,39 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/oasis-open/cti-stix-common-objects/main/extension-definition-specifications/artifact-805/extension-definition--8053ffa0-dec7-4aef-870e-a56d0082cf69.json",
"title": "malware-sample-artifact-extension",
"description": "An extension of the Artifact object to allow capture of malware samples.",
"type": "object",
"properties": {
"extensions": {
"type": "object",
"properties": {
"extension-definition--8053ffa0-dec7-4aef-870e-a56d0082cf69": {
"type": "object",
"properties": {"extension_type": {
"type": "string",
"description": "Defined by STIX 2.1 extension definition rules from 'extension-type-enum'.",
"enum": ["toplevel-property-extension"]
}},
"required": ["extension_type"]
},
"required": ["extension-definition--8053ffa0-dec7-4aef-870e-a56d0082cf69"]
}
},
"is_safe": {
"type": "boolean",
"description": "Indicates whether the artifact is safe, i.e., can be opened or processed without risking harm or infection. The default value is false."
}
},
"required": [
"extensions",
"is_safe"
]
"allOf:": [
{
"$ref": "https://raw.githubusercontent.com/oasis-open/cti-stix2-json-schemas/stix2.1/schemas/observables/artifact.json"
},
{
"properties": {
"extensions": {
"type": "object",
"properties": {
"extension-definition--8053ffa0-dec7-4aef-870e-a56d0082cf69": {
"type": "object",
"properties": {"extension_type": {
"type": "string",
"description": "Defined by STIX 2.1 extension definition rules from 'extension-type-enum'.",
"enum": ["toplevel-property-extension"]
}},
"required": ["extension_type"]
},
"required": ["extension-definition--8053ffa0-dec7-4aef-870e-a56d0082cf69"]
}
},
"is_safe": {
"type": "boolean",
"description": "Indicates whether the artifact is safe, i.e., can be opened or processed without risking harm or infection. The default value is false."
}
},
"required": [
"extensions",
"is_safe"
]
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"properties": {
"extension-definition--8e9e338f-c9ee-4d4f-8cac-85b4dcfdf3c1": {
"type": "object",
"$ref": "https://raw.githubusercontent.com/oasis-open/cti-stix-common-objects/main/extension-definition-specifications/malware-behavior/malware-extension.json"
"$ref": "malware-extension.json"
}
},
"required": ["extension-definition--8e9e338f-c9ee-4d4f-8cac-85b4dcfdf3c1"]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/oasis-open/cti-stix-common-objects/main/extension-definition-specifications/malware-behavior-8e9/extension-definition--d57b7c9c-7fa6-436b-b82c-8e6f69cdc3d0.json",
"title": "Malware Behavior Extension",
"description": "This schema defines new SDOs to capture malware behaviors.",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/oasis-open/cti-stix-common-objects/main/extension-definition-specifications/malware-behavior/malware-behavior.json",
"title": "malware-behavior",
"description": "malware-behavior SDO",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,46 +1,53 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/oasis-open/cti-stix-common-objects/main/extension-definition-specifications/malware-behavior/malware-extension.json",
"title": "Malware extension for Malware Behavior",
"description": "Extension to the malware object to support Malware Behavior",
"properties": {
"extension_type": {
"type": "string",
"enum": [
"property-extension"
]
},
"obj_defn": {
"$ref": "https://raw.githubusercontent.com/oasis-open/cti-stix-common-objects/main/extension-definition-specifications/malware-behavior/object-definition.json"
},
"year": {
"description": "This property denotes the year the malware instance or family was first seen.",
"type": "string",
"pattern": "^\\d{4}$"
},
"platforms": {
"description": "This property denotes the operating system affected by the malware. The values for this property SHOULD come from the os-type-ov open vocabulary.",
"type": "array",
"item": {
"type": "string"
},
"minItems": 1,
"$comment": "not required, but if used, there must be 1 item"
}
},
"required": [
"obj_defn"
],
"definitions": {
"os-type-ov": {
"type": "string",
"enum": [
"android",
"ios",
"linux",
"macos",
"windows"
]
}
}
"allOf:": [
{
"$ref": "https://raw.githubusercontent.com/oasis-open/cti-stix2-json-schemas/stix2.1/schemas/observables/sdos/malware.json"
},
{
"properties": {
"extension_type": {
"type": "string",
"enum": [
"property-extension"
]
},
"obj_defn": {
"$ref": "object-definition.json"
},
"year": {
"description": "This property denotes the year the malware instance or family was first seen.",
"type": "string",
"pattern": "^\\d{4}$"
},
"platforms": {
"description": "This property denotes the operating system affected by the malware. The values for this property SHOULD come from the os-type-ov open vocabulary.",
"type": "array",
"item": {
"type": "string"
},
"minItems": 1,
"$comment": "not required, but if used, there must be 1 item"
}
},
"required": [
"obj_defn"
],
"definitions": {
"os-type-ov": {
"type": "string",
"enum": [
"android",
"ios",
"linux",
"macos",
"windows"
]
}
}
}
]
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/oasis-open/cti-stix-common-objects/main/extension-definition-specifications/malware-behavior/malware-method.json",
"title": "malware-method",
"description": "malware-method SDO",
Expand All @@ -25,7 +25,7 @@
"description": "The name of the behavior (e.g., Request Email Address List)."
},
"obj_defn": {
"$ref": "https://raw.githubusercontent.com/oasis-open/cti-stix-common-objects/main/extension-definition-specifications/malware-behavior/object-definition.json"
"$ref": "object-definition.json"
},
"behavior_ref": {
"allOf": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/oasis-open/cti-stix-common-objects/main/extension-definition-specifications/malware-behavior/malware-objective.json",
"title": "malware-objective",
"description": "malware-objective SDO",
Expand All @@ -25,7 +25,7 @@
"description": "The name of the behavior (e.g., Request Email Address List)."
},
"obj_defn": {
"$ref": "https://raw.githubusercontent.com/oasis-open/cti-stix-common-objects/main/extension-definition-specifications/malware-behavior/object-definition.json"
"$ref": "object-definition.json"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/oasis-open/cti-stix-common-objects/main/extension-definition-specifications/malware-behavior/object-definition.json",
"title": "object-definition",
"properties": {
Expand Down

0 comments on commit 2b2ce09

Please sign in to comment.