What gets scanned
Trivy scans:- Container images referenced in Kubernetes pods and deployments
- OS packages (Alpine, Debian, Ubuntu, CentOS, and others)
- Application dependencies: Go modules, Python pip/conda, Node.js npm/yarn, Ruby gems, Java Maven/Gradle, .NET NuGet
How the scan flow works
Identify scannable artifacts
For each connected resource, InfraAudit identifies artifacts to scan — for example, the container image
nginx:1.24 running in a Kubernetes pod.Trivy scans the image
Trivy scans the image and produces a list of CVE matches with the affected package names and versions.
NVD enrichment
InfraAudit queries the NVD API for each unique CVE ID to fetch the CVSS v3 score, severity rating, and description.
What each finding includes
After NVD enrichment, each vulnerability finding contains:- CVSS v3 base score and vector string
- Severity: Critical, High, Medium, or Low (based on the CVSS score)
- CVE description from the NVD advisory
- References — vendor bulletins, patches, and advisories
- Fix version, if published by the NVD
Configuration
The following environment variables control scanning behavior (set in your.env file for self-hosted deployments):
NVD API key
Without an NVD API key, the NVD endpoint applies rate limiting that can slow down enrichment for large scans. For production use or frequent scans, obtain a free API key:Register for an API key
Go to nvd.nist.gov/developers/request-an-api-key and complete the registration form.
Update the Trivy database
The Trivy vulnerability database is cached in/tmp/trivy-cache/ inside the API container. It’s updated automatically on each container restart. To force an immediate update:
Air-gapped deployments
For environments without internet access:Mirror the Trivy database
Mirror the Trivy DB to an internal OCI registry following Trivy’s air-gapped documentation.
Mark false positives as ignored
If a vulnerability doesn’t apply to your environment — for example, the vulnerable code path is not reachable — mark the finding as ignored to prevent alert noise:ignored label.