What is the difference between a ZAP baseline scan and a full scan?

BeginnerConceptOWASP ZAP
Answer

Short answer

A baseline scan spiders the app for a short time and runs only passive checks — it doesn't attack anything, so it's fast (a few minutes) and safe for frequent runs. A full scan spiders (optionally with the AJAX spider) and then runs an active scan that sends attack payloads — it takes much longer and can change data, so run it only against test environments.

Comparison

Baseline (zap-baseline.py) Full (zap-full-scan.py)
Attacks the app ❌ passive only ✅ active attacks
Duration ~1–5 min 30 min – hours
Risk Very low Can create/modify data, load the app
Finds Headers, cookies, info leaks, insecure config Plus XSS, SQLi, injection, path traversal
Run Every deployment to staging/PR environments Nightly/weekly on dedicated test env

API scan

zap-api-scan.py imports an OpenAPI/Swagger, GraphQL or SOAP definition and actively scans each endpoint — better than spidering for APIs.

What to say in the interview

"Baseline is passive and quick, safe to run on every staging deployment; full scan actively attacks the app and runs nightly against an isolated test environment; API scan uses the OpenAPI spec to cover endpoints a spider can't find."

All Security Tools questions Roadmap: OWASP ZAP — dynamic testing (DAST)

More on OWASP ZAP