Saved in:
Bibliographic Details
Main Authors: Ye, Hengkai, Zhang, Zhechang, Jia, Jinyuan, Hu, Hong
Format: Preprint
Published: 2026
Subjects:
Online Access:https://arxiv.org/abs/2604.07536
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917392415719424
author Ye, Hengkai
Zhang, Zhechang
Jia, Jinyuan
Hu, Hong
author_facet Ye, Hengkai
Zhang, Zhechang
Jia, Jinyuan
Hu, Hong
contents Large language models (LLMs) increasingly rely on external tools to perform time-sensitive tasks and real-world actions. While tool integration expands LLM capabilities, it also introduces a new prompt-injection attack surface: tool poisoning attacks (TPAs). Attackers manipulate tool descriptions by embedding malicious instructions (explicit TPAs) or misleading claims (implicit TPAs) to influence model behavior and tool selection. Existing defenses mainly detect anomalous instructions and remain ineffective against implicit TPAs. In this paper, we present TRUSTDESC, the first framework for preventing tool poisoning by automatically generating trusted tool descriptions from implementations. TRUSTDESC derives implementation-faithful descriptions through a three-stage pipeline. SliceMin performs reachability-aware static analysis and LLM-guided debloating to extract minimal tool-relevant code slices. DescGen synthesizes descriptions from these slices while mitigating misleading or adversarial code artifacts. DynVer refines descriptions through dynamic verification by executing synthesized tasks and validating behavioral claims. We evaluate TRUSTDESC on 52 real-world tools across multiple tool ecosystems. Results show that TRUSTDESC produces accurate tool descriptions that improve task completion rates while mitigating implicit TPAs at their root, with minimal time and monetary overhead.
format Preprint
id arxiv_https___arxiv_org_abs_2604_07536
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle TRUSTDESC: Preventing Tool Poisoning in LLM Applications via Trusted Description Generation
Ye, Hengkai
Zhang, Zhechang
Jia, Jinyuan
Hu, Hong
Cryptography and Security
Large language models (LLMs) increasingly rely on external tools to perform time-sensitive tasks and real-world actions. While tool integration expands LLM capabilities, it also introduces a new prompt-injection attack surface: tool poisoning attacks (TPAs). Attackers manipulate tool descriptions by embedding malicious instructions (explicit TPAs) or misleading claims (implicit TPAs) to influence model behavior and tool selection. Existing defenses mainly detect anomalous instructions and remain ineffective against implicit TPAs. In this paper, we present TRUSTDESC, the first framework for preventing tool poisoning by automatically generating trusted tool descriptions from implementations. TRUSTDESC derives implementation-faithful descriptions through a three-stage pipeline. SliceMin performs reachability-aware static analysis and LLM-guided debloating to extract minimal tool-relevant code slices. DescGen synthesizes descriptions from these slices while mitigating misleading or adversarial code artifacts. DynVer refines descriptions through dynamic verification by executing synthesized tasks and validating behavioral claims. We evaluate TRUSTDESC on 52 real-world tools across multiple tool ecosystems. Results show that TRUSTDESC produces accurate tool descriptions that improve task completion rates while mitigating implicit TPAs at their root, with minimal time and monetary overhead.
title TRUSTDESC: Preventing Tool Poisoning in LLM Applications via Trusted Description Generation
topic Cryptography and Security
url https://arxiv.org/abs/2604.07536