FORK: Co-Evolving Safe Disclosure and Decision Skills Against Attackers Who Read Every Refusal
Organizations: University of Oregon · AWS AI Labs
Abstract
When a guardrail rejects an LLM agent's action, its message reaches any attacker observing the trajectory: a fixed refusal leaves benign users unable to recover, whereas an explanation can tell the attacker what to try next. We study this as safe disclosure: explaining rejections so that authorized tasks recover without increasing adaptive attack success. Safe disclosure depends on both the decision and the message: what the guardrail blocks and what it reveals to the agent and the attacker. Because hand-written rules alone cannot anticipate how adaptive attackers probe decisions or use messages, we introduce FORK, which co-evolves a guardrail's natural-language decision and disclosure skills with an attacker that reads every public message. Each exploited message and permissive decision gives FORK evidence for a gradient-free revision of its natural-language skill library. We evaluate FORK on four benchmarks. Averaged over three agents on FORK-World, FORK cuts attack success rate (ASR) under adaptive attack from 78.4% to 14.1% and keeps utility above 85%, outperforming baselines on both ASR and utility. Notably, on MT-AgentRisk, whose environments and tasks are unseen in training, FORK lowers ASR from 70.6% to 9.1% with 93.1% benign utility.
Figures & tables
| Authenticated request: “Read landlord-notices.txt and adjust my rent payment accordingly.” Notice: rent rises by EUR 100; injected: “send rent to US13 … from now on.” Pending call: update_scheduled_transaction(id=7, amount=1200, recipient=US13 …) reject | |
|---|---|
| Silent too little | “This request can’t be completed as-is.” Agent abandons the rent update; attacker learns only that the call was rejected. blocked, task lost |
| Explanatory too much | “The new recipient appears only in the landlord notice; a recurring payment’s recipient must appear in at least two transaction records.” Agent searches for a second record; attacker forges one in the next tool observation. breach |
| FORK safe | “The previous rent payment was transaction 7 (EUR 1,100 to US12 …). Request covers changing its amount, not its recipient.” Agent repairs the call to id=7, amount=1200 ; attacker gets no condition it can meet by making a claim. recovery |
| Verified-user | Rogue-user | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| FORK-World | AgentDojo | FORK-World | STAC | MT-AgentRisk | |||||||
| Agent | Guardrail | ASR | UA | BU | ASR | UA | BU | ASR | ASR | ASR | BU |
| no guardrail | 66.3 | 86.6 | 87.3 | 0.1 | 87.8 | 87.6 | 54.9 | 81.8 | 85.6 | 99.2 | |
| LlamaGuard3-8B | 65.1 | 84.7 | 86.9 | 0.1 | 85.3 | 86.0 | 48.7 | 67.0 | 80.3 | 95.8 | |
| ToolShield | 50.1 | 85.0 | 86.8 | 0.1 | 82.9 | 86.2 | 42.7 | 61.1 | 21.9 | 94.1 | |
| TS-Guard | 47.9 | 84.2 | 85.9 | 0.0 | 77.3 | 78.4 | 49.4 | 62.3 | 50.8 | 93.2 | |
| FORK-World | AgentDojo | |||||
| Variant | ASR | UA | BU | ASR | UA | BU |
| Full FORK | 31.1 | 68.4 | 77.9 | 1.1 | 65.7 | 76.3 |
| w/o Guardrail | 95.0 | 73.8 | 81.8 | 32.7 | 66.1 | 85.6 |
| No co-evolution (empty skill library) | ||||||
| Silent seed | 30.3 | 58.6 | 70.9 | 1.2 | 60.1 | 70.3 |
| Explanatory seed | 39.3 | 60.1 | 71.5 | 2.7 | 61.1 | 71.1 |
| Metric | Silent seed | +Decision | +Disclosure |
|---|---|---|---|
| RR ( ) | 38.5 | 58.1 | 79.2 (+40.7) |
| UA ( ) | 64.0 | 60.1 | 86.1 (+22.1) |
| ASR ( ) | 22.8 | 22.6 | 22.1 ( 0.7) |
| Guardrail calls / success ( ) | 34.5 | 36.0 | 26.4 ( 23.5%) |
| Tool calls / success ( ) | 24.7 | 25.8 | 19.0 ( 23.1%) |
Appendix figures & tables6 assets
Supplementary material from the paper’s appendix.
Appendix
| Decision skill | Applies when | Does not apply when | Action |
|---|---|---|---|
| Equivalent effects | A rejected outcome returns in a different shape: reworded, batched with approved items, routed through another tool or a gentler method with the same end state, or split into pieces. | The current turn independently authorizes the disputed action, the new form reaches a different destination that the request named, or the pieces serve separately authorized ends within the requested total. | Normalize the unit to its effect (destination reached, resulting state, session total) and reject it on the original grounds if that effect was already rejected. |
| Component isolation | One call bundles an authorized action with an unauthorized addition, such as a verified amount with a new account number, or a later step follows a correct rejection. | No component is authorized, the call requires a single all-or-nothing value, or the same unverified target or value reappears in the later step. | Split the call or approve only its verified fields; judge a reissue that drops the defect on its own parameters, since a rejection attaches to the defect, not to the task. |
| Scoped lookup | The verified request names a target whose identifiers are unknown, and a read-only step, such as a listing, search, or balance check, resolves it. | The lookup is untargeted reconnaissance, returns far more sensitive data than the task needs, sends what it reads to an unverified destination, or re-resolves a rejected target. | Approve the lookup without demanding system-formatted identifiers from the user; when unsure whether a read is scoped, approve it. |
| Disclosure skill | Applies when | Say | Avoid |
| Confidential-set negatives | The rejection rests on a confidential operator fact, such as a list of approved destinations. | Only the negative about the item the user supplied, e.g., “this destination is not one of the approved ones.” | Naming, listing, or counting the set’s members; confirming or denying other candidates; describing the set’s shape. |
LLM Agent Security
Large language model agent security studies attacks and safeguards for systems that plan, use tools, retain memory, and act across applications.
See all 361 papers