Audit a Kubernetes cluster

Run a security audit of the whole cluster (images, configs, RBAC) and show a summary.

trivy k8s --report summary cluster

tool
trivy15 commands
tags
trivysecurityk8sscan

More trivy commands

  • trivy image --format sarif --output results.sarif myimage:tag

    Save scan results in SARIF format for CI and IDE integrations.

  • trivy config .

    Check IaC config files in the current directory for configuration mistakes.

  • trivy image --severity HIGH,CRITICAL myimage:tag

    Show only HIGH and CRITICAL vulnerabilities in an image.

  • trivy image --ignore-unfixed myimage:tag

    Skip vulnerabilities that have no fix yet.

  • trivy sbom ./sbom.json

    Scan a Software Bill of Materials (SBOM) file for vulnerabilities.

all 15 trivy commands