Skip to content

add containerd threat model using the STRIPE framework. - #12978

Closed
vinayakankugoyal wants to merge 1 commit into
containerd:mainfrom
vinayakankugoyal:threatmodel
Closed

vinayakankugoyal wants to merge 1 commit into
containerd:mainfrom
vinayakankugoyal:threatmodel

Conversation

@vinayakankugoyal

Copy link
Copy Markdown
Contributor

Initial attempt to threat model containerd using STRIPE.

xref #7715

Initial attempt to threat model containerd using STRIPE.
@samuelkarp

Copy link
Copy Markdown
Member

@vinayakankugoyal Let's combine efforts: #12942

@AkihiroSuda

Copy link
Copy Markdown
Member

@vinayakankugoyal Let's combine efforts: #12942

Shall we close either one of the PRs?

Anyway, both looks too lengthy and likely ignored by (sloppy) vulnerability reporters

Comment thread THREAT_MODEL.md
- **Description:** An attacker intercepts or redirects image pull requests to a malicious registry, serving trojanized images that appear legitimate. DNS hijacking, BGP hijacking, or compromised CA certificates can facilitate this.
- **Impact:** Execution of arbitrary malicious code inside containers believed to be trusted.
- **Likelihood:** Medium
- **Mitigations:** Enforce TLS certificate verification for all registry connections. Use image signing and verification (e.g., cosign, Notary/TUF). Pin images by digest (`sha256:...`) rather than mutable tags. Deploy admission controllers (e.g., Kyverno, OPA Gatekeeper) to enforce signature policies.

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.

nit: Is it reasonable to link here to these tools so a user can learn more? Same comment for other tool mentions below

Comment thread THREAT_MODEL.md
#### S-2: Client Spoofing on the containerd Socket

- **Target:** gRPC API / Unix socket
- **Description:** Any process with filesystem access to the containerd socket can issue API calls as if it were a legitimate orchestrator. There is no built-in authentication layer on the socket beyond Unix file permissions.

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.

IIUC, it seems like because auth is also missing, we also lack an audit trail of "who did what"

Edit: I see this is covered below in repudiation.

Comment thread THREAT_MODEL.md
- **Description:** Mutable tags (e.g., `latest`, `v1.0`) can be overwritten in a registry. An attacker who compromises a registry account or exploits a registry vulnerability can replace a trusted tag with a malicious image.
- **Impact:** Deployment of compromised workloads across the fleet on next pull.
- **Likelihood:** Medium
- **Mitigations:** Reference images by immutable digest. Implement registry access controls with least privilege. Use image signing verification at deployment time.

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.

Can you link to what is meant by image signing verification for unfamiliar readers? (Do we have docs for this?)

Comment thread THREAT_MODEL.md
- **Description:** An attacker injects a malicious layer into a base image upstream, compromising all downstream builds. This can occur via compromised CI/CD pipelines, dependency confusion, or registry compromise.
- **Impact:** Widespread execution of attacker-controlled code across all containers built from the compromised image.
- **Likelihood:** Medium–High
- **Mitigations:** Scan images with vulnerability scanners (Trivy, Grype) at build and deploy time. Use Software Bill of Materials (SBOM) generation and verification. Pin base images by digest. Implement image provenance attestations (SLSA framework).

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.

Similar comment as above regarding image provenance attestations.

@samuelkarp

Copy link
Copy Markdown
Member

Shall we close either one of the PRs?

I haven't had a chance to look through this one yet, but my plan was to try and combine them.

Anyway, both looks too lengthy and likely ignored by (sloppy) vulnerability reporters

I want something descriptive enough that we (maintainers) can rely on. Slop reporters are going to ignore anything we put here regardless.

samuelkarp added a commit to samuelkarp/containerd that referenced this pull request May 27, 2026
Consolidate the subsystem-based security threat model with the new
threat draft from Vinayak Goyal, incorporating trust boundaries, key
assets, tiered priority mitigations, and qualitative risk ratings.

Vinayak's draft was sourced from containerd PR containerd#12978:
containerd#12978

Specifically, this commit:
* Integrates trust boundaries and asset maps into the system scope.
* Integrates seven new threats covering directory traversal, config
  tampering, interactive exec auditing, environment secrets leakage,
  and registry MITM/tag-overwrites.
* Transitions all threat risk assessments from DREAD 1-10 to the
  qualitative Severity and Likelihood heat-map scale.
* Reorganizes the priority mitigations (Tiers 1, 2, 3) to follow
  immediately after the operator guidelines.
* Consolidates all CVE references in a single reference section.

Assisted-by: Antigravity
Signed-off-by: Samuel Karp <[email protected]>
@samuelkarp

Copy link
Copy Markdown
Member

I've updated #12942 with some of the new ideas in this one.

@vinayakankugoyal are you okay closing this?

@github-project-automation github-project-automation Bot moved this from Needs Triage to Done in Pull Request Review May 29, 2026
@vinayakankugoyal

Copy link
Copy Markdown
Contributor Author

I've updated #12942 with some of the new ideas in this one.

@vinayakankugoyal are you okay closing this?

Closed. Please add me as co-author or link this in the other PR.

@samuelkarp

Copy link
Copy Markdown
Member

Yes, will add you as co-author. Thanks!

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

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants