Repository navigation
add containerd threat model using the STRIPE framework. - #12978
vinayakankugoyal wants to merge 1 commit into
Conversation
Initial attempt to threat model containerd using STRIPE.
dc25fae to
2ed5844
Compare
|
@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 |
| - **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. |
There was a problem hiding this comment.
nit: Is it reasonable to link here to these tools so a user can learn more? Same comment for other tool mentions below
| #### 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. |
There was a problem hiding this comment.
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.
| - **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. |
There was a problem hiding this comment.
Can you link to what is meant by image signing verification for unfamiliar readers? (Do we have docs for this?)
| - **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). |
There was a problem hiding this comment.
Similar comment as above regarding image provenance attestations.
I haven't had a chance to look through this one yet, but my plan was to try and combine them.
I want something descriptive enough that we (maintainers) can rely on. Slop reporters are going to ignore anything we put here regardless. |
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]>
|
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. |
|
Yes, will add you as co-author. Thanks! |
Initial attempt to threat model containerd using STRIPE.
xref #7715