Prompt injection is an operational risk where attackers place instructions inside user inputs, documents, or external content that an AI agent consumes. Unlike software vulnerabilities that require code exploits, prompt injection exploits the model’s task-following behavior: the model can be nudged to ignore safety rules, reveal sensitive data, or perform actions it should not. For businesses building agentic workflows, understanding how and where inputs are processed is the first step toward reducing exposure.
Direct prompt injection happens when a user deliberately crafts messages to override system instructions — for example, asking an agent to reveal information or to execute a high-risk command by phrasing it as a harmless query. These attacks are straightforward but effective where user messages are treated as authoritative. Operationally, systems that accept free-text commands or allow end-user prompts to reach decision logic are most at risk.
Indirect prompt injection hides malicious instructions inside content the agent retrieves — web pages, attachments, scraped documents, or third-party APIs. The agent may ingest this content to summarize, extract facts, or generate actions. If the retrieval pipeline does not distinguish trusted sources from user-provided or unverified content, attackers can embed instructions that the model will treat as part of the task context, leading to unexpected behavior.
When an agent is compromised, the consequences extend beyond a single response. Connected tools (calendars, ticketing, file stores, cloud consoles) and credentials accessible to the agent can be misused to leak sensitive records, create unauthorized accounts, or trigger internal business actions. The risk profile is determined by the agent’s privileges, the breadth of data it can read, and whether high-impact actions require validation before execution.


