Repository navigation
docs: add threat model and triage guide - #12942
Conversation
|
cc @containerd/containerd-security-advisors |
Address reviewer feedback on PR containerd#12942 by updating the threat model and fs-verity documentation. Specifically, this commit: * Removes PaX and grsecurity kernel mentions in favor of standard LSMs. * Updates all DREAD risk scores to the standard 1-10 scale. * Adds project links for Notary and cosign. * Links the containerd image verifier plugin docs relative to the threat model. * Updates CORE-001 with a repudiation/audit logging note. * Refines CORE-002, STORE-002, STORE-003, CRI-001, and CRI-002 to score exploitability based on CRI/Kubernetes remote transitive paths. * Explains specific custom runtime misconfigurations in RUN-003. * Outlines susceptible parser components in STORE-003. * Adds GFM relative anchor links in fsverity.md pointing to STORE-001. How the changes were tested: Manually verified relative markdown links and GFM anchor generation patterns for the updated threat model headers. Assisted-by: Antigravity Signed-off-by: Samuel Karp <[email protected]>
|
Bunch of updates here. Incorporated feedback, tried to make the phrasing less AI-like, added new things from #12978. |
There was a problem hiding this comment.
Pull request overview
This PR adds new security documentation to the containerd repo: a threat model (STRIDE-style), a maintainer-focused security triage guide, and an operator guide for using Linux fs-verity to improve on-disk content integrity.
Changes:
- Add a security triage guide describing boundaries, CVSS stance, and a suggested triage workflow.
- Add a threat model document covering trust boundaries, operator mitigations, and subsystem threat enumerations.
- Add an
fs-verityoperator guide explaining prerequisites and how to enable support on ext4.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 7 comments.
| File | Description |
|---|---|
| docs/security/TRIAGE_GUIDE.md | New maintainer/security-advisor triage guide and CVSS stance. |
| docs/security/THREAT_MODEL.md | New threat model covering assets, boundaries, mitigations, and threats by subsystem. |
| docs/fsverity.md | New operator guide for enabling/using fs-verity for content integrity. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Address review feedback from Copilot on containerd security PR containerd#12942. Specifically, this commit: * Removes references to a separate `cri.sock` since the containerd CRI plugin runs over the main `containerd.sock` by default. * Corrects socket file permissions in Priority Mitigations to recommend the actionable `0660` mode enforced by containerd at startup. * Renumbers the CVSS headings in the triage guide consecutively (2.2 Scope and 2.3 User Interaction). * Clarifies that advanced snapshotters (like EROFS) support optional `fs-verity` configuration, while the local content store requires no configuration. Assisted-by: Antigravity Signed-off-by: Samuel Karp <[email protected]>
|
I focused primarily on My thought was perhaps a summary, but 1. that'll bitrot basically instantly and 2. if we could say the same thing with less, why would we also say it with more 🤔 I guess the goal is to have a more objective line for security reports? (Disclosure for non-Sam readers: I'm not a maintainer here; I am a security advisor, but that just means I advise, not that I know anything or that my opinion should hold extra/any weight) |
|
Thanks @tianon!
Mostly to provide some guidance to the (inevitable) LLM scanners that will be looking at our code, plus a baseline for LLM-based automated triage of reports.
STRIDE is pretty standard, but the rest of it is not a template. Happy to change anything in there.
That's fair. Do you think it'd be better if we moved sections 4 (Security Guidelines for containerd Operators) and 5 (Priority Mitigations) out to another document that can just be end-user facing and left the rest to be more focused on the actual threat model? We could also reduce the per-threat Mitigation entries to point into those documents instead too. |
| @@ -0,0 +1,442 @@ | |||
| # containerd Threat Model | |||
There was a problem hiding this comment.
I was hoping to see more of what "kubelet asks thru CRI API" and what are "security expectations" for Pods running as a result.
|
Still working on this, but I've pushed an update addressing the feedback from @tianon and @SergeyKanzhelev. |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
Comments suppressed due to low confidence (1)
docs/security/OPERATOR_GUIDELINES.md:22
- This line states that
/run/containerdand some subdirectories are created0711, but shim socket directories under the state dir (e.g.,/run/containerd/s) are explicitly created/forced to0700(seecore/runtime/v2/shim_unix.go). To avoid misleading operators, please qualify this statement and mention that subdirectory permissions vary.
* **Runtime state root (`/run/containerd`):** `0711`, and some subdirectories under it are also created `0711`. UID/GID-remapped (user-namespaced) workloads depend on this to traverse those paths, so do not set them to `0700`.
mxpv
left a comment
There was a problem hiding this comment.
Left a couple nits.
Otherwise looks good.
This commit introduces a comprehensive threat model, and security triage guide, and operator guidelines based on the code, documentation and a review of the published GitHub Security Advisories (GHSAs) Assisted-by: gemini-cli Assisted-by: Antigravity Assisted-by: Claude Code (Opus 4.8) Co-authored-by: Vinayak Goyal <[email protected]> Signed-off-by: Samuel Karp <[email protected]>
This commit introduces a comprehensive threat model and security triage guide based on the code, documentation, and a review of the published GitHub Security Advisories (GHSAs)
Assisted-by: gemini-cli and Antigravity