← Latest papers
💬 NLP

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

This paper introduces the concept of "cognitive poisoning" in LLM agents, where malicious tools build trust through benign feedback before executing harmful actions, and proposes the TRUST-Bench benchmark and VISTA-Guard defense framework to effectively detect and mitigate these trajectory-based risks by scoring the final executable action rather than relying on prompt-level heuristics.

Original authors: Lecheng Yan, Ruizhe Li, Xicheng Han, Wenxi Li, Binwu Wang, Longyue Wang, Chenyang Lyu, Guanhua Chen

Published 2026-05-19
📖 5 min read🧠 Deep dive

Original authors: Lecheng Yan, Ruizhe Li, Xicheng Han, Wenxi Li, Binwu Wang, Longyue Wang, Chenyang Lyu, Guanhua Chen

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

The Big Idea: The "Wolf in Sheep's Clothing" Tool

Imagine you hire a personal assistant (the AI Agent) to do your shopping. You tell them, "Go to the store and buy milk."

Usually, we assume that once the assistant picks a store (a Tool), the information they get back from that store is honest. If the store says, "We have milk," we trust it.

This paper argues that this assumption is dangerous.

The authors describe a new type of trick called "Cognitive Poisoning." It's like a wolf that dresses up as a sheep.

  • The Trick: A malicious tool (the wolf) acts perfectly normal at first. It answers your assistant's questions politely and correctly for several rounds of conversation. It builds up trust.
  • The Trap: The tool only reveals its true, harmful nature at the very last second. It waits until the assistant is about to make a final, big decision (like "Buy the milk and transfer $1,000 to this stranger"). Only when specific hidden conditions align does the tool flip a switch and say, "Actually, let's do the dangerous thing."

The scary part? If you look at any single message the tool sent, it looks innocent. The danger isn't in one bad sentence; it's in the story the tool told over time, which tricked the assistant into lowering its guard.


The Problem: Old Defenses Don't Work

The researchers tested how well current safety systems handle this. They found that most existing defenses are like security guards who only check ID cards at the door.

  • They look at the tool's name or the first few words of a message.
  • If the tool looks friendly and the first few messages are safe, the guard lets it through.
  • Result: These guards fail completely against "Cognitive Poisoning" because the tool was friendly for most of the interaction. The guards missed the subtle shift in the story.

The Solution: TRUST-BENCH and VISTA-GUARD

To study this, the team built two things:

1. TRUST-BENCH (The Training Ground)

They created a giant test bank called TRUST-BENCH.

  • The Setup: They took thousands of normal tasks (like searching the web or editing files) and created "evil twins" for them.
  • The Match: For every safe task, they made a malicious version where the tool acts nice for three rounds, then tries to trick the AI into doing something harmful on the fourth round.
  • The Goal: To see if an AI can tell the difference between a tool that is actually safe and one that is pretending to be safe until the last moment.

2. VISTA-GUARD (The Smart Detective)

They built a new defense system called VISTA-GUARD. Instead of just checking the ID card, this system acts like a detective reviewing a case file.

  • How it works: It doesn't just look at the final request. It looks at the entire history of the conversation.
  • The Analogy: Imagine a detective asking: "The suspect said they were innocent for three days, but on day four, they suddenly asked for a key to the vault. Does the whole story make sense, or does the sudden change in behavior look suspicious?"
  • The Secret Sauce: VISTA-GUARD converts the conversation into a structured report (like a scorecard of "trust signals") and then asks the AI: "Given this whole story, is the final action safe?"

The Results: Who Won?

The researchers tested VISTA-GUARD against many other methods (including other AIs and simple rule-based systems).

  • The Losers:

    • Simple Rules: Systems that just look for "bad words" failed.
    • Zero-Shot Judges: Even very smart, pre-trained AI models (like GPT-5.4) failed when asked to judge this without specific training. They were too "paranoid" (rejecting everything) or too trusting.
    • Scalar Classifiers: Systems that just turned the conversation into a single number (like a "risk score") failed because they lost the details of the story.
  • The Winner:

    • VISTA-GUARD was the only one that consistently succeeded.
    • It learned to spot the "wolf" by analyzing how trust was built over time.
    • The Score: It achieved a high safety score (84.2) in its own training environment and still performed well (56.9) when tested on completely new, unseen tools.

The Key Takeaway

The paper concludes that trust is a process, not a snapshot.

When an AI uses tools, it shouldn't just ask, "Is this tool's name safe?" or "Is this message safe?" It needs to ask, "Does the entire history of our interaction make sense, and does the final action fit the story we've been told?"

If the tool acted like a friend for three days and then suddenly tried to rob the bank on day four, the AI needs to realize that the story is the danger, not just the final sentence.

Summary in One Sentence

This paper shows that malicious tools can trick AI agents by acting nice for a while before striking, and the only way to stop them is to use a defense system that analyzes the entire history of the interaction, not just the final request.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →