Prompt-injection firewall

Check every prompt before the model sees it.

PromptShield sits in front of an AI agent. Ordinary requests go through. An instruction hidden in a page, a file, or a tool result is marked, then removed or stopped.

Concept

A prompt injection is an instruction planted in content the model was only supposed to read. The firewall treats that content as data. System and developer instructions stay in charge.

How each trust level is treated
LevelSourceTreatment
T0TrustedSystem prompt, developer setupMay tell the agent what to do.
T1CheckedSigned-in user messagesMay ask for work. Jailbreaks are still scanned.
T3Data onlyPages, files, email, tool outputInstruction-like text is flagged.

Patterns in scope

A match is explained on the scan. A new wording can still get through, and that limit is recorded.

  1. 01Instruction override
  2. 02Role change
  3. 03Secret extraction
  4. 04Tool abuse
  5. 05Credential theft
  6. 06Context poisoning
  7. 07Multi-step jailbreaks
  8. 08Encoded instructions
  9. 09Indirect injection

Use

The same check serves an app, an agent, and the screens on your account.

  1. 01

    In front of your model

    Call the firewall before the model runs. A prompt and a file upload return the same kind of decision.

  2. 02

    On your account

    Scans, X-ray, and API keys stay on the account you create. Another account cannot open them.

  3. 03

    In the playground

    Arena compares the firewall off and on. Red team takes your own wording. Coverage shows the last eval.

Five answers

Every scan returns one of these. The word is always next to the colour.

  • Allowed

    The text can go to the model.

  • Sanitised

    Forward the cleaned text. The flagged span is already gone.

  • Quarantined

    Hold the document. Do not send the original.

  • Blocked

    Stop. The response includes a safe alternative.

  • Needs review

    A person should look before anything is sent.

Advantages

Keep the agent on the real task, and remove as little of the document as the decision allows.

  • The rest of the document can stay

    One bad span is redacted. The whole document is blocked only when it has to be.

  • A harmless next step

    A block or quarantine includes a safe alternative that does not repeat the attack.

  • The reason is on the page

    X-ray shows the span, the reason code, and the stage that fired.

  • Hidden text is read as text

    Comments, metadata, odd Unicode, and simple encodings are decoded first. Uploads are never executed.

  • Side effects fail closed

    A tool call is denied when the guard errors. A failed later stage is logged, and the scan still finishes.

  • One check for every source

    Messages, pages, PDF, email, Word, HTML, source code, and images use the same scan.

This is a check for prompt injection. It is not a filter for toxicity or misinformation, and it does not replace careful tool permissions.