TL;DR: Enterprises are deploying LLMs across chatbots, copilots, and autonomous agents faster than they can enforce visibility, policy, and runtime controls, creating exposure in data handling, prompt injection, and agentic workflows, according to WitnessAI. The governance problem is no longer model quality; it is whether security teams can observe, constrain, and audit AI activity before business data and actions escape control.
At a glance
What this is: This guide argues that LLM security must be enforced at runtime because policy alone cannot contain probabilistic outputs, prompt injection, data leakage, or agentic actions.
Why it matters: IAM, NHI, and security teams need runtime controls, not just governance documents, because LLMs and AI agents can cross data and action boundaries faster than review cycles can respond.
Context
LLM security is the set of controls that govern how language models interact with enterprise data, users, and systems. The problem is not model quality alone, but the gap between written AI policy and enforceable control when prompts, outputs, and agent actions happen in real time.
That gap matters because LLMs are now embedded in chatbots, copilots, and autonomous agents across business functions. Traditional security stacks were built for deterministic applications, while LLMs introduce probabilistic outputs, natural language attack paths, and tool-using behaviour that can create business impact before humans can intervene.
For identity and access teams, the key issue is that AI activity now behaves like a governed runtime boundary, not a simple application feature. Visibility, authorisation, data handling, and auditability all have to work across human users, embedded AI, and autonomous workflows.
Key questions
Q: What breaks when LLM policy is not enforced at runtime?
A: Written policy cannot stop a model from exposing sensitive data, following injected instructions, or triggering unauthorised actions if there is no runtime control layer. The failure is operational, not documentary. Organisations need controls that inspect prompts, outputs, and tool calls as they happen, because compliance language alone does not constrain live AI behaviour.
Q: Why do LLMs create new risk even when existing security tools are in place?
A: Traditional tools were built for deterministic systems, while LLMs are probabilistic and conversational. That means the security team cannot rely on fixed code paths, static rules, or content filters alone. The real risk comes from runtime variability, which requires continuous observation and enforcement around the model rather than trust in the model itself.
Q: What are the signs that AI governance is failing in the enterprise?
A: Common warning signs include rapid growth in AI use without matching policy coverage, sensitive files being copied into personal accounts, and a large share of AI apps carrying high or critical risk. Another indicator is weak visibility into who is using which tools and what data they are sending. If teams cannot answer those questions, governance is not working as intended.
Q: How should teams govern autonomous AI actions without slowing the business down?
A: Use least-necessary tool access, pre-execution checks for high-risk actions, and immutable audit trails for every prompt and response. The goal is not to block AI use, but to separate advice from action and keep the system of record protected from unreviewed model behaviour. That balance is what makes enterprise adoption defensible.
Technical breakdown
Why probabilistic outputs break traditional security validation
Large language models do not behave like conventional applications with stable code paths. The same prompt can produce different outputs, which means testers cannot fully enumerate behaviour the way they can for deterministic software. That creates a governance gap: security teams can write policy, but they cannot assume the model will consistently follow intent without an external control layer. In practice, this makes runtime inspection and control more important than static approval alone. The model may be useful, but usefulness is not the same as trustworthiness.
Practical implication: Treat model behaviour as variable at runtime and place controls around prompts, outputs, and downstream actions.
Prompt injection turns natural language into an attack surface
Prompt injection works because LLMs are designed to follow language, not to reliably distinguish trusted instruction from hostile instruction. A malicious prompt can be hidden in an email, document, web page, or other input the system later ingests, causing the model to act on attacker content as if it were legitimate. This is a different risk from classic injection because the payload is semantic rather than syntactic. The security boundary therefore has to include both what enters the model and what the model is allowed to pass onward.
Practical implication: Inspect untrusted inputs before they reach the model and review outputs before they influence users or other systems.
Agentic workflows expand the blast radius of model compromise
When an LLM can call tools, query databases, or execute workflow steps, the risk moves from bad text to real action. That is where autonomy changes the security model: a manipulated agent can propagate a single bad instruction into multiple system interactions in seconds. The issue is not only access, but the ability to combine access with reasoning and execution. That combination demands guardrails before execution, not just after-the-fact monitoring, because once the action is taken the damage may already be operational rather than informational.
Practical implication: Place pre-execution checks on agent tool calls and restrict which actions the model can initiate independently.
NHI Mgmt Group analysis
LLM security has shifted from model safety to runtime governance. The central failure is not whether the model can answer accurately in a lab, but whether the organisation can constrain what the model sees, says, and does inside real workflows. Probabilistic output makes post-hoc review weaker than external enforcement. Practitioners should treat LLM activity as a governed control plane, not as an isolated application layer.
Policy without enforcement is not a security control. Many organisations have AI policies, but the article shows that policy alone cannot stop sensitive data from entering third-party models or prevent an agent from taking an unauthorised action. The governance gap is between written intent and observable runtime behaviour. Security teams need evidence that controls are active in the moment, not merely approved on paper.
Runtime boundary enforcement: the defining concept here is that LLM security depends on controls placed between the user, the model, and the system of record. That boundary has to handle prompts, outputs, and tool calls as separate control points. Without that separation, enterprises mistake model deployment for secure deployment, which is a category error in modern AI governance.
Agentic autonomy turns AI security into an identity and action problem. Once a model can initiate actions, the question is no longer only what the model knows, but what it is authorised to trigger. That brings AI security into the same governance conversation as privileged access, auditability, and workflow approval. Practitioners should align LLM controls with the same discipline used for high-risk identities and privileged automation.
Auditability is the bridge between AI use and defensible governance. If organisations cannot prove what was prompted, what was returned, and what action followed, they cannot defend AI decisions after an incident or compliance review. Immutable logs are not a reporting feature here; they are the evidence layer for policy enforcement. Teams should treat audit trails as part of the control itself, not as a secondary record after the fact.
From our research library:
- Only 13% of organisations feel extremely prepared for the reality of agentic AI despite the majority racing toward autonomous adoption, according to the 2026 Infrastructure Identity Survey.
- Read next: AI Agent Observability, Audit and Incident Response Guide
What this signals
Runtime boundary enforcement: organisations now need controls that sit between the user, the model, and the system of record. Policy documents do not stop a model from exposing data or initiating an action, so the practical shift is toward inspectable enforcement at the moment of use.
The programme implication is broader than AI tooling selection. Identity teams have to decide which AI interactions are observable, which are tokenised, which are blocked, and which can call tools, because those choices define the real perimeter of enterprise AI.
Only 13% of organisations feel extremely prepared for the reality of agentic AI despite the majority racing toward autonomous adoption, according to the 2026 Infrastructure Identity Survey. That gap makes runtime governance a present control problem, not a future maturity target.
For practitioners
- Build discovery for all AI touchpoints Inventory chatbots, copilots, embedded AI functions, autonomous agents, and any MCP server connections so security teams can see where AI is already in use.
- Enforce runtime prompts and output inspection Apply controls that inspect prompts before they reach the model and responses before they reach users or downstream systems, with separate handling for agent tool calls.
- Tokenise sensitive data before model exposure Redact or replace credentials, PII, financial records, and proprietary code before any third-party model sees the request, then preserve reversibility only inside governed systems.
- Constrain agent action paths Limit which tools, APIs, and workflows an agent can invoke without human review, especially where transactions or legally meaningful commitments are possible.
- Make audit trails tamper resistant Record prompts, responses, user identity, timestamps, and policy actions so investigators can reconstruct who initiated the interaction and what the AI changed.
Key takeaways
- LLM security fails when organisations rely on policy text without runtime controls that can inspect prompts, outputs, and tool calls in the moment.
- The article frames probabilistic behaviour, natural language attack paths, and agentic autonomy as the core reasons traditional security stacks fall short.
- Practitioners need discovery, tokenisation, pre-execution guardrails, and immutable audit trails to make AI governance defensible in production.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Agentic AI Top 10 and OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST AI RMF and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Agentic AI Top 10 | ASI02 — Tool Misuse | Agent tool calls and unauthorised actions are central to the article's risk model. |
| ASI03 — Identity & Privilege Abuse | The article centres on AI systems acting with more access than the business intended. | |
| ASI09 — Human-Agent Trust Exploitation | Prompt injection and deceptive language manipulate trust between people and models. | |
| Recommendation — Restrict agent tool use to approved actions and add pre-execution checks for high-risk operations. Align agent privileges with the minimum scope required and review every delegated action path. Inspect untrusted language inputs and block instructions that attempt to influence model behaviour indirectly. | ||
| OWASP Non-Human Identity Top 10 | NHI-04 — Insecure Authentication | The article ties AI governance to controlling who and what is allowed to act inside enterprise systems. |
| Recommendation — Authenticate AI workflows explicitly before they can reach sensitive data or operational tools. | ||
| NIST AI RMF | GOVERN — AI Governance and Accountability | The piece is fundamentally about enforceable AI governance, not model quality alone. |
| Recommendation — Establish governance ownership for AI controls and require evidence that runtime enforcement is working. | ||
| NIST CSF 2.0 | PR.AA-05 — Access Permissions, Entitlements and Authorizations | The article stresses control over which AI actors can access data and systems. |
| Recommendation — Apply least-privilege authorisation to AI tools, data access, and downstream system actions. | ||
Key terms
- Runtime Governance: Runtime governance is the set of controls that verify what a system or agent is actually doing after deployment. It combines monitoring, authorization checks, and access validation so teams can detect drift, misuse, or excessive privilege in motion rather than assuming build-time policy still holds.
- Prompt Injection (Agentic): An attack where malicious instructions are embedded in content that an AI agent reads, causing the agent to execute unintended actions using its own legitimate credentials. A primary vector for agent goal hijacking and identity abuse.
- Agentic workflow: An agentic workflow is a sequence of tasks executed by an AI agent with some level of tool access and decision authority. In security terms, the workflow matters because it can span multiple systems, identities, and permissions, which makes attribution and revocation harder than with ordinary automation.
- Reset Audit Trail: A record set that preserves the meaningful details of a password reset event, including the identity involved, the authorisation path, and the outcome. Audit trails matter because they prove legitimacy, support investigations, and help compliance teams demonstrate control over identity recovery.
Deepen your knowledge
NHI governance, agentic AI identity, and machine identity security are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are responsible for identity security strategy or NHI governance in your organisation, it is worth exploring.
Published by the NHIMG editorial team on June 7, 2026.
Updated on October 10, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org