kube-bench fails `Ensure that the --protect-kernel-defaults argument is set to true` on every node, but setting it makes the kubelet refuse to start
IntermediateTroubleshootingDAST, runtime detection and compliance scans
Answer
Likely causes → With protectKernelDefaults: true, the kubelet will not start if kernel sysctls differ from what it expects (vm.overcommit_memory=1, kernel.panic=10, kernel.panic_on_oops=1, vm.panic_on_oom=0).
Diagnose →
journalctl -u kubelet | grep -i "protect-kernel-defaults\|sysctl"
sysctl vm.overcommit_memory kernel.panic kernel.panic_on_oops vm.panic_on_oom
Fix → Set the sysctls in the node image or user data first (/etc/sysctl.d/90-kubelet.conf), then enable protectKernelDefaults: true in the kubelet config.
Prevent → Bake CIS node settings into the golden AMI and run kube-bench in the image pipeline, not only on live clusters.
More on DAST, runtime detection and compliance scans
The ZAP baseline scan of your React SPA finishes in 40 seconds with only header warnings and no real findingsIntermediateThe authenticated ZAP full scan only ever tests the login page and `/logout`, and the report shows mostly `302` responsesIntermediate`zap-baseline.py` fails the pipeline with exit code 2 even though the report has no high-risk alertsBeginnerThe DAST job reports nothing, and its log shows mostly `403` and `429` responsesBeginnerAn active DAST scan against staging created 12,000 junk records and sent password-reset emails to real customer addresses copied from prodIntermediateNuclei runs in CI against staging and reports nothing for a known exposed `/.git/config`Beginner