A prompt-injection prevention checklist

Last reviewed: August 30, 2026 · Editor: Prompt Injection Check

Detection helps reviewers notice suspicious language, but prevention comes from limiting what untrusted content can influence. Use this checklist when designing an AI-assisted workflow.

Before the model reads content

When tools are available

During review

After an incident

Preserve a sanitized example, revoke exposed credentials, review tool logs, and update the workflow. Do not treat one blocked phrase as evidence that every variation is covered.

Example review record

For a suspicious invoice workflow, record the source, the requested action, the permissions available to the assistant, the warning signs observed, and the human decision. Store a redacted sample rather than the customer’s full document or secret values.

Five-minute implementation check

  1. Try a harmless synthetic injection in a staging environment.
  2. Confirm the assistant treats it as quoted data.
  3. Confirm a tool call is blocked or asks for approval.
  4. Inspect logs for secret leakage and unexpected destinations.
  5. Document the result and assign an owner for follow-up.

Frequently asked questions

Is prompt injection prevention only a prompt-writing task?

No. Permissions, application-level validation, isolation, and human approval are more reliable than wording alone.

Related guides

Indirect prompt injection · Scanner limitations

Should every finding block a workflow?

Not automatically. Classify the finding and context, then use stronger controls for sensitive actions.

What should be tested first?

Test workflows that can send messages, change records, access private data, or spend money.