Skip to content

Commit ad82a44

Browse files
committed
Created security policy based off p5.js
1 parent 6081da8 commit ad82a44

2 files changed

Lines changed: 153 additions & 0 deletions

File tree

‎.github/ISSUE_TEMPLATE/config.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
blank_issues_enabled: true
22
contact_links:
3+
- name: 🔒 Report a Security Vulnerability
4+
url: https://github.com/processing/processing4/security/advisories/new
5+
about: Please report security vulnerabilities privately, not as a public issue. See SECURITY.md.
36
- name: 🌐 Processing Website Issues
47
url: https://github.com/processing/processing-website/issues
58
about: Report issues with the processing.org website here.

‎SECURITY.md‎

Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
1+
# Security Policy
2+
3+
## Reporting a Vulnerability
4+
5+
**Please do not report security vulnerabilities through public GitHub issues, pull requests, Discord, or the forum.**
6+
7+
You can report a vulnerability privately in either of these ways:
8+
9+
1. **GitHub private vulnerability reporting** (preferred): go to the [Security tab](https://github.com/processing/processing4/security) of this repository and click **Report a vulnerability**. This opens a private GitHub Security Advisory that only Processing maintainers can see.
10+
2. **Email**: responsible.disclosure@processingfoundation.org
11+
12+
### Reporting Channels
13+
14+
1. Security Advisories in this repository are received by Processing admins/maintainers
15+
2. Responsible Disclosure email reports are received by Processing Foundation staff
16+
17+
### What to Include
18+
19+
A useful report includes:
20+
21+
- The affected component (for example: the PDE, the `pde://` URI handler, the Contribution Manager, `core`, the CLI, the Gradle plugin, `libprocessing`)
22+
- The Processing version and operating system you tested on
23+
- A brief summary of the impact
24+
- Clear steps to reproduce, and a proof of concept if you have one
25+
26+
## Supported Versions
27+
28+
Security fixes are made against the `main` branch and shipped in the next Processing release. We do not backport fixes to older major versions.
29+
30+
| Version | Supported |
31+
| ----------------------------- | ------------------ |
32+
| Latest 4.x release | :white_check_mark: |
33+
| Older 4.x releases | :x: |
34+
| 3.x and earlier | :x: |
35+
| `libprocessing` (experimental) | Best effort |
36+
37+
If you are on an older version, please update to the [latest release](https://processing.org/download) before reporting.
38+
39+
## What to Expect
40+
41+
- We will acknowledge your report within 72 hours
42+
- We will provide regular updates about our progress
43+
- Once the issue is confirmed and fixed, we may ask you to verify the solution
44+
45+
## Disclosure Policy
46+
47+
- Please do not disclose the vulnerability publicly until we have had a chance to address it
48+
- We do not offer bounties as we are a non-profit organization
49+
- We appreciate your efforts to responsibly disclose your findings
50+
51+
## Scope
52+
53+
This policy covers the code in this repository, including:
54+
55+
- The Processing Development Environment (PDE) and its installers
56+
- The `pde://` URI scheme handler (see [SCHEMA.md](./SCHEMA.md))
57+
- The Contribution Manager and update checker, which download content from `processing.org` servers
58+
- The Processing `core` library and Java mode, as published to Maven Central and the Gradle Plugin Portal
59+
- The release and build pipeline in `.github/workflows`
60+
- `libprocessing` and its Python package (`mewnala`)
61+
62+
### Out of Scope
63+
64+
Processing is a tool for writing and running code. **A sketch, library, tool, or mode running arbitrary code on your computer is expected behavior, not a vulnerability.** The following are generally out of scope:
65+
66+
- Malicious behavior in a sketch you chose to open and run
67+
- Malicious behavior in a third-party contributed library, tool, mode, or example. Please report those to the contribution's author, and let us know at the email above if a contribution listed in the Contribution Manager should be removed.
68+
- Vulnerabilities in bundled third-party dependencies (such as the JDK, JOGL, or Gradle) that are already publicly known and fixed upstream, unless Processing's use of them makes the issue exploitable in a new way. A pull request or issue to update the dependency is welcome.
69+
70+
The following **are** in scope, for example:
71+
72+
- Code running, files being written, or preferences changing **without** the user's clear intent, such as from opening a `pde://` link or a sketch folder
73+
- Tampering with downloads or updates fetched by the PDE
74+
- Leaked credentials or weaknesses in our build, signing, or release process
75+
76+
Vulnerabilities in other Processing Foundation projects should be reported to that project. For the processing.org website or download servers, use the email address above.
77+
78+
## Accidental Disclosure: Never Share Vulnerabilities Publicly!
79+
80+
Please do not report security vulnerabilities in a public channel. If you notice a vulnerability being disclosed in a public channel (whether on Discord, the forum, GitHub, or other platforms), please flag it to a moderator immediately.
81+
82+
If any moderator in our online community spaces notices something that is plausibly a security vulnerability disclosure (you don't need to verify deeply at this stage, false positive is OK), they should:
83+
84+
1. screenshot and send to responsible.disclosure@processingfoundation.org
85+
2. delete the public content if possible
86+
3. reach out to the poster with a link to this SECURITY.md and a brief explanation that the content was taken down for security reasons
87+
88+
## Incident Response Process
89+
90+
Who handles incoming reports of security vulnerabilities? Who responds to security incidents? A mix of Processing Foundation staff, current Processing maintainers, and Processing contributors, taking on the following roles and responsibilities:
91+
92+
| Role | Responsibility |
93+
| ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
94+
| Finder / Reporter | Credited when all reporter expectations (below) are met. |
95+
| Incident Lead | First responder; owns the report end-to-end. By default, this is the Project Lead. Handoffs only with a written status summary. Owns advisory publication, and reporter notification. |
96+
| Implementer(s) | Develops the fix; may be a maintainer or contributor nominated by Incident Lead or maintainer(s). |
97+
| Reviewer(s) | At least one other maintainer reviews in the private fork before release. |
98+
| Release Manager | Builds, signs, and publishes the patched release (installers, Maven Central, and Gradle Plugin Portal artifacts as applicable). |
99+
100+
Whoever is available to claim the Incident Lead role starts as soon as they can with Phase 0.
101+
102+
### Phase 0 — Intake
103+
104+
Incident Lead:
105+
106+
- Notifies relevant people, to see which potential implementers are available
107+
- Moves the conversation into a GitHub Security Advisory, if it is not already on there.
108+
109+
### Phase 1 — Triage & Classification
110+
111+
Acknowledge receipt to the reporter within **72H**, along with triage & classification (below).
112+
113+
Reproduce the issue, potentially iterating with the reporter for more information.
114+
115+
Notify along private maintainer chat channels.
116+
117+
Is something a security vulnerability or incident? Use CIA (Confidentiality, Integrity, Availability):
118+
119+
- (0) Not a problem: cannot reproduce, or behavior is expected (see [Out of Scope](#out-of-scope)). Close with explanation.
120+
- (1) Public bug: problem is real but no CIA impact. Respond to the reporter with explanation, but fix openly in a normal PR.
121+
- (2) Vulnerability: impacts CIA (confirmed or plausibly demonstrated), but no evidence of exploitation. Move on to Phase 3 (Fix)
122+
- (3) Incident, including a High-Severity Vulnerability without logs to rule out past exploit, or any compromise of release credentials or signing keys: Move on to Phase 2 (Expedited Report) and then 3 (Fix)
123+
124+
### Phase 2 — (Incidents Only) Expedited Report
125+
126+
In case of an incident, we have some specific reporting responsibilities, which are also fulfilled within **72H** from the initial report. If release credentials or signing keys may be compromised, rotate them immediately.
127+
128+
### Phase 3 — Private Fix
129+
130+
The GitHub Security Advisory (GHSA) thread is the main place for technical discussion, and enables working on a fix in a private repository with a specific set of collaborators. In the GHSA workflow, there is a severity scoring tool that uses CVSS.
131+
132+
Timing of the fix depends on the CVSS score:
133+
134+
1. Critical: act immediately, as soon as possible
135+
2. High/medium: target patch completion or release within about a week
136+
3. Low: batch into routine releases
137+
138+
### Phase 4 — Release & Disclosure
139+
140+
- Merge the fix and publish a patched release; verify that the published installers and artifacts contain the fix
141+
- Publish the advisory and describe the patch in the release notes
142+
- Notify the reporter(s) and everyone who worked on the fix
143+
144+
## Reporter Expectations
145+
146+
Reporters are offered credit in GHSA if their GitHub username is known and if their report:
147+
148+
- Contains a brief and useful summary, plus clear steps to reproduce
149+
- Focuses on one report per defect, and avoids spurious LLM-generated reports
150+
- Is supportive of the community

0 commit comments

Comments
 (0)