Knowledge · Application Security

SAST and DAST in CI/CD

Where SAST and DAST belong in a CI/CD pipeline — static analysis on the build, dynamic analysis on a running target, and how correlating both stages changes what you ship.

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.

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.

Without correlation, SAST and DAST findings from the CI/CD pipeline are triaged separately, leading to duplicated effort and inconsistent prioritization.

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:

Correlation in pipeline

Pipeline correlation
Artifact
SAST and DAST findings from the same build/deployment cycle.
Risk
Treating SAST and DAST findings independently without combined context.
Output
Prioritized findings based on combined code-level and runtime evidence.

Evidence:

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.derscanner-sast
  2. DerScanner dynamic analysis documentationDerScanner DAST is a web-application scanner that detects vulnerabilities and backdoors by providing malformed or random inputs, using the black-box method without requiring source code. When source code is available, dynamic-analysis results can be correlated with static-analysis results for better accuracy and easier prioritization.derscanner-dast

SAST and DAST in CI/CD

Put SAST and DAST in the pipeline with DerScanner

Build-stage static analysis, post-deploy dynamic analysis, and correlation — talk to the DerScanner team about your CI/CD.

SAST and DAST in CI/CD

Discuss SAST/DAST in CI/CD for your organization

Share your pipeline and environments. We will route this to the DerScanner team.

Engineering knowledge for building and operating trustworthy systems.

DerSecur Recognition · build 2dac3d6 · 2026-09-07 06:49:25Z · system