Application security testing comes in several flavours, and each sees the code from a different angle. Static analysis reads the code; dynamic analysis attacks the running application; composition analysis checks the libraries you depend on. None of them is enough alone, and together they catch most common vulnerabilities before release.
The hard part is rarely buying a scanner. It is tuning it so developers trust the results and fix them quickly.
Static analysis (SAST)
SAST examines source code, bytecode or binaries without running them, looking for patterns such as SQL injection, unsafe deserialisation or hard-coded secrets. Because it runs on code, it can give feedback in the IDE or on every pull request, which is the cheapest point to fix a flaw.
Its weakness is false positives: SAST cannot always tell whether a risky path is reachable. Tuning rules and suppressing known-safe patterns is essential.
- Strengths
- Early feedback, points to the exact line, works before the app can run.
- Limits
- False positives, blind to runtime configuration. Tools: Semgrep, CodeQL, SonarQube, Checkmarx, Fortify.
Dynamic analysis (DAST)
DAST tests a running application from the outside, as an attacker would: sending crafted requests, probing authentication and looking for misconfigurations. It finds issues that only appear at runtime, such as missing security headers, weak session handling or exposed endpoints.
DAST needs a deployed environment and takes longer, so it usually runs against staging before release or on a schedule. Tools include OWASP ZAP, Burp Suite and commercial platforms.
SCA and IAST
Most code in a modern application comes from open-source libraries. Software composition analysis checks those dependencies against vulnerability databases and licence rules, and tools like Dependabot or Renovate can raise update pull requests automatically.
Interactive testing (IAST) instruments the application during functional tests, combining some benefits of SAST and DAST with fewer false positives, at the cost of more setup.
Making findings actionable
Findings should land where developers work: as pull-request comments, not emailed reports. Each one should explain the risk and how to fix it. Prioritise by exploitability and exposure, not just severity scores: a critical issue in an internal tool may matter less than a high one on a public login page.
AI can now suggest fixes for many common findings. Treat these suggestions like any other code change: reviewed, tested and scanned again.
Choosing tools
Start with what integrates well with your source control and pipelines, and what your developers will actually read. Many platforms now bundle SAST, SCA and secret scanning, such as GitHub Advanced Security or GitLab Ultimate, which reduces integration work.
Run a short trial on two or three real repositories and judge tools on accuracy, speed, fix guidance and how well they fit the developer workflow, not on the length of their rule list.
How to put it into practice
- Enable SCA and automated dependency updates on every repository.
- Add SAST to pull requests for critical services, running in report-only mode for a few weeks.
- Tune the rules, then block merges on critical findings.
- Run DAST against staging before each release, or nightly.
- Feed findings into the same backlog and fix-time targets as other defects.
- Review tool effectiveness every quarter: findings fixed, false-positive rate, developer feedback.
Common mistakes
- Running every scanner at full sensitivity and drowning developers in noise.
- Sending findings to a security team inbox instead of to the owning developers.
- Ignoring dependency updates until a major vulnerability forces a rushed upgrade.
- Relying on DAST alone, which finds problems late.
How to measure progress
- Time to fix findings by severity.
- False-positive rate as reported by developers.
- Share of dependencies on supported, patched versions.
- Vulnerabilities found in production that a scanner should have caught.