Skip to main intelligence content
SOURCES: CISA KEV + NIST NVD 2.0 + FIRST EPSS
LOOT & EXPLOITS
DEFENSIVE VULN & TOOL TRIAGE

PAID STACK WATCH · $99/year or $12/month

Back to The Loot Arsenal
Last Verified: 2026-11-12

Trivy

Comprehensive vulnerability, SBOM, and misconfiguration scanner

LicenseApache-2.0
Difficulty LevelBeginner
Supported OSLinux, Windows, macOS
Verification Date2026-11-12

WHAT IS IT?

Trivy is an open-source vulnerability and misconfiguration scanner maintained by Aqua Security that inspects OS packages (Alpine, Debian, RHEL, Arch) and application lockfiles (npm/pnpm, pip, Go, Cargo, Maven).

WHY USE IT? // PRACTICAL USE CASES

Shipping containers or lockfiles without checking transitive dependencies routinely exposes applications to known exploited CVEs. Trivy runs locally from a single binary without requiring a SaaS account.

Verified Operational Use Cases:
  • [1] Scanning OCI container images (`trivy image`) for OS package and language dependency CVEs before deployment
  • [2] Generating CycloneDX or SPDX Software Bills of Materials (SBOMs)
  • [3] Auditing Dockerfile, Kubernetes, and Terraform files for privilege escalation misconfigurations
  • [4] Scanning lockfiles (`pnpm-lock.yaml`, `Cargo.lock`, `requirements.txt`) in CI/CD

HOW DO I GET IT? // SAFE INSTALLATION GUIDANCE

Install from official distribution repositories (`pacman -S trivy`) or official signed GitHub releases at `github.com/aquasecurity/trivy/releases`.

Supply-Chain Hygiene: Always verify package signatures via your OS package manager or validate SHA-256 digests on official release artifacts. Never pipe uninspected remote shell scripts into `sudo sh`.

HOW DOES IT WORK? // INTERNAL ARCHITECTURE OVERVIEW

Trivy parses container image layers and package manager databases (`/lib/apk/db/installed`, `/var/lib/dpkg/status`, lockfiles) and correlates exact package versions against a locally cached, regularly updated vulnerability database (`trivy-db`).