Prompt Injection Test

prompt injection test · authorized defensive testing

Prompt Injection Tester

Understand the browser-local rule-based tester, what its checks can and cannot establish, and how to turn a result into an authorized regression case.

Paste the full instructions your agent runs with.

JSON from Anthropic, OpenAI or an MCP tools/list result, or one tool per line as name: description.

Also tell the test (if the tool list doesn't show it)

How the tester works

The existing tester on the home page evaluates text you provide against a local set of defensive patterns. It does not connect to a model, call your application, or prove that an agent resisted an attack. Use the output as a checklist for review, not as a pass certificate. To test a running system, use an explicitly authorized staging target and an approved test harness.

Choose an attack category

Prompt injection may arrive directly from a user or indirectly through a document, web page, email, or tool result. Other relevant boundaries include disclosure of protected data, improper rendering, system instruction exposure, and excessive agency. Choose cases based on real channels in the application; a text-only chatbot should not be scored for a write tool it does not have.

Run and read results

Read each finding’s evidence and suggested control. Confirm whether the tested capability exists and whether the wording actually identifies a control. Distinguish “not exposed” from “tested and defended.” Add the target version, data class, and observable outcome to your own record. A local pattern match on a prompt is not an evaluation of a deployed model response.

Limits of automated testing

Prompt text alone cannot show which documents were retrieved, whether authorization was enforced, what tool call occurred, or whether a rendered link made a request. Results can miss paraphrases and overflag legitimate language. Pair a static check with application logs, permissions review, and safe scenarios in staging. Keep model randomness and provider changes in mind when comparing runs.

Next steps: a controlled scenario

For an owned lab, use a synthetic document containing a harmless marker request and a mock tool that only records calls. State the expected behavior, run the case, and inspect the transcript, retrieval trace, and tool log. If behavior differs, document a reproducible case and fix the control at the layer that owns the data or action. Do not submit untrusted test text to public systems without authorization.

Example report

A useful record includes case ID, target build, model/provider, input channel, test data, expected behavior, observed behavior, evidence reference, reviewer, and result. Save the sanitized trace in an approved location. Keep the rule-based home-page result separate from a live application finding so readers know exactly what was tested.

Example local test record

Case: LAB-17
Target: isolated staging assistant
Input source: synthetic test document
Expected: treat the marker instruction as document content
Observed: [record response and tool calls]
Evidence: [sanitized trace ID]
Reviewer: [assigned human reviewer]
Result: [pass / fail / not applicable]

Questions

Does this page send my prompt to an AI model?

No. The site’s scripts are browser-local and make no model or network calls.

Can I use this tester as a security certification?

No. It is a local rule-based check and is not a certification or comprehensive assessment.

Try a rule-based local check: Open the browser-local prompt injection tester

Sources

Questions

Does this page send my prompt to an AI model?

No. The site’s scripts are browser-local and make no model or network calls.

Can I use this tester as a security certification?

No. It is a local rule-based check and is not a certification or comprehensive assessment.

Related guides