Skip to the road
Adminpatchlog

Microsoft 365 & SharePoint

Microsoft Entra Conditional Access Adds an Undocumented Agent Session Risk Condition

Shanchana 847 travellers

An Entra template targets high-risk agent-assisted flows, but Microsoft hasn’t documented the risk signals or exposed the condition in the policy editor.

Microsoft Entra Conditional Access Adds an Undocumented Agent Session Risk Condition

An Interesting Find: Agent Session Risk in Microsoft Entra Conditional Access

Microsoft Entra Conditional Access appears to support risk checks for AI agents acting on a user’s behalf. An undocumented condition named agentSessionRiskLevels turns up in the configuration for a built-in template, even though administrators can’t select it in the policy editor. That gives identity teams a way to explore controls for risky agent-assisted activity, with an important limitation: Microsoft hasn’t described how Entra determines an agent session’s risk.

The distinction matters because an agent can use a person’s delegated permissions to access data or perform tasks. Risk tied to an individual agent-assisted session may call for a different response from risk tied to the user’s identity or sign-in. In principle, a Conditional Access policy could block a risky request from an agent while leaving the user’s own access available.

What the template reveals

The built-in Block Assistive Agent Flows with High Risk template shows one configured condition in its summary, but the visible policy editor doesn’t make clear what that condition is. Inspecting the exported configuration exposes two relevant properties: agentSessionRiskLevels, set to high, and agentContext, scoped to allAgentAssistedFlows.

A Conditional Access template for blocking high-risk agent-assisted flows

The configuration also sets the client app type to all and uses a block control. It doesn’t describe policies for autonomous agent identities or standalone agent user accounts. Those are separate access patterns and need their own Conditional Access configuration.

The exported schema suggests that risk thresholds can include low, medium, and high. The built-in template, however, targets high risk. The policy editor’s lack of corresponding controls means administrators may need to use the template or configure a policy through Microsoft Graph to work with these properties.

Microsoft Entra Conditional Access policy templates provide the starting point for the high-risk configuration. Exporting a template’s JSON lets administrators check whether the agent risk and scope properties are present.

Deploy the built-in high-risk policy

In the Entra admin center, go to Entra ID, open Conditional Access, and choose the option to create a policy from a template. Search for Block assistive agent flows with high risk, select it, and review the resulting configuration.

The built-in Conditional Access template for high-risk agent session conditions

The recommended sequence in the described workflow is to create the policy in Report-only mode first. After reviewing its behavior, administrators can switch it to On to block high-risk agent sessions. Before enforcement, inspect the exported JSON and confirm that it contains agentSessionRiskLevels set to high and the allAgentAssistedFlows scope.

That review is especially useful because the condition isn’t visible among the policy editor’s ordinary selectors. A successful save alone may not tell an administrator which agent flows the template covers; the configuration export provides that detail.

Medium-risk policies through Graph

The template is fixed to high-risk sessions. To target medium risk, the described approach uses Microsoft Graph PowerShell to submit a Conditional Access policy through the Graph beta endpoint. The example sets agentSessionRiskLevels to medium, includes all agent-assisted flows, and creates the policy in Report-only mode.

Its configuration targets all users and all cloud applications, sets the client app type to all, and uses a block control. Because the policy begins in Report-only mode, the example is intended to let an administrator observe evaluation before enabling enforcement. The permissions shown for connecting to Graph are Policy.Read.All and Policy.ReadWrite.ConditionalAccess. The example also uses Invoke-MgGraphRequest to send a POST request to https://graph.microsoft.com/beta/identity/conditionalAccess/policies.

Using the beta endpoint and properties that aren’t exposed in the editor calls for careful validation in the target tenant. The example is a record of one configuration approach, not evidence that Microsoft has documented the condition’s behavior. Administrators should review the created policy and its scope before considering enforcement. The template’s JSON can also serve as a reference for the property names and structure.

Risk signals remain unclear

In hands-on testing, the condition reportedly didn’t trigger in the scenarios examined, including sessions where malicious instructions were introduced. That result doesn’t establish how the condition behaves in other cases. Microsoft hasn’t documented the signals used to assign agent session risk, so administrators can’t infer from the property name alone what activity will lead to a high or medium rating.

For identity teams, the practical takeaway is to treat this as an emerging control that needs tenant-level observation. Start with the built-in template in Report-only mode, verify its scope in the exported configuration, and review the results before enabling a block. For medium-risk coverage, the Graph example shows how the risk level can be set directly, but the undocumented signals make measured validation essential.

Agent Session Risk could extend Conditional Access to a part of agent security that user and identity risk checks may not capture: what happens during a delegated agent session. The next useful step for administrators is to establish what their tenant actually evaluates, while watching for clearer documentation of the risk signals and supported configuration options.

Source: Shanchana · blog.admindroid.com

On the same route