https://github.com/bridgecrewio/checkov
apt install python3-pip
pip3 install checkov
vi private-pod.yaml
apiVersion: v1
kind: Pod
metadata:
name: privileged
spec:
containers:
- image: nginx
name: test-pod
securityContext:
privileged: true
checkov -f private-pod.yaml