-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prowler v3 Importer #7348
Comments
Using toniblyx/prowler v3.2.4 and DefectDojo v. 2.18.3 I get the following error messages when I import a Prowler result file. The error messages provided by DD vary depending on the filetype: Any advice? |
@security101 we need a stack track to understand what's going on. |
Made some tests and the format of Prowler changed, this need maintenance work. |
The prowler team responded to prowler-cloud/prowler#2076 The new format specification is detailed here: CSV https://docs.prowler.cloud/en/latest/tutorials/reporting/#csv An idea:
Update: Idea did not work. Got the error message: An exception error occurred during the report import:'list' object has no attribute 'get' |
@security101 I think I should fix the JSON-ASFF parser and extend the Prowler to support v3. Could you push me an ASFF reportin DM/email/Slack? |
I took a look at the different file format and parsers and the best way to fix your issue is to add a parser for ASFF format. @security101 will it be ok for you to use this new one? |
Dear @damiencarol, yes I think this a good choice and more stable in the future, too. |
I will provide a report via DM. Upfront the associated stack trace:
|
@damiencarol, thank you for the parser. I have tested it a bit for prowler, and assume it's better to separate parser for prowlerV3, because some fields are used in a different way in prowler, than in GuardDuty. Parsing Regular JSON or CSV output is preferable, because ASFF JSON output format miss some important fields (like Risk). Currently if we use general ASFF parser for Prowler V3 report it creates a lot of PASSED active findings in Dojo that look the same as discovered vulnerabilities in Dojo and only can find Title, Description and Severity missing a lot of useful details.
Here is the sample of prowlerV3 finding in ASFF format
|
Dear @damiencarol , |
It's in the current release that happened earlier today: https://github.com/DefectDojo/django-DefectDojo/releases/tag/2.23.0 Search for 8028 on that page and you'll see it in the list of changes. |
Hi! With v4 and json-asff i was able to import the report using the AWS Security Hub Scan Findings importer. |
Was also going to say something about this issue. Downside of only taking json-ASFF format is that you can't import prowler scans of other providers like So long story short: I'd vote for adopting the OCSF format. |
I opened PR #10338 which adds a prowler v4 parser for prowler reports in json-OCSF format. |
Scanner Name
In prowler v3, the fields have changed.
See https://github.com/prowler-cloud/prowler/releases/tag/3.0.0 and prowler-cloud/prowler@7b9fae5
Sample File
csv:
json:
The text was updated successfully, but these errors were encountered: