How do you run a CIS benchmark check on Kubernetes nodes?
IntermediateProductionRapid-Fire Tool Questions
Answer
kubectl apply -f https://raw.githubusercontent.com/aquasecurity/kube-bench/main/job.yaml
kubectl logs job/kube-bench
# or on a node directly
kube-bench run --targets node
Use the EKS/GKE/AKS-specific job manifests or benchmarks for managed clusters, since control plane checks do not apply there.
More on Rapid-Fire Tool Questions
Gitleaks command to scan only staged changes before a commit?BeginnerTrivy command to fail a build only on fixable critical vulnerabilities?BeginnerGenerate a CycloneDX SBOM for an image with Syft and scan it with Grype?BeginnerCosign keyless verify command that pins the GitHub Actions workflow identity?IntermediateRun Checkov against a Terraform plan instead of raw HCL?BeginnerSemgrep command to scan with OWASP rules and fail on findings?Beginner