SAST vs DAST vs SCA vs IAST: Application Security Testing Explained
Compare application security testing types — static analysis, dynamic scanning, software composition analysis, IAST and secret scanning —.
Published December 6, 2026
Security testing tools come with a confusing alphabet soup: SAST, DAST, SCA, IAST, RASP. Each looks at your application from a different angle and catches different classes of problems. A practical program combines a few of them in CI/CD so developers get fast, relevant feedback instead of a giant report at release time.
The concept
SAST (static application security testing) analyses source code without running it, finding patterns like injection, unsafe deserialization or hard-coded secrets; tools include Semgrep, CodeQL and SonarQube. SCA (software composition analysis) inventories dependencies and flags known vulnerabilities and licence issues; examples are Dependabot, Snyk, OSV-Scanner and Trivy. Secret scanning finds credentials in code and history.
DAST (dynamic testing) attacks a running application from the outside like a black-box tester, finding issues such as missing headers, injection and misconfiguration; OWASP ZAP is a popular open-source option. IAST instruments the running app to observe vulnerabilities during tests. None of these replaces code review, threat modeling or periodic penetration testing by humans, which find logic and authorization flaws tools miss.
The testing toolbox
| Type | Looks at | Finds well | Misses | When |
|---|---|---|---|---|
| SAST | Source code | Injection patterns, insecure APIs | Runtime config, logic flaws | Every PR |
| SCA | Dependencies | Known CVEs, licences | Your own code bugs | Every PR + continuously |
| Secret scanning | Code + history | Committed credentials | Secrets elsewhere | Pre-commit + push |
| DAST | Running app (black box) | Misconfig, headers, some injection | Code-level root causes | Staging / nightly |
| IAST | Running app (instrumented) | Data-flow vulnerabilities during tests | Untested paths | During test runs |
| Pen testing | Whole system (human) | Logic, authorization, chained issues | Coverage is time-boxed | Periodically |
Where each fits in CI/CD
Why shift left
Practical examples
Semgrep in CI
Fast, rule-based SAST with community rules.
- run: pipx run semgrep scan --config p/owasp-top-ten --config p/secrets --errorOWASP ZAP baseline scan
Passive DAST scan against a staging URL.
docker run --rm -t ghcr.io/zaproxy/zaproxy:stable zap-baseline.py \
-t https://staging.example.com -r zap-report.htmlSCA with OSV-Scanner
Scan lockfiles across the repository.
osv-scanner scan --recursive .Common mistakes
- Turning on every rule and drowning developers in false positives.
- Running scans only before release.
- Treating a clean scanner report as proof of security.
- No ownership or SLA for fixing findings.
Key takeaways
- SAST checks code, SCA checks dependencies, DAST checks the running app.
- Run SAST, SCA and secret scanning on every PR.
- Add DAST in staging and periodic human pen tests.
- Tune rules, assign owners and track fix SLAs.
FAQ
Which should I start with?
SCA and secret scanning give the most value for least effort, then SAST with a focused rule set.
How do I handle false positives?
Tune or disable noisy rules, use inline suppressions with justification, and review them periodically.
What is RASP?
Runtime application self-protection: in-app agents that detect and block attacks in production.