Repository navigation
docs(rfc): draft RFC 0001 -- project maintainer compromise actor - #22
Conversation
Adds a draft RFC under docs/rfcs/ proposing a new in-scope threat actor (§3.2.6 Project maintainer compromise) for docs/threat-model.md, with specimen text for the actor entry, refinement of §5.5.2 into upstream-dependency and own-project sub-cases, re-targeting of §6.4 mitigations with explicit "covers / does not cover" pairings, and specimen amendments to the §3.2 intro paragraph, §7 (Residual risk), and a new §8.11 (Out of scope). The RFC honestly surfaces the gap that branch protection with required_approving_review_count = 0 (ADR-0008) does not provide four-eyes review during single-maintainer phases, and identifies reproducible builds (Phase 3, RFC-gated) as the only control that retains value against a fully-compromised maintainer because verification occurs outside the maintainer's trust boundary. Tracks issue #20. The threat model itself is not amended here; a follow-up implementation PR will apply the proposed text on RFC acceptance per the maintenance clause in docs/threat-model.md.
There was a problem hiding this comment.
Pull request overview
This PR adds a draft RFC proposing a structural update to the project threat model: introducing a new threat actor (“Project maintainer compromise”) and outlining how existing and planned mitigations should be re-mapped to explicitly cover (or not cover) that actor.
Changes:
- Adds RFC 0001 proposing a new §3.2.6 threat actor (“Project maintainer compromise”) for
docs/threat-model.md. - Proposes splitting threat-model §5.5.2 into upstream vs. own-project maintainer compromise sub-cases and re-targeting §6.4 mitigations with explicit “covers / does not cover” statements.
- Documents scope boundaries and residual-risk implications for single-maintainer phases (e.g., branch protection with 0 required reviews).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Copilot reviewer flagged that the draft introduced an explicit "Likelihood, conditional on capability" field on §3.2.6, contradicting docs/threat-model.md §1.1 which states the document is not a risk assessment and assigns no likelihoods or impact ratings. This commit removes the sixth field from the proposed §3.2.6 actor specimen so the format matches §3.2.1-§3.2.5 exactly (Capability, Intent, Targeting, Typical techniques, Implication for design). The rationale for documenting the actor now is preserved in the Motivation and Drawbacks sections, framed by reference to the existing or committed-to mitigations rather than by a probability claim. Cascading edits: - Summary: replace likelihood sentence with §1.1-consistent framing. - Drawbacks #4: rephrase to argue from mitigation existence, not from likelihood rating. - Unresolved questions #2: declare resolved (field removed); note that any future move to add likelihood ratings would be a separate, larger RFC. - Unresolved questions #5 ("When to re-rate likelihood"): removed, moot. - Rationale "Why Moderate-High capability": remove the capability-vs-likelihood orthogonality argument that referenced the now-removed body paragraph; preserve the substantive point that capability is rated by what the adversary can do. Refs PR #22 review by copilot-pull-request-reviewer.
Second Copilot reviewer pass flagged that the RFC overstated what
ADR-0006 + ADR-0008 actually deliver against §3.2.6. GitHub's
require_signed_commits branch-protection setting validates that a
commit carries a signature "verified" against any key registered to
a collaborator of the repo. It does not pin to a specific fingerprint,
so the control is bypassable by:
(a) a session hijack that uploads a fresh signing key to the
compromised collaborator account,
(b) theft of the maintainer's existing SSH signing key,
(c) a malicious co-maintainer's own registered signing key.
The pinned-fingerprint guarantee is available only out of band
(downstream allowed_signers verification per ADR-0006's recipe in
docs/operations.md).
Changes:
- §6.4 specimen bullet "Signed releases and signed commits on main":
rewritten to distinguish server-side enforcement from out-of-band
verification, and to enumerate the three bypass paths explicitly.
- Mitigations table row "SSH commit signing on main": cells
rewritten so the "covers" list reflects what GitHub's setting
actually rejects (unsigned commits, unverified signatures) and
the "does not cover" list enumerates the three bypass paths.
- Future possibilities "Independent monitoring of main integrity":
refined to make publishing a canonical pinned-fingerprint set
the explicit precondition, and to name the bypass path that
monitoring closes.
Secondary wording cleanup detected in the same pass:
- "§3.2.1-§3.2.5 ladder (which moves from outside-in by capability)"
-> ordered by capability tier; removes awkward phrasing.
- "maintainership handoff to a colluding identity"
-> "(co-maintainer addition or successor handoff)"; matches the
sub-division already documented in §3.2.6 Capability.
Refs Copilot review comments 3224399579 (line 195) and 3224399618
(line 319) on PR #22.
…s honestly Addresses Copilot review comments on commit 21d7bc4: - §3.2.6 Implication-for-design: drop the claim that reproducible builds are "the only defence-in-depth that survives a maintainer who is fully compromised". They retain value against the build-pipeline-compromise sub-case (build env, release host, distribution channel) because verification occurs outside the maintainer's trust boundary, but against a maintainer who merges malicious source on `main` and produces matching reproducible binaries the source/artefact pair remains internally consistent. Point readers at the §6.4 reference-level table for the precise per-control bound and at ADR-0008's zero-required-reviews stance for the source-side residual. - §6.4 specimen bullet: rename "Signed releases and signed commits on `main`" → "Signed commits on `main`". ADR-0006 documents only SSH commit signing; there is no signed-tag, signed-release-artefact, or signed-checksum-manifest control established by any current ADR. The bullet now explicitly notes that the implementation PR will apply the same correction to `docs/threat-model.md:1091`, which carries the same overstated phrasing today. - §7 (Residual risk) specimen: replace "signed-tag verification by downstream consumers" with "downstream signed-commit verification against a pinned `allowed_signers` set", per ADR-0006's recipe, and note that adoption of signed release tags or signed release artefacts is deferred to a future ADR/RFC. - Honest acknowledgment paragraph: replace "downstream verification of signed releases" with "downstream verification of signed commits against a pinned `allowed_signers` set" for the same reason. - Unresolved questions: add #5 explicitly scoping what "signed releases" would mean (signed tags via the ADR-0006 key vs a dedicated tag-signing key, signed checksum manifests, Sigstore or minisign artefact signing) and recording that this RFC takes no position on which path. - Future possibilities: add "Signed release tags or signed release artefacts as a future ADR" immediately before the existing transparency-log-witnessed entry, since the basic signing primitive is the prerequisite for the witnessed-signature variant. No substantive scope change to the actor entry or to the §6.4 control re-targeting; this commit tightens redaction to match what each control actually guarantees today.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 3 comments.
Comments suppressed due to low confidence (4)
docs/rfcs/0001-threat-model-actor-project-maintainer-compromise.md:350
- Mitigations table: the “covers” cell for GitHub
require_signed_commitsstates that commits signed by keys not registered to a repository collaborator are rejected. That collaborator constraint is likely inaccurate and could mislead readers about what the server-side check actually enforces. Consider describing the guarantee strictly in terms of “Verified vs unverified signatures” and the absence of fingerprint pinning, without implying a collaborator-only key set.
| SSH commit signing on `main` (server-side, GitHub `require_signed_commits`) | ADR-0006, ADR-0008 | Unsigned commits; commits signed by a key not registered to any repository collaborator (rejected as unverified). GitHub validates against any key in a collaborator's signing-key list. | Any signature GitHub marks *verified*, regardless of fingerprint: (a) a fresh signing key uploaded to a compromised collaborator account after session hijack, (b) the maintainer's existing SSH signing key after theft (also the GitHub auth key per ADR-0006 "Negative"), (c) a malicious co-maintainer's own registered key. Fingerprint pinning is out-of-band only (downstream verification via `allowed_signers`). |
docs/rfcs/0001-threat-model-actor-project-maintainer-compromise.md:638
- Future possibilities: this again states GitHub validates signatures “against any key registered to a collaborator”. That collaborator framing is likely incorrect; the key distinction worth capturing is that GitHub accepts any Verified signer and does not enforce a pinned signer set/fingerprint. Suggest rewording to avoid baking in an inaccurate model of GitHub’s verification semantics.
periodically fetch `main`'s tip and verify each commit's
signature against the pinned set, rather than against any key
registered to a collaborator (which is what GitHub's
`require_signed_commits` actually validates). On divergence, the
docs/rfcs/0001-threat-model-actor-project-maintainer-compromise.md:352
- Mitigations table row “Dependency discipline” refers to “new crates outside the allowlist” and “already-allowlisted upstream”, but the repository’s
deny.tomldoes not define a crate allowlist (it enforces license/source/advisory policy instead). Please adjust this row to reflect the actual checks cargo-deny performs with the current config, or add an explicit allowlist if that’s the intended policy.
| Dependency discipline | `deny.toml`, cargo-deny in CI | Silent introduction of new crates outside the allowlist, banned licences, banned advisories. Defends §5.5.2.a. | Compromise of an already-allowlisted upstream (a different §5.5.2.a path). Does not defend §5.5.2.b at all — `deny.toml` is enforced *by* the maintainer, so a compromised maintainer can edit it. |
docs/rfcs/0001-threat-model-actor-project-maintainer-compromise.md:354
- Mitigations table row “Reproducible builds”: the “does not cover” cell mentions coordinated compromise of source + build environment, but it omits the key limitation described earlier in the RFC: reproducible builds don’t flag a maintainer who lands malicious source on
mainand then builds matching artifacts from that same source. Consider adding that explicit limitation to the table so the “full mapping” stays consistent with the narrative.
| Reproducible builds | Phase 3, RFC-gated (not yet landed) | Will enable third parties to detect divergence between published source on `main` and binaries distributed under the project's name. The only control that retains value against a fully-compromised maintainer, because verification occurs *outside* the maintainer's trust boundary. | An attacker who has compromised both the source and the build environment in coordinated fashion. |
….toml scope, reproducible-builds consistency Three substantive corrections to RFC 0001 from the latest Copilot review pass (PR #22, round 4): 1. **`require_signed_commits` semantics (3 occurrences).** Removes the "any key registered to a collaborator" framing introduced in 21d7bc4. GitHub's check verifies that the signature resolves to any Verified GitHub identity, not specifically to a collaborator; collaborator-only push to `main` is enforced separately by repository permissions and branch protection. Updated in the §6.4 specimen, the mitigations table row, and the Future possibilities monitoring entry. 2. **`deny.toml` scope (2 occurrences).** Removes the implication that `deny.toml` enforces a per-crate allowlist. Verified against the file: `[bans] deny = []`. What cargo-deny actually enforces today: licence allowlist (`[licenses] allow`), registry/git-source allowlist (`[sources]`), wildcard version ban (`[bans] wildcards = "deny"`), RustSec advisories. A new permissively-licensed crate from crates.io is not blocked. Updated in the §6.4 specimen bullet and the mitigations table row. 3. **Reproducible builds internal consistency (2 occurrences).** The 11fd3c5 correction to the §3.2.6 narrative did not propagate to the §6.4 specimen and the mitigations table row, which still read "the only control that retains value against a fully-compromised maintainer". Both are now scoped to the *build-pipeline-compromise* sub-case, and the table's "does not cover" cell explicitly names the matching-reproducible-binaries-from-malicious-source path. Editorial nits bundled in: - Brittle line-number citations replaced with anchor citations ("Lines 9–15 of docs/threat-model.md" → "The Maintenance note at the top"; "line 1091" → "§6.4 first bullet"). - §3.2.6 paraphrase of §5.5.3 tightened from "honest acknowledgment that not every threat has a precise ATT&CK identifier" to "the §5.5.3 entry's explicit note that no specific ATT&CK technique applies". - "Proposed amendments elsewhere in docs/threat-model.md" gains a fourth bullet: the implementation PR removes the trailing "long-lived implants in the maintainer's development environment" clause from §3.2.5's Typical techniques (line 397–398), now subsumed by §3.2.6's persistent-implant path at the High tier. - §8.11 "must rely on" softened to "rely on".
Summary
docs/threat-model.md, with the Capability / Intent / Targeting / Typical techniques / Implication-for-design fields matching the format of §3.2.1–§3.2.5.deny.toml, ADR-0005, and the Phase 3 reproducible-builds / SBOM commitments.required_approving_review_count = 0(ADR-0008) does not provide four-eyes review during single-maintainer phases; identifies reproducible builds as the only control that retains value against a fully-compromised maintainer because verification happens outside the maintainer's trust boundary.docs/threat-model.md.RFC process
rfclabel, perdocs/rfcs/README.mdstep 3.docs/threat-model.mdand closes Threat model: add 'Project maintainer compromise' actor under §3.2 (RFC-gated) #20.Verification checklist
docs/rfcs/0000-template.md(Summary, Motivation, Guide-level, Reference-level, Drawbacks, Rationale and alternatives, Prior art, Unresolved questions, Future possibilities).T1195.002,T1566,T1552.004,T1539) resolve to current Enterprise techniques; the RFC explicitly notes ATT&CK does not cleanly cover the infiltration sub-cases (xz-utils,event-stream) and does not force a poor-fit mapping.required_approving_review_count = 0.RSA_public_decryptvialibsystemd), event-stream 2018 (full handoff to malicious successor,flatmap-streamtargetingcopay), ua-parser-js 2021 (credential compromise of existing maintainer).What this PR is not
This PR adds a draft RFC; it does not modify
docs/threat-model.md. The threat model's maintenance clause (lines 9–15) requires structural changes to the actor list to land via the RFC process. The implementation PR is gated on acceptance of this RFC.