TL;DR: Generative AI security is not a single control problem but a governance and monitoring challenge, according to Liminal, because unstructured prompts, variable outputs and broad integrations create data leakage, prompt injection and compliance risk that traditional perimeter tools do not cover. The decisive issue is controlling what the system can see and do at runtime, not assuming existing security layers will classify AI behaviour correctly.
At a glance
What this is: NHI Mgmt Group's analysis, drawing on Liminal's blog post: Generative AI security must be governed as a distinct operating model because unstructured prompts, variable outputs and broad integrations defeat traditional perimeter assumptions.
Why it matters: It matters because security, IAM and compliance teams need controls that govern AI access, data exposure and runtime behaviour, not just the tools around the model.
Context
Generative AI security sits at the point where identity, data handling and application behaviour overlap. The core problem is that a model can be asked to process sensitive material, call external services and produce outputs that look legitimate while still violating policy or exposing data. That means the security boundary is not just the model, but the permissions and context around it.
Traditional security frameworks struggle here because they were built for systems with deterministic input and output patterns. agentic AI security policy becomes relevant when organisations need explicit ownership, approval and retirement rules for AI deployments, especially where employees can adopt tools before security teams see them.
The starting position described by Liminal is now common rather than exceptional: AI usage expands faster than governance, and the risk appears through ordinary user workflows rather than obvious compromise. That makes discovery and policy control prerequisites, not afterthoughts.
Key questions
Q: Why do prompt injections create a security problem for generative AI?
A: Prompt injection works because the model may treat malicious instructions as meaningful context rather than adversarial input. That can override intended safety behaviour, especially when the model is embedded in workflows or trusted by downstream systems. The risk is not only harmful output, but uncontrolled influence over business processes.
Q: Why does access control fail when AI systems can read documents and call tools?
A: Access control fails when AI systems are allowed to interpret untrusted content, decide which tools to call, and inherit broad credentials without a runtime policy that constrains each action. A safe design separates model input from authority, uses least-privilege tool scopes, approves sensitive actions through human review or policy gates, and logs every tool call for revocation and audit.
Q: How can security teams detect unsafe generative AI usage at runtime?
A: Security teams can detect unsafe generative AI usage at runtime by monitoring prompts, tool calls, output destinations, and data access against policy rules. Controls such as API gateways, DLP, session logging, anomaly detection, and allowlisted tools can flag prompt injection, exfiltration attempts, unsafe file retrieval, and use of prohibited models or connectors as they happen.
Q: What is the difference between prompt filtering and guardrails in AI security?
A: Prompt filtering screens user input or model output for banned words, dangerous instructions, or sensitive data patterns. Guardrails are broader runtime controls that shape what the AI system may do, including tool allowlists, output constraints, policy checks, identity-based permissions, and escalation rules, so they control behaviour rather than just text.
Technical breakdown
Why prompt injection works against language models
Prompt injection succeeds because the model receives instructions and user content in the same natural-language channel. Unlike classic software, a generative model cannot reliably separate trusted system prompts from malicious user text unless the surrounding application creates strong instruction boundaries. Attackers exploit this ambiguity to override task instructions, extract hidden context, or provoke unsafe actions. The real failure mode is not a broken packet or malformed request, but a trust boundary that is too soft for language-based manipulation. See the AI Safety vs AI Security Guide.
Practical implication: Treat prompt construction, templating and content separation as security controls, not developer convenience.
Why AI access control has to govern context, not just login
AI access control is about more than authenticating the user. Once a system can read documents, query databases or call APIs on a user's behalf, the important question is what context the model can see and what actions it can take. Coarse access models fail because a legitimate request can surface unrelated sensitive data or trigger an overbroad tool call. In effect, the model becomes a new enforcement point that can combine permissions in ways the original application never intended. See the AI Agent Identity Security Buyer's Guide.
Practical implication: Limit data scope, tool scope and action scope separately so one authorised request cannot become a broad data exposure event.
How monitoring and validation change AI security operations
Monitoring generative AI is not only about logs. Security teams need visibility into prompts, retrieved context, external calls and outputs so they can detect policy violations, leakage and anomalous behaviour. Output validation matters because the harmful event may occur after the model has already accepted the prompt. That makes observability part of runtime control, not just post-incident investigation. Without it, organisations cannot tell whether the model was misused, coerced or simply exposed to the wrong data. See the AI Security Platform Buyer's Guide.
Practical implication: Correlate prompt, retrieval and output telemetry so incident response can reconstruct what the model saw and did.
Threat narrative
Attacker objective: The attacker wants the model to expose sensitive information or perform actions outside the user's legitimate scope.
- Entry begins with a normal user prompt or an embedded instruction that reaches the model through a legitimate interface.
- Credentialed or authorised access to connected data sources lets the model pull in sensitive context, external tools or downstream systems.
- Escalation occurs when the prompt changes the model's behaviour, causing it to reveal hidden instructions, retrieve data beyond the user's intent or trigger unintended actions.
- Impact is data leakage, policy violation or misuse of connected systems without the attacker needing a traditional exploit chain.
Breaches seen in the wild
- Langflow Flodrix botnet 2025: Attackers used Langflow's unauthenticated code endpoint to dump AI servers' environment variables and enlist them in the Flodrix botnet.
- 12,000 secrets in LLM training data: Truffle Security found 11,908 live API keys and passwords hard-coded in web pages captured by Common Crawl, a dataset used to train LLMs.
Read and download The State of NHI & AI Agent Breach Report 2026, covering 200+ breaches impacting Non-Human Identities including AI Agents.
NHI Mgmt Group analysis
Generative AI security is a governance problem before it is a tooling problem. The article shows that the hardest failures arise when organisations let AI use scale faster than ownership, inventory and approval. That means the central question is who can authorise the model's data reach, tool reach and retirement, not which product sits in front of it. Practitioners should treat AI governance as the control plane for the entire deployment.
Prompt injection is a boundary failure, not just a content-filtering problem. Natural language becomes a control channel when user instructions and system instructions meet inside the same model context. That is why filtering alone is weak unless it is paired with clear instruction separation, scoped retrieval and constrained actions. The named concept here is instruction boundary drift: the point at which a model can no longer reliably distinguish policy from user text, and therefore needs external control. Teams should govern the boundary, not trust the model to infer it.
AI usage creates a new form of shadow IT, but with direct data and action consequences. Employees can adopt approved-looking tools before security has mapped the data classes, integrations and owners involved. That expands the attack surface through ordinary work, which is why inventory and approval workflows matter as much as detection. In identity terms, AI systems behave like high-reach service consumers that need explicit scope, review and revocation.
Runtime observability is the difference between containment and guesswork. Security teams cannot prove what happened if they only log the prompt or the final answer. They need traceability across retrieval, tool use and output so they can show whether the system saw restricted data, triggered an action or violated policy. That shifts AI security from periodic review to continuous control.
The right governance model is shared responsibility, but with clearer customer accountability than many organisations assume. Providers may secure models and infrastructure, yet the customer still controls inputs, permissions, use cases and compliance posture. That makes the security programme responsible for the AI's operational identity, including what it can access, how it is monitored and when it is retired. Practitioners should govern AI as an enterprise workload, not as a consumer feature.
From our research library:
- Organisations that describe themselves as confident in their AI deployment actually experience a 72% security incident rate, compared to 33% for those who remain cautious, according to the 2026 Infrastructure Identity Survey.
- 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: Agentic AI Security Policy Template
What this signals
Instruction boundary drift: generative AI security fails when the model can no longer distinguish policy from user text inside a shared context window. That creates a governance gap that classic web controls cannot close, because the risk appears as normal conversation rather than a malformed request.
Security teams should expect AI adoption to expand faster than formal review processes unless they build inventory, approval and monitoring into the deployment lifecycle from the start.
For practitioners
- Implement AI inventory and ownership controls Record every model, app, connector and data source in scope, and assign a business owner with security accountability for each one.
- Separate system instructions from user input Use fixed system prompts, strong delimiters and parameterised prompt structures so users cannot overwrite policy or retrieve hidden context.
- Restrict tool and data reach by use case Limit each AI deployment to the minimum documents, APIs and actions required for its intended function, then review those permissions regularly.
- Add prompt and output monitoring Log prompts, retrievals, tool calls and responses so security teams can detect injection attempts, leaked data and unauthorised actions.
- Use approval gates for higher-risk AI uses Route systems handling sensitive data or regulated decisions through security review before deployment, and require reapproval when scope changes.
Key takeaways
- Generative AI security fails most visibly at the boundary between legitimate use and hidden control assumptions, where normal prompts can become policy violations.
- The main evidence in the article is structural rather than numeric: unstructured input, broad integrations and opaque outputs create risks that perimeter tools cannot reliably interpret.
- Practitioners should govern AI scope, data access and runtime monitoring together, because separating them leaves the model free to act outside the intended control envelope.
Related NHI Mgmt Group resources: Agentic AI Security Policy Template · AI Agent Identity Security Buyer's Guide · AI Security Platform Buyer's Guide · AI Safety vs AI Security Guide
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 addresses the attack and risk surface, while NIST AI RMF sets the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST AI RMF | GOVERN — AI Governance and Accountability | The article centres on ownership, approval and accountability for AI deployments. |
| MANAGE — AI Risk Management | The article is about operationalising AI controls across deployment, monitoring and response. | |
| Recommendation — Establish governance, ownership and review gates for every AI deployment before it is allowed to reach users. Operationalise monitoring, incident response and lifecycle controls for AI systems with measurable risk. | ||
| OWASP Agentic AI Top 10 | ASI03 — Identity & Privilege Abuse | The article's key risk is AI systems acting with more access than intended through prompts and tools. |
| ASI01 — Agent Goal Hijack | Prompt injection can steer the model away from its intended task by overriding instructions. | |
| ASI02 — Tool Misuse | The article stresses risk from AI calling APIs, databases and external services in unsafe ways. | |
| Recommendation — Constrain agent identity, privilege and tool scope so a successful prompt cannot expand its authority. Test and harden systems against instruction override and goal hijack before deployment. Limit tool permissions and validate every action path an agent can invoke on behalf of a user. | ||
Key terms
- Generative AI Security: Generative AI security is the set of controls that protect generative models, their prompts, outputs, data, and connected systems from misuse, leakage, and manipulation. It covers access control, input validation, content filtering, monitoring, and identity governance for human users, NHI, and AI agents interacting through tools, APIs, and MCP.
- Prompt Injection (Agentic): An attack on applications built on large language models, where crafted text in a prompt or in content the model reads, such as a document, web page or email, overrides the intended instructions. OWASP lists it as LLM01:2025. It becomes most dangerous when an agent can call tools, because the injected instruction can run actions using the agent's own legitimate credentials.
- Shadow AI: Shadow AI is the use of AI tools, features and models inside an organisation without approval or visibility from IT, security or governance. Examples include personal accounts on public chatbots, browser extensions, AI features switched on in existing SaaS, and unsanctioned API keys. It becomes an identity problem when these tools use unmanaged tokens, service accounts or OAuth apps to reach company data.
- Large Language Model: A large language model is an AI system trained on large text datasets to generate and transform language based on statistical patterns. In identity security, its value depends on whether the output is accurate enough to support search, reporting, or analysis without introducing hallucination, leakage, or inconsistent results.
Deepen your knowledge
The NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, agentic AI identity and secrets management for practitioners building controlled enterprise deployments. It helps security and identity teams align access, ownership and lifecycle controls across the systems they already run.
Published by the NHIMG editorial team on November 25, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org