DAST in plain words

What is DAST?

DAST stands for dynamic application security testing: a tool tests a running web application or API from the outside by sending it crafted requests and watching the responses, the way an attacker would. It needs no access to source code, so it works on any stack, and it finds flaws that only show at runtime, such as misconfigured headers or broken authentication.

Updated

How a DAST scan runs

  1. Crawl. The scanner discovers pages, forms and API endpoints from a start URL or an API description such as an OpenAPI file.
  2. Attack. It sends payloads to each input, looking for injection, cross-site scripting, path traversal and similar flaws.
  3. Observe. It reads the responses for error messages, reflected payloads, timing differences and missing security headers.
  4. Report. Each finding comes with the request that triggered it.

Strengths and limits

DAST reports what is really reachable in a running app, so its findings are usually easy to reproduce. It cannot point to the line of code at fault, it only tests what its crawler reaches, and it needs a running environment, often with test accounts, so it tends to run later in the cycle than code scanning.

Common DAST tools

Open-source options include ZAP and Nuclei. Burp Suite from PortSwigger covers both manual testing and automated scanning. Commercial scanners include Invicti, whose Invicti Web + API was formerly sold as Acunetix.

Where pokayoke fits

pokayoke is not a DAST tool. It reads source code, which makes it a SAST tool, but it borrows DAST's best habit: it writes exploits and runs them, against your code and against a hardened copy, to prove what it can, and marks each finding proven or not. If you run a DAST scanner on your staging site, pokayoke covers the code side in the pull request.