Interview Prep/DevSecOps/Application Security Testing (SAST, DAST, SCA, Secrets)

Why must you authenticate a DAST scan, and how is it done?

AdvancedConceptApplication Security Testing (SAST, DAST, SCA, Secrets)
Answer

Unauthenticated scans only see the login page and public routes, which is a small fraction of the attack surface. Authenticated scanning covers the real functionality.

With ZAP you define a context, an authentication method (form, JSON, script, header-based) and a user, plus a logged-in indicator regex so ZAP can detect session loss, usually driven from an automation framework YAML. Use a dedicated low-privilege test account and a throwaway environment, because active scans create and modify data.

All DevSecOps questions Roadmap: Security in the pipeline

More on Application Security Testing (SAST, DAST, SCA, Secrets)