Investigating suspicious AI workflows in Microsoft Entra Age...#300
Open
carlospolop wants to merge 1 commit into
Open
Conversation
Collaborator
Author
🔗 Additional ContextOriginal Blog Post: https://redcanary.com/blog/threat-detection/entra-id-ai-workflows-teams/ Content Categories: Based on the analysis, this content was categorized under "Azure Pentesting > Az - Services > Az - Entra ID (AzureAD) & Azure IAM, with cross-reference to Az - Post Exploitation or a new subsection for Entra Agent ID / AI Agent Identities". Repository Maintenance:
Review Notes:
Bot Version: HackTricks News Bot v1.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 Automated Content Update
This PR was automatically generated by the HackTricks News Bot based on a technical blog post.
📝 Source Information
🎯 Content Summary
The post is not a CVE write-up or a software bug exploit. It is a technical detection and investigation walkthrough showing how a Microsoft Entra Agent ID agent user can send Microsoft Teams messages through OAuth/Microsoft Graph, how that activity appears across Microsoft logs, and how defenders can correlate Purview Teams audit events,
MicrosoftGraphActivityLogs, andAADNonInteractiveUserSignInLogsto reconstruct the real identity, authentication path, sourc...🔧 Technical Details
Abusing the Entra Agent ID agent-user OAuth flow to act as an agent user: If an operator has the target tenant ID, blueprint client secret, blueprint ID, target child agent identity ID, and linked agent user UPN, they can perform the Entra Agent ID token-exchange flow to obtain a Microsoft Graph token for that agent user. First, request an exchange token from
https://login.microsoftonline.com/$TargetEntraTenantID/oauth2/v2.0/tokenusingclient_id=$BlueprintID,client_secret=$BlueprintSecret,fmi_path=$TargetAgentIdentityId,grant_type=client_credentials, andscope=api://AzureADTokenExchange/.default. Second, request an agent identity token usingclient_id=$TargetAgentIdentityId,scope=api://AzureADTokenExchange/.default,client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer,client_assertion=$($Token.access_token), and...🤖 Agent ActionsDone — I updated:
src/pentesting-cloud/azure-security/az-services/az-azuread.mdAdded a new section for:
AppAccessContext.UniqueTokenId→MicrosoftGraphActivityLogs/AADNonInteractiveUserSignInLogsI also added references for:
Validation:
mdbook buildcould not be run becausemdbookis not installed in this environmentThis PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.