What do you want to do?
3 use cases
-
Scan a container image for known vulnerabilities
Run Trivy image on any image to list CVEs in its OS packages and dependencies.
View prompt
Install aquasecurity/trivy and scan my image <image:tag>. Summarize the critical and high vulnerabilities, which ones have fixed versions, and whether switching to <alternative base image> would remove most of them.
-
Check a project folder for vulnerabilities, secrets and misconfigurations
Run one Trivy fs command that looks for vulnerable dependencies, leaked secrets and IaC mistakes.
View prompt
Run aquasecurity/trivy fs with the vuln, secret and misconfig scanners on <project folder>. Group the findings by type, propose fixes for each, and list any secrets I must rotate.
-
Get a security summary of a Kubernetes cluster
Run Trivy k8s to scan a cluster and print a summary report of what needs attention.
View prompt
Using aquasecurity/trivy, run a summary scan of my current Kubernetes context and list the ten workloads with the most critical findings, with a suggested fix for each. Do not change anything in the cluster.
Quick start with Trivy
- Check you have what it needs: Trivy via `brew install trivy`, the aquasec/trivy Docker image, or a release binary; Access to the image, folder, repo or Kubernetes cluster you want to scan.
- Open aquasecurity/trivy on GitHub and read the README and license.
- Install with
brew install trivy, or usedocker run aquasec/trivy - Scan an image, for example
trivy image python:3.4-alpine - Read the results by severity and focus on the packages with fixes available
- Rebuild on a newer base image and scan again to confirm the count went down
These steps come from our top use case, Scan a container image for known vulnerabilities, which also has a copy-paste agent prompt.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for aquasecurity/trivy
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeAbout this repo
- Who it is forDevelopers, DevOps and platform teams who want to find vulnerable packages and misconfigurations before they ship.
- Why it is hot39k stars, talked about in 2 AI sources we track
- LanguageGo
- Sourcegithub.com/aquasecurity/trivy ยท Back to Hot repos
Requirements
- Trivy via `brew install trivy`, the aquasec/trivy Docker image, or a release binary
- Access to the image, folder, repo or Kubernetes cluster you want to scan
Add this badge to your README
Maintain Trivy? Show readers where to find these use cases.
Markdown
[](https://dedupedai.com/use-cases/aquasecurity-trivy/?utm_source=github&utm_medium=badge&utm_campaign=aquasecurity-trivy)
HTML
<a href="https://dedupedai.com/use-cases/aquasecurity-trivy/?utm_source=github&utm_medium=badge&utm_campaign=aquasecurity-trivy"><img src="https://dedupedai.com/badge/aquasecurity/trivy.svg" alt="Use cases on Deduped" height="20"></a>
A static image, no tracking script. About the badge
Questions about Trivy
What is Trivy?
Trivy is Aqua Security's open source security scanner. It scans container images, filesystems, remote git repositories, virtual machine images and Kubernetes clusters for known vulnerabilities (CVEs), software dependencies (SBOM), infrastructure as code misconfigurations, secrets and software licenses. It installs through Homebrew, Docker or a binary and integrates with GitHub Actions, a Kubernetes operator and VS Code. It is an open-source project on GitHub: https://github.com/aquasecurity/trivy.
How do I use Trivy?
Install with brew install trivy, or use docker run aquasec/trivy; then Scan an image, for example trivy image python:3.4-alpine; read the results by severity and focus on the packages with fixes available. The use cases on this page give the full steps and a copy-paste agent prompt for each job.
Who is Trivy for?
Developers, DevOps and platform teams who want to find vulnerable packages and misconfigurations before they ship.
What can I do with Trivy?
3 use cases so far, for example: Scan a container image for known vulnerabilities; Check a project folder for vulnerabilities, secrets and misconfigurations; Get a security summary of a Kubernetes cluster. Each has steps and a copy-paste agent prompt.
What do I need to run Trivy?
Trivy via `brew install trivy`, the aquasec/trivy Docker image, or a release binary; Access to the image, folder, repo or Kubernetes cluster you want to scan.
What are alternatives to Trivy?
Other hot AI repos in Security and science: Security Audit Skill, GPU Unlock, Syft, Esm, Alphafold3.
Is Trivy safe to run?
Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.