Trivy
Trivy is an open-source security scanner from Aqua Security. It has a free edition under the Apache-2.0 license, and its maintainer also sells a paid edition or commercial license. It runs on Linux, macOS, Windows, and FreeBSD.
Updated
- Pricing
- Free / Commercial
- License
- Apache-2.0
- Platforms
- Linux, macOS, Windows, FreeBSD
What Is Trivy?
Trivy is an open-source security scanner from Aqua Security. It scans container images, code repositories, virtual machine disks, and Kubernetes clusters for known CVEs, misconfigurations, exposed secrets, and license issues. Aqua Security's commercial platform builds on Trivy with additional capabilities.
Use Cases
Scanning Docker images and Kubernetes manifests in CI/CD pipelines and container registries.
Strengths and Limitations
Strengths
- +Fast scanning engine with vulnerability databases built as frequently as every 6 hours.
- +Covers OS packages (Alpine, Debian, RHEL) and language dependencies (npm, pip, Go, cargo).
- +Integrates directly into GitHub Actions, GitLab CI, Harbor, and VS Code.
Limitations
- -Focuses on known CVEs and static configs; does not perform runtime behavior monitoring.
- -Reports can be large without proper severity filtering.
Defensive Use
Preventing vulnerable container images and misconfigured cloud manifests from reaching production clusters.
Trivy Alternatives
4 tools| Tool | License | Platforms | Pricing |
|---|---|---|---|
| Checkov Static analysis scanner for infrastructure-as-code that detects misconfigurations in Terraform, CloudFormation, Kubernetes, and Dockerfile. | Apache-2.0 | Linux, macOS, Windows | Open Source |
| Grype Vulnerability scanner for container images and filesystems that identifies CVEs in packages, dependencies, and operating system distributions. | Apache-2.0 | Linux, macOS, Windows | Open Source |
| Nuclei Fast vulnerability scanner powered by community YAML templates to scan web applications, networks, and cloud targets for known defects. | MIT | Linux, macOS, Windows | Free / Commercial |
| OWASP Dependency-Check Software composition analysis tool that checks project dependencies against the National Vulnerability Database for known CVEs. | Apache-2.0 | Linux, macOS, Windows | Open Source |
Frequently Asked Questions
What is Trivy?→
Trivy is an open-source security scanner from Aqua Security. It scans container images, code repositories, virtual machine disks, and Kubernetes clusters for known CVEs, misconfigurations, exposed secrets, and license issues. Aqua Security's commercial platform builds on Trivy with additional capabilities.
What is Trivy used for?→
Scanning Docker images and Kubernetes manifests in CI/CD pipelines and container registries.
What are the strengths of Trivy?→
- +Fast scanning engine with vulnerability databases built as frequently as every 6 hours.
- +Covers OS packages (Alpine, Debian, RHEL) and language dependencies (npm, pip, Go, cargo).
- +Integrates directly into GitHub Actions, GitLab CI, Harbor, and VS Code.
What are the limitations of Trivy?→
- +Focuses on known CVEs and static configs; does not perform runtime behavior monitoring.
- +Reports can be large without proper severity filtering.
How is Trivy used defensively?→
Preventing vulnerable container images and misconfigured cloud manifests from reaching production clusters.