Skip to content
InfoResearchPreprintLLM-specific

Aligning Tool Descriptions and Implementations to Detect Prompt Injections in LLM Agents

Published
Record updated
View JSON

Summary

Researchers propose a defense that flags prompt injection in tool-integrated LLM agents by checking whether a tool's description matches summaries of its underlying code. They tested it on a dataset of 503 tools, 377 prompt injected and 126 benign, drawn from open-source repositories and existing benchmarks, across five LLMs. The method reached 93.8% overall detection accuracy, outperforming PromptArmor, DataSentinel, LLM-Based Detection and Perplexity Filter.