`kubescape scan framework nsa` scores your cluster at 41% and flags `Automatic mapping of service account` on almost every workload
BeginnerTroubleshootingDAST, runtime detection and compliance scans
Answer
Likely causes → By default every pod gets its ServiceAccount token mounted, even when the app never calls the Kubernetes API. A stolen token is then a free foothold.
Diagnose →
kubescape scan control C-0034 -v
kubectl get pods -A -o jsonpath='{range .items[*]}{.metadata.namespace}/{.metadata.name}: {.spec.automountServiceAccountToken}{"\n"}{end}'
Fix → Set automountServiceAccountToken: false on the ServiceAccounts or pod specs of apps that do not need the API. Keep it on only for controllers and operators, with minimal RBAC.
Prevent → A Kyverno mutate policy that defaults it to false unless a namespace opts in, plus Kubescape in CI on rendered manifests.
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