Skip to content

docs: add threat model and triage guide - #12942

Merged
samuelkarp merged 1 commit into
containerd:mainfrom
samuelkarp:threat-model
Jul 21, 2026
Merged

samuelkarp merged 1 commit into
containerd:mainfrom
samuelkarp:threat-model

Conversation

@samuelkarp

@samuelkarp samuelkarp commented Feb 26, 2026 •

Copy link
Copy Markdown
Member

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

@samuelkarp

Copy link
Copy Markdown
Member Author

cc @containerd/containerd-security-advisors

Comment thread docs/security/THREAT_MODEL.md Resolved
Comment thread docs/security/THREAT_MODEL.md Resolved
Comment thread docs/security/THREAT_MODEL.md Resolved
Comment thread docs/security/THREAT_MODEL.md Resolved
Comment thread docs/security/THREAT_MODEL.md Resolved
Comment thread docs/security/THREAT_MODEL.md Resolved
Comment thread docs/security/THREAT_MODEL.md Resolved
Comment thread docs/security/THREAT_MODEL.md Resolved
Comment thread docs/security/THREAT_MODEL.md Resolved
Comment thread docs/fsverity.md Resolved
Copilot AI review requested due to automatic review settings May 27, 2026 06:08
samuelkarp added a commit to samuelkarp/containerd that referenced this pull request May 27, 2026
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]>
@samuelkarp

Copy link
Copy Markdown
Member Author

Bunch of updates here. Incorporated feedback, tried to make the phrasing less AI-like, added new things from #12978.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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-verity operator 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.

Comment thread docs/security/THREAT_MODEL.md Resolved
Comment thread docs/security/THREAT_MODEL.md Resolved
Comment thread docs/security/THREAT_MODEL.md Resolved
Comment thread docs/security/TRIAGE_GUIDE.md Resolved
Comment thread docs/security/TRIAGE_GUIDE.md Resolved
Comment thread docs/fsverity.md Resolved
Comment thread docs/fsverity.md Resolved
samuelkarp added a commit to samuelkarp/containerd that referenced this pull request May 27, 2026
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]>
@tianon

tianon commented May 29, 2026

Copy link
Copy Markdown
Member

I focused primarily on docs/security/THREAT_MODEL.md; I worry about how long it is -- it seems like it's following what's probably a standard industry template / framework (that I'm not familiar with, personal failing), but it struck me as odd that it's got such a large mix of end user hardening recommendations. I realize we've got to have a baseline, but the doc reads more to me as a list of suggestions than a true baseline, at least for the first half or so. As a concrete example, suggesting users use cosign and the image verification tool (more than once) felt out of place, IMO.

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)

@samuelkarp

Copy link
Copy Markdown
Member Author

Thanks @tianon!

I guess the goal is to have a more objective line for security reports?

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.

it seems like it's following what's probably a standard industry template / framework

STRIDE is pretty standard, but the rest of it is not a template. Happy to change anything in there.

I worry about how long it is

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.

Comment thread docs/security/THREAT_MODEL.md Resolved
Comment thread docs/security/THREAT_MODEL.md Resolved
Comment thread docs/security/THREAT_MODEL.md Resolved
Comment thread docs/security/THREAT_MODEL.md Resolved
Comment thread docs/security/THREAT_MODEL.md Resolved
Comment thread docs/security/THREAT_MODEL.md Resolved
Comment thread docs/security/THREAT_MODEL.md Resolved
Comment thread docs/security/THREAT_MODEL.md Resolved
Comment thread docs/security/THREAT_MODEL.md Resolved
Comment thread docs/security/THREAT_MODEL.md Resolved
@@ -0,0 +1,442 @@
# containerd Threat Model

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I was hoping to see more of what "kubelet asks thru CRI API" and what are "security expectations" for Pods running as a result.

Copilot AI review requested due to automatic review settings May 29, 2026 23:53
@samuelkarp

Copy link
Copy Markdown
Member Author

Still working on this, but I've pushed an update addressing the feedback from @tianon and @SergeyKanzhelev.

Copilot AI review requested due to automatic review settings July 6, 2026 20:57

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

Comment thread docs/fsverity.md Resolved
Comment thread docs/fsverity.md Resolved
Comment thread docs/security/OPERATOR_GUIDELINES.md Resolved
Comment thread docs/security/OPERATOR_GUIDELINES.md Resolved
Comment thread docs/security/OPERATOR_GUIDELINES.md Resolved
Comment thread docs/security/OPERATOR_GUIDELINES.md Resolved
Comment thread docs/security/THREAT_MODEL.md Resolved
Copilot AI review requested due to automatic review settings July 20, 2026 20:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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/containerd and some subdirectories are created 0711, but shim socket directories under the state dir (e.g., /run/containerd/s) are explicitly created/forced to 0700 (see core/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`.

Comment thread docs/security/TRIAGE_GUIDE.md Resolved

@mxpv mxpv left a comment

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.

Left a couple nits.
Otherwise looks good.

Comment thread docs/fsverity.md Resolved
Comment thread docs/security/THREAT_MODEL.md Resolved
Comment thread docs/security/OPERATOR_GUIDELINES.md Resolved
@github-project-automation github-project-automation Bot moved this from Needs Triage to Review In Progress in Pull Request Review Jul 21, 2026
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]>
Copilot AI review requested due to automatic review settings July 21, 2026 05:13

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

Comment thread docs/security/OPERATOR_GUIDELINES.md Resolved
@samuelkarp
samuelkarp added this pull request to the merge queue Jul 21, 2026
Merged via the queue into containerd:main with commit 49084c3 Jul 21, 2026
88 of 90 checks passed
@github-project-automation github-project-automation Bot moved this from Review In Progress to Done in Pull Request Review Jul 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

9 participants