Scan filesystem

Scan a local directory for vulnerabilities and misconfigs

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 a specific namespace

  • trivy config ./my-chart

    Check Helm chart templates for security misconfigurations

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

    Machine-readable vulnerability scan results

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

    Find misconfigurations in Terraform/Kubernetes/Helm code

all 15 trivy commands