Skip to content

doc: add CPython Threat Model and update security policy (#1803) - #1901

Closed
nayanraj864-cmyk wants to merge 3 commits into
python:mainfrom
nayanraj864-cmyk:doc-threat-model-security-policy
Closed

doc: add CPython Threat Model and update security policy (#1803)#1901
nayanraj864-cmyk wants to merge 3 commits into
python:mainfrom
nayanraj864-cmyk:doc-threat-model-security-policy

Conversation

@nayanraj864-cmyk

Copy link
Copy Markdown

This PR creates an explicit CPython Threat Model document and updates the Security Policy to set clear guidelines for vulnerability reports submitted to the Python Security Response Team (PSRT).

Changes Included:

  • security/threat-model.rst: Created a new threat model detailing CPython's security boundaries, trusted execution assumptions (command-line flags, environment variables, memory/C-API), non-sandboxing policy (eval, exec, pickle), availability constraints, and standard library module threat models (ssl, urllib, xml, subprocess, tarfile).
  • security/policy.rst: Linked the threat model, added explicit LLM model disclosure requirements for reporters, and emphasized Code of Conduct prioritization.
  • security/index.rst: Registered threat-model in the section Table of Contents.

Closes #1803

@nayanraj864-cmyk

Copy link
Copy Markdown
Author

@sethmlarson
Hello,

My name is Nayan Raj, and I have recently started contributing to organizations that participate in Google Summer of Code (GSoC). This is my first experience contributing to a GSoC organization, although I have previously worked on other open-source projects and have some contribution experience.

I would greatly appreciate any guidance, suggestions, or feedback that could help me improve my contributions and better understand the GSoC contribution process. I am eager to learn, enhance my skills, and become a valuable contributor to the community.

Thank you for your time and support. I look forward to learning from your experience and contributing effectively to the project.

Best regards,
Nayan Raj

@read-the-docs-community

read-the-docs-community Bot commented Sep 8, 2026

Copy link
Copy Markdown

Documentation build overview

📚 CPython devguide | 🛠️ Build #34456508 | 📁 Comparing f004588 against latest (9d481ef)

  🔍 Preview build  

2 files changed
+ security/threat-model/index.html
± security/policy/index.html

@StanFromIreland

Copy link
Copy Markdown
Member

have recently started contributing to organizations that participate in Google Summer of Code (GSoC).

I'm sorry, but we're not part of GSoC this year.

Also some notes on the documents, it largely duplicates existing information (that's in the docs and/or the security policy), so in it's current state I'm afraid it's not particularly helpful. Also, did you use an LLM to generate the page?

Comment thread security/policy.rst
Where possible, cite the relevant threat model to show that
the latter has been considered while determining whether
to report a bug as a vulnerability.
Reporters must cite the relevant section of the threat model to show that

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a separate change, not related to the threat model. I also don't see any particular need for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create a Threat Model and Security Policy for CPython

2 participants