mercedes-benz / sechub

SecHub provides a central API to test software with different security tools.
https://mercedes-benz.github.io/sechub/
MIT License
259 stars 58 forks source link

Implement first version of a spring application that helps to categorize and verify secretscan results #3141

Open winzj opened 1 month ago

winzj commented 1 month ago

Situation

Currently we rely on the secret scan results of the tools we are using. If the secret scan does not categorize findings with the appropriate severity we currently take the default of the tool, or in case of SARIF the default of the reporting format. We want to be able to categorize the findings more accurately, e.g. by using defaults on our own experience or trying to verify secrets or tokens by performing API calls.

Example

To verify a Github personal access token we can try to access the Github API. This can be done for other APIs as well, which makes it easier to change the severity of a finding. Verified findings like valid Github personal access tokens will always be CRITICAL inside the SecHub report.

Solution

Remark

The verification of the secrets will be an iterative process, because for each secret some research is necessary to collect all necessary data on the respective webservice that is needed to verify potential secrets.