Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

kube-bench

$ kube-bench Official Low Risk
Aqua Security · Cloud & Infra · Apache-2.0 · linux / macos

kube-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.

FCRS-1.0 Score
85 /100
Good
Medium Confidence
Zero-Friction Install
brew install kube-bench
CLI vs MCP Decision CLI Only

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

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 21 / 25

Supports --json, --junit, --outputfile, --targets, and --check IDs for non-interactive automation, though requires host/node execution context.

  • Supports --json, --outputfile, --targets, and --check
Trust & Safety 22 / 25

Strictly read-only compliance auditing on host configs; only --asff sends findings externally to AWS Security Hub.

  • Read-only host configuration and process inspection
Setup & Portability 12 / 15

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
Utility & Efficiency 13 / 15

Automates hundreds of tedious CIS Kubernetes Benchmark checks with clear pass/fail/warn statuses.

  • Covers vanilla K8s, EKS, GKE, AKS, OpenShift, and DISA STIG
Maintenance & Lineage 9 / 10

Official Aqua Security (aquasecurity/kube-bench) project under Apache-2.0.

  • Official aquasecurity/kube-bench repository
Docs & Verifiability 8 / 10

Well-structured documentation at aquasecurity.github.io/kube-bench/ covering flags and platforms.

  • Docs at aquasecurity.github.io/kube-bench/

Security, Auth & Guardrails

Auth Modes
No Auth Config File
Credential Storage

Inspects local node config files and processes directly on the host; optional --asff mode uses AWS IAM credentials to push findings to Security Hub.

Side Effects
Read-Only Local Write
Cost & Quotas

CLI is free (Apache-2.0) and open-source.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Run CIS node benchmark checks and output JSON
kube-bench run --targets node --json --noremediations

Executes CIS worker-node checks in read-only mode and outputs compact JSON.

Run specific CIS check IDs and save JSON report
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 --json and --junit output with granular --targets and --check filtering.
  • + 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/kubernetes and kubelet.
  • ! Control-plane (master, etcd) checks fail or are inapplicable on managed services like EKS/GKE/AKS.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI