Managed Identity Sign-in Logs

OperationNameDescriptionSampleRule
anyAny record in this table with no specific result or signal bucket filter. Every record carries OperationName = "Sign-in activity"; detections pivot on field values, not a per-action discriminator.YY
SuccessRecord with ResultType 0: the managed identity's token acquisition completed successfully.YN
Blocked-by-CARecord with ResultType 53003 (or one of the further Conditional-Access-related block codes 53000, 53001, 53002, 50131, 50158, 50097): a Conditional Access policy returned a block decision for the managed identity's sign-in. Code 50158 (external security challenge not satisfied) can accompany either a passed or a failed challenge, so on its own it is not conclusive of a block.NN
OtherRecord whose ResultType is not 0 or a Conditional-Access block code. The table's own column doc describes ResultType as Success-or-Failure; this bucket holds every other failure code.NN
Target applicationRecord carrying AppId or ResourceDisplayName: the application identifier and the resource the managed identity signed into.YN
Conditional Access statusRecord carrying ConditionalAccessStatus: the status of every Conditional Access policy related to the managed identity's sign-in.YN

any: Sign-in record (AADManagedIdentitySignInLogs, any result)

#

Description

Any record in this table with no specific result or signal bucket filter. Every record carries OperationName = "Sign-in activity"; detections pivot on field values, not a per-action discriminator.

Example Sign-in Log Entry #

{
  "AADTenantId": "11111111-1111-1111-1111-111111111111",
  "Agent": {
    "agentType": "notAgentic",
    "agentSubjectType": "notAgentic"
  },
  "AppId": "b03f542d-bdd6-477f-a424-624b81305fc1",
  "AuthenticationContextClassReferences": [],
  "AuthenticationProcessingDetails": [
    {
      "key": "Legacy TLS (TLS 1.0, 1.1, 3DES)",
      "value": "False"
    },
    {
      "key": "Is Legacy Store Used",
      "value": "False"
    },
    {
      "key": "Is CAE Token",
      "value": "False"
    }
  ],
  "Category": "ManagedIdentitySignInLogs",
  "ClientCredentialType": "none",
  "ConditionalAccessAudiences": [],
  "ConditionalAccessPolicies": [],
  "ConditionalAccessPoliciesV2": "None",
  "ConditionalAccessStatus": "notApplied",
  "CorrelationId": "c088ded1-23dd-4b62-8cb4-fa2ebd4de855",
  "CreatedDateTime": "2026-07-25T16:10:17.557475Z",
  "DurationMs": "0",
  "Id": "a5c6d733-08f3-4642-8d6c-4663f6f45800",
  "LocationDetails": {
    "city": "",
    "state": "",
    "countryOrRegion": "",
    "geoCoordinates": {
      "latitude": 0.0,
      "longitude": 0.0
    }
  },
  "OperationName": "Sign-in activity",
  "OperationVersion": "1.0",
  "ResourceDisplayName": "Microsoft Graph",
  "ResourceGroup": "Microsoft.aadiam",
  "ResourceIdentity": "00000003-0000-0000-c000-000000000000",
  "ResourceOwnerTenantId": "f8cdef31-a31e-4b4a-93e4-5f571e91255a",
  "ResourceServicePrincipalId": "2e5ab30e-ae89-43c2-b130-0022f3d655a7",
  "ResultSignature": "SUCCESS",
  "ResultType": "0",
  "ServicePrincipalId": "bd7574b0-c942-42da-8fa3-2cf6d9a0142c",
  "ServicePrincipalName": "dw-signin-mi-f313ab",
  "UniqueTokenIdentifier": "M9fGpfMIQkaNbEZj9vRYAA"
}

Common Indicators #

Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.

FieldKindValueRulesVendors
event.outcome (elastic rule field)eqsuccess16 ruleselastic
azure_ad::user_type (elastic rule field)eqmember10 ruleselastic
EventType (elastic rule field)eqsign-in activity7 ruleselastic
azure_ad::app_id (elastic rule field)eq29d9ed98-a469-4536-ade2-f981bc1d605e5 ruleselastic
azure_ad::resource_id (elastic rule field)eq00000002-0000-0000-c000-0000000000003 ruleselastic
azure_ad::resource_id (elastic rule field)in00000003-0000-0000-c000-0000000000004 ruleselastic
security_result.action (Chronicle)eqALLOW4 ruleschronicle
azure_ad::authentication_protocol (elastic rule field)eqdevicecode3 ruleselastic
azure_ad::authentication_requirement (elastic rule field)eqsinglefactorauthentication3 ruleselastic
azure_ad::user_principal_name (elastic rule field)is_not_null3 ruleselastic
azure.activitylogs.properties.authentication_protocol (elastic rule field)eqdevicecode2 ruleselastic
azure.signinlogs.identity (elastic rule field)is_not_null2 ruleselastic
azure.signinlogs.properties.authentication_details.authentication_method (elastic rule field)eqpassword2 ruleselastic
azure.signinlogs.properties.original_transfer_method (elastic rule field)eqdevicecodeflow2 ruleselastic
azure.signinlogs.properties.token_issuer_type (elastic rule field)eqazuread2 ruleselastic

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

Elastic #

  • Entra ID Sharepoint or OneDrive Accessed by Unusual Client source medium: Identifies when an application accesses SharePoint Online or OneDrive for Business for the first time in the tenant within a specified timeframe. This detects successful OAuth phishing campaigns, illicit consent grants, or compromised third-party applications gaining initial access to file storage. Adversaries often use malicious OAuth applications or phishing techniques to gain consent from users, allowing persistent access to organizational data repositories without traditional credential theft.T1078, T1078.004, T1098, T1098.001, T1213, T1213.002
  • Entra ID OAuth Device Code Flow with Concurrent Sign-ins source high: Identifies Entra ID device code authentication flows where multiple user agents are observed within the same session. This pattern is indicative of device code phishing, where an attacker's polling client (e.g., Python script) and the victim's browser both appear in the same authentication session. In legitimate device code flows, the user authenticates via browser while the requesting application polls for tokens - when these have distinctly different user agents (e.g., Python Requests vs Chrome), it may indicate the code was phished and redeemed by an attacker.T1078, T1078.004, T1528, T1566, T1566.002
  • Entra ID OAuth Device Code Sign-in to Azure AD Graph Enumeration source high: Correlates a successful Entra ID device-code sign-in to the legacy Azure AD Graph audience (00000002-0000-0000-c000-000000000000) from an unmanaged device with directory enumeration against graph.windows.net by the same user within a short window. Device-code phishing is the dominant OAuth phishing variant against Microsoft tenants: the adversary initiates the flow, relays the user-facing code to the victim, and on redemption walks away with an access or refresh token bound to the targeted resource without ever handling the user's password or MFA factor. When the redeemed audience is AAD Graph and the redeeming device is unmanaged, the follow-on Graph traffic is the compromised cloud account being used by the attacker, not by the user. This rule fires when that token is immediately turned around against the directory under the same identity to read user, group, service principal, application, role assignment, directory object, policy, OAuth permission grant, or tenant detail collections.T1069, T1069.003, T1078, T1078.004, T1087, T1087.004

Splunk #

Kusto #

YARA-L #

Panther #

  • Azure Device Code Authentication with Broker Client source medium: Detects device code authentication using the Microsoft Broker Client application, which may indicate Primary Refresh Token (PRT) abuse. Device code flow allows adversaries to trick users into entering codes on attacker-controlled applications. When combined with Microsoft Broker Client (app ID 29d9ed98-a469-4536-ade2-f981bc1d605e), this may indicate PRT theft or replay attacks that bypass MFA and Conditional Access policies.T1078, T1078.004, T1550, T1550.001, T1566, T1566.002
  • Azure Excessive Account Lockouts source high: Detects high volumes of failed Microsoft Entra ID sign-in attempts resulting in account lockouts, indicating potential brute-force credential attacks such as password spraying, password guessing, or credential stuffing. When adversaries repeatedly attempt authentication with incorrect credentials, Entra ID Smart Lockout policies trigger account lockouts (error code 50053).T1110, T1110.001, T1110.003, T1110.004
  • Azure Many Failed SignIns source medium: This detection looks for a number of failed sign-ins for the same ServicePrincipalName or UserPrincipalNameT1078, T1110

Success: Successful sign-in

#

Description

Record with ResultType 0: the managed identity's token acquisition completed successfully.

Example Sign-in Log Entry #

{
  "AADTenantId": "11111111-1111-1111-1111-111111111111",
  "Agent": {
    "agentType": "notAgentic",
    "agentSubjectType": "notAgentic"
  },
  "AppId": "b03f542d-bdd6-477f-a424-624b81305fc1",
  "AuthenticationContextClassReferences": [],
  "AuthenticationProcessingDetails": [
    {
      "key": "Legacy TLS (TLS 1.0, 1.1, 3DES)",
      "value": "False"
    },
    {
      "key": "Is Legacy Store Used",
      "value": "False"
    },
    {
      "key": "Is CAE Token",
      "value": "False"
    }
  ],
  "Category": "ManagedIdentitySignInLogs",
  "ClientCredentialType": "none",
  "ConditionalAccessAudiences": [],
  "ConditionalAccessPolicies": [],
  "ConditionalAccessPoliciesV2": "None",
  "ConditionalAccessStatus": "notApplied",
  "CorrelationId": "c088ded1-23dd-4b62-8cb4-fa2ebd4de855",
  "CreatedDateTime": "2026-07-25T16:10:17.557475Z",
  "DurationMs": "0",
  "Id": "a5c6d733-08f3-4642-8d6c-4663f6f45800",
  "LocationDetails": {
    "city": "",
    "state": "",
    "countryOrRegion": "",
    "geoCoordinates": {
      "latitude": 0.0,
      "longitude": 0.0
    }
  },
  "OperationName": "Sign-in activity",
  "OperationVersion": "1.0",
  "ResourceDisplayName": "Microsoft Graph",
  "ResourceGroup": "Microsoft.aadiam",
  "ResourceIdentity": "00000003-0000-0000-c000-000000000000",
  "ResourceOwnerTenantId": "f8cdef31-a31e-4b4a-93e4-5f571e91255a",
  "ResourceServicePrincipalId": "2e5ab30e-ae89-43c2-b130-0022f3d655a7",
  "ResultSignature": "SUCCESS",
  "ResultType": "0",
  "ServicePrincipalId": "bd7574b0-c942-42da-8fa3-2cf6d9a0142c",
  "ServicePrincipalName": "dw-signin-mi-f313ab",
  "UniqueTokenIdentifier": "M9fGpfMIQkaNbEZj9vRYAA"
}

Blocked-by-CA: Sign-in blocked by Conditional Access

#

Description

Record with ResultType 53003 (or one of the further Conditional-Access-related block codes 53000, 53001, 53002, 50131, 50158, 50097): a Conditional Access policy returned a block decision for the managed identity's sign-in. Code 50158 (external security challenge not satisfied) can accompany either a passed or a failed challenge, so on its own it is not conclusive of a block.

Other: Sign-in with another recorded result

#

Description

Record whose ResultType is not 0 or a Conditional-Access block code. The table's own column doc describes ResultType as Success-or-Failure; this bucket holds every other failure code.

Target application: Sign-in naming a target application

#

Description

Record carrying AppId or ResourceDisplayName: the application identifier and the resource the managed identity signed into.

Example Sign-in Log Entry #

{
  "AADTenantId": "11111111-1111-1111-1111-111111111111",
  "Agent": {
    "agentType": "notAgentic",
    "agentSubjectType": "notAgentic"
  },
  "AppId": "b03f542d-bdd6-477f-a424-624b81305fc1",
  "AuthenticationContextClassReferences": [],
  "AuthenticationProcessingDetails": [
    {
      "key": "Legacy TLS (TLS 1.0, 1.1, 3DES)",
      "value": "False"
    },
    {
      "key": "Is Legacy Store Used",
      "value": "False"
    },
    {
      "key": "Is CAE Token",
      "value": "False"
    }
  ],
  "Category": "ManagedIdentitySignInLogs",
  "ClientCredentialType": "none",
  "ConditionalAccessAudiences": [],
  "ConditionalAccessPolicies": [],
  "ConditionalAccessPoliciesV2": "None",
  "ConditionalAccessStatus": "notApplied",
  "CorrelationId": "c088ded1-23dd-4b62-8cb4-fa2ebd4de855",
  "CreatedDateTime": "2026-07-25T16:10:17.557475Z",
  "DurationMs": "0",
  "Id": "a5c6d733-08f3-4642-8d6c-4663f6f45800",
  "LocationDetails": {
    "city": "",
    "state": "",
    "countryOrRegion": "",
    "geoCoordinates": {
      "latitude": 0.0,
      "longitude": 0.0
    }
  },
  "OperationName": "Sign-in activity",
  "OperationVersion": "1.0",
  "ResourceDisplayName": "Microsoft Graph",
  "ResourceGroup": "Microsoft.aadiam",
  "ResourceIdentity": "00000003-0000-0000-c000-000000000000",
  "ResourceOwnerTenantId": "f8cdef31-a31e-4b4a-93e4-5f571e91255a",
  "ResourceServicePrincipalId": "2e5ab30e-ae89-43c2-b130-0022f3d655a7",
  "ResultSignature": "SUCCESS",
  "ResultType": "0",
  "ServicePrincipalId": "bd7574b0-c942-42da-8fa3-2cf6d9a0142c",
  "ServicePrincipalName": "dw-signin-mi-f313ab",
  "UniqueTokenIdentifier": "M9fGpfMIQkaNbEZj9vRYAA"
}

Conditional Access status: Sign-in recording a Conditional Access status

#

Description

Record carrying ConditionalAccessStatus: the status of every Conditional Access policy related to the managed identity's sign-in.

Example Sign-in Log Entry #

{
  "AADTenantId": "11111111-1111-1111-1111-111111111111",
  "Agent": {
    "agentType": "notAgentic",
    "agentSubjectType": "notAgentic"
  },
  "AppId": "b03f542d-bdd6-477f-a424-624b81305fc1",
  "AuthenticationContextClassReferences": [],
  "AuthenticationProcessingDetails": [
    {
      "key": "Legacy TLS (TLS 1.0, 1.1, 3DES)",
      "value": "False"
    },
    {
      "key": "Is Legacy Store Used",
      "value": "False"
    },
    {
      "key": "Is CAE Token",
      "value": "False"
    }
  ],
  "Category": "ManagedIdentitySignInLogs",
  "ClientCredentialType": "none",
  "ConditionalAccessAudiences": [],
  "ConditionalAccessPolicies": [],
  "ConditionalAccessPoliciesV2": "None",
  "ConditionalAccessStatus": "notApplied",
  "CorrelationId": "c088ded1-23dd-4b62-8cb4-fa2ebd4de855",
  "CreatedDateTime": "2026-07-25T16:10:17.557475Z",
  "DurationMs": "0",
  "Id": "a5c6d733-08f3-4642-8d6c-4663f6f45800",
  "LocationDetails": {
    "city": "",
    "state": "",
    "countryOrRegion": "",
    "geoCoordinates": {
      "latitude": 0.0,
      "longitude": 0.0
    }
  },
  "OperationName": "Sign-in activity",
  "OperationVersion": "1.0",
  "ResourceDisplayName": "Microsoft Graph",
  "ResourceGroup": "Microsoft.aadiam",
  "ResourceIdentity": "00000003-0000-0000-c000-000000000000",
  "ResourceOwnerTenantId": "f8cdef31-a31e-4b4a-93e4-5f571e91255a",
  "ResourceServicePrincipalId": "2e5ab30e-ae89-43c2-b130-0022f3d655a7",
  "ResultSignature": "SUCCESS",
  "ResultType": "0",
  "ServicePrincipalId": "bd7574b0-c942-42da-8fa3-2cf6d9a0142c",
  "ServicePrincipalName": "dw-signin-mi-f313ab",
  "UniqueTokenIdentifier": "M9fGpfMIQkaNbEZj9vRYAA"
}

References #