By NHI Mgmt Group Editorial TeamDomain: AI SecuritySource: Obsidian SecurityPublished October 23, 2025

TL;DR: AI agents introduce prompt injection, model inversion, and memory poisoning risks that traditional security tools cannot reliably detect, according to Obsidian Security. As enterprise deployments expand, security teams need identity-aware testing, continuous monitoring, and MLOps-integrated governance before agent behaviour outpaces control coverage.


At a glance

What this is: This article argues that enterprise AI agents need a dedicated security framework because their autonomous behaviour, multi-system access, and probabilistic outputs create attack paths that conventional tools miss.

Why it matters: It matters because IAM, PAM, and security architecture teams must treat AI agents as governed identities with access, privileges, and auditability, not as ordinary software components.

By the numbers:

👉 Read Obsidian Security's framework for securing enterprise AI agents


Context

AI agent security is becoming a governance problem because agents do not behave like fixed applications. They interpret instructions, reach into data sources, and act across systems in ways that expand the attack surface and complicate access control, especially when agents inherit human-style permissions without human-style oversight.

The core issue is not whether AI agents can be useful. It is whether enterprises can define, test, monitor, and revoke agent access with enough precision to prevent prompt manipulation, overreach, and data leakage. For identity teams, that means treating agent access as a lifecycle problem with explicit ownership, review, and audit requirements.


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 agents complicate existing IAM and PAM controls?

A: AI agents complicate IAM and PAM because they often inherit delegated credentials, operate across multiple systems, and keep acting after the initial approval moment has passed. Human session assumptions, periodic reviews, and static privilege models do not reflect that behaviour. The result is a governance gap between what was granted and what the agent can actually do.

Q: What breaks when prompt injection is not governed like an access problem?

A: The organisation may treat malicious text as a harmless message, even though it can steer an agent into exposing data or taking privileged actions. Prompt injection is dangerous because it turns untrusted content into a control plane for behaviour. Teams need policy and authorisation checks around outputs, not just message filtering.

Q: How can organisations tell whether their AI security model is actually working?

A: They should test whether the control stack can explain who acted, what data was touched, and what purpose the action served. If those three signals cannot be correlated in one incident view, the model is likely monitoring access without governing behaviour. That is a visibility gap, not a complete AI security posture.


Technical breakdown

Why AI agent attack surfaces expand beyond traditional applications

AI agents combine natural language interaction, tool use, and runtime decision-making, which means their security boundary is not just the application code. The real attack surface includes prompts, retrieved context, memory stores, API connections, and the permissions attached to downstream systems. A malicious instruction can redirect behaviour without exploiting code in the usual sense. That makes classic application security controls necessary but incomplete, because they were built to validate software inputs, not to govern adaptive decision paths or tool invocation. In practice, agent security must account for how identity, context, and external data sources shape each action.

Practical implication: inventory every tool, data source, and privilege an agent can reach before it is allowed into production.

How prompt injection and memory poisoning change the control model

Prompt injection works by hiding malicious instructions inside content the agent treats as trustworthy, such as user input, documents, or retrieved web content. Memory poisoning targets the agent’s long-lived context or knowledge layer, so compromised state can influence later decisions even after the original input is gone. These are not simple malware patterns. They are control-plane attacks on interpretation and recall. The security failure is that trust is extended to content that has not been authenticated as policy-safe. That shifts the defensive problem from blocking a single exploit to validating every instruction source, every stored memory item, and every retrieval path used by the model.

Practical implication: separate trusted policy instructions from untrusted content and continuously validate what the agent can remember or retrieve.

Why identity and access controls must be embedded into MLOps

AI agent security frameworks only scale when they are embedded into CI/CD and MLOps, because agent permissions and integrations change as fast as model versions do. If access is provisioned outside the deployment pipeline, teams lose lineage, approval history, and the ability to correlate model changes with security outcomes. This is where identity governance becomes central: each agent, connector, token, and service account needs ownership, scope, expiry, and revocation rules. Without that linkage, audit trails tell you that an agent changed, but not whether its access changed with it.

Practical implication: bind agent deployment to identity lifecycle controls so permissions, secrets, and audit logs move together.


Threat narrative

Attacker objective: The attacker wants to steer the agent into revealing data, misusing privileges, or executing actions that create broader business and compliance damage.

  1. Entry occurs when a malicious prompt, poisoned retrieval source, or compromised integration feed is accepted as valid context by the agent.
  2. Credential access or privilege abuse follows when the agent uses inherited permissions, API tokens, or service accounts to reach systems it was never meant to touch.
  3. Impact appears when the agent leaks sensitive data, executes unsafe actions, or amplifies the compromise across connected workflows and downstream applications.

NHI Mgmt Group analysis

AI agents are becoming governed identities, not just software workloads. Once an agent can decide when to act, what tool to call, and which data to retrieve, the governance problem shifts from application security to identity security. The control question becomes who or what is allowed to speak and act on behalf of the organisation. That is why IAM, PAM, and NHI governance must converge around agents that hold credentials, access tokens, and delegated permissions.

Prompt injection creates a trust boundary failure, not merely a content moderation problem. The vulnerability is that untrusted input can alter agent behaviour after it has passed traditional application checks. This is why agent security needs policy separation, retrieval controls, and monitored execution boundaries, not only prompt filtering. The practitioner conclusion is that every external input source must be treated as potentially actionable.

AI governance debt is accumulating faster than most enterprises can absorb it. The article points to a familiar pattern: visibility, policy, and monitoring arrive after deployment, when agent sprawl is already embedded in workflows. That creates a lag between operational adoption and governance maturity. The lesson for the market is that agent governance will increasingly be measured by lifecycle control, not by model capability.

Continuous testing is now a prerequisite for AI security assurance. Static assessments cannot capture how agents behave when prompts, memory, tools, and permissions interact in live environments. Security teams should therefore assume that an untested agent is an ungoverned agent. The practical conclusion is that security validation must become a repeatable operational control, not a one-time review.

Runtime access scope is the decisive control variable for agent risk. When an agent can access account data, backend APIs, and workflow systems, the blast radius is determined by privilege scope rather than model size. That makes least privilege, expiry, and auditability the central governance levers. Practitioners should measure agent security by how tightly access is bounded in production.

What this signals

Agent governance will increasingly be judged on lifecycle control, not on model sophistication. Security leaders should expect auditability, revocation, and bounded permissions to become baseline expectations for any AI system that can call tools or reach sensitive data. The programmes that win are the ones that can prove who owned the agent, what it could access, and when those permissions changed.

The practical signal for IAM and PAM teams is that AI agents should be folded into existing identity governance processes now, not after a breach or regulator inquiry. That means lifecycle review, secret management, and access logging need to follow the agent wherever it executes, including MLOps and integration layers. CSA MAESTRO agentic AI threat modeling framework and the NIST AI Risk Management Framework both reinforce this governance direction.


For practitioners

  • Map every agent to a named owner and access scope Assign a business and technical owner to each AI agent, then document its data sources, tools, service accounts, and downstream permissions. Revoke or redesign any agent that cannot be tied to a clear lifecycle and accountability path.
  • Gate agent deployment through CI/CD and MLOps Require security tests, approval checks, and permission validation before an agent reaches production, and repeat those checks whenever the model, prompt set, retrieval layer, or integration tokens change.
  • Separate trusted policy from untrusted content Keep system instructions, policy rules, and operational memory isolated from user-provided text and external documents so prompt injection has less opportunity to alter execution paths or tool use.
  • Track agent data access and actions centrally Log which records, APIs, and systems each agent touches, then correlate those events with identity context, token use, and change history so investigations can reconstruct both intent and impact.

Key takeaways

  • AI agents create a distinct governance problem because their access, memory, and runtime decisions can all become attack surfaces.
  • The evidence suggests organisations are already seeing scope creep, blind spots, and policy gaps in agent deployments.
  • Identity lifecycle controls, continuous testing, and production monitoring are now core requirements for scalable agent security.

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 ATLAS 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 10Prompt injection, tool misuse, and memory poisoning are central agentic AI risks in this article.
NIST AI RMFMANAGEAgent governance, monitoring, and remediation align with AI risk treatment and oversight.
MITRE ATLASTA0006 , Credential Access; TA0004 , Privilege EscalationThe article discusses adversarial manipulation that leads to credential abuse and higher privilege use.
NIST CSF 2.0PR.AA-01Agent access management and monitoring support identity-aware security governance.
NIST SP 800-53 Rev 5AC-6Least privilege is directly relevant where agents can reach multiple systems and sensitive data.

Map agent abuse scenarios to ATLAS tactics and test for credential theft and privilege escalation.


Key terms

  • AI Agent Security KPI: A measurable indicator used to show whether security controls for AI agents are working in production. Unlike a simple compliance metric, it should tie discovery, monitoring, enforcement, or remediation to an observable result that helps a team decide what to harden, block, or investigate next.
  • 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.
  • Memory Poisoning (ASI06): An attack where malicious content is injected into an AI agent's memory or context, causing it to alter its behaviour in subsequent tasks — potentially exfiltrating secrets, escalating privileges, or acting against its intended purpose.

What's in the full article

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

  • Testing patterns for prompt injection, model inversion, and memory poisoning across real agent workflows
  • Framework comparisons covering OWASP, NIST AI RMF, MITRE ATLAS, and ISO 42001 in more implementation detail
  • Integration guidance for CI/CD, MLOps, and security orchestration workflows at enterprise scale
  • Vendor evaluation criteria for open-source, commercial, and cloud-based AI security testing tools

👉 The full Obsidian Security post expands on testing methods, workflow integration, and vendor selection criteria.

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 bring identity discipline to emerging agentic AI and access-driven architectures.
NHIMG Editorial Note
Published by the NHIMG editorial team on August 15, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org