Skip to content

PS.1 Protect All Forms of Code from Unauthorized Access and Tampering

Practice PS.1 of the Secure Software Development Framework (SSDF) version 1.1, in the group Protect the Software (PS). 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).

Help prevent unauthorized changes to code, both inadvertent and intentional, which could circumvent or negate the intended security characteristics of the software. For code that is not intended to be publicly accessible, this helps prevent theft of the software and may make it more difficult or time-consuming for attackers to find vulnerabilities in the software.

NIST lists one task 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).

Store all forms of code – including source code, executable code, and configuration-as-code – based on the principle of least privilege so that only authorized personnel, tools, services, etc. have access.

Notional implementation examples for PS.1.1
  • Example 1: Store all source code and configuration-as-code in a code repository, and restrict access to it based on the nature of the code. For example, open-source code intended for public access may need its integrity and availability protected; other code may also need its confidentiality protected.
  • Example 2: Use version control features of the repository to track all changes made to the code with accountability to the individual account.
  • Example 3: Use commit signing for code repositories.
  • Example 4: Have the code owner review and approve all changes made to the code by others.
  • Example 5: Use code signing to help protect the integrity of executables.
  • Example 6: Use cryptography (e.g., cryptographic hashes) to help protect file integrity.

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.

TaskSP 800-53 references
PS.1.1SA-10

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.