AgenTRIM: a tool risk mitigation framework for agentic AIAgenTRIM: Tool Risk Mitigation for Agentic AI
Researchers propose the AgenTRIM framework, which detects and mitigates tool permission risks in LLM agents without modifying the agent's internal reasoning, substantially reducing attack success rates on the AgentDojo benchmark while maintaining high task performance. The paper attributes risks arising from inappropriate permissions, such as indirect prompt injection and tool misuse, to unbalanced tool-driven agency: over-agency, where the agent retains unnecessary permissions, or under-agency, where it fails to invoke needed tools; both expand the attack surface and degrade performance. The framework separates offline and online stages: offline, it reconstructs and validates the agent's tool interface from code and execution traces; at runtime, it enforces least-privilege tool access step by step through adaptive filtering and state-aware validation. Supplementary experiments show the framework is robust to description-based attacks and can effectively enforce explicit security policies.