Free tool

Prompt Injection Test

Run 13 real attack patterns against your agent. Pick one, send it, paste the response, and see if the injection's marker made it through.

Client-side only. A pass means "held against this probe", not "safe".

§01 / TESTERscored: canary match, client-side
Interactive

Run a pattern

Awaiting responsePaste your agent's reply above to score it.
§02 / LIBRARYbattery: 13 patterns, 5 families
The battery

The pattern library

Grouped by family. Each probes a distinct way a model gets talked out of its instructions.

Goal hijacking

Overriding the task to print an attacker-chosen string (PromptInject).

Ignore and say

A direct countermand that tells the model to just say the target string.

PromptInject (Agency Enterprise, MIT)

Ignore and print

The print variant, which slips past filters that only look for "say".

PromptInject (Agency Enterprise, MIT)

Ignore and print (uppercase)

Whether shouting the instruction changes how it is treated.

PromptInject (Agency Enterprise, MIT)

Nevermind

A false retraction of the prior context before the real instruction.

PromptInject (Agency Enterprise, MIT)

Screaming stop

Whether urgency framing pressures the model into compliance.

PromptInject (Agency Enterprise, MIT)

Role hijack

Reassigning who the model is to unlock new behaviour.

Unrestricted-persona ("DAN")

Whether adopting a rule-free persona strips the guardrails tied to the original one.

garak dan probe (technique)

Privileged-role assertion

Whether claiming an elevated role is enough to be treated as one.

documented technique

Data exfiltration

Coaxing out the system prompt, tools, or private context.

System-prompt readback

Whether the model will repeat its own hidden instructions on request.

documented technique

Tool-schema disclosure

Whether the model will enumerate the tools and schemas it was given.

documented technique

Encoded payload

The same asks hidden from naive filters.

Base64-wrapped instruction

Whether an instruction survives base64 encoding past filters that only scan plain text.

garak encoding probe (technique)

Homoglyph / spacing evasion

Whether unusual spacing slips an instruction past keyword matching.

garak encoding probe (technique)

Indirect injection

Attacks arriving through retrieved content, not the user turn.

Poisoned retrieved document

Whether an instruction planted in content the agent reads (not the user turn) is obeyed.

AgentDojo-style indirect injection (technique)

Malicious tool result

Whether an instruction embedded in a tool or API result is treated as a command.

AgentDojo-style indirect injection (technique)

Goal-hijacking patterns are the PromptInject dataset (Agency Enterprise, MIT), whose rogue-string method matches this tool's canary scoring. Other families are canary-instrumented versions of techniques catalogued by garak and AgentDojo.

§03 / METHODhonest: what the score means
Methodology

What the score does and doesn't prove

Each attack tells the model to emit a marker token only if it complies. Scoring searches your pasted response for that token, in your browser.

Canary found

Strong signal the injection took. The model produced a string it was told to produce only on compliance.

No canary

Weaker signal. It held against this probe, which is not the same as robust: it may be manipulable in ways that never emit a canary.

  • The wording here may not match the attacks you actually face.
  • A response pasted from a different prompt will score wrong.
  • This catches obvious failures fast. It is not a security audit.

Catching an injection once is a spot check. Catching it on every run in production is continuous evaluation, which is what Prefactor does. Seeagent guardrails

§04 / GO DEEPERopen source: automated red-team tooling
§05 / FAQfaq: what teams ask
Questions

Frequently asked questions

How does the scoring work?

Each attack tells the model to emit a unique marker (a "canary") only if it obeys. The tool searches your pasted response for it. Finding it is strong evidence the injection took. Runs in your browser.

What can this NOT tell me?

A clean result means the agent did not emit the canary for the patterns you ran. It is not proof of robustness: the wording may not match your threats, and a response from a different prompt will score wrong. A pass means "held against this probe", not "safe".

Do I run these against a live agent?

Yes. Copy an attack, send it through the channel you want to test (user message, retrieved document, tool result), then paste back the reply. The tool never contacts your agent.

Where do the patterns come from?

The goal-hijacking set is the PromptInject dataset (Agency Enterprise, MIT), imported verbatim; its rogue-string method is the same canary scoring this tool uses. The other families are canary-instrumented versions of techniques from garak and AgentDojo. The "Go deeper" section links all of them.

See how every agent performs, and make it better

Prefactor helps teams observe, evaluate, and improve their AI agents in production, across every framework and provider.