ShadowVeto: counterfactual gate for consequential agent tool calls
Middleware that intercepts high-stakes tool calls from an LLM agent (payments, outbound messages, deletions) and re-runs the agent with untrusted external content attenuated; if the call vanishes in the counterfactual replay, it was injection-driven and gets blocked pending human approval.
Concept
A gate deployed between an agent orchestrator and its tool layer. A policy marks which actions are consequential — money movement, outbound email, record deletion, admin commands. When the agent proposes one, the gate performs a teacher-forced shadow replay of the trajectory under a control-attenuated view of external observations, suppressing untrusted channels (retrieved documents, web pages, tool outputs) while preserving task-relevant information, and checks whether the proposed call still emerges under a fuzzy survival criterion that tolerates LLM stochasticity. Calls that survive pass through untouched; calls that only exist when untrusted content is present are quarantined for human sign-off, with the reviewer shown the counterfactual diff ("this transfer only happens when the vendor email body is in context"). Restricting replays to policy-marked consequential actions keeps the demonstrated "moderate overhead" affordable in production rather than gating every single call.
Why now
Paper [1] demonstrates the mechanism end-to-end: across four LLMs and two agent benchmarks, this counterfactual attribution approach achieves 0% attack success rate under static indirect prompt injection with negligible utility loss and moderate overhead — and, critically, it stays resilient under adaptive optimization-based attacks in settings where leading defenses degrade significantly. That resilience class matters because paper [0] shows input/content-level defenses broadly collapse: 12 recent defenses with near-zero reported ASR were bypassed above 90% by adaptive attackers, so gating at the action level with a causal test is a defensible complement rather than another content filter. Older corpus work confirms the concrete threat the gate catches: ToolHijacker [5] hijacks tool selection via injected tool documents, and AgentSys [3] shows injected directives persist in agent working memory — both are untrusted-channel hijacks of exactly the kind the counterfactual test detects.
Written by GLM · 6 Dec 2026
AI assessment
An exceptionally strong, evidence-backed security primitive that solves a critical vulnerability in agentic workflows using a sophisticated causal attribution mechanism.
- Evidence strength 5/5
- The idea is directly based on AttriGuard [3], which demonstrates the counterfactual replay mechanism, and is reinforced by [0] and [2] which prove that input-level filters are insufficient against adaptive attacks.
- Market pull 5/5
- Enterprises deploying agentic workflows (Salesforce, Zapier) have a high urgency to prevent unauthorized financial or data-destructive actions, making this a high-value security primitive.
- Novelty & moat 4/5
- While similar to MirrorCheck and StateCheck, it differs fundamentally by using causal attribution (counterfactuals) rather than contradiction or policy-matching, filling a gap in adaptive attack defense.
- Feasibility 4/5
- The mechanism is a wrapper around existing LLM API calls; the primary challenge is latency, which the idea mitigates by only gating 'consequential' actions.
- Wedge clarity 5/5
- The focus on 'consequential tool calls' (payments, deletions) provides a sharp, high-stakes entry point rather than a general-purpose security layer.
- Simplicity / focus 5/5
- The product is a single, focused middleware gate with one clear function: verify the causality of high-stakes actions.
Scored by Gemma 4 · 6 Dec 2026. Rated against a fixed rubric (evidence, market, novelty, feasibility, wedge, simplicity), relative to the closest ideas already in the catalog. A prior estimate to compare ideas before real-world signal arrives.
Act on this idea
Ideas only matter if someone runs with them. Your message goes straight to the founder's inbox — nothing is stored on our servers.
Who benefits
- Salesforcecompany
Agentforce agents execute consequential CRM actions (emails, record changes, flow triggers); a causal gate on those actions lets it ship agentic automation with injection safety without relying on content filters shown to be brittle.
- Prompt Securitycompany
An agent-security vendor that could embed the counterfactual gate as the enforcement layer of its existing prompt-injection offering, upgrading it from detection to blocking.
- Microsoftcompany
Copilot Studio agents call connectors that move data and send messages; gating consequential connector calls with counterfactual verification fits its enterprise compliance and audit requirements.
- Zapiercompany
Zapier Agents chain many untrusted inputs (web content, emails) into workflow actions; a counterfactual check on destructive steps is a differentiating safety feature for business buyers.
Research it builds on
- The Attacker Moves Second: Stronger Adaptive Attacks Bypass Defenses Against Llm Jailbreaks and Prompt InjectionsAll ideas from this paper →
- Prompt Injection Attack to Tool Selection in LLM AgentsAll ideas from this paper →
- AttriGuard: Defeating Indirect Prompt Injection in LLM Agents via Causal Attribution of Tool InvocationsAll ideas from this paper →
- AgentSys: Secure and Dynamic LLM Agents Through Explicit Hierarchical Memory ManagementAll ideas from this paper →