AIDEFEND in Action AIA-0160 Validated Research

BluePhishing: Consenting to a Malicious Entra Agent Blueprint Lets an Attacker Create Agent Identities

Microsoft Entra Agent ID gives AI agents identities: an agent blueprint holds an agent's credentials, a blueprint principal represents it in one tenant, and agent identities are created from it. Proofpoint's BluePhishing proof of concept applies OAuth consent phishing to this model: once a user consents to an attacker's multitenant blueprint, the attacker can create agent identities there and call Microsoft Graph with the consented permissions. Proofpoint reports no in-the-wild use, and Microsoft's documentation of the key permission changed on November 17, 2026.

Social EngineeringIdentity & AccessEntra IDAgentic AI
5 applicable AIDEFEND defenses
Source: BluePhishing: Initial Access via Third-Party Agent Blueprint Consent 
Author: Rachel Rabin (Proofpoint)
Original article: Nov 9, 2026

Threat Analysis

  • How one consent becomes a foothold. The attacker prepares a blueprint in its own tenant: signInAudience set to AzureADMultipleOrgs (not exposed in the Entra portal; set through Microsoft Graph, PowerShell or the manifest), a client secret, and Microsoft Graph permissions declared in requiredResourceAccess and marked inheritable. A consent link on Microsoft's real sign-in service carries the blueprint ID and the .default scope, which requests everything pre-configured. When the user accepts, Entra creates a blueprint principal in the victim tenant. Application permissions, which an application exercises without a signed-in user, need a victim who can grant admin consent for the whole tenant. A user consent link yields only delegated permissions in that user's context.
  • From blueprint principal to tokens. Credentials sit on the blueprint, so its holder can act in every tenant that consented. Proofpoint observed that the new principal automatically held AgentIdentity.CreateAsManager, the permission to create agent identities. With the blueprint's ID and client secret, the attacker obtained a token from the victim tenant and created an agent identity through Microsoft Graph, naming a user there as sponsor, the person accountable for it. Proofpoint notes that the tenant ID and user accounts can be found through public endpoints and that the sponsor can be removed afterward. Through the autonomous agent app flow, the attacker then exchanged the blueprint's credential for a Microsoft Graph token issued to the agent identity. In the test that identity held User.Read.All and Group.Read.All, application permissions to read all users and groups, and its token was loaded into the GraphRunner tool to send Microsoft Graph requests.
  • What differs from app consent phishing. One app registration maps to one service principal per tenant, while one blueprint can create many agent identities (Microsoft's limit is 250 for blueprints on platforms it does not own) that inherit what was consented. Microsoft documents that inherited permissions are not shown on agent identities in the admin center or through Microsoft Graph and appear only in token contents. In Proofpoint's tests this silent inheritance occurred only for delegated permissions from a user consent link; admin-consented permissions showed the grant source 'inherited from parent'. Proofpoint's view that users are less wary of agent consent prompts is an assessment, not a measurement.
  • Evidence status and one open question. BluePhishing is a research proof of concept: no public information currently shows it used in a real attack, and Proofpoint says it notified Microsoft before publishing. The open question is the creation permission. On November 9, 2026, Microsoft's documentation said AgentIdentity.CreateAsManager was granted automatically to every blueprint principal and could not be revoked. Since November 17 it says an administrator must grant the permission and that it can be revoked. The documentation alone does not show how a given tenant behaves today.

Applicable AIDEFEND Defenses (5)

AID-H-004.001
User & Privileged Access Management
High
The chain starts only if someone may consent to a blueprint hosted in another tenant. Microsoft governs this consent with app consent policies, and Proofpoint notes that user consent settings cover agent blueprints. Stop ordinary users from consenting to unverified third-party blueprints and limit tenant-wide consent to named roles. Phished holders of such roles remain uncovered. Time-limited role activation narrows that exposure: without an active role, an administrator cannot consent for the tenant.
AID-E-001.003
AI Agent & Workload Principal and Issuance Disablement
High
Once a blueprint principal is confirmed malicious, act on that principal and every agent identity created from it. Disabling them is meant to stop the blueprint from signing in and from obtaining tokens for those identities; the victim cannot rotate a client secret held in the attacker's tenant. Microsoft says not to rely on a cascade, so disable or delete each object and confirm that no new token is issued. Data already read stays exposed.
AID-E-001.004
Delegated Grant & Connected-App Authorization Revocation
High
The permissions the attacker uses were granted by the consent, and agent identities inherit them from the blueprint principal. Enumerate that principal's delegated permission grants and application role assignments, revoke those tied to the malicious blueprint, and check whether AgentIdentity.CreateAsManager is removable in the tenant. Proofpoint reported that it could not be revoked; Microsoft's revised documentation says it can. If not, disabling or removing the principal is the remaining route.
AID-D-016.001
Agent Graph Baseline & New-Agent Discovery
Medium
An approved list of agent blueprints gives the tenant something to compare against. Entra audit events carry an agentType and a blueprintId that ties each agent identity to its blueprint, and a blueprint's ID is the same in every consenting tenant. Alert on any blueprint principal or agent identity whose blueprint is not listed. The reviewed guidance collects from agent traffic, so the tenant must build this comparison over Entra audit events. It detects only.
AID-D-011.004
Non-Human Identity & Delegated Token Abuse Detection
Medium
After consent, every request carries a validly issued token, so the signal is which identity asks for what. Agent sign-ins appear in Entra sign-in logs as the agentSignIn event type, and Microsoft Graph activity logs record the tenant's requests. Correlating both against approved combinations of blueprint, agent identity, resource and permissions flags tokens issued under an unapproved blueprint and broad reads of users and groups. It detects after issuance and needs both logs.

What Defenders Should Do Now

  • Restrict who can consent, then test it. Under Enterprise apps > Consent and permissions > User consent settings, limit or disable user consent. Then, from a standard test account, open a consent link for a harmless test blueprint hosted in a second tenant. The check passes when consent is refused and no blueprint principal appears.
  • Reduce standing admin consent rights. Move Privileged Role Administrator, Global Administrator and other roles that can consent for the whole tenant to time-limited activation, and route agent consent requests to a named reviewer.
  • Check what a consented blueprint principal can do. In a test tenant, consent to a test blueprint and inspect the new principal's application role assignments. If AgentIdentity.CreateAsManager is present without an administrator grant, assume every consented third-party blueprint can create agent identities.
  • Compare against an approved list and rehearse removal. Alert on any blueprint principal or agent identity whose blueprintId is not approved. In a confirmed case, revoke the grants on the blueprint principal, then disable or delete each object through Microsoft Graph or PowerShell. Microsoft warns against assuming that deleting a blueprint principal removes its agent identities.

2 additional considerations

Conditional Access for agent identities

Entra evaluates Conditional Access when it issues a token to an agent identity, and Microsoft documents a policy that blocks all agent identities except approved ones. ID Protection for agents adds offline risk detections.
Recommendation: A Conditional Access Administrator can create that policy in report-only mode, review its effect and enforce it, so that an agent identity from an unapproved blueprint cannot obtain tokens. It requires Microsoft Agent 365 licensing, does not cover requests made on behalf of a user and does not remove the consent grant. Test whether the blueprint principal's own token request is covered.

Agent consent in administrator phishing exercises

Settings can refuse ordinary users, but administrators who may consent for the tenant still decide by judgment.
Recommendation: Identity administrators and the security awareness team can require that an agent consent link nobody requested goes through the internal request route, and add agent consent prompts to phishing exercises so that administrators check publisher verification and the requested permissions. This lowers the chance of a successful lure and does not remove it.

Conclusion

BluePhishing brings OAuth consent phishing to the identity layer built for AI agents. AIDEFEND  maps it to three boundaries: role-based control over who may consent to third-party blueprints, detection of blueprints and agent identities that are not on the approved list, and disabling the attacker's principals while revoking the grants on the blueprint principal.

Last updated: