Report upload for Kiuwan
Last updated
Last updated
Kiuwan is a powerful, end-to-end application security platform. Kiuwan Static Application Security Testing (SAST) product is the tool that detects security vulnerabilities in source code using static analysis.
The problem is that Xygeni does not provide a mechanism in the agent (Kiuwan Local Analyzer) for writing to a local file the findings from the tool.
The Kiuwan scanner (Kiuwan Local Analyzer) by default uploads its findings to the Kiuwan platform.
To export the findings to a local file for uploading into third-party tools like Xygeni, the approach used was to register the custom rule provided that registers a task to export the findings at the end of the analysis, using the standard-provided report formatter for the xml_issues
report, the same format that the agent uses to send the findings to the Kiuwan on-cloud service.
The rule JAR and rule descriptors are already provided in the directory for your convenience. Anyway, the jar with the compile rule could be generated using Maven:
The compilation will copy the jar into dist
and run the script to create a rule descriptor for each technology, which stores all rule descriptors into .
Once rules and jar uploaded and added to the Kiuwan model, the local analyzer will execute the exporter rule when the output report is given, so it can be uploaded into Xygeni.
Run the Kiuwan Local Analyzer with the path to the report file provided in the KIUWAN_JSON_REPORT
environment variable.
Use the xygeni report-upload
command for uploading the exported report, after normalization to the Xygeni SAST format.
Next, follow the instructions to upload the and the to Kiuwan.
Read in Kiuwan documentation for full details on how to install rule definitions and their implementations, so the exporter rule may work at your installation. You need also to add the imported rules to an existing model, so the local analyzer will download them.