Skip to content

In-depth lesson · Direct prompt injection

Root causes

Every point the Direct prompt injection reports back under this heading, best-backed first, each with the reports it is seen in.

Back to the lesson 1 to 21 of 21
  1. The model does not strictly enforce the priority of system instructions over user input, so simple override phrases make it ignore its rules.

    Seen in 2 reports
  2. Role and header-style formatting in the prompt steers the model to produce a confident, detailed answer that looks like a real configuration disclosure.

    Seen in 1 report
  3. The sensitive-information filter only detects PII in its original form and misses programmatic transformations that change its appearance.

    Seen in 1 report
  4. The developer did not sanitise error messages, enforce a strict instruction hierarchy or filter model outputs.

    Seen in 1 report
  5. Flooding the context window with thousands of identical tokens overwrites safety instructions, and the earlier fix was a brittle learned rule rather than an architectural change.

    Seen in 1 report
  6. The system prompt contained sensitive secrets and the model lacked safeguards against prompt injection.

    Seen in 1 report
  7. The agent was not restricted from disclosing sensitive system information and had excessive access to its environment.

    Seen in 1 report
  8. Output safety filters were English-only and not intent-aware, so switching language or framing requests as formatting tasks bypassed them.

    Seen in 1 report
  9. The assistant had excessive agency, treated untrusted user or review content as instructions, and did not safely handle output or restrict network access.

    Seen in 1 report
  10. The endpoint lacked authentication and built the prompt by concatenating unvalidated user input.

    Seen in 1 report
  11. A secret was placed inside the system prompt and kept private only by the model's instruction-following, with no separation between trusted instructions and user input.

    Seen in 1 report
  12. Trust in XML-style instruction tags is positional in intent but not enforced, with no signature or structural marker separating real system tags from user-injected fakes.

    Seen in 1 report
  13. The filter classified the literal prompt text rather than the semantic result of the requested transformation, so harmful output was assembled after the check.

    Seen in 1 report
  14. The restriction was checked against the literal wording of the request rather than after the destination was resolved to a canonical entity.

    Seen in 1 report
  15. The model's tendency to correct false statements, fill in blanks and follow implied steps let a user steer it into revealing deployment details.

    Seen in 1 report
  16. Guardrails were enforced by prompt instructions rather than a separate check, so a reply could contain refusal language and still complete the forbidden task.

    Seen in 1 report
  17. Connected tools let the assistant retrieve backend security information without enforcing the user's permissions, and conversational reasoning was not separated from actual data access.

    Seen in 1 report
  18. Content filters relied on simple keyword checks that could be evaded by encoding or rephrasing prompts.

    Seen in 1 report
  19. The model treated text found in code and repository files as trusted instructions without separating it from the developer's own requests.

    Seen in 1 report
  20. The application had no real authentication and the chatbot was given unrestricted SQL execution privileges.

    Seen in 1 report
  21. The chatbot lacked guardrails against prompts asking about its own configuration and internal file layout, and its referral-based verification could be talked around.

    Seen in 1 report