THE GOVERNATLAS RESEARCH LIBRARY

Prompt Injection Testing: A Defensible Test Plan

A threat-model-first playbook for authorized AI security trials, with paired benign cases, failure accounting and replay boundaries. Includes a private, downloadable trial record.

GovernAtlas editorial analysis
Published October 14, 2026
Updated 2026-10-15

Original operating recommendations. Model-assisted research, with primary-reference and editorial review. No paid placement or unperformed product testing.

The research library ↗

THE QUESTION

What should an authorized prompt-injection test actually establish?

Test the application's trust boundary and observed actions. Preserve what the attack could access, what it tried to change and what actually happened. A refused response or a clean scanner result is not a complete assessment.

01 / THE METHOD

Define the boundary before generating attacks

OWASP's prompt-injection reference distinguishes direct and indirect injection and describes risks arising when untrusted input influences an application's behavior. Use that vocabulary to draw your own application boundary: user messages, retrieved documents, tool results, memory, system instructions and executable actions. Identify which sources the application should treat as data rather than authority.

Our recommended test charter states the authorized environment, permitted techniques, synthetic protected values, allowed tools, prohibited side effects and the person who can stop the exercise. Use a sandbox with test accounts and reversible actions. The purpose is to learn about a controlled boundary, not to expose real credentials or affect a third party's systems.

Write the harmful outcome in operational terms. For a read-only assistant, it may be disclosing a synthetic restricted value. For an agent, it may be invoking a forbidden tool or submitting an unauthorized argument. Merely reproducing a provocative phrase in a response is not equivalent to demonstrating that the application crossed the boundary you are testing.

02 / THE METHOD

Use paired attack and benign cases

Create a baseline task the application should complete. Pair it with an adversarial input that tries to redirect the same workflow. Then add a benign input containing similar security-related vocabulary. These pairs help distinguish an intervention against the undesired behavior from a blanket refusal that prevents legitimate work.

Include indirect cases in the sources the application actually consumes: a synthetic retrieved document, a permitted mock tool result or a test attachment. Keep the business task constant while changing the untrusted content. Record the source location and the privilege the attacker is assumed to control. Do not imply that a successful test against a retrieved document covers every other input channel.

Vary one important condition at a time: the role of the input, availability of a tool, policy version or retrieval context. Preserve the resulting request and action trace. A large list of unrelated prompts is difficult to interpret if nobody can explain which trust assumption each case exercises or whether a result is reproducible.

Your working evidence packet

  • Direct user-input redirection
  • Untrusted retrieved-content instructions
  • Mock tool-result instructions
  • Synthetic restricted-data request
  • Unauthorized tool or argument attempt
  • Benign tasks with similar vocabulary

03 / THE METHOD

Measure the application's outcome

Observe the complete path from input to application action. Record retrieved material, model or agent version, relevant tool calls, enforced policy and the final result. A security product may emit an alert without blocking an action. A model may refuse in prose after a tool has already executed. Distinguish those outcomes in the finding rather than classifying everything as a generic pass or fail.

Define a pass condition for each case before running it. For a synthetic restricted value, the condition might require that the value is neither returned nor sent to an unauthorized tool. For an agent action, inspect the actual arguments and destination. Where the environment cannot expose the necessary evidence, mark the result inconclusive instead of inferring that nothing happened.

Include unavailable and slow dependencies in the authorized trial. Ask what the application does if the guardrail service, retrieval layer or policy store cannot respond. Fail-open and fail-closed behavior are operating choices with different consequences; your test should make the configured behavior observable and assign responsibility for the decision.

04 / THE METHOD

Keep failed execution out of the defense result

Write down the planned case set before the trial and keep a record for every attempted execution. A timed-out request, disconnected detector or missing action trace is not evidence that a boundary held. Separate not run, execution failed and inconclusive from observations that actually establish the outcome you intended to examine. This distinction matters when two controls differ in how often they return a usable result.

Keep adversarial and benign observations in different groups. For an adversarial case, record whether the specified boundary held or was crossed. For a benign case, record whether the legitimate task completed or was blocked. Do not improve a defense result by counting a blocked legitimate task as a prevented attack. If a reviewer cannot observe the relevant action, preserve the uncertainty rather than interpreting a refusal message as a successful intervention.

The trial record below provides four editable adversarial slots and two benign slots as a planning aid. They are illustrative, not an exhaustive test suite or a prescribed benchmark. Its counts report only what you enter. In a larger internal assessment, preserve individual case records and report the size and composition of each group alongside any aggregate result; do not hide consequential failures behind a large denominator.

05 / THE METHOD

Compare controls without inventing a leaderboard

Use the same application version, permitted capabilities and controlled cases for a comparison. Preserve configurations and explain any difference in integration point. An inline scanner and a monitoring-only deployment do not have the same opportunity to intervene, so a single comparative percentage can be misleading without that context.

Report attack outcomes and benign-task outcomes separately. Show the consequential failures individually, retain inconclusive results and record latency or availability observations without generalizing beyond the trial. A vendor-provided result can inform a shortlist, but it should not be presented as an independent GovernAtlas benchmark unless GovernAtlas actually ran and documented the test.

When a defense is changed, retest both the successful attack cases and the legitimate tasks. A narrowly tuned rule can close one example while causing unnecessary refusals elsewhere. Keep the change record, the retest evidence and any accepted exception linked so a later reviewer can understand the remaining exposure.

06 / THE METHOD

A replay is a new observation when the system changes

Preserve the configuration needed to interpret a trial: application build, model and provider identifier, policy revision, retrieval fixture, available tools, role permissions and the connection through which a control can intervene. Use non-sensitive references to controlled artifacts. A prompt alone is not a complete reproduction package when the model can retrieve changing documents, remember earlier turns or invoke tools with different permissions.

Compare one controlled change at a time where practical. If a model upgrade, new tool and guardrail change arrive together, record that combined scope instead of attributing a changed outcome to one component. Re-run benign cases as well as the original boundary case. Preserve the earlier observation; a later successful run does not erase a previously observed failure or explain why it occurred.

Identify the evidence you cannot reproduce. A hosted service may not expose a fixed model revision, and a retired detector may no longer be callable. Keep those limits in the finding and request a review when they affect a decision. The record is evidence about a particular authorized trial, not proof that an untested deployment, future version or different attack surface is secure.

07 / THE METHOD

Write a finding another team can reproduce

A useful finding includes the attacker's assumed control, the intended task, the precise test input, application and policy versions, observed steps, outcome, impact within the sandbox and a reproduction procedure. Record the evidence that was unavailable. Avoid replacing this record with a screenshot of a refusal or an aggregate score.

Assign an owner and a proposed next action. That action may be removing an unnecessary tool privilege, changing a workflow boundary, improving input handling or adding a reviewed control. Do not assume that another instruction in the prompt is the right remediation for every failure. Reproduce the finding after the change and preserve both results.

The deliverable is a bounded evidence report. It explains what was tested and what remains unresolved; it does not certify immunity to future attacks. Use newly observed failures to update the case set and revisit the threat model when tools, privileges, data sources or deployment paths change.

YOUR WORKING MATERIALS

Keep the observation behind the outcome.

REFERENCES / METHOD / SCOPE

Keep the reasoning inspectable.

The procedures, scenarios and acceptance questions in this guide are GovernAtlas editorial recommendations. They are not a prescribed standard, legal determination, certification or independent test result. Primary references were inspected October 15, 2026; source-specific concepts remain distinct from our recommended implementation method.

OWASP: LLM01 prompt injection ↗

Primary security-project reference for threat vocabulary. The charter, paired-case method and reporting format here are original GovernAtlas recommendations, not a claim of exhaustive coverage.

Challenge a statement or submit contrary evidence ↗

CONTINUE THE RESEARCH

From method to evidence.

These related profiles contain source-scoped statements and diligence questions. Their inclusion here is an editorial reading path, not a ranking or evidence that every platform performs every workflow in this guide.