By NHI Mgmt Group Editorial TeamDomain: AI SecuritySource: TruFoundryPublished July 15, 2026

TL;DR: AI safety vs AI security is not a semantic debate but a governance split between unintended harmful behaviour and hostile exploitation, according to TruFoundry's analysis. Enterprises that blur the two risk funding the wrong controls, while agentic systems make identity, permissions, telemetry, and auditability part of the same operating problem.


At a glance

What this is: This analysis separates AI safety from AI security and shows that enterprises need different testing, controls, and ownership for each, while still governing them through one lifecycle.

Why it matters: It matters to IAM and identity teams because AI systems now rely on models, APIs, tools, agents, and credentials, which means access governance and behavioural governance must be aligned rather than treated as separate projects.

By the numbers:

  • 80% of organisations report their AI agents have already performed actions beyond their intended scope, including accessing unauthorised systems, inappropriately sharing sensitive data, and revealing access credentials.

👉 Read TruFoundry's analysis of AI safety vs AI security for enterprise teams


Context

AI safety vs AI security is a practical distinction, not an academic one. Safety asks whether an AI system behaves as intended and avoids harmful outcomes, while security asks whether attackers, insiders, or compromised components can manipulate the system, its identities, or its connected resources. In enterprise deployments, both failures can occur at once, which is why separating them improves accountability and control design.

The identity dimension becomes visible as soon as models, agents, APIs, and toolchains share credentials or reach enterprise data. Once an AI gateway, agent framework, or retrieval layer can call systems on behalf of the business, permission scope and auditability matter as much as model quality. That is why the article's central point is typical of modern AI programmes: the technical stack is converging faster than governance ownership.

Agent governance gap: when an AI agent can act, call tools, and expose data, safety testing alone does not contain misuse. Teams need access policy, tracing, and scope control alongside behavioural evaluation. OWASP NHI Top 10 helps frame the control gaps that appear when agents gain too much reach.


Key questions

Q: How should security teams govern AI models that can call tools and access data?

A: Security teams should govern AI models as non-human identities with named owners, limited scope, short-lived credentials, and continuous authorization. The critical shift is to treat every tool call, data read, and update path as a privileged action that can be logged, revalidated, and revoked. Without that discipline, model risk becomes identity risk.

Q: Why do AI safety controls not replace AI security controls?

A: Safety controls reduce harmful or unintended model behaviour, but they do not stop attackers from abusing credentials, manipulating prompts, or exploiting connected tools. Security controls are needed to protect the model, its data, and its execution path from hostile interference. Enterprises need both because a safe model can still be compromised and a secure model can still behave badly.

Q: What do organisations get wrong about prompt injection?

A: They often treat it as a purely content-filtering problem. In practice, prompt injection is an instruction-trust problem that becomes serious when the chatbot can act on behalf of the organisation. The fix is not just blocking bad text. It is constraining what the model can access, what it can call, and what it can change.

Q: Should AI risk management be handled separately from security and identity programmes?

A: No. AI risk management should be integrated with security and identity programmes because AI tools often require sensitive data, system access, and delegated authority. If those permissions are not governed like other privileged access, AI becomes another pathway for data exposure, misuse, or uncontrolled automation.


Technical breakdown

AI safety testing vs AI security testing

AI safety testing looks for harmful or unintended model behaviour, such as bias, toxic output, refusal failures, or drift from approved goals. AI security testing looks for hostile manipulation, including prompt injection, credential abuse, tampered data, and compromised toolchains. The methods differ because the evidence differs: red-teaming, benchmark comparison, and human review fit safety, while penetration testing, access review, and supply chain inspection fit security. Mature programmes treat both as lifecycle controls, not one-time checks.

Practical implication: define separate acceptance criteria for safety and security before deployment, and keep both in the release gate.

Why agents turn safety into an identity problem

Agents complicate AI governance because they do more than generate text. They plan actions, invoke tools, and can persist across workflows, which means the system now has an operational identity with permissions and reach. If that identity is overprivileged, a safety issue can become a security incident, and an attack can become a workflow-level compromise. This is where RBAC, tracing, and least privilege become AI controls rather than just infrastructure hygiene.

Practical implication: inventory agent permissions the same way you inventory service accounts and cloud workloads.

Prompt injection, shared telemetry, and tool abuse

Prompt injection succeeds because the model cannot always distinguish trusted instructions from malicious ones hidden in inputs or retrieved content. Shared telemetry matters because the same log stream can reveal unsafe outputs, suspicious tool calls, and policy violations that indicate either a safety or security failure. When telemetry is fragmented across model, gateway, and platform teams, investigations slow down and containment decisions lose context. In practice, the control surface spans inputs, permissions, tool calls, and audit logs.

Practical implication: centralise telemetry across model, gateway, and tool layers so one incident view covers behaviour and abuse.


Threat narrative

Attacker objective: The attacker wants to redirect an AI system's legitimate capability into unauthorised access, data exposure, or harmful downstream action.

  1. Entry occurs when malicious instructions are embedded in prompts, retrieved documents, or connected content that the model treats as trusted input.
  2. Escalation follows when the model or agent complies with the hostile instruction and uses its assigned permissions to call tools or expose data.
  3. Impact occurs when the manipulated workflow reaches enterprise systems, leaks sensitive information, or performs unauthorised actions at scale.

NHI Mgmt Group analysis

AI safety and AI security are different governance problems that share infrastructure but not accountability. Safety teams are judging whether the system behaves acceptably, while security teams are judging whether it can be manipulated or abused. Collapsing those questions into one programme leaves one failure mode under-governed. The right model is joint ownership with separate control objectives, especially where models, agents, and tools share an execution path.

Agentic AI creates a new identity layer that most enterprise governance models still undercount. Once an AI system can plan and execute tool calls, it behaves like a workload identity with action rights, not just a model endpoint. That makes permissions, traceability, and scope control first-class requirements for AI programmes. The field should treat agent identity as a governance object, not a side effect of deployment.

Prompt injection is really a control-plane problem wrapped inside a content problem. The exploit succeeds when hostile instructions cross trust boundaries and the system lacks the policy, filtering, and tracing needed to stop them from reaching tools or data. That means safety testing alone cannot contain the risk, because the issue is not only what the model says but what the surrounding platform lets it do. Practitioners should read this as a signal that AI gateways are becoming control points, not just traffic managers.

Shared telemetry is the practical bridge between AI safety and AI security. The same evidence stream can show policy violations, abnormal tool use, and behavioural drift, which makes it central to both detection and accountability. When organisations split observability across product and security teams, they delay investigation and lose provenance. The field is moving toward unified monitoring because fragmented evidence no longer matches the speed of agent-driven workflows.

Identity governance must extend into AI operations if enterprises want durable control. Access reviews, least privilege, and lifecycle discipline still matter, but they now need to cover agent permissions, connected tools, and retrieval sources. This is where agentic AI identity sprawl becomes a useful concept: every new agent, connector, and delegated action expands the governance surface. Practitioners should treat that expansion as an IAM programme issue, not only an AI architecture concern.

What this signals

AI governance teams should expect the control conversation to shift from model behaviour alone to delegated execution rights. Once agents can call tools, access data, and persist across workflows, identity becomes a core enforcement layer rather than an implementation detail. NIST AI 600-1 Generative AI Profile is useful here because it reinforces governance, testing, and accountability as operational controls, not just policy language.

Agentic AI identity sprawl: every new agent, connector, and tool permission expands the enterprise control surface even when the model itself has not changed. That means future programmes will need inventories that join model risk, credentials, and data reach in one view. Teams that can only assess prompt quality will miss the larger issue of delegated access.

Security leaders should prepare for more incidents where behavioural anomalies and access misuse appear together. The operational question will no longer be whether an AI output was unsafe in isolation, but whether the system had the right to act on that output at all. That is why unified telemetry and governed gateways will matter more in incident response than model tuning alone.


For practitioners

  • Define separate AI safety and AI security control owners Assign one set of owners to behavioural risk, alignment testing, and harmful output review, and another to access control, injection resistance, credential governance, and attack simulation. Keep the handoff explicit in the release process.
  • Inventory every agent permission and tool path Map which agents can call which tools, which data sources they can reach, and which credentials they inherit. Review that map the same way you review privileged service accounts and high-risk integrations.
  • Centralise tracing across model, gateway, and tools Log prompts, retrieved context, tool calls, policy decisions, and output events in one correlation layer so incidents can be reconstructed end to end. Without that evidence, it is difficult to separate unsafe behaviour from hostile interference.
  • Test against both harmful behaviour and hostile manipulation Run red-team scenarios for bias, refusal failures, and hallucination as well as prompt injection, malicious retrieval content, and credential leakage. Use different pass-fail criteria for each control family.

Key takeaways

  • AI safety and AI security solve different problems, so treating them as one discipline creates governance gaps.
  • Agentic systems make identity, permissions, and traceability part of AI security, not just platform plumbing.
  • Enterprises need separate testing and ownership for behaviour, access, and abuse, but they must still govern all three through one lifecycle.

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

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10Prompt injection and excessive agency are central to this article.
OWASP Non-Human Identity Top 10NHI-03Agent permissions and credential governance mirror NHI overprivilege and lifecycle risks.
NIST AI RMFGOVERNThe article is fundamentally about ownership, accountability, and control boundaries.
NIST SP 800-53 Rev 5AC-6Least privilege is directly relevant to agent access to tools, data, and enterprise systems.
NIST CSF 2.0PR.AC-4Access management is the practical bridge between AI security and identity governance.

Map agent controls to OWASP Agentic AI risks and gate tool access, tracing, and delegation before release.


Key terms

  • AI Safety: AI safety is the discipline of preventing an AI system from taking unintended or harmful actions on its own. It focuses on the behaviour the system generates, even when no external attacker is involved. For identity teams, safety is about limiting what the agent can do once it is already operating.
  • AI security by design: AI security by design means building security, privacy, and access controls into AI systems from the start instead of adding them after deployment. In practice, it combines data governance, human oversight, documentation, and continuous monitoring so that model behaviour is auditable and bounded.
  • Agentic AI Identity: The complete set of credentials, permissions, and governance controls applied to an autonomous AI agent — covering authentication, authorisation, action logging, and access revocation. Distinct from traditional NHI because agent identities are often ephemeral, delegated, and multi-hop.
  • 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.

What's in the full article

TruFoundry's full article covers the operational detail this post intentionally leaves for the source:

  • Side-by-side testing methods for AI safety and AI security across production workflows.
  • Examples of agent gateway enforcement for RBAC, timeouts, and tracing in connected systems.
  • Operational guidance for combining prompt filtering, monitoring, and access control across models and tools.
  • Comparisons between safety reviews, security simulations, and lifecycle governance checkpoints.

👉 TruFoundry's full article covers the testing methods, control examples, and governance distinctions in more operational detail.

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 who need to govern access across modern systems. It gives identity and security teams a common language for controlling delegated access, lifecycle discipline, and auditability.
NHIMG Editorial Note
Published by the NHIMG editorial team on August 20, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org