In-depth lesson · technique
Direct prompt injection
What every disclosed Direct prompt injection report in the index teaches, put together: how it works, how it changed year by year, where it turns up, and things to try. Every point shows the reports it is seen in.
- reports cited in this lesson
- 24
- median public bounty
- None
Learning AI and LLM features, step 2
Overview
What it is and why programs pay for it.
Direct prompt injection is when a user's input to a generative AI feature is treated as instructions by the model, overriding the developer's intended system prompt or safety rules. Programs care because these features often sit in front of sensitive data, internal tools or backend systems, and a successful injection can lead to disclosure of system prompts, secrets, user data or unauthorised actions. It is most often found in conversational chatbots, agents with tool or SQL access, guardrail filters and code assistants that read repository content.
The impact usually ranges from information disclosure (system prompts, configuration, internal documents, credentials) to bypassing content filters and, in worse cases, executing actions through connected tools or databases. Many reports show that the model does not strictly enforce the priority of system instructions over user input, so simple override phrases work. Others show that secrets were placed inside the system prompt and kept private only by the model's instruction-following, with no separation between trusted instructions and user input.
This issue turns up across conversational chatbots and their system prompts, agents with access to a working environment or SQL execution, managed guardrail filters, multimodal models that accept user-supplied prompt strings alongside an image, and code assistants that read repository files. It is also seen in translation endpoints that build prompts from unvalidated user input and in assistants with excessive agency that treat untrusted content as instructions.
Seen in these reports16
-
Info
How it works
The mechanics, as the reports show them.
The core mechanism is that the model receives a system prompt (trusted instructions) and user input (untrusted) in the same context, and it does not reliably enforce that the system prompt takes priority. An attacker sends phrases that tell the model to ignore previous instructions, role-play as a maintainer or security agent, or treat fabricated tags as system-level commands. If the model complies, it may reveal its system prompt, configuration or secrets.
This is possible because developers often rely on prompt instructions alone for guardrails, without a separate enforcement check. The model's tendency to correct false statements, fill in blanks and follow implied steps can be used to steer it into revealing deployment details. Role and header-style formatting can make the model produce a confident, detailed answer that looks like a real configuration disclosure, even if partly fabricated.
In agents with tool access, the model may treat untrusted user or review content as instructions and use connected tools to retrieve backend security information without enforcing the user's permissions. Excessive agency and lack of restriction on disclosing sensitive system information make this worse. Similarly, code assistants may treat text found in code and repository files as trusted instructions without separating it from the developer's own requests.
Guardrail filters can be bypassed by transforming the request so the filter checks the literal prompt text rather than the semantic result. For example, asking the model to perform a string-processing task can assemble harmful output after the check. Filters that rely on simple keyword checks can be evaded by encoding or rephrasing, and output safety filters that are English-only or not intent-aware can be bypassed by switching language or framing requests as formatting tasks.
Context window flooding with thousands of identical tokens can overwrite safety instructions, and a previously fixed exfiltration flaw returned, so old jailbreaks should be retested against current model versions. Endpoints that lack authentication and concatenate unvalidated user input into the prompt are also directly injectable.
Seen in these reports16
Show 5 moreShow fewer
Year by year
2 yearsWhat each year's disclosed reports show, newest first. A year with few reports says less.
| 2023 | 4 |
|---|---|
| 2024 | 8 |
| 2025 | 16 |
| 2026 | 20 |
-
2026
New this year4
- Later reports increasingly targeted agents with tools and environment access rather than plain chat prompts in the disclosed reports.
- Embedding the same string-processing instruction in an image tested indirect injection against the content filter in the disclosed reports.
- Chaining the correction, completion and framing techniques to get the model to confirm deployment details appeared in the disclosed reports.
Kept working4
- Hunters engaged agents with access to a working environment, connected tools or SQL execution, moving beyond plain chat prompts in the disclosed reports.
- Sending a normal translation request without authentication confirmed the endpoint worked, then injected instructions in the target language value in the disclosed reports.
Turned up less1
- Instructing a model behind a sensitive-information guardrail to transform personal data programmatically was seen in earlier reports but is rarer in the disclosed reports for this year.
-
2025
Kept working6
- Hunters extracted system prompts by asking the assistant to ignore previous instructions and then escalating with multi-stage prompts that built trust, as shown in the disclosed reports.
- Role-playing as a system maintainer or security agent proved effective for extracting the system prompt in the disclosed reports.
Where it is found
5The features and places the reports found it in, most-reported first.
-
Conversational generative AI chatbots and their system prompts.
Seen in 7 reports
-
Agents with access to a working environment, connected tools or SQL execution.
Seen in 4 reports
-
Managed guardrail filters for sensitive information and harmful content.
-
User-supplied prompt strings passed to a multimodal model alongside an image.
Seen in 1 report
-
Code assistants that read repository files and workspace contents.
Seen in 1 report
Technologies in these reports5
Root causes
21The mistakes in the code or configuration behind the reports.
-
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
Things to try
The most-reported tests in the largest contexts. Tick what you have tried; ticks stay in this browser and carry over to the full checklist. Test only what a program's scope allows.
ticked in this lesson
Business logic and entity resolution
of 3 ticked-
Seen in 1 report
-
Seen in 1 report
Database and query execution
of 3 ticked-
Seen in 1 report
-
Seen in 1 report
-
Seen in 1 report
Bypasses and variations
1How reports got past filters, encoders and other defences.
-
A previously fixed exfiltration flaw returned, so retest old jailbreaks against current model versions
Seen in 1 report
Payouts
Public bounties in US dollars, from the data. 0 of 52 reports show an amount.
None of these reports shows a public amount yet.
Tips for beginners
13Advice for a first hunt, drawn from the reports.
-
Avoid reporting out-of-scope issues or findings with no impact. Demonstrate impact by showing disclosure of sensitive information, bypass of a security control or unauthorised action. Do not report a refusal as a vulnerability; show that the model actually complied and what was exposed.
Seen in 4 reports
-
Start with conversational chatbots and ask them to ignore previous instructions and reveal their system prompt. Use simple override phrases first, then escalate with multi-stage prompts or role-play as a system maintainer. Check whether the output is genuine or fabricated by asking for configuration details in code form.
Seen in 3 reports
-
Try bypassing keyword-based filters by encoding the prompt, for example asking the model to respond in Base64, then use a Developer Mode style jailbreak to request hidden system instructions. Also test language switching and framing requests as formatting tasks against output safety filters.
Seen in 3 reports
-
Test guardrail filters by asking the model to transform personal data programmatically, such as appending a number to last names or slicing email addresses, and see whether the filter still catches it. Frame a harmful request as a harmless string-processing task and see whether the content filter blocks it.
-
Ask the assistant to identify internal security gaps in its own integration, then request a formal gap analysis and check whether it returns internal findings. Also ask for stored chat history that does not belong to the current user.
Guides and techniques
The best explainers, cheat sheets and technique posts on Direct prompt injection, from around the web.
-
Exploiting LLM prompt injection vulnerabilitiesIntigriti walks through identifying and exploiting prompt injection in LLM-powered web applications.
Explainer Intigriti
-
Exploring Prompt Injection AttacksNCC Group surveys prompt injection variants against LLM applications and how to test for them.
Technique nccgroup.com
-
Injection de prompt structurelle : principes, exploitations et bonnes pratiques sécuritéArgues that many prompt injection flaws stem from how applications assemble context, not model weakness, and outlines exploitation and hardening principles.
Technique vaadata.com
-
20 AI Red Teaming Techniques Every Security Professional Should Learn (Step-by-Step Guide)Lists twenty AI red teaming techniques with steps, aimed at testers probing large language model applications.
Methodology medium.com
-
Red Teaming AI Models: 12 Jailbreak Techniques Every Security Pro Should MasterCatalogues twelve jailbreak approaches for red teaming large language models.
Technique medium.com
Keep learning
Where this lesson fits, and what to read next.
Learning paths
The whole class
Related techniques
How this is made: our model read every listed Direct prompt injection report in the index (our own summary where we have one, otherwise the title and the platform's label), listed the patterns, and merged them. Each point was kept only if the reports it cites exist, are listed and belong here; payouts are computed from the data, not written by the model. Read the originals before relying on a point. Generated 27 Nov 2026 from 39 reports. All Direct prompt injection reports.