Anchore Enterprise

Categories

Infrastructure Scanning

Integrates With
Import Options
File Types

Anchore Enterprise

Anchore Enterprise is a container security platform that provides comprehensive analysis, policy enforcement, and vulnerability scanning for container images and Kubernetes environments throughout the software development lifecycle. The tool performs deep image inspection to identify security vulnerabilities, misconfigurations, secrets, malware, and compliance violations in container images, enabling organizations to enforce security policies and maintain compliance before containers reach production.

Anchore Integration with DefectDojo

If your team is scanning container images with Anchore — whether through Anchore Enterprise or the open-source Grype scanner — you're producing detailed vulnerability data that's only as useful as what you do with it after the scan. Dumping JSON to a file or failing a CI build without context is a dead end. Feeding Anchore findings into DefectDojo changes that equation: you get a durable, deduplicated record of container vulnerabilities tied to specific images and tags, with full lifecycle tracking from initial detection through remediation or accepted risk.

Why Anchore Matters

Container and software supply chain security has moved from a nice-to-have to an audit requirement for most regulated environments. Anchore sits in that space by combining SBOM generation (via Syft) with deep vulnerability matching (via Grype) against multiple upstream advisory feeds — NVD, GitHub Advisories, OS vendor advisories, and language ecosystem databases.

Advantages of This Integration

Running Anchore without a vulnerability management platform means findings live in scan artifacts, not in a workflow. The DefectDojo integration addresses that directly.

How This Integration Works

Anchore (via Grype or Anchore Enterprise) produces JSON output that DefectDojo's Anchore parser is built to consume. The typical flow looks like this:

Step 1 — Run the scan and capture output

Using Grype directly:

grype <image>:<tag> -o json > anchore-results.json

Using Anchore Enterprise CLI:

anchorectl image vulnerabilities <image>:<tag> -o json > anchore-results.json

Step 2 — Import into DefectDojo

You can import via the DefectDojo UI or API. For CI/CD pipelines, the API approach is standard:

curl -X POST https://<defectdojo-host>/api/v2/import-scan/ \
-H "Authorization: Token <your-api-token>" \
-F "scan_type=Anchore Grype" \
-F "file=@anchore-results.json" \
-F "engagement=<engagement-id>" \
-F "product=<product-id>" \
-F "active=true" \
-F "verified=false"

Use scan_type=Anchore Engine for Anchore Enterprise output and scan_type=Anchore Grype for Grype output — DefectDojo has separate parsers for each.

Step 3 — Triage and manage findings

Once imported, findings appear in the engagement with severity, package metadata, fix version data, and CVE references pre-populated. Deduplication runs automatically if the same CVE was previously imported for that product.

For ongoing scanning, use DefectDojo's reimport endpoint (/api/v2/reimport-scan/) to update existing findings rather than create duplicates:

curl -X POST https://<defectdojo-host>/api/v2/reimport-scan/ \
-H "Authorization: Token <your-api-token>" \
-F "scan_type=Anchore Grype" \
-F "file=@anchore-results.json" \
-F "test=<test-id>"

Data Granularity: What Gets Imported

Field Source in Anchore Output Notes
Title CVE ID + package name e.g., "CVE-2024-1234 in libssl 1.1.1"
Severity Anchore/NVD severity rating Critical, High, Medium, Low, Negligible
CVE ID vulnerability.id Linked to NVD record in DefectDojo
CVSS Score vulnerability.cvss v2 and v3 where available
Package Name artifact.name The specific library or OS package affected
Package Version artifact.version Installed version at scan time
Fix Version vulnerability.fix.versions Populated when a fix is available; empty if none
Package Type artifact.type rpm, deb, python, java-archive, go-module, etc.
File Path artifact.locations Path(s) where the package is installed in the image
Description vulnerability.description Pulled from advisory source
References vulnerability.urls Advisory links, NVD link, vendor advisories
Mitigation Grype fix field Fix recommendation when present
Active Computed Set based on fix availability and policy

Use Cases

In a CI/CD pipeline: Anchore scans run on every image build. Results are imported into DefectDojo via the API at the end of the pipeline stage. If the scan introduces a new Critical finding not previously accepted, an alert fires and the build is flagged in DefectDojo for triage — but the pipeline isn't necessarily blocked, giving the security team visibility without creating developer friction on every run.

During a base image rotation: When platform teams update a shared base image (e.g., moving from Ubuntu 20.04 to 22.04), a re-scan of all dependent images in DefectDojo shows which CVEs were resolved by the update and which new ones were introduced. The reimport workflow surfaces regressions immediately rather than requiring manual diff comparisons.

For quarterly security reviews: DefectDojo's reporting gives a point-in-time view of container vulnerability posture across all products. You can filter by severity, by age, and by SLA status — making it straightforward to prepare findings for a board-level or audit report without manually querying scanner outputs.

When managing accepted risk on unfixable CVEs: Many container CVEs have no upstream fix for weeks or months. Rather than leaving them as noisy open findings, teams use DefectDojo's risk acceptance workflow to document the accepted risk with an expiration date. When a fix eventually ships and Anchore detects it, the reimport surfaces the finding as newly actionable.

Operational Tips