Knowledge · Application Security

SAST and DAST in CI/CD

How SAST and DAST fit into a CI/CD security workflow — SAST runs early during development and build, DAST runs after deployment to a test environment, and correlation connects findings from both stages.

Primary question: How should SAST and DAST fit into a CI/CD security workflow?

Definitions

CI/CD security workflow

The integration of security testing into a continuous integration and continuous deployment pipeline, where security checks run automatically at appropriate stages of the build and deployment process.

Early security testing

Security analysis that runs during development or build, before deployment, when source code is available. SAST is the primary early security testing technique.

Late security testing

Security analysis that runs after deployment to a test or staging environment, when a running application exists. DAST is the primary late security testing technique.

The engineering problem

Security testing that runs only at the end of the CI/CD pipeline misses the opportunity to provide early feedback to developers, leading to more expensive and time-consuming remediation. [derscanner-sast]

Security testing that runs only during development misses runtime weaknesses that only manifest after deployment, when the application is running with real configuration and data. [derscanner-dast]

Without correlation, SAST and DAST findings from the CI/CD pipeline are triaged separately, leading to duplicated effort and inconsistent prioritization. [derscanner-sast][derscanner-dast]

Security controls

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

SAST in CI

SAST in build
Artifact
Source code during build or commit.
Risk
Code-level weaknesses not identified before deployment.
Output
SAST findings with code location and severity.

Evidence: DerScanner static analysis documentation

DAST in CD

DAST in staging
Artifact
Running application in test or staging environment.
Risk
Runtime weaknesses not identified before production deployment.
Output
DAST findings with endpoint and runtime evidence.

Evidence: DerScanner dynamic testing documentation

Verification workflow

  1. Source code is committed and triggers the CI/CD pipeline.
  2. SAST analyzes source code during the build stage.
  3. Application is deployed to a test or staging environment.
  4. DAST analyzes the running application in the test environment.
  5. Findings from SAST and DAST are correlated to identify relationships between them.
  6. Correlated findings are prioritized based on combined evidence.
  7. Security gates evaluate findings according to organizational policy.
  8. Remediation is applied and verified through rescan.
  9. Application is deployed to production after security gates pass.

Limits of verification

  • DAST requires a running target in a test or staging environment, which must be maintained and kept representative of production.
  • Correlation requires a supported mechanism; not all SAST and DAST tools provide correlation functionality.
  • Security gates must be carefully configured to balance security requirements with development velocity.

Canonical terms used: SAST in CI/CD; DAST in CI/CD; Pipeline security testing; Early and late security testing.

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

SAST and DAST in CI/CD

Integrate SAST and DAST into your CI/CD pipeline for continuous security visibility.

Discuss how to integrate SAST, DAST, and correlation into your CI/CD workflow.

SAST and DAST in CI/CD

Discuss SAST/DAST in CI/CD for your organization

Share your CI/CD pipeline, deployment process, and security testing requirements.

Engineering knowledge for building and operating trustworthy systems.

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