Skip to content

Instantly share code, notes, and snippets.

@williamzujkowski
Created November 3, 2025 01:36
Show Gist options
  • Select an option

  • Save williamzujkowski/2b88c8b46eb919ca4563dfc314977cdd to your computer and use it in GitHub Desktop.

Select an option

Save williamzujkowski/2b88c8b46eb919ca4563dfc314977cdd to your computer and use it in GitHub Desktop.
CIS benchmark scanning commands for Docker and Kubernetes security auditing
#!/bin/bash
# Docker Bench Security
git clone https://github.com/docker/docker-bench-security.git
cd docker-bench-security
sudo sh docker-bench-security.sh
# Kubernetes kube-bench
kubectl apply -f https://raw.githubusercontent.com/aquasecurity/kube-bench/main/job.yaml
kubectl logs job/kube-bench
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment