What is AI runtime security?
AI runtime security protects an AI system in operation, in the deployment stage where it is integrated into enterprise applications and serves users. It covers filtering inputs and outputs, monitoring use, limiting access, protecting the running model and retrieved data and isolating agents.
Unlike AI supply chain security, which addresses attacks on the development environment and external components, runtime security targets evasion, privacy and prompt injection attacks mounted while the trained model is in use.
- Topic
- AI security
- Also known as
- Runtime AI security, inference-time security
- Origin
- Deployment stage attacks in the NIST adversarial machine learning taxonomy; OWASP AI Exchange runtime threats
How AI runtime security works
- Inputs are checked for manipulative instructions; external content is treated as untrusted data, not instructions.
- Outputs are filtered for sensitive data and injected scripts.
- Usage is logged and fed into incident detection; rate limits and access control slow attacks.
- Live model weights and retrieval data are protected from tampering; each agent runs in a bounded environment.
In more detail
How agent escape differs from jailbreak
According to the OWASP AI Exchange, agent escape is when an autonomous agent operates outside its defined security boundary by invoking tools it is not authorised to use, accessing systems outside its scope or acting beyond its task. A jailbreak overrides safety constraints while staying within the operational boundary. Jailbreak is mainly a reasoning-layer problem and escape mainly a policy enforcement problem at the infrastructure layer, which is why agents' network, storage and tool access is limited at infrastructure level.
Commonly confused terms
| Term | How it differs |
|---|---|
| AI guardrails | Guardrails are controls that filter a model's inputs and outputs according to set rules. Runtime security is the broader layer that includes them along with usage monitoring, access control, model and data integrity and agent isolation. |
Why AI runtime security matters for on-premises AI
A 2025 NIST report traces many vulnerabilities in LLM applications to data and instructions sharing one channel, letting attackers inject instructions through data. OWASP's 2025 list ranks prompt injection first. Detectors of harmful interactions help but can themselves be attacked, so the OWASP AI Exchange advises assuming prompt injection may still succeed and limiting the blast radius.
A bank routes every request to its on-premise document assistant through an AI gateway: inputs are screened for prompt injection, outputs for card numbers and interactions are logged to security monitoring. The agent runs read-only in a separate container; an unusual tool call raises an alert.
Common questions
Are runtime security and guardrails the same thing?
No. Guardrails filter inputs and outputs and form one part of runtime security. Runtime security also covers usage monitoring, access control, rate limits, model and data integrity and agent isolation.
Is it needed for models running on premises?
Yes. Even when a model runs in-house and data is not sent to an external AI service, malicious inputs, poisoned documents or compromised accounts can reach the system, so monitoring and isolation still apply.
Can prompt injection be fully prevented?
Not reliably. The OWASP AI Exchange advises assuming that prompt injection can still happen after alignment, filtering and detection and limiting the blast radius.
Related terms
Sources
- Adversarial Machine Learning: A Taxonomy and Terminology of Attacks and Mitigations, NIST AI 100-2e2025, 2025
- Runtime conventional security threats, OWASP AI Exchange, 2026
- Input threats, OWASP AI Exchange, 2026
- Top 10 Risk and Mitigations for LLMs and Gen AI Apps, OWASP Gen AI Security Project, 2025
In the glossary: Glossary, R to Z