Knowledge · Application Security

Code-to-Runtime Security Testing

How security teams can use SAST and DAST together to connect code-level weaknesses identified by static analysis with runtime behavior observed by dynamic analysis.

Primary question: How can security teams connect code-level weaknesses with runtime application behavior?

Definitions

Code-level evidence

Evidence from static analysis about the presence of security weaknesses in source code, including code location, vulnerable function calls, and input handling issues.

Runtime evidence

Evidence from dynamic analysis about the presence of exploitable behavior in the running application, including endpoint responses, attack vectors, and observed vulnerability manifestations.

Code-to-runtime connection

The process of linking code-level evidence from SAST with runtime evidence from DAST to understand how a vulnerability exists in code and manifests at runtime.

The engineering problem

SAST findings alone provide code-level evidence but no visibility into whether the weakness manifests at runtime. DAST findings alone provide runtime evidence but no clear indication of the root cause in source code. [derscanner-sast][derscanner-dast]

Without a code-to-runtime connection, remediation teams must manually determine which SAST findings correspond to which DAST findings, which is time-consuming and error-prone at scale. [derscanner-sast][derscanner-dast]

Organizations that use only SAST or only DAST have an incomplete picture of application security — they either know about code weaknesses without runtime confirmation, or runtime behavior without code-level root cause. [derscanner-sast][derscanner-dast]

Security controls

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

Code-level evidence collection

SAST analysis
Artifact
Application source code.
Risk
Code-level weaknesses without runtime context.
Output
SAST findings with code location, severity, and analysis context.

Evidence: DerScanner static analysis documentation

Runtime evidence collection

DAST analysis
Artifact
Running application.
Risk
Runtime weaknesses without code-level root cause.
Output
DAST findings with endpoint, attack vector, and runtime evidence.

Evidence: DerScanner dynamic testing documentation

Verification workflow

  1. SAST analyzes source code and produces findings about code-level weaknesses.
  2. DAST analyzes the running application and produces findings about runtime weaknesses.
  3. A supported correlation mechanism links SAST findings to DAST findings that relate to the same underlying weakness.
  4. The correlated finding provides both code-level evidence (root cause in source code) and runtime evidence (exploitable behavior).
  5. Security teams use the combined evidence for prioritization and remediation.
  6. Development teams use the code-level evidence to locate and fix the root cause, informed by the runtime evidence about why the fix matters.

Limits of verification

  • Code-to-runtime correlation requires a supported mechanism; not all SAST and DAST tools provide correlation functionality.
  • Not every SAST finding will have a corresponding DAST finding, and not every DAST finding will have a corresponding SAST finding, due to the different perspectives each technique provides.
  • Correlation provides structured evidence but does not replace human review and security decision-making.

Canonical terms used: Code-to-runtime testing; SAST DAST correlation; Code-level evidence; Runtime evidence; Vulnerability manifestation.

Evidence and references

  1. DerScanner static analysis documentationDerScanner performs static analysis and reports source-code security findings, including vulnerable imports and function calls to dependencies.derscanner-sast
  2. DerScanner dynamic testing documentationDerScanner performs dynamic analysis of running applications, identifying exploitable behavior at endpoints and APIs, and supports results correlation with static analysis findings.derscanner-dast

Code-to-runtime security testing

Connect code-level weaknesses with runtime behavior through SAST/DAST correlation.

Discuss how combining SAST and DAST findings provides complete vulnerability visibility.

Code-to-runtime security testing

Discuss code-to-runtime security testing for your organization

Share your SAST and DAST workflow and how your team connects code-level findings with runtime evidence.

Engineering knowledge for building and operating trustworthy systems.

DerSecur Recognition · build aa240f4 · 2026-08-10 08:40:18Z · system