|
| 1 | +--- |
| 2 | +pageClass: fine-print |
| 3 | +title: Two.js Incident Response Plan |
| 4 | +lang: en-US |
| 5 | +--- |
| 6 | + |
| 7 | +# Incident Response Plan |
| 8 | + |
| 9 | +### Principles: |
| 10 | + |
| 11 | +- **Transparency:** All incidents and fixes are documented here for the community. |
| 12 | +- **Stewardship:** Take responsibility for protecting users and the project. |
| 13 | +- **Protection:** Act to minimize harm and provide guidance. |
| 14 | + |
| 15 | +# How Two.js Handles Incidents |
| 16 | + |
| 17 | +### 1. Detection & Triage |
| 18 | + |
| 19 | +- We monitor security reports sent via [security](/security) outreach, GitHub advisories, issues, and npm notifications. |
| 20 | +- If we spot a bug or report that looks like a security risk, we treat it as an incident. |
| 21 | + |
| 22 | +### 2. Assessment |
| 23 | +- Check the severity: |
| 24 | + - **Critical:** npm package or repo compromised, malicious code, supply chain attack. |
| 25 | + - **High:** Vulnerabilities that allow code execution, XSS, or leak secrets. |
| 26 | + - **Medium:** Denial of service, memory leaks, or integrity issues. |
| 27 | + - **Low:** Docs defacement, minor regressions. |
| 28 | + |
| 29 | +### 3. Response |
| 30 | +- Acknowledge the report (privately if sensitive, publicly if not). |
| 31 | +- For critical/high issues: |
| 32 | + - Rotate any exposed secrets/tokens. |
| 33 | + - Patch the bug or vulnerability. |
| 34 | + - Deprecate or yank affected npm versions if needed. |
| 35 | + - Rebuild and redeploy docs/site from a clean commit. |
| 36 | +- For medium/low issues: |
| 37 | + - Patch and document the fix. |
| 38 | + |
| 39 | +### 4. Communication |
| 40 | +- Update this wiki page with a summary of the incident and the fix. |
| 41 | +- For major issues, we post a GitHub Release note and a pinned Issue. |
| 42 | +- Provide upgrade or mitigation steps for users. |
| 43 | + |
| 44 | +### 5. Recovery & Hardening |
| 45 | +- After fixing, review what happened and update this process if needed. |
| 46 | +- Add tests or automation to prevent similar issues. |
| 47 | +- Rotate credentials and check repo/npm security settings. |
| 48 | + |
| 49 | +<br /> |
| 50 | + |
| 51 | +--- |
| 52 | + |
| 53 | +# Recent Incidents & Fixes |
| 54 | + |
| 55 | +<br /> |
| 56 | + |
| 57 | +- None at this time |
| 58 | + |
| 59 | +<br /> |
| 60 | + |
| 61 | +--- |
| 62 | + |
| 63 | +**If you spot a security issue, please report it via [security](/security) outreach. We’ll respond as quickly as possible.** |
0 commit comments