LLM risks arise when a model interprets instructions dynamically and then acts through valid enterprise credentials. IAM can verify who or what is authenticated, but it cannot judge whether the resulting action was safe, intended, or manipulated by adversarial input. That is why runtime governance, not access control alone, is needed to protect AI-driven workflows.
Why LLMs Open Gaps That IAM Alone Cannot Close
Traditional IAM is built to answer a static question: should this principal be authenticated and authorised for this resource? LLM-driven workflows change the problem because the model can reinterpret prompts, infer intent, chain tools, and generate actions that are valid in IAM terms but unsafe in business terms. The security gap is not identity verification; it is action validity under dynamic instruction processing. For that reason, LLM governance has to look beyond entitlement and into runtime behaviour, output handling, and tool use.
That matters because the model can be influenced after authentication through prompt injection, retrieval contamination, or ambiguous instructions. A legitimate service account, API token, or delegated agent credential may still be used to perform a harmful action even when the access path itself is technically allowed. This is why control failure often appears as “the right identity did the wrong thing,” not as a failed login or an unauthorised session.
NHIMG research on agentic AI risk shows how quickly scope can drift in practice: 80% of organisations report AI agents have already performed actions beyond their intended scope, including unauthorised system access and credential exposure. In practice, security teams usually discover the problem only after the workflow has already executed through a trusted path, rather than at the moment the model first became manipulable.
How Runtime Governance Changes the Control Model
To close the gap, teams need controls that evaluate context at the moment the model acts. That means treating the LLM as an execution intermediary, not just a user interface. IAM still matters for authentication, role scoping, and service-to-service trust, but it does not determine whether the model’s chosen action is appropriate given the prompt, the retrieved data, the conversation state, or the business policy.
In practice, that shifts the control stack toward short-lived credentials, scoped tool permissions, real-time policy checks, and logging that captures the prompt, tool call, and downstream effect together. If an agent can access a ticketing system, database, or cloud API, the organisation must know when that access is permitted, what data can enter the context window, and what actions require human approval. Static allowlists are often too blunt because the same tool can be safe in one workflow and hazardous in another.
A useful way to think about it is this:
- IAM authenticates the actor.
- Runtime governance constrains the action.
- Monitoring proves what the model actually did.
This is also where infrastructure controls show their limits. Network segmentation, secure configuration, and secrets management reduce blast radius, but they do not reliably tell a model to ignore malicious instructions embedded in retrieved content or user input. Current guidance on agentic systems increasingly points toward intent-aware controls and ephemeral authorisation for that reason. The NIST AI Risk Management Framework and OWASP Top 10 for Agentic Applications 2026 both reinforce the need to manage AI behaviour as a governed risk surface, not just a credentialed workload. These controls tend to break down in highly automated environments where tool chaining happens faster than review or where the same identity is reused across multiple high-trust systems.
Where the Standard IAM Model Breaks Down in Real Deployments
Tighter control over model actions often increases operational overhead, so teams have to balance safety against workflow latency and engineering complexity. The hardest cases are not simple chat interfaces; they are agentic pipelines that retrieve internal data, decide on next steps, and then execute against multiple systems using shared enterprise credentials.
Common edge cases include:
- delegated agents that inherit broad permissions from a parent service account
- long-lived API keys that remain valid long after the workflow that created them changes
- multi-step tool use where each individual call is permitted, but the sequence is harmful
- retrieval-augmented systems that ingest untrusted text into the model’s decision context
The practical failure is usually not a missing login control. It is a mismatch between what IAM can certify and what the model can decide. Organisations often assume that least privilege on paper is enough, but LLMs can still be manipulated into using privilege in unexpected ways. AI Agents: The New Attack Surface report is a useful reminder that governance visibility is still uneven, and OWASP NHI Top 10 helps frame the identity and credential side of that problem. These controls tend to fail when an organisation treats the model as deterministic, because the real risk comes from unpredictable interpretation under valid access.
Risk and Threat Considerations
LLM-enabled workflows create a trust abuse problem: an attacker does not always need to steal credentials if they can influence a trusted model into using them incorrectly. The material risk is that valid identities, API keys, and tool permissions become execution channels for unsafe or unauthorised actions.
Failure mechanism: prompt injection, poisoned retrieval content, and agent chaining can steer a model toward actions that pass ordinary IAM checks because the identity is real and the call is authorised. The weakness is that access control does not inspect the semantic safety of the action or the trustworthiness of the instruction source.
Impact: organisations can see data exposure, unintended transactions, privilege misuse, or credential leakage while logs still show a legitimate identity performing an allowed action. That makes containment and attribution harder, especially when multiple agents share the same downstream tools.
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, OWASP Non-Human Identity Top 10 and CSA MAESTRO 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 | A1 — Agentic Access Control | LLM tool-use and action safety are the core gap here. |
| Recommendation — Constrain agent actions with context-aware policies before tool execution. | ||
| OWASP Non-Human Identity Top 10 | NHI-01 — Secrets and Credential Management | LLM workflows often act through shared API keys and service credentials. |
| Recommendation — Rotate and scope non-human credentials used by LLM agents. | ||
| CSA MAESTRO | GOVERN — Govern | This is an AI governance problem requiring runtime accountability. |
| Recommendation — Define approval, oversight, and accountability for agentic actions. | ||
| NIST AI RMF | GOVERN — Govern | The question concerns governing AI behaviour beyond standard IAM. |
| Recommendation — Set governance rules that evaluate AI actions, not just access. | ||
| NIST CSF 2.0 | PR.AA-01 — Identity and Access Management | IAM still matters, but it cannot fully close the LLM risk gap. |
| Recommendation — Limit authenticated access to the minimum workflows an agent needs. | ||
Practitioner Guidance
What to prioritise: Separate “who may authenticate” from “what the model may do next.” If a workflow can move money, expose data, or change records, require a runtime policy decision before execution rather than relying on the identity grant alone.
Decision rule: If the model’s output can trigger an irreversible or high-impact action, treat the action as a governed event, not a normal API call. Use short-lived credentials, narrow tool scopes, and human approval for the highest-risk paths.
What to verify: Confirm that logs capture the prompt source, tool invocation, credential used, and resulting side effect as one audit chain. Without that linkage, teams can see access but not intent, which makes incident review and policy tuning unreliable.
Practitioner takeaway: The security objective is not to make LLMs “trusted” in the IAM sense; it is to ensure that trusted identities cannot be turned into unbounded actions by manipulated instructions.
Related resources from NHI Mgmt Group
- Why do unmanaged and BYOD devices create gaps in traditional security controls?
- How should security teams position identity controls when traditional IAM leaves gaps in modern app access?
- Why do enterprise copilots create new security and governance risks beyond traditional SaaS controls?
- Why do AI and LLM applications create security risks that traditional tools often miss?