Scan with JSON output

Machine-readable vulnerability scan results

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

tool
trivy15 commands
tags
trivysecurity

More trivy commands

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

    Find misconfigurations in Terraform/Kubernetes/Helm code

  • trivy image --ignore-unfixed --severity HIGH,CRITICAL img:tag

    Skip vulnerabilities that have no fix available yet

  • trivy image --download-db-only

    Pre-download the latest vulnerability database

  • trivy fs .

    Scan the current directory for vulnerabilities

  • trivy k8s --report summary cluster

    Scan the entire Kubernetes cluster for vulnerabilities and misconfigs

all 15 trivy commands