By NHI Mgmt Group Editorial TeamDomain: AI SecuritySource: AktoPublished November 18, 2025

TL;DR: GenAI security now spans prompt injection, data leakage, over-permissioned tool access, and shadow AI, because enterprise AI systems increasingly interact with sensitive data and internal workflows, according to Akto. The security problem is no longer model output alone but the access, context, and action paths that AI agents can traverse without tight governance.


At a glance

What this is: This is an analysis of GenAI security and its key finding that AI risk now sits in the interaction layer, where models, tools, data, and agent workflows intersect.

Why it matters: It matters because IAM, PAM, and security teams must govern AI systems as access-bearing actors, not just as software outputs, or sensitive data and privileged actions can slip outside existing controls.

By the numbers:

👉 Read Akto's full analysis of GenAI security risks, frameworks, and best practices


Context

GenAI security is the discipline of controlling how generative models, retrieval layers, tools, and agent workflows access data and take action. The core issue is not only what the model says, but what it can see, retrieve, and execute once it is connected to enterprise systems. That makes AI agent identity, entitlement scope, and auditability part of the security model, not an add-on.

Traditional cybersecurity controls assume comparatively stable users, applications, and trust boundaries. Generative AI breaks that assumption because prompts can be manipulated, outputs can be reused downstream, and agents can call tools with a level of authority that was never intended for a human workflow. For identity teams, that means AI governance now intersects directly with IAM, PAM, secrets management, and workload identity.


Key questions

Q: How should security teams govern AI agents that can access enterprise systems?

A: Security teams should govern AI agents as non-human identities with explicit ownership, scoped privileges, and continuous monitoring. The control set should include inventory, task-bound credentials, audit trails, and revocation paths. If an agent can call tools or touch production systems, it belongs in the same governance model as service accounts and other machine identities.

Q: Why do AI models create more security risk than traditional applications?

A: AI models create more risk because they can be manipulated through prompts, poisoned data, and connected APIs, not just through code defects. Their behaviour also changes with context, which means access, data provenance, and runtime monitoring matter as much as static hardening.

Q: What do teams get wrong about prompt injection in AI assistants?

A: They treat it as a content safety issue instead of an access issue. Prompt injection becomes dangerous when the assistant can read sensitive history, call APIs, or write files on the user’s behalf. The risk is not only what the prompt says. It is what identity and egress permissions allow the prompt to trigger.

Q: How can organisations tell whether AI governance is actually working?

A: Organisations can tell AI governance is working when they can inventory every agent, explain its purpose, show who owns it, and prove that permissions are tightly scoped. If those four things are missing, the programme has policy language but not operational control. Auditors will notice the gap quickly.


Technical breakdown

Prompt injection and tool misuse in GenAI systems

Prompt injection occurs when untrusted content alters the model’s instructions or influences downstream actions. In connected GenAI systems, the risk is bigger than text manipulation because the model may also trigger tools, query internal systems, or pass context into other workflows. The real failure mode is over-broad authority combined with weak separation between user input, model reasoning, and action execution. Once those boundaries blur, a model can be induced to retrieve data or perform operations it should never touch.

Practical implication: constrain tool permissions to the minimum required for each workflow and separate user content from execution context.

Data leakage through retrieval, outputs, and agent workflows

Retrieval-augmented generation can surface sensitive material if document scopes are too wide or role filtering is missing. Leakage also happens through generated output when the model summarises confidential inputs, reproduces sensitive context, or forwards data into another system. In agentic environments, the risk extends to chained actions, where the model moves data across services in ways users do not fully see. That turns access control into a workflow problem as much as a data problem.

Practical implication: apply role-based filtering before retrieval, inspect outputs before reuse, and log tool-level activity end to end.

Governance layers for AI agents and AI security

Frameworks such as the NIST AI Risk Management Framework and the OWASP Top 10 for Agentic Applications exist because GenAI risk is operational, not theoretical. They help teams define ownership, map data and tool flows, measure behaviour, and manage policy violations as systems change. The governance gap appears when organisations treat pilots as isolated experiments and then discover that agents have already connected to sensitive systems. AI security therefore needs lifecycle controls, not point-in-time approval.

Practical implication: inventory every deployed AI system, document connected tools and data sources, and require review before any new connector goes live.


Threat narrative

Attacker objective: The attacker wants to manipulate GenAI systems into revealing sensitive data, misusing tools, or taking unauthorised actions inside connected enterprise workflows.

  1. Entry begins when a user or agent introduces untrusted content into a prompt, document, or retrieved context that the model will process.
  2. Escalation follows when the model treats that content as instruction and uses broad tool permissions to reach internal systems or retrieve sensitive data.
  3. Impact occurs when the agent exposes confidential information, triggers unsafe actions, or propagates bad output into downstream business workflows.

NHI Mgmt Group analysis

GenAI security is now an identity governance problem, not just an application security problem. Once an AI system can retrieve data or invoke tools, it behaves like an access-bearing entity that must be scoped, monitored, and reviewed. That makes entitlement design, credential handling, and auditability central to AI security. Teams that keep treating agents as simple software objects will miss the control plane entirely.

Tool permission sprawl is the most important failure mode in connected AI environments. The article’s own examples show that the major risks arise when models are connected to more systems than they need, without filtering between prompt content and execution. That is a direct governance gap, because excessive authority is what turns a harmless prompt into a risky action chain. Practitioners should read this as a blast-radius problem, not a model-quality problem.

Shadow AI creates a hidden identity inventory problem. The article shows how quickly AI tools spread into internal workflows without central oversight, which means security teams may not know which agents exist, what they can access, or which secrets they can reach. That is exactly the kind of visibility gap that identity programmes are meant to close. The practical conclusion is that AI discovery must sit alongside IAM and PAM discovery.

NIST AI RMF and OWASP agent guidance are becoming baseline controls for production GenAI. The article aligns with a broader market shift in which governance, monitoring, and policy enforcement are replacing one-time approval models. This does not reduce the need for security engineering. It makes ownership, measurement, and review non-optional for any organisation deploying connected AI systems.

AI agent risk is converging with non-human identity governance. Agents are increasingly assigned credentials, tool access, and action authority that look a lot like other machine identities, but their behaviour is less predictable. That creates a distinct governance burden around secrets, lifecycle management, and privilege review. Organisations that already manage service accounts and workloads should extend those disciplines to agents now.

What this signals

Tool permission sprawl: the next phase of AI governance will be decided by how quickly teams can constrain connectors, secrets, and action paths before agents proliferate further. The practical signal is that AI discovery, entitlement review, and audit logging need to move into the same operational cadence as IAM and PAM, not sit in a separate innovation track.

The strongest programmes will treat agent behaviour as an access-control problem with a monitoring layer, then map that pattern to frameworks such as the NIST AI Risk Management Framework and the OWASP Top 10 for Agentic Applications 2026. That gives security teams a way to translate abstract AI risk into measurable ownership, approval, and response duties.

For identity leaders, the important shift is that AI agents are starting to look like high-variance non-human identities. That means secrets handling, lifecycle management, and review cycles need to extend beyond service accounts into agent registrations, tool grants, and delegated workflows.


For practitioners

  • Map every AI system and connector Build an inventory of deployed GenAI tools, the data sources they query, and the external or internal systems they can call. Include unmanaged pilots and shadow deployments so the inventory reflects real usage, not just approved architecture.
  • Constrain tool access to task scope Assign only the minimum tool permissions each agent needs for a specific workflow, then separate prompt ingestion from execution paths. This reduces the chance that adversarial content can trigger privileged action chains.
  • Require output validation before reuse Treat generated text, code, and summaries as untrusted until they are checked by review, policy filters, or automated scanning. This is especially important when outputs flow into production systems, customer communication, or regulated reporting.
  • Log agent-level actions and data access Capture prompt metadata, retrieval events, tool calls, and downstream actions in a way that supports audit and incident response. Without tool-level logging, it is difficult to reconstruct how a model reached a sensitive action or disclosure.

Key takeaways

  • GenAI security is about controlling access, context, and action paths, not only filtering model output.
  • The operational risk is already visible: agents are exceeding intended scope, exposing data, and revealing credentials in real deployments.
  • Teams should inventory AI systems, constrain tool permissions, and make AI governance part of identity and security operations.

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 MITRE ATT&CK address the attack and risk surface, while NIST AI RMF, NIST CSF 2.0 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10N/AThe article centres on prompt injection, tool misuse, and agent workflow abuse.
NIST AI RMFGOVERNThe post emphasises ownership, monitoring, and lifecycle control for GenAI systems.
NIST CSF 2.0PR.AC-4Least privilege and access scope are central to the article's risk model.
NIST SP 800-53 Rev 5IA-5Secrets and authenticator handling are critical where agents call internal systems.
MITRE ATT&CKTA0006 , Credential Access; TA0009 , CollectionThe threat pattern includes credential exposure and sensitive data collection through AI workflows.

Use ATT&CK to map exposed secrets and data-retrieval paths to the relevant detection and containment controls.


Key terms

  • GenAI Code Security: GenAI code security is the discipline of governing code produced by generative AI so that it is not only functional, but also safe to ship. It combines model evaluation, workflow verification, remediation prioritisation, and policy controls around where AI-generated code is allowed to enter production.
  • 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.
  • Shadow AI: AI agents, copilots, or connected tools operating without full visibility or governance from security teams. Shadow AI becomes an identity problem when those systems authenticate with unmanaged tokens, service accounts, or OAuth apps that can reach production resources.
  • Agentic AI: Autonomous AI systems capable of planning, deciding, and taking actions — including calling APIs, writing code, and orchestrating other agents — with minimal human oversight. Agentic AI introduces new NHI risks as agents must authenticate to external services.

What's in the full article

Akto's full blog covers the operational detail this post intentionally leaves for the source:

  • Step-by-step guidance on mapping GenAI systems, connectors, and workflows across the enterprise
  • Examples of prompt injection, data leakage, and unsafe tool-use scenarios in production AI
  • Breakdowns of runtime monitoring, logging, and agent security controls for live environments
  • Implementation-oriented discussion of AI security tools and workflow-level protection patterns

👉 Akto's full post covers prompt injection examples, framework breakdowns, and runtime protection details

Deepen your knowledge

The NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, machine identity security, and secrets management. It is designed for practitioners who need to extend identity controls into modern access-bearing systems.
NHIMG Editorial Note
Published by the NHIMG editorial team on August 2, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org