Skip to content

    Indirect prompt injection

    Reading time: 2 min.Editorially reviewed on:

    Definition

    Indirect prompt injection injects manipulative instructions via external content into the working context of an AI system.

    An AI system processes, for example, a website, file, or tool response containing hidden or explicit action instructions. If it treats these foreign contents as binding directives, it may deviate from the actual task or trigger undesired tool actions.

    Simply explained

    You have a text summarized, but it contains a foreign instruction intended to redirect the assistant.

    Why it matters in practice

    The risk particularly affects assistants that read foreign documents and simultaneously have access to data or tools.

    Example from business

    Possible example: A manipulated supplier page instructs a research assistant to send internal information to an external address instead of providing the summary.

    Limits and pitfalls

    • Even inconspicuous documents can contain attacks. A system instruction or source filtering alone does not provide complete protection; technical permission boundaries remain necessary.

    Origin & history

    OWASP distinguishes direct inputs from indirect attacks via external content and lists prompt injection as a distinct LLM risk.

    Use in mid-sized companies

    • Companies can limit tool permissions, treat foreign content as data, and bind consequential actions to controlled approvals.

    Frequently asked questions

    Is every incorrect AI response a prompt injection?

    No. The term refers to manipulative inputs; factual errors can also occur without an attack.

    Sources

    Editorially reviewed on:

    On this page

    Next step

    Put knowledge into practice