Manuscript Offprint

arXiv:2610.03434

Persona Guardrail: A Production-Grade Defense Framework for Agentic Systems

Bijeeta Pal, Sridhar Reddy Maddireddy, Muhaimin Bin Munir, Zoltan Puha, Max Zhurovich, Adi Raghavendra, Sean Tout

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Large language model-based agents are increasingly deployed to perform domain-specific tasks by interacting with enterprise knowledge, tools, and external services. Existing runtime guardrails primarily target prompt injection and other attack-specific behaviors under a black-box threat model, but provide limited guarantees that agents operate within their intended functionality. As a result, production agents remain vulnerable to malicious requests and out-of-domain queries that existing defenses often fail to distinguish.

We present Persona Guardrail, a production-grade runtime defense framework that enforces explicit functional boundaries for customer-facing agentic AI systems through synchronous input and output validation driven by semantic allowlist and blocklist specifications. We also introduce PAGE (Persona-Aware Guardrail Evaluation), a benchmark for evaluating function-specific guardrails across benign, adversarial, and out-of-domain interactions on both user and agent turns. Compared with a generic LLM-based guardrail, Persona Guardrail improves overall accuracy from 85.7% to 95.9%, increases out-of-domain detection from 57.3% to 93.5%, and reduces the false-approved rate from 25.0% to 4.7%. Currently deployed in production, Persona Guardrail meets its latency budget while sustaining a very low false-block and false-allow rate under realistic production workloads. These results demonstrate that Persona Guardrail provides a practical, scalable, and production-ready foundation for securing agentic AI systems.

CCS Concepts

• Security and privacy → Systems security.

Keywords

LLM Security, Agentic Systems, Runtime Defense, Guardrails

1 Introduction

Recent advances in large language models (LLMs) have significantly improved their capabilities in reasoning, planning, tool use, and decision-making [18, 24], enabling them to autonomously execute complex workflows that were previously achievable only through carefully engineered software systems. These advances have enabled the emergence of what is called agentic AI systems—LLM-powered applications [22] that can autonomously interact with tools, APIs, knowledge bases, and software services to accomplish a broad spectrum of user goals. By combining the capabilities of LLMs with traditional software components, the agentic systems provide a powerful building block for a diverse set of applications, ranging from ride booking and customer support automation to transaction management, information retrieval, and personalized assistance.

As agentic AI systems become increasingly integrated into production environments, ensuring their security has emerged as a critical challenge [12,16][12, 16]. Unlike traditional software systems, agentic applications process natural-language inputs while simultaneously possessing the ability to perform privileged actions in production. This combination introduces new attack surfaces that do not exist in conventional applications. Recent research has identified a broad spectrum of attacks against agentic systems, including prompt injection, indirect prompt injection through untrusted external content, tool poisoning, retrieval-augmented generation poisoning, agent goal hijacking etc [6,8,11][6, 8, 11]. However, these attacks assume different threat models and require different defense mechanisms.

In this paper, we focus on the practical threat model encountered by many production-facing agents, where a malicious end user has black-box access to the agent through its public interface and cannot manipulate the agent's internal tools, retrieved documents, memory, or execution environment. In this setting, the adversary attempts to induce the agent to perform actions outside its intended functionality, bypass safety policies, or produce harmful responses through carefully crafted user queries. Consequently, indirect prompt injection, tool poisoning, and memory poisoning are outside the evaluated threat model. Our solution may still block a policy-violating final response caused by such attacks, but the evaluated guardrails do not inspect intermediate actions.

Existing research on agentic AI security has primarily focused on two complementary directions. The first seeks to develop defenses against specific classes of attacks, such as prompt injection attacks [11, 15]. The second evaluates the effectiveness of adversarial attack strategies against LLM-based agents and measures their impact on system behavior [1, 6]. More recently, systematization-of-knowledge (SoK) [12] studies have consolidated these attacks.

∗^{*}University of Texas at Dallas; work done during an internship at Uber.

†^{\dagger}Uber, Netherlands.

and defenses into comprehensive frameworks, providing a structured understanding of the emerging security landscape of agentic AI systems. While these efforts have significantly advanced our understanding of agentic AI security, they largely focus on attack taxonomies, threat models, and isolated defense mechanisms. Comparatively little attention has been paid to the practical challenges of deploying comprehensive security solutions in large-scale production environments, where latency, scalability, reliability, and operational complexity are often as important as security.

In this paper, we address this gap by presenting Persona Guardrail, a production-grade defense framework designed for large-scale agentic systems. Persona Guardrail is based on a simple yet powerful principle: every agent should operate within a well-defined functional boundary that specifies its intended capabilities, permissible actions, and expected behaviors. The framework continuously enforces these boundaries by validating both inputs to the agent and outputs generated by the agent, ensuring that interactions remain consistent with the agent's intended functionality even in the presence of adversarial inputs.

Our work differs from prior research in its emphasis on practical deployment. Persona Guardrail is designed for the realistic production threat model in which external users interact with customer-facing agents through a black-box interface. The framework operates under real-world constraints, including stringent latency requirements, high request volumes, and evolving adversarial behavior. Rather than focusing on a single attack class, Persona Guardrail provides a unified runtime defense that enforces an agent's functional boundaries, mitigating malicious requests while filtering benign but out-of-domain queries. This enables production agents to remain responsive, secure, and aligned with their intended functionality under real-world deployment conditions.

To the best of our knowledge, this is the first work to present and deploy a comprehensive, production-grade runtime defense framework for a large-scale, customer-facing agentic system, and to evaluate its effectiveness and operational feasibility under real-world deployment constraints. This paper makes the following contributions:

• Production-Scale Security Framework. We present Persona Guardrail that enforces explicit functional boundaries for customer-facing agentic AI systems through input and output validation.

• Functional Boundary Enforcement. We introduce a principled approach for defining and enforcing agent-specific functional boundaries, enabling the detection and prevention of behaviors that deviate from an agent’s intended purpose.

• Guardrail Evaluation Benchmark. We introduce PAGE, the first benchmark that systematically evaluates runtime guardrails for function-specific agents across both user requests and agent responses, spanning benign, adversarial, and out-of-domain interactions.

• Comprehensive Evaluation. We empirically demonstrate the effectiveness, scalability, and operational feasibility of Persona Guardrail on representative production agents under realistic workloads.

• Practical and Scalable Deployment. We describe the architectural and operational considerations required to deploy security guardrails at scale while satisfying strict latency and reliability requirements.

References (10)