Model-only controls miss the application harness, where retrieval, tool calls, third-party services, and enterprise data access determine what the system can actually do. A model may look safe in testing and still produce harmful actions in production. Security teams need controls that govern runtime behaviour, not just generated output.
What breaks when you secure the model but ignore the runtime?
Model-only security creates a false boundary. The model is only one component in a live system, and the real risk emerges when prompts, retrieval, tool execution, orchestration logic, and connected services determine what actions the system can take. A model can appear safe in a benchmark while the deployed system still leaks data, executes unintended actions, or trusts unsafe inputs.
The runtime is where security decisions become operational. That includes how the application passes context into the model, what the model can call, which services it can reach, and what enterprise data it can retrieve or expose. If those controls are weak, the model’s output safety does not prevent harmful behaviour in production.
A useful way to think about this is that the model generates language, but the runtime determines authority. When a system combines retrieval, tool use, session state, and third-party integrations, the attack surface moves beyond prompt quality into control of actions and data flow. For a practical lens on runtime failure modes, see AI Security Maturity Model, which treats runtime behaviour, not just model characteristics, as part of the security programme.
Why runtime controls matter more than model output alone
Most production AI harm does not come from the model acting in isolation. It comes from the surrounding system letting the model retrieve sensitive records, invoke tools, write back to business systems, or relay attacker-supplied instructions into trusted workflows. That means the key question is not only “Did the model say the right thing?” but “What was it allowed to do with that response?”
This is especially important when the application harness connects the model to enterprise data or external services. A system that blocks unsafe language but still allows overbroad retrieval or unrestricted tool calls can still create data exposure, unauthorised transactions, or operational disruption. Runtime guardrails need to cover both what the model can see and what it can do.
Security teams should treat the harness as a control boundary, not just plumbing. If the runtime can fetch customer records, execute commands, or trigger workflows, then the surrounding authorisation, logging, and policy checks are part of the security design. A broader governance view is captured in AI Governance Guide, which helps teams connect use-case approval, oversight, and retirement decisions to deployed system behaviour.
What to test when a model looks safe in staging
Testing must follow the runtime path, not just the model prompt path. A model can pass safety review in a controlled demo and still fail when real users, real data, and real integrations are present. That gap usually shows up in tool permissions, retrieval scope, hidden system instructions, or downstream systems that trust the model too much.
Practitioners should validate the full chain: what context is injected, what data is retrievable, which tools are callable, what approvals are required, and whether actions are constrained by policy instead of model intent. If a model can influence a workflow, the workflow needs its own control checks even when the model appears well behaved.
For AI systems that involve agent-like tool use, the most relevant threat model is runtime-centred. The CSA MAESTRO agentic AI threat modeling framework is useful here because it focuses on orchestration, autonomy, tool use, and emergent behaviour rather than on model text quality alone.
Risk and Threat Considerations
Model-only security fails because attackers do not need to “break the model” if they can abuse the surrounding runtime. Prompt injection, unsafe retrieval, overprivileged tools, and exposed enterprise connectors can turn a harmless-looking model into a vehicle for data theft, fraud, or destructive actions.
Failure mechanism: The application treats model behaviour as the main control point, while the real authority sits in runtime integrations, retrieval scope, and action execution. An attacker exploits that gap by steering the system into trusted data or tool paths the model was never meant to control.
Impact: The organisation gets a system that appears guarded in testing but still can exfiltrate sensitive data, trigger unintended actions, or propagate bad decisions into business systems once it is live.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP API Security Top 10 and OWASP Agentic AI Top 10 address the attack and risk surface, while NIST SP 800-53 Rev 5 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST SP 800-53 Rev 5 | AU-2 — Event Logging | Runtime AI systems need audit visibility for tool use, retrieval, and actions. |
| AC-6 — Least Privilege | Overprivileged runtime tools and connectors create the production risk described. | |
| Recommendation — Log model-triggered retrieval and tool actions with enough detail to reconstruct behavior. Restrict runtime tool and data access to the minimum needed for each workflow. | ||
| OWASP API Security Top 10 | API5 — Broken Function Level Authorization | Model-driven actions can bypass intended function-level checks if runtime governance is weak. |
| Recommendation — Enforce function-level authorization on every action the AI runtime can invoke. | ||
| NIST CSF 2.0 | PR.AA-05 — Identity Management, Authentication and Access Control | Runtime systems rely on access control around data, tools, and downstream services. |
| Recommendation — Apply access controls to every runtime integration the AI system can reach. | ||
| OWASP Agentic AI Top 10 | ASI03 — Identity & Privilege Abuse | Agent-like AI fails when runtime authority exceeds what the model should control. |
| Recommendation — Constrain agent privileges so runtime actions cannot exceed approved authority. | ||
Practitioner Guidance
What to verify: Confirm that the runtime has explicit policy checks for retrieval, tool invocation, external calls, and write actions. If the model can influence an enterprise system, verify that the downstream system enforces its own authorisation and logging, rather than relying on the model to “behave.”
Decision rule: If a control only inspects generated text, treat it as incomplete. If the system can access data or act on behalf of the user, prioritise runtime permissioning, action approval, and observability over prompt-only guardrails.
Common mistake: Teams often equate “safe output” with “safe system.” In practice, the dangerous part is frequently the bridge between generation and execution, especially where retrieval and tools extend the model into enterprise processes.
Practitioner takeaway: Secure the model, but govern the runtime first, because production harm usually comes from the system’s authority, not from the model’s words alone.
Related resources from NHI Mgmt Group
- What is the difference between model guardrails and runtime AI security controls?
- Why do runtime data sources matter as much as model weights in AI security?
- Why do agentic AI systems need runtime security instead of static guardrails alone?
- How should security teams limit AI system damage when model refusals are unreliable?
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on October 22, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org