CredScan Integration with DefectDojo
CredScan (Credential Scanner) is a static analysis tool developed by Microsoft that scans source code, configuration files, and build outputs to detect credential leaks including hardcoded passwords, SQL connection strings, API keys, certificates with private keys, storage access keys, and other sensitive information that could pose security risks. The tool is available as part of the Microsoft Security Code Analysis extension for Azure DevOps and as a Code Analyzer in Visual Studio, providing automated detection with customizable rule sets and suppression capabilities to prevent accidental exposure of secrets in code repositories.
Data Granularity: What Gets Imported
The following fields are captured from CredScan results and surfaced in DefectDojo findings:
| Field | Source | Notes |
|---|---|---|
| Title | Finding name from the scan | Matched to the tool's own naming |
| Severity | Critical / High / Medium / Low / Info | Mapped from the tool's own severity scale |
| Description | Finding detail from the report | Includes what the issue is and why it matters |
| Mitigation | Remediation guidance | Where the tool provides it |
Importing Into DefectDojo
Use the DefectDojo import API to create a new Test under the relevant Engagement for your product. The request body:
{
"scan_type": "CredScan",
"engagement": "<engagement-id>",
"file": "results.json"
}