SEAD: A State-Based Perspective on Attack and Defense in Tool-Using Agents

Xinjie Shen, Junran Wang, Rongzhe Wei, Pan Li

Georgia Institute of Technology

Published September 28, 2026 · on the feed September 30, 2026 · ▲ 3 · arXiv 2609.34518

The abstract

Language-model agents increasingly use tools to act on external systems. Earlier actions can alter files, permissions, database records, or other state, making a later routine-looking action harmful. Yet the visible interaction may not reveal the underlying state needed to assess that action. We formulate attack and defense as partially observed state control in SEAD, deriving their design requirements from this shared execution process. Because attackers supply instructions while the target chooses concrete actions, DART decomposes harmful goals into locally plausible steps and uses feedback from actual tool execution to guide trajectory search. The defender must decide before execution with incomplete state evidence. SAGE can therefore investigate relevant state through read-only queries before allowing or blocking each action, including those proposed after a block. We construct an environment-verifiable dataset integrating controlled initial states, replayable tool environments, and task-specific executable checks. Across four target models, DART improves semantic attack success by 18.8--35.9 percentage points over the competing baseline, with consistent gains under executable verification. On recorded trajectories, SAGE preserves 95.79% of benign trajectories while intercepting 92.73% of harmful paths by the harm-enabling boundary. In online attack-defense evaluation, it reduces DART's executable attack success from 48.0% to 4.0%. SAGE remains effective across four attack methods and generalizes to out-of-domain environments. Our code and data is available at https://github.com/EverywhereSafety/SEAD.

The Brief

2:43

A short podcast summary of the paper. Written and voiced by AI.

Transcript

SEAD. A State-Based Perspective on Attack and Defense in Tool-Using Agents. By Xinjie Shen and three others, from the Georgia Institute of Technology. Published on the twenty-eighth of September. Its code repository is worked out: about two hundred and fifty source files, with a readme and a licence.

Language-model agents increasingly use tools to act on external systems. Earlier actions can alter files, permissions, database records, or other state, and that can make a later, routine-looking action harmful. Yet the visible interaction may not reveal the underlying state needed to judge that action. Looking at the request alone, the harm cannot be seen.

SEAD formulates attack and defense together, as control of a partially observed state, and derives the design requirements of each side from the execution process they share. Two asymmetries follow. Attackers supply instructions, but the target chooses the concrete actions. And the defender has to decide before an action executes, with incomplete evidence about the state. The attacker cannot dictate actions, only shape the instructions that lead to them. The defender cannot wait to see the result, and cannot see the whole state when it decides. Each system is designed around its own side of that gap.

Each side gets its own system. On the attack side, DART decomposes a harmful goal into steps that each look plausible locally, and uses feedback from actual tool execution to guide its search over trajectories. On the defense side, SAGE investigates the relevant state through read-only queries before it allows or blocks each action, including actions proposed after an earlier block. To test both, the authors construct a dataset that can be verified in the environment, combining controlled initial states, replayable tool environments, and executable checks specific to each task.

Across four target models, DART improves semantic attack success by between eighteen point eight and thirty-five point nine percentage points over the competing baseline, and the gains hold under executable verification.

On recorded trajectories, SAGE preserves ninety-five point seven nine percent of benign trajectories, while intercepting ninety-two point seven three percent of harmful paths by the harm-enabling boundary. In online evaluation against DART, it cuts executable attack success from forty-eight percent to four percent. SAGE stays effective across four attack methods, and generalizes to environments outside its domain. The same defender, in other words, cuts the authors' own attack to a small fraction of its success while leaving nearly all benign work alone.

Both halves rest on one point. The harm sits in the state, not in the wording of any one step, so an attacker can spread it across steps and a defender has to go and look before letting an action through. SAGE's read-only queries are that looking, made explicit.

Paper Quest · 7 chapters · about 40 min

Play this paper

Learn it by doing: make the calls the authors made, guess the result before you see it, and defend it in a viva graded on your own words. Chapter 1 is right here.

Chapter 1 🧩 · The problem

An innocent-looking click can be the harmful one. This quest is about seeing what the conversation hides.

You guard an AI agent that runs tools on real systems: files, permissions, databases. Each request it gets looks routine on its own.

The road ahead

  1. 1 · The problem ~6 min A tool-using agent's next action can be harmless or harmful depending on hidden state the conversation does not show.
  2. 2 · What came before ~3 min
  3. 3 · The key idea ~9 min Harm lives in hidden environment state, so the attack hides harm in innocent steps and the defender checks state with read-only queries before each action.
  4. 4 · Choose your own research ~3 min
  5. 5 · Build the method ~8 min Attack and defense run in one loop: plan innocent steps, let the target act, inspect state, rule before execution, and use real results to steer.
  6. 6 · The experiment ~6 min You’ll guess: In live attack-defense testing, the DART attack had 48.0% executable success without a guard. What happened with SAGE defending?
  7. 7 · The viva ~5 min Three questions from the examiners, answered in your own words. Win it for the paper’s trophy.
Join free to play the whole quest ›

Free, with Google or an email address. Your stars and progress are kept.

KipQuest: the day’s AI research, as podcasts and quests. All papers Android app Privacy Contact Episodes are written and voiced by AI from each paper. Summaries can contain mistakes: the paper is the source.