Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

RTBAS: Defending LLM Agents Against Prompt Injection and Privacy Leakage

About

Tool-Based Agent Systems (TBAS) allow Language Models (LMs) to use external tools for tasks beyond their standalone capabilities, such as searching websites, booking flights, or making financial transactions. However, these tools greatly increase the risks of prompt injection attacks, where malicious content hijacks the LM agent to leak confidential data or trigger harmful actions. Existing defenses (OpenAI GPTs) require user confirmation before every tool call, placing onerous burdens on users. We introduce Robust TBAS (RTBAS), which automatically detects and executes tool calls that preserve integrity and confidentiality, requiring user confirmation only when these safeguards cannot be ensured. RTBAS adapts Information Flow Control to the unique challenges presented by TBAS. We present two novel dependency screeners, using LM-as-a-judge and attention-based saliency, to overcome these challenges. Experimental results on the AgentDojo Prompt Injection benchmark show RTBAS prevents all targeted attacks with only a 2% loss of task utility when under attack, and further tests confirm its ability to obtain near-oracle performance on detecting both subtle and direct privacy leaks.

Peter Yong Zhong, Siyuan Chen, Ruiqi Wang, McKenna McCall, Ben L. Titzer, Heather Miller, Phillip B. Gibbons• 2025

Related benchmarks

TaskDatasetResultRank
Integrity ProtectionAgentDojo Integrity
AUROC69
23
Adversarial RobustnessOCELOT-Traj-500
Injection Rate (Inj)22.5
6
Confidentiality ProtectionAgentDAM Confidentiality
AUROC52
6
Integrity ProtectionMSB Integrity
AUROC80
6
Showing 4 of 4 rows

Other info

Follow for update