Skip to content

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

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.

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.

Year by year

2 years

What each year's disclosed reports show, newest first. A year with few reports says less.

Reports per yearPeak 2026: 20
Reports per year
20234
20248
202516
202620
  1. 2026

    20 reports

    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.
    and 1 more

    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.
    and 2 more

    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.
  2. 2025

    16 reports

    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.
    and 4 more
Every point, year by year

Where it is found

5

The features and places the reports found it in, most-reported first.

  1. Conversational generative AI chatbots and their system prompts.

    Seen in 7 reports
  2. Agents with access to a working environment, connected tools or SQL execution.

    Seen in 4 reports
  3. Managed guardrail filters for sensitive information and harmful content.

    Seen in 2 reports
  4. User-supplied prompt strings passed to a multimodal model alongside an image.

    Seen in 1 report
  5. Code assistants that read repository files and workspace contents.

    Seen in 1 report

Technologies in these reports5

Root causes

21

The mistakes in the code or configuration behind the reports.

  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
View all 21

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
More in Business logic and entity resolution

Data and secret extraction

of 3 ticked
More in Data and secret extraction

Database and query execution

of 3 ticked
More in Database and query execution

System prompt extraction

of 3 ticked
More in System prompt extraction
View more things to try

Bypasses and variations

1

How reports got past filters, encoders and other defences.

  1. 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

13

Advice for a first hunt, drawn from the reports.

  1. 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
  2. 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
  3. 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
  4. 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.

    Seen in 2 reports
  5. 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.

    Seen in 2 reports
View all 13

Guides and techniques

The best explainers, cheat sheets and technique posts on Direct prompt injection, from around the web.

Keep learning

Where this lesson fits, and what to read next.

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.