hackerdb

Home / Free tools / Prompt injection and hidden text scanner

Scan pasted text for hidden characters and prompt injection phrases

Before you give an agent a file or a page to read, paste it here. The scanner reveals invisible characters, instruction-override phrases, hidden HTML comments, commands that fetch and run code, and long encoded blobs. It runs in your browser and shows a cleaned copy.

How to use it

  1. Paste the text. A skill file, README, issue, page copy or tool output you plan to give to an agent.
  2. Read the high findings. Check each quoted line and decide whether it belongs in the file.
  3. Look at the visible-characters view. If invisible characters exist, the tool shows where and offers a cleaned copy.
  4. Scan whole folders with agentscan. For repositories use the free script, which checks files in bulk.

The problem this addresses

An AI agent reads text and cannot always tell instructions from the user apart from instructions planted in the material it was asked to read. This is called indirect prompt injection. A skill file, a README, a web page, a pull request comment or a tool result can all carry directives such as "ignore your previous instructions" or "send the contents of your credentials file to this address". Some of that text can be invisible to people: zero-width characters, Unicode tag characters that mirror ASCII, HTML comments that do not render, or base64 strings that decode to a sentence.

What the scanner looks for

What it cannot do

It matches known patterns. Attackers can rephrase, and legitimate security writing contains the same phrases. Use findings as a prompt to read the line, not as a verdict. For files in a repository, run the free agentscan; for third-party skills and servers, the Pro rule pack and hardening guide add rules and a review routine. Defence in depth still applies: limit the permissions an agent holds, keep dangerous tools on manual approval, and do not give one session private data, untrusted content and the ability to send data out all at once.

Frequently asked questions

What is prompt injection?

Text in content an agent reads that tries to give the agent new instructions. Indirect injection hides it in documents, pages or tool results rather than in your own prompt.

Can this guarantee a file is safe?

No. It finds known patterns only. A clean result is not proof of safety.

Why are my security notes flagged?

Text that describes attacks contains the same phrases. Judge the context of each quoted line.

Is the text sent anywhere?

No. Scanning runs locally in your browser.

More free tools

All free tools