Dynamic application security testing, or DAST, is black-box testing of a running application from the outside. A scanner sends crafted requests, including malicious payloads, and watches the responses for signs of injection, broken authentication, misconfiguration and other flaws. It needs no source code, finds runtime issues, and fits best in CI/CD against staging or ephemeral test environments.
Key takeaways
- DAST tests a running app from the outside, with no source code, exactly as an attacker would.
- It is strongest on injection, misconfiguration and authentication flaws that only appear at runtime.
- Run it in CI/CD against staging, with authenticated scans and an API spec, and gate only on confirmed high and medium findings.
Your code can pass every review and still be vulnerable when it runs. Configuration, authentication, session handling and the way components interact only exist at runtime, and that is exactly what dynamic application security testing checks.
What is dynamic application security testing?
Dynamic application security testing, or DAST, examines a running application from the outside. It is a black-box technique that sends crafted requests and observes responses, exactly as an attacker would.
Because it tests the deployed, integrated application, DAST finds vulnerabilities that only appear at runtime: configuration issues, authentication and session flaws, and problems arising from how components interact. OWASP describes it this way in its DevSecOps Guideline on DAST.
The scanner needs no source code and no knowledge of the framework underneath. That makes DAST language-agnostic and useful against third-party and compiled applications, not just your own code.
How does DAST scanning work?
A DAST scan works in three phases against the live application: crawl, passive checks, then active checks. Each phase limits what the next one can find, so a scan that never authenticates only tests the public surface.
First, the scanner discovers what to test. It crawls links and forms, and it imports an API definition or recorded traffic where you give it one. Without that, it cannot find endpoints that have no links pointing to them.
Next, passive checks observe responses without attacking: missing security headers, weak cookie attributes, verbose errors and exposed version strings. Passive mode is safe in shared environments because it sends no attack payloads.
Finally, active checks send malicious payloads and read what comes back. For example, the scanner may send a SQL payload in a user ID field and look for a database error in the response, which suggests a possible injection point that must then be verified.
What does DAST find?
DAST is strongest on the injection family. SQL injection and cross-site scripting are its textbook targets, and both sit near the top of common weakness lists. It also catches server misconfiguration, weak authentication handling and exposed secrets.
| Flaw type | How DAST spots it | Example |
|---|---|---|
| SQL injection | Error or timing change in the response | Database error after a crafted input |
| Cross-site scripting | Payload reflected in the response | Script tag returned unencoded |
| Broken authentication | Session behaviour under test | Session token not rotated after login |
| Misconfiguration | Headers and error pages | Missing CSP or HSTS header |
| Exposed data | Verbose errors and responses | Stack trace leaking internal paths |
| SSRF and open redirects | Server-side request behaviour | URL parameter fetching internal hosts |
OWASP lists what DAST helps detect as injection flaws, authentication and session weaknesses, security misconfigurations, missing security headers, exposed sensitive data, and server-side issues such as SSRF, open redirects and path traversal. Business logic flaws in multi-step workflows can also surface when scans are guided by test scripts.
You can check one part of this yourself in seconds: run our free security headers checker against your site to see whether headers such as CSP and HSTS are present.
DAST vs SAST: what is the difference?
SAST reads code, while DAST exercises the deployed result. That single difference explains their strengths, their limits and why teams use both.
| Question | DAST | SAST |
|---|---|---|
| What it sees | Running app, from outside | Source code, before it runs |
| Needs source code? | No | Yes |
| Finds runtime issues? | Yes | No |
| Points to the exact line? | No | Yes |
| When it runs | Test and release, against a deployment | During development, in the IDE or CI |
| False positives | Low for confirmed findings | Higher, needs triage |
SAST finds flaws early, when they are cheapest to fix, and it can point to the exact vulnerable line. DAST finds what SAST cannot see: the configuration of the deployed app, the behaviour of third-party components, and flaws that only appear when the system runs as a whole.
Use SAST on every commit and DAST on every release candidate. Together they cover the code view and the attacker view, as the Socket DAST glossary explains. Check your live site with the free SSL checker.
How is DAST different from penetration testing?
DAST is automated scanning of a running web application from the outside. A penetration test is a human-led assessment in which a tester uses skill, creativity and context to find and chain flaws, including business logic issues that no scanner understands.
DAST finds known, pattern-shaped flaws cheaply and on every build: many injection and cross-site scripting issues, misconfiguration, weak headers and cookies. A penetration tester finds what DAST structurally misses, such as insecure direct object references, chained flaws and business logic abuse, because the tester knows what the application is supposed to permit.
The two are not rivals. Run DAST continuously so your penetration testers spend their time on the hard problems instead of re-finding the same missing header for the fifth time. If your team is small, start with DAST and schedule a penetration test once or twice a year.
How do I run DAST in CI/CD?
Run DAST against an ephemeral test or staging environment on each release candidate, not against production. Spin up the full stack, run the scan, report findings as a pull request comment, then tear the environment down.
- Deploy to an ephemeral environment for the pull request or release candidate, with realistic seeded test data.
- Run a baseline scan first. ZAP offers a baseline scan that is passive and safe for shared environments, with ready-made GitHub Actions.
- Run a full active scan as a release gate. Block the release only on new high or critical findings, not on every old issue at once.
- Feed the scanner an API spec. Give it your OpenAPI 3.x or GraphQL schema so it understands modern API surfaces instead of relying on crawling.
- Configure authenticated scans. Pass credentials, session cookies or OAuth tokens so the scanner reaches protected functionality.
- Baseline known findings. Commit a rules file that suppresses accepted issues, so only new issues break the build.
- Tear down on failure. Always destroy the ephemeral environment, even if the scan fails.
OWASP notes that ZAP, formerly OWASP ZAP and since 2024 ZAP by Checkmarx, provides ready-made GitHub Actions for baseline, full and API scans, and advises pinning action versions to a commit SHA. A full active scan against a complex app can take 30 to 60 minutes, so use a targeted policy that covers the highest-risk rules in under 10 minutes for pull request feedback.
NIST guidance on minimum standards for developer verification recommends that software providing a web service be checked with a DAST tool such as a web application scanner, or an IAST tool. That is a useful line to quote when you need budget for the work.
Why do authenticated scans matter so much?
Most of a real application sits behind a login. A scan that never authenticates only tests the public surface, which may be about 10 percent of the actual attack surface, according to OWASP.
Configure credentials, session cookies or OAuth tokens so the scanner reaches protected functionality. For anything beyond a static token, use ZAP Automation Framework plan files, which define the context, authentication method, users, spiders and scan jobs in one versioned YAML file.
Test every user role, not just an admin account. Broken access control, which leads the OWASP Top 10, is often a difference between roles: a normal user can reach an admin endpoint, or one user can read another user data. An unauthenticated scan will never see that.
For multi-step flows, record a browser session as a HAR file and import it so the scanner learns the authenticated, multi-step requests. Check regularly how much of your app the scanner actually reached, by looking at scan coverage: pages and endpoints reached, not just the number of findings.
How do I handle DAST false positives?
DAST produces false positives when it misinterprets safe behaviour as a vulnerability, for example flagging a reflected query parameter as cross-site scripting when the output is properly encoded. Do not ignore them, and do not treat every alert as a real flaw either.
Use a rules file to set each rule to ignore, info, warn or fail, or to mark URLs out of scope. Baseline known findings so accepted issues stay at ignore or warn and only new, unreviewed alerts break the build. Gate only on high and medium confirmed findings, and route informational findings to a triage queue.
For any flagged finding, review the exact request and response the scanner recorded. Always verify by replaying the request before you escalate it to developers. A finding with a reproducible request and response is evidence; a finding without one is a lead.
Track your false-positive rate, scan coverage and mean time to remediate by severity. A high false-positive rate signals that your scan needs better configuration, not that DAST is useless.
What are the common DAST mistakes?
The most common mistake is scanning only the homepage. Without authentication or a proper sitemap, DAST covers almost nothing meaningful, and a clean report means nothing.
- Running active DAST against production. Active scanning sends attack payloads. Always run against isolated test environments.
- Ignoring informational findings. Missing security headers and verbose error messages are exploited in real attacks, so do not filter them out entirely.
- Not baselining known findings. Without a baseline, every run floods the team with the same old issues and the new ones get buried.
- Skipping API surfaces. Modern applications expose most of their logic through APIs, and without an OpenAPI spec feed DAST will miss most of the attack surface.
- Treating a timed-out scan as a pass. Always check scan completion status, not just the exit code.
- Tuning scope too narrowly. Restrict scope to the application under test, but do not exclude whole areas just to get a clean report.
Which DAST tools should I start with?
Start free, then pay only when you outgrow the free tool. ZAP is the default starting point for most teams: free, open source, scriptable, and the most widely used open-source DAST tool, with strong CI/CD integrations.
Other open-source options include Nuclei, a fast template-based scanner with a large community template library, ideal for targeted checks and CVE-specific validation, and Nikto, a web server scanner for known vulnerabilities and misconfigurations. Burp Suite DAST, from PortSwigger, is the commercial option built on the Burp scanning engine, with scheduled and CI-driven scans and authenticated crawling of modern single-page applications.
OWASP keeps a list of DAST tools and states that it does not endorse any vendor or tool by listing them. Choose by your stack, your CI system and whether you need support, not by a marketing claim. Our small business cybersecurity checklist can help you place DAST alongside the other controls a small team needs.
The bottom line
DAST shows you what an attacker sees: your running application, with its real configuration, real authentication and real data flows. It is not a replacement for code review or penetration testing, but it is the cheapest way to catch runtime flaws on every release.
Start with a ZAP baseline scan against staging, add authenticated scans and an API spec, and gate releases on new high and medium findings. You can check your own site headers today with the free security headers checker.
Frequently asked questions
What does DAST stand for?
DAST stands for dynamic application security testing. It tests an application while it runs, by sending requests and reading the responses, with no access to the source code. OWASP describes web application vulnerability scanners as tools that are frequently called DAST tools.
What is the difference between DAST and SAST?
SAST reads source code and finds flaws before the app runs. DAST exercises the deployed, running application from the outside. SAST can point to the exact line of code, while DAST shows what an attacker can actually exploit. Most teams use both.
What is DAST vs IAST?
IAST, or interactive application security testing, runs an agent inside the application while it is exercised by tests or real use, so it sees inside the code at runtime. DAST stays outside and only sees requests and responses. IAST gives deeper detail, while DAST works on any running app, including third-party software.
What vulnerabilities does DAST find?
DAST finds injection flaws such as SQL injection and cross-site scripting, authentication and session flaws, broken access control that shows in responses, security misconfigurations, missing security headers, exposed data and verbose errors. It is weaker on business logic flaws and code paths the scanner never reaches.
Can DAST test APIs?
Yes, if you feed it an API definition. Give the scanner an OpenAPI 3.x, Swagger or GraphQL schema so it understands your endpoints. Without a schema, a crawler will miss most of an API, because APIs have few links to follow.
Is it safe to run DAST against production?
No, not active DAST. Active scanning sends attack payloads that can change data, trigger emails or break things. Run active scans against isolated test or staging environments, and use passive-only scanning if you want to observe production.
How often should I run DAST?
Run a fast passive baseline scan on every pull request, and a full active scan against an ephemeral environment for each release candidate. Many teams also run a nightly scan against staging so new issues surface within a day.
What is the best free DAST tool to start with?
ZAP, formerly OWASP ZAP and now ZAP by Checkmarx, is the standard free, open-source DAST tool. It offers baseline, full and API scans, ready-made GitHub Actions, and an Automation Framework for authenticated scans. Start with its baseline scan, then move to full scans.
Sources
The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.
Checked against the OWASP DevSecOps Guideline on DAST and NIST guidance on developer verification.
How we write and fact-check →