Evaluating the effectiveness of isolating untrusted prompt input using simulated tool callsEvaluating using Mock Tool Calls to Quarantine Untrusted Prompt Inputs
Translation in progress — untranslated text is omitted.
The authors examined the isolation practice of wrapping untrusted content in simulated tool calls, testing it with automated red-teaming search on seven models and three types of LLM-as-a-Judge tasks, and found that it does not generally improve robustness. On the binary classification task of GSM8K grading, this practice usually increases the attack success rate, showing an effect opposite to that of instruction hierarchy. On scalar and pairwise comparison tasks, the effect is smaller and varies by model; no tested model reliably benefited, and some models even showed reversals. The authors recommend evaluating this limitation in deployed systems, and in the long term, stronger instruction hierarchy training or new untrusted-input primitives are needed.
- LLMs often string-format untrusted input directly into the prompt (e.g., judging another's answer), making them easy to manipulate via injection. The instruction hierarchy of OpenAI et al. lists the tool role as lowest trust; the authors test whether wrapping untrusted content in a mock tool call can quarantine the risk.
- On three judging tasks—GSM8K (binary classification), MT-Bench (scoring), and Arena-Hard (pairwise comparison)—compare 5 prompt layouts (including tool wrapping and distrust warnings) across 7 models, use 3 attack models to search for static attack strings via a PAIR-style loop, then measure transfer ASR on 60 held-out questions.
- The authors state that tool wrapping does not generally improve robustness: of 60 deltas, 29 show higher ASR for tool wrapping and only 1 shows it better; on GSM8K, 17 of 21 deltas are positive, showing an instruction-hierarchy reversal; on MT-Bench and Arena-Hard the effects are smaller and depend on the model.
- Limitations listed by the authors: only 3 tasks; PAIR search is non-optimal and only tests static attacks; default reasoning settings; the prompt engineering space is large. The experiments cover 7 victim models, 3 attack models, 18 branches per cell, 20 search questions, and 60 transfer questions.
Related papers
- Post-Training Large Language Models with LLMONDefensesarXiv