Blog
Engineering
What Does It Take to Prove an Attack Path?
Knowing whether a vulnerability is exploitable requires tracing what an attacker can do in the environment where it runs. Here’s how Cogent verifies each step of an attack path against evidence to determine how far an attacker can get and where the answer remains unknown.
10min read

In Pre-training and post-training agents, we introduced Cogent's Context Engine and how we split our agents into pre-training agents, which build a world model of each customer environment, and post-training agents, which use that world model to produce findings a security team can trust. This post focuses on one of those, our post-training exploitability agent, and the question it is designed to answer: Is this vulnerability exploitable here, and if so, how far can an attacker get?
That question is harder than it sounds because most of the answer lives outside the code. Take a scanner finding for a remote code execution vulnerability in a billing service. The repository can tell you whether the vulnerable function exists and whether a request handler calls it. It can't tell you that one of the two backends behind the load balancer already runs the patched image, that the WAF in front of the service is in alert-only mode, or that the Palo Alto policy on that flow has a blocking threat profile but no Threat Vault signature for this CVE. Each of those facts changes the verdict, and each lives in a different system.
Our answer is to treat an exploitability verdict as a proof obligation over a path of state transitions. Each transition has to be running, reachable, triggerable, unprevented, and consequential within one shared time window. The agent grounds its search in the world model, keeps the state of one candidate path in a small store, and moves that state forward only by calling verifiers, tools that each decide one condition and return a receipt. A deterministic core composes the receipts into a verdict, and no model, including the agent that proposed the path, can upgrade one (Figure 1).

Figure 1. The exploitability agent grounds its search in a subset of the world model, keeps one path's state in a path store, and changes that state only through receipts that verifiers return. A finished finding goes to reviewers, who decide whether it is trusted.
The terms we use
A handful of words carry most of this post, and each one means exactly one thing:
World model: the graph of entities and the markdown pages that environment mapping, our pre-training agent, maintains in the Context Engine for each customer.
Path store: the exploitability agent's working store for one candidate path, a subset of context files plus the receipts collected so far. It holds the path's current state.
Transition: one attacker action, such as exploiting a service or assuming a role, that turns a state S into the next state S′.
Condition: one of five things that must hold for a transition to happen: Running, Reachable, Triggerable, Unprevented, and Consequential.
Verifier: a tool the agent calls to decide one condition, such as a Batfish query, an IAM policy simulation, or a read of the image a Pod is actually running.
Receipt: what a verifier returns: Proved, Refuted, Unknown, or Error, plus the snapshot it checked and how long the result holds. Receipts are the only thing that changes S.
Finding: the artifact the agent writes when a path is done, citing every receipt behind it.
Reviewer: a code, model, or human check that decides whether a finding is trusted. These are the Context Engine's artifact verifiers; we call them reviewers here so they aren't confused with the verifiers above.
The short version is that verifiers check the environment and move a path forward, while reviewers check the finding and decide whether anyone sees it.
Reachability is only the first question
Vulnerability prioritization tends to blur three questions together (Figure 2). Reachable asks whether attacker input can get to the vulnerable code. Exploitable asks whether the vulnerability's preconditions hold in this deployment, so that input which arrives actually triggers the flaw. Viable asks whether exploiting it gets the attacker anywhere that matters, which means following the path past the first foothold to a crown jewel. Most tools stop at the first question, and many answer it from a single layer: a call graph that says nothing about the network, or a network model that says nothing about which build is serving traffic. We answer all three as part of the same verdict.

Figure 2. Three questions in one verdict. Reachability says input can arrive, exploitability adds the vulnerability's preconditions, and viability follows the path to a crown jewel.
Ground rules
Two decisions shape everything that follows. The first is that wrong answers are not symmetric. A wrong "exploitable" costs a security team time on a path that turns out to be blocked, while a wrong "not exploitable" buries a real path that nobody looks at again. So refuting a condition takes stronger evidence than confirming one, and missing data never counts as a control: if no connected source can say whether a WAF covers a route, the answer is Unknown, not blocked.
The second is the threat model. A path starts from an internet-exposed service or from a confirmed, externally usable credential, such as an identity-provider session that still works for someone who has left the company. We don't assume an internal foothold unless evidence shows how the attacker gets one, and paths that need the fewest attacker preconditions rank first.
A path is a sequence of states
Security researchers have modeled attack paths as sequences of state transitions for more than two decades, from Sheyner and Wing's model-checked attack graphs to MulVAL's logic-based network analysis. We use the same model. What changes in a live enterprise is where the facts come from: cloud, network, identity, runtime, and endpoint sources that disagree with each other, go stale, and describe a state that is only true for a window of time.
A state has three parts, and the path store holds all of them (Figure 3). The attacker's part answers who am I, where am I running, and what am I holding: the identity that actions are attributed to, the foothold where the attacker's code or session runs, and the credentials that could make the attacker someone else on the next hop. The environment's part answers what is configured and what is enforced, as a configuration snapshot plus the controls that apply to the exact action. The window is the interval over which all of those facts hold together, which is why credential expiry and session revocation shrink it. The starting state, S0, is an entry point taken from the environment-mapping graph: an internet-exposed listener that the edge configuration permits traffic to, or an external identity whose session the identity provider still accepts.

Figure 3. The path store holds the current state of one path: the attacker's identity, foothold, and credentials, the environment's configuration and controls, and the window over which they hold. S0 comes from the world model.
A transition is an instance of an action type, and each action type has preconditions plus an effect template that says which fields of S′ it sets. Exploiting a remote service moves the foothold and changes identity, an SSRF against a credential endpoint adds credentials and shrinks the window to their expiry, a configuration change alters the environment itself, and a protected operation, such as reading a regulated table, ends the path. Keeping the library of action types small and finite keeps the search tractable, and it makes "not exploitable" a claim scoped to that library rather than a guess.
The model never guesses an effect. Each field of S′ is bound from evidence: after RCE in a Pod, identity comes from the Pod's serviceAccountName, credentials come from the IRSA annotation on that service account and the role it names, and the foothold comes from the Pod's namespace, node, and security group. When a binding is Unknown, because we can't tell which service account the Pod runs as, that field of S′ is Unknown and every later condition that reads it inherits the Unknown, while conditions that don't read it are unaffected. Unknowns propagate along data dependencies, not across the whole path (Figure 4).

Figure 4. A path as a sequence of states. Changed fields are highlighted, and each transition shows its five conditions. On the second hop the trust policy has a condition key we can't evaluate, so Triggerable is Unknown and Consequential inherits it: a bounded gap with one named check, not a confirmed finding.
Verifiers decide each transition
The agent never writes S′ on its own judgment. To take a transition, it calls a verifier for each condition, each against the source best suited to that condition, and each verifier returns a receipt that lands in the path store (Figure 5). The agent's job is to choose which transition to try next and which verifier to ask; the verifiers' job is to answer. For each condition, the useful question is not only what proves it but what refutes it and what merely looks like a refutation.

Figure 5. A transition is a loop: the agent reads S, calls a verifier for one condition, and the receipt it returns becomes part of S′.
Condition | Question | Typical refutation | Unknown, not refuted |
|---|---|---|---|
Running | Is the affected build what actually serves this interface? | Every serving backend runs the patched digest | The package is in the SBOM, but nothing shows it is loaded |
Reachable | Can attacker input get from the foothold to the vulnerable handler, through every layer in between? | A policy denies the port from the origin's zone | "No rule found" from a source that doesn't model the L7 or mesh layer |
Triggerable | Do the vulnerability's or the action's preconditions hold? | Feature disabled, OS mismatch, explicit deny | A third-party decorator we can't inspect |
Unprevented | Does a preventive control that covers this technique apply here? | WAF in block mode with a signature for the CVE | "EDR installed", since detection alone doesn't sever a path |
Consequential | What does S′ give the attacker, and does it move toward a crown jewel? | The workload identity can't touch anything downstream | A broad permission without the exact action and resource |
Reachable is more than a packet question (Figure 6). Attacker input has to get through the network path (routes, NAT, security groups, firewalls, NetworkPolicy), through the edge and load balancer that decide whether this host and path are forwarded to a backend running the vulnerable build, through any authentication gate in front of the application, and finally down a code path where the routed handler calls the vulnerable function with attacker-controlled input. Each layer reads a different part of the state, so each usually needs its own verifier.

Figure 6. Reachable crosses four layers between the foothold and the vulnerable function, and each layer reads a different part of the state.
A verifier is only as strong as the evidence it reads, and "reachability" bundles three different kinds (Figure 7). Configured evidence, such as security groups, firewall and load-balancer config, Kubernetes manifests, and IAM policy, tells you what is allowed, and it can refute an allowance where the source models the layer. Observed evidence, such as an EDR process list, a Pod's imageID, flow logs, and identity-provider sign-ins, tells you what is happening; it proves presence but rarely refutes anything, because silence is not absence. Modeled evidence, from tools like Batfish, AWS Reachability Analyzer, or an IAM policy simulator, tells you what is possible under a model of the layer, and it proves and refutes only within that model's coverage. So Running needs an observation, because a manifest that says 1.8.2 and the Pod's actual imageID disagree during a rollout. Reachable needs configured or modeled evidence, because attackers use routes that are allowed but unused.

Figure 7. Which kind of evidence can decide which condition. Use evidence that can refute the condition you are testing.
The same mapping explains what a customer can conclude from the sources they connect. Crown-jewel designations, vulnerability findings, and asset inventory are enough to rank findings but not to bind S′. Adding runtime and endpoint data, plus external exposure, network and application controls, or identity per hop, lets every field of S′ be bound from receipts. A proved path adds a deterministic verifier for each condition.
Every verifier call is also recorded outside the agent's sandbox, and the receipt in the path store cites that record by a short handle such as tool_call:7 rather than a long identifier the agent might miscopy late in a run. That citation is what lets a security engineer open the exact call behind any claim in a finding, and it is what the reviewers check at the end.
Receipts compose into a verdict
A deterministic core, not the agent, combines a path's receipts into one of four verdicts:
Verdict | When |
|---|---|
Confirmed | Every transition's five conditions are Proved, and all of the receipts' validity windows overlap |
Potentially exploitable | Exactly one decisive fact is Unknown. The finding names the check that would resolve it, and its severity is capped below critical |
Not exploitable | A receipt refutes a required transition, within what its verifier actually checked, and no alternative path survives |
Unknown | Anything else, including missing data, which never counts as a control |
No model, the agent included, can turn an Unknown or a Refuted into a Proved; inference closes a gap only by fetching new evidence.
Search starts from the crown jewel
From the internet, the number of possible forward transitions grows quickly. From a crown jewel it stays small, so the agent starts at the goal and works backward until it meets a real entry point, then calls verifiers forward along the candidate path. The world model is what makes the backward step cheap: it already knows which workloads mount a service account, which roles can read a secret, and which repositories deploy a service.
Suppose the crown jewel is orders-db, a regulated datastore, and the protected operation is reading its customers table. There is a set of goal states rather than one: an identity with SELECT on the table and a route to the database, an identity that can snapshot and restore the instance, an identity that can read the master secret, or code running inside a workload such as orders-api that already satisfies the first. The agent steps each goal back by one action. Code inside orders-api can come from RCE in the service, from a code change that orders-api deploys, or from creating a Pod that mounts its service account, and each of those becomes a subgoal with its own preconditions. The world model proposes concrete entities for each subgoal, but only verifiers decide them. When a branch reaches an S0, the agent checks it hop by hop, the first Refuted hop kills the candidate, and the search backs up to the nearest alternative (Figure 8).

Figure 8. Backward search from a crown jewel. OR nodes are alternative ways to reach a state, and AND nodes are one action's conditions. Three branches are refuted; the surviving branch has one Unknown, so the result is a bounded gap with one named check.
This also bounds what "all paths" means. It means every path the action-type library can express, over the population the connected sources cover, at the snapshot time. Anything outside that scope is Unknown, not safe, and "not exploitable" for a crown jewel means that every OR branch has a refuted AND child within that declared scope.
Reviewers decide whether a finding is trusted
Receipts decide a verdict, but a verdict is not yet something a security team sees. When a path is done, the agent writes it as a finding, a proposed artifact in the Context Engine that carries a trust state, and reviewers decide whether it becomes trusted or rejected (Figure 12). The reviewers are declared in the agent's definition and run in a separate process, so the agent can neither approve its own work nor alter the result.
A code reviewer checks the finding's form: one path to a single crown jewel, every step naming entities that exist in the current world model, and every claim citing a receipt from a verifier call made during this run. A model reviewer then reads the finding against the receipts it cites, the way a skeptical security researcher would, looking for any step where the finding claims more than its receipts show. It can reject a finding or send it back, but it can't turn an Unknown into a Proved. Teams can add a human reviewer on top, so that a finding becomes trusted only after someone on the security team signs off. A revised finding goes through the same review again, and trusted findings flow back into the world model, so later runs start from checked steps.

Figure 12. Reviewers, not the agent, decide whether a finding is trusted. They check the finding and its citations; they never re-decide a condition.
What's next
We're continuing to add verifiers across the integrations our customers connect, so that more conditions can be decided by a model of the layer they describe: network verifiers such as Batfish and native cloud reachability analysis, identity verifiers built on IAM policy simulation, and Kubernetes network verifiers such as Cilium. Where one vulnerability's postcondition decides a high-value path, we also want to validate that postcondition in an isolated cyber range against the same build and configuration, so that consequential rests on an observed effect rather than an advisory.
On the model side, we're tuning the exploitability harness for VR-1.1, the latest checkpoint of our VR-1 foundation model. It repairs 57.9% of LiveCVEBench tasks, against 45.3% for Claude Code and Codex, and it is trained to work the way security engineers do: reproduce the flaw, repair it, then try to break the repair. That is the same skepticism we ask of every exploitability run. VR-1.1 was trained to reproduce and repair rather than to discover attack paths, and we are observing those skills generalize well to proactively finding attack paths in customer environments. Pairing it with a harness where every claim cites a verifier call, and where receipts rather than the model decide each verdict, is an approach we are really excited about.






