Scan a filesystem for serious issues

Scan the current directory and show only HIGH and CRITICAL findings.

trivy fs --severity HIGH,CRITICAL .

tool
trivy15 commands
tags
trivysecurity

More trivy commands

  • trivy k8s --report summary cluster

    Security audit of the whole cluster: images, configs, RBAC

  • trivy k8s --namespace production --report summary all

    Scan workloads only in the production namespace.

  • trivy config ./my-chart

    Check Helm chart templates for insecure settings.

  • trivy image --format json -o results.json img:tag

    Save image scan results to a JSON file for scripts and other tools.

  • trivy config --severity MEDIUM,HIGH,CRITICAL ./terraform

    Find configuration mistakes in Terraform, Kubernetes and Helm code, from MEDIUM severity up.

all 15 trivy commands