# Counterfactual cut analysis: methodology

Method note accompanying CF-001/C, OpenAI, Hugging Face, and the Chain Nobody Cut. Version 1, evidence cutoff 20 October 2026.

## What the method is for

Counterfactual cut analysis asks which proposed controls, had they been in place and independent, would have disconnected the reported routes from the targets that mattered. It applies attack graph analysis to an incident record. Attack graphs, and the search for sets of measures that disconnect an attacker from a goal, are long established (Sheyner and colleagues, Automated generation and analysis of attack graphs, IEEE Symposium on Security and Privacy, 2002. Ou, Govindavajhala and Appel, MulVAL, USENIX Security Symposium, 2005). What the method adds is discipline about evidence and about credit. Every transition carries its evidence status. Unresolved points become named assumptions that are varied and not decided. Controls are modelled by function, so that a detector is never counted as a cut. And no control is credited until a second graph shows that the compromised workload cannot reach the holders of its authority.

**Inputs.** The incident sources, each with an evidence label. A start state, a compromised workload and the targets. A register of candidate controls, each with the transitions it acts on and a test that could fail.

**Procedure.**

1. **Fix the question.** Name the start state, the compromised workload and each target separately. A control that cuts one target need not cut another.
2. **Build the capability graph.** Split compound steps into atomic transitions. Mark each as narrated, inferred or unresolved, record its source and time, and mark AND wherever a transition needs several states at once.
3. **Name what is unresolved.** Each open question becomes an assumption with a default, and each plausible alternative route becomes a transition that can be switched on and off.
4. **Register the controls.** Give each control's function on every transition it touches: prevent, constrain, detect or assure. Only prevent changes reachability. State the pass condition and what its test covers.
5. **Compute the cuts.** For each target and scenario, find the single controls and the smallest sets of controls that disconnect it, and a surviving route for each control that does not. Report coverage counts separately, because covering a transition is not cutting a route.
6. **Test independence.** Build the administrative graph, record the holder of each of the six authorities for each credited control, and look for a path from the compromised workload to any holder. A control with such a path is not credited, wherever it sits in the capability graph. For controls paired in a cut set, look for a node that reaches a holder of both. If one exists, call them distinct and not independent.
7. **Register the residual paths.** For each credited cut, list the bypasses, what is established about each and the test that would settle it.
8. **Publish the model.** Release both graphs and the scripts, so that a reader can change an assumption and recompute every result.

**Outputs.** A cut table and a sensitivity table for each target, an independence verdict for each control, a residual path register and a list of tests. Every result is relative to the model.

**What it cannot show.** Whether a control would have prevented the incident. A cut holds only for the routes in the model, and an independence verdict holds only for the administrative edges recorded. Both improve as evidence is added, and both are wrong if the graph omits a route that existed.

## Definitions

```text
Capability graph
G = (V, E)        vertices are states, meaning positions or authorities held
s                 the start state, for example an agent in an evaluation sandbox
t                 one target at a time. Each target gets its own cut analysis
AND               a transition may need several states at once
OR                a state may be reached by several transitions
Prevent           removes the named transition
Constrain         replaces the destination with a weaker state. Reachability is unchanged
Detect, Assure    leave the graph unchanged
Cut               a set C of preventive controls is a cut for t when t is not reachable
                  from s once every transition C prevents is removed

Administrative graph
A = (N, E)        x -> y when control of x yields an authority over y
w                 the compromised workload
H(c, k)           the nodes holding authority k over control c, for the six authorities
                  configuration, identity, deployment, bypass, recovery, evidence
Independent(c)    no node in any H(c, k) is reachable from w in A
Credit            a cut is credited only if every control in it is independent
Distinct          two controls are distinct, not independent, if one node reaches
                  a holder of each
```

## Rules for crediting a control

1. A control is credited with a path only if it prevents a transition that path uses.
2. A cut is stated for one target, one scenario and one model. It is never a claim that the real system had no other route.
3. Detection and constraint are reported, but they are never counted as cuts.
4. Every unresolved point is varied. A result that changes when an assumption flips is reported as conditional on it.
5. A control whose authority holders are reachable from the compromised workload is not credited, however well placed it is.
6. Coverage counts, such as the number of transitions with a preventive control, are reported apart from cuts.

## Files and commands

| File | What it holds |
|---|---|
| graph.yaml | States, targets, controls, assumptions and transitions. A transition lists its sources (several sources mean AND), its destination, its evidence status and the controls acting on it with their function |
| analyze.py | Reachability, minimal cuts of up to three controls, coverage counts and the sensitivity table |
| admin_graph.yaml | Nodes, edges with their basis (reported or hypothetical) and the condition under which they apply, and the holder of each authority for each control |
| independence.py | Breadth first search from the compromised workload, a verdict for each control, the shortest path to each reachable holder, and the nodes that defeat a pair of controls together |
| explorer.html | Both graphs in a browser, with controls, assumptions and shared dependencies to switch |
| cca-template.md | The one page template |

```text
python3 analyze.py --markdown            the sensitivity table
python3 analyze.py --on D6c1             targets that survive with only D6c1, and one route to each
python3 analyze.py --on D6c1 --drop 10b  the same without OpenAI's account of node access
python3 analyze.py --role                every minimal cut each control belongs to
python3 independence.py --article        the independence table
python3 independence.py --b-fails        the same with egress property B failing
python3 independence.py --pairs          nodes that reach a holder of both controls in a pair
```

## Worked example

In CF-001/C the method's first result is conditional. Hugging Face says the credential behind cluster admin descends from a secrets read made with node root, and node root came through a privileged pod that an admission policy would have blocked. OpenAI says the agent read the connector secret with a compromised worker's own service account token, and describes node access through a token request and kubelet access, with no privileged pod. With both accounts in the model, the admission policy is a member of no minimal cut, for any target, in any of the four scenarios. Under Hugging Face's account alone it would cut every target. Connector API authorisation cuts the connector outcomes in every scenario, under either account.

## Limits

The method inherits every gap in the evidence. It assumes that the transitions recorded are the ones that mattered and that each control's enforcement behaves as its pass test says. It models authority as reachability and ignores timing, detection and the cost of each step. A state expanded model, carrying credential possession, policy state and reachable routes in its vertices, would be more faithful and is the natural next step.
