{
 "schema_version": 1,
 "generated": "2026-10-31",
 "id": "aquasecurity-trivy--get-a-security-summary-of-a-kubernetes-cluster",
 "repo": "aquasecurity/trivy",
 "repo_url": "https://github.com/aquasecurity/trivy",
 "repo_slug": "aquasecurity-trivy",
 "title": "Get a security summary of a Kubernetes cluster",
 "page_title": "How to get a security summary of a Kubernetes cluster with Trivy",
 "summary": "Run Trivy k8s to scan a cluster and print a summary report of what needs attention.",
 "who": "A platform engineer who wants a quick security overview of a cluster without buying a commercial tool.",
 "problem": "Clusters run many images and manifests, and nobody has a clear picture of their combined risk.",
 "outcome": "A summary report across the cluster that points to the workloads to fix first.",
 "steps": [
  "Install Trivy and make sure your kubectl context points at the cluster you want to scan",
  "Run `trivy k8s --report summary cluster`",
  "Review the summary to find the workloads with the most serious findings",
  "Fix images and manifests, starting with the highest severities",
  "For continuous scanning, look at the Trivy Kubernetes operator in the Ecosystem page"
 ],
 "agent_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.",
 "agents": [
  "claude-code",
  "codex",
  "cursor"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "Scanning a large cluster can take a while and pulls image data, so try it on a test cluster first.",
 "category": "Security and science",
 "tags": [
  "Security and science"
 ],
 "lang": "go",
 "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"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "credentials",
   "notice": "The scan uses your current kubeconfig credentials, so run it against the intended cluster with read access only."
  }
 ],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/aquasecurity-trivy/get-a-security-summary-of-a-kubernetes-cluster/",
 "md": "https://dedupedai.com/use-cases/aquasecurity-trivy/get-a-security-summary-of-a-kubernetes-cluster/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/aquasecurity-trivy--get-a-security-summary-of-a-kubernetes-cluster.json",
 "api_version": "v1"
}
