By NHI Mgmt Group Editorial TeamBased on LEVO: “AI Security Business Narrative” (September 10, 2025)

TL;DR: Security for AI and AI for Security should be run as separate programmes that share an evidence bus, with policy at the boundary, schema-first outputs, provenance for retrieval, and continuous evaluation in CI and on shadow traffic, according to LEVO. The core shift is from model-call experimentation to routed systems with auditable controls, because the highest risk now sits where model text turns into tool action.


At a glance

What this is: This is an AI security analysis arguing that gateway policy, provenance, schema-first outputs, and continuous assurance are the controls that matter once model calls become routed workflows and agent actions.

Why it matters: It matters because IAM, PAM, and NHI teams now need to govern when AI systems can act, what they can touch, and how those decisions are evidenced across toolchains, approvals, and audit trails.


Context

AI security is shifting from isolated model prompts to routed systems that can retrieve data, call tools, and trigger actions. That changes the governance problem from output quality alone to boundary control, evidence, and rollback. For identity and security teams, the key issue is no longer just whether a model responds correctly, but whether an AI system can be trusted to hold, use, and release access in a controlled way.

The article frames this as an operational control problem: policy must sit at the gateway, provenance must follow the data and retrieval chain, and assurance must be continuous rather than periodic. That is a genuine identity and NHI concern because agentic systems behave like dynamic non-human identities when they can request context, consume credentials, and act through tools.


Key questions

Q: What breaks when AI agents connect directly to tools without a gateway?

A: Direct connections create fragmented secrets, inconsistent policies, and limited visibility into what the agent actually did. That makes it harder to revoke access quickly, investigate misuse, or prove control coverage, especially when multiple agents call multiple tools across different environments.

Q: Why do routed AI systems need provenance for retrieval and training data?

A: Because trust in the answer depends on trust in the sources. If corpora, indexes, or retrieval results cannot be signed, attributed, and revoked, the organisation cannot prove grounding, licensing, or consent. Provenance also supports rollback when disputed content enters a live workflow. Without it, accuracy and accountability fail together.

Q: How can organisations prove their AI controls are actually working?

A: Look for evidence that policy decisions are logged, sensitive prompts are being redacted or blocked when required, and approved AI interactions are traceable by identity and business context. Effective programmes produce audit-ready records, not just policy text. If the control cannot explain what happened in a session, it is not operational enough.

Q: What should teams do when high-impact AI actions need approval and traceability?

A: They should keep the approval logic, tool scope, and evidence trail in one governed path so decisions are reproducible. High-impact actions need explicit human-in-the-loop criteria, bounded credentials, and exportable traces that show who approved what, what the model saw, and what action was taken.


Technical breakdown

Gateway policy for model and agent calls

A gateway becomes the control point that sits between prompts, retrieval, tools, and downstream systems. It can enforce input and output policy, schema checks, budgets, approval gates, and trace export before an AI call reaches an effectful action. This matters because the security boundary is no longer the model itself. The dangerous transition is from generated text to tool invocation, where a malformed or manipulated response can create real change. In identity terms, the gateway is where delegated action should be constrained, recorded, and bounded by scope.

Practical implication: treat the gateway as the enforcement layer for AI-to-tool delegation, not as a logging afterthought.

Provenance for retrieval and training content

Provenance means being able to show where data came from, who signed it, and whether it is still authorised for use. For AI systems, that extends to corpora, index manifests, source IDs, and takedown workflows. When retrieval feeds model outputs, weak provenance creates both security and legal exposure because the system may rely on stale, disputed, or unlicensed content. Signed sources and visible source IDs turn grounding into a control, not a hope. This also reduces the chance that hidden or poisoned content silently shapes decisions.

Practical implication: require signed corpora and indexed source attribution wherever retrieval or training data influences outcomes.

Continuous assurance in CI and shadow traffic

Continuous assurance means evaluating AI behaviour repeatedly, not just at launch. The article points to evaluation packs in CI, shadow traffic tests, weekly safety scorecards, and replayable evidence bundles. That is important because AI systems drift as prompts change, tools change, retrieval sources change, and adversarial inputs evolve. Static QA cannot keep pace with routed systems that learn from live conditions. Continuous evaluation also makes governance auditable because the organisation can show what was tested, what failed, and what changed over time.

Practical implication: move AI control validation into delivery pipelines and runtime monitoring so drift is detected before it becomes operational loss.


Threat narrative

Attacker objective: The objective is to influence AI-driven tool use or decisioning so the system performs actions, reveals data, or amplifies errors in ways the organisation cannot easily trace or reverse.

  1. Entry occurs when hidden instructions, malformed inputs, or disputed retrieved content enter the AI workflow through chat, search, or automation channels.
  2. Credential or privilege abuse follows when the routed system turns model output into tool action, allowing delegated access to be used beyond the intended boundary.
  3. Impact appears as incorrect actions, leaked data, runaway costs, or untraceable decisions that cannot be quickly rolled back or explained.
  • DeepSeek database exposure 2025: An unauthenticated DeepSeek ClickHouse database exposed over a million log lines with plaintext chat history and API keys in 2025.
  • Langflow Flodrix botnet 2025: Attackers used Langflow's unauthenticated code endpoint to dump AI servers' environment variables and enlist them in the Flodrix botnet.

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

Gateway policy is the new control plane for AI security: once model output can trigger tools, the boundary becomes more important than the model. The article correctly shifts attention away from isolated prompt security and toward policy enforcement, schema validation, budgets, and approvals at the point of action. That is the right architectural move for organisations running routed AI workflows. Practitioners should govern AI where text becomes effect, not only where text is generated.

AI systems now behave like managed non-human identities: when an agent can retrieve context, call tools, and operate across sessions, it is functionally participating in identity and privilege decisions. That means access scope, approval logic, and traceability must be designed as part of the AI system itself. Traditional IAM controls still matter, but they are no longer sufficient on their own. Practitioners should treat agent privilege as a lifecycle problem, not a one-time configuration.

Provenance debt is becoming governance debt: organisations that cannot prove the origin, approval, and current validity of retrieval content will struggle to defend both accuracy and accountability. The article’s emphasis on signed corpora, source IDs, and takedown workflows names a real control gap in modern AI programmes. This is not just a quality issue. It is a trust and compliance issue that affects legal exposure, auditability, and board reporting. Practitioners should make source provenance a control requirement, not a nice-to-have.

Continuous assurance will replace periodic AI review as the defensible model: routed AI systems change too quickly for launch-only testing to remain credible. Continuous evaluation, shadow traffic, and replayable evidence are the only practical way to show that policy, grounding, and safety rules still hold after model, prompt, or retrieval changes. This aligns with a broader shift in security governance from point-in-time approval to living control evidence. Practitioners should expect auditability to depend on runtime evidence, not static documentation.

Schema-first control is the named concept that matters most: the article shows that malformed outputs become dangerous when they are allowed to reach effectful tools. Schema-first design turns output structure into an enforcement mechanism, not just a formatting preference. That lowers ambiguity, improves routing, and makes policy easier to apply consistently across apps and agents. Practitioners should standardise typed outputs before they standardise scale.

From our research library:

  • Only 23% of IT leaders were very confident in their organisation's ability to manage security and governance for GenAI deployments, according to a 2025 Gartner survey of 360 IT leaders.

What this signals

Schema-first AI is a governance pattern, not a formatting preference: organisations that treat structured outputs as the enforcement point will get better control over delegated action, rollback, and evidence. That matters for identity teams because the same non-human actor can now span retrieval, reasoning, and execution in a single workflow.

AI governance debt will accumulate where provenance is optional: if source attribution, index integrity, and takedown handling remain informal, audit and legal response will become slower as AI usage scales. Practitioners should expect provenance to sit alongside access control as a core governance requirement.

Runtime assurance needs to become part of the change process: delivery teams should expect CI checks, shadow traffic, and scorecards to replace one-time review as the normal control model. That is the only practical way to keep policy current when prompts, tools, and retrieval sources are changing weekly.


For practitioners

  • Implement gateway enforcement for AI actions Route every model or agent call through a gateway that can apply input and output policy, schema validation, budgets, approvals, and trace export before any effectful tool runs.
  • Adopt schema-first outputs for all AI paths Define typed outputs for free text, retrieval, and tool calls so malformed responses are blocked before they reach downstream systems or automation.
  • Require provenance for retrieved and trained content Sign corpora and indexes, attach source IDs to retrieval results, and maintain takedown workflows so teams can prove where model inputs came from and whether they remain authorised.
  • Move assurance into CI and runtime Run evaluation packs in delivery pipelines and on shadow traffic, then publish a weekly safety scorecard that records grounding, leakage, and structure failures.
  • Treat AI tool access as delegated privilege Set explicit approval criteria, scope limits, and human-in-the-loop controls for high-impact actions so AI systems cannot extend access beyond intended boundaries.

Key takeaways

  • AI security now depends on controlling the boundary where model output becomes tool action, because that is where most operational risk appears.
  • Provenance for retrieval and training content is essential when organisations need to defend source trust, licensing, and auditability.
  • Continuous assurance through CI, shadow traffic, and replayable evidence is the only credible way to manage drift in routed AI systems.

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 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10ASI03 — Identity & Privilege AbuseRouted agents using tools create delegated privilege and boundary-abuse risk in this article.
ASI02 — Tool MisuseThe article focuses on preventing model output from driving unsafe tool execution.
ASI04 — Agentic Supply Chain VulnerabilitiesSigned corpora, source IDs, and retrieval provenance address upstream content integrity.
Recommendation — Constrain agent privilege at the gateway and log every delegated tool action with policy evidence. Validate tool calls against schema and approval rules before any effectful action is executed. Require signed retrieval sources and manifests so compromised content cannot silently influence agent outputs.
NIST AI RMFGOVERN — AI Governance and AccountabilityThe article is fundamentally about AI governance, evidence, and accountability across the lifecycle.
Recommendation — Establish AI governance controls for policy snapshots, approvals, evidence retention, and board reporting.
NIST CSF 2.0PR.AA-05 — Access Permissions, Entitlements and AuthorizationsAI tool access and delegated action are permissions problems as much as model problems.
DE.CM-01 — Continuous MonitoringContinuous assurance and shadow-traffic evaluation map directly to runtime monitoring expectations.
Recommendation — Review AI tool entitlements so agents only receive the minimum access needed for each workflow. Monitor routed AI workflows continuously and feed failures into operational dashboards and response queues.

Key terms

  • Gateway Policy Enforcement: Gateway policy enforcement is the use of an ingress control point to apply security and governance rules before traffic reaches its destination. It matters in event-driven systems because it lets teams centralise authentication, schema checks, throttling, and logging for both APIs and brokers.
  • Provenance: Provenance is the traceable history of where a software artifact came from, who approved it, and what controls were applied along the way. In container security, provenance supports trust decisions because it links delivery steps to accountable identities and review points.
  • Continuous Assurance: A control model that checks identity and security conditions continuously instead of only during scheduled audits. It improves readiness in dynamic environments, but it requires clear thresholds, exception handling, and human accountability so automation does not outpace governance.
  • Schema-First Output: Schema-first output requires an AI system to produce structured, typed responses that can be validated before use. It reduces ambiguity, blocks malformed tool calls and prevents free-form text from being treated as executable instruction.

Deepen your knowledge

NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, agentic AI identity, and machine identity security. It helps security and identity practitioners build the control thinking needed for delegated AI action, evidence, and lifecycle governance.
NHIMG Editorial Note
Published by the NHIMG editorial team on September 6, 2026.
Updated on October 11, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org