Trivy
SecurityComprehensive vulnerability scanner for containers and IaC
Release history
v0.71.1
CompareGitHub
Changelog
- 164b383 release: v0.71.1 [release/v0.71] (#10818)
- a72d9a4 fix(oci): validate artifact filename
- 3dd9847 fix: forward ospkg detector options through ospkg.NewScanner [backport: release/v0.71] (#10825)
- a62cbe4 fix(vex): load VEX documents from within the repository directory [backport: release/v0.71] (#10821)
- 43d1d26 fix: surface the original analysis error instead of context cancellation [backport: release/v0.71] (#10812)
- ac7696c ci: expect GitHub App bot as backport PR author [backport: release/v0.71] (#10815)
v0.26.0
CompareGitHub
Changelog
- a0047a79 feat(alpine): warn mixing versions (#2000)
- d786655a Update ASFF template (#1914)
- a02cf651 chore(deps): replace
containerd/containerdversion to fix CVE-2022-23648 (#1994) - 613e38cc chore(deps): bump alpine from 3.15.3 to 3.15.4 (#1993)
- 3b6d65be test(go): add integration tests for gomod (#1989)
- 22f5b938 fix(python): fixed panic when scan .egg archive (#1992)
- 485637c2 fix(go): set correct go modules type (#1990)
- 6fdb554a feat(alpine): support apk repositories (#1987)
- d9bddb90 docs: add CBL-Mariner (#1982)
- 1cf1873f docs(go): fix version (#1986)
- d77dbe8a feat(go): support go.mod in Go 1.17+ (#1985)
- 32bd1e48 ci: fix URLs in the PR template (#1972)
- 94a5a180 ci: add semantic pull requests check (#1968)
- 72d94b21 docs(issue): added docs for wrong detection issues (#1961)
v0.25.3
GitHub
Changelog
- d4e3df81 fix(downloadDB): add dbRepositoryFlag to repository and rootfs commands (#1956)
- 7e48cc1f fix(misconf): update BurntSushi/toml for fix runtime error (#1948)
- c9efa8c4 fix(misconf): Update fanal/defsec to resolve missing metadata issues (#1947)
- 52b71542 feat(jar): allow setting Maven Central URL using environment variable (#1939)
- 21f7a41b chore(chart): update Trivy version in HelmChart to 0.25.0 (#1931)
- ff2b3d17 chore(chart): remove version comments (#1933)
README
<div align="center"> <img src="docs/imgs/logo.png" width="200">
GitHub Release Test Go Report Card License: Apache-2.0 GitHub Downloads Docker Pulls
๐ Documentation </div>
Trivy (pronunciation) is a comprehensive and versatile security scanner. Trivy has scanners that look for security issues, and targets where it can find those issues.
Targets (what Trivy can scan):
- Container Image
- Filesystem
- Git Repository (remote)
- Virtual Machine Image
- Kubernetes
Scanners (what Trivy can find there):
- OS packages and software dependencies in use (SBOM)
- Known vulnerabilities (CVEs)
- IaC issues and misconfigurations
- Sensitive information and secrets
- Software licenses
Trivy supports most popular programming languages, operating systems, and platforms. For a complete list, see the Scanning Coverage page.
To learn more, go to the Trivy homepage for feature highlights, or to the Documentation site for detailed information.
Quick Start
Get Trivy
Trivy is available in most common distribution channels. The full list of installation options is available in the Installation page. Here are a few popular examples:
brew install trivydocker run aquasec/trivy- Download binary from <https://github.com/aquasecurity/trivy/releases/latest/>
- See Installation for more
Trivy is integrated with many popular platforms and applications. The complete list of integrations is available in the Ecosystem page. Here are a few popular examples:
Canary builds
There are canary builds (Docker Hub, GitHub, ECR images and binaries) generated with every push to the main branch.
Please be aware: canary builds might have critical bugs, so they are not recommended for use in production.
General usage
trivy <target> [--scanners <scanner1,scanner2>] <subject>Examples:
trivy image python:3.4-alpine<details> <summary>Result</summary>
https://github.com/user-attachments/assets/af1c11e7-d9c5-48af-8e05-cb34dfd6352a
</details>
trivy fs --scanners vuln,secret,misconfig myproject/<details> <summary>Result</summary>
https://github.com/user-attachments/assets/6b3894b7-77c5-4ffc-ac94-ffe6648a30dc
</details>
trivy k8s --report summary cluster<details> <summary>Result</summary>
</details>
FAQ
How to pronounce the name "Trivy"?
tri is pronounced like trigger, vy is pronounced like envy.
Want more? Check out Aqua
If you liked Trivy, you will love Aqua which builds on top of Trivy to provide even more enhanced capabilities for a complete security management offering. You can find a high level comparison table specific to Trivy users here. In addition check out the <https://aquasec.com> website for more information about our products and services. If you'd like to contact Aqua or request a demo, please use this form: <https://www.aquasec.com/demo>
Community
Trivy is an Aqua Security open source project. Learn about our open source work and portfolio here. Contact us about any matter by opening a GitHub Discussion here
Please ensure to abide by our Code of Conduct during all interactions.