---
title: "Prompt Injection and PII Protection for AI Agents | Verosek"
description: "AI guardrails: enable Shield and each key's checks run over prompts, replies, tool arguments and tool results, for prompt injection, personal data, secrets and more."
url: https://verosek.com/shield
---

Verosek Shield

# 24 checks. One layer.

Input. Output. Tool output. Session drift. Deterministic where possible. Offline ML everywhere.

[Book a call](https://cal.com/verosek-solutions-u9ztip/30min)

Shield is the scanning layer of Verosek's AI + MCP Gateway: once enabled, it runs each key's checks over prompts, replies, tool arguments and tool results, and by default a blocking rule that cannot run answers 503 check_unavailable rather than passing.

Check Catalog

## What Shield checks, and where: a selection.

S1 · I/O scanning

S2 · MCP-aware

S3 · High assurance

| # | What it detects | Scan point | Phase |
| --- | --- | --- | --- |
| 01 | Prompt injection in user input | PRE-LLM | S1 |
| 02 | Jailbreak & role-play attempts | PRE-LLM | S1 |
| 03 | PII in user input | PRE-LLM | S1 |
| 04 | PII in model output | POST-LLM | S1 |
| 05 | Toxic or unsafe output | POST-LLM | S1 |
| 06 | PII in tool output | POST-TOOL | S2 |
| 07 | Secrets in tool output | POST-TOOL | S2 |
| 08 | Off-topic tool call | PRE-TOOL | S2 |
| 09 | Unapproved tool invocation | PRE-TOOL | S2 |
| 10 | Session drift over turns | POST-LLM | S3 |
| 11 | Data-exfiltration pattern | POST-TOOL | S3 |
| 12 | Cross-tenant leakage | PRE-LLM | S3 |

Request Lifecycle

## 1 Request – 4 scan points

Shield can scan every point where untrusted text can enter, including the ones after the model has already replied.

Before the model sees anything

PRE-LLM

When your MCP server replies

POST-TOOL

Before the user sees the answer

POST-LLM

Across every turn

SESSION

Prompt injection, jailbreak, PII, secrets, scope creep

Indirect injection hiding in a SQL row or Slack message

Toxicity, leaked PII, leaked secrets, ungrounded claims

Cumulative exfiltration drift the single-turn scans can't see

## Every signal is local. Scanning stays on your side.

No prompt, no PII, no tool output ever leaves your network to get scanned. All four systems below run on infrastructure you control.

### Offline Classifiers

Prompt injection, jailbreak, toxicity — runs on-prem, no outbound.

### Local PII Engine

4 redaction modes (mask / redact / tag / block).

### Session Drift Counters

Cumulative PII, URL, and byte-count tracking across turns.

### Grounding Verdict

With Shield on, figures in a reply are checked against the reference you pass, and a judge model can flag the rest for review.

## Frequently Asked Questions

### How is Shield different from a guardrail plug-in on my gateway?

Shield ships in the gateway, on the key you already use. A plug-in from a scanning vendor is a second product your gateway calls, and it often brings its own account, key and console, and a call out to that vendor. With Shield on, each key's checks read prompts, replies, tool arguments and tool results, each finding lands in the request's sealed record, and the checks run where the gateway runs.

### Do I need a separate guardrail vendor if my gateway has integrations?

With Verosek, no: the checks ship in the gateway, so there is no second vendor to buy, no second key and no second record. Turn on Shield and each key's checks look for prompt injection in prompts, tool arguments and tool results, and for personal data and secrets in those and in replies. If your gateway reaches a scanner through an integration, ask what that adds: an account, a key, a console, a bill, and where your text goes.

### Isn't this just another prompt-injection filter?

Filters watch the prompt and the reply. Real agent attacks arrive inside tool results and build up across a session. Verosek watches those boundaries too, which is where MCP attacks land.

### What decides a block, and can I try a check first?

A model's score alone never blocks: it flags, unless you opt that check in. Otherwise a block comes from a named rule, so the same text under the same settings gets the same answer, and the record says which rule. You can run a check on live traffic in log-only or flag mode before it enforces.

### Does our prompt data leave our network to be scanned?

No. Scanning happens inside your own environment with no outbound calls. Your prompts and data never leave, even fully air-gapped.

### How do you keep detection from being gamed?

Detection is layered, runs where attackers cannot see or probe it, and resolves deterministically rather than by a model they could coax. Assume any filter will miss something. The rule on the tool call still holds, because it reads the call and the key, not the words.

### How do I scan MCP tool results for prompt injection?

Enable Shield and pick a profile for the key. Shield then reads what each tool returns before the model does, checks it for hidden instructions, personal data and secrets, and under that key's settings replaces it, redacts it or records it.

### How do I redact PII and secrets from LLM prompts and responses at the gateway?

Enable Shield and pick a profile for the key. It checks prompts, replies, tool arguments and tool results for personal data and secrets. Under the key's settings a finding is recorded, flagged, blocked, or redacted where the text can still be changed.

### Does Shield work in other languages?

A key can be limited to the languages you allow, with Hindi handled in Devanagari and in Roman script. Aadhaar and PAN numbers are found alongside the usual types of personal data. Names and places are detected in English today.

## [ From the blog ]

[All posts →](https://verosek.com/blog)

Field guide

### [How do you stop an AI agent's tool call before it runs?](https://verosek.com/blog/stop-a-tool-call-before-it-runs)

Put the decision outside the AI. Verosek checks what an agent tries to do against the rules you set, lets the allowed actions through, stops the rest and keeps a sealed record of every decision.

Field guide

### [How do you secure AI agents?](https://verosek.com/blog/how-do-you-secure-ai-agents)

Limit what each agent can do, decide each action outside the AI model, read what it reads and keep a record you can check. Verosek does all four in one place, so security is not a second vendor.

Field guide

### [What is prompt injection, and what actually stops it?](https://verosek.com/blog/what-is-prompt-injection-and-what-stops-it)

Prompt injection is text that makes a model follow the attacker. No filter catches all of it, so the control that holds sits outside the model: a rule on the tool call. Verosek decides that call before it runs.
