Exploit chaining from verified findings

Browse all guides

A chain is not two findings placed next to each other. RedFall composes reproduced findings into a multi-step proof of concept, replays the composite against the live application, and admits an edge only when the step’s predicate holds and the two findings each reproduced on their own. A plausible narrative without a replay is refused.

This is the difference between attack-path analysis and attack-path storytelling. The chain stage is allowed to propose a wiring; the executor is the only stage allowed to admit it.

What makes a chain valid?

The admission rules are structural:

Rule Why it exists
Each step is already a reproduced finding A chain built on a candidate inherits the candidate’s uncertainty
The proposal names real findings and a valid step count A model cannot invent a step or skip the plan review
The plan passes structural review Step references, extract grammar and ordering are checked before execution
The composite PoC replays in the sandbox Each step must hold in sequence, not just in isolation
Only held predicates become edges A failed step admits nothing beyond the hops that held
The graph is rebuilt from persisted rows The report does not trust the stage’s memory

A chain that stops at step two keeps only the first hop. A chain that never leaves step one admits nothing. A refused proposal is persisted and reported as refused, with its reasons, and can never contribute an edge.

What does the chain stage actually do?

The stage has four parts:

  1. Proposal. A chain analyst prompt receives the reproduced findings and the responses they actually produced, and proposes wirings over them.
  2. Plan review. chain/plan.py checks the proposal structurally: step counts, finding references, extract grammar, and whether the steps form a sequence the executor can run.
  3. Composite execution. chain/executor.py composes the steps into one PoC. compose_poc stitches the requests in order and substitutes the values each step yields.
  4. Graph admission. The composite runs in the same sandbox as a single finding. Only hops whose predicates held become EdgeRows. chain/graph.py rebuilds the graph from those rows.

The narrative is generated after the graph exists, not before. A model cannot write a story that creates an edge.

What do the six range chains demonstrate?

range/chainbank contains six two-step chains. The manifest records the start state, end state, per-step CWE and CVSS, and the composite CVSS score. Three examples show the shape:

Chain Steps Composite severity
Unauthenticated account lookup to account takeover IDOR discloses owner email, then password reset returns the token 9.4 critical
SQL injection to administrative session UNION extracts an admin hash, then a hash-login endpoint accepts it 9.8 critical
Upload to code execution Unrestricted upload lands in the plugin directory, then reload require()s it 9.6 critical

The chainbank suite has 8 tests, and the replay script reports 6/6 chains reproduced end to end. The gate requires chain_recall >= 0.8333 (five of six), chain_link_rate == 1.00, and chain_narrative_rate == 1.00. The target is measured against those thresholds; the range targets page records the commands.

How is a composite PoC composed?

Each step’s request is a real HTTP request with a real predicate. A step can yield a value that a later step uses: an owner email, a reset token, a password hash, a session token, an uploaded file path. Composition substitutes the yielded value into the later request and keeps the per-step predicates.

The executor does not assume that a value extracted in step one is valid in step two. It replays the sequence and checks each predicate. If an extraction fails, the chain stops at that step; the hops that already held remain, and the later hops do not.

That behaviour is why the chain graph is trustworthy: an edge is a replay artefact, not a claim about what should have happened.

How is the composite scored?

chain/cvss_compound.py computes a compound score from the steps and the chain’s start and end states. The manifest also declares a composite score for each chain, and the range scorer compares the report to the manifest. The score is a prioritisation aid, not a replacement for the replay.

A high compound score on a chain that did not replay is not a finding. The score is attached after admission, not before.

What does chaining not prove?

A chain proves that the recorded sequence of requests produced the recorded sequence of effects against the sandboxed build. It does not prove:

  • That every possible sequence is covered.
  • That the chain works against a different deployment or configuration.
  • That the impact is exactly the composite score in a real environment.
  • That the narrative describes every precondition a human would need.

The evidence page lists what was replayed and what was not. The blocked page records that a full live scan cannot run on the current host.

Why not just let the model write the chain?

Because a model can produce a convincing sequence that never runs. The chain stage accepts model proposals as hypotheses, reviews them structurally, and gives the executor the final word. The graph is rebuilt from persisted rows so the report cannot inherit a narrative that the execution did not support.

The no-mock contract is the general rule; chaining is the place where it is easiest to violate accidentally.

Frequently asked questions

Can a chain include a candidate that never reproduced?

No. Every step must be a reproduced finding. A candidate can be analysed on its own, but it cannot be an edge in a chain.

What happens if a chain proposal is refused?

The refusal is persisted with its reasons and reported. It contributes no edge. The scan continues with the findings that did reproduce.

Is the composite PoC stored?

The scan stores the request, response and verdict for the execution. The chain’s steps and edges are persisted as rows, and the graph is rebuilt from them for the report. See SARIF output for the export.

Run it yourself. Install RedFall, run redfall doctor, then scan a target you own. The evidence page records what was measured and what still needs a runtime.

Install RedFallSee the evidence