TL;DR: Azure OpenAI prompt-injection controls cover only a boundary of the agent stack, with agent-level guardrails applying to Foundry Agent Service and model-side settings not merging into them, according to ARMO. The practical issue is not classifier quality but control scope: many production agents still execute outside the intervention points teams assume are active.
At a glance
What this is: ARMO argues that Azure OpenAI prompt injection controls are real but scoped too narrowly for many production agents, especially custom orchestrators and agents whose guardrails do not include tool-plane inspection.
Why it matters: IAM and security teams need to treat agent guardrails, workload identity, and runtime telemetry as one control plane because a trusted identity can still be coerced into harmful actions when prompt controls stop at the wrong boundary.
By the numbers:
- When AWS credentials are exposed publicly, attackers attempt access within an average of 17 minutes, and as quickly as 9 minutes in some cases.
- Only 44% of developers are reported to follow security best practices for secrets management, exposing a significant developer behaviour gap.
👉 Read ARMO's analysis of Azure OpenAI prompt injection guardrail scope
Context
Prompt injection is a control-boundary problem, not just a model-quality problem. In Azure OpenAI, the key question is not whether a classifier can spot malicious text, but which agent paths it can actually inspect, whether tool calls are scanned, and whether model-side settings survive assignment to an agent. For teams building AI agents, that difference determines whether the security control is merely visible or actually effective.
The identity dimension matters because these agents act through managed identities, role assignments, key vault access, and network egress that are already legitimate. That means a successful injection often does not look like an unauthorised login or a broken permission check. It looks like a trusted workload using valid access in an unintended way, which is exactly where IAM, PAM, and NHI governance need to meet AI runtime controls.
Key questions
Q: How should security teams govern AI agents that call APIs instead of using a UI?
A: Security teams should govern AI agents by treating each callable action as a scoped entitlement, not as a general application login. The key control is to limit which APIs, data sources, and write actions the agent can chain together in one session. That keeps machine-paced behaviour inside a reviewable boundary instead of relying on human-style session assumptions.
Q: Why do prompt injection controls fail when agents inherit the wrong guardrail scope?
A: They fail because the control plane you configured may not be the control plane the agent actually uses. In Azure OpenAI, agent-level guardrails can replace model-side settings, and some intervention points exist only for agents. If the policy does not match the runtime path, the protection is narrower than teams expect.
Q: What do teams get wrong about model-side prompt filters and agent security?
A: They assume content filtering alone secures the full agent lifecycle. In practice, filters only reduce risky input at the boundary, while the dangerous part often happens later through valid tool use, valid identity, and approved network reach. Runtime behaviour and delegated access need separate review.
Q: How do organizations prove AI agent controls are actually working?
A: Organizations prove control effectiveness by showing which agents accessed which data, what actions they executed, and whether those actions stayed within approved task boundaries. Useful evidence includes logs, policy decisions, anomaly alerts, and review records. Without that chain, governance is mostly declarative.
Technical breakdown
Why Azure OpenAI agent guardrails do not merge with model controls
Azure OpenAI treats model guardrails and agent guardrails as separate control planes. The model side evaluates user input and output, while the agent side can also inspect tool calls and tool responses when those controls are explicitly available. Microsoft documents that agent-level guardrails fully replace, rather than merge with, model-side settings. That means a stricter model configuration can disappear once an agent-specific guardrail is assigned. The result is a boundary problem: teams think they are hardening one policy set, but the actual runtime path may be governed by a different and narrower one.
Practical implication: Validate the effective guardrail on each agent, not the policy you intended to inherit.
How prompt injection reaches tool use through legitimate execution
Prompt injection works because the model is still making authorised decisions inside an authenticated workload. If malicious instructions enter the context window, the agent may call tools, read secrets, or send data through APIs it is allowed to use. That does not require privilege escalation in the classic sense. The problem is coercion: valid identity, valid permissions, invalid intent. In Azure deployments, that often includes managed identity federation, Key Vault access, storage access, and approved egress paths. A control that only checks whether access is allowed will miss the misuse if it does not understand the action sequence.
Practical implication: Pair identity authorisation with execution monitoring that can spot deviations from normal agent behaviour.
Why behavioural baselines matter when content filters stop early attacks
Content inspection reduces exposure at the conversation edge, but it cannot explain whether the agent behaved normally after the prompt was accepted. That is why runtime behavioural baselines are increasingly relevant. A baseline tracks what a specific workload usually executes, which files it touches, which tools it invokes, and which destinations it reaches. In an agent context, the signal is often not a blocked prompt but an unexpected action sequence under a perfectly valid identity. This is especially important where tool calls or downstream responses are not covered by the same intervention points as user input.
Practical implication: Use workload behaviour telemetry to detect the post-prompt action that guardrails never see.
NHI Mgmt Group analysis
Agent guardrail scope is now an identity governance problem. When an AI agent’s effective controls depend on where it was built, which guardrail was assigned, and whether tool-plane inspection exists, governance can no longer stop at model policy. The practical issue for identity teams is that a legitimate workload identity can still be the execution vehicle for a coerced action. That makes policy inheritance, control scope, and delegated execution part of the same governance conversation. Practitioners should treat agent guardrail scope as an access boundary, not a UI setting.
Coerced execution is the new trust failure mode for AI agents. Prompt injection is not primarily a model accuracy issue. It is a trust collapse inside a valid session, where the system obeys an unauthorised intent while still using authorised credentials. That is why the boundary between prompt security and NHI governance matters so much. Managed identities, Key Vault access, and approved egress can all remain technically correct while the agent is operationally compromised. Security teams should evaluate whether their control set can detect misuse after authentication, not just prevent initial admission.
Tool-plane visibility is the named concept teams need to operationalise. The article makes clear that many deployments inspect user input and output, but not the tool calls and tool responses where the most consequential actions occur. That is the control gap. In identity terms, it is the difference between authorising a principal and observing what that principal actually does with delegated access. Practitioners should design governance around the visible and invisible parts of the agent loop, because the hidden half is where coercion turns into impact.
Prompt Shields is not the control teams are missing if the runtime is already outside coverage. The issue is not whether the classifier is useful. The issue is that some agent paths never enter the control boundary teams assume they have. That distinction matters for broader AI governance as well, because a control that works on one execution path can create false confidence when deployed across multiple build patterns. The right response is not to overtrust the filter. It is to map every agent to its actual interception points and prove coverage before production rollout.
AI agent governance now overlaps with classic least-privilege thinking, but at runtime. Traditional least privilege assumes the main risk is too much standing access. For AI agents, the more subtle risk is valid access being exercised under malicious direction. That means governance must track both entitlement and execution intent. For identity programmes, this is a clear signal that agent lifecycle controls, tool registration, and runtime telemetry belong in the same operating model. If they are separated, the organisation will have policy without enforcement.
What this signals
Tool-plane visibility will become the differentiator in agent governance. As organisations deploy more AI agents, the question will shift from whether a prompt filter is enabled to whether the agent’s delegated actions are observable and attributable. Teams should expect control assessments to focus on interception points, runtime telemetry, and the proof that effective policy follows the actual execution path.
Identity teams will need to extend least privilege into agent behaviour. It will no longer be enough to know what an AI agent is allowed to access. Practitioners will also need to know what it normally does with that access, because a valid identity can be coerced into invalid outcomes without any permission change. This is where NHI governance and AI security converge.
Agent lifecycle controls will matter as much as model governance. If build path, guardrail assignment, and runtime instrumentation are not tracked together, organisations will create policy drift between the system they think they secured and the system actually in production. That drift is now a governance risk, not just an engineering detail.
For practitioners
- Map each agent to its effective interception points Document whether the workload is a custom orchestrator, a Foundry standard agent, or a hosted agent, then record which content inspection points actually apply. Treat inherited model settings as insufficient until you verify the guardrail assigned to the agent and the tool plane it can inspect.
- Audit delegated identity and egress together Review the managed identity, Key Vault access, storage permissions, and outbound destinations each agent can use. A prompt-injected action becomes dangerous when valid access meets an approved path, so the control review must cover both role assignment and destination reach.
- Instrument runtime behaviour for deviation detection Collect process execution, system call, file access, and network telemetry for each agent workload, then baseline normal tool usage and destination patterns. Use that baseline to flag actions that diverge from the agent’s own history, not just from a generic policy.
- Separate annotate mode from enforce mode in production planning If a control is still in annotate mode, do not assume it blocks anything. Validate how many agents are actually protected by blocking settings, and only move to enforcement once you have evidence that the false-positive rate is acceptable for each workload.
Key takeaways
- Azure OpenAI prompt injection is a scope problem as much as a detection problem, because some agent paths sit outside the controls teams assume are active.
- The main risk is coerced execution through valid identity and delegated access, not a traditional privilege breakout.
- Practitioners need runtime behaviour telemetry, effective control mapping, and delegated identity review to close the gap between policy and execution.
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.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Agentic AI Top 10 | NHI-01 | Prompt injection and tool misuse are central to the article's agent risk boundary. |
| NIST AI RMF | GOVERN | The article is about accountability and control scope for AI agent deployment. |
| MITRE ATLAS | TA0006 , Credential Access; TA0008 , Lateral Movement | The threat pattern involves coercing an agent to use valid credentials and reach approved systems. |
| NIST CSF 2.0 | PR.AC-4 | The post centres on access permissions being used in unintended ways by valid principals. |
| NIST SP 800-53 Rev 5 | AC-6 | Least privilege is relevant because the agent operates through delegated access that can be overbroad. |
Model prompt injection as an adversarial technique that abuses legitimate access paths, not just model output.
Key terms
- 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.
- Runtime Guardrail: A control applied while an AI agent is operating, not just during configuration or review. Guardrails can block dangerous tool calls, require approval for sensitive actions, or stop data leakage before it reaches systems or users.
- Tool-Plane Visibility: Tool-plane visibility is the ability to inspect the actions and responses exchanged between an agent and the tools it uses. It matters because many harmful outcomes happen after the prompt is accepted, when the agent is already acting through legitimate access.
- Coerced Execution: Coerced execution occurs when a trusted workload follows an attacker’s instruction without losing its formal identity or permissions. The access is real, but the intent has been redirected, which makes the failure mode look like normal activity unless runtime behaviour is monitored.
What's in the full article
ARMO's full analysis covers the operational detail this post intentionally leaves for the source:
- The documented Azure guardrail tables that show which intervention points apply to models and which apply to agents.
- The configuration paths for custom orchestrators, Foundry standard agents, and hosted agents so teams can compare coverage by build pattern.
- The troubleshooting notes and control-state examples that help prove whether an agent is actually scanning tool calls and tool responses.
- The runtime telemetry guidance for per-agent behavioural baselines and deviation detection.
Deepen your knowledge
The NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, machine identity security, secrets management, and identity lifecycle control. It is suitable for practitioners who need to connect agent governance with broader identity and access management.
Published by the NHIMG editorial team on August 19, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org