← Back to SOC feed Coverage →

Copilot Studio AI Agents - MCP Tool with Maker Credentials

kql MEDIUM Azure-Sentinel
T1078T1552
backdoorcredential-thefthuntingmicrosoftofficial
This rule was pulled from an open-source repository and enriched with AI. Validate in a test environment before deploying to production.
View original rule at Azure-Sentinel →
Retrieved: 2026-04-21T09:00:00Z · Confidence: medium

Hunt Hypothesis

AI adversaries may leverage maker credentials in Copilot Studio to deploy malicious MCP tools with elevated privileges, enabling persistence and data exfiltration. SOC teams should proactively hunt for this behavior in Azure Sentinel to detect and mitigate potential compromise of AI agent environments.

KQL Query

AIAgentsInfo  
| where RegistrySource != "A365"
| summarize arg_max(Timestamp, *) by AIAgentId  
| where AgentStatus != "Deleted"  
| mvexpand Action = AgentToolsDetails  
| where Action.action.operationDetails["$kind"] == "ModelContextProtocolMetadata"  
| where Action.action.connectionProperties.mode == "Maker" 
| extend MCPName = tostring(Action.modelDisplayName) 
| project-reorder AgentCreationTime ,AIAgentId, AIAgentName, AgentStatus, CreatorAccountUpn, OwnerAccountUpns,MCPName 

Analytic Rule Definition

id: 7e9f6a0b-1c2d-3e4f-5a6b-7c8d9e0f1a2b
name: Copilot Studio AI Agents - MCP Tool with Maker Credentials
description: |
  Identifies Copilot Studio AI agents with Model Context Protocol (MCP) tools configured using maker credentials.
  This configuration can create security risks because the tool runs with the maker`s personal permissions.
  Any user interacting with the agent could indirectly gain access to resources the maker can access.
  I compromised, the agent could be used to perform actions with the maker`s privileges.
  Recommended Action: Replace maker credentials with secure alternatives like managed identities or service principals.
requiredDataConnectors: []
tactics:
  - CredentialAccess
  - PrivilegeEscalation
relevantTechniques:
  - T1078
  - T1552
query: |
  AIAgentsInfo  
  | where RegistrySource != "A365"
  | summarize arg_max(Timestamp, *) by AIAgentId  
  | where AgentStatus != "Deleted"  
  | mvexpand Action = AgentToolsDetails  
  | where Action.action.operationDetails["$kind"] == "ModelContextProtocolMetadata"  
  | where Action.action.connectionProperties.mode == "Maker" 
  | extend MCPName = tostring(Action.modelDisplayName) 
  | project-reorder AgentCreationTime ,AIAgentId, AIAgentName, AgentStatus, CreatorAccountUpn, OwnerAccountUpns,MCPName 
entityMappings:
  - entityType: Account
    fieldMappings:
      - identifier: FullName
        columnName: CreatorAccountUpn
  - entityType: Host
    fieldMappings:
      - identifier: HostName
        columnName: AIAgentName
version: 1.0.0

MITRE ATT&CK Context

References

False Positive Guidance

Original source: https://github.com/Azure/Azure-Sentinel/blob/main/Hunting Queries/AI Agents/Copilot Studio Connector/AIAgentsMCPToolMakerCredentials.yaml