Dynamic Application Security Testing

Research
Introduced by
Various researchers
Year
2000s
Type
runtime vulnerability detection
Family
Software security testing

What does it do?

Dynamic Application Security Testing (DAST) is a security analysis technique that tests a running application by sending inputs and observing its responses to identify vulnerabilities.

Unlike static analysis, which inspects code without executing it, DAST finds problems that appear during execution, such as authentication weaknesses, insecure redirects, and some logic flaws that are visible in responses. It is most often applied to web applications and is a black-box approach because the tester needs no knowledge of the internal code structure. Its coverage of logic flaws depends on the parts of the application the scanner can reach.

The intuition behind the method

DAST behaves like an external attacker: it sends crafted inputs to a running application and examines what comes back. A typical run first discovers the application's endpoints and input fields by crawling, then submits attack payloads such as SQL injection strings, cross-site scripting vectors, and path traversal sequences to each one. A response that reveals database structure, reflects injected input in an unsafe way, or behaves unexpectedly suggests that the input was handled unsafely. Because the judgement rests on observed behavior rather than on code, the scanner can report only the parts of the application it actually reaches and exercises.

History

DAST developed in the 2000s, when it became clear that some vulnerabilities appear only at runtime. An early automated example is SecuBat, described by Kals and colleagues in 2006 as a modular web vulnerability scanner that, similar to a port scanner, automatically analyzes web sites for exploitable SQL injection and cross-site scripting flaws.

When to use it

Choose DAST when you need to test a deployed or near-deployed web application, particularly when source code is unavailable, as with third-party or closed-source systems. It suits pre-release checks that confirm security controls work from the outside, and retesting after a patch. It is most productive for web-specific classes of weakness, such as those in the OWASP Top 10. Do not rely on DAST alone when the question concerns code-level defects, because it cannot identify the line responsible. It is also a poor fit for non-web components, and for production systems where test traffic could cause disruption.

Limitations and considerations

  • Coverage is bounded by the crawl: pages, parameters, and features that the crawler does not reach, or that sit behind unsupported login flows, are not tested
  • Code paths reached only under rare conditions or error states are often not exercised, so their vulnerabilities may go unseen
  • A finding points to a faulty response, not to the faulty code, so developers need further work to locate the cause
  • Large applications take a long time to scan, because each input must be tried with several payloads

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Observes the application as deployed, so it can expose problems in server configuration, HTTP responses, and session handling that do not appear in the source code
  • Needs no source code or build access, which makes it usable on third-party and closed-source applications
  • Exercises the full request-response path, including authentication and multi-step user workflows, so it can reach flaws that depend on how the parts interact, provided the crawler can drive those workflows
  • Findings are based on responses an external client can actually trigger, so each one reflects observed runtime behavior; each still needs manual verification before it is treated as a confirmed vulnerability

Applications

  • Automated scanning of web applications within continuous integration pipelines
  • Pre-release security testing to find runtime vulnerabilities before deployment
  • Assessing third-party applications during vendor evaluation
  • Compliance-oriented scanning where a policy or standard requires security testing of web applications
  • Regression testing after security patches, to confirm that a fixed vulnerability no longer responds to the original payload

How it works

How it works

1

Point the scanner at a running instance of the application, ideally an isolated test copy, and supply credentials if restricted areas must be tested.

2

Follow links and submit forms to map the reachable endpoints, parameters, and input fields. Pages reachable only through multi-step workflows, or rendered by scripts, may be missed unless the crawler can handle them.

3

Send attack payloads, such as SQL injection strings, XSS payloads, path traversal sequences, and command injection attempts, to each input the crawler found. Some requests may modify data on the target, so the choice of payloads and the scope of the scan matter.

4

Review responses for indicators of successful exploitation, such as database error messages, reflected payloads, or unexpected behavior. Each indicator is a candidate finding that usually needs manual confirmation before it is treated as a vulnerability.

Common pitfalls

  • Web application firewalls and intrusion prevention systems can block or rewrite payload traffic. Blocked requests may hide real vulnerabilities, and block pages may be misread as application errors
  • High request volumes can trigger rate limiting or intrusion blocking, which then distorts results later in the same scan
  • Scans that submit state-changing requests can alter or delete data on the target, so they should run only against isolated copies
  • A shallow crawl leaves deeply nested or script-rendered functionality untested while the report still appears complete
  • Run DAST only against systems you are authorized to test, with a target scope agreed in advance, and preferably against an isolated test environment, because payloads can alter data or disrupt service

Frequently asked questions

How does DAST differ from static analysis (SAST)?

SAST analyzes code without running it and can locate defects in specific lines of code. DAST tests the running application and finds runtime issues, configuration problems, and logic flaws. The two address different parts of the problem, so they are often used together.

Can DAST find all vulnerabilities?

No. DAST only finds vulnerabilities in the code paths and inputs it reaches during testing. Complex logic branches, rarely used features, and code-level defects that do not show up in responses may be missed.

Why does DAST produce false positives?

A DAST finding is inferred from the response the application returns. Ordinary error pages, reflected text that is safely encoded, or a firewall block page can resemble a vulnerability indicator, so each finding should be verified before it is treated as exploitable.

Can I run DAST on production systems?

Not recommended. Attack payloads can trigger security alerts, disrupt services, or change data. Use an isolated copy of the production system instead, and test only systems you are authorized to test.

How long does DAST take?

It depends on the size and complexity of the application, the number of inputs the crawler finds, the number of payloads tried for each input, and any rate limiting on the target. Large applications generally take considerably longer than small ones; no general time estimate is given here.

Related methods

Sources

  1. Kals, S., Kirda, E., Kruegel, C., & Jovanovic, N. (2006). Secubat: A web vulnerability scanner. In Proceedings of the 15th International Conference on World Wide Web (WWW 2006), pp. 247-256.

    Open DOI reference
  2. McAllister, S., & Kirda, E. (2008). Vulnerability scanning web applications. In Web Application Security, pp. 201-230.

    Open publication reference