Prompt injection
An attack on large language model applications in which input carrying instructions makes the model depart from its intended rules, either directly from a user or hidden in content it reads.
Prompt injection targets large language model (LLM) applications. The model receives its developer’s instructions and untrusted content as one stream of text, with no reliable way to separate them, so text crafted to read as an instruction can change what it does: disclosing data, ignoring policies, or misusing tools it has been given. Direct prompt injection arrives in the user’s own input. Indirect prompt injection is planted in material the model is given to read, such as a web page or document. OWASP places it first (LLM01) in its 2025 Top 10 for LLM applications, and NIST AI 100-2 E2025 lists it among attacks on generative AI.
It shares its root cause with SQL injection: data is interpreted as instructions. But there is as yet no reliable equivalent of the parameterised query, so current defences reduce the risk rather than remove it. They include restricting the model’s privileges and tools (least privilege), treating its output as untrusted, and requiring human approval before high-impact actions.
Exam relevance: the ISC2 exam outline does not name prompt injection; the nearest it comes is machine learning and AI-based tools, listed among detection and preventative measures under objective 7.7. A scenario about an AI assistant that obeys instructions hidden in a document it processes is likely to describe indirect prompt injection, and candidates are expected to favour controls that limit what the model can do.