The Blackduck Report Analysis project generates a summary of the reports and exports it to an Excel file. Unlike the reports generated directly from Black Duck, this tool includes mitigation details. The main benefit of this tool is its ability to quickly produce the necessary documentation for the Blackduck review and analysis during development or vulnerability mitigation planning. This ensures a streamlined and efficient review process. This project includes two main services:
- BlackduckApiService: Interacts with the Blackduck API to retrieve recommended fixes for vulnerabilities.
- ExcelService: Generates Excel reports summarizing security risks.
- Analyzes Blackduck reports
- Generates summary reports and exports it to Excel in the specified format
- Microsoft Excel Desktop or Web
- Black Duck Account
- .NET SDK
- ClosedXML library
- Newtonsoft.Json library
- Clone the repository:
git clone https://github.com/EmersonDeltaV/blackduck-report-analysis-tool.git
cd BlackduckReportAnalysis
- Restore dependencies:
dotnet restore
- Login to your Black Duck account and download the 'Vulnerability Status' reports for your repositories.
- Download the report and save it to your root drive, preferably with a shorter folder path (e.g., C: or D: drive).
- Extract the files.
- Login to your Black Duck account.
- Go to the ‘Access Tokens’ section in the upper right corner of your dashboard, then click ‘Create Token’.
- Provide a name and an optional description. Select ‘Read Access Only’ as the Scope.
- You need this token in config.json. You won’t need to regenerate it each time you use the tool.
-
Navigate to the BlackDuckReportAnalysisTool folder and locate the config.json file. Modify the property values as follows:
ReportFolderPath
: The folder path where you extracted the Black Duck Vulnerability Report.OutputFilePath
: The folder path where you want to save the summary report generated by the tool.IncludeTransitiveDependency
: Set to true or false depending on whether you want to include Transitive Dependency Vulnerabilities in the summary report.Token
: The read access only token you generated from Black Duck.BaseUrl
: Your Black Duck URL.LogPath
: The folder path where you want to save the logs.
NOTE: Please use double backslash
\\
to indicate the path.
- Once you configured the config.json you can now run 'BlackduckReportAnalysis.exe' as administrator.
- Wait for the tool to complete its process.
- Open the summary report in Excel.
- If there are blank cells under ‘Recommended Fix Version’ column, investigate further. This indicates that Black Duck does not list a recommended fix for those specific vulnerabilities.
Contributions are welcome! Please open an issue or submit a pull request.
This project is licensed under the MIT License.