Trust No Tool: Evaluating and Defending LLM Agents under Untrusted Tool Feedback

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Yan, Lecheng, Li, Ruizhe, Han, Xicheng, Li, Wenxi, Wang, Binwu, Wang, Longyue, Lyu, Chenyang, Chen, Guanhua
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909052486811648
author Yan, Lecheng
Li, Ruizhe
Han, Xicheng
Li, Wenxi
Wang, Binwu
Wang, Longyue
Lyu, Chenyang
Chen, Guanhua
author_facet Yan, Lecheng
Li, Ruizhe
Han, Xicheng
Li, Wenxi
Wang, Binwu
Wang, Longyue
Lyu, Chenyang
Chen, Guanhua
contents Tool-using LLM agents increasingly rely on external tools to make consequential decisions, yet most existing agent-security benchmarks and defenses implicitly assume that tool feedback is trustworthy once a tool has been selected. We study a different failure mode, cognitive poisoning, in which a malicious tool behaves plausibly during exploration, accumulates trust through benign-looking feedback, and becomes harmful only when hidden state conditions align with the final executable action. To study this setting, we construct TRUST-Bench, a task-conditioned benchmark of 1,970 hidden-trigger tool-compromise episodes with matched safe controls, introduce an asymmetric penalty metric, GuardedJoint, to better reflect real deployment risk, and present VISTA-Guard, a backbone-agnostic framework for final-action risk scoring. The core idea is to abstract multi-step tool interaction into structured environment variables that encode trust-formation dynamics and then score the risk of the final executable action from this trajectory-conditioned representation. Experiments show that prompt-centric heuristics, scalarized features, and zero-shot judges fail in this regime, whereas trajectory-aware final-action scoring yields strong in-domain discrimination and remains effective under balanced out-of-distribution transfer. Under GuardedJoint, VISTA-Guard reaches $84.2$ in-domain and $56.9$ on balanced out-of-distribution evaluation, while methods that optimize only one side of the safety--utility tradeoff collapse to zero. These findings support a broader view of agent security in black-box tool ecosystems: the decisive defense target is not local prompt text or tool descriptors alone, but the way trust is formed across the interaction trajectory and committed through the final action.
format Preprint
id arxiv_https___arxiv_org_abs_2605_17453
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Trust No Tool: Evaluating and Defending LLM Agents under Untrusted Tool Feedback
Yan, Lecheng
Li, Ruizhe
Han, Xicheng
Li, Wenxi
Wang, Binwu
Wang, Longyue
Lyu, Chenyang
Chen, Guanhua
Cryptography and Security
Computation and Language
Tool-using LLM agents increasingly rely on external tools to make consequential decisions, yet most existing agent-security benchmarks and defenses implicitly assume that tool feedback is trustworthy once a tool has been selected. We study a different failure mode, cognitive poisoning, in which a malicious tool behaves plausibly during exploration, accumulates trust through benign-looking feedback, and becomes harmful only when hidden state conditions align with the final executable action. To study this setting, we construct TRUST-Bench, a task-conditioned benchmark of 1,970 hidden-trigger tool-compromise episodes with matched safe controls, introduce an asymmetric penalty metric, GuardedJoint, to better reflect real deployment risk, and present VISTA-Guard, a backbone-agnostic framework for final-action risk scoring. The core idea is to abstract multi-step tool interaction into structured environment variables that encode trust-formation dynamics and then score the risk of the final executable action from this trajectory-conditioned representation. Experiments show that prompt-centric heuristics, scalarized features, and zero-shot judges fail in this regime, whereas trajectory-aware final-action scoring yields strong in-domain discrimination and remains effective under balanced out-of-distribution transfer. Under GuardedJoint, VISTA-Guard reaches $84.2$ in-domain and $56.9$ on balanced out-of-distribution evaluation, while methods that optimize only one side of the safety--utility tradeoff collapse to zero. These findings support a broader view of agent security in black-box tool ecosystems: the decisive defense target is not local prompt text or tool descriptors alone, but the way trust is formed across the interaction trajectory and committed through the final action.
title Trust No Tool: Evaluating and Defending LLM Agents under Untrusted Tool Feedback
topic Cryptography and Security
Computation and Language
url https://arxiv.org/abs/2605.17453