Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save adampielak/ecd431b1407bed954ff12a0778a05cc1 to your computer and use it in GitHub Desktop.

Select an option

Save adampielak/ecd431b1407bed954ff12a0778a05cc1 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