Prompt injection scanner
Paste text a model will read and find known injection tricks: override phrases, fake system messages, exfiltration links, hidden Unicode and encoded prompts.
Checked as you type. Nothing you paste leaves this page.
The file is read in your browser. It is not uploaded.
Everything you type here stays in your browser. Nothing is sent to HardenKit or to anyone else.
How to use the prompt injection scanner
- Paste the text the model will receive, drop a file, or load the example.
- Paste the raw source where you can (HTML or Markdown), since hidden text lives there.
- Read each finding with its line; hidden text is shown decoded.
- Treat a clean result as "no known pattern", not as "safe".
About this tool
Prompt injection is text written for the model instead of for the reader. A web page, an email, a PDF or a tool result carries a sentence such as "ignore previous instructions", and a model that cannot tell data from instructions follows it. With tools attached, that can mean sending your files somewhere or acting in your name.
This scanner looks for the known forms. Phrases that override or replace instructions, fake system and assistant turns, chat template tokens, requests for the system prompt, Markdown images and links built to carry data out, and orders to act without telling the user. It also finds what a person cannot see: Unicode tag characters (decoded and shown), bidirectional overrides, zero-width characters, HTML comments and CSS-hidden elements that carry instructions, and Base64 that decodes to them.
Read the result with its limit in mind. Pattern matching finds known tricks and cannot prove that text is safe: an attacker can rephrase, translate or invent a new form, and nothing here would match. Use it to inspect suspicious content and to test your own filters. The defence that holds is limiting what the model is allowed to do with untrusted input.
Sources
Questions
An attack where content the model processes contains instructions that the model follows as if they came from its developer or user. Direct injection is typed by the user; indirect injection arrives inside a web page, a file or a tool result. OWASP lists it as the first risk in its Top 10 for LLM applications.
No. Injections are natural language, and there is no fixed set of words to block: the same instruction can be rephrased, translated or split up. Scanners and classifiers catch known and lazy attempts. Design the system so that a successful injection has little it can do.
Several ways. Unicode tag characters are invisible copies of ASCII that models still read. White-on-white or zero-size text, display:none elements and HTML comments are invisible in a rendered page but present in its source. Zero-width characters split words so filters miss them.
A chat interface that renders Markdown loads images automatically. If injected text makes the model write an image whose URL contains conversation data, the browser sends that data to the attacker’s server with no click. Interfaces defend against it by only loading images from trusted hosts.