By NHI Mgmt Group Editorial TeamBased on Zenity: “Preventing AI Agents from Going Rogue: Zenity Collaborates with Microsoft Copilot Studio to Deliver Inline Protection Against Malicious Behavior” (September 8, 2025)

TL;DR: As Microsoft reports more than 230,000 organisations, including 90% of the Fortune 500, using Copilot Studio to build custom agents, Zenity’s analysis shows why unauthenticated inputs, tool chaining, and indirect prompt injection can turn workflow automation into data exposure risk. Inline, behavior-driven controls are becoming the governance baseline for AI agents.


At a glance

What this is: This analysis argues that AI agent governance has to move inline because agents that accept untrusted input and invoke tools can leak data or misuse access before post hoc controls can react.

Why it matters: IAM and security teams need to treat agent behaviour as an access-control problem, because autonomous tool use changes how authorisation, monitoring, and containment must work across NHI and agentic programmes.


Context

AI agents are software systems that can accept inputs, choose tools, and act against connected systems with far less human involvement than conventional automation. That changes the governance problem from static permissions to runtime behaviour, especially when agents can reach email, CRM, and other business applications.

The security gap is not just that agents exist. It is that they can be built quickly by non-specialists, connected to sensitive tools, and triggered by untrusted content before a human review step ever happens. For identity and access teams, that turns agent authorisation into an inline control problem rather than a post-execution audit problem.

Zenity's article frames Copilot Studio as a useful example of how broad agent adoption accelerates the need for runtime governance. The article's central claim is that behaviour-driven protection must sit inside the agent lifecycle, not around it.


Key questions

Q: What breaks when privileged AI agents can read untrusted input directly?

A: Prompt injection risk rises because the agent may treat user content as instruction instead of context. Once that happens, a malicious request can steer approval, reassignment, or data handling decisions without ever changing the agent's authorised role. The safe pattern is to sanitise untrusted input before any privileged step.

Q: Why do autonomous agents increase the risk of data leakage from business apps?

A: Because the agent can combine valid tool access with malicious or misleading instructions in the same runtime session. That means the attacker does not need to steal credentials if the agent already holds the right permissions. The risk is highest when agents can reach CRM, email, or other sensitive systems with write or export capabilities.

Q: How do security teams know if agent governance is actually working?

A: It is working only if the team can answer three questions quickly for any agent: what it can reach, what it did recently, and whether that behaviour matches intent. If any of those answers require manual reconstruction, governance exists on paper but not in operations.

Q: Who should own access decisions for AI agent secrets?

A: Access decisions should be owned by the identity and security function, with approval tied to the task and the actor's scope, not left implicit inside the developer workflow. That gives teams a way to preserve oversight while still supporting automation. If approval is unclear, the secret will drift into places that governance cannot reliably inspect.


Technical breakdown

Why indirect prompt injection turns tool-connected agents into data exfiltration paths

Indirect prompt injection occurs when malicious content is placed in an external input, such as an email or message, and the agent treats that content as instruction rather than untrusted data. The risk rises when the agent can call tools such as CRM systems, email, or other business apps, because the injected instruction can redirect legitimate capabilities toward attacker goals. This is not a model-only problem. It is a tool-orchestration problem in which the agent's runtime interpretation of content changes what actions are taken. If the agent can invoke tools on behalf of a workflow, the attack surface is the decision point itself, not just the endpoint.

Practical implication: classify inbound content as untrusted until the agent proves it is safe to act on it.

How unauthenticated triggers and public flows expand agent risk

When an agent is reachable through anonymous or weakly gated inputs, the actor interacting with the agent does not need a valid account to influence its behaviour. The article's scenario shows a public flow and unauthenticated chat inputs being enough to trigger an action that exposed sensitive CRM data. That matters because the security boundary moves from user identity to input handling and tool execution. Once the agent is embedded in a workflow, privilege misuse can happen even when the original user is outside the organisation. The control question becomes whether the trigger path itself is authorised, not just whether the backend system is protected.

Practical implication: treat every public trigger path as an authorisation surface, not just a user experience choice.

Why inline protection is different from monitoring after the fact

Inline protection intercepts tool invocation before the action completes, which is materially different from logging or alerting after the event. For agents, the highest-risk moment is the decision to call a tool with sensitive scope, because that is where exfiltration, privilege misuse, and unsafe side effects can still be stopped. Runtime controls can inspect intent, context, trigger provenance, and tool destination at the moment of execution. That is why behaviour-driven security is the relevant architectural pattern here. Traditional monitoring still matters, but once the agent has already acted, the governance failure has usually already become an incident.

Practical implication: place enforcement at tool invocation time if you need to stop harmful agent actions.


Threat narrative

Attacker objective: The attacker wants the agent to disclose sensitive business data or perform actions under the agent's own authority.

  1. Entry begins when an anonymous or untrusted input triggers an agent that is reachable through a public flow or unauthenticated chat channel.
  2. The malicious content is interpreted by the agent as actionable instruction, steering the agent toward a sensitive tool call or data lookup.
  3. The agent then invokes connected systems such as CRM or email with legitimate permissions, producing data exposure or unauthorised action without credential theft.

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

Inline agent protection is now a governance requirement, not a nice-to-have control layer. Agents that can accept untrusted input and invoke business tools create a runtime decision problem that post hoc review cannot reliably contain. The field should stop treating agent security as a logging and alerting exercise. The practitioner implication is that authorisation must be enforced at the point of tool use.

Autonomous tool use collapses the assumption that authorisation can be checked after action begins. That assumption was designed for workflows where access requests are stable long enough to be logged, reviewed, and certified. It fails when an agent can receive malicious input and execute a tool call in the same interaction. The implication is that identity governance for agents has to move from retrospective review to inline decision control.

Prompt injection is an identity problem when it changes what a privileged actor does with granted access. The issue is not only that the agent was manipulated. It is that the manipulated agent retained enough authority to turn instruction into impact. That makes least privilege incomplete unless tool scope, trigger provenance, and runtime intent are all part of the control model. The practitioner implication is that agent governance must include behavioural constraints, not just account provisioning.

Identity blast radius: the real unit of control is not the agent account alone but the set of tools it can reach when influenced at runtime. A lightly governed agent connected to email, CRM, and other business systems can become a cross-domain exposure path in a single conversation. That changes the procurement and governance conversation for agent platforms. Practitioners should evaluate how much damage an agent can do after a single compromised interaction.

Centralised visibility only works if it is paired with contextual enforcement. Seeing who built an agent and what it connects to is useful, but visibility does not stop a harmful invocation on its own. The article points to a governance model where observability, provenance, and enforcement operate together. The practitioner implication is to align agent administration with real-time policy enforcement, not dashboard review alone.

From our research library:

What this signals

Inline enforcement is the missing layer in many AI agent programmes. Security leaders should assume that the moment of risk is tool invocation, not model output or post-event logging. If an agent can be triggered by untrusted content, governance has to decide before the call is made, not after the data is already moving.

Programmes that allow business units to create agents with broad tool access will need stronger ownership, clearer approval boundaries, and runtime policy integration. Otherwise, the organisation ends up with an access model that looks controlled on paper but behaves like a distributed privilege expansion system in practice.


For practitioners

  • Constrain public trigger paths Remove unauthenticated or anonymous entry points for agents that can reach sensitive tools, and require verified identity for every workflow that can initiate external actions.
  • Enforce tool-level allowlists Limit each agent to the smallest set of tools, destinations, and data scopes required for its task, with separate controls for read and write operations.
  • Inspect tool invocation in real time Insert policy checks at the moment an agent requests a tool action, so risky combinations of input provenance, intent, and destination can be blocked before execution.
  • Trace agent ownership and change history Record who built the agent, who approved its connections, and which configuration changes expanded its reach, then review those records when behaviour changes unexpectedly.

Key takeaways

  • AI agents change identity governance because the dangerous event is often not authentication failure but authorised behaviour triggered by untrusted input.
  • The article's core evidence is that agents can be manipulated into exposing CRM data or taking unauthorised actions without credential theft or network compromise.
  • Inline controls at tool invocation time are the difference between containing agent misuse and discovering it only after the impact has already occurred.

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 sets the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10ASI02 — Tool MisuseThe article centres on agents being steered into unsafe tool calls.
ASI03 — Identity & Privilege AbuseThe article shows privilege being exercised through manipulated agent behaviour.
Recommendation — Constrain agent tool use so untrusted inputs cannot trigger high-risk actions. Limit agent privileges to the minimum scope needed for each workflow.
OWASP Non-Human Identity Top 10NHI-04 — Insecure AuthenticationUnauthenticated and anonymous triggers are a core exposure path in the scenario.
NHI-05 — Overprivileged NHIThe risk depends on agents retaining too much access to connected systems.
Recommendation — Require strong identity controls before any agent can initiate sensitive actions. Reduce agent access scopes so compromised behaviour cannot spread across systems.
NIST AI RMFMANAGE — AI Risk ManagementThe article is about governing agent behaviour inside an operational control loop.
Recommendation — Embed runtime AI risk controls into the agent lifecycle and operating model.

Key terms

  • Indirect Prompt Injection: Indirect prompt injection is an attack where malicious instructions are hidden inside content that an AI system reads later. The model may treat that content as context rather than as hostile input, which can influence tool use, data access, or workflow actions if controls are weak.
  • Inline Protection: A control pattern that evaluates and blocks risky behaviour at the moment an AI agent tries to act. It is the right model when the harm comes from runtime decisions, because logging after the fact does not stop data exposure, privilege misuse, or unsafe tool calls.
  • Agent Tool Call: A tool call is an execution request from an AI agent to read, write, run, or query something outside the model. In governance terms, each call is a permissioned action and should be treated like a privileged transaction, not a harmless prompt response.
  • Runtime Governance: Runtime governance is the set of controls that verify what a system or agent is actually doing after deployment. It combines monitoring, authorization checks, and access validation so teams can detect drift, misuse, or excessive privilege in motion rather than assuming build-time policy still holds.

Deepen your knowledge

NHI governance, agentic AI identity, and machine identity lifecycle are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are building or maturing an IAM programme, it is worth exploring.
NHIMG Editorial Note
Published by the NHIMG editorial team on June 11, 2026.
Updated on October 10, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org