OS Manuals

/usr/bin/kubescape

Kubescape is an open-source Kubernetes security platform for your IDE, CI/CD pipelines, and clusters. It includes risk analysis, security, compliance, and misconfiguration scanning, saving Kubernetes users and administrators precious time, effort, and resources.

From kubescape 4.0.20-r2 (os), captured 2026-11-10 by running kubescape --help (exit 0). permalink

Kubescape is a tool for testing Kubernetes security posture. Docs: https://kubescape.io/docs/

Usage:
  kubescape [command]

Examples:

  # Scan a Kubernetes cluster or YAML files for image vulnerabilities and misconfigurations
  kubescape scan

  # List supported controls
  kubescape list controls

  # Download artifacts (air-gapped environment support)
  kubescape download artifacts

  # View cached configurations
  kubescape config view


Available Commands:
  completion    Generate autocompletion script
  config        Handle cached configurations
  decrypt       Decrypt a report produced by kubescape scan --encrypt
  diff          Compare two Kubescape scan JSON reports and show what changed
  download      Download artifacts,attack-tracks,control,controls-inputs,exceptions,framework
  fix           Propose a fix for the misconfiguration found when scanning Kubernetes manifest files
  help          Help about any command
  list          List the supported frameworks, controls and control configuration
  mcpserver     Start the Kubescape MCP server
  operator      The operator is used to communicate with the Kubescape Operator within the cluster components.
  patch         Patch container images to fix known OS-level vulnerabilities
  policy        Author and test custom Rego controls
  predict       Predict the impact of security policy enforcement
  prerequisites Check prerequisites for installing Kubescape Operator
  scan          Scan a Kubernetes cluster or YAML files for image vulnerabilities and misconfigurations
  update        Update to latest release version
  vap           Helper commands for managing Validating Admission Policies in a Kubernetes cluster
  version       Get current version

Flags:
      --cache-dir string      Cache directory [$KS_CACHE_DIR] (default "/tmp/.kubescape")
  -h, --help                  help for kubescape
      --kube-context string   Kube context. Default will use the current-context
  -l, --logger string         Logger level. Supported: debug/info/success/warning/error/fatal [$KS_LOGGER] (default "info")
      --server string         Backend discovery server URL

Use "kubescape [command] --help" for more information about a command.
Options (5)
OptionDescriptionSource
--cache-dir stringCache directory [$KS_CACHE_DIR] (default "/tmp/.kubescape")help
-h, --helphelp for kubescapehelp
--kube-context stringKube context.help
-l, --logger stringLogger level.help
--server stringBackend discovery server URLhelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.