Skip to main content

The History of Prompt Injection: Who Discovered It and When

· By Natalie Walls

Prompt injection was first reported in May 2022, when the AI security company Preamble privately disclosed it to OpenAI, and it got its name and public attention that September through Riley Goodside's demos and Simon Willison's write-up. Here's the history of prompt injection, year by year, with a source for each step.

2022: discovery and a name

May 3, 2022. Preamble says it found a prompt injection weakness in GPT-3 while testing classification tasks and reported it to OpenAI that day. It sent more examples on May 4. The disclosure was declassified on September 22, 2022 (Preamble).

May 13, 2022. A Twitter user, @himbodhisattva, used the phrase "prompt injection" in a tweet. Willison later credited that tweet with coining the term about four months before he did (Simon Willison).

September 2022. Riley Goodside showed that malicious input could make GPT-3 ignore its original instructions. On September 12, Willison wrote "I propose that the obvious name for this should be prompt injection," and compared it to SQL injection (Simon Willison). That post is why the term spread. See Prompt Injection vs SQL Injection for why the comparison only goes so far.

September 16 and 17, 2022. Within a week, Willison was arguing the problem would be hard to fix. He wrote that no amount of testing proves an attacker can't find a phrasing that works (Simon Willison), and that using more AI to detect attacks fails because a defense that works 99% of the time isn't good enough for security (Simon Willison).

2023: real products and a second attack class

February 2023. Stanford student Kevin Liu used prompt injection to get Microsoft's new Bing chatbot to reveal its confidential directives and its codename, "Sydney" (OECD AI Incidents Monitor).

February 23, 2023. Kai Greshake and colleagues published "Not what you've signed up for," which described indirect prompt injection: instructions hidden in content a model retrieves, exploitable without direct access. They showed it against Bing's GPT-4 chat and code-completion tools (arXiv). Read more in Indirect Prompt Injection.

April 25, 2023. Willison proposed the Dual LLM pattern, which keeps a privileged model away from untrusted text (Simon Willison).

August 2, 2023. OWASP released version 1.0 of its Top 10 for LLM Applications, with prompt injection as LLM01 (The Register).

August 30, 2023. The UK's NCSC wrote that prompt injection "may simply be an inherent issue with LLM technology" (NCSC).

2024: hidden text and model-level defenses

January 2024. Johann Rehberger documented hiding instructions in invisible Unicode tag characters, crediting Riley Goodside with the first proof of concept, and released a tool to encode and decode them (Embrace The Red).

March and April 2024. Keegan Hines and colleagues published spotlighting, which marks where each piece of input came from (arXiv), and OpenAI published the instruction hierarchy, which trains models to favor higher-privilege instructions (OpenAI).

August 2024. PromptArmor showed Slack AI could be steered by text in a public channel into rendering a link that leaked a private API key. Salesforce said it patched the issue (The Register).

November 2024. OWASP's 2025 list added system prompt leakage and expanded excessive agency for agents (OWASP).

2025: agents and design patterns

March 2025. Edoardo Debenedetti and colleagues published CaMeL, a defense that wraps a protective layer around the model instead of trusting it (arXiv).

April 2025. Invariant Labs described tool poisoning, where instructions hide in MCP tool descriptions (Invariant Labs).

June 2025. Willison named the "lethal trifecta" of private data, untrusted content and external communication (Simon Willison), and wrote up a paper on six design patterns for securing agents (Simon Willison).

October 2025. "The Attacker Moves Second" found adaptive attacks beat most of 12 published defenses more than 90% of the time (arXiv).

December 2025. The NCSC published "Prompt injection is not SQL injection (it may be worse)" (NCSC), and OpenAI said prompt injection is unlikely ever to be fully solved (OpenAI).

What the history of prompt injection tells us

The attack was named within months of being found, and more than four years on, the people closest to it still say it can't be fully fixed. That's the background for Can Prompt Injection Be Solved?.

Next step: see how your own app holds up with the canary payloads.