E.2.3 Defensive compilation and build
Control Details
Objective
Reduce vulnerabilities during compilation and build.
Definition
Determine which compiler, interpreter, AI training, and build tool features should be used to reduce vulnerabilities, such as producing compiler warnings for vulnerable code that are treated as errors; application of obfuscation techniques; approved configurations being used; verification of sources and manifests of dependencies; and approved tools configurations are available as configuration-as-code.
Assessment Questions
- How do you use compiler, interpreter, and build tool features to detect vulnerabilities?
- Describe your system for preventing use of a vulnerable and/or malicious component in the build, e.g. a Deny List.
Reference sources
- EO 4e(iv)
- SSDF PW.6.1
- SSDF-AI PW.6.1
- SLSA Verifying build platforms
- OWASP-SCVS 3
- S2C2F REB-1
- Self-attestation 3
- SAMM I-SB-1-A