Feature

PromptGuard

Prompt Injection Protection Built Into the Reasoning Process

Prompt Guard Banner

PromptGuard: Prompt Injection Protection Built Into the Reasoning Process

Prompt injection protection is now a baseline requirement for any AI agent that touches sensitive work. The moment an agent can do more than answer a question, apply a refund, call an internal tool, escalate a case, every message it reads becomes a potential attack surface. And a customer support agent has to read whatever the customer sends it, including the message telling it to ignore every instruction the company gave it.

PromptGuard is how SERV Reasoning handles that. It ships by default with three layers of defense, and in testing it withstood 256 attack vectors with zero leaks. It was built specifically for the environments where this matters most: regulated enterprises, financial institutions, and government-level workloads.

The prompt injection problem, in plain terms

Most support conversations are ordinary. Check an order, explain a policy, apply a refund, escalate a case. But the same interface can also receive a request to reveal the system prompt, disregard the refund rules, or use an internal tool in a way the company never intended. The agent receives all of it as language, while the business expects its own instructions to stay in control throughout.

That is the core of prompt injection. Instructions written by the company and messages written by the customer eventually meet inside the model, where both arrive as plain text. An attacker tries to blur the boundary between them: forget the previous rules, reveal the hidden instructions, treat this message as the new policy, use this tool with these arguments.

A support agent may be allowed to issue a refund under specific conditions, or required to read a disclosure before making an offer. The customer has every right to ask the agent to do those things. The request must never be able to redefine the policy itself.

Protection on the way in

PromptGuard evaluates each request in the context of the agent's actual job. That context is essential, because support conversations are open-ended, and the same sentence can be completely normal in one workflow and an attack in another. When PromptGuard identifies an attempt to take control of the agent, the request is refused before the model ever acts on it.

Developers enable this incoming check with the serv_prompt_guard marker on an API request. The rest of the agent, including its real tools, stays configured exactly as before.

Protection on the way out

Checking the request still leaves the other side of the interaction exposed. A model can produce a genuinely useful answer, call the right tool, and still reveal something from the private instructions or reasoning context it was given.

So PromptGuard checks the result before the application returns it. When it detects protected instructions in the response, the result is held back rather than delivered. This protection runs inside the SERV Reasoning flow, so developers do not need to build and maintain a separate security proxy around every agent.

The complete path looks like this:

customer message -> PromptGuard -> SERV Reasoning -> model -> PromptGuard -> support reply

One check sits between the untrusted customer message and model execution. Another sits between the model's private reasoning and the customer-facing output. Same agent, same model setup, two boundaries an attacker has to get through.

Blocking attacks without breaking real conversations

Blocking prompt injection is only useful if legitimate conversations keep flowing. An agent that treats every unusual message as an attack looks cautious on a dashboard but fails the people trying to use it.

PromptGuard uses multiple safety layers that inform one another about risk before anything is held back. No single signal carries the whole decision. That coordination keeps it sensitive to real attempts to interfere with the agent while keeping false positives very low.

This matters in customer support, where people paste error messages, quote an earlier agent, challenge a policy, ask unusual questions, and sometimes phrase a perfectly legitimate request in a way that looks suspicious without the surrounding conversation. PromptGuard considers that wider context before it intervenes.

Everything is visible in the SERV safety dashboard: requests screened and blocked, outputs checked and held back, trends over time, and the request identifiers behind blocked interactions. If something was blocked incorrectly, teams can report the false positive without ever sending the conversation itself.

A clean result is described precisely: it passed the safety check. It means PromptGuard found no reason to intervene once its layers considered the interaction together. It makes no claim to be a universal security certification, because honest security never does.

PromptGuard and Shadow Agents

PromptGuard and Shadow Agents look at different parts of the same support turn. Shadow Agents evaluate whether an answer conforms to what the developer expected and can send it back for another attempt. PromptGuard protects the instruction boundary: whether the customer is trying to interfere with it, and whether the response is exposing it.

Picture a refund request. PromptGuard screens the customer's message before the model sees it. SERV Reasoning guides the model through the company's refund process. Shadow Agents verify the answer followed the expected policy. PromptGuard then checks the reply is not carrying protected instructions back to the customer.

Security as part of the process

This is the larger idea behind SERV Reasoning. Reasoning is a process, and once the process is explicit, security and reliability can operate at the exact moments they are needed, instead of being left as one more instruction for the model to remember and, under pressure, forget.

Customer-facing agents routinely receive language the business does not control. PromptGuard gives that language a boundary before the model acts, and gives the agent's protected instructions a boundary before the response leaves. For agents that can answer, decide, and act, that protection belongs inside the process itself.

PromptGuard ships with SERV v2.

Share: