Comparison of Sourceware Cyber Security project policy checklist
This is a comparison of the Soucreware Cyber Security project policy checklist and the WIP glibc SSDLC.
The comparison includes a review of the Sourceware security vision since this encompasses parts of the glibc SSDLC.
The intent of the comparison is show that the NIST SP 800-218 list is a useful superset of items to review for a project SSDLC. The Sourceware checklist can be improved, but at that point it would approximate the NIST SP 800-218 list.
The current Sourceware checklist contains many useful items for an SSDLC, but is not a complete or comprehensive set of items that would encourage a project to explore complex questions like "Do we have enough documentation for developers?" or "Do we have good security defaults configured into the project?" It might also not be the intent of the Sourceware checklist to support this kind of review.
Using the NIST SP 800-218 list as a starting point offers projects many more structured questions to think about and answer as they evaluate what security means to them. There is no requirement to be a project that works with any government, or cloud-related offering, but instead the questions are broad and useful for drawing out important requirements. Why NIST SP 800-218 and not some other standard? This question and other related standards are discussed in the top-evel WIP GNU Toolchain SSDLC review.
Lastly NIST SP 800-218 is not endorsing of any particular technology e.g. git, gitsigur, bunsen, patchwork, but instead hews to more fundamental requirements including zero trust and the archival of recorded results of key activities. Lastly some NIST SP 800-218 reference items (right most column in the NIST document table) may make explicit technological choices e.g. no use of provably insecure cryptography, these are only for reference purposes and the projects should make decisions that are appropriate for their community.
Current checklist
The current (2025-05-14) checklist is as follows:
- Make sure to have a CONTRIBUTING file or webpage explaining how and where to submit bugs, how and where to submit patches, and which coding standards are used and which testing is expected for contributions.
- Document who can review and approve which patches and require at least one reviewer for any non-trivial patch before committing.
- Record all review actions in the final commit using tags like Co-Authored-By, Approved-By, Reviewed-By, Tested-By, Acked-by and add links to bugzilla and review threads on inbox.sourceware.org.
- When closing a bug because a fix was checked in make sure the exact commit has been added to the bugzilla issue (setup a commit hook to do this).
- Encourage signed git commits and store public keys in gitsigur.
- When using b4 check the DKIM verification of email contributions.
- Add a SECURITY file that documents the security policy, what kinds of bugs could be security issues, and which bugs are not considered security issues, and how to report them.
- Make sure to have a well documented way (announce list) for new releases and security updates.
- Clearly document who the release managers are and which PGP signatures they will be using for official releases.
- Have a webpage which list the release schedule and active (supported) releases (and which versions are no longer supported).
- Defined a continuous integration (CI) build pipeline on builder.sourceware.org for all supported architectures.
- Use snapshots.sourceware.org to define a continuous delivery (CD) service so it is always clear whether the project and documentation are in a releasable state.
- Use builder.sourceware.org try-bots or a pre-commit patchwork.sourceware.org bot to check patches before committing.
- Also setup automatic build pipelines that use static analyzers (gcc -fanalyzer), hardening flags (gcc -fhardened), sanitizers (gcc -fsanitize=undefined) and run the testsuite under a memory checker like valgrind.
- Store test results in bunsen for easy (historical) analysis.
- Make sure your MAINTAINERS file (or equivalent) is up to date. Sourceware admins use that to check who has permission to approve new committer accounts.
- Sourceware provides a service to retire inactive accounts (those who haven't pulled or pushed in a year) every 3 months.
Checklist comparison to WIP glibc SSDLC
Where the glibc SSDLC contains the same item based on NIST SP 800-218 it is listed for the matching bullet from the Sourceware checklist. If an item is empty it would indicate that the Sourceware checklist contains something the glibc SSDLC does not.
- "Provide support and documentation for those roles for glibc (PO.2.2, page 6)" - Documentation for the roles in the project needs to be provided.
- "Perform code review based on the secure coding standards (PW.7.2, page 14)" - Describe how code is reviewed, and how it supports security for the project sources.
- "Perform code review based on the secure coding standards (PW.7.2, page 14)" - Likewise.
- "Track and maintain security requirements for glibc (PW.1.2, page 11)" - We might consider recording commits in bugzilla to be related to supporting answering questions like "When was this fixed?" and tie that to security requirements. It's best practice just to answer developer questions.
- "Make software integrity verification information available (PS.2.1, page 10)" / "Collect, safeguard, maintain and share provenance data (PS.3.2, page 10)" - Sourceware policy encourages commit signing. glibc SSDLC requires tag and release signing.
- "Separate and protect each environment involved in development (PO.5.1, page 8)" / "Secure and harden development endpoints (PO.5.2, page 8)" - DKIM verification is related to a variety of email-based attack vectors. The correct use of b4 could be a part of securing and hardening developer endpoints since it can be argued it should be possible to apply a patch with a failed DKIM verification e.g. altered in transit. The current glibc SSDLC does not require this, instead the code posted is reviewed and the review considered sufficient. If DKIM verification is added, it needs to be transparent to the developer and fail safe in the default case.
- "Security of glibc and development process (PO.1.2, page 5)" - glibc documents a security policy.
- "Security of glibc and development process (PO.1.2, page 5)" - glibc has a documented release process coupled with a security process and standard operating procedures.
- "Implement roles and responsibilities to support glibc (PO.2.1, page 6)" / "Provide support and documentation for those roles for glibc (PO.2.2, page 6)" - glibc documents the roles and the people who can upload releases. glibc should document the current list of approved gpg keys for upload.
- "Security of glibc and development process (PO.1.2, page 5)" / "Track and maintain security requirements for glibc (PW.1.2, page 11)" - Document active branches, close unmaintained branches, etc. which glibc documents in the release process and how that is communicated.
- "Generate artifacts that support secure practices (PO.3.3, page 7)" - Include post-commit testing.
- "Security of glibc and development process (PO.1.2, page 5)" / "Generate artifacts that support secure practices (PO.3.3, page 7)" - Define post-commit testing.
- "Security of glibc and development process (PO.1.2, page 5)" / "Generate artifacts that support secure practices (PO.3.3, page 7)" - Define pre-commit testing.
- "Security of glibc and development process (PO.1.2, page 5)" / "Generate artifacts that support secure practices (PO.3.3, page 7)" - Define pre-commit and post-commit testing and policy for what happens when they fail.
- "Generate artifacts that support secure practices (PO.3.3, page 7)" - Store artifacts of testing for later review.
- "Implement roles and responsibilities to support glibc (PO.2.1, page 6)" / "Provide support and documentation for those roles for glibc (PO.2.2, page 6)" - Define process for authorizing access and supporting documentation.
- "Store all forms of code based on principle of least privilege (PS.1.1, page 9)" - Document access and how access is revoked.
The Sourceware checklist is focused largely on steps that prepare the project (PO items), or produce a new secured release (PW items), though one item touches on git commit signing which is an aspect of protecting the software components (PS items). Since no entries are missing the checklist is a subset of the WIP glibc SSDLC.
Present in the glibc SSDLC, missing from this checklist, but covered in the Sourceware vision:
Security for Software Development Infrastructure (PO.1.1 page 5) - Covered in the Sourceware security vision.
- Separate and protect each environment involved in development (PO.5.1, page 8) - Likewise.
- Secure and harden development endpoints (PO.5.2, page 8) - Likewise.
Recommendation
The Sourceware checklist jumps between activities that relate to preparing the project, producing a secured release, and protecting software components. As such the items in the checklist do not clearly flow from any top-level requirements for security e.g. why would I do this particular step? While the NIST document expresses the importance of ensuring the secure process is documented, so that it can be followed, so that the results can be recorded, so that we can transparently show other FOSS projects our work and so they can trust and depend upon us.
The strong recommendation is that the Sourceware checklist should be rewritten to match NIST SP 800-218 with reference to supporting infrastructure that is provided by Sourceware or FOSS hardware or software projects. Where Sourceware could recommend an easy to use process that the projects could adopt, that would be a positive incremental step towards improving overall security.