Prompt injection is an attack or failure mode in which untrusted content changes an AI system’s behavior by supplying instructions that compete with the intended task. This guide explains the mechanism, trade-offs, evaluation, and controls that matter in practice.