Checkov Parser Improvement
Is your feature request related to a problem? Please describe Checkov's parser currently has a problem where finding information is not completely pushed in, in cases where Checkov is being used with the Palo Alto PrismaCloud/BridgeCrew API integration. The issue can be identified here:
Describe the solution you'd like I'd propose, supposing I can supply a report example with data obtained during a scan with PrismaCloud API integration, injecting further data into findings if that data is present on the obtained items. i.e., as a developer who uses Checkov with PrismaCloud API, I want to be able to make use of the more extensive data obtained from findings as fruit obtained from the integration.
@mwager fyi
Please support an example report. This would help implementing a fix.
What really looks messy is this line:
mitigation = ""
This looks really strange to me. Was added like this in the initial commit (af473da6e70d91d70d0318e09c29826fd5fd2c40). Tests dont address it. Maybe checkov doesnt report mitigation info, but I doubt it.
@manuel-sommer we are open to contribute - lets wait for an example report from @shodanwashere.
here's the example report from my side: results_json.json this is probably more complex behavior to implement but these kinds of reports will have content like references to benchmarks:
...
"benchmarks": {
"CIS KUBERNETES V1.6": [
{
"name": "5.7.3",
"description": "Apply Security Context to Your Pods and Containers"
}
],
...
this could be included as mitigation data
The benchmark content might indeed be nice to include in Defect Dojo. We would welcome a PR, thanks for the suggestion.
From what I can see the most detailed info for mitigation is provided in the documents referenced by the guideline field:
"guideline": "https://docs.prismacloud.io/en/enterprise-edition/policy-reference/kubernetes-policies/kubernetes-policy-index/bc-k8s-28",
These urls are already recorded in the references field.
@valentijnscholten we would be very happy to provide a PR! Will get back to you soon.
Is this issue fixed @shodanwashere and @mtesauro ? Than, we could close this.