Enterprise AI agent assurance

Test whether AI agents follow policy when prompts become hostile

Prompt injection testing examines whether untrusted instructions can redirect an agent’s task, disclosures or tool actions. It is a focused part of broader agent security evaluation.

For: Agent engineers, application security teams and owners of retrieval or tool-using systems

Confirm supported coverage for your engagement. The enterprise workspace is available; integrations and private connections require technical approval. Policy imports remain a future option.

Test the actual instruction paths

  1. Direct prompt injection

    User-supplied instructions try to override the approved task or policy.

  2. Indirect prompt injection

    Documents, pages or tool responses carry instructions into context.

  3. Retrieval poisoning

    Manipulated retrieved material steers decisions or presents misleading authority.

  4. System prompt extraction

    Requests try to disclose hidden instructions or configuration; assess the sensitivity of what is actually exposed.

  5. Tool manipulation

    Content attempts to influence tool choice, arguments or data destinations.

  6. Instruction hierarchy conflicts

    Conflicting instructions test whether the intended authority boundary holds.

  7. Data boundary attacks

    Cases examine whether information can reach an unauthorized audience or context.

  8. Jailbreak attempts

    Adversarial instructions seek behaviour the system should refuse or escalate.

Define success before observing the output

  1. State the boundary

    Name the prohibited action or disclosure and legitimate task.

  2. Place the hostile input

    Use the actual channel and a controlled test fixture.

  3. Observe downstream behaviour

    Inspect relevant tool calls and effects as well as the final answer.

  4. Judge the criterion

    Record results, missing evidence and uncertainty.

  5. Retest the change

    Make the meaningful case part of regression coverage for the affected version.

Focused injection testing and broader red teaming

QuestionPrompt injection testingBroader red teaming
Primary focusInstruction influence and related data or tool boundaries.End-to-end misuse, delegation, permissions and operational controls.
Typical evidenceInput placement, context, response and attempted action.Connected observations across multiple steps and systems.
LimitCannot establish security of the entire application.Still bounded by scope, access and selected scenarios.

Avoid overfitting to a memorable attack string

A regression case preserves the boundary being tested, not just one phrase. Include variations appropriate to actual channels and populations while keeping expected behaviour explicit. Record which case version and agent configuration produced each result.

Defences outside the model matter. Authorization, data access checks and human approvals can limit consequences even when generated text follows hostile instructions. Test those controls in the relevant workflow and escalate broader questions into agent red teaming.

Choose criteria for the boundary being tested

Start with the differences between prompt injection and jailbreaks to separate delivery paths, behavioral restrictions and observed consequences. The controlled jailbreak testing methodology then explains how to define cases, scoring criteria and retests without treating every refusal as success.

If a case concerns private instructions, use the prompt extraction verification and defense guide to check what was actually disclosed and which independent controls still protect the system.

Questions about prompt injection and jailbreak testing

Can an instruction-only defence eliminate prompt injection?

No universal prevention claim is made. Assess relevant input channels and enforce important permissions outside the model as part of the system boundary.

Sources and further reading

Put your next agent decision on a clear evidence basis

Discuss the agent, its operating boundaries and the assurance work your enterprise needs.

Request a demo