Explore our new Cybersecurity Terms Glossary, explained by our experts.

View the Glossary View the Glossary
PRIVIA

Cybersecurity Terms Glossary

What Is Trivy?

Trivy is an open-source scanner from Aqua Security that finds vulnerabilities, misconfigurations, exposed secrets, and licence issues across container images, filesystems, repositories, and clusters.

Illustration for the cybersecurity term Trivy
Home / Blog / Cybersecurity Terms / What Is Trivy?
17 November 2026

What Is Trivy?

What Is Trivy?

Trivy is an open-source security scanner from Aqua Security, written in Go and distributed as a single binary under the Apache 2.0 licence. One command scans a container image, a directory, a git repository, a virtual machine image, or a running Kubernetes cluster, and it looks for four different classes of problem at once: known vulnerabilities in packages, misconfigurations in infrastructure code, exposed secrets, and licence obligations.

That breadth is deliberate and is why it has become the default scanner in a great many pipelines. Tools that each solve one of those problems require four integrations, four report formats, and four sets of suppression rules.

Scanning an Image

trivy image --severity HIGH,CRITICAL --ignore-unfixed --exit-code 1 acme/api:1.4.2

Three flags carry most of the practical weight. --severity narrows output to what you intend to act on. --exit-code 1 makes the pipeline fail. And --ignore-unfixed hides vulnerabilities for which no fixed version exists yet, which is the difference between a list of actions and a list of facts — a base image routinely contains a dozen unfixable low-severity issues that no amount of rebuilding will resolve.

Trivy identifies operating system packages from Alpine, Debian, Ubuntu, Red Hat, Amazon Linux, SUSE, Photon, and others, and language dependencies for npm, Python, Go, Java, Ruby, PHP, Rust, .NET, and more, including dependencies compiled into Go and Rust binaries where no manifest is present.

More Than One Scanner in One Binary

The Trivy Operator takes this into the cluster itself, scanning workloads continuously and publishing results as Kubernetes custom resources, so a security report is something you query with kubectl rather than export from a dashboard.

Two Operational Traps

The first is the vulnerability database. Trivy downloads it as an OCI artefact from a public registry, and that registry applies rate limits. A busy pipeline running dozens of scans an hour from a shared network address will eventually start failing on database downloads rather than on findings. Mirror the database into your own registry and set TRIVY_DB_REPOSITORY, or cache it between runs.

The second is noise during adoption. The first scan of a mature image produces hundreds of findings, most of them unfixable and low severity, and the usual reaction is to disable the step. Begin with critical severity and fixed vulnerabilities only, get that to zero, then widen. Persistent exceptions belong in .trivyignore or a trivyignore.yaml with an expiry date and a stated reason, not in a pipeline flag.

Trivy, Grype, and Snyk

The closest open-source comparison is Grype and Syft, which split inventory generation from vulnerability matching into two composable tools. Trivy does more in one binary and is easier to adopt; the Anchore pair fits better into an SBOM-centred process where the inventory is a first-class artefact. Commercial platforms such as Snyk add central reporting, reachability analysis, and support, which matters more as the number of repositories grows than as the number of scanners does.

For UK organisations, a scheduled image scan with results feeding a patching process is the straightforward way to evidence the Cyber Essentials expectation that high and critical vulnerabilities are addressed within 14 days of a fix being available, and it is the control auditors most often ask to see for container security.

FAQ – Frequently Asked Questions

Is Trivy Free?

Yes. Trivy is open source under the Apache 2.0 licence with no feature gating, no account, and no scan limits, and the full vulnerability database is publicly available. Aqua Security sells a commercial platform that adds central management, runtime protection, and reporting across an estate, but the scanner itself is complete and widely used in production without any paid component.

What Does the Ignore-Unfixed Flag Do?

It hides vulnerabilities that have no fixed version available from the package maintainer. Those findings are real but not actionable, and they typically make up most of the output for a mature base image. Filtering them produces a list a team can work through. Review them separately on a schedule, because a previously unfixable issue becomes actionable the moment a patch is published.

Why Does Trivy Fail to Download Its Database in CI?

Because the database is pulled from a public container registry that enforces rate limits, and a pipeline making many scans from the same network address exhausts them. Mirror the database into your own registry and point Trivy at it with the database repository environment variable, or cache the database directory between pipeline runs. This is the single most common operational complaint about the tool.

Should I Use Trivy or Grype?

Trivy if you want one tool covering vulnerabilities, misconfigurations, secrets, and licences with minimal integration effort. Grype paired with Syft if you want to treat the software bill of materials as a durable artefact that you sign, store, and re-scan later against new vulnerability data. Both are well maintained and free, and the choice is mostly about how your pipeline is organised.

Related Terms

You May Be Interested In These

What Is Airport Operations System Security?

Cybersecurity Terms

17 November 2026

What Is Airport Operations System Security?

Read More
What Is Industrial IoT?

Cybersecurity Terms

17 November 2026

What Is Industrial IoT?

Read More
What Is Side-Channel Resistant Implementation?

Cybersecurity Terms

17 November 2026

What Is Side-Channel Resistant Implementation?

Read More