Application Security Testing
Different testing tools find different flaws at different stages. This lesson compares SAST, DAST, SCA and IAST and shows how they fit together.
Learning outcomes
After completing this lesson, you will be able to:
- Compare SAST, DAST, SCA and IAST.
- Choose a testing approach for a given situation.
The four main tool types
Static application security testing (SAST) analyses source code, bytecode or binaries without running them. It finds flaws early and points to the exact line, but produces false positives and cannot see runtime or configuration issues. Dynamic application security testing (DAST) tests the running application from outside, like an attacker, finding runtime, configuration and authentication issues without source code, but later in the cycle and without pinpointing the code.
Software composition analysis (SCA) identifies third-party and open-source components, their known vulnerabilities and their licences. Interactive application security testing (IAST) instruments the running application during testing, observing code paths as tests exercise them, which combines runtime context with code location and reduces false positives.
The tools also differ in their false positive and false negative patterns. SAST tends to report many possible issues, some of which cannot actually be reached, while DAST reports fewer false positives but misses code paths it never exercises. The following comparison summarises the four tool types.
Testing tools
One flaw seen by four tools
A search page passes the user's search term into a database query without parameterisation. How would SAST, DAST, IAST and SCA each respond to it?
SAST reads the source code, traces the term from the request to the query and reports the exact file and line, before the code is ever deployed. DAST, testing the running site, sends payloads such as a single quote into the search box and notices a database error in the response, confirming that the flaw is exploitable but not where it is in the code. IAST, running inside the application while functional tests use the search page, sees the untrusted input reach the query and reports both the confirmed behaviour and the line of code.
SCA would not find this flaw at all, because it is in the organisation's own code, but it would report that the web framework the page uses has a known vulnerability.
Combining tools
No single tool finds everything, so mature programmes combine them: SAST and SCA on every commit, DAST and IAST in test environments, manual code review and penetration testing for high-risk features, and threat modelling to direct testing at the riskiest areas. Findings flow into the developers' normal work tracking, with severity thresholds that block releases.
Placing each tool in the pipeline follows its speed and needs. SAST, SCA and secret scanning are fast and need only the code, so they run when a developer opens a pull request, giving feedback within minutes while the change is still fresh in mind. DAST and IAST need a running application, so they run after deployment to a test environment, often nightly because full scans take longer. Manual penetration testing is slowest and most expensive, so it is reserved for major releases and high-risk features such as payment or authentication flows.
Tools only help if developers trust and act on their output. A SAST tool that reports 2,000 findings on its first run, most of them low-risk or false positives, is quickly ignored. Successful programmes start by blocking only on a small set of high-confidence, high-severity rules, tune the tool to the code base, and track a baseline so that new code is held to the standard while older findings are worked down over time.
The following diagram compares what each testing approach finds.

Where in the pipeline?
Choosing a tool
A company has bought a web application from a vendor and has no access to its source code. It wants to find vulnerabilities such as injection and weak session handling before going live. Which testing approach fits?
Without source code, SAST is not possible. DAST, testing the deployed application from outside, is the natural choice, ideally combined with a penetration test. SCA would need the vendor to provide a software bill of materials.
Which testing approach identifies known vulnerabilities in open-source components?
Show answer
Software composition analysis (SCA).
Exam Tips
Remember for the exam
- SAST: code, early, white box. DAST: running app, black box.
- SCA finds vulnerable components and licence issues.
- IAST combines runtime context with code location.