-
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.
Merge pull request #807 from tschmidtb51/remediation-categories
Remediation categories
- Loading branch information
Showing
27 changed files
with
1,724 additions
and
13 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
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
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
38 changes: 38 additions & 0 deletions
38
csaf_2.1/prose/edit/src/tests-01-mndtr-35-contradicting-remediations.md
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,38 @@ | ||
### Contradicting Remediations | ||
|
||
For each item in `/vulnerabilities[]/remediations` it MUST be tested that a product is not member of contradicting remediation categories. | ||
This takes indirect relations through product groups into account. | ||
|
||
The relevant path for this test is: | ||
|
||
``` | ||
/vulnerabilities[]/remediations[] | ||
``` | ||
|
||
*Example 1 (which fails the test):* | ||
|
||
``` | ||
"remediations": [ | ||
{ | ||
"category": "no_fix_planned", | ||
"details": "The product is end-of-life. Therefore, no fix will be provided.", | ||
"product_ids": [ | ||
"CSAFPID-9080700" | ||
] | ||
}, | ||
{ | ||
"category": "vendor_fix", | ||
"details": "Update to version >=14.3 to fix the vulnerability.", | ||
"product_ids": [ | ||
"CSAFPID-9080700" | ||
] | ||
} | ||
] | ||
``` | ||
|
||
> The two remediations given for the product with product ID `CSAFPID-908070` contradict each other. | ||
> A tool MAY apply the conversion rules from the conformance target CSAF 2.0 to CSAF 2.1 converter if applicable or | ||
> remove the product from the remediation with the lower priority. | ||
> The priority MAY be defined as follows: | ||
> `vendor_fix` > `mitigation` > `workaround` > `fix_planned` > `no_fix_planned` > `optional_patch` > `none_available` |
31 changes: 31 additions & 0 deletions
31
...t/src/tests-01-mndtr-36-contradicting-product-status-remediation-combination.md
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 @@ | ||
### Contradicting Product Status Remediation Combination | ||
|
||
For each item in `/vulnerabilities[]/remediations` it MUST be tested that a product is not member of a contradicting product status group. | ||
This takes indirect relations through product groups into account. | ||
|
||
The relevant path for this test is: | ||
|
||
``` | ||
/vulnerabilities[]/remediations[] | ||
``` | ||
|
||
*Example 1 (which fails the test):* | ||
|
||
``` | ||
"product_status": { | ||
"known_not_affected": [ | ||
"CSAFPID-9080700" | ||
] | ||
}, | ||
"remediations": [ | ||
{ | ||
"category": "vendor_fix", | ||
"details": "Update to version >=14.3 to fix the vulnerability.", | ||
"product_ids": [ | ||
"CSAFPID-9080700" | ||
] | ||
} | ||
] | ||
``` | ||
|
||
> For the product with product ID `CSAFPID-908070` a `vendor_fix` is given but the product was not affected at all. |
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
65 changes: 65 additions & 0 deletions
65
csaf_2.1/test/validator/data/mandatory/oasis_csaf_tc-csaf_2_1-2024-6-1-35-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,65 @@ | ||
{ | ||
"$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": "Mandatory test: Contradicting Remediations (failing example 1)", | ||
"tracking": { | ||
"current_release_date": "2024-01-24T10:00:00.000Z", | ||
"id": "OASIS_CSAF_TC-CSAF_2.1-2024-6-1-35-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_affected": [ | ||
"CSAFPID-9080700" | ||
] | ||
}, | ||
"remediations": [ | ||
{ | ||
"category": "no_fix_planned", | ||
"details": "The product is end-of-life. Therefore, no fix will be provided.", | ||
"product_ids": [ | ||
"CSAFPID-9080700" | ||
] | ||
}, | ||
{ | ||
"category": "vendor_fix", | ||
"details": "Update to version >=14.3 to fix the vulnerability.", | ||
"product_ids": [ | ||
"CSAFPID-9080700" | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
Oops, something went wrong.