Pincer: Resource Authorization for Agents using a Digital Twin
cs.CR, cs.AI
Submitted: 2026-10-01
Updated: 2026-10-01
Code: https://github.com/ucbsky/Pincer
License: http://creativecommons.org/licenses/by/4.0/
The gist: Coding agents have become increasingly long-horizon, autonomous, reliant on general-purpose shell and maintain their own persistent memory for self-improvement.
Terminology
Abstract
Coding agents have become increasingly long-horizon, autonomous, reliant on general-purpose shell and maintain their own persistent memory for self-improvement. While these capabilities have made the agents powerful, they have also made them harder to defend against external adversaries. Defenses that restrict this architecture --- typed tools, information-flow control, or policy prediction engines --- give up too much functionality to be adopted. Agents deployed today (e.g. Claude, Codex) rely on a combination of user-mediated and automode sandboxing as their primary defense. In user-mediated sandboxing, user-maintained policies decay over time and repeated permission requests cause user fatigue, while auto mode's tool-call classifiers learn no user-specific policy and are not meant to defend against adversarial setups. Pincer is a new defense that operates at the resource layer and works alongside existing defenses at the tool-call layer like the auto mode. At the core of Pincer lies a digital twin, an isolated-context model that automatically learns and enforces dynamic user-specific least-privilege policies. The digital twin keeps continually learning the user's preferences allowing it to act as the user's proxy for the agent's permission requests. To emulate the learning phase, we propose a new usercentric dataset with examples following a multi-day transcript of user-agent interaction. Our evaluation shows that Pincer performs strongly on both security and utility in comparison to several baselines which includes variants of LLM judges and adaptations of Conseca (HotOS '25). We highlight attack types where Pincer's design leads to a significant security improvement compared to all other baselines, while outperforming the baselines even for other types of attacks.
Sources
- Design Patterns for Securing LLM Agents against Prompt Injections
- StruQ: Defending Against Prompt Injection with Structured Queries
- Systems Security Foundations for Agentic Computing
- Towards the "Digital Me": A vision of authentic Conversational Agents powered by personal Human Digital Twins
- Securing AI Agents with Information-Flow Control
- Defeating Prompt Injections by Design
- AgentDojo: A Dynamic Environment to Evaluate Prompt Injection Attacks and Defenses for LLM Agents
- Memory Injection Attacks on LLM Agents via Query-Only Interaction
- Control Illusion: The Failure of Instruction Hierarchies in Large Language Models
- PlanGuard: Defending Agents against Indirect Prompt Injection via Planning-based Consistency Verification
- MemoryArena: Benchmarking Agent Memory in Interdependent Multi-Session Agentic Tasks
- Defending Against Indirect Prompt Injection Attacks With Spotlighting
- SABER: Benchmarking Operational Safety of LLM Coding Agents in Stateful Project Workspaces
- Measuring the Permission Gate: A Stress-Test Evaluation of Claude Code's Auto Mode
- Stronger Enforcement of Instruction Hierarchy via Augmented Intermediate Representations
- DRIFT: Dynamic Rule-Based Defense with Injection Isolation for Securing LLM Agents
- AgentDyn: Are Your Agent Security Defenses Deployable in Real-World Dynamic Environments?
- Options, Not Clicks: Lattice Refinement for Consent-Driven MCP Authorization
- Prompt Injection Attacks on Agentic Coding Assistants: A Systematic Analysis of Vulnerabilities in Skills, Tools, and Protocol Ecosystems
- MemGPT: Towards LLMs as Operating Systems
Related papers
- SoK: AI-Augmented Binary Reversing
- Relaxed Sender Anonymity for CBDC Interbank Settlement: A Zero-Knowledge Approach on Permissioned EVM
- Calibration-Family Overfit: Why Trusted Sabotage Monitors Don't Transfer Across Lineages
- Efficient Fuzzy PSI under One-Sided Assumptions
- Sealing the Audit-Runtime Gap for LLM Skills
- Token Composition: A Graph Based on EVM Logs