-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e405bd8
commit c827d5e
Showing
7 changed files
with
160 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../v1/Decision_Point-1-0-1.schema.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../v1/Decision_Point_Group-1-0-1.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../v1/Decision_Point_Value_Selection-1-0-1.schema.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"title": "Decision Point schema definition", | ||
"$id": "https://certcc.github.io/data/schema/v1/Decision_Point.schema-1-0-1.json", | ||
"description": "Decision points are the basic building blocks of SSVC decision functions. Individual decision points describe a single aspect of the input to a decision function.", | ||
"definitions": { | ||
"schemaVersion": { | ||
"description": "Schema version used to represent this Decision Point", | ||
"type": "string", | ||
"enum": ["1-0-1"] | ||
}, | ||
"decision_point_value": { | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"key": { | ||
"type": "string", | ||
"description": "A key (a short, unique string) that can be used to identify the Decision Point/Decision Point value in a shorthand way" | ||
}, | ||
"name": { | ||
"type": "string", | ||
"description": "A short label that captures the description of the Decision Point or the Group of Decision Points." | ||
}, | ||
"description": { | ||
"type": "string", | ||
"description": "Description of the Decision Point Value" | ||
} | ||
}, | ||
"required" : [ | ||
"key", | ||
"name", | ||
"description" | ||
] | ||
}, | ||
"decision_point": { | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"namespace": { | ||
"type": "string", | ||
"description": "Namespace (a short, unique string): For example, \"ssvc\" or \"cvss\" to indicate the source of the decision point" | ||
}, | ||
"version": { | ||
"type": "string", | ||
"description": "Version (a semantic version string) that identifies this object" | ||
}, | ||
"key": { | ||
"type": "string", | ||
"description": "A key (a short, unique string) that can be used to identify the Decision Point/Decision Point value in a shorthand way" | ||
}, | ||
"name": { | ||
"type": "string", | ||
"description": "A short label that captures the description of the Decision Point or the Group of Decision Points." | ||
}, | ||
"description": { | ||
"type": "string", | ||
"description": "q Description of the Decision Point or the Group of Decision Points as defined." | ||
}, | ||
"values": { | ||
"description": "Decision Point Values are valid results from a Decision Point", | ||
"uniqueItems": true, | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/decision_point_value" | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"namespace", | ||
"version", | ||
"key", | ||
"name", | ||
"description", | ||
"values" | ||
] | ||
} | ||
}, | ||
"$ref": "#/definitions/decision_point" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"title": "Decision Points Group schema definition", | ||
"$id": "https://certcc.github.io/SSVC/data/schema/v1/Decision_Point_Group-1-0-1.schema.json", | ||
"definitions": { | ||
"schemaVersion": { | ||
"description": "Schema version used to represent Decision Point Group", | ||
"type": "string", | ||
"enum": ["1-0-1"] | ||
}, | ||
"decision_point_group": { | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"version": { | ||
"type": "string", | ||
"description": "Version (a semantic version string) that identifies this object" | ||
}, | ||
"name": { | ||
"type": "string", | ||
"description": "A short label that captures the description of the Decision Point or the Group of Decision Points." | ||
}, | ||
"description": { | ||
"type": "string", | ||
"description": "Description of the Decision Point or the Group of Decision Points." | ||
}, | ||
"decision_points": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "https://certcc.github.io/SSVC/data/schema/Decision_Point.schema.json" | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"version", | ||
"name", | ||
"description", | ||
"decision_points" | ||
] | ||
} | ||
}, | ||
"$ref": "#/definitions/decision_point_group" | ||
|
||
} |
31 changes: 31 additions & 0 deletions
31
data/schema_examples/CVE-1969-0000-Decision_Point_Value_Selection.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"id": "CVE-1969-0000", | ||
"timestamp": "2021-09-29T15:29:44Z", | ||
"schemaVersion": "1-0-1", | ||
"selections": [ | ||
{ | ||
"namespace": "ssvc", | ||
"name": "Exploitation", | ||
"version": "1.1.0", | ||
"values": [ | ||
"Active" | ||
] | ||
}, | ||
{ | ||
"namespace": "ssvc", | ||
"name": "Automatable", | ||
"version": "2.0.0", | ||
"values": [ | ||
"Yes" | ||
] | ||
}, | ||
{ | ||
"namespace": "ssvc", | ||
"name": "Technical Impact", | ||
"version": "1.0.0", | ||
"values": [ | ||
"Total" | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters