
Johnny Song, Shih-Chieh Dai, Guanhong Tao · arXiv 2026 · 2026
DOI: 10.48550/arxiv.2611.39112
Counts differ because each database indexes a different set of publications. We treat OpenAlex as the canonical count; Google Scholar is not shown (no API, and crawling it violates its ToS).
Tool-integrated large language model (LLM) agents enable functionalities such as accessing information, managing databases, and sending emails. Because many third-party tools come from untrusted online sources, attackers can exploit tool interactions to launch prompt injection attacks via tools, potentially causing harm through harmful code execution. In this work, we propose a defense that detects prompt injection attacks by comparing tool descriptions with summaries of their corresponding code. To evaluate our approach, we constructed a dataset of 503 tool examples, consisting of 377 prompt injected and 126 benign tools collected and adapted from open-source repositories and existing benchmarks. We evaluate our method across five LLMs and compared its performance against existing prompt injection defenses such as PromptArmor, DataSentinel, LLM-Based Detection, and Perplexity Filter. The experimental results show that our method achieves an overall detection accuracy of 93.8%. This work highlights the potential benefits of implementing a description and implementation consistency verification as an additional security mechanism for LLM agents in a tool-integrated environment.
arXiv (Cornell University) 2014 · 2014 · 8145 citations95% match
2016 · 5389 citations90% match
arXiv (Cornell University) 2017 · 2017 · 4803 citations95% match
OASIcs : OpenAccess Series in Informatics 2025 · 2025 · 4742 citations90% match
2016 · 3971 citations90% match
2017 · 3530 citations90% match
2018 · 3031 citations90% match
No comments yet — start the discussion below.
arXiv (Cornell University) 2016 · 2016 · 3010 citations95% match
IEEE Transactions on Pattern Analysis and Machine Intelligence 2018 · 2018 · 2870 citations90% match
2017 · 2741 citations90% match