Trufflehog Integration with DefectDojo
TruffleHog is a high-performance secrets scanning tool designed to detect and verify accidentally committed sensitive information, such as API keys, passwords, and private tokens, across code repositories and CI/CD pipelines. This integration allows security teams to automate the ingestion of identified vulnerabilities into DefectDojo, enabling centralized management and proactive remediation of credential leaks before they can be exploited.
Data Granularity: What Gets Imported
The following fields are captured from Trufflehog 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": "Trufflehog",
"engagement": "<engagement-id>",
"file": "results.json"
}