Clair Integration with DefectDojo
Clair is an open-source static analysis tool for container security that automatically detects vulnerabilities in container images by inspecting layers for known security flaws affecting base operating systems, programming language packages (Java, Python, Go, JavaScript), and other dependencies across both OCI and Docker v2 specifications. The tool continuously monitors vulnerability databases from multiple sources, correlates findings with indexed container content, and provides webhook notifications when new vulnerabilities are discovered, enabling organizations to maintain secure container deployments and software supply chains.
Data Granularity: What Gets Imported
The following fields are captured from Clair 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": "Clair",
"engagement": "<engagement-id>",
"file": "results.json"
}