kube-bench
$ kube-bench Official Low Riskkube-bench audits Kubernetes master, worker, etcd, and policy configurations against the CIS Kubernetes Benchmark. It supports --json, --outputfile, --targets, and targeted --check IDs, running on nodes or via Kubernetes Jobs.
brew install kube-bench kube-bench inspects host /etc/kubernetes, kubelet flags, and file permissions directly on cluster nodes where an MCP server lacks host-level access.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports --json, --junit, --outputfile, --targets, and --check IDs for non-interactive automation, though requires host/node execution context.
- Supports
--json,--outputfile,--targets, and--check
Strictly read-only compliance auditing on host configs; only --asff sends findings externally to AWS Security Hub.
- Read-only host configuration and process inspection
Available via Homebrew and Linux releases, but meaningful CIS checks must execute on Linux Kubernetes nodes (or via a host-mounted Pod/Job) alongside YAML benchmark configs.
- Requires Linux node host paths and matching
cfg/YAML definitions
Automates hundreds of tedious CIS Kubernetes Benchmark checks with clear pass/fail/warn statuses.
- Covers vanilla K8s, EKS, GKE, AKS, OpenShift, and DISA STIG
Official Aqua Security (aquasecurity/kube-bench) project under Apache-2.0.
- Official
aquasecurity/kube-benchrepository
Well-structured documentation at aquasecurity.github.io/kube-bench/ covering flags and platforms.
- Docs at aquasecurity.github.io/kube-bench/
Security, Auth & Guardrails
Inspects local node config files and processes directly on the host; optional --asff mode uses AWS IAM credentials to push findings to Security Hub.
CLI is free (Apache-2.0) and open-source.
# kube-bench Agent Rules - Always pass `--json` (and `--outputfile` when saving) for clean structured parsing. - Use `--targets node` on managed Kubernetes (EKS/GKE/AKS) where control-plane nodes are inaccessible. - Avoid `--asff` unless pushing findings to AWS Security Hub is explicitly requested.
Agent-Ready Command Recipes
Safe Read-Only Queries
kube-bench run --targets node --json --noremediations
Executes CIS worker-node checks in read-only mode and outputs compact JSON.
kube-bench run --targets master,node --check 1.2.1,4.2.1 --json --outputfile cis-report.json
Targets exact CIS control numbers and saves structured JSON to disk.
Strengths for Agents
- + Structured
--jsonand--junitoutput with granular--targetsand--checkfiltering. - + Supports vanilla Kubernetes plus EKS, GKE, AKS, and OpenShift benchmarks.
- + Strictly read-only inspection of node security posture.
Caveats & Pitfalls
- ! Must run on the target Linux node (directly or via a host-mounted Kubernetes Job) to inspect
/etc/kubernetesandkubelet. - ! Control-plane (
master,etcd) checks fail or are inapplicable on managed services like EKS/GKE/AKS.