Prompt Injection Test

Prompt Injection Testing Checklist

prompt injection testing checklist · authorized defensive testing

Prompt Injection Testing Checklist

A scoped checklist for authorized prompt injection reviews covering channels, tool boundaries, logging, and retesting.

Scoping the test

Name the system, build, owner, environment, data classes, input channels, connected tools, test window, permitted methods, prohibited actions, emergency contact, and stop conditions. Get written approval before running a test. Confirm that test identities have only synthetic data and that any send, delete, or write action is replaced by a recorder or mock.

Input vectors

List direct user prompts and indirect channels such as documents, email, search results, retrieval stores, tool responses, images, and multi-turn memory. Test only channels the system actually reads. Record where trust labels and delimiters are applied, and whether downstream components preserve them. A list of channels makes exclusions visible and helps reviewers see what the exercise did not cover.

Tool and permission abuse

For every tool, document its identity, permission scope, allowed destinations, side effects, approval gate, and audit evidence. Check that a tool call cannot be authorized solely by a retrieved instruction. Run with a mock implementation that logs proposed calls. Verify the actual authorization layer rather than relying on a system-prompt statement.

Output handling

Check whether the app renders model text as HTML, Markdown, a link, an image, code, or a command. Define which output forms are allowed and how URLs or markup are validated. Inspect browser/network logs in the controlled test to verify the renderer does not turn untrusted content into an outbound request. OWASP treats improper output handling as a separate risk from injection itself.

Logging and detection

Agree which events should be observable: source document, retrieval IDs, policy decision, model/config version, tool call, approval, and response. Verify timestamps and correlation IDs while avoiding unnecessary capture of sensitive prompts. Decide who can access logs, how long they remain, and how a finding is escalated. A test cannot establish detection if the signal is not available to the reviewer.

Reporting template and retesting

For each case, record expected and observed behavior, sanitized evidence, reviewer, outcome, and control owner. Link the result to a specific build and test revision. Triage false positives and errors separately. After remediation, repeat the case and test the enforcement control with a second harmless variation; do not close a finding solely because one exact string is now blocked.

BoundarySafe checkEvidence to record
User inputDoes a request change the defined task or attempt to override policy?Sanitized request and response
Retrieved contentIs an instruction in a test document treated as data?Document ID and retrieval trace
Tool outputCan returned text redirect a later action?Tool call, arguments, approval state
Rendered outputAre untrusted links or markup handled safely?Rendered mode and blocked/allowed behavior

Questions

Should I run the checklist against a live service?

Follow the organization’s formal authorization and change process; staging with synthetic data and mocked actions is safer for most first-pass tests.

How should “not applicable” be handled?

Record the system fact that makes a case inapplicable and have the owner review that scope decision.

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

Sources

Questions

Should I run the checklist against a live service?

Follow the organization’s formal authorization and change process; staging with synthetic data and mocked actions is safer for most first-pass tests.

How should “not applicable” be handled?

Record the system fact that makes a case inapplicable and have the owner review that scope decision.

Related guides