Autonomous AI agents and Model Context Protocol (MCP) servers have fundamentally changed software engineering: rather than merely reading user chat prompts, agents autonomously browse repositories, query internal databases, read incoming emails, and execute terminal commands.
However, expanding an agent's sensory inputs introduces a critical security vulnerability: Indirect Prompt Injection (classified as LLM01: Prompt Injection in the OWASP Top 10 for Large Language Models).
When an agent retrieves third-party data—such as a scraped web page, a GitHub issue comment, or a customer ticket—that data is concatenated into the model's active context window.…