Where Naive Harnesses Break · 5 of 5
Sequence Tracing for Multi-Step Attack Paths
The exploit lives across steps, so the defense must too. Trace the whole sequence, propagate trust, and break the chain at a checkpoint.
The failure modes in this series share a root cause: they all hide in the relationships between steps rather than in any single step. Temporal blind spots, misplaced tool trust, missing context, and mismatched depth each become dangerous when a run is treated as a series of disconnected moments. The unifying defense is sequence tracing: making the whole ordered path a first-class object the harness follows, with trust flowing along it and checkpoints placed exactly where an attack chain would have to pass.
The whole path, not the pieces
A multi-step attack is built from ordinary-looking steps arranged in a harmful order. Each piece passes inspection; the arrangement is the exploit. To catch it, you have to watch the arrangement, which means following the sequence from input to final action as one connected thing.
Sequence tracing turns that into engineering. Instead of asking is this step fine, the harness asks is this path fine, given every step that led here.
Trace the sequence end to end
A traced run records each hop and the guard between hops. The user states a goal; the agent proposes a step; a checkpoint evaluates it in the context of the whole path; only then does a tool run; and every exchange, including the ones that were refused, is written down.
Because the trace spans the whole run, a harmful step is visible as part of its chain, and the checkpoint that sits on the transition can refuse it before it acts.
Propagate trust as data flows
The single most useful thing to carry along a sequence is a trust label. When untrusted content enters, mark it untrusted, and keep that mark on everything derived from it. Then a simple, deterministic rule becomes possible: untrusted data may never trigger a consequential action.
This is information-flow control: labels attached to data, propagated through every step, and checked before an action. It is what makes the attack chain break by construction rather than by hoping a model behaves.
From signals to a confirmed path
Tracing also feeds detection. A run emits many small events; most are innocent. Correlating them across the sequence narrows a flood of signals down to the few that form a coherent, suspicious path, which is what you actually want to alert on.
The value is in the narrowing. Any single event is noise; the sequence is the signal, and only the sequence reveals a multi-step attack as a whole.
Checkpoints on the transitions
Sequence tracing pays off only if there are places to intervene. Put checkpoints on the transitions where an attack chain must pass, and give each the context of the whole path so it can refuse a step that is fine alone but dangerous in sequence.
These are the concrete controls that turn a trace from a record into a defense.
- Check each proposed step against the whole path so far, not in isolation.
- Carry a trust label from source to action and block untrusted-to-consequential flows.
- Re-validate anything read back from memory before it can steer a step.
- Correlate events across the run to detect a coherent attack, not lone anomalies.
Bringing the failure modes together
Sequence tracing is where the whole series converges. It closes temporal blind spots by watching the path, not the point. It defeats misplaced tool trust by checking authority at every transition. It answers missing context by carrying the surrounding facts along the run. And it enables risk-triggered depth by knowing exactly what an action can do in the context of everything before it.
One discipline, applied consistently, turns four separate weaknesses into a single, coherent defense.
What a practitioner decides
Committing to sequence tracing means deciding to model a run as a labeled path, to place checkpoints on its transitions, and to correlate its events for detection. It is more work than inspecting steps, and it is the work that actually stops multi-step attacks.
The final question for any agent is not is each step safe. It is: is this path safe, and can we prove we watched all of it?
Key takeaways
- Multi-step attacks are built from ordinary steps in a harmful order; watch the arrangement.
- Trace the run end to end so a harmful step is visible as part of its chain.
- Propagate a trust label along the sequence and block untrusted-to-consequential flows.
- Correlate many small events across the run to reveal a coherent attack path.
- Place checkpoints on transitions, each with the context of the whole path.
- Sequence tracing unifies the fixes for temporal, tool-trust, context, and depth failures.
Glossary
- Sequence tracing
- Following an agent run as one ordered path so risk that spans steps becomes visible.
- Information-flow control
- Attaching labels to data, propagating them through every step, and checking them before an action.
- Trust label
- A marker recording whether data is trusted or untrusted, carried through the run.
- Checkpoint
- A control on a transition between steps that can refuse a step given the whole path's context.
- Event correlation
- Combining many small signals across a run to detect a coherent pattern like an attack.
- Consequential action
- An action with real effect, such as changing state or moving data, that untrusted input must not trigger.
- Transition
- The move between two steps of a run, where a checkpoint can intervene.