Deutsch
Security wikiSecurity testing

SAST, DAST and SCA: what is the difference?

Also known as: SAST, DAST, SCA, static application security testing, dynamic application security testing, software composition analysis

SAST reads your source code, DAST tests the running app from outside, SCA checks your third-party packages. What each finds, what each misses and how they fit.

By Tim GeithnerPublished 2 min read

Short answer

SAST, DAST and SCA are three kinds of automated security testing. Static application security testing (SAST) analyses source code without running it. Dynamic application security testing (DAST) probes a running app from the outside. Software composition analysis (SCA) inventories third-party components and matches them against known vulnerabilities. Each sees a different part of the picture, and none of them reliably finds broken access control on its own.

Ask an AI about this page:ChatGPTClaude

On this page

SAST, DAST and SCA are three categories of automated security testing that look at an application from different angles: static application security testing (SAST) reads the source code without running it, dynamic application security testing (DAST) probes the running application from the outside, and software composition analysis (SCA) inventories the third-party components an application uses and checks them for known problems.

SASTDASTSCA
Looks atYour source codeThe running app, from outsideYour dependencies
NeedsThe repositoryA deployed URLThe manifest or lockfile
Good atInjection patterns, dangerous functions, exact file and lineServer configuration, headers, issues visible in responsesKnown vulnerabilities (CVEs), outdated and unmaintained packages, licences
Weak atAccess control, configuration not in code, false positivesCode paths it can’t reach, logic that needs two accountsYour own code

SAST

OWASP describes source code analysis tools as scalable, able to run routinely (for example in nightly builds), and good at well-known issues such as SQL injection, with output that points at the file and line. Their listed weaknesses: many false positives, difficulty with authentication and access control problems, and configuration issues they can’t see because they aren’t in the code.

DAST

OWASP describes DAST tools as testing web applications, usually from the outside, for problems such as cross-site scripting, SQL injection, command injection, path traversal and insecure server configuration. They see your app as an attacker does, so their findings are concrete. They only test what they can reach and can’t see the code behind a response.

SCA

Software composition analysis is the software-only form of what OWASP calls component analysis: identifying the open-source and third-party components you use and the risks they carry, from known vulnerabilities to end-of-life versions and licence terms. OWASP’s 2025 Top 10 recommends keeping an inventory, ideally an SBOM, and using SCA or SBOM tools to monitor it as part of A03 Software Supply Chain Failures. npm audit is a basic SCA check that is already on your machine.

Which matters for an AI-built app?

In a Lovable or Supabase app, the most serious problems are usually about access: a table without row level security, a record loaded by ID without an owner check, an admin function anyone can call. Access control is exactly what OWASP lists as hard for source code analysis tools, and a scanner testing from outside with one account can’t tell whose data it is looking at. They need a review that understands who should see what, and a test as two different users. A sensible mix:

  • SCA on every build, against your lockfile, for known CVEs in dependencies.
  • A code and database review focused on access control, secrets and server functions.
  • A dynamic check of your deployed site for headers, exposed files and CORS.

When you compare tools, ask which of the three categories each one covers and how it handles access control; ShipRely compared with SAST tools does that for ours. When you read the output, How to read a security report explains severity and confidence.

Frequently asked questions

Which one should I use first?

For an AI-built app, SCA is the cheapest start because your package manager already has a basic version (npm audit). Then review your own code and database rules, since that is where access control bugs live, and test the deployed app from the outside.

Why do SAST tools report so many false positives?

They reason about code without running it, so they often can’t tell whether a risky-looking line is actually reachable or already protected elsewhere. OWASP lists high numbers of false positives as a known weakness of source code analysis tools.

Does SAST find missing row level security?

Usually not on its own. OWASP notes that SAST tools struggle with authentication and access control problems, and often miss configuration issues that aren’t represented in code. Database policies need a review that understands your data model, or a test as two different users.

Sources

  1. 1.Source Code Analysis Tools — OWASP Foundation
  2. 2.Vulnerability Scanning Tools — OWASP Foundation
  3. 3.Component Analysis — OWASP Foundation
  4. 4.A03:2025 Software Supply Chain Failures — OWASP Top 10

Find this in your own app

ShipRely reads your repository (read-only), proves each finding with file and line, and gives you a fix prompt to paste into your AI builder.

Run a demo audit
  • Read-only access to your repository
  • Every finding with file and line
  • Fix prompts for Lovable, Cursor, Claude Code and Bolt