-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Discouraged Product Status Remediation Combination
- addresses parts of #541, #662, #563 - add optional test for discouraged product status remediation combinations - add invalid examples - add valid examples
- Loading branch information
1 parent
a274571
commit 7e03b04
Showing
7 changed files
with
374 additions
and
1 deletion.
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
58 changes: 58 additions & 0 deletions
58
csaf_2.1/test/validator/data/optional/oasis_csaf_tc-csaf_2_1-2024-6-2-27-01.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,58 @@ | ||
{ | ||
"$schema": "https://docs.oasis-open.org/csaf/csaf/v2.1/csaf_json_schema.json", | ||
"document": { | ||
"category": "csaf_base", | ||
"csaf_version": "2.1", | ||
"distribution": { | ||
"tlp": { | ||
"label": "CLEAR" | ||
} | ||
}, | ||
"publisher": { | ||
"category": "other", | ||
"name": "OASIS CSAF TC", | ||
"namespace": "https://csaf.io" | ||
}, | ||
"title": "Optional test: Discouraged Product Status Remediation Combination (failing example 1)", | ||
"tracking": { | ||
"current_release_date": "2024-01-24T10:00:00.000Z", | ||
"id": "OASIS_CSAF_TC-CSAF_2.1-2024-6-2-27-01", | ||
"initial_release_date": "2024-01-24T10:00:00.000Z", | ||
"revision_history": [ | ||
{ | ||
"date": "2024-01-24T10:00:00.000Z", | ||
"number": "1", | ||
"summary": "Initial version." | ||
} | ||
], | ||
"status": "final", | ||
"version": "1" | ||
} | ||
}, | ||
"product_tree": { | ||
"full_product_names": [ | ||
{ | ||
"product_id": "CSAFPID-9080700", | ||
"name": "Product A" | ||
} | ||
] | ||
}, | ||
"vulnerabilities": [ | ||
{ | ||
"product_status": { | ||
"known_not_affected": [ | ||
"CSAFPID-9080700" | ||
] | ||
}, | ||
"remediations": [ | ||
{ | ||
"category": "fix_planned", | ||
"details": "The fix should be available in Q4 2024.", | ||
"product_ids": [ | ||
"CSAFPID-9080700" | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
100 changes: 100 additions & 0 deletions
100
csaf_2.1/test/validator/data/optional/oasis_csaf_tc-csaf_2_1-2024-6-2-27-02.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,100 @@ | ||
{ | ||
"$schema": "https://docs.oasis-open.org/csaf/csaf/v2.1/csaf_json_schema.json", | ||
"document": { | ||
"category": "csaf_base", | ||
"csaf_version": "2.1", | ||
"distribution": { | ||
"tlp": { | ||
"label": "CLEAR" | ||
} | ||
}, | ||
"publisher": { | ||
"category": "other", | ||
"name": "OASIS CSAF TC", | ||
"namespace": "https://csaf.io" | ||
}, | ||
"title": "Optional test: Discouraged Product Status Remediation Combination (failing example 2)", | ||
"tracking": { | ||
"current_release_date": "2024-01-24T10:00:00.000Z", | ||
"id": "OASIS_CSAF_TC-CSAF_2.1-2024-6-2-27-02", | ||
"initial_release_date": "2024-01-24T10:00:00.000Z", | ||
"revision_history": [ | ||
{ | ||
"date": "2024-01-24T10:00:00.000Z", | ||
"number": "1", | ||
"summary": "Initial version." | ||
} | ||
], | ||
"status": "final", | ||
"version": "1" | ||
} | ||
}, | ||
"product_tree": { | ||
"full_product_names": [ | ||
{ | ||
"product_id": "CSAFPID-9080700", | ||
"name": "Product A" | ||
}, | ||
{ | ||
"product_id": "CSAFPID-9080701", | ||
"name": "Product B" | ||
}, | ||
{ | ||
"product_id": "CSAFPID-9080702", | ||
"name": "Product C" | ||
}, | ||
{ | ||
"product_id": "CSAFPID-9080703", | ||
"name": "Product D" | ||
} | ||
], | ||
"product_groups": [ | ||
{ | ||
"group_id": "CSAFGID-1020300", | ||
"product_ids": [ | ||
"CSAFPID-9080700", | ||
"CSAFPID-9080701", | ||
"CSAFPID-9080702" | ||
] | ||
} | ||
] | ||
}, | ||
"vulnerabilities": [ | ||
{ | ||
"product_status": { | ||
"fixed": [ | ||
"CSAFPID-9080703" | ||
], | ||
"under_investigation": [ | ||
"CSAFPID-9080700", | ||
"CSAFPID-9080701", | ||
"CSAFPID-9080702" | ||
] | ||
}, | ||
"remediations": [ | ||
{ | ||
"category": "fix_planned", | ||
"details": "The fix is expected to be distributed in November 2024.", | ||
"product_ids": [ | ||
"CSAFPID-9080701", | ||
"CSAFPID-9080702" | ||
] | ||
}, | ||
{ | ||
"category": "mitigation", | ||
"details": "Make sure that the product is not connected to any network.", | ||
"group_ids": [ | ||
"CSAFGID-1020300" | ||
] | ||
}, | ||
{ | ||
"category": "optional_patch", | ||
"details": "Update to the version 8.5.1.", | ||
"product_ids": [ | ||
"CSAFPID-9080703" | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
58 changes: 58 additions & 0 deletions
58
csaf_2.1/test/validator/data/optional/oasis_csaf_tc-csaf_2_1-2024-6-2-27-11.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,58 @@ | ||
{ | ||
"$schema": "https://docs.oasis-open.org/csaf/csaf/v2.1/csaf_json_schema.json", | ||
"document": { | ||
"category": "csaf_base", | ||
"csaf_version": "2.1", | ||
"distribution": { | ||
"tlp": { | ||
"label": "CLEAR" | ||
} | ||
}, | ||
"publisher": { | ||
"category": "other", | ||
"name": "OASIS CSAF TC", | ||
"namespace": "https://csaf.io" | ||
}, | ||
"title": "Optional test: Discouraged Product Status Remediation Combination (valid example 1)", | ||
"tracking": { | ||
"current_release_date": "2024-01-24T10:00:00.000Z", | ||
"id": "OASIS_CSAF_TC-CSAF_2.1-2024-6-2-27-11", | ||
"initial_release_date": "2024-01-24T10:00:00.000Z", | ||
"revision_history": [ | ||
{ | ||
"date": "2024-01-24T10:00:00.000Z", | ||
"number": "1", | ||
"summary": "Initial version." | ||
} | ||
], | ||
"status": "final", | ||
"version": "1" | ||
} | ||
}, | ||
"product_tree": { | ||
"full_product_names": [ | ||
{ | ||
"product_id": "CSAFPID-9080700", | ||
"name": "Product A" | ||
} | ||
] | ||
}, | ||
"vulnerabilities": [ | ||
{ | ||
"product_status": { | ||
"known_affected": [ | ||
"CSAFPID-9080700" | ||
] | ||
}, | ||
"remediations": [ | ||
{ | ||
"category": "fix_planned", | ||
"details": "The fix should be available in Q4 2024.", | ||
"product_ids": [ | ||
"CSAFPID-9080700" | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
100 changes: 100 additions & 0 deletions
100
csaf_2.1/test/validator/data/optional/oasis_csaf_tc-csaf_2_1-2024-6-2-27-12.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,100 @@ | ||
{ | ||
"$schema": "https://docs.oasis-open.org/csaf/csaf/v2.1/csaf_json_schema.json", | ||
"document": { | ||
"category": "csaf_base", | ||
"csaf_version": "2.1", | ||
"distribution": { | ||
"tlp": { | ||
"label": "CLEAR" | ||
} | ||
}, | ||
"publisher": { | ||
"category": "other", | ||
"name": "OASIS CSAF TC", | ||
"namespace": "https://csaf.io" | ||
}, | ||
"title": "Optional test: Discouraged Product Status Remediation Combination (valid example 2)", | ||
"tracking": { | ||
"current_release_date": "2024-01-24T10:00:00.000Z", | ||
"id": "OASIS_CSAF_TC-CSAF_2.1-2024-6-2-27-12", | ||
"initial_release_date": "2024-01-24T10:00:00.000Z", | ||
"revision_history": [ | ||
{ | ||
"date": "2024-01-24T10:00:00.000Z", | ||
"number": "1", | ||
"summary": "Initial version." | ||
} | ||
], | ||
"status": "final", | ||
"version": "1" | ||
} | ||
}, | ||
"product_tree": { | ||
"full_product_names": [ | ||
{ | ||
"product_id": "CSAFPID-9080700", | ||
"name": "Product A" | ||
}, | ||
{ | ||
"product_id": "CSAFPID-9080701", | ||
"name": "Product B" | ||
}, | ||
{ | ||
"product_id": "CSAFPID-9080702", | ||
"name": "Product C" | ||
}, | ||
{ | ||
"product_id": "CSAFPID-9080703", | ||
"name": "Product D" | ||
} | ||
], | ||
"product_groups": [ | ||
{ | ||
"group_id": "CSAFGID-1020300", | ||
"product_ids": [ | ||
"CSAFPID-9080700", | ||
"CSAFPID-9080701", | ||
"CSAFPID-9080702" | ||
] | ||
} | ||
] | ||
}, | ||
"vulnerabilities": [ | ||
{ | ||
"product_status": { | ||
"last_affected": [ | ||
"CSAFPID-9080700", | ||
"CSAFPID-9080701", | ||
"CSAFPID-9080702" | ||
], | ||
"under_investigation": [ | ||
"CSAFPID-9080703" | ||
] | ||
}, | ||
"remediations": [ | ||
{ | ||
"category": "fix_planned", | ||
"details": "The fix is expected to be distributed in November 2024.", | ||
"product_ids": [ | ||
"CSAFPID-9080701", | ||
"CSAFPID-9080702" | ||
] | ||
}, | ||
{ | ||
"category": "mitigation", | ||
"details": "Make sure that the product is not connected to any network.", | ||
"group_ids": [ | ||
"CSAFGID-1020300" | ||
] | ||
}, | ||
{ | ||
"category": "optional_patch", | ||
"details": "Update to the version 8.5.1.", | ||
"product_ids": [ | ||
"CSAFPID-9080703" | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
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
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