Knowledge · Application Security

SAST Detection Coverage

How to measure and evaluate the extent to which a SAST tool detects vulnerability classes, frameworks, and code patterns in a codebase.

Primary question: What is SAST detection coverage and how should organizations assess it?

Definitions

Detection coverage

The extent to which a SAST tool's enabled rules identify genuine vulnerabilities across the vulnerability classes, frameworks, languages, and code patterns present in the target codebase.

Rule mapping

The process of mapping each enabled SAST rule to a specific vulnerability class, CWE, or security weakness to understand what the tool can detect.

Coverage gap

A vulnerability class, framework, or code pattern present in the codebase that has no corresponding enabled SAST rule, representing undetected risk.

The engineering problem

Organizations cannot know their detection coverage quality if they only have results from a single scanner and no process for mapping rules to vulnerability classes.

The technology landscape evolves as new frameworks, libraries, and code patterns emerge, which may introduce vulnerability classes that existing SAST rules do not address.

Organizations should measure detection coverage against their own codebase rather than assuming coverage based on marketing claims.

Security controls

Each control inspects a different artifact and produces evidence for an engineering decision.

Rule-to-class mapping

Coverage mapping
Artifact
Mapping of each enabled SAST rule to specific vulnerability classes, CWE identifiers, or security weaknesses.
Risk
Unknown coverage gaps — enabling rules without understanding what they detect.
Output
A coverage map that identifies which vulnerability classes are covered, partially covered, or not covered by the active rule set.

Evidence:

Framework coverage verification

Framework-specific coverage check
Artifact
Verification that SAST rules exist for each framework and library used in the codebase that has known vulnerability classes.
Risk
Undetected vulnerabilities in framework-specific patterns not covered by generic rules.
Output
Confirmation that framework-specific vulnerability classes have corresponding SAST rules, or documentation of gaps.

Evidence:

Separate coverage verification

Additional analysis scan
Artifact
Analysis of the same codebase by a second SAST tool with different detection coverage.
Risk
Overconfidence in the primary scanner's coverage.
Output
Additional evidence about which vulnerability classes each tool detects, revealing gaps in the primary tool's coverage. Unique findings require validation.

Evidence:

Verification workflow

  1. Inventory the vulnerability classes, frameworks, languages, and code patterns present in the codebase.
  2. Map each enabled SAST rule to specific vulnerability classes and identify which classes have no corresponding rule.
  3. For coverage gaps, evaluate whether rules can be enabled, whether the gap is acceptable for the risk profile, or whether complementary techniques should be used.
  4. Periodically reassess coverage as the technology stack evolves and new vulnerability classes emerge.
  5. Consider a separate SAST analysis to validate coverage assessments. Treat scanner agreement as supporting evidence and unique findings as requiring independent validation.

Limits of verification

  • Coverage mapping requires effort and expertise. Organizations must understand both their codebase and the SAST tool's rule catalog.
  • Some vulnerability classes may not have any static analysis rule in any SAST tool, requiring alternative detection methods.
  • Detection coverage is specific to the codebase and technology stack. A tool that covers one stack well may have significant gaps in another.
  • Two tools may share blind spots for certain vulnerability classes, meaning coverage agreement is not proof of completeness.

Canonical terms used: Detection coverage; SAST rule coverage; Coverage gap; Rule mapping.

Evidence and references

  1. DerScanner SAST documentationDerScanner performs static analysis of supported source and binary formats, provides configuration-file analysis, and reports and compares analysis results. DerTriage and DerCodeFix are available within static analysis.derscanner-sast

Detection coverage

Measure your SAST detection coverage with additional analysis.

DerScanner provides additional static analysis that reveals gaps in your primary scanner's coverage.

Detection coverage

Discuss SAST coverage assessment for your workflow

Share your current SAST tool and technology stack. We will help evaluate your detection coverage.

Engineering knowledge for building and operating trustworthy systems.

DerSecur Recognition · build cad90ed · 2026-08-12 11:17:27Z · system