Clair vs Trivy
Clair
clairproject.orgTrivy
trivy.devSide by side
| Figure | Clair | Trivy |
|---|---|---|
| Price from | Free | Free |
| Free plan | Yes | Yes |
| Free trial | — | — |
| Open source | — | — |
| Windows | — | Yes |
| macOS | — | Yes |
| Linux | Yes | Yes |
| API | Yes | — |
| Self-hosted | Yes | Yes |
| Plans published | 1 | 1 |
| Spec score · Container Security Software | 8.0 (#10) | 8.1 (#9) |
| Spec score · Software Composition Analysis Software | 7.9 (#26) | 8.2 (#15) |
| Deployment | Clair supports microservice, monolithic, CI pipeline, and disconnected deployment methods. | Aqua says Trivy can be installed as a binary for CI/CD and does not require middleware or database dependencies. |
| License | Clair is licensed under Apache 2.0. | The Trivy homepage identifies the project as Go software under the Apache-2.0 License. |
| Purpose | Clair continuously scans container images for vulnerabilities and security problems. | Trivy scans code repositories, binary artifacts, container images, and Kubernetes clusters for vulnerabilities and misconfigurations. |
Plans
In their own words
Clair
Clair is free, self-hosted software that continuously scans container images for vulnerabilities in operating-system bases, installed packages, and programming-language components. Clients use its API to index images and match them against known vulnerabilities. Clair updates its vulnerability database as new issues appear and can reanalyze images without rereading their complete contents. It supports OCI Distribution and Docker v2 images, and lists RHEL, Alpine, Ubuntu, Debian, Oracle, Photon, and SUSE distributions, plus Java, Python, Golang, and Javascript. Deployment options include microservices, monolithic installations, CI pipelines, and disconnected environments. Clair can run as an indexer, matcher, notifier, or combo process. It uses PostgreSQL for persistence and is released as a Quay.io container, with the clairctl command-line tool among its artifacts. Clair runs on Linux, supports registry scanning, and is licensed under Apache 2.0. Runtime protection is not provided.
Trivy
Trivy is a free, Apache-2.0-licensed scanner for code repositories, binary artifacts, container images, and Kubernetes clusters. Its scanners cover vulnerabilities, infrastructure-as-code misconfigurations, secrets, and licenses, and it can generate software bills of materials. Vulnerability checks include operating-system and language-specific packages, some non-packaged software, and Kubernetes components. Configuration checks cover Docker, Kubernetes, Terraform, and CloudFormation files, and users can write custom checks. Trivy supports ecosystems including Ruby, Python, PHP, Node.js, .NET, Java, Go, Rust, C/C++, Elixir, Dart, Swift, Julia, and operating-system packages. It can run as a CI/CD binary without middleware or database dependencies and can be used in air-gapped environments. Installation options include container images, release binaries, package repositories, Homebrew, and Windows downloads; official integrations include Azure DevOps and GitHub Actions. Results can be exported as JUnit XML, SARIF, and ASFF. The vulnerability scanner documentation says third-party or self-compiled packages and binaries are unsupported, and the scanner may skip third-party packages. Trivy automatically fetches and maintains the security databases it needs for scans. The project is identified as Go software under the Apache-2.0 License; Aqua Security is listed as founded in 2015 with headquarters in Boston and Ramat Gan.