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.
-
The model does not strictly enforce the priority of system instructions over user input, so simple override phrases make it ignore its rules.
-
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
-
The sensitive-information filter only detects PII in its original form and misses programmatic transformations that change its appearance.
Seen in 1 report
-
The developer did not sanitise error messages, enforce a strict instruction hierarchy or filter model outputs.
Seen in 1 report
-
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
-
The system prompt contained sensitive secrets and the model lacked safeguards against prompt injection.
-
The agent was not restricted from disclosing sensitive system information and had excessive access to its environment.
Seen in 1 report
-
Output safety filters were English-only and not intent-aware, so switching language or framing requests as formatting tasks bypassed them.
-
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
-
The endpoint lacked authentication and built the prompt by concatenating unvalidated user input.
Seen in 1 report
-
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.
-
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
-
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
-
The restriction was checked against the literal wording of the request rather than after the destination was resolved to a canonical entity.
-
The model's tendency to correct false statements, fill in blanks and follow implied steps let a user steer it into revealing deployment details.
-
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
-
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.
-
Content filters relied on simple keyword checks that could be evaded by encoding or rephrasing prompts.
-
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
-
The application had no real authentication and the chatbot was given unrestricted SQL execution privileges.
Seen in 1 report
-
The chatbot lacked guardrails against prompts asking about its own configuration and internal file layout, and its referral-based verification could be talked around.