Prompt injection comes in a handful of recognizable shapes. Knowing them helps you spot weak points in your own app before someone else does.
The types below follow the attack scenarios in the OWASP Top 10 for LLM Applications. Each comes with a harmless way to test for it. None of the examples here does anything except ask a model to print a marker word.
1. Direct injection
The user types instructions that override the app's own. The textbook case is "ignore all previous instructions and…" followed by a new task.
Test it: paste our direct override canary into the chat box. A safe app carries on with its job.
2. System prompt extraction
The user asks the model to repeat the hidden instructions it was given. Leaked system prompts can expose business logic, internal names, or worse, secrets someone put there by mistake.
Test it: use the system prompt extraction canary. Then check that your system prompt holds nothing that would hurt if it leaked, because eventually it might.
3. Indirect injection
The instructions hide in content the app reads for the user, like a web page, email or file. Researchers showed this working against Bing's GPT-4 chat back in 2023 (Greshake et al.), and Google's 2026 sweep of the public web found malicious examples growing.
Test it: hide the indirect canary inside a document your app summarizes. Read more in Indirect Prompt Injection.
4. Unintentional injection
Not every injection is an attack. OWASP's example is a company that adds an instruction to a job posting to catch AI-written applications, and an applicant's AI tool picks it up without the applicant knowing. Your app can obey text that was never aimed at it.
Test it: feed your app ordinary documents that happen to contain instructions, like a how-to guide, and see whether it starts following them.
5. Payload splitting
The attack is broken into pieces that each look harmless, and only combine into an instruction once the model reads them together. A filter that checks each piece alone can miss it.
Test it: split a canary instruction across two fields or two documents your app reads at the same time.
6. Obfuscated and multilingual attacks
The instruction is written in another language, encoded in Base64, or disguised with look-alike characters, so keyword filters don't recognize it while the model still understands it.
Test it: translate a canary into another language and see whether your filters still catch it. Our analyzer flags hidden Unicode characters, one common trick.
7. Multimodal injection
Instructions hidden in an image, such as faint text the model can read but a person might not notice. Any app that lets a model look at user images or screenshots is exposed.
Test it: put a canary instruction in small, low-contrast text on an image and ask your app to describe it.
8. Data exfiltration through links and images
An injected instruction tells the model to include a link or image whose URL carries private data. If the app renders that Markdown, the user's browser sends the data to the attacker's server just by loading the image.
Test it: use our image exfiltration canary. It points at example.com, a domain reserved for documentation, so nothing leaks even if the test fails.
What to do with the results
A single failure tells you where to put a defense. See How to Prevent Prompt Injection for the seven layers that limit the damage.