Trending
#Security & Privacy

aquasecurity/trivy

A single CLI scanner that checks container images, filesystems, repos, VMs and Kubernetes for CVEs, misconfigurations and secrets.

38,690
796
Go
Apache-2.0
7 years old

The problem

Security scanning usually arrives as a pile of separate tools: one for container image CVEs, another for IaC misconfiguration, another for committed secrets, another for SBOM. Each has its own config, its own output format and its own place in CI. Trivy collapses those into one binary with a shared target model, so the same command style covers images, filesystems, git repos, VM images and live Kubernetes clusters.

What's different

The usual approach is to assemble a pipeline from specialized tools, often a vulnerability scanner plus an IaC linter plus a secrets detector. Trivy's differentiator is the combination in one binary: the README frames it as scanners (vulns, misconfig, secrets, licenses, SBOM) crossed with targets, and it supports the mainstream languages, OSes and platforms. A second differentiator is deployment shape: it can run as a CLI, a Docker image, a GitHub Action or a Kubernetes operator, so the same engine can sit at commit time and at cluster runtime. Third, the operator path gives cluster-level reporting rather than per-image scans only. The README does not benchmark speed or accuracy against alternatives, so treat any such comparison as unverified.

Who it's for

Teams that need broad, low-ceremony security coverage across containers and Kubernetes — platform engineers, DevSecOps and CI owners who want one gate instead of three. It suits organizations standardizing on a single scanner across repos and clusters. Look elsewhere if you need deep application-layer SAST or DAST, which Trivy does not claim, or if you need a fully managed commercial dashboard with policy workflow; the README itself points to Aqua's commercial product for that. Very small projects may find a hosted GitHub dependency alert sufficient.

Cost of adoption

Adoption is light on prerequisites: a Go static binary, a Docker image, or package-manager installs (brew install trivy), plus GitHub Actions, a VS Code extension and a Kubernetes operator. No database or agent is described as required. The real costs are operational. Vulnerability data has to stay fresh, so scans depend on an external vulnerability database being reachable and current; in air-gapped setups that becomes your problem. Output volume needs filtering and policy before it is usable as a CI gate. Canary builds are explicitly not production-ready. Most importantly, the project sits in the supply chain it secures: a Hacker News thread in March 2026 titled "Trivy ecosystem supply chain temporarily compromised" indicates the distribution channel has been attacked before, so pin versions and verify artifacts. License is Apache-2.0, which is permissive.

Verdict

Trivy is an established project, not a spike: created in 2019, now around 38.7k stars, and still showing monthly Go momentum (#14, +688) seven years in. The Aqua backing and broad ecosystem integrations mean it is unlikely to disappear. The caveat is that being a security tool makes it a target, and the past supply-chain incident is a reminder to consume it carefully. For most teams scanning containers and Kubernetes, it is a sensible default; evaluate it as one layer, not a complete AppSec program.

Hacker News

Trivy ecosystem supply chain temporarily compromised
▲ 102 · 37 comments · March 20, 2026
Trivy: A scanner for vulnerabilities in containers, file systems, and Git repos
▲ 41 · 6 comments · November 10, 2021
Trivy Security incident 2026-03-19
▲ 17 · 2 comments · March 20, 2026

Written by AI from the project's README, updated October 24, 2026. The project's own docs are the source of truth.