Repository navigation
📝 docs(security): add threat model and assurance case - #3294
Merged
Merged
Conversation
This was referenced Sep 22, 2026
gaborbernat
force-pushed
the
docs/threat-model
branch
from
September 22, 2026 23:57
18581a7 to
a0114d5
Compare
gaborbernat
force-pushed
the
docs/threat-model
branch
from
September 23, 2026 00:16
a0114d5 to
cf9ce11
Compare
gaborbernat
force-pushed
the
docs/threat-model
branch
from
September 23, 2026 00:49
cf9ce11 to
4e944ea
Compare
SECURITY.md defines the scope and INCIDENT_RESPONSE.md covers the steps after a report, yet neither records the trust boundaries of virtualenv or the evidence that each control works. THREAT_MODEL.md holds both parts in one file. We based the layout on the GitHub Secure Open Source Fund library template, group threats by STRIDE, and took the caller and project split from the Apache Commons and Shiro models. The assurance case records the 2026-09-22 review by Bernát against the 21.10.0 release, updated for the pull requests merged since, and maps each countered weakness class to its fix and tests. Each file and external reference links to its source, and the prose names behavior in place of functions, test names or commit hashes, so the text survives refactors. codespell ignores mitre so the CWE links keep their host name. Admins bypass the approval rule on main. The document lists single-reviewer merges as a known gap and does not count a second reviewer as a control.
gaborbernat
force-pushed
the
docs/threat-model
branch
from
September 23, 2026 01:26
ad3b593 to
72d8dfc
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SECURITY.mddefines the scope andINCIDENT_RESPONSE.mdcovers the steps after a report, yet neither records the trust boundaries of virtualenv or the evidence that each control works. 🛡️.github/THREAT_MODEL.mdholds the threat model and the assurance case in one file. We based the layout on the GitHub Secure Open Source Fund threat modeling template for libraries, group threats by STRIDE, and took the caller and project split from the Apache Commons and Apache Shiro models. The assurance case records the 2026-09-22 review by Bernát against the 21.10.0 release and maps each countered CWE class to its fix and tests. 📋The document reflects the work merged since that release: the fail-closed digest check from #3302, the SBOM assets from #3299 and #3310, the bootstrap.pypa.io verification from #3309, the pinned CI tool downloads from #3293 and the release docs from #3305. #3306 and #3301 stay open items linked to their pull requests, and so does wheel reproducibility, since the embedded SBOM records the build machine and the sdist is the one distribution that rebuilds byte for byte. 🔗
Each file and external reference links to its source on
mainor upstream. The prose describes behavior in place of function names, test names or commit hashes, so the text survives refactors.pyproject.tomladdsmitreto the codespell ignore list so the CWE links keep their host name.Admins bypass the approval rule on
main, so the document lists single-reviewer merges as a known gap and does not count a second reviewer as a control.SECURITY.mdandINCIDENT_RESPONSE.mdeach gain a paragraph that links to the new file, and we followSECURITY.mdon any conflict.