Knowledge · Application Security

SAST for Delphi

How SAST analyzes proprietary Delphi source code, how it differs from Delphi SCA and CRA work, and how teams should validate and remediate findings.

Primary question: How should organizations apply SAST to Delphi applications?

Definitions

Delphi SAST

Static application security testing applied to proprietary Delphi source code and supported code-level relationships without executing the application.

Delphi SCA

Analysis of third-party components and dependencies for known vulnerabilities, license issues, and supply-chain risk; it is distinct from SAST of proprietary source.

Code-quality analysis

Separate static analysis focused on maintainability and implementation-quality issues rather than security weaknesses.

The engineering problem

Security weaknesses in proprietary Delphi implementation logic are not evaluated by an SBOM or dependency-focused SCA alone.

Legacy units, forms, shared libraries, and conditional compilation can make the security-relevant scope larger than a selected set of source files.

Runtime configuration and behavior in deployed Delphi applications cannot be fully observed through source analysis alone. [owasp-source-code-analysis]

Security controls

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

Delphi finding validation

Security Finding Validation
Artifact
SAST findings, affected code paths, application configuration, and relevant runtime behavior.
Risk
Accepting or dismissing a Delphi finding without sufficient application context.
Output
Reviewed finding disposition and evidence-backed remediation decision.

Evidence: NIST Secure Software Development Framework

Verification workflow

  1. Identify Delphi repositories, projects, units, forms, shared libraries, generated code, and conditional build variants in scope.
  2. Select the controlled source revision and preserve the analysis configuration.
  3. Run a Delphi-capable SAST analyzer against the complete intended proprietary-code scope.
  4. Review reported paths, security-sensitive operations, and assumptions about project context.
  5. Validate material findings against application behavior and security requirements.
  6. Remediate confirmed weaknesses and review the changed code.
  7. Re-run SAST and complement it with SCA, runtime testing, and compliance evidence where required.

Limits of verification

  • Delphi language support does not imply complete coverage of every library, component, application pattern, or vulnerability class.
  • SAST of proprietary code does not replace SCA of third-party Delphi dependencies or SBOM generation.
  • Code-quality findings are not equivalent to security findings.
  • Runtime configuration and deployed behavior require additional verification.
  • Findings can include false positives and false negatives.

Canonical terms used: Delphi SAST; Static Application Security Testing; Delphi source-code analysis; Delphi SCA; code-quality analysis.

Evidence and references

  1. NIST Secure Software Development FrameworkSecure development includes repeatable code review and analysis, remediation, and retention of evidence.nist-ssdf
  2. OWASP Source Code Analysis ToolsStatic source-code analysis examines code without executing the application and has context-dependent limitations.owasp-source-code-analysis
  3. DerScanner analysis modules and supported languagesDerScanner documents Delphi support in its Matcher analysis module.derscanner-supported-languages
  4. DerScanner static analysis documentationDerScanner lists Delphi for static analysis and separately lists code-quality analysis for Delphi.derscanner-sast
  5. DerScanner other applications analysisDerScanner documents source archive and repository import methods for Delphi applications.derscanner-other-analysis

Analyze Delphi source code

Add repeatable SAST to your Delphi development workflow.

Share your Delphi versions, project structure, components, and release process. The DerScanner team will help define an appropriate proprietary-code analysis scope.

Analyze Delphi source code

Discuss SAST for Delphi

Tell us about your Delphi applications, project variants, and security-testing workflow.

Engineering knowledge for building and operating trustworthy systems.

DerSecur Recognition · build 01608ec · 2026-08-13 09:25:02Z · system