CheckOps
Trivy
Trivy is Aqua Security's Apache-2.0 all-in-one scanner for container images, filesystems, Git repos, VM images and Kubernetes, finding CVEs, IaC misconfigurations, secrets, licences and SBOM data.
- Security Testing
- Open source
- Free
- Sca
- Container Security
- Iac Security
- Secrets Scanning
- Command Line
- Security testing
- Release & CI gates
Latest public signals
Not refreshed yet. Refresh reads the public site and, when the entry has a GitHub repository, the latest release.
Introduction
Trivy is a comprehensive and versatile security scanner from Aqua Security, licensed Apache-2.0, with about 39,000 GitHub stars. Its README describes two ideas: targets (what Trivy can scan) and scanners (what it can find there).
Targets include container images, filesystems, remote Git repositories, virtual machine images and Kubernetes. Scanners find OS packages and software dependencies (SBOM), known vulnerabilities (CVEs), infrastructure-as-code issues and misconfigurations, sensitive information and secrets, and software licences.
This breadth is why Trivy shows up in so many pipelines: one binary can replace several single-purpose scanners. The former tfsec project now points users to Trivy for Terraform scanning.
In the quality loop, Trivy runs in CI on every image build and pull request, and can also run continuously in a cluster through the Trivy Operator.
Features
- Container image scanning: OS packages and language dependencies inside images.
- Filesystem and repo scanning: Scan a project directory or a remote Git repository.
- Kubernetes scanning: Scan clusters for vulnerabilities and misconfigurations.
- IaC misconfiguration: Terraform, CloudFormation, Kubernetes manifests, Dockerfiles and more.
- Secret detection: Finds hard-coded credentials.
- Licence scanning: Reports software licences of dependencies.
- SBOM: Generate and scan SBOMs (CycloneDX and SPDX).
- Easy install: Homebrew, Docker image, binaries and CI integrations.
Pros
- All-in-one: Vulnerabilities, misconfigurations, secrets and licences in one tool.
- Free: Apache-2.0.
- Fast and simple: Single binary with sensible defaults.
- Huge adoption: Large community and many integrations.
- Actively maintained: Commits in November 2026.
Cons
- Noise: Base-image CVEs can produce long lists that need filtering and ignore files.
- Database downloads: Needs vulnerability database updates; air-gapped use needs extra setup.
- Breadth over depth: Specialised tools may go deeper in a single area.
- Policy tuning: IaC checks need tuning to match your standards.
- No SAST: It does not analyse your own source code for logic flaws.
Usage and Links (Example)
Scan an image and fail the build on serious findings:
trivy image --severity HIGH,CRITICAL --exit-code 1 python:3.12-slim
Scan a repository for vulnerabilities, misconfigurations and secrets:
trivy fs --scanners vuln,misconfig,secret .
Generate an SBOM:
trivy image --format cyclonedx --output sbom.json myapp:latest
Tips: use .trivyignore for accepted risks with comments explaining why, pin the Trivy version in CI, and cache the vulnerability database between runs.
Resources:
Pricing
Trivy is free and open source under Apache-2.0. Aqua Security sells a commercial platform; see Aqua’s site for that.
Recommended for?
- DevOps and platform teams scanning images and IaC in CI.
- Teams wanting one scanner instead of several.
- Kubernetes operators checking clusters.
- Not a fit as your only SAST; pair with CodeQL or Semgrep.
Conclusion
Trivy is the most versatile free scanner for containers, IaC, secrets and dependencies.
Add it early in the pipeline, tune severity thresholds and ignore files, and pair it with SAST for your own code.
Alternatives
Other tools on CheckOps that cover similar ground. Open a page, or compare one with Trivy side by side.
GGrypeGrype is Anchore's Apache-2.0 vulnerability scanner for container images, filesystems and SBOMs, covering major OS package ecosystems and language packages.Compare with Trivy
OOSV-ScannerOSV-Scanner is Google's Apache-2.0 dependency vulnerability scanner and official frontend to the OSV database, covering many languages, package managers, OS packages and containers, with guided remediation and licence checks.Compare with Trivy
CCheckovCheckov is an Apache-2.0 static analysis tool for infrastructure as code (Terraform, CloudFormation, Kubernetes, Helm, Dockerfile and more) that also does SCA for images and open-source packages.Compare with Trivy
CClairClair is an Apache-2.0 open-source project from Quay for static vulnerability analysis of application containers (OCI and Docker images), exposed through an API.Compare with Trivy
SSnykSnyk CLI scans and monitors your projects for security vulnerabilities.Compare with Trivy
DDependency-CheckOWASP dependency-check is a software composition analysis utility that detects publicly disclosed vulnerabilities in application dependencies.Compare with Trivy