Access control limits who can reach the system, but it does not control what the model may do once it is invoked. LLM applications can still leak data, follow malicious prompts, or produce unsafe outputs. Security teams need content controls, runtime monitoring, and behavior validation so trust is based on both permission and observed model action.
Why Access Control Alone Cannot Secure LLM Applications
Access control answers a narrow question: who may invoke the application. It does not answer what happens after the model starts processing prompts, retrieved context, tool calls, or generated output. That gap matters because LLM applications can be steered by untrusted input, can disclose sensitive context, and can take unsafe actions even when the caller is authenticated. NIST AI 600-1 Generative AI Profile is useful here because it treats generative AI as a lifecycle risk, not just an access problem.
For security teams, the practical issue is that identity checks only establish permission to use the interface. They do not establish trust in the prompt content, the retrieved data, the model’s instruction hierarchy, or the consequences of tool execution. If the application can read internal documents, call APIs, or draft outward-facing content, the attack surface extends well beyond login. In practice, many security teams encounter leakage and misuse only after the model has already been allowed to act inside a trusted workflow.
What Secure LLM Operation Requires After the Login Screen
Once an LLM application is invoked, security shifts from access decisions to runtime governance. The application must decide which inputs are trusted, which retrieved sources are admissible, which tools the model may use, and which outputs are safe to release. That is why prompt filtering, retrieval scoping, output validation, and action gating are separate controls rather than optional extras. If a user can reach the system, the model still needs to be constrained against prompt injection, data exfiltration, and unsafe tool invocation.
A useful way to think about the control stack is:
- access control decides whether the caller may enter the application;
- content controls decide what instructions and data the model should ignore or reject;
- runtime monitoring watches for abnormal prompts, tool sequences, or output patterns;
- behavior validation checks whether the generated action or response matches policy before it is used.
This layered approach matters because LLM risk is often indirect. The model may be perfectly reachable by an authorised user and still be manipulated by content embedded in a document, webpage, email, or retrieved record. The problem is not limited to malicious users at the front door; it also includes untrusted material that the model reads after the door is open. That is why prompt-injection handling, retrieval hygiene, and tool permissioning are core security functions, not usability features.
For broader governance, the strongest practice is to treat the model as an execution-capable component with bounded authority. OWASP Agentic AI Top 10 is relevant because it highlights how autonomous or tool-using systems fail when trust in the model’s behavior is assumed rather than continuously verified. Where the application can act on behalf of a user, security must also cover the downstream action, not only the upstream identity check.
Where this guidance breaks down is in systems that are purely offline, read-only, and never process sensitive or externally influenced content. In those cases, the security problem is narrower, but most production LLM applications do not remain that simple for long.
When the Edge Cases Become the Real Risk
Tighter model constraints often reduce flexibility, requiring organisations to balance user utility against exposure to unsafe content, false confidence, and unintended action. The most common edge case is a system that starts as a chat assistant and later gains retrieval or tool access without a corresponding security redesign. At that point, the original access model no longer matches the actual risk.
Another important variation is the distinction between a model that only suggests actions and a model that can execute them. Suggestions need review; execution needs policy enforcement. The latter creates a materially different risk profile because the security failure is no longer just a bad answer, but a bad answer turning into a bad action. Guidance-vs-consensus is still evolving here: there is broad agreement that output filtering helps, but there is less consensus on how much runtime autonomy is safe without human approval.
Teams also underestimate the effect of external context. If the application uses retrieval-augmented generation, the security question is not only whether the caller is allowed to ask a question, but whether the retrieved material should be trusted by the model at all. That is where the control boundary shifts from identity to content provenance, and why relying on authentication alone leaves a false sense of safety.
Risk and Threat Considerations
The main risk is prompt-driven misuse of trusted capabilities. An authenticated user, compromised account, or hostile document can steer the model toward disclosure, policy bypass, or unsafe tool use even when access control is working as designed. The exposure grows sharply when the application can read sensitive context or take actions on connected systems.
Failure mechanism: The attacker does not need to break login controls. They exploit instruction-following behavior, untrusted retrieved content, or weak tool constraints so the model treats hostile content as operationally valid input. That can lead to prompt injection, over-sharing, or unauthorized downstream actions.
Impact: Sensitive data may be exposed, incorrect output may be trusted, and automated actions may be executed outside intended policy boundaries. In connected workflows, the failure can extend from a single bad response into account abuse, data leakage, or broader process compromise.
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 surface, NIST AI 600-1 and NIST CSF 2.0 set the technical controls, and ISO/IEC 42001:2023 define the regulatory obligations.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST AI 600-1 | GOVERN — Govern AI risk across the lifecycle | Generative AI risk persists after login and needs lifecycle governance. |
| Recommendation — Govern prompts, outputs, and tool use as lifecycle AI risks, not access-only issues. | ||
| ISO/IEC 42001:2023 | A.5 — AI system policy and accountability | LLM apps need organisational accountability beyond user authentication. |
| Recommendation — Assign clear accountability for model behavior, output use, and runtime approval. | ||
| OWASP Agentic AI Top 10 | A1 — Prompt Injection | Prompt injection is a core failure mode when LLMs process untrusted content. |
| Recommendation — Treat untrusted inputs as hostile and block instruction hijacking paths. | ||
| OWASP Non-Human Identity Top 10 | NHI-01 — Secrets and Credential Management | LLM tools can expose secrets or act through machine credentials if overtrusted. |
| Recommendation — Restrict secret exposure to the model and rotate any machine credentials it can reach. | ||
| NIST CSF 2.0 | PR.AC-4 — Access permissions management | Access control remains necessary but does not cover model behavior after entry. |
| Recommendation — Enforce least privilege for users, tools, and connected resources. | ||
Practitioner Guidance
What to prioritise: Separate “may enter the app” from “may influence the model” and from “may trigger an action.” Those are different trust decisions, and treating them as one control is the common mistake.
What to verify: Confirm that retrieval sources, tool permissions, and output checks are all enforced at runtime, not only documented in design. If the application can act, verify that human review still exists for high-impact actions.
What good looks like: The system should fail closed when prompts are suspicious, context is untrusted, or generated actions exceed policy. Security teams should be able to explain why a given output was allowed, blocked, or escalated.
Practitioner takeaway: LLM security is not achieved by authenticating the user and hoping the model behaves; it is achieved by continuously constraining, observing, and validating what the model is allowed to consume and do.
Related resources from NHI Mgmt Group
- What should teams do when access control spans SAP and other business applications?
- Why do vector databases complicate access control for AI applications?
- How should security teams secure LLM system prompts in production applications?
- How should security teams prevent broken access control in modern applications?
Deepen Your Knowledge
Reviewed and updated by the NHIMG editorial team on September 7, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org