PW.6 Configure the Compilation, Interpreter, and Build Processes to Improve Executable Security
Practice PW.6 of the Secure Software Development Framework (SSDF) version 1.1, in the group Produce Well-Secured Software (PW). The practice, task and example text and the SP 800-53 references are NIST’s, from the table published with SP 800-218 (February 2022, final).
Practice
Section titled “Practice”Decrease the number of security vulnerabilities in the software and reduce costs by eliminating vulnerabilities before testing occurs.
NIST lists two tasks for this practice. The examples under each are notional: no example or combination of examples is required, and they are not the only feasible options (SP 800-218, section 2).
PW.6.1
Section titled “PW.6.1”Use compiler, interpreter, and build tools that offer features to improve executable security.
Notional implementation examples for PW.6.1
- Example 1: Use up-to-date versions of compiler, interpreter, and build tools.
- Example 2: Follow change management processes when deploying or updating compiler, interpreter, and build tools, and audit all unexpected changes to tools.
- Example 3: Regularly validate the authenticity and integrity of compiler, interpreter, and build tools. See PO.3.
PW.6.2
Section titled “PW.6.2”Determine which compiler, interpreter, and build tool features should be used and how each should be configured, then implement and use the approved configurations.
Notional implementation examples for PW.6.2
- Example 1: Enable compiler features that produce warnings for poorly secured code during the compilation process.
- Example 2: Implement the “clean build” concept, where all compiler warnings are treated as errors and eliminated except those determined to be false positives or irrelevant.
- Example 3: Perform all builds in a dedicated, highly controlled build environment.
- Example 4: Enable compiler features that randomize or obfuscate execution characteristics, such as memory location usage, that would otherwise be predictable and thus potentially exploitable.
- Example 5: Test to ensure that the features are working as expected and are not inadvertently causing any operational issues or other problems.
- Example 6: Continuously verify that the approved configurations are being used.
- Example 7: Make the approved tool configurations available as configuration-as-code so developers can readily use them.
SP 800-53 references
Section titled “SP 800-53 references”NIST’s table maps each task to SP 800-53 controls in the “SP80053” entries of its References column, which also maps tasks to other secure development documents (not listed here). Each control’s page lists the tasks that cite it under Methods.
| Task | SP 800-53 references |
|---|---|
| PW.6.1 | SA-15 |
| PW.6.2 | SA-15, SR-9 |
Independent guidance, not an official NIST publication. Control text is from NIST SP 800-53 Rev. 5 and SP 800-53A (public domain). Original content is licensed CC BY 4.0; program templates and the downloadable kit are dedicated to the public domain under CC0 1.0.