{
  "$schema": "./column-relations.schema.json",
  "version": 1,
  "relations": [
    {
      "id": "entra-signin-graph-token",
      "title": "Connect an Entra sign-in to GraphAPIAuditEvents",
      "description": "Match the Entra sign-in token ID with UniqueTokenIdentifier in the Defender XDR GraphAPIAuditEvents table.",
      "from": {
        "table": "EntraIdSignInEvents",
        "column": "UniqueTokenId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "GraphAPIAuditEvents",
        "column": "UniqueTokenIdentifier",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Identity",
        "Microsoft Graph",
        "Token correlation"
      ],
      "guidance": "Compare non-empty token identifiers exactly and preserve case; never lowercase a UTI. One token can have many activity records. Keep actor, tenant, application, and time context, and include the originating sign-in in the lookback. A missing match can reflect retention or collection gaps.",
      "otherNotes": [
        {
          "title": "Use the token ID to trace a sign-in session",
          "text": "GraphAPIAuditEvents.UniqueTokenIdentifier can be matched to the unique token identifier on an Entra sign-in record. In Defender XDR, this relationship is represented by EntraIdSignInEvents.UniqueTokenId. The matching sign-in can give you session context for investigating other activity. If you also query Sentinel sign-in tables, include interactive, non-interactive, service principal, and managed identity sign-ins for broader coverage. Keep user and application identities distinct when enriching results, and treat missing sign-in matches as a lead to investigate rather than proof of malicious activity.",
          "sourceLabel": "Cloudbrothers: Graph API activity logs - Part 3",
          "sourceUrl": "https://cloudbrothers.info/detect-threats-graphapiauditevents-part-3/",
          "query": "GraphAPIAuditEvents\n| where Timestamp > ago(7d)\n| where isnotempty(UniqueTokenIdentifier)\n| join kind=inner (EntraIdSignInEvents\n    | where Timestamp > ago(7d)\n    | where isnotempty(UniqueTokenId)\n    | project SignInTime=Timestamp, UniqueTokenId\n) on $left.UniqueTokenIdentifier == $right.UniqueTokenId\n| project GraphTime=Timestamp, UniqueTokenIdentifier, RequestUri, RequestMethod, AccountObjectId, SignInTime\n| order by GraphTime desc",
          "queryLanguage": "kusto"
        },
        {
          "title": "Normalize Graph requests before comparing activity",
          "text": "When looking for automated discovery, compare endpoint patterns rather than raw request URLs. Replace object IDs in the path and remove query strings so requests for different objects collapse into the same pattern. Compare volume and endpoint combinations against a baseline for the account or application. UserAgent is not available in this GraphAPIAuditEvents schema; where another Graph log source provides it, remember that it can be changed and use it only as supporting context.",
          "sourceLabel": "Cloudbrothers: Graph API activity logs - Part 1",
          "sourceUrl": "https://cloudbrothers.info/detect-threats-microsoft-graph-logs-part-1/",
          "query": "GraphAPIAuditEvents\n| where Timestamp > ago(1d)\n| extend ActorId = coalesce(AccountObjectId, ServicePrincipalId, ApplicationId)\n| extend NormalizedRequestUri = replace_regex(RequestUri, @'[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}', @'<UUID>')\n| extend NormalizedRequestUri = replace_regex(NormalizedRequestUri, @'\\?.*$', @'')\n| summarize RequestCount=count(), Endpoints=make_set(NormalizedRequestUri, 100), IPAddresses=make_set(IpAddress, 100) by ActorId, EntityType\n| order by RequestCount desc",
          "queryLanguage": "kusto"
        }
      ],
      "family": "entra-token"
    },
    {
      "id": "entra-signin-microsoft-graph-activity-token",
      "title": "Connect an Entra sign-in to MicrosoftGraphActivityLogs",
      "description": "Compare the Entra sign-in token ID with SignInActivityId in the Sentinel MicrosoftGraphActivityLogs table.",
      "from": {
        "table": "EntraIdSignInEvents",
        "column": "UniqueTokenId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "MicrosoftGraphActivityLogs",
        "column": "SignInActivityId",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Identity",
        "Microsoft Graph",
        "Token correlation",
        "Microsoft Sentinel"
      ],
      "guidance": "Compare non-empty token identifiers exactly and preserve case; never lowercase a UTI. One token can have many activity records. Keep actor, tenant, application, and time context, and include the originating sign-in in the lookback. A missing match can reflect retention or collection gaps.",
      "otherNotes": [
        {
          "title": "Keep user and application identities distinct",
          "text": "In MicrosoftGraphActivityLogs, the actor ID may be in UserId or ServicePrincipalId. Preserve which field supplied the value when enriching or grouping activity. For broader Sentinel sign-in coverage, the article unions interactive, non-interactive, service principal, and managed identity sign-in tables. Those Sentinel tables are separate from EntraIdSignInEvents in Defender XDR.",
          "sourceLabel": "Cloudbrothers: Graph API activity logs - Part 2",
          "sourceUrl": "https://cloudbrothers.info/detect-threats-microsoft-graph-logs-part-2/",
          "query": "MicrosoftGraphActivityLogs\n| where TimeGenerated > ago(1d)\n| extend ObjectId = iff(isempty(UserId), ServicePrincipalId, UserId)\n| extend ObjectType = iff(isempty(UserId), \"ServicePrincipalId\", \"UserId\")\n| summarize Requests=count(), Endpoints=dcount(RequestUri) by ObjectType, ObjectId\n| order by Requests desc",
          "queryLanguage": "kusto"
        },
        {
          "title": "Normalize request URLs and baseline activity",
          "text": "For reconnaissance hunts, compare normalized endpoint patterns and request volume by actor. Replace object IDs in URLs and remove query strings before comparing paths. User agents can be changed, and normal activity varies between environments, so treat tool fingerprints and unusual patterns as investigation leads and build a local baseline.",
          "sourceLabel": "Cloudbrothers: Graph API activity logs - Part 1",
          "sourceUrl": "https://cloudbrothers.info/detect-threats-microsoft-graph-logs-part-1/",
          "query": "MicrosoftGraphActivityLogs\n| where TimeGenerated > ago(1d)\n| extend ObjectId = iff(isempty(UserId), ServicePrincipalId, UserId)\n| extend ObjectType = iff(isempty(UserId), \"ServicePrincipalId\", \"UserId\")\n| extend NormalizedRequestUri = replace_regex(RequestUri, @'[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}', @'<UUID>')\n| extend NormalizedRequestUri = replace_regex(NormalizedRequestUri, @'\\?.*$', @'')\n| summarize Requests=count(), Endpoints=make_set(NormalizedRequestUri, 100), IPAddresses=make_set(IPAddress, 100) by ObjectType, ObjectId\n| order by Requests desc",
          "queryLanguage": "kusto"
        },
        {
          "title": "Expand Graph batch requests",
          "text": "Microsoft Graph batch activity may include a record for the POST to $batch and separate records for the individual requests. The article uses OperationId to group the batch with its component requests, which can reveal the actual endpoints involved.",
          "sourceLabel": "Cloudbrothers: Graph API activity logs - Part 2",
          "sourceUrl": "https://cloudbrothers.info/detect-threats-microsoft-graph-logs-part-2/",
          "query": "let BatchRequests = MicrosoftGraphActivityLogs\n| where TimeGenerated > ago(1d)\n| where RequestMethod == \"POST\" and RequestUri endswith \"/$batch\"\n| project OperationId, BatchTime=TimeGenerated, BatchRequestUri=RequestUri;\nMicrosoftGraphActivityLogs\n| where TimeGenerated > ago(1d)\n| where RequestMethod != \"POST\"\n| join kind=inner BatchRequests on OperationId\n| project BatchTime, TimeGenerated, OperationId, BatchRequestUri, RequestUri, RequestMethod\n| order by BatchTime desc",
          "queryLanguage": "kusto"
        },
        {
          "title": "Map the uti claim to SignInActivityId",
          "text": "Microsoft maps the token claim uti to MicrosoftGraphActivityLogs.SignInActivityId and joins it to Sentinel sign-in UniqueTokenIdentifier.",
          "sourceLabel": "Microsoft Learn",
          "sourceUrl": "https://learn.microsoft.com/en-us/entra/identity/authentication/how-to-authentication-track-linkable-identifiers",
          "query": "let LeftEvents = EntraIdSignInEvents\n| where Timestamp > ago(7d)\n| extend LeftKey = tostring(UniqueTokenId)\n| where isnotempty(LeftKey);\nlet RightEvents = MicrosoftGraphActivityLogs\n| where TimeGenerated > ago(7d)\n| extend RightKey = tostring(SignInActivityId)\n| where isnotempty(RightKey);\nLeftEvents\n| join kind=inner (RightEvents) on $left.LeftKey == $right.RightKey\n| project-away LeftKey, RightKey",
          "queryLanguage": "kusto"
        }
      ],
      "family": "entra-token"
    },
    {
      "id": "entra-signin-aad-graph-activity-token",
      "title": "Connect an Entra sign-in to AADGraphActivityLogs",
      "description": "Compare EntraIdSignInEvents.UniqueTokenId with SignInActivityId in the separate Sentinel AADGraphActivityLogs table.",
      "from": {
        "table": "EntraIdSignInEvents",
        "column": "UniqueTokenId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "AADGraphActivityLogs",
        "column": "SignInActivityId",
        "timeColumn": "TimeRequested"
      },
      "tags": [
        "Identity",
        "Azure AD Graph",
        "Token correlation",
        "Microsoft Sentinel"
      ],
      "guidance": "Compare non-empty token identifiers exactly and preserve case; never lowercase a UTI. One token can have many activity records. Keep actor, tenant, application, and time context, and include the originating sign-in in the lookback. A missing match can reflect retention or collection gaps. AAD Graph SignInActivityId is a best-effort token link. Exact equality can miss padded values. Remove only trailing Base64 padding on both sides and preserve case. This does not convert GUID-shaped IDs to Base64 or equate them with sign-in Id/CorrelationId. Inspect unmatched GUID-shaped values separately. TimeRequested is the request time; allow for delayed ingestion.",
      "otherNotes": [
        {
          "title": "Account for request and record time differences",
          "text": "TimeRequested is when the API call occurred, while TimeGenerated is when the log record was generated. The article observed a median gap of about seven minutes and a maximum of 70 minutes in its lab. Measure the delay in your own data and use an appropriate time window when investigating related sign-ins.",
          "sourceLabel": "Cloudbrothers: Now You See Me - AADGraphActivityLogs",
          "sourceUrl": "https://cloudbrothers.info/aadgraphactivitylogs/",
          "query": "AADGraphActivityLogs\n| where TimeGenerated > ago(30d)\n| extend RequestDelay = TimeGenerated - TimeRequested\n| summarize MedianDelay=percentile(RequestDelay, 50), MaximumDelay=max(RequestDelay), Events=count()",
          "queryLanguage": "kusto"
        },
        {
          "title": "Pivot from AAD Graph activity to the sign-in",
          "text": "Invictus IR describes correlating AADGraphActivityLogs.SignInActivityId with SigninLogs.UniqueTokenIdentifier after removing trailing token padding. This adapted example uses EntraIdSignInEvents.UniqueTokenId in Defender. Preserve identifier case and verify the formats in your own data; padding normalization does not convert GUID-shaped values into token identifiers.",
          "sourceLabel": "Invictus IR: The missing link - AADGraphActivityLogs finally arrives",
          "sourceUrl": "https://www.invictus-ir.com/news/the-missing-link-aadgraphactivitylogs-finally-arrives",
          "query": "let LeftEvents = EntraIdSignInEvents\n| where Timestamp > ago(7d)\n| extend LeftKey = trim_end(@\"=+\", tostring(UniqueTokenId))\n| where isnotempty(LeftKey);\nlet RightEvents = AADGraphActivityLogs\n| where TimeRequested > ago(7d)\n| extend RightKey = trim_end(@\"=+\", tostring(SignInActivityId))\n| where isnotempty(RightKey);\nLeftEvents\n| join kind=inner (RightEvents) on $left.LeftKey == $right.RightKey\n| project-away LeftKey, RightKey",
          "queryLanguage": "kusto"
        },
        {
          "title": "SignInActivityId formats",
          "text": "SignInActivityId can contain padded token identifiers and GUID-shaped values. Remove trailing Base64 padding when correlating token identifiers and preserve case. Padding removal does not convert GUID-shaped values into token identifiers. Inspect unmatched GUID-shaped values separately.",
          "sourceLabel": "Cloudbrothers: Now You See Me - AADGraphActivityLogs",
          "sourceUrl": "https://cloudbrothers.info/aadgraphactivitylogs/",
          "query": "AADGraphActivityLogs\n| where TimeGenerated > ago(90d)\n| summarize by SignInActivityId\n| summarize\n    Padded=countif(SignInActivityId endswith \"==\"),\n    GUID=countif(SignInActivityId matches regex @\"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$\"),\n    TotalUnique=dcount(SignInActivityId)",
          "queryLanguage": "kusto"
        },
        {
          "title": "SignInActivityId formats",
          "text": "SignInActivityId can contain padded token identifiers and GUID-shaped values. Remove trailing Base64 padding when correlating token identifiers and preserve case. Padding removal does not convert GUID-shaped values into token identifiers. Inspect unmatched GUID-shaped values separately.",
          "sourceLabel": "Invictus IR: The missing link - AADGraphActivityLogs finally arrives",
          "sourceUrl": "https://www.invictus-ir.com/news/the-missing-link-aadgraphactivitylogs-finally-arrives",
          "query": "AADGraphActivityLogs\n| where TimeGenerated > ago(90d)\n| summarize by SignInActivityId\n| summarize\n    Padded=countif(SignInActivityId endswith \"==\"),\n    GUID=countif(SignInActivityId matches regex @\"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$\"),\n    TotalUnique=dcount(SignInActivityId)",
          "queryLanguage": "kusto"
        }
      ],
      "kql": "let LeftEvents = EntraIdSignInEvents\n| where Timestamp > ago(7d)\n| extend LeftKey = trim_end(@\"=+\", tostring(UniqueTokenId))\n| where isnotempty(LeftKey);\nlet RightEvents = AADGraphActivityLogs\n| where TimeRequested > ago(7d)\n| extend RightKey = trim_end(@\"=+\", tostring(SignInActivityId))\n| where isnotempty(RightKey);\nLeftEvents\n| join kind=inner (RightEvents) on $left.LeftKey == $right.RightKey\n| project-away LeftKey, RightKey",
      "family": "entra-token"
    },
    {
      "id": "alert-info-to-evidence",
      "title": "Connect an alert to its evidence",
      "description": "Use the shared alert ID to view the evidence records associated with an alert.",
      "from": {
        "table": "AlertInfo",
        "column": "AlertId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "AlertEvidence",
        "column": "AlertId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Alerts",
        "Evidence"
      ],
      "guidance": "An alert can have multiple evidence records, so expect one-to-many results. Use the evidence role and entity type to understand how each item relates to the alert.",
      "family": "defender-alert",
      "otherNotes": []
    },
    {
      "id": "email-to-attachment-info",
      "title": "Find attachments from an email",
      "description": "Match an email to its attachment records using the shared Microsoft 365 NetworkMessageId.",
      "from": {
        "table": "EmailEvents",
        "column": "NetworkMessageId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "EmailAttachmentInfo",
        "column": "NetworkMessageId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Email",
        "Message correlation",
        "Attachments"
      ],
      "guidance": "An email can have multiple attachments, so expect one-to-many results. Use attachment names, hashes, and timestamps to review each file.",
      "family": "email-message",
      "otherNotes": []
    },
    {
      "id": "email-to-url-info",
      "title": "Find URLs contained in an email",
      "description": "Match an email to the URL records extracted from its content by NetworkMessageId.",
      "from": {
        "table": "EmailEvents",
        "column": "NetworkMessageId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "EmailUrlInfo",
        "column": "NetworkMessageId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Email",
        "Message correlation",
        "URLs"
      ],
      "guidance": "An email can contain multiple URLs. Review each URL and its domain alongside the email verdict and recipient context.",
      "family": "email-message",
      "otherNotes": []
    },
    {
      "id": "email-to-post-delivery-events",
      "title": "Review post-delivery actions for an email",
      "description": "Connect an email to actions recorded after delivery using NetworkMessageId.",
      "from": {
        "table": "EmailEvents",
        "column": "NetworkMessageId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "EmailPostDeliveryEvents",
        "column": "NetworkMessageId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Email",
        "Message correlation",
        "Remediation"
      ],
      "guidance": "A message may have multiple post-delivery action records. Compare action, result, and trigger fields to understand what happened and when.",
      "family": "email-message",
      "otherNotes": []
    },
    {
      "id": "email-to-url-click-events",
      "title": "Trace clicks back to an email",
      "description": "Match a clicked URL event to the originating email through NetworkMessageId.",
      "from": {
        "table": "EmailEvents",
        "column": "NetworkMessageId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "UrlClickEvents",
        "column": "NetworkMessageId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Email",
        "Message correlation",
        "URL clicks"
      ],
      "guidance": "A message can have multiple click records, including clicks by different recipients or at different times. Use the click timestamp, account, and URL to narrow the investigation.",
      "family": "email-message",
      "otherNotes": []
    },
    {
      "id": "device-info-to-process-events",
      "title": "Find process activity for a device",
      "description": "Connect the device inventory record to process events using the Defender device ID.",
      "from": {
        "table": "DeviceInfo",
        "column": "DeviceId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "DeviceProcessEvents",
        "column": "DeviceId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Device",
        "Process activity"
      ],
      "guidance": "A device can have many process events. Set a useful time range on both tables and retain the device name and event timestamp when reviewing results.",
      "family": "defender-device",
      "otherNotes": []
    },
    {
      "id": "device-info-to-network-events",
      "title": "Find network activity for a device",
      "description": "Connect the device inventory record to network events using the Defender device ID.",
      "from": {
        "table": "DeviceInfo",
        "column": "DeviceId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "DeviceNetworkEvents",
        "column": "DeviceId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Device",
        "Network activity"
      ],
      "guidance": "A device can have many network events. Set a useful time range on both tables and review remote addresses, ports, initiating process details, and event timestamps.",
      "family": "defender-device",
      "otherNotes": []
    },
    {
      "id": "identity-info-to-logon-events",
      "title": "Add identity details to logon activity",
      "description": "Match identity profile records to logon events with the Microsoft Entra account object ID.",
      "from": {
        "table": "IdentityInfo",
        "column": "AccountObjectId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "IdentityLogonEvents",
        "column": "AccountObjectId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Identity",
        "Account correlation",
        "Logon activity"
      ],
      "guidance": "An account can have many logon events, and IdentityInfo can contain multiple profile snapshots. For enrichment, select the newest IdentityInfo record per AccountObjectId and keep the logon event time for investigation.",
      "family": "entra-user",
      "otherNotes": []
    },
    {
      "id": "entra-signin-microsoft-graph-session",
      "title": "Follow an Entra session into Microsoft Graph activity",
      "description": "Match the authentication session ID in Entra sign-ins with SessionId in MicrosoftGraphActivityLogs.",
      "from": {
        "table": "EntraIdSignInEvents",
        "column": "SessionId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "MicrosoftGraphActivityLogs",
        "column": "SessionId",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Identity",
        "Microsoft Graph",
        "Microsoft Sentinel",
        "Session correlation"
      ],
      "guidance": "This is the Entra sid claim and links authentication artifacts from the same root sign-in. A session can contain many tokens and activity records; SessionId and UniqueTokenIdentifier are different keys. Exclude empty values and retain actor, tenant, and time context. Some application-only or background events have no session ID.",
      "otherNotes": [
        {
          "title": "Documented identifier fields",
          "text": "Microsoft documents SessionId as the unique authentication session identifier. Entra session identifiers link authentication artifacts originating from the same root authentication. MicrosoftGraphActivityLogs is available in the current schema; use its source classification when choosing the query environment.",
          "sourceLabel": "Microsoft Learn: MicrosoftGraphActivityLogs columns",
          "sourceUrl": "https://learn.microsoft.com/en-us/azure/azure-monitor/reference/tables/microsoftgraphactivitylogs",
          "query": "EntraIdSignInEvents\n| where Timestamp > ago(7d)\n| where isnotempty(SessionId)\n| join kind=inner (MicrosoftGraphActivityLogs\n    | where TimeGenerated > ago(7d)\n    | where isnotempty(SessionId)\n) on SessionId",
          "queryLanguage": "kusto"
        },
        {
          "title": "Follow the sid claim",
          "text": "Microsoft maps sid to SessionId in sign-in and Microsoft Graph activity logs.",
          "sourceLabel": "Microsoft Learn",
          "sourceUrl": "https://learn.microsoft.com/en-us/entra/identity/authentication/how-to-authentication-track-linkable-identifiers",
          "query": "let LeftEvents = EntraIdSignInEvents\n| where Timestamp > ago(7d)\n| extend LeftKey = tostring(SessionId)\n| where isnotempty(LeftKey);\nlet RightEvents = MicrosoftGraphActivityLogs\n| where TimeGenerated > ago(7d)\n| extend RightKey = tostring(SessionId)\n| where isnotempty(RightKey);\nLeftEvents\n| join kind=inner (RightEvents) on $left.LeftKey == $right.RightKey\n| project-away LeftKey, RightKey",
          "queryLanguage": "kusto"
        }
      ],
      "family": "entra-session"
    },
    {
      "id": "entra-signin-microsoft-graph-unique-token",
      "title": "Match the explicit token ID in Microsoft Graph activity",
      "description": "Match EntraIdSignInEvents.UniqueTokenId with the explicit UniqueTokenId field documented for MicrosoftGraphActivityLogs.",
      "from": {
        "table": "EntraIdSignInEvents",
        "column": "UniqueTokenId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "MicrosoftGraphActivityLogs",
        "column": "UniqueTokenId",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Identity",
        "Microsoft Graph",
        "Microsoft Sentinel",
        "Token correlation"
      ],
      "guidance": "Compare non-empty token identifiers exactly and preserve case; never lowercase a UTI. One token can have many activity records. Keep actor, tenant, application, and time context, and include the originating sign-in in the lookback. A missing match can reflect retention or collection gaps.",
      "otherNotes": [
        {
          "title": "Documented identifier fields",
          "text": "The MicrosoftGraphActivityLogs table reference describes UniqueTokenId as the unique token identifier used for the audited API call. The saved Entra schema describes UniqueTokenId as the token identifier passed during sign-in. MicrosoftGraphActivityLogs is available in the current schema; use its source classification when choosing the query environment.",
          "sourceLabel": "Microsoft Learn: MicrosoftGraphActivityLogs columns",
          "sourceUrl": "https://learn.microsoft.com/en-us/azure/azure-monitor/reference/tables/microsoftgraphactivitylogs",
          "query": "EntraIdSignInEvents\n| where Timestamp > ago(7d)\n| where isnotempty(UniqueTokenId)\n| join kind=inner (MicrosoftGraphActivityLogs\n    | where TimeGenerated > ago(7d)\n    | where isnotempty(UniqueTokenId)\n) on UniqueTokenId",
          "queryLanguage": "kusto"
        },
        {
          "title": "Explicit token column",
          "text": "The Microsoft Graph activity table also exposes UniqueTokenId. Check which token field is populated in the collected events.",
          "sourceLabel": "Microsoft Learn",
          "sourceUrl": "https://learn.microsoft.com/en-us/azure/azure-monitor/reference/tables/microsoftgraphactivitylogs",
          "query": "let LeftEvents = EntraIdSignInEvents\n| where Timestamp > ago(7d)\n| extend LeftKey = tostring(UniqueTokenId)\n| where isnotempty(LeftKey);\nlet RightEvents = MicrosoftGraphActivityLogs\n| where TimeGenerated > ago(7d)\n| extend RightKey = tostring(UniqueTokenId)\n| where isnotempty(RightKey);\nLeftEvents\n| join kind=inner (RightEvents) on $left.LeftKey == $right.RightKey\n| project-away LeftKey, RightKey",
          "queryLanguage": "kusto"
        }
      ],
      "family": "entra-token"
    },
    {
      "id": "entra-signin-cloudapp-exchange-session",
      "title": "Follow an Entra session into Exchange mailbox activity",
      "description": "Match EntraIdSignInEvents.SessionId with the SessionId property inside CloudAppEvents.RawEventData for supported Exchange audit events.",
      "from": {
        "table": "EntraIdSignInEvents",
        "column": "SessionId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "CloudAppEvents",
        "column": "RawEventData",
        "path": "SessionId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Identity",
        "Exchange Online",
        "Session correlation",
        "Nested JSON"
      ],
      "guidance": "The source example extracts RawEventData.SessionId from MailItemsAccessed events. Availability and meaning depend on the audit workload; this mapping does not cover every CloudAppEvents record. Retain account and time context, exclude empty identifiers, and allow for multiple events per session. This correlation also matches AccountObjectId.",
      "kql": "let SignIns = EntraIdSignInEvents\n| where Timestamp > ago(7d)\n| where isnotempty(SessionId) and isnotempty(AccountObjectId);\nCloudAppEvents\n| where Timestamp > ago(7d)\n| where ActionType == \"MailItemsAccessed\"\n| extend SessionId = tostring(RawEventData.SessionId)\n| where isnotempty(SessionId) and isnotempty(AccountObjectId)\n| join kind=inner (SignIns) on SessionId, AccountObjectId",
      "otherNotes": [
        {
          "title": "Mailbox activity example",
          "text": "Thomas’s hunting query extracts SessionId from RawEventData while examining MailItemsAccessed events. It demonstrates the nested property; it does not itself join that property to Entra sign-ins.",
          "sourceLabel": "Cloud-Architekt: Hunt a multi-stage incident",
          "sourceUrl": "https://github.com/Cloud-Architekt/AzureAD-Attack-Defense/blob/main/queries/MDA-Hunt-Multi-Stage-Incident.kql",
          "query": "CloudAppEvents\n| where Timestamp > ago(7d)\n| where ActionType == \"MailItemsAccessed\"\n| extend ExchangeSessionId = tostring(RawEventData.SessionId)\n| where isnotempty(ExchangeSessionId)\n| project Timestamp, AccountObjectId, ActionType, ExchangeSessionId",
          "queryLanguage": "kusto"
        },
        {
          "title": "Linking Exchange activity to authentication",
          "text": "Microsoft documents session identifiers in Exchange audit logs as linkable to Entra sign-ins. Some aggregated entries and background activity omit these identifiers.",
          "sourceLabel": "Microsoft Learn: Linkable identifiers in Exchange Online logs",
          "sourceUrl": "https://learn.microsoft.com/en-us/entra/identity/authentication/how-to-authentication-track-linkable-identifiers#linkable-identifiers-in-microsoft-exchange-online-logs",
          "query": "let SignIns = EntraIdSignInEvents\n| where Timestamp > ago(7d)\n| where isnotempty(SessionId) and isnotempty(AccountObjectId);\nCloudAppEvents\n| where Timestamp > ago(7d)\n| where ActionType == \"MailItemsAccessed\"\n| extend SessionId = tostring(RawEventData.SessionId)\n| where isnotempty(SessionId) and isnotempty(AccountObjectId)\n| join kind=inner (SignIns) on SessionId, AccountObjectId",
          "queryLanguage": "kusto"
        }
      ],
      "family": "entra-session"
    },
    {
      "id": "entra-signin-cloudapp-m365-session",
      "title": "Follow an Entra session into Microsoft 365 activity",
      "description": "Match EntraIdSignInEvents.SessionId with CloudAppEvents.RawEventData.AppAccessContext.AADSessionId in supported Microsoft 365 events.",
      "from": {
        "table": "EntraIdSignInEvents",
        "column": "SessionId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "CloudAppEvents",
        "column": "RawEventData",
        "path": "AppAccessContext.AADSessionId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Identity",
        "Microsoft 365",
        "Session correlation",
        "Nested JSON"
      ],
      "guidance": "A session can contain several tokens and many activity records. This nested field is only available in some Microsoft 365 events. Exclude empty identifiers and matches AccountObjectId as well. Adjust the lookback to include the originating sign-in and the later activity.",
      "kql": "let SignIns = EntraIdSignInEvents\n| where Timestamp > ago(7d)\n| where isnotempty(SessionId) and isnotempty(AccountObjectId);\nCloudAppEvents\n| where Timestamp > ago(7d)\n| where Application != \"Microsoft Azure\"\n| where tostring(RawEventData.Workload) in (\"Exchange\", \"SharePoint\", \"OneDrive\", \"MicrosoftTeams\")\n| extend SessionId = tostring(RawEventData.AppAccessContext.AADSessionId)\n| where isnotempty(SessionId) and isnotempty(AccountObjectId)\n| join kind=inner (SignIns) on SessionId, AccountObjectId",
      "otherNotes": [
        {
          "title": "Token hunting example",
          "text": "Thomas’s query extracts this field from Microsoft 365 activity and correlates activity with Entra sign-in logs by token ID. It also extracts the session ID for session filtering. This example applies that session identifier to EntraIdSignInEvents.",
          "sourceLabel": "Cloud-Architekt: Microsoft cloud activity",
          "sourceUrl": "https://github.com/Cloud-Architekt/AzureSentinel/blob/main/Hunting%20Queries/EID-TokenHunting/MicrosoftCloudActivity.func",
          "query": "let SignIns = EntraIdSignInEvents\n| where Timestamp > ago(7d)\n| where isnotempty(SessionId) and isnotempty(AccountObjectId);\nCloudAppEvents\n| where Timestamp > ago(7d)\n| where Application != \"Microsoft Azure\"\n| where tostring(RawEventData.Workload) in (\"Exchange\", \"SharePoint\", \"OneDrive\", \"MicrosoftTeams\")\n| extend SessionId = tostring(RawEventData.AppAccessContext.AADSessionId)\n| where isnotempty(SessionId) and isnotempty(AccountObjectId)\n| join kind=inner (SignIns) on SessionId, AccountObjectId",
          "queryLanguage": "kusto"
        }
      ],
      "family": "entra-session"
    },
    {
      "id": "entra-signin-cloudapp-m365-token",
      "title": "Follow an Entra token into Microsoft 365 activity",
      "description": "Match EntraIdSignInEvents.UniqueTokenId with CloudAppEvents.RawEventData.AppAccessContext.UniqueTokenId in supported Microsoft 365 events.",
      "from": {
        "table": "EntraIdSignInEvents",
        "column": "UniqueTokenId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "CloudAppEvents",
        "column": "RawEventData",
        "path": "AppAccessContext.UniqueTokenId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Identity",
        "Microsoft 365",
        "Token correlation",
        "Nested JSON"
      ],
      "guidance": "Compare token IDs exactly and preserve case. One token can appear in several activity records. This nested field is only available in some Microsoft 365 events. Exclude empty identifiers and matches AccountObjectId as well. Adjust the lookback to include the originating sign-in and the later activity.",
      "kql": "let SignIns = EntraIdSignInEvents\n| where Timestamp > ago(7d)\n| where isnotempty(UniqueTokenId) and isnotempty(AccountObjectId);\nCloudAppEvents\n| where Timestamp > ago(7d)\n| where Application != \"Microsoft Azure\"\n| where tostring(RawEventData.Workload) in (\"Exchange\", \"SharePoint\", \"OneDrive\", \"MicrosoftTeams\")\n| extend UniqueTokenId = tostring(RawEventData.AppAccessContext.UniqueTokenId)\n| where isnotempty(UniqueTokenId) and isnotempty(AccountObjectId)\n| join kind=inner (SignIns) on UniqueTokenId, AccountObjectId",
      "otherNotes": [
        {
          "title": "Token hunting example",
          "text": "Thomas’s query extracts this field from Microsoft 365 activity and correlates activity with Entra sign-in logs by token ID. This example uses the corresponding UniqueTokenId field in EntraIdSignInEvents.",
          "sourceLabel": "Cloud-Architekt: Microsoft cloud activity",
          "sourceUrl": "https://github.com/Cloud-Architekt/AzureSentinel/blob/main/Hunting%20Queries/EID-TokenHunting/MicrosoftCloudActivity.func",
          "query": "let SignIns = EntraIdSignInEvents\n| where Timestamp > ago(7d)\n| where isnotempty(UniqueTokenId) and isnotempty(AccountObjectId);\nCloudAppEvents\n| where Timestamp > ago(7d)\n| where Application != \"Microsoft Azure\"\n| where tostring(RawEventData.Workload) in (\"Exchange\", \"SharePoint\", \"OneDrive\", \"MicrosoftTeams\")\n| extend UniqueTokenId = tostring(RawEventData.AppAccessContext.UniqueTokenId)\n| where isnotempty(UniqueTokenId) and isnotempty(AccountObjectId)\n| join kind=inner (SignIns) on UniqueTokenId, AccountObjectId",
          "queryLanguage": "kusto"
        }
      ],
      "family": "entra-token"
    },
    {
      "id": "entra-signin-cloudapp-azure-session",
      "title": "Follow an Entra session into Azure activity",
      "description": "Match EntraIdSignInEvents.SessionId with CloudAppEvents.RawEventData.claims.sid in supported Microsoft Azure events.",
      "from": {
        "table": "EntraIdSignInEvents",
        "column": "SessionId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "CloudAppEvents",
        "column": "RawEventData",
        "path": "claims.sid",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Identity",
        "Microsoft Azure",
        "Session correlation",
        "Nested JSON"
      ],
      "guidance": "A session can contain several tokens and many activity records. This nested field is only available in some Microsoft Azure events. Exclude empty identifiers and matches AccountObjectId as well. Adjust the lookback to include the originating sign-in and the later activity. The claims value can be a JSON object or a JSON-encoded string; parse both forms.",
      "kql": "let SignIns = EntraIdSignInEvents\n| where Timestamp > ago(7d)\n| where isnotempty(SessionId) and isnotempty(AccountObjectId);\nCloudAppEvents\n| where Timestamp > ago(7d)\n| where Application == \"Microsoft Azure\"\n| extend SessionId = tostring(parse_json(tostring(RawEventData.claims)).sid)\n| where isnotempty(SessionId) and isnotempty(AccountObjectId)\n| join kind=inner (SignIns) on SessionId, AccountObjectId",
      "otherNotes": [
        {
          "title": "Token hunting example",
          "text": "Thomas’s query extracts this field from Microsoft Azure activity and correlates activity with Entra sign-in logs by token ID. It also extracts the session ID for session filtering. This example applies that session identifier to EntraIdSignInEvents.",
          "sourceLabel": "Cloud-Architekt: Microsoft cloud activity",
          "sourceUrl": "https://github.com/Cloud-Architekt/AzureSentinel/blob/main/Hunting%20Queries/EID-TokenHunting/MicrosoftCloudActivity.func",
          "query": "let SignIns = EntraIdSignInEvents\n| where Timestamp > ago(7d)\n| where isnotempty(SessionId) and isnotempty(AccountObjectId);\nCloudAppEvents\n| where Timestamp > ago(7d)\n| where Application == \"Microsoft Azure\"\n| extend SessionId = tostring(parse_json(tostring(RawEventData.claims)).sid)\n| where isnotempty(SessionId) and isnotempty(AccountObjectId)\n| join kind=inner (SignIns) on SessionId, AccountObjectId",
          "queryLanguage": "kusto"
        }
      ],
      "family": "entra-session"
    },
    {
      "id": "entra-signin-cloudapp-azure-claims-token",
      "title": "Find an Entra token in Azure activity claims",
      "description": "Match EntraIdSignInEvents.UniqueTokenId with CloudAppEvents.RawEventData.claims.uti in supported Microsoft Azure events.",
      "from": {
        "table": "EntraIdSignInEvents",
        "column": "UniqueTokenId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "CloudAppEvents",
        "column": "RawEventData",
        "path": "claims.uti",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Identity",
        "Microsoft Azure",
        "Token correlation",
        "Nested JSON"
      ],
      "guidance": "Compare token IDs exactly and preserve case. One token can appear in several activity records. This nested field is only available in some Microsoft Azure events. Exclude empty identifiers and matches AccountObjectId as well. Adjust the lookback to include the originating sign-in and the later activity. The claims value can be a JSON object or a JSON-encoded string; parse both forms.",
      "kql": "let SignIns = EntraIdSignInEvents\n| where Timestamp > ago(7d)\n| where isnotempty(UniqueTokenId) and isnotempty(AccountObjectId);\nCloudAppEvents\n| where Timestamp > ago(7d)\n| where Application == \"Microsoft Azure\"\n| extend UniqueTokenId = tostring(parse_json(tostring(RawEventData.claims)).uti)\n| where isnotempty(UniqueTokenId) and isnotempty(AccountObjectId)\n| join kind=inner (SignIns) on UniqueTokenId, AccountObjectId",
      "otherNotes": [
        {
          "title": "Token hunting example",
          "text": "Thomas’s query extracts this field from Microsoft Azure activity and correlates activity with Entra sign-in logs by token ID. This example uses the corresponding UniqueTokenId field in EntraIdSignInEvents.",
          "sourceLabel": "Cloud-Architekt: Microsoft cloud activity",
          "sourceUrl": "https://github.com/Cloud-Architekt/AzureSentinel/blob/main/Hunting%20Queries/EID-TokenHunting/MicrosoftCloudActivity.func",
          "query": "let SignIns = EntraIdSignInEvents\n| where Timestamp > ago(7d)\n| where isnotempty(UniqueTokenId) and isnotempty(AccountObjectId);\nCloudAppEvents\n| where Timestamp > ago(7d)\n| where Application == \"Microsoft Azure\"\n| extend UniqueTokenId = tostring(parse_json(tostring(RawEventData.claims)).uti)\n| where isnotempty(UniqueTokenId) and isnotempty(AccountObjectId)\n| join kind=inner (SignIns) on UniqueTokenId, AccountObjectId",
          "queryLanguage": "kusto"
        }
      ],
      "family": "entra-token"
    },
    {
      "id": "entra-signin-cloudapp-azure-token",
      "title": "Find an Entra token in the Azure event token field",
      "description": "Match EntraIdSignInEvents.UniqueTokenId with CloudAppEvents.RawEventData.uniqueTokenId in supported Microsoft Azure events.",
      "from": {
        "table": "EntraIdSignInEvents",
        "column": "UniqueTokenId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "CloudAppEvents",
        "column": "RawEventData",
        "path": "uniqueTokenId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Identity",
        "Microsoft Azure",
        "Token correlation",
        "Nested JSON"
      ],
      "guidance": "Compare token IDs exactly and preserve case. One token can appear in several activity records. This nested field is only available in some Microsoft Azure events. Exclude empty identifiers and matches AccountObjectId as well. Adjust the lookback to include the originating sign-in and the later activity. The property name starts with a lowercase u. Other Azure events expose the token in claims.uti, which has its own mapping.",
      "kql": "let SignIns = EntraIdSignInEvents\n| where Timestamp > ago(7d)\n| where isnotempty(UniqueTokenId) and isnotempty(AccountObjectId);\nCloudAppEvents\n| where Timestamp > ago(7d)\n| where Application == \"Microsoft Azure\"\n| extend UniqueTokenId = tostring(RawEventData.uniqueTokenId)\n| where isnotempty(UniqueTokenId) and isnotempty(AccountObjectId)\n| join kind=inner (SignIns) on UniqueTokenId, AccountObjectId",
      "otherNotes": [
        {
          "title": "Token hunting example",
          "text": "Thomas’s query extracts this field from Microsoft Azure activity and correlates activity with Entra sign-in logs by token ID. This example uses the corresponding UniqueTokenId field in EntraIdSignInEvents.",
          "sourceLabel": "Cloud-Architekt: Sensitive privileged endpoint activity",
          "sourceUrl": "https://github.com/Cloud-Architekt/AzureSentinel/blob/main/Hunting%20Queries/EID-TokenHunting/SensitivePrivilegedEndpointActivity.func",
          "query": "let SignIns = EntraIdSignInEvents\n| where Timestamp > ago(7d)\n| where isnotempty(UniqueTokenId) and isnotempty(AccountObjectId);\nCloudAppEvents\n| where Timestamp > ago(7d)\n| where Application == \"Microsoft Azure\"\n| extend UniqueTokenId = tostring(RawEventData.uniqueTokenId)\n| where isnotempty(UniqueTokenId) and isnotempty(AccountObjectId)\n| join kind=inner (SignIns) on UniqueTokenId, AccountObjectId",
          "queryLanguage": "kusto"
        }
      ],
      "family": "entra-token"
    },
    {
      "id": "behavior-info-to-entities",
      "title": "See the entities involved in a behavior",
      "description": "Connect a behavior in BehaviorInfo to its related records in BehaviorEntities using BehaviorId.",
      "from": {
        "table": "BehaviorInfo",
        "column": "BehaviorId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "BehaviorEntities",
        "column": "BehaviorId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Behaviors",
        "Entities",
        "Microsoft Defender XDR"
      ],
      "guidance": "One behavior can involve several entities, so a match can return several rows. Use EntityType and EntityRole to narrow the results to the entities you need. Keep the time window wide enough to include records from both tables.",
      "kql": "BehaviorInfo\n| where Timestamp > ago(7d)\n| where isnotempty(BehaviorId)\n| join kind=inner (BehaviorEntities\n    | where Timestamp > ago(7d)\n    | where isnotempty(BehaviorId)\n) on BehaviorId",
      "otherNotes": [
        {
          "title": "Behavior enrichment example",
          "text": "Thomas’s query joins BehaviorEntities with BehaviorInfo on BehaviorId, then uses the related user, IP address, and application entities to investigate the behavior. Both schema descriptions identify BehaviorId as the unique identifier for the behavior.",
          "sourceLabel": "Cloud-Architekt: Enrich sign-ins with XDR behaviors",
          "sourceUrl": "https://github.com/Cloud-Architekt/AzureSentinel/blob/main/Hunting%20Queries/EID-TokenHunting/XdrBehaviorsEnrichedSignIns.func",
          "query": "BehaviorInfo\n| where Timestamp > ago(7d)\n| where isnotempty(BehaviorId)\n| join kind=inner (BehaviorEntities\n    | where Timestamp > ago(7d)\n    | where isnotempty(BehaviorId)\n) on BehaviorId",
          "queryLanguage": "kusto"
        }
      ],
      "family": "defender-behavior"
    },
    {
      "id": "exposure-graph-source-node",
      "title": "Inspect the source node of an exposure graph edge",
      "description": "Connect ExposureGraphEdges.SourceNodeId to ExposureGraphNodes.NodeId to inspect the node at the source end of an edge.",
      "from": {
        "table": "ExposureGraphEdges",
        "column": "SourceNodeId"
      },
      "to": {
        "table": "ExposureGraphNodes",
        "column": "NodeId"
      },
      "tags": [
        "Exposure Management",
        "Graph",
        "Microsoft Defender XDR"
      ],
      "guidance": "An edge runs from its source node to its target node. This mapping resolves the source end; the other end has its own mapping. A node can participate in many edges. Filter by EdgeLabel or node type to focus on the relationships you need. These tables have no Timestamp column in the saved schema, so use available event context for timing.",
      "kql": "ExposureGraphEdges\n| where isnotempty(SourceNodeId)\n| join kind=inner (ExposureGraphNodes\n    | where isnotempty(NodeId)\n) on $left.SourceNodeId == $right.NodeId",
      "otherNotes": [
        {
          "title": "Exposed token hunting example",
          "text": "Thomas’s exposed-token query joins graph edges to nodes through SourceNodeId and NodeId. The saved schema explicitly describes SourceNodeId as the edge’s source node ID and NodeId as the unique node identifier.",
          "sourceLabel": "Cloud-Architekt: Overview of exposed token artifacts",
          "sourceUrl": "https://github.com/Cloud-Architekt/AzureSentinel/blob/main/Hunting%20Queries/EID-TokenHunting/ExposedTokens-OverviewOfTokenArtifcats.kql",
          "query": "ExposureGraphEdges\n| where isnotempty(SourceNodeId)\n| join kind=inner (ExposureGraphNodes\n    | where isnotempty(NodeId)\n) on $left.SourceNodeId == $right.NodeId",
          "queryLanguage": "kusto"
        }
      ],
      "family": "exposure-node"
    },
    {
      "id": "exposure-graph-target-node",
      "title": "Inspect the target node of an exposure graph edge",
      "description": "Connect ExposureGraphEdges.TargetNodeId to ExposureGraphNodes.NodeId to inspect the node at the target end of an edge.",
      "from": {
        "table": "ExposureGraphEdges",
        "column": "TargetNodeId"
      },
      "to": {
        "table": "ExposureGraphNodes",
        "column": "NodeId"
      },
      "tags": [
        "Exposure Management",
        "Graph",
        "Microsoft Defender XDR"
      ],
      "guidance": "An edge runs from its source node to its target node. This mapping resolves the target end; the other end has its own mapping. A node can participate in many edges. Filter by EdgeLabel or node type to focus on the relationships you need. These tables have no Timestamp column in the saved schema, so use available event context for timing.",
      "kql": "ExposureGraphEdges\n| where isnotempty(TargetNodeId)\n| join kind=inner (ExposureGraphNodes\n    | where isnotempty(NodeId)\n) on $left.TargetNodeId == $right.NodeId",
      "otherNotes": [
        {
          "title": "Exposed token hunting example",
          "text": "Thomas’s exposed-token query joins graph edges to nodes through TargetNodeId and NodeId. The saved schema explicitly describes TargetNodeId as the edge’s target node ID and NodeId as the unique node identifier.",
          "sourceLabel": "Cloud-Architekt: Overview of exposed token artifacts",
          "sourceUrl": "https://github.com/Cloud-Architekt/AzureSentinel/blob/main/Hunting%20Queries/EID-TokenHunting/ExposedTokens-OverviewOfTokenArtifcats.kql",
          "query": "ExposureGraphEdges\n| where isnotempty(TargetNodeId)\n| join kind=inner (ExposureGraphNodes\n    | where isnotempty(NodeId)\n) on $left.TargetNodeId == $right.NodeId",
          "queryLanguage": "kusto"
        }
      ],
      "family": "exposure-node"
    },
    {
      "id": "signin-logs-graphapi-audit-events-unique-token-identifier",
      "title": "Follow SigninLogs tokens into GraphAPIAuditEvents",
      "description": "Match SigninLogs.UniqueTokenIdentifier to GraphAPIAuditEvents.UniqueTokenIdentifier for token-level activity correlation.",
      "from": {
        "table": "SigninLogs",
        "column": "UniqueTokenIdentifier",
        "timeColumn": "TimeGenerated"
      },
      "to": {
        "table": "GraphAPIAuditEvents",
        "column": "UniqueTokenIdentifier",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Identity",
        "Token correlation",
        "Microsoft Graph"
      ],
      "guidance": "Compare non-empty token identifiers exactly and preserve case; never lowercase a UTI. One token can have many activity records. Keep actor, tenant, application, and time context, and include the originating sign-in in the lookback. A missing match can reflect retention or collection gaps.",
      "otherNotes": [
        {
          "title": "Token claim mapping",
          "text": "Use the per-token identifier, not sign-in Id, request Id, or CorrelationId.",
          "sourceLabel": "Microsoft Learn",
          "sourceUrl": "https://learn.microsoft.com/en-us/entra/identity/authentication/how-to-authentication-track-linkable-identifiers",
          "query": "let LeftEvents = SigninLogs\n| where TimeGenerated > ago(7d)\n| extend LeftKey = tostring(UniqueTokenIdentifier)\n| where isnotempty(LeftKey);\nlet RightEvents = GraphAPIAuditEvents\n| where Timestamp > ago(7d)\n| extend RightKey = tostring(UniqueTokenIdentifier)\n| where isnotempty(RightKey);\nLeftEvents\n| join kind=inner (RightEvents) on $left.LeftKey == $right.RightKey\n| project-away LeftKey, RightKey",
          "queryLanguage": "kusto"
        }
      ],
      "family": "entra-token"
    },
    {
      "id": "signin-logs-microsoft-graph-activity-logs-sign-in-activity-id",
      "title": "Follow SigninLogs tokens into MicrosoftGraphActivityLogs",
      "description": "Match SigninLogs.UniqueTokenIdentifier to MicrosoftGraphActivityLogs.SignInActivityId for token-level activity correlation.",
      "from": {
        "table": "SigninLogs",
        "column": "UniqueTokenIdentifier",
        "timeColumn": "TimeGenerated"
      },
      "to": {
        "table": "MicrosoftGraphActivityLogs",
        "column": "SignInActivityId",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Identity",
        "Token correlation",
        "Microsoft Graph",
        "Microsoft Sentinel"
      ],
      "guidance": "Compare non-empty token identifiers exactly and preserve case; never lowercase a UTI. One token can have many activity records. Keep actor, tenant, application, and time context, and include the originating sign-in in the lookback. A missing match can reflect retention or collection gaps.",
      "otherNotes": [
        {
          "title": "Token claim mapping",
          "text": "Use the per-token identifier, not sign-in Id, request Id, or CorrelationId.",
          "sourceLabel": "Microsoft Learn",
          "sourceUrl": "https://learn.microsoft.com/en-us/entra/identity/authentication/how-to-authentication-track-linkable-identifiers",
          "query": "let LeftEvents = SigninLogs\n| where TimeGenerated > ago(7d)\n| extend LeftKey = tostring(UniqueTokenIdentifier)\n| where isnotempty(LeftKey);\nlet RightEvents = MicrosoftGraphActivityLogs\n| where TimeGenerated > ago(7d)\n| extend RightKey = tostring(SignInActivityId)\n| where isnotempty(RightKey);\nLeftEvents\n| join kind=inner (RightEvents) on $left.LeftKey == $right.RightKey\n| project-away LeftKey, RightKey",
          "queryLanguage": "kusto"
        }
      ],
      "family": "entra-token"
    },
    {
      "id": "signin-logs-microsoft-graph-activity-logs-unique-token-id",
      "title": "Follow SigninLogs tokens into MicrosoftGraphActivityLogs",
      "description": "Match SigninLogs.UniqueTokenIdentifier to MicrosoftGraphActivityLogs.UniqueTokenId for token-level activity correlation.",
      "from": {
        "table": "SigninLogs",
        "column": "UniqueTokenIdentifier",
        "timeColumn": "TimeGenerated"
      },
      "to": {
        "table": "MicrosoftGraphActivityLogs",
        "column": "UniqueTokenId",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Identity",
        "Token correlation",
        "Microsoft Graph",
        "Microsoft Sentinel"
      ],
      "guidance": "Compare non-empty token identifiers exactly and preserve case; never lowercase a UTI. One token can have many activity records. Keep actor, tenant, application, and time context, and include the originating sign-in in the lookback. A missing match can reflect retention or collection gaps.",
      "otherNotes": [
        {
          "title": "Token claim mapping",
          "text": "Use the per-token identifier, not sign-in Id, request Id, or CorrelationId.",
          "sourceLabel": "Microsoft Learn",
          "sourceUrl": "https://learn.microsoft.com/en-us/azure/azure-monitor/reference/tables/microsoftgraphactivitylogs",
          "query": "let LeftEvents = SigninLogs\n| where TimeGenerated > ago(7d)\n| extend LeftKey = tostring(UniqueTokenIdentifier)\n| where isnotempty(LeftKey);\nlet RightEvents = MicrosoftGraphActivityLogs\n| where TimeGenerated > ago(7d)\n| extend RightKey = tostring(UniqueTokenId)\n| where isnotempty(RightKey);\nLeftEvents\n| join kind=inner (RightEvents) on $left.LeftKey == $right.RightKey\n| project-away LeftKey, RightKey",
          "queryLanguage": "kusto"
        }
      ],
      "family": "entra-token"
    },
    {
      "id": "signin-logs-aad-graph-activity-logs-sign-in-activity-id",
      "title": "Follow SigninLogs tokens into AADGraphActivityLogs",
      "description": "Match SigninLogs.UniqueTokenIdentifier to AADGraphActivityLogs.SignInActivityId for token-level activity correlation.",
      "from": {
        "table": "SigninLogs",
        "column": "UniqueTokenIdentifier",
        "timeColumn": "TimeGenerated"
      },
      "to": {
        "table": "AADGraphActivityLogs",
        "column": "SignInActivityId",
        "timeColumn": "TimeRequested"
      },
      "tags": [
        "Identity",
        "Token correlation",
        "Azure AD Graph",
        "Microsoft Sentinel"
      ],
      "guidance": "Compare non-empty token identifiers exactly and preserve case; never lowercase a UTI. One token can have many activity records. Keep actor, tenant, application, and time context, and include the originating sign-in in the lookback. A missing match can reflect retention or collection gaps. AAD Graph SignInActivityId is a best-effort token link. Exact equality can miss padded values. Remove only trailing Base64 padding on both sides and preserve case. This does not convert GUID-shaped IDs to Base64 or equate them with sign-in Id/CorrelationId. Inspect unmatched GUID-shaped values separately. TimeRequested is the request time; allow for delayed ingestion.",
      "kql": "let LeftEvents = SigninLogs\n| where TimeGenerated > ago(7d)\n| extend LeftKey = trim_end(@\"=+\", tostring(UniqueTokenIdentifier))\n| where isnotempty(LeftKey);\nlet RightEvents = AADGraphActivityLogs\n| where TimeRequested > ago(7d)\n| extend RightKey = trim_end(@\"=+\", tostring(SignInActivityId))\n| where isnotempty(RightKey);\nLeftEvents\n| join kind=inner (RightEvents) on $left.LeftKey == $right.RightKey\n| project-away LeftKey, RightKey",
      "otherNotes": [
        {
          "title": "SignInActivityId formats",
          "text": "SignInActivityId can contain padded token identifiers and GUID-shaped values. Remove trailing Base64 padding when correlating token identifiers and preserve case. Padding removal does not convert GUID-shaped values into token identifiers. Inspect unmatched GUID-shaped values separately.",
          "sourceLabel": "Cloudbrothers: Now You See Me - AADGraphActivityLogs",
          "sourceUrl": "https://cloudbrothers.info/aadgraphactivitylogs/",
          "query": "AADGraphActivityLogs\n| where TimeGenerated > ago(90d)\n| summarize by SignInActivityId\n| summarize\n    Padded=countif(SignInActivityId endswith \"==\"),\n    GUID=countif(SignInActivityId matches regex @\"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$\"),\n    TotalUnique=dcount(SignInActivityId)",
          "queryLanguage": "kusto"
        },
        {
          "title": "SignInActivityId formats",
          "text": "SignInActivityId can contain padded token identifiers and GUID-shaped values. Remove trailing Base64 padding when correlating token identifiers and preserve case. Padding removal does not convert GUID-shaped values into token identifiers. Inspect unmatched GUID-shaped values separately.",
          "sourceLabel": "Invictus IR: The missing link - AADGraphActivityLogs finally arrives",
          "sourceUrl": "https://www.invictus-ir.com/news/the-missing-link-aadgraphactivitylogs-finally-arrives",
          "query": "AADGraphActivityLogs\n| where TimeGenerated > ago(90d)\n| summarize by SignInActivityId\n| summarize\n    Padded=countif(SignInActivityId endswith \"==\"),\n    GUID=countif(SignInActivityId matches regex @\"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$\"),\n    TotalUnique=dcount(SignInActivityId)",
          "queryLanguage": "kusto"
        }
      ],
      "family": "entra-token"
    },
    {
      "id": "signin-logs-microsoft-graph-activity-logs-session",
      "title": "Follow SigninLogs sessions into MicrosoftGraphActivityLogs",
      "description": "Match the Entra session identifier across SigninLogs and MicrosoftGraphActivityLogs.",
      "from": {
        "table": "SigninLogs",
        "column": "SessionId",
        "timeColumn": "TimeGenerated"
      },
      "to": {
        "table": "MicrosoftGraphActivityLogs",
        "column": "SessionId",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Identity",
        "Session correlation",
        "Microsoft Sentinel"
      ],
      "guidance": "This is the Entra sid claim and links authentication artifacts from the same root sign-in. A session can contain many tokens and activity records; SessionId and UniqueTokenIdentifier are different keys. Exclude empty values and retain actor, tenant, and time context. Some application-only or background events have no session ID.",
      "family": "entra-session",
      "otherNotes": []
    },
    {
      "id": "signin-logs-aad-graph-activity-logs-session",
      "title": "Follow SigninLogs sessions into AADGraphActivityLogs",
      "description": "Match the Entra session identifier across SigninLogs and AADGraphActivityLogs.",
      "from": {
        "table": "SigninLogs",
        "column": "SessionId",
        "timeColumn": "TimeGenerated"
      },
      "to": {
        "table": "AADGraphActivityLogs",
        "column": "SessionId",
        "timeColumn": "TimeRequested"
      },
      "tags": [
        "Identity",
        "Session correlation",
        "Microsoft Sentinel"
      ],
      "guidance": "This is the Entra sid claim and links authentication artifacts from the same root sign-in. A session can contain many tokens and activity records; SessionId and UniqueTokenIdentifier are different keys. Exclude empty values and retain actor, tenant, and time context. Some application-only or background events have no session ID. Use TimeRequested for event timing and allow for ingestion delay.",
      "family": "entra-session",
      "otherNotes": []
    },
    {
      "id": "signin-logs-office-activity-token",
      "title": "Follow SigninLogs tokens into OfficeActivity",
      "description": "Match SigninLogs.UniqueTokenIdentifier to OfficeActivity.AppAccessContext.UniqueTokenId in supported Microsoft 365 audit records.",
      "from": {
        "table": "SigninLogs",
        "column": "UniqueTokenIdentifier",
        "timeColumn": "TimeGenerated"
      },
      "to": {
        "table": "OfficeActivity",
        "column": "AppAccessContext",
        "path": "UniqueTokenId",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Identity",
        "Microsoft 365",
        "Microsoft Sentinel",
        "Token correlation",
        "Nested JSON"
      ],
      "guidance": "Compare non-empty token identifiers exactly and preserve case; never lowercase a UTI. One token can have many activity records. Keep actor, tenant, application, and time context, and include the originating sign-in in the lookback. A missing match can reflect retention or collection gaps. AppAccessContext is populated only for supported Exchange, SharePoint, and Teams audit events; aggregated or background events can omit it. The property names are case-sensitive.",
      "otherNotes": [
        {
          "title": "Identifier reference",
          "text": "Match SigninLogs.UniqueTokenIdentifier to OfficeActivity.AppAccessContext.UniqueTokenId in supported Microsoft 365 audit records.",
          "sourceLabel": "Microsoft Learn",
          "sourceUrl": "https://learn.microsoft.com/en-us/entra/identity/authentication/how-to-authentication-track-linkable-identifiers",
          "query": "let LeftEvents = SigninLogs\n| where TimeGenerated > ago(7d)\n| extend LeftKey = tostring(UniqueTokenIdentifier)\n| where isnotempty(LeftKey);\nlet RightEvents = OfficeActivity\n| where TimeGenerated > ago(7d)\n| extend RightKey = tostring(parse_json(tostring(AppAccessContext)).UniqueTokenId)\n| where isnotempty(RightKey);\nLeftEvents\n| join kind=inner (RightEvents) on $left.LeftKey == $right.RightKey\n| project-away LeftKey, RightKey",
          "queryLanguage": "kusto"
        }
      ],
      "family": "entra-token"
    },
    {
      "id": "signin-logs-office-activity-session",
      "title": "Follow SigninLogs sessions into OfficeActivity",
      "description": "Match SigninLogs.SessionId to OfficeActivity.AppAccessContext.AADSessionId in supported Microsoft 365 audit records.",
      "from": {
        "table": "SigninLogs",
        "column": "SessionId",
        "timeColumn": "TimeGenerated"
      },
      "to": {
        "table": "OfficeActivity",
        "column": "AppAccessContext",
        "path": "AADSessionId",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Identity",
        "Microsoft 365",
        "Microsoft Sentinel",
        "Session correlation",
        "Nested JSON"
      ],
      "guidance": "This is the Entra sid claim and links authentication artifacts from the same root sign-in. A session can contain many tokens and activity records; SessionId and UniqueTokenIdentifier are different keys. Exclude empty values and retain actor, tenant, and time context. Some application-only or background events have no session ID. AppAccessContext is populated only for supported Exchange, SharePoint, and Teams audit events; aggregated or background events can omit it. The property names are case-sensitive.",
      "otherNotes": [
        {
          "title": "Identifier reference",
          "text": "Match SigninLogs.SessionId to OfficeActivity.AppAccessContext.AADSessionId in supported Microsoft 365 audit records.",
          "sourceLabel": "Microsoft Learn",
          "sourceUrl": "https://learn.microsoft.com/en-us/entra/identity/authentication/how-to-authentication-track-linkable-identifiers",
          "query": "let LeftEvents = SigninLogs\n| where TimeGenerated > ago(7d)\n| extend LeftKey = tostring(SessionId)\n| where isnotempty(LeftKey);\nlet RightEvents = OfficeActivity\n| where TimeGenerated > ago(7d)\n| extend RightKey = tostring(parse_json(tostring(AppAccessContext)).AADSessionId)\n| where isnotempty(RightKey);\nLeftEvents\n| join kind=inner (RightEvents) on $left.LeftKey == $right.RightKey\n| project-away LeftKey, RightKey",
          "queryLanguage": "kusto"
        }
      ],
      "family": "entra-session"
    },
    {
      "id": "signin-logs-cloudapp-m365-token",
      "title": "Follow SigninLogs tokens into CloudAppEvents",
      "description": "Match SigninLogs.UniqueTokenIdentifier to CloudAppEvents.RawEventData.AppAccessContext.UniqueTokenId in supported Microsoft 365 audit payloads.",
      "from": {
        "table": "SigninLogs",
        "column": "UniqueTokenIdentifier",
        "timeColumn": "TimeGenerated"
      },
      "to": {
        "table": "CloudAppEvents",
        "column": "RawEventData",
        "path": "AppAccessContext.UniqueTokenId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Identity",
        "Microsoft 365",
        "Token correlation",
        "Nested JSON"
      ],
      "guidance": "Compare non-empty token identifiers exactly and preserve case; never lowercase a UTI. One token can have many activity records. Keep actor, tenant, application, and time context, and include the originating sign-in in the lookback. A missing match can reflect retention or collection gaps. AppAccessContext is populated only for supported Exchange, SharePoint, and Teams audit events; aggregated or background events can omit it. The property names are case-sensitive.",
      "family": "entra-token",
      "otherNotes": []
    },
    {
      "id": "signin-logs-cloudapp-m365-session",
      "title": "Follow SigninLogs sessions into CloudAppEvents",
      "description": "Match SigninLogs.SessionId to CloudAppEvents.RawEventData.AppAccessContext.AADSessionId in supported Microsoft 365 audit payloads.",
      "from": {
        "table": "SigninLogs",
        "column": "SessionId",
        "timeColumn": "TimeGenerated"
      },
      "to": {
        "table": "CloudAppEvents",
        "column": "RawEventData",
        "path": "AppAccessContext.AADSessionId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Identity",
        "Microsoft 365",
        "Session correlation",
        "Nested JSON"
      ],
      "guidance": "This is the Entra sid claim and links authentication artifacts from the same root sign-in. A session can contain many tokens and activity records; SessionId and UniqueTokenIdentifier are different keys. Exclude empty values and retain actor, tenant, and time context. Some application-only or background events have no session ID. AppAccessContext is populated only for supported Exchange, SharePoint, and Teams audit events; aggregated or background events can omit it. The property names are case-sensitive.",
      "family": "entra-session",
      "otherNotes": []
    },
    {
      "id": "aad-non-interactive-user-sign-in-logs-graphapi-audit-events-unique-token-identifier",
      "title": "Follow AADNonInteractiveUserSignInLogs tokens into GraphAPIAuditEvents",
      "description": "Match AADNonInteractiveUserSignInLogs.UniqueTokenIdentifier to GraphAPIAuditEvents.UniqueTokenIdentifier for token-level activity correlation.",
      "from": {
        "table": "AADNonInteractiveUserSignInLogs",
        "column": "UniqueTokenIdentifier",
        "timeColumn": "TimeGenerated"
      },
      "to": {
        "table": "GraphAPIAuditEvents",
        "column": "UniqueTokenIdentifier",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Identity",
        "Token correlation",
        "Microsoft Graph"
      ],
      "guidance": "Compare non-empty token identifiers exactly and preserve case; never lowercase a UTI. One token can have many activity records. Keep actor, tenant, application, and time context, and include the originating sign-in in the lookback. A missing match can reflect retention or collection gaps.",
      "family": "entra-token",
      "otherNotes": []
    },
    {
      "id": "aad-non-interactive-user-sign-in-logs-microsoft-graph-activity-logs-sign-in-activity-id",
      "title": "Follow AADNonInteractiveUserSignInLogs tokens into MicrosoftGraphActivityLogs",
      "description": "Match AADNonInteractiveUserSignInLogs.UniqueTokenIdentifier to MicrosoftGraphActivityLogs.SignInActivityId for token-level activity correlation.",
      "from": {
        "table": "AADNonInteractiveUserSignInLogs",
        "column": "UniqueTokenIdentifier",
        "timeColumn": "TimeGenerated"
      },
      "to": {
        "table": "MicrosoftGraphActivityLogs",
        "column": "SignInActivityId",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Identity",
        "Token correlation",
        "Microsoft Graph",
        "Microsoft Sentinel"
      ],
      "guidance": "Compare non-empty token identifiers exactly and preserve case; never lowercase a UTI. One token can have many activity records. Keep actor, tenant, application, and time context, and include the originating sign-in in the lookback. A missing match can reflect retention or collection gaps.",
      "family": "entra-token",
      "otherNotes": []
    },
    {
      "id": "aad-non-interactive-user-sign-in-logs-microsoft-graph-activity-logs-unique-token-id",
      "title": "Follow AADNonInteractiveUserSignInLogs tokens into MicrosoftGraphActivityLogs",
      "description": "Match AADNonInteractiveUserSignInLogs.UniqueTokenIdentifier to MicrosoftGraphActivityLogs.UniqueTokenId for token-level activity correlation.",
      "from": {
        "table": "AADNonInteractiveUserSignInLogs",
        "column": "UniqueTokenIdentifier",
        "timeColumn": "TimeGenerated"
      },
      "to": {
        "table": "MicrosoftGraphActivityLogs",
        "column": "UniqueTokenId",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Identity",
        "Token correlation",
        "Microsoft Graph",
        "Microsoft Sentinel"
      ],
      "guidance": "Compare non-empty token identifiers exactly and preserve case; never lowercase a UTI. One token can have many activity records. Keep actor, tenant, application, and time context, and include the originating sign-in in the lookback. A missing match can reflect retention or collection gaps.",
      "family": "entra-token",
      "otherNotes": []
    },
    {
      "id": "aad-non-interactive-user-sign-in-logs-aad-graph-activity-logs-sign-in-activity-id",
      "title": "Follow AADNonInteractiveUserSignInLogs tokens into AADGraphActivityLogs",
      "description": "Match AADNonInteractiveUserSignInLogs.UniqueTokenIdentifier to AADGraphActivityLogs.SignInActivityId for token-level activity correlation.",
      "from": {
        "table": "AADNonInteractiveUserSignInLogs",
        "column": "UniqueTokenIdentifier",
        "timeColumn": "TimeGenerated"
      },
      "to": {
        "table": "AADGraphActivityLogs",
        "column": "SignInActivityId",
        "timeColumn": "TimeRequested"
      },
      "tags": [
        "Identity",
        "Token correlation",
        "Azure AD Graph",
        "Microsoft Sentinel"
      ],
      "guidance": "Compare non-empty token identifiers exactly and preserve case; never lowercase a UTI. One token can have many activity records. Keep actor, tenant, application, and time context, and include the originating sign-in in the lookback. A missing match can reflect retention or collection gaps. AAD Graph SignInActivityId is a best-effort token link. Exact equality can miss padded values. Remove only trailing Base64 padding on both sides and preserve case. This does not convert GUID-shaped IDs to Base64 or equate them with sign-in Id/CorrelationId. Inspect unmatched GUID-shaped values separately. TimeRequested is the request time; allow for delayed ingestion.",
      "kql": "let LeftEvents = AADNonInteractiveUserSignInLogs\n| where TimeGenerated > ago(7d)\n| extend LeftKey = trim_end(@\"=+\", tostring(UniqueTokenIdentifier))\n| where isnotempty(LeftKey);\nlet RightEvents = AADGraphActivityLogs\n| where TimeRequested > ago(7d)\n| extend RightKey = trim_end(@\"=+\", tostring(SignInActivityId))\n| where isnotempty(RightKey);\nLeftEvents\n| join kind=inner (RightEvents) on $left.LeftKey == $right.RightKey\n| project-away LeftKey, RightKey",
      "otherNotes": [
        {
          "title": "SignInActivityId formats",
          "text": "SignInActivityId can contain padded token identifiers and GUID-shaped values. Remove trailing Base64 padding when correlating token identifiers and preserve case. Padding removal does not convert GUID-shaped values into token identifiers. Inspect unmatched GUID-shaped values separately.",
          "sourceLabel": "Cloudbrothers: Now You See Me - AADGraphActivityLogs",
          "sourceUrl": "https://cloudbrothers.info/aadgraphactivitylogs/",
          "query": "AADGraphActivityLogs\n| where TimeGenerated > ago(90d)\n| summarize by SignInActivityId\n| summarize\n    Padded=countif(SignInActivityId endswith \"==\"),\n    GUID=countif(SignInActivityId matches regex @\"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$\"),\n    TotalUnique=dcount(SignInActivityId)",
          "queryLanguage": "kusto"
        },
        {
          "title": "SignInActivityId formats",
          "text": "SignInActivityId can contain padded token identifiers and GUID-shaped values. Remove trailing Base64 padding when correlating token identifiers and preserve case. Padding removal does not convert GUID-shaped values into token identifiers. Inspect unmatched GUID-shaped values separately.",
          "sourceLabel": "Invictus IR: The missing link - AADGraphActivityLogs finally arrives",
          "sourceUrl": "https://www.invictus-ir.com/news/the-missing-link-aadgraphactivitylogs-finally-arrives",
          "query": "AADGraphActivityLogs\n| where TimeGenerated > ago(90d)\n| summarize by SignInActivityId\n| summarize\n    Padded=countif(SignInActivityId endswith \"==\"),\n    GUID=countif(SignInActivityId matches regex @\"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$\"),\n    TotalUnique=dcount(SignInActivityId)",
          "queryLanguage": "kusto"
        }
      ],
      "family": "entra-token"
    },
    {
      "id": "aad-non-interactive-user-sign-in-logs-microsoft-graph-activity-logs-session",
      "title": "Follow AADNonInteractiveUserSignInLogs sessions into MicrosoftGraphActivityLogs",
      "description": "Match the Entra session identifier across AADNonInteractiveUserSignInLogs and MicrosoftGraphActivityLogs.",
      "from": {
        "table": "AADNonInteractiveUserSignInLogs",
        "column": "SessionId",
        "timeColumn": "TimeGenerated"
      },
      "to": {
        "table": "MicrosoftGraphActivityLogs",
        "column": "SessionId",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Identity",
        "Session correlation",
        "Microsoft Sentinel"
      ],
      "guidance": "This is the Entra sid claim and links authentication artifacts from the same root sign-in. A session can contain many tokens and activity records; SessionId and UniqueTokenIdentifier are different keys. Exclude empty values and retain actor, tenant, and time context. Some application-only or background events have no session ID.",
      "family": "entra-session",
      "otherNotes": []
    },
    {
      "id": "aad-non-interactive-user-sign-in-logs-aad-graph-activity-logs-session",
      "title": "Follow AADNonInteractiveUserSignInLogs sessions into AADGraphActivityLogs",
      "description": "Match the Entra session identifier across AADNonInteractiveUserSignInLogs and AADGraphActivityLogs.",
      "from": {
        "table": "AADNonInteractiveUserSignInLogs",
        "column": "SessionId",
        "timeColumn": "TimeGenerated"
      },
      "to": {
        "table": "AADGraphActivityLogs",
        "column": "SessionId",
        "timeColumn": "TimeRequested"
      },
      "tags": [
        "Identity",
        "Session correlation",
        "Microsoft Sentinel"
      ],
      "guidance": "This is the Entra sid claim and links authentication artifacts from the same root sign-in. A session can contain many tokens and activity records; SessionId and UniqueTokenIdentifier are different keys. Exclude empty values and retain actor, tenant, and time context. Some application-only or background events have no session ID. Use TimeRequested for event timing and allow for ingestion delay.",
      "family": "entra-session",
      "otherNotes": []
    },
    {
      "id": "aad-non-interactive-user-sign-in-logs-office-activity-token",
      "title": "Follow AADNonInteractiveUserSignInLogs tokens into OfficeActivity",
      "description": "Match AADNonInteractiveUserSignInLogs.UniqueTokenIdentifier to OfficeActivity.AppAccessContext.UniqueTokenId in supported Microsoft 365 audit records.",
      "from": {
        "table": "AADNonInteractiveUserSignInLogs",
        "column": "UniqueTokenIdentifier",
        "timeColumn": "TimeGenerated"
      },
      "to": {
        "table": "OfficeActivity",
        "column": "AppAccessContext",
        "path": "UniqueTokenId",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Identity",
        "Microsoft 365",
        "Microsoft Sentinel",
        "Token correlation",
        "Nested JSON"
      ],
      "guidance": "Compare non-empty token identifiers exactly and preserve case; never lowercase a UTI. One token can have many activity records. Keep actor, tenant, application, and time context, and include the originating sign-in in the lookback. A missing match can reflect retention or collection gaps. AppAccessContext is populated only for supported Exchange, SharePoint, and Teams audit events; aggregated or background events can omit it. The property names are case-sensitive.",
      "family": "entra-token",
      "otherNotes": []
    },
    {
      "id": "aad-non-interactive-user-sign-in-logs-office-activity-session",
      "title": "Follow AADNonInteractiveUserSignInLogs sessions into OfficeActivity",
      "description": "Match AADNonInteractiveUserSignInLogs.SessionId to OfficeActivity.AppAccessContext.AADSessionId in supported Microsoft 365 audit records.",
      "from": {
        "table": "AADNonInteractiveUserSignInLogs",
        "column": "SessionId",
        "timeColumn": "TimeGenerated"
      },
      "to": {
        "table": "OfficeActivity",
        "column": "AppAccessContext",
        "path": "AADSessionId",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Identity",
        "Microsoft 365",
        "Microsoft Sentinel",
        "Session correlation",
        "Nested JSON"
      ],
      "guidance": "This is the Entra sid claim and links authentication artifacts from the same root sign-in. A session can contain many tokens and activity records; SessionId and UniqueTokenIdentifier are different keys. Exclude empty values and retain actor, tenant, and time context. Some application-only or background events have no session ID. AppAccessContext is populated only for supported Exchange, SharePoint, and Teams audit events; aggregated or background events can omit it. The property names are case-sensitive.",
      "family": "entra-session",
      "otherNotes": []
    },
    {
      "id": "aad-non-interactive-user-sign-in-logs-cloudapp-m365-token",
      "title": "Follow AADNonInteractiveUserSignInLogs tokens into CloudAppEvents",
      "description": "Match AADNonInteractiveUserSignInLogs.UniqueTokenIdentifier to CloudAppEvents.RawEventData.AppAccessContext.UniqueTokenId in supported Microsoft 365 audit payloads.",
      "from": {
        "table": "AADNonInteractiveUserSignInLogs",
        "column": "UniqueTokenIdentifier",
        "timeColumn": "TimeGenerated"
      },
      "to": {
        "table": "CloudAppEvents",
        "column": "RawEventData",
        "path": "AppAccessContext.UniqueTokenId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Identity",
        "Microsoft 365",
        "Token correlation",
        "Nested JSON"
      ],
      "guidance": "Compare non-empty token identifiers exactly and preserve case; never lowercase a UTI. One token can have many activity records. Keep actor, tenant, application, and time context, and include the originating sign-in in the lookback. A missing match can reflect retention or collection gaps. AppAccessContext is populated only for supported Exchange, SharePoint, and Teams audit events; aggregated or background events can omit it. The property names are case-sensitive.",
      "family": "entra-token",
      "otherNotes": []
    },
    {
      "id": "aad-non-interactive-user-sign-in-logs-cloudapp-m365-session",
      "title": "Follow AADNonInteractiveUserSignInLogs sessions into CloudAppEvents",
      "description": "Match AADNonInteractiveUserSignInLogs.SessionId to CloudAppEvents.RawEventData.AppAccessContext.AADSessionId in supported Microsoft 365 audit payloads.",
      "from": {
        "table": "AADNonInteractiveUserSignInLogs",
        "column": "SessionId",
        "timeColumn": "TimeGenerated"
      },
      "to": {
        "table": "CloudAppEvents",
        "column": "RawEventData",
        "path": "AppAccessContext.AADSessionId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Identity",
        "Microsoft 365",
        "Session correlation",
        "Nested JSON"
      ],
      "guidance": "This is the Entra sid claim and links authentication artifacts from the same root sign-in. A session can contain many tokens and activity records; SessionId and UniqueTokenIdentifier are different keys. Exclude empty values and retain actor, tenant, and time context. Some application-only or background events have no session ID. AppAccessContext is populated only for supported Exchange, SharePoint, and Teams audit events; aggregated or background events can omit it. The property names are case-sensitive.",
      "family": "entra-session",
      "otherNotes": []
    },
    {
      "id": "aad-service-principal-sign-in-logs-graphapi-audit-events-unique-token-identifier",
      "title": "Follow AADServicePrincipalSignInLogs tokens into GraphAPIAuditEvents",
      "description": "Match AADServicePrincipalSignInLogs.UniqueTokenIdentifier to GraphAPIAuditEvents.UniqueTokenIdentifier for token-level activity correlation.",
      "from": {
        "table": "AADServicePrincipalSignInLogs",
        "column": "UniqueTokenIdentifier",
        "timeColumn": "TimeGenerated"
      },
      "to": {
        "table": "GraphAPIAuditEvents",
        "column": "UniqueTokenIdentifier",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Identity",
        "Token correlation",
        "Microsoft Graph"
      ],
      "guidance": "Compare non-empty token identifiers exactly and preserve case; never lowercase a UTI. One token can have many activity records. Keep actor, tenant, application, and time context, and include the originating sign-in in the lookback. A missing match can reflect retention or collection gaps.",
      "family": "entra-token",
      "otherNotes": []
    },
    {
      "id": "aad-service-principal-sign-in-logs-microsoft-graph-activity-logs-sign-in-activity-id",
      "title": "Follow AADServicePrincipalSignInLogs tokens into MicrosoftGraphActivityLogs",
      "description": "Match AADServicePrincipalSignInLogs.UniqueTokenIdentifier to MicrosoftGraphActivityLogs.SignInActivityId for token-level activity correlation.",
      "from": {
        "table": "AADServicePrincipalSignInLogs",
        "column": "UniqueTokenIdentifier",
        "timeColumn": "TimeGenerated"
      },
      "to": {
        "table": "MicrosoftGraphActivityLogs",
        "column": "SignInActivityId",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Identity",
        "Token correlation",
        "Microsoft Graph",
        "Microsoft Sentinel"
      ],
      "guidance": "Compare non-empty token identifiers exactly and preserve case; never lowercase a UTI. One token can have many activity records. Keep actor, tenant, application, and time context, and include the originating sign-in in the lookback. A missing match can reflect retention or collection gaps.",
      "family": "entra-token",
      "otherNotes": []
    },
    {
      "id": "aad-service-principal-sign-in-logs-microsoft-graph-activity-logs-unique-token-id",
      "title": "Follow AADServicePrincipalSignInLogs tokens into MicrosoftGraphActivityLogs",
      "description": "Match AADServicePrincipalSignInLogs.UniqueTokenIdentifier to MicrosoftGraphActivityLogs.UniqueTokenId for token-level activity correlation.",
      "from": {
        "table": "AADServicePrincipalSignInLogs",
        "column": "UniqueTokenIdentifier",
        "timeColumn": "TimeGenerated"
      },
      "to": {
        "table": "MicrosoftGraphActivityLogs",
        "column": "UniqueTokenId",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Identity",
        "Token correlation",
        "Microsoft Graph",
        "Microsoft Sentinel"
      ],
      "guidance": "Compare non-empty token identifiers exactly and preserve case; never lowercase a UTI. One token can have many activity records. Keep actor, tenant, application, and time context, and include the originating sign-in in the lookback. A missing match can reflect retention or collection gaps.",
      "family": "entra-token",
      "otherNotes": []
    },
    {
      "id": "aad-service-principal-sign-in-logs-aad-graph-activity-logs-sign-in-activity-id",
      "title": "Follow AADServicePrincipalSignInLogs tokens into AADGraphActivityLogs",
      "description": "Match AADServicePrincipalSignInLogs.UniqueTokenIdentifier to AADGraphActivityLogs.SignInActivityId for token-level activity correlation.",
      "from": {
        "table": "AADServicePrincipalSignInLogs",
        "column": "UniqueTokenIdentifier",
        "timeColumn": "TimeGenerated"
      },
      "to": {
        "table": "AADGraphActivityLogs",
        "column": "SignInActivityId",
        "timeColumn": "TimeRequested"
      },
      "tags": [
        "Identity",
        "Token correlation",
        "Azure AD Graph",
        "Microsoft Sentinel"
      ],
      "guidance": "Compare non-empty token identifiers exactly and preserve case; never lowercase a UTI. One token can have many activity records. Keep actor, tenant, application, and time context, and include the originating sign-in in the lookback. A missing match can reflect retention or collection gaps. AAD Graph SignInActivityId is a best-effort token link. Exact equality can miss padded values. Remove only trailing Base64 padding on both sides and preserve case. This does not convert GUID-shaped IDs to Base64 or equate them with sign-in Id/CorrelationId. Inspect unmatched GUID-shaped values separately. TimeRequested is the request time; allow for delayed ingestion.",
      "kql": "let LeftEvents = AADServicePrincipalSignInLogs\n| where TimeGenerated > ago(7d)\n| extend LeftKey = trim_end(@\"=+\", tostring(UniqueTokenIdentifier))\n| where isnotempty(LeftKey);\nlet RightEvents = AADGraphActivityLogs\n| where TimeRequested > ago(7d)\n| extend RightKey = trim_end(@\"=+\", tostring(SignInActivityId))\n| where isnotempty(RightKey);\nLeftEvents\n| join kind=inner (RightEvents) on $left.LeftKey == $right.RightKey\n| project-away LeftKey, RightKey",
      "otherNotes": [
        {
          "title": "SignInActivityId formats",
          "text": "SignInActivityId can contain padded token identifiers and GUID-shaped values. Remove trailing Base64 padding when correlating token identifiers and preserve case. Padding removal does not convert GUID-shaped values into token identifiers. Inspect unmatched GUID-shaped values separately.",
          "sourceLabel": "Cloudbrothers: Now You See Me - AADGraphActivityLogs",
          "sourceUrl": "https://cloudbrothers.info/aadgraphactivitylogs/",
          "query": "AADGraphActivityLogs\n| where TimeGenerated > ago(90d)\n| summarize by SignInActivityId\n| summarize\n    Padded=countif(SignInActivityId endswith \"==\"),\n    GUID=countif(SignInActivityId matches regex @\"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$\"),\n    TotalUnique=dcount(SignInActivityId)",
          "queryLanguage": "kusto"
        },
        {
          "title": "SignInActivityId formats",
          "text": "SignInActivityId can contain padded token identifiers and GUID-shaped values. Remove trailing Base64 padding when correlating token identifiers and preserve case. Padding removal does not convert GUID-shaped values into token identifiers. Inspect unmatched GUID-shaped values separately.",
          "sourceLabel": "Invictus IR: The missing link - AADGraphActivityLogs finally arrives",
          "sourceUrl": "https://www.invictus-ir.com/news/the-missing-link-aadgraphactivitylogs-finally-arrives",
          "query": "AADGraphActivityLogs\n| where TimeGenerated > ago(90d)\n| summarize by SignInActivityId\n| summarize\n    Padded=countif(SignInActivityId endswith \"==\"),\n    GUID=countif(SignInActivityId matches regex @\"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$\"),\n    TotalUnique=dcount(SignInActivityId)",
          "queryLanguage": "kusto"
        }
      ],
      "family": "entra-token"
    },
    {
      "id": "aad-service-principal-sign-in-logs-microsoft-graph-activity-logs-session",
      "title": "Follow AADServicePrincipalSignInLogs sessions into MicrosoftGraphActivityLogs",
      "description": "Match the Entra session identifier across AADServicePrincipalSignInLogs and MicrosoftGraphActivityLogs.",
      "from": {
        "table": "AADServicePrincipalSignInLogs",
        "column": "SessionId",
        "timeColumn": "TimeGenerated"
      },
      "to": {
        "table": "MicrosoftGraphActivityLogs",
        "column": "SessionId",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Identity",
        "Session correlation",
        "Microsoft Sentinel"
      ],
      "guidance": "This is the Entra sid claim and links authentication artifacts from the same root sign-in. A session can contain many tokens and activity records; SessionId and UniqueTokenIdentifier are different keys. Exclude empty values and retain actor, tenant, and time context. Some application-only or background events have no session ID.",
      "family": "entra-session",
      "otherNotes": []
    },
    {
      "id": "aad-service-principal-sign-in-logs-aad-graph-activity-logs-session",
      "title": "Follow AADServicePrincipalSignInLogs sessions into AADGraphActivityLogs",
      "description": "Match the Entra session identifier across AADServicePrincipalSignInLogs and AADGraphActivityLogs.",
      "from": {
        "table": "AADServicePrincipalSignInLogs",
        "column": "SessionId",
        "timeColumn": "TimeGenerated"
      },
      "to": {
        "table": "AADGraphActivityLogs",
        "column": "SessionId",
        "timeColumn": "TimeRequested"
      },
      "tags": [
        "Identity",
        "Session correlation",
        "Microsoft Sentinel"
      ],
      "guidance": "This is the Entra sid claim and links authentication artifacts from the same root sign-in. A session can contain many tokens and activity records; SessionId and UniqueTokenIdentifier are different keys. Exclude empty values and retain actor, tenant, and time context. Some application-only or background events have no session ID. Use TimeRequested for event timing and allow for ingestion delay.",
      "family": "entra-session",
      "otherNotes": []
    },
    {
      "id": "aad-service-principal-sign-in-logs-office-activity-token",
      "title": "Follow AADServicePrincipalSignInLogs tokens into OfficeActivity",
      "description": "Match AADServicePrincipalSignInLogs.UniqueTokenIdentifier to OfficeActivity.AppAccessContext.UniqueTokenId in supported Microsoft 365 audit records.",
      "from": {
        "table": "AADServicePrincipalSignInLogs",
        "column": "UniqueTokenIdentifier",
        "timeColumn": "TimeGenerated"
      },
      "to": {
        "table": "OfficeActivity",
        "column": "AppAccessContext",
        "path": "UniqueTokenId",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Identity",
        "Microsoft 365",
        "Microsoft Sentinel",
        "Token correlation",
        "Nested JSON"
      ],
      "guidance": "Compare non-empty token identifiers exactly and preserve case; never lowercase a UTI. One token can have many activity records. Keep actor, tenant, application, and time context, and include the originating sign-in in the lookback. A missing match can reflect retention or collection gaps. AppAccessContext is populated only for supported Exchange, SharePoint, and Teams audit events; aggregated or background events can omit it. The property names are case-sensitive.",
      "family": "entra-token",
      "otherNotes": []
    },
    {
      "id": "aad-service-principal-sign-in-logs-office-activity-session",
      "title": "Follow AADServicePrincipalSignInLogs sessions into OfficeActivity",
      "description": "Match AADServicePrincipalSignInLogs.SessionId to OfficeActivity.AppAccessContext.AADSessionId in supported Microsoft 365 audit records.",
      "from": {
        "table": "AADServicePrincipalSignInLogs",
        "column": "SessionId",
        "timeColumn": "TimeGenerated"
      },
      "to": {
        "table": "OfficeActivity",
        "column": "AppAccessContext",
        "path": "AADSessionId",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Identity",
        "Microsoft 365",
        "Microsoft Sentinel",
        "Session correlation",
        "Nested JSON"
      ],
      "guidance": "This is the Entra sid claim and links authentication artifacts from the same root sign-in. A session can contain many tokens and activity records; SessionId and UniqueTokenIdentifier are different keys. Exclude empty values and retain actor, tenant, and time context. Some application-only or background events have no session ID. AppAccessContext is populated only for supported Exchange, SharePoint, and Teams audit events; aggregated or background events can omit it. The property names are case-sensitive.",
      "family": "entra-session",
      "otherNotes": []
    },
    {
      "id": "aad-managed-identity-sign-in-logs-graphapi-audit-events-unique-token-identifier",
      "title": "Follow AADManagedIdentitySignInLogs tokens into GraphAPIAuditEvents",
      "description": "Match AADManagedIdentitySignInLogs.UniqueTokenIdentifier to GraphAPIAuditEvents.UniqueTokenIdentifier for token-level activity correlation.",
      "from": {
        "table": "AADManagedIdentitySignInLogs",
        "column": "UniqueTokenIdentifier",
        "timeColumn": "TimeGenerated"
      },
      "to": {
        "table": "GraphAPIAuditEvents",
        "column": "UniqueTokenIdentifier",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Identity",
        "Token correlation",
        "Microsoft Graph"
      ],
      "guidance": "Compare non-empty token identifiers exactly and preserve case; never lowercase a UTI. One token can have many activity records. Keep actor, tenant, application, and time context, and include the originating sign-in in the lookback. A missing match can reflect retention or collection gaps.",
      "family": "entra-token",
      "otherNotes": []
    },
    {
      "id": "aad-managed-identity-sign-in-logs-microsoft-graph-activity-logs-sign-in-activity-id",
      "title": "Follow AADManagedIdentitySignInLogs tokens into MicrosoftGraphActivityLogs",
      "description": "Match AADManagedIdentitySignInLogs.UniqueTokenIdentifier to MicrosoftGraphActivityLogs.SignInActivityId for token-level activity correlation.",
      "from": {
        "table": "AADManagedIdentitySignInLogs",
        "column": "UniqueTokenIdentifier",
        "timeColumn": "TimeGenerated"
      },
      "to": {
        "table": "MicrosoftGraphActivityLogs",
        "column": "SignInActivityId",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Identity",
        "Token correlation",
        "Microsoft Graph",
        "Microsoft Sentinel"
      ],
      "guidance": "Compare non-empty token identifiers exactly and preserve case; never lowercase a UTI. One token can have many activity records. Keep actor, tenant, application, and time context, and include the originating sign-in in the lookback. A missing match can reflect retention or collection gaps.",
      "family": "entra-token",
      "otherNotes": []
    },
    {
      "id": "aad-managed-identity-sign-in-logs-microsoft-graph-activity-logs-unique-token-id",
      "title": "Follow AADManagedIdentitySignInLogs tokens into MicrosoftGraphActivityLogs",
      "description": "Match AADManagedIdentitySignInLogs.UniqueTokenIdentifier to MicrosoftGraphActivityLogs.UniqueTokenId for token-level activity correlation.",
      "from": {
        "table": "AADManagedIdentitySignInLogs",
        "column": "UniqueTokenIdentifier",
        "timeColumn": "TimeGenerated"
      },
      "to": {
        "table": "MicrosoftGraphActivityLogs",
        "column": "UniqueTokenId",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Identity",
        "Token correlation",
        "Microsoft Graph",
        "Microsoft Sentinel"
      ],
      "guidance": "Compare non-empty token identifiers exactly and preserve case; never lowercase a UTI. One token can have many activity records. Keep actor, tenant, application, and time context, and include the originating sign-in in the lookback. A missing match can reflect retention or collection gaps.",
      "family": "entra-token",
      "otherNotes": []
    },
    {
      "id": "aad-managed-identity-sign-in-logs-aad-graph-activity-logs-sign-in-activity-id",
      "title": "Follow AADManagedIdentitySignInLogs tokens into AADGraphActivityLogs",
      "description": "Match AADManagedIdentitySignInLogs.UniqueTokenIdentifier to AADGraphActivityLogs.SignInActivityId for token-level activity correlation.",
      "from": {
        "table": "AADManagedIdentitySignInLogs",
        "column": "UniqueTokenIdentifier",
        "timeColumn": "TimeGenerated"
      },
      "to": {
        "table": "AADGraphActivityLogs",
        "column": "SignInActivityId",
        "timeColumn": "TimeRequested"
      },
      "tags": [
        "Identity",
        "Token correlation",
        "Azure AD Graph",
        "Microsoft Sentinel"
      ],
      "guidance": "Compare non-empty token identifiers exactly and preserve case; never lowercase a UTI. One token can have many activity records. Keep actor, tenant, application, and time context, and include the originating sign-in in the lookback. A missing match can reflect retention or collection gaps. AAD Graph SignInActivityId is a best-effort token link. Exact equality can miss padded values. Remove only trailing Base64 padding on both sides and preserve case. This does not convert GUID-shaped IDs to Base64 or equate them with sign-in Id/CorrelationId. Inspect unmatched GUID-shaped values separately. TimeRequested is the request time; allow for delayed ingestion.",
      "kql": "let LeftEvents = AADManagedIdentitySignInLogs\n| where TimeGenerated > ago(7d)\n| extend LeftKey = trim_end(@\"=+\", tostring(UniqueTokenIdentifier))\n| where isnotempty(LeftKey);\nlet RightEvents = AADGraphActivityLogs\n| where TimeRequested > ago(7d)\n| extend RightKey = trim_end(@\"=+\", tostring(SignInActivityId))\n| where isnotempty(RightKey);\nLeftEvents\n| join kind=inner (RightEvents) on $left.LeftKey == $right.RightKey\n| project-away LeftKey, RightKey",
      "otherNotes": [
        {
          "title": "SignInActivityId formats",
          "text": "SignInActivityId can contain padded token identifiers and GUID-shaped values. Remove trailing Base64 padding when correlating token identifiers and preserve case. Padding removal does not convert GUID-shaped values into token identifiers. Inspect unmatched GUID-shaped values separately.",
          "sourceLabel": "Cloudbrothers: Now You See Me - AADGraphActivityLogs",
          "sourceUrl": "https://cloudbrothers.info/aadgraphactivitylogs/",
          "query": "AADGraphActivityLogs\n| where TimeGenerated > ago(90d)\n| summarize by SignInActivityId\n| summarize\n    Padded=countif(SignInActivityId endswith \"==\"),\n    GUID=countif(SignInActivityId matches regex @\"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$\"),\n    TotalUnique=dcount(SignInActivityId)",
          "queryLanguage": "kusto"
        },
        {
          "title": "SignInActivityId formats",
          "text": "SignInActivityId can contain padded token identifiers and GUID-shaped values. Remove trailing Base64 padding when correlating token identifiers and preserve case. Padding removal does not convert GUID-shaped values into token identifiers. Inspect unmatched GUID-shaped values separately.",
          "sourceLabel": "Invictus IR: The missing link - AADGraphActivityLogs finally arrives",
          "sourceUrl": "https://www.invictus-ir.com/news/the-missing-link-aadgraphactivitylogs-finally-arrives",
          "query": "AADGraphActivityLogs\n| where TimeGenerated > ago(90d)\n| summarize by SignInActivityId\n| summarize\n    Padded=countif(SignInActivityId endswith \"==\"),\n    GUID=countif(SignInActivityId matches regex @\"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$\"),\n    TotalUnique=dcount(SignInActivityId)",
          "queryLanguage": "kusto"
        }
      ],
      "family": "entra-token"
    },
    {
      "id": "aad-managed-identity-sign-in-logs-microsoft-graph-activity-logs-session",
      "title": "Follow AADManagedIdentitySignInLogs sessions into MicrosoftGraphActivityLogs",
      "description": "Match the Entra session identifier across AADManagedIdentitySignInLogs and MicrosoftGraphActivityLogs.",
      "from": {
        "table": "AADManagedIdentitySignInLogs",
        "column": "SessionId",
        "timeColumn": "TimeGenerated"
      },
      "to": {
        "table": "MicrosoftGraphActivityLogs",
        "column": "SessionId",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Identity",
        "Session correlation",
        "Microsoft Sentinel"
      ],
      "guidance": "This is the Entra sid claim and links authentication artifacts from the same root sign-in. A session can contain many tokens and activity records; SessionId and UniqueTokenIdentifier are different keys. Exclude empty values and retain actor, tenant, and time context. Some application-only or background events have no session ID.",
      "family": "entra-session",
      "otherNotes": []
    },
    {
      "id": "aad-managed-identity-sign-in-logs-aad-graph-activity-logs-session",
      "title": "Follow AADManagedIdentitySignInLogs sessions into AADGraphActivityLogs",
      "description": "Match the Entra session identifier across AADManagedIdentitySignInLogs and AADGraphActivityLogs.",
      "from": {
        "table": "AADManagedIdentitySignInLogs",
        "column": "SessionId",
        "timeColumn": "TimeGenerated"
      },
      "to": {
        "table": "AADGraphActivityLogs",
        "column": "SessionId",
        "timeColumn": "TimeRequested"
      },
      "tags": [
        "Identity",
        "Session correlation",
        "Microsoft Sentinel"
      ],
      "guidance": "This is the Entra sid claim and links authentication artifacts from the same root sign-in. A session can contain many tokens and activity records; SessionId and UniqueTokenIdentifier are different keys. Exclude empty values and retain actor, tenant, and time context. Some application-only or background events have no session ID. Use TimeRequested for event timing and allow for ingestion delay.",
      "family": "entra-session",
      "otherNotes": []
    },
    {
      "id": "aad-managed-identity-sign-in-logs-office-activity-token",
      "title": "Follow AADManagedIdentitySignInLogs tokens into OfficeActivity",
      "description": "Match AADManagedIdentitySignInLogs.UniqueTokenIdentifier to OfficeActivity.AppAccessContext.UniqueTokenId in supported Microsoft 365 audit records.",
      "from": {
        "table": "AADManagedIdentitySignInLogs",
        "column": "UniqueTokenIdentifier",
        "timeColumn": "TimeGenerated"
      },
      "to": {
        "table": "OfficeActivity",
        "column": "AppAccessContext",
        "path": "UniqueTokenId",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Identity",
        "Microsoft 365",
        "Microsoft Sentinel",
        "Token correlation",
        "Nested JSON"
      ],
      "guidance": "Compare non-empty token identifiers exactly and preserve case; never lowercase a UTI. One token can have many activity records. Keep actor, tenant, application, and time context, and include the originating sign-in in the lookback. A missing match can reflect retention or collection gaps. AppAccessContext is populated only for supported Exchange, SharePoint, and Teams audit events; aggregated or background events can omit it. The property names are case-sensitive.",
      "family": "entra-token",
      "otherNotes": []
    },
    {
      "id": "aad-managed-identity-sign-in-logs-office-activity-session",
      "title": "Follow AADManagedIdentitySignInLogs sessions into OfficeActivity",
      "description": "Match AADManagedIdentitySignInLogs.SessionId to OfficeActivity.AppAccessContext.AADSessionId in supported Microsoft 365 audit records.",
      "from": {
        "table": "AADManagedIdentitySignInLogs",
        "column": "SessionId",
        "timeColumn": "TimeGenerated"
      },
      "to": {
        "table": "OfficeActivity",
        "column": "AppAccessContext",
        "path": "AADSessionId",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Identity",
        "Microsoft 365",
        "Microsoft Sentinel",
        "Session correlation",
        "Nested JSON"
      ],
      "guidance": "This is the Entra sid claim and links authentication artifacts from the same root sign-in. A session can contain many tokens and activity records; SessionId and UniqueTokenIdentifier are different keys. Exclude empty values and retain actor, tenant, and time context. Some application-only or background events have no session ID. AppAccessContext is populated only for supported Exchange, SharePoint, and Teams audit events; aggregated or background events can omit it. The property names are case-sensitive.",
      "family": "entra-session",
      "otherNotes": []
    },
    {
      "id": "entra-id-spn-sign-in-events-graphapi-audit-events-unique-token-identifier",
      "title": "Follow EntraIdSpnSignInEvents tokens into GraphAPIAuditEvents",
      "description": "Match EntraIdSpnSignInEvents.UniqueTokenId to GraphAPIAuditEvents.UniqueTokenIdentifier for token-level activity correlation.",
      "from": {
        "table": "EntraIdSpnSignInEvents",
        "column": "UniqueTokenId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "GraphAPIAuditEvents",
        "column": "UniqueTokenIdentifier",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Identity",
        "Token correlation",
        "Microsoft Graph"
      ],
      "guidance": "Compare non-empty token identifiers exactly and preserve case; never lowercase a UTI. One token can have many activity records. Keep actor, tenant, application, and time context, and include the originating sign-in in the lookback. A missing match can reflect retention or collection gaps.",
      "family": "entra-token",
      "otherNotes": []
    },
    {
      "id": "entra-id-spn-sign-in-events-microsoft-graph-activity-logs-sign-in-activity-id",
      "title": "Follow EntraIdSpnSignInEvents tokens into MicrosoftGraphActivityLogs",
      "description": "Match EntraIdSpnSignInEvents.UniqueTokenId to MicrosoftGraphActivityLogs.SignInActivityId for token-level activity correlation.",
      "from": {
        "table": "EntraIdSpnSignInEvents",
        "column": "UniqueTokenId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "MicrosoftGraphActivityLogs",
        "column": "SignInActivityId",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Identity",
        "Token correlation",
        "Microsoft Graph",
        "Microsoft Sentinel"
      ],
      "guidance": "Compare non-empty token identifiers exactly and preserve case; never lowercase a UTI. One token can have many activity records. Keep actor, tenant, application, and time context, and include the originating sign-in in the lookback. A missing match can reflect retention or collection gaps.",
      "family": "entra-token",
      "otherNotes": []
    },
    {
      "id": "entra-id-spn-sign-in-events-microsoft-graph-activity-logs-unique-token-id",
      "title": "Follow EntraIdSpnSignInEvents tokens into MicrosoftGraphActivityLogs",
      "description": "Match EntraIdSpnSignInEvents.UniqueTokenId to MicrosoftGraphActivityLogs.UniqueTokenId for token-level activity correlation.",
      "from": {
        "table": "EntraIdSpnSignInEvents",
        "column": "UniqueTokenId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "MicrosoftGraphActivityLogs",
        "column": "UniqueTokenId",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Identity",
        "Token correlation",
        "Microsoft Graph",
        "Microsoft Sentinel"
      ],
      "guidance": "Compare non-empty token identifiers exactly and preserve case; never lowercase a UTI. One token can have many activity records. Keep actor, tenant, application, and time context, and include the originating sign-in in the lookback. A missing match can reflect retention or collection gaps.",
      "family": "entra-token",
      "otherNotes": []
    },
    {
      "id": "entra-id-spn-sign-in-events-aad-graph-activity-logs-sign-in-activity-id",
      "title": "Follow EntraIdSpnSignInEvents tokens into AADGraphActivityLogs",
      "description": "Match EntraIdSpnSignInEvents.UniqueTokenId to AADGraphActivityLogs.SignInActivityId for token-level activity correlation.",
      "from": {
        "table": "EntraIdSpnSignInEvents",
        "column": "UniqueTokenId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "AADGraphActivityLogs",
        "column": "SignInActivityId",
        "timeColumn": "TimeRequested"
      },
      "tags": [
        "Identity",
        "Token correlation",
        "Azure AD Graph",
        "Microsoft Sentinel"
      ],
      "guidance": "Compare non-empty token identifiers exactly and preserve case; never lowercase a UTI. One token can have many activity records. Keep actor, tenant, application, and time context, and include the originating sign-in in the lookback. A missing match can reflect retention or collection gaps. AAD Graph SignInActivityId is a best-effort token link. Exact equality can miss padded values. Remove only trailing Base64 padding on both sides and preserve case. This does not convert GUID-shaped IDs to Base64 or equate them with sign-in Id/CorrelationId. Inspect unmatched GUID-shaped values separately. TimeRequested is the request time; allow for delayed ingestion.",
      "kql": "let LeftEvents = EntraIdSpnSignInEvents\n| where Timestamp > ago(7d)\n| extend LeftKey = trim_end(@\"=+\", tostring(UniqueTokenId))\n| where isnotempty(LeftKey);\nlet RightEvents = AADGraphActivityLogs\n| where TimeRequested > ago(7d)\n| extend RightKey = trim_end(@\"=+\", tostring(SignInActivityId))\n| where isnotempty(RightKey);\nLeftEvents\n| join kind=inner (RightEvents) on $left.LeftKey == $right.RightKey\n| project-away LeftKey, RightKey",
      "otherNotes": [
        {
          "title": "SignInActivityId formats",
          "text": "SignInActivityId can contain padded token identifiers and GUID-shaped values. Remove trailing Base64 padding when correlating token identifiers and preserve case. Padding removal does not convert GUID-shaped values into token identifiers. Inspect unmatched GUID-shaped values separately.",
          "sourceLabel": "Cloudbrothers: Now You See Me - AADGraphActivityLogs",
          "sourceUrl": "https://cloudbrothers.info/aadgraphactivitylogs/",
          "query": "AADGraphActivityLogs\n| where TimeGenerated > ago(90d)\n| summarize by SignInActivityId\n| summarize\n    Padded=countif(SignInActivityId endswith \"==\"),\n    GUID=countif(SignInActivityId matches regex @\"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$\"),\n    TotalUnique=dcount(SignInActivityId)",
          "queryLanguage": "kusto"
        },
        {
          "title": "SignInActivityId formats",
          "text": "SignInActivityId can contain padded token identifiers and GUID-shaped values. Remove trailing Base64 padding when correlating token identifiers and preserve case. Padding removal does not convert GUID-shaped values into token identifiers. Inspect unmatched GUID-shaped values separately.",
          "sourceLabel": "Invictus IR: The missing link - AADGraphActivityLogs finally arrives",
          "sourceUrl": "https://www.invictus-ir.com/news/the-missing-link-aadgraphactivitylogs-finally-arrives",
          "query": "AADGraphActivityLogs\n| where TimeGenerated > ago(90d)\n| summarize by SignInActivityId\n| summarize\n    Padded=countif(SignInActivityId endswith \"==\"),\n    GUID=countif(SignInActivityId matches regex @\"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$\"),\n    TotalUnique=dcount(SignInActivityId)",
          "queryLanguage": "kusto"
        }
      ],
      "family": "entra-token"
    },
    {
      "id": "entra-id-spn-sign-in-events-microsoft-graph-activity-logs-session",
      "title": "Follow EntraIdSpnSignInEvents sessions into MicrosoftGraphActivityLogs",
      "description": "Match the Entra session identifier across EntraIdSpnSignInEvents and MicrosoftGraphActivityLogs.",
      "from": {
        "table": "EntraIdSpnSignInEvents",
        "column": "SessionId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "MicrosoftGraphActivityLogs",
        "column": "SessionId",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Identity",
        "Session correlation",
        "Microsoft Sentinel"
      ],
      "guidance": "This is the Entra sid claim and links authentication artifacts from the same root sign-in. A session can contain many tokens and activity records; SessionId and UniqueTokenIdentifier are different keys. Exclude empty values and retain actor, tenant, and time context. Some application-only or background events have no session ID.",
      "family": "entra-session",
      "otherNotes": []
    },
    {
      "id": "entra-id-spn-sign-in-events-aad-graph-activity-logs-session",
      "title": "Follow EntraIdSpnSignInEvents sessions into AADGraphActivityLogs",
      "description": "Match the Entra session identifier across EntraIdSpnSignInEvents and AADGraphActivityLogs.",
      "from": {
        "table": "EntraIdSpnSignInEvents",
        "column": "SessionId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "AADGraphActivityLogs",
        "column": "SessionId",
        "timeColumn": "TimeRequested"
      },
      "tags": [
        "Identity",
        "Session correlation",
        "Microsoft Sentinel"
      ],
      "guidance": "This is the Entra sid claim and links authentication artifacts from the same root sign-in. A session can contain many tokens and activity records; SessionId and UniqueTokenIdentifier are different keys. Exclude empty values and retain actor, tenant, and time context. Some application-only or background events have no session ID. Use TimeRequested for event timing and allow for ingestion delay.",
      "family": "entra-session",
      "otherNotes": []
    },
    {
      "id": "entra-id-spn-sign-in-events-office-activity-token",
      "title": "Follow EntraIdSpnSignInEvents tokens into OfficeActivity",
      "description": "Match EntraIdSpnSignInEvents.UniqueTokenId to OfficeActivity.AppAccessContext.UniqueTokenId in supported Microsoft 365 audit records.",
      "from": {
        "table": "EntraIdSpnSignInEvents",
        "column": "UniqueTokenId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "OfficeActivity",
        "column": "AppAccessContext",
        "path": "UniqueTokenId",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Identity",
        "Microsoft 365",
        "Microsoft Sentinel",
        "Token correlation",
        "Nested JSON"
      ],
      "guidance": "Compare non-empty token identifiers exactly and preserve case; never lowercase a UTI. One token can have many activity records. Keep actor, tenant, application, and time context, and include the originating sign-in in the lookback. A missing match can reflect retention or collection gaps. AppAccessContext is populated only for supported Exchange, SharePoint, and Teams audit events; aggregated or background events can omit it. The property names are case-sensitive.",
      "family": "entra-token",
      "otherNotes": []
    },
    {
      "id": "entra-id-spn-sign-in-events-office-activity-session",
      "title": "Follow EntraIdSpnSignInEvents sessions into OfficeActivity",
      "description": "Match EntraIdSpnSignInEvents.SessionId to OfficeActivity.AppAccessContext.AADSessionId in supported Microsoft 365 audit records.",
      "from": {
        "table": "EntraIdSpnSignInEvents",
        "column": "SessionId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "OfficeActivity",
        "column": "AppAccessContext",
        "path": "AADSessionId",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Identity",
        "Microsoft 365",
        "Microsoft Sentinel",
        "Session correlation",
        "Nested JSON"
      ],
      "guidance": "This is the Entra sid claim and links authentication artifacts from the same root sign-in. A session can contain many tokens and activity records; SessionId and UniqueTokenIdentifier are different keys. Exclude empty values and retain actor, tenant, and time context. Some application-only or background events have no session ID. AppAccessContext is populated only for supported Exchange, SharePoint, and Teams audit events; aggregated or background events can omit it. The property names are case-sensitive.",
      "family": "entra-session",
      "otherNotes": []
    },
    {
      "id": "entra-id-sign-in-events-aad-graph-activity-logs-session",
      "title": "Follow EntraIdSignInEvents sessions into AADGraphActivityLogs",
      "description": "Match the Entra session identifier across EntraIdSignInEvents and AADGraphActivityLogs.",
      "from": {
        "table": "EntraIdSignInEvents",
        "column": "SessionId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "AADGraphActivityLogs",
        "column": "SessionId",
        "timeColumn": "TimeRequested"
      },
      "tags": [
        "Identity",
        "Session correlation",
        "Microsoft Sentinel"
      ],
      "guidance": "This is the Entra sid claim and links authentication artifacts from the same root sign-in. A session can contain many tokens and activity records; SessionId and UniqueTokenIdentifier are different keys. Exclude empty values and retain actor, tenant, and time context. Some application-only or background events have no session ID. Use TimeRequested for event timing and allow for ingestion delay.",
      "otherNotes": [
        {
          "title": "Identifier reference",
          "text": "Match the Entra session identifier across EntraIdSignInEvents and AADGraphActivityLogs.",
          "sourceLabel": "Microsoft Learn",
          "sourceUrl": "https://learn.microsoft.com/en-us/azure/azure-monitor/reference/tables/aadgraphactivitylogs",
          "query": "let LeftEvents = EntraIdSignInEvents\n| where Timestamp > ago(7d)\n| extend LeftKey = tostring(SessionId)\n| where isnotempty(LeftKey);\nlet RightEvents = AADGraphActivityLogs\n| where TimeRequested > ago(7d)\n| extend RightKey = tostring(SessionId)\n| where isnotempty(RightKey);\nLeftEvents\n| join kind=inner (RightEvents) on $left.LeftKey == $right.RightKey\n| project-away LeftKey, RightKey",
          "queryLanguage": "kusto"
        }
      ],
      "family": "entra-session"
    },
    {
      "id": "entra-id-sign-in-events-office-activity-token",
      "title": "Follow EntraIdSignInEvents tokens into OfficeActivity",
      "description": "Match EntraIdSignInEvents.UniqueTokenId to OfficeActivity.AppAccessContext.UniqueTokenId in supported Microsoft 365 audit records.",
      "from": {
        "table": "EntraIdSignInEvents",
        "column": "UniqueTokenId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "OfficeActivity",
        "column": "AppAccessContext",
        "path": "UniqueTokenId",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Identity",
        "Microsoft 365",
        "Microsoft Sentinel",
        "Token correlation",
        "Nested JSON"
      ],
      "guidance": "Compare non-empty token identifiers exactly and preserve case; never lowercase a UTI. One token can have many activity records. Keep actor, tenant, application, and time context, and include the originating sign-in in the lookback. A missing match can reflect retention or collection gaps. AppAccessContext is populated only for supported Exchange, SharePoint, and Teams audit events; aggregated or background events can omit it. The property names are case-sensitive.",
      "family": "entra-token",
      "otherNotes": []
    },
    {
      "id": "entra-id-sign-in-events-office-activity-session",
      "title": "Follow EntraIdSignInEvents sessions into OfficeActivity",
      "description": "Match EntraIdSignInEvents.SessionId to OfficeActivity.AppAccessContext.AADSessionId in supported Microsoft 365 audit records.",
      "from": {
        "table": "EntraIdSignInEvents",
        "column": "SessionId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "OfficeActivity",
        "column": "AppAccessContext",
        "path": "AADSessionId",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Identity",
        "Microsoft 365",
        "Microsoft Sentinel",
        "Session correlation",
        "Nested JSON"
      ],
      "guidance": "This is the Entra sid claim and links authentication artifacts from the same root sign-in. A session can contain many tokens and activity records; SessionId and UniqueTokenIdentifier are different keys. Exclude empty values and retain actor, tenant, and time context. Some application-only or background events have no session ID. AppAccessContext is populated only for supported Exchange, SharePoint, and Teams audit events; aggregated or background events can omit it. The property names are case-sensitive.",
      "family": "entra-session",
      "otherNotes": []
    },
    {
      "id": "entra-id-sign-in-events-signin-logs-token",
      "title": "Connect EntraIdSignInEvents and SigninLogs by token",
      "description": "Compare the same Entra token identifier in Defender and Sentinel sign-in records.",
      "from": {
        "table": "EntraIdSignInEvents",
        "column": "UniqueTokenId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "SigninLogs",
        "column": "UniqueTokenIdentifier",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Identity",
        "Microsoft Sentinel",
        "Token correlation"
      ],
      "guidance": "Compare non-empty token identifiers exactly and preserve case; never lowercase a UTI. One token can have many activity records. Keep actor, tenant, application, and time context, and include the originating sign-in in the lookback. A missing match can reflect retention or collection gaps. These sources can contain overlapping records; a match does not establish a separate authentication event.",
      "family": "entra-token",
      "otherNotes": []
    },
    {
      "id": "entra-id-sign-in-events-signin-logs-session",
      "title": "Connect EntraIdSignInEvents and SigninLogs by session",
      "description": "Compare the same Entra session identifier in Defender and Sentinel sign-in records.",
      "from": {
        "table": "EntraIdSignInEvents",
        "column": "SessionId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "SigninLogs",
        "column": "SessionId",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Identity",
        "Microsoft Sentinel",
        "Session correlation"
      ],
      "guidance": "This is the Entra sid claim and links authentication artifacts from the same root sign-in. A session can contain many tokens and activity records; SessionId and UniqueTokenIdentifier are different keys. Exclude empty values and retain actor, tenant, and time context. Some application-only or background events have no session ID. These sources can contain overlapping records; a match does not establish a separate authentication event.",
      "family": "entra-session",
      "otherNotes": []
    },
    {
      "id": "entra-id-sign-in-events-aad-non-interactive-user-sign-in-logs-token",
      "title": "Connect EntraIdSignInEvents and AADNonInteractiveUserSignInLogs by token",
      "description": "Compare the same Entra token identifier in Defender and Sentinel sign-in records.",
      "from": {
        "table": "EntraIdSignInEvents",
        "column": "UniqueTokenId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "AADNonInteractiveUserSignInLogs",
        "column": "UniqueTokenIdentifier",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Identity",
        "Microsoft Sentinel",
        "Token correlation"
      ],
      "guidance": "Compare non-empty token identifiers exactly and preserve case; never lowercase a UTI. One token can have many activity records. Keep actor, tenant, application, and time context, and include the originating sign-in in the lookback. A missing match can reflect retention or collection gaps. These sources can contain overlapping records; a match does not establish a separate authentication event.",
      "family": "entra-token",
      "otherNotes": []
    },
    {
      "id": "entra-id-sign-in-events-aad-non-interactive-user-sign-in-logs-session",
      "title": "Connect EntraIdSignInEvents and AADNonInteractiveUserSignInLogs by session",
      "description": "Compare the same Entra session identifier in Defender and Sentinel sign-in records.",
      "from": {
        "table": "EntraIdSignInEvents",
        "column": "SessionId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "AADNonInteractiveUserSignInLogs",
        "column": "SessionId",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Identity",
        "Microsoft Sentinel",
        "Session correlation"
      ],
      "guidance": "This is the Entra sid claim and links authentication artifacts from the same root sign-in. A session can contain many tokens and activity records; SessionId and UniqueTokenIdentifier are different keys. Exclude empty values and retain actor, tenant, and time context. Some application-only or background events have no session ID. These sources can contain overlapping records; a match does not establish a separate authentication event.",
      "family": "entra-session",
      "otherNotes": []
    },
    {
      "id": "entra-id-spn-sign-in-events-aad-service-principal-sign-in-logs-token",
      "title": "Connect EntraIdSpnSignInEvents and AADServicePrincipalSignInLogs by token",
      "description": "Compare the same Entra token identifier in Defender and Sentinel sign-in records.",
      "from": {
        "table": "EntraIdSpnSignInEvents",
        "column": "UniqueTokenId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "AADServicePrincipalSignInLogs",
        "column": "UniqueTokenIdentifier",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Identity",
        "Microsoft Sentinel",
        "Token correlation"
      ],
      "guidance": "Compare non-empty token identifiers exactly and preserve case; never lowercase a UTI. One token can have many activity records. Keep actor, tenant, application, and time context, and include the originating sign-in in the lookback. A missing match can reflect retention or collection gaps. These sources can contain overlapping records; a match does not establish a separate authentication event.",
      "family": "entra-token",
      "otherNotes": []
    },
    {
      "id": "entra-id-spn-sign-in-events-aad-service-principal-sign-in-logs-session",
      "title": "Connect EntraIdSpnSignInEvents and AADServicePrincipalSignInLogs by session",
      "description": "Compare the same Entra session identifier in Defender and Sentinel sign-in records.",
      "from": {
        "table": "EntraIdSpnSignInEvents",
        "column": "SessionId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "AADServicePrincipalSignInLogs",
        "column": "SessionId",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Identity",
        "Microsoft Sentinel",
        "Session correlation"
      ],
      "guidance": "This is the Entra sid claim and links authentication artifacts from the same root sign-in. A session can contain many tokens and activity records; SessionId and UniqueTokenIdentifier are different keys. Exclude empty values and retain actor, tenant, and time context. Some application-only or background events have no session ID. These sources can contain overlapping records; a match does not establish a separate authentication event.",
      "family": "entra-session",
      "otherNotes": []
    },
    {
      "id": "entra-id-spn-sign-in-events-aad-managed-identity-sign-in-logs-token",
      "title": "Connect EntraIdSpnSignInEvents and AADManagedIdentitySignInLogs by token",
      "description": "Compare the same Entra token identifier in Defender and Sentinel sign-in records.",
      "from": {
        "table": "EntraIdSpnSignInEvents",
        "column": "UniqueTokenId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "AADManagedIdentitySignInLogs",
        "column": "UniqueTokenIdentifier",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Identity",
        "Microsoft Sentinel",
        "Token correlation"
      ],
      "guidance": "Compare non-empty token identifiers exactly and preserve case; never lowercase a UTI. One token can have many activity records. Keep actor, tenant, application, and time context, and include the originating sign-in in the lookback. A missing match can reflect retention or collection gaps. These sources can contain overlapping records; a match does not establish a separate authentication event.",
      "family": "entra-token",
      "otherNotes": []
    },
    {
      "id": "entra-id-spn-sign-in-events-aad-managed-identity-sign-in-logs-session",
      "title": "Connect EntraIdSpnSignInEvents and AADManagedIdentitySignInLogs by session",
      "description": "Compare the same Entra session identifier in Defender and Sentinel sign-in records.",
      "from": {
        "table": "EntraIdSpnSignInEvents",
        "column": "SessionId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "AADManagedIdentitySignInLogs",
        "column": "SessionId",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Identity",
        "Microsoft Sentinel",
        "Session correlation"
      ],
      "guidance": "This is the Entra sid claim and links authentication artifacts from the same root sign-in. A session can contain many tokens and activity records; SessionId and UniqueTokenIdentifier are different keys. Exclude empty values and retain actor, tenant, and time context. Some application-only or background events have no session ID. These sources can contain overlapping records; a match does not establish a separate authentication event.",
      "family": "entra-session",
      "otherNotes": []
    },
    {
      "id": "sentinel-interactive-to-noninteractive-session",
      "title": "Connect interactive and non-interactive sign-ins",
      "description": "Follow an Entra session from an interactive sign-in into non-interactive token acquisition.",
      "from": {
        "table": "SigninLogs",
        "column": "SessionId",
        "timeColumn": "TimeGenerated"
      },
      "to": {
        "table": "AADNonInteractiveUserSignInLogs",
        "column": "SessionId",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Identity",
        "Session correlation",
        "Microsoft Sentinel"
      ],
      "guidance": "This is the Entra sid claim and links authentication artifacts from the same root sign-in. A session can contain many tokens and activity records; SessionId and UniqueTokenIdentifier are different keys. Exclude empty values and retain actor, tenant, and time context. Some application-only or background events have no session ID.",
      "family": "entra-session",
      "otherNotes": []
    },
    {
      "id": "identity-info-entra-id-sign-in-events-account-object-id",
      "title": "Enrich EntraIdSignInEvents with identity information",
      "description": "Match the Entra user object identifier in EntraIdSignInEvents.AccountObjectId to IdentityInfo.AccountObjectId.",
      "from": {
        "table": "IdentityInfo",
        "column": "AccountObjectId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "EntraIdSignInEvents",
        "column": "AccountObjectId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Identity",
        "User enrichment"
      ],
      "guidance": "Match the Microsoft Entra user object ID within the same identity tenant. Keep actor and target identities distinct; a shared account is enrichment, not proof that two events share a token or session. IdentityInfo can contain multiple snapshots; select the appropriate or latest snapshot before enrichment.",
      "family": "entra-user",
      "otherNotes": []
    },
    {
      "id": "identity-info-signin-logs-user-id",
      "title": "Enrich SigninLogs with identity information",
      "description": "Match the Entra user object identifier in SigninLogs.UserId to IdentityInfo.AccountObjectId.",
      "from": {
        "table": "IdentityInfo",
        "column": "AccountObjectId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "SigninLogs",
        "column": "UserId",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Identity",
        "User enrichment"
      ],
      "guidance": "Match the Microsoft Entra user object ID within the same identity tenant. Keep actor and target identities distinct; a shared account is enrichment, not proof that two events share a token or session. IdentityInfo can contain multiple snapshots; select the appropriate or latest snapshot before enrichment.",
      "family": "entra-user",
      "otherNotes": []
    },
    {
      "id": "identity-info-aad-non-interactive-user-sign-in-logs-user-id",
      "title": "Enrich AADNonInteractiveUserSignInLogs with identity information",
      "description": "Match the Entra user object identifier in AADNonInteractiveUserSignInLogs.UserId to IdentityInfo.AccountObjectId.",
      "from": {
        "table": "IdentityInfo",
        "column": "AccountObjectId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "AADNonInteractiveUserSignInLogs",
        "column": "UserId",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Identity",
        "User enrichment"
      ],
      "guidance": "Match the Microsoft Entra user object ID within the same identity tenant. Keep actor and target identities distinct; a shared account is enrichment, not proof that two events share a token or session. IdentityInfo can contain multiple snapshots; select the appropriate or latest snapshot before enrichment.",
      "family": "entra-user",
      "otherNotes": []
    },
    {
      "id": "identity-info-microsoft-graph-activity-logs-user-id",
      "title": "Enrich MicrosoftGraphActivityLogs with identity information",
      "description": "Match the Entra user object identifier in MicrosoftGraphActivityLogs.UserId to IdentityInfo.AccountObjectId.",
      "from": {
        "table": "IdentityInfo",
        "column": "AccountObjectId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "MicrosoftGraphActivityLogs",
        "column": "UserId",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Identity",
        "User enrichment"
      ],
      "guidance": "Match the Microsoft Entra user object ID within the same identity tenant. Keep actor and target identities distinct; a shared account is enrichment, not proof that two events share a token or session. IdentityInfo can contain multiple snapshots; select the appropriate or latest snapshot before enrichment.",
      "family": "entra-user",
      "otherNotes": []
    },
    {
      "id": "identity-info-graphapi-audit-events-account-object-id",
      "title": "Enrich GraphAPIAuditEvents with identity information",
      "description": "Match the Entra user object identifier in GraphAPIAuditEvents.AccountObjectId to IdentityInfo.AccountObjectId.",
      "from": {
        "table": "IdentityInfo",
        "column": "AccountObjectId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "GraphAPIAuditEvents",
        "column": "AccountObjectId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Identity",
        "User enrichment"
      ],
      "guidance": "Match the Microsoft Entra user object ID within the same identity tenant. Keep actor and target identities distinct; a shared account is enrichment, not proof that two events share a token or session. IdentityInfo can contain multiple snapshots; select the appropriate or latest snapshot before enrichment.",
      "family": "entra-user",
      "otherNotes": []
    },
    {
      "id": "identity-info-cloud-app-events-account-object-id",
      "title": "Enrich CloudAppEvents with identity information",
      "description": "Match the Entra user object identifier in CloudAppEvents.AccountObjectId to IdentityInfo.AccountObjectId.",
      "from": {
        "table": "IdentityInfo",
        "column": "AccountObjectId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "CloudAppEvents",
        "column": "AccountObjectId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Identity",
        "User enrichment"
      ],
      "guidance": "Match the Microsoft Entra user object ID within the same identity tenant. Keep actor and target identities distinct; a shared account is enrichment, not proof that two events share a token or session. IdentityInfo can contain multiple snapshots; select the appropriate or latest snapshot before enrichment.",
      "family": "entra-user",
      "otherNotes": []
    },
    {
      "id": "identity-info-identity-query-events-account-object-id",
      "title": "Enrich IdentityQueryEvents with identity information",
      "description": "Match the Entra user object identifier in IdentityQueryEvents.AccountObjectId to IdentityInfo.AccountObjectId.",
      "from": {
        "table": "IdentityInfo",
        "column": "AccountObjectId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "IdentityQueryEvents",
        "column": "AccountObjectId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Identity",
        "User enrichment"
      ],
      "guidance": "Match the Microsoft Entra user object ID within the same identity tenant. Keep actor and target identities distinct; a shared account is enrichment, not proof that two events share a token or session. IdentityInfo can contain multiple snapshots; select the appropriate or latest snapshot before enrichment.",
      "family": "entra-user",
      "otherNotes": []
    },
    {
      "id": "identity-info-identity-directory-events-account-object-id",
      "title": "Enrich IdentityDirectoryEvents with identity information",
      "description": "Match the Entra user object identifier in IdentityDirectoryEvents.AccountObjectId to IdentityInfo.AccountObjectId.",
      "from": {
        "table": "IdentityInfo",
        "column": "AccountObjectId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "IdentityDirectoryEvents",
        "column": "AccountObjectId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Identity",
        "User enrichment"
      ],
      "guidance": "Match the Microsoft Entra user object ID within the same identity tenant. Keep actor and target identities distinct; a shared account is enrichment, not proof that two events share a token or session. IdentityInfo can contain multiple snapshots; select the appropriate or latest snapshot before enrichment.",
      "family": "entra-user",
      "otherNotes": []
    },
    {
      "id": "identity-info-alert-evidence-account-object-id",
      "title": "Enrich AlertEvidence with identity information",
      "description": "Match the Entra user object identifier in AlertEvidence.AccountObjectId to IdentityInfo.AccountObjectId.",
      "from": {
        "table": "IdentityInfo",
        "column": "AccountObjectId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "AlertEvidence",
        "column": "AccountObjectId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Identity",
        "User enrichment"
      ],
      "guidance": "Match the Microsoft Entra user object ID within the same identity tenant. Keep actor and target identities distinct; a shared account is enrichment, not proof that two events share a token or session. IdentityInfo can contain multiple snapshots; select the appropriate or latest snapshot before enrichment.",
      "family": "entra-user",
      "otherNotes": []
    },
    {
      "id": "identity-info-behavior-entities-account-object-id",
      "title": "Enrich BehaviorEntities with identity information",
      "description": "Match the Entra user object identifier in BehaviorEntities.AccountObjectId to IdentityInfo.AccountObjectId.",
      "from": {
        "table": "IdentityInfo",
        "column": "AccountObjectId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "BehaviorEntities",
        "column": "AccountObjectId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Identity",
        "User enrichment"
      ],
      "guidance": "Match the Microsoft Entra user object ID within the same identity tenant. Keep actor and target identities distinct; a shared account is enrichment, not proof that two events share a token or session. IdentityInfo can contain multiple snapshots; select the appropriate or latest snapshot before enrichment.",
      "family": "entra-user",
      "otherNotes": []
    },
    {
      "id": "identity-info-data-security-events-account-object-id",
      "title": "Enrich DataSecurityEvents with identity information",
      "description": "Match the Entra user object identifier in DataSecurityEvents.AccountObjectId to IdentityInfo.AccountObjectId.",
      "from": {
        "table": "IdentityInfo",
        "column": "AccountObjectId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "DataSecurityEvents",
        "column": "AccountObjectId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Identity",
        "User enrichment"
      ],
      "guidance": "Match the Microsoft Entra user object ID within the same identity tenant. Keep actor and target identities distinct; a shared account is enrichment, not proof that two events share a token or session. IdentityInfo can contain multiple snapshots; select the appropriate or latest snapshot before enrichment.",
      "family": "entra-user",
      "otherNotes": []
    },
    {
      "id": "identity-info-email-events-sender-object-id",
      "title": "Enrich EmailEvents with identity information",
      "description": "Match the Entra user object identifier in EmailEvents.SenderObjectId to IdentityInfo.AccountObjectId.",
      "from": {
        "table": "IdentityInfo",
        "column": "AccountObjectId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "EmailEvents",
        "column": "SenderObjectId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Identity",
        "User enrichment"
      ],
      "guidance": "Match the Microsoft Entra user object ID within the same identity tenant. Keep actor and target identities distinct; a shared account is enrichment, not proof that two events share a token or session. IdentityInfo can contain multiple snapshots; select the appropriate or latest snapshot before enrichment.",
      "family": "entra-user",
      "otherNotes": []
    },
    {
      "id": "identity-info-email-events-recipient-object-id",
      "title": "Enrich EmailEvents with identity information",
      "description": "Match the Entra user object identifier in EmailEvents.RecipientObjectId to IdentityInfo.AccountObjectId.",
      "from": {
        "table": "IdentityInfo",
        "column": "AccountObjectId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "EmailEvents",
        "column": "RecipientObjectId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Identity",
        "User enrichment"
      ],
      "guidance": "Match the Microsoft Entra user object ID within the same identity tenant. Keep actor and target identities distinct; a shared account is enrichment, not proof that two events share a token or session. IdentityInfo can contain multiple snapshots; select the appropriate or latest snapshot before enrichment.",
      "family": "entra-user",
      "otherNotes": []
    },
    {
      "id": "identity-info-message-events-sender-object-id",
      "title": "Enrich MessageEvents with identity information",
      "description": "Match the Entra user object identifier in MessageEvents.SenderObjectId to IdentityInfo.AccountObjectId.",
      "from": {
        "table": "IdentityInfo",
        "column": "AccountObjectId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "MessageEvents",
        "column": "SenderObjectId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Identity",
        "User enrichment"
      ],
      "guidance": "Match the Microsoft Entra user object ID within the same identity tenant. Keep actor and target identities distinct; a shared account is enrichment, not proof that two events share a token or session. IdentityInfo can contain multiple snapshots; select the appropriate or latest snapshot before enrichment.",
      "family": "entra-user",
      "otherNotes": []
    },
    {
      "id": "identity-info-to-account-info",
      "title": "Connect an identity to its accounts",
      "description": "Match IdentityId to find the accounts linked to an identity.",
      "from": {
        "table": "IdentityInfo",
        "column": "IdentityId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "IdentityAccountInfo",
        "column": "IdentityId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Identity"
      ],
      "guidance": "One identity can own multiple provider accounts. IdentityId is the unified identity key; AccountId is an internal account key and SourceProviderAccountId belongs to the named provider. Select the appropriate account and identity snapshots.",
      "family": "unified-identity",
      "otherNotes": []
    },
    {
      "id": "identity-account-info-to-events",
      "title": "Enrich identity events with account information",
      "description": "Match the internal AccountId in IdentityEvents to IdentityAccountInfo.",
      "from": {
        "table": "IdentityAccountInfo",
        "column": "AccountId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "IdentityEvents",
        "column": "AccountId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Identity",
        "User enrichment"
      ],
      "guidance": "Use the internal account key. SourceProviderAccountId and an Entra object ID are different identifier namespaces. Select the appropriate account snapshot and preserve its SourceProvider context.",
      "family": "identity-account",
      "otherNotes": []
    },
    {
      "id": "oauth-app-info-entra-id-sign-in-events-application-id",
      "title": "Enrich EntraIdSignInEvents with OAuth application information",
      "description": "Match OAuthAppInfo.OAuthAppId to EntraIdSignInEvents.ApplicationId.",
      "from": {
        "table": "OAuthAppInfo",
        "column": "OAuthAppId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "EntraIdSignInEvents",
        "column": "ApplicationId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Identity",
        "OAuth applications",
        "Application enrichment"
      ],
      "guidance": "The OAuth application/client ID and the service principal object ID are different namespaces. Scope service principal joins to the same tenant. App metadata can have multiple snapshots; select the relevant snapshot. A shared application enriches activity and does not establish a shared token or session.",
      "family": "oauth-client",
      "otherNotes": []
    },
    {
      "id": "oauth-app-info-entra-id-spn-sign-in-events-application-id",
      "title": "Enrich EntraIdSpnSignInEvents with OAuth application information",
      "description": "Match OAuthAppInfo.OAuthAppId to EntraIdSpnSignInEvents.ApplicationId.",
      "from": {
        "table": "OAuthAppInfo",
        "column": "OAuthAppId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "EntraIdSpnSignInEvents",
        "column": "ApplicationId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Identity",
        "OAuth applications",
        "Application enrichment"
      ],
      "guidance": "The OAuth application/client ID and the service principal object ID are different namespaces. Scope service principal joins to the same tenant. App metadata can have multiple snapshots; select the relevant snapshot. A shared application enriches activity and does not establish a shared token or session.",
      "family": "oauth-client",
      "otherNotes": []
    },
    {
      "id": "oauth-app-info-entra-id-spn-sign-in-events-service-principal-id",
      "title": "Enrich EntraIdSpnSignInEvents with OAuth application information",
      "description": "Match OAuthAppInfo.ServicePrincipalId to EntraIdSpnSignInEvents.ServicePrincipalId.",
      "from": {
        "table": "OAuthAppInfo",
        "column": "ServicePrincipalId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "EntraIdSpnSignInEvents",
        "column": "ServicePrincipalId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Identity",
        "OAuth applications",
        "Application enrichment"
      ],
      "guidance": "The OAuth application/client ID and the service principal object ID are different namespaces. Scope service principal joins to the same tenant. App metadata can have multiple snapshots; select the relevant snapshot. A shared application enriches activity and does not establish a shared token or session.",
      "family": "service-principal",
      "otherNotes": []
    },
    {
      "id": "oauth-app-info-microsoft-graph-activity-logs-app-id",
      "title": "Enrich MicrosoftGraphActivityLogs with OAuth application information",
      "description": "Match OAuthAppInfo.OAuthAppId to MicrosoftGraphActivityLogs.AppId.",
      "from": {
        "table": "OAuthAppInfo",
        "column": "OAuthAppId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "MicrosoftGraphActivityLogs",
        "column": "AppId",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Identity",
        "OAuth applications",
        "Application enrichment"
      ],
      "guidance": "The OAuth application/client ID and the service principal object ID are different namespaces. Scope service principal joins to the same tenant. App metadata can have multiple snapshots; select the relevant snapshot. A shared application enriches activity and does not establish a shared token or session.",
      "family": "oauth-client",
      "otherNotes": []
    },
    {
      "id": "oauth-app-info-microsoft-graph-activity-logs-service-principal-id",
      "title": "Enrich MicrosoftGraphActivityLogs with OAuth application information",
      "description": "Match OAuthAppInfo.ServicePrincipalId to MicrosoftGraphActivityLogs.ServicePrincipalId.",
      "from": {
        "table": "OAuthAppInfo",
        "column": "ServicePrincipalId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "MicrosoftGraphActivityLogs",
        "column": "ServicePrincipalId",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Identity",
        "OAuth applications",
        "Application enrichment"
      ],
      "guidance": "The OAuth application/client ID and the service principal object ID are different namespaces. Scope service principal joins to the same tenant. App metadata can have multiple snapshots; select the relevant snapshot. A shared application enriches activity and does not establish a shared token or session.",
      "family": "service-principal",
      "otherNotes": []
    },
    {
      "id": "oauth-app-info-graphapi-audit-events-application-id",
      "title": "Enrich GraphAPIAuditEvents with OAuth application information",
      "description": "Match OAuthAppInfo.OAuthAppId to GraphAPIAuditEvents.ApplicationId.",
      "from": {
        "table": "OAuthAppInfo",
        "column": "OAuthAppId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "GraphAPIAuditEvents",
        "column": "ApplicationId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Identity",
        "OAuth applications",
        "Application enrichment"
      ],
      "guidance": "The OAuth application/client ID and the service principal object ID are different namespaces. Scope service principal joins to the same tenant. App metadata can have multiple snapshots; select the relevant snapshot. A shared application enriches activity and does not establish a shared token or session.",
      "family": "oauth-client",
      "otherNotes": []
    },
    {
      "id": "oauth-app-info-graphapi-audit-events-service-principal-id",
      "title": "Enrich GraphAPIAuditEvents with OAuth application information",
      "description": "Match OAuthAppInfo.ServicePrincipalId to GraphAPIAuditEvents.ServicePrincipalId.",
      "from": {
        "table": "OAuthAppInfo",
        "column": "ServicePrincipalId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "GraphAPIAuditEvents",
        "column": "ServicePrincipalId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Identity",
        "OAuth applications",
        "Application enrichment"
      ],
      "guidance": "The OAuth application/client ID and the service principal object ID are different namespaces. Scope service principal joins to the same tenant. App metadata can have multiple snapshots; select the relevant snapshot. A shared application enriches activity and does not establish a shared token or session.",
      "family": "service-principal",
      "otherNotes": []
    },
    {
      "id": "oauth-app-info-cloud-app-events-o-auth-app-id",
      "title": "Enrich CloudAppEvents with OAuth application information",
      "description": "Match OAuthAppInfo.OAuthAppId to CloudAppEvents.OAuthAppId.",
      "from": {
        "table": "OAuthAppInfo",
        "column": "OAuthAppId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "CloudAppEvents",
        "column": "OAuthAppId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Identity",
        "OAuth applications",
        "Application enrichment"
      ],
      "guidance": "The OAuth application/client ID and the service principal object ID are different namespaces. Scope service principal joins to the same tenant. App metadata can have multiple snapshots; select the relevant snapshot. A shared application enriches activity and does not establish a shared token or session.",
      "family": "oauth-client",
      "otherNotes": []
    },
    {
      "id": "oauth-app-info-signin-logs-app-id",
      "title": "Enrich SigninLogs with OAuth application information",
      "description": "Match OAuthAppInfo.OAuthAppId to SigninLogs.AppId.",
      "from": {
        "table": "OAuthAppInfo",
        "column": "OAuthAppId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "SigninLogs",
        "column": "AppId",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Identity",
        "OAuth applications",
        "Application enrichment"
      ],
      "guidance": "The OAuth application/client ID and the service principal object ID are different namespaces. Scope service principal joins to the same tenant. App metadata can have multiple snapshots; select the relevant snapshot. A shared application enriches activity and does not establish a shared token or session.",
      "family": "oauth-client",
      "otherNotes": []
    },
    {
      "id": "oauth-app-info-signin-logs-service-principal-id",
      "title": "Enrich SigninLogs with OAuth application information",
      "description": "Match OAuthAppInfo.ServicePrincipalId to SigninLogs.ServicePrincipalId.",
      "from": {
        "table": "OAuthAppInfo",
        "column": "ServicePrincipalId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "SigninLogs",
        "column": "ServicePrincipalId",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Identity",
        "OAuth applications",
        "Application enrichment"
      ],
      "guidance": "The OAuth application/client ID and the service principal object ID are different namespaces. Scope service principal joins to the same tenant. App metadata can have multiple snapshots; select the relevant snapshot. A shared application enriches activity and does not establish a shared token or session.",
      "family": "service-principal",
      "otherNotes": []
    },
    {
      "id": "oauth-app-info-aad-non-interactive-user-sign-in-logs-app-id",
      "title": "Enrich AADNonInteractiveUserSignInLogs with OAuth application information",
      "description": "Match OAuthAppInfo.OAuthAppId to AADNonInteractiveUserSignInLogs.AppId.",
      "from": {
        "table": "OAuthAppInfo",
        "column": "OAuthAppId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "AADNonInteractiveUserSignInLogs",
        "column": "AppId",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Identity",
        "OAuth applications",
        "Application enrichment"
      ],
      "guidance": "The OAuth application/client ID and the service principal object ID are different namespaces. Scope service principal joins to the same tenant. App metadata can have multiple snapshots; select the relevant snapshot. A shared application enriches activity and does not establish a shared token or session.",
      "family": "oauth-client",
      "otherNotes": []
    },
    {
      "id": "oauth-app-info-aad-non-interactive-user-sign-in-logs-service-principal-id",
      "title": "Enrich AADNonInteractiveUserSignInLogs with OAuth application information",
      "description": "Match OAuthAppInfo.ServicePrincipalId to AADNonInteractiveUserSignInLogs.ServicePrincipalId.",
      "from": {
        "table": "OAuthAppInfo",
        "column": "ServicePrincipalId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "AADNonInteractiveUserSignInLogs",
        "column": "ServicePrincipalId",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Identity",
        "OAuth applications",
        "Application enrichment"
      ],
      "guidance": "The OAuth application/client ID and the service principal object ID are different namespaces. Scope service principal joins to the same tenant. App metadata can have multiple snapshots; select the relevant snapshot. A shared application enriches activity and does not establish a shared token or session.",
      "family": "service-principal",
      "otherNotes": []
    },
    {
      "id": "oauth-app-info-aad-service-principal-sign-in-logs-app-id",
      "title": "Enrich AADServicePrincipalSignInLogs with OAuth application information",
      "description": "Match OAuthAppInfo.OAuthAppId to AADServicePrincipalSignInLogs.AppId.",
      "from": {
        "table": "OAuthAppInfo",
        "column": "OAuthAppId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "AADServicePrincipalSignInLogs",
        "column": "AppId",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Identity",
        "OAuth applications",
        "Application enrichment"
      ],
      "guidance": "The OAuth application/client ID and the service principal object ID are different namespaces. Scope service principal joins to the same tenant. App metadata can have multiple snapshots; select the relevant snapshot. A shared application enriches activity and does not establish a shared token or session.",
      "family": "oauth-client",
      "otherNotes": []
    },
    {
      "id": "oauth-app-info-aad-service-principal-sign-in-logs-service-principal-id",
      "title": "Enrich AADServicePrincipalSignInLogs with OAuth application information",
      "description": "Match OAuthAppInfo.ServicePrincipalId to AADServicePrincipalSignInLogs.ServicePrincipalId.",
      "from": {
        "table": "OAuthAppInfo",
        "column": "ServicePrincipalId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "AADServicePrincipalSignInLogs",
        "column": "ServicePrincipalId",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Identity",
        "OAuth applications",
        "Application enrichment"
      ],
      "guidance": "The OAuth application/client ID and the service principal object ID are different namespaces. Scope service principal joins to the same tenant. App metadata can have multiple snapshots; select the relevant snapshot. A shared application enriches activity and does not establish a shared token or session.",
      "family": "service-principal",
      "otherNotes": []
    },
    {
      "id": "oauth-app-info-aad-managed-identity-sign-in-logs-app-id",
      "title": "Enrich AADManagedIdentitySignInLogs with OAuth application information",
      "description": "Match OAuthAppInfo.OAuthAppId to AADManagedIdentitySignInLogs.AppId.",
      "from": {
        "table": "OAuthAppInfo",
        "column": "OAuthAppId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "AADManagedIdentitySignInLogs",
        "column": "AppId",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Identity",
        "OAuth applications",
        "Application enrichment"
      ],
      "guidance": "The OAuth application/client ID and the service principal object ID are different namespaces. Scope service principal joins to the same tenant. App metadata can have multiple snapshots; select the relevant snapshot. A shared application enriches activity and does not establish a shared token or session.",
      "family": "oauth-client",
      "otherNotes": []
    },
    {
      "id": "oauth-app-info-aad-managed-identity-sign-in-logs-service-principal-id",
      "title": "Enrich AADManagedIdentitySignInLogs with OAuth application information",
      "description": "Match OAuthAppInfo.ServicePrincipalId to AADManagedIdentitySignInLogs.ServicePrincipalId.",
      "from": {
        "table": "OAuthAppInfo",
        "column": "ServicePrincipalId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "AADManagedIdentitySignInLogs",
        "column": "ServicePrincipalId",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Identity",
        "OAuth applications",
        "Application enrichment"
      ],
      "guidance": "The OAuth application/client ID and the service principal object ID are different namespaces. Scope service principal joins to the same tenant. App metadata can have multiple snapshots; select the relevant snapshot. A shared application enriches activity and does not establish a shared token or session.",
      "family": "service-principal",
      "otherNotes": []
    },
    {
      "id": "device-info-device-network-info",
      "title": "Enrich DeviceNetworkInfo with device information",
      "description": "Match the Defender device identifier in DeviceNetworkInfo to DeviceInfo.DeviceId.",
      "from": {
        "table": "DeviceInfo",
        "column": "DeviceId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "DeviceNetworkInfo",
        "column": "DeviceId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Device",
        "Device enrichment"
      ],
      "guidance": "DeviceId identifies a Defender for Endpoint device. It is different from an Entra device ID. Select the relevant DeviceInfo snapshot before enrichment; repeated snapshots and events can produce multiple matches.",
      "family": "defender-device",
      "otherNotes": []
    },
    {
      "id": "device-info-device-file-events",
      "title": "Enrich DeviceFileEvents with device information",
      "description": "Match the Defender device identifier in DeviceFileEvents to DeviceInfo.DeviceId.",
      "from": {
        "table": "DeviceInfo",
        "column": "DeviceId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "DeviceFileEvents",
        "column": "DeviceId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Device",
        "Device enrichment"
      ],
      "guidance": "DeviceId identifies a Defender for Endpoint device. It is different from an Entra device ID. Select the relevant DeviceInfo snapshot before enrichment; repeated snapshots and events can produce multiple matches.",
      "family": "defender-device",
      "otherNotes": []
    },
    {
      "id": "device-info-device-registry-events",
      "title": "Enrich DeviceRegistryEvents with device information",
      "description": "Match the Defender device identifier in DeviceRegistryEvents to DeviceInfo.DeviceId.",
      "from": {
        "table": "DeviceInfo",
        "column": "DeviceId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "DeviceRegistryEvents",
        "column": "DeviceId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Device",
        "Device enrichment"
      ],
      "guidance": "DeviceId identifies a Defender for Endpoint device. It is different from an Entra device ID. Select the relevant DeviceInfo snapshot before enrichment; repeated snapshots and events can produce multiple matches.",
      "family": "defender-device",
      "otherNotes": []
    },
    {
      "id": "device-info-device-logon-events",
      "title": "Enrich DeviceLogonEvents with device information",
      "description": "Match the Defender device identifier in DeviceLogonEvents to DeviceInfo.DeviceId.",
      "from": {
        "table": "DeviceInfo",
        "column": "DeviceId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "DeviceLogonEvents",
        "column": "DeviceId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Device",
        "Device enrichment"
      ],
      "guidance": "DeviceId identifies a Defender for Endpoint device. It is different from an Entra device ID. Select the relevant DeviceInfo snapshot before enrichment; repeated snapshots and events can produce multiple matches.",
      "family": "defender-device",
      "otherNotes": []
    },
    {
      "id": "device-info-device-image-load-events",
      "title": "Enrich DeviceImageLoadEvents with device information",
      "description": "Match the Defender device identifier in DeviceImageLoadEvents to DeviceInfo.DeviceId.",
      "from": {
        "table": "DeviceInfo",
        "column": "DeviceId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "DeviceImageLoadEvents",
        "column": "DeviceId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Device",
        "Device enrichment"
      ],
      "guidance": "DeviceId identifies a Defender for Endpoint device. It is different from an Entra device ID. Select the relevant DeviceInfo snapshot before enrichment; repeated snapshots and events can produce multiple matches.",
      "family": "defender-device",
      "otherNotes": []
    },
    {
      "id": "device-info-device-events",
      "title": "Enrich DeviceEvents with device information",
      "description": "Match the Defender device identifier in DeviceEvents to DeviceInfo.DeviceId.",
      "from": {
        "table": "DeviceInfo",
        "column": "DeviceId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "DeviceEvents",
        "column": "DeviceId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Device",
        "Device enrichment"
      ],
      "guidance": "DeviceId identifies a Defender for Endpoint device. It is different from an Entra device ID. Select the relevant DeviceInfo snapshot before enrichment; repeated snapshots and events can produce multiple matches.",
      "family": "defender-device",
      "otherNotes": []
    },
    {
      "id": "device-info-device-file-certificate-info",
      "title": "Enrich DeviceFileCertificateInfo with device information",
      "description": "Match the Defender device identifier in DeviceFileCertificateInfo to DeviceInfo.DeviceId.",
      "from": {
        "table": "DeviceInfo",
        "column": "DeviceId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "DeviceFileCertificateInfo",
        "column": "DeviceId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Device",
        "Device enrichment"
      ],
      "guidance": "DeviceId identifies a Defender for Endpoint device. It is different from an Entra device ID. Select the relevant DeviceInfo snapshot before enrichment; repeated snapshots and events can produce multiple matches.",
      "family": "defender-device",
      "otherNotes": []
    },
    {
      "id": "device-info-device-alert-events",
      "title": "Enrich DeviceAlertEvents with device information",
      "description": "Match the Defender device identifier in DeviceAlertEvents to DeviceInfo.DeviceId.",
      "from": {
        "table": "DeviceInfo",
        "column": "DeviceId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "DeviceAlertEvents",
        "column": "DeviceId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Device",
        "Device enrichment"
      ],
      "guidance": "DeviceId identifies a Defender for Endpoint device. It is different from an Entra device ID. Select the relevant DeviceInfo snapshot before enrichment; repeated snapshots and events can produce multiple matches.",
      "family": "defender-device",
      "otherNotes": []
    },
    {
      "id": "device-info-device-tvm-software-vulnerabilities",
      "title": "Enrich DeviceTvmSoftwareVulnerabilities with device information",
      "description": "Match the Defender device identifier in DeviceTvmSoftwareVulnerabilities to DeviceInfo.DeviceId.",
      "from": {
        "table": "DeviceInfo",
        "column": "DeviceId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "DeviceTvmSoftwareVulnerabilities",
        "column": "DeviceId"
      },
      "tags": [
        "Device",
        "Device enrichment"
      ],
      "guidance": "DeviceId identifies a Defender for Endpoint device. It is different from an Entra device ID. Select the relevant DeviceInfo snapshot before enrichment; repeated snapshots and events can produce multiple matches.",
      "family": "defender-device",
      "otherNotes": []
    },
    {
      "id": "device-info-device-tvm-secure-configuration-assessment",
      "title": "Enrich DeviceTvmSecureConfigurationAssessment with device information",
      "description": "Match the Defender device identifier in DeviceTvmSecureConfigurationAssessment to DeviceInfo.DeviceId.",
      "from": {
        "table": "DeviceInfo",
        "column": "DeviceId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "DeviceTvmSecureConfigurationAssessment",
        "column": "DeviceId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Device",
        "Device enrichment"
      ],
      "guidance": "DeviceId identifies a Defender for Endpoint device. It is different from an Entra device ID. Select the relevant DeviceInfo snapshot before enrichment; repeated snapshots and events can produce multiple matches.",
      "family": "defender-device",
      "otherNotes": []
    },
    {
      "id": "device-info-device-tvm-software-inventory",
      "title": "Enrich DeviceTvmSoftwareInventory with device information",
      "description": "Match the Defender device identifier in DeviceTvmSoftwareInventory to DeviceInfo.DeviceId.",
      "from": {
        "table": "DeviceInfo",
        "column": "DeviceId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "DeviceTvmSoftwareInventory",
        "column": "DeviceId"
      },
      "tags": [
        "Device",
        "Device enrichment"
      ],
      "guidance": "DeviceId identifies a Defender for Endpoint device. It is different from an Entra device ID. Select the relevant DeviceInfo snapshot before enrichment; repeated snapshots and events can produce multiple matches.",
      "family": "defender-device",
      "otherNotes": []
    },
    {
      "id": "device-info-device-tvm-info-gathering",
      "title": "Enrich DeviceTvmInfoGathering with device information",
      "description": "Match the Defender device identifier in DeviceTvmInfoGathering to DeviceInfo.DeviceId.",
      "from": {
        "table": "DeviceInfo",
        "column": "DeviceId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "DeviceTvmInfoGathering",
        "column": "DeviceId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Device",
        "Device enrichment"
      ],
      "guidance": "DeviceId identifies a Defender for Endpoint device. It is different from an Entra device ID. Select the relevant DeviceInfo snapshot before enrichment; repeated snapshots and events can produce multiple matches.",
      "family": "defender-device",
      "otherNotes": []
    },
    {
      "id": "device-info-device-tvm-software-evidence-beta",
      "title": "Enrich DeviceTvmSoftwareEvidenceBeta with device information",
      "description": "Match the Defender device identifier in DeviceTvmSoftwareEvidenceBeta to DeviceInfo.DeviceId.",
      "from": {
        "table": "DeviceInfo",
        "column": "DeviceId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "DeviceTvmSoftwareEvidenceBeta",
        "column": "DeviceId"
      },
      "tags": [
        "Device",
        "Device enrichment"
      ],
      "guidance": "DeviceId identifies a Defender for Endpoint device. It is different from an Entra device ID. Select the relevant DeviceInfo snapshot before enrichment; repeated snapshots and events can produce multiple matches.",
      "family": "defender-device",
      "otherNotes": []
    },
    {
      "id": "device-info-entra-id-sign-in-events-entra-device",
      "title": "Connect EntraIdSignInEvents to an Entra device",
      "description": "Match DeviceInfo.AadDeviceId to the Entra device identifier in EntraIdSignInEvents.",
      "from": {
        "table": "DeviceInfo",
        "column": "AadDeviceId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "EntraIdSignInEvents",
        "column": "EntraIdDeviceId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Device",
        "Identity",
        "Device enrichment"
      ],
      "guidance": "Use the Entra device GUID, not DeviceInfo.DeviceId. Device details are available only when recorded in the authentication context. Exclude empty identifiers and select the appropriate DeviceInfo snapshot.",
      "family": "entra-device",
      "otherNotes": []
    },
    {
      "id": "device-info-microsoft-graph-activity-logs-entra-device",
      "title": "Connect MicrosoftGraphActivityLogs to an Entra device",
      "description": "Match DeviceInfo.AadDeviceId to the Entra device identifier in MicrosoftGraphActivityLogs.",
      "from": {
        "table": "DeviceInfo",
        "column": "AadDeviceId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "MicrosoftGraphActivityLogs",
        "column": "DeviceId",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Device",
        "Identity",
        "Device enrichment"
      ],
      "guidance": "Use the Entra device GUID, not DeviceInfo.DeviceId. Device details are available only when recorded in the authentication context. Exclude empty identifiers and select the appropriate DeviceInfo snapshot.",
      "family": "entra-device",
      "otherNotes": []
    },
    {
      "id": "device-info-signin-logs-entra-device",
      "title": "Connect SigninLogs to an Entra device",
      "description": "Match DeviceInfo.AadDeviceId to the Entra device identifier in SigninLogs.",
      "from": {
        "table": "DeviceInfo",
        "column": "AadDeviceId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "SigninLogs",
        "column": "DeviceDetail",
        "path": "deviceId",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Device",
        "Identity",
        "Device enrichment",
        "Nested JSON"
      ],
      "guidance": "Use the Entra device GUID, not DeviceInfo.DeviceId. Device details are available only when recorded in the authentication context. Exclude empty identifiers and select the appropriate DeviceInfo snapshot.",
      "family": "entra-device",
      "otherNotes": []
    },
    {
      "id": "device-info-aad-non-interactive-user-sign-in-logs-entra-device",
      "title": "Connect AADNonInteractiveUserSignInLogs to an Entra device",
      "description": "Match DeviceInfo.AadDeviceId to the Entra device identifier in AADNonInteractiveUserSignInLogs.",
      "from": {
        "table": "DeviceInfo",
        "column": "AadDeviceId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "AADNonInteractiveUserSignInLogs",
        "column": "DeviceDetail",
        "path": "deviceId",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Device",
        "Identity",
        "Device enrichment",
        "Nested JSON"
      ],
      "guidance": "Use the Entra device GUID, not DeviceInfo.DeviceId. Device details are available only when recorded in the authentication context. Exclude empty identifiers and select the appropriate DeviceInfo snapshot.",
      "family": "entra-device",
      "otherNotes": []
    },
    {
      "id": "message-events-message-url-info",
      "title": "Connect Teams messages to MessageUrlInfo",
      "description": "Match TeamsMessageId to locate related Teams message records.",
      "from": {
        "table": "MessageEvents",
        "column": "TeamsMessageId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "MessageUrlInfo",
        "column": "TeamsMessageId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Microsoft Teams",
        "Message correlation"
      ],
      "guidance": "One message can have multiple URLs, versions, or post-delivery records. Preserve sender, thread, and event-time context; use TeamsMessageId rather than assuming MessageId uses the same namespace.",
      "family": "teams-message",
      "otherNotes": []
    },
    {
      "id": "message-events-message-post-delivery-events",
      "title": "Connect Teams messages to MessagePostDeliveryEvents",
      "description": "Match TeamsMessageId to locate related Teams message records.",
      "from": {
        "table": "MessageEvents",
        "column": "TeamsMessageId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "MessagePostDeliveryEvents",
        "column": "TeamsMessageId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Microsoft Teams",
        "Message correlation"
      ],
      "guidance": "One message can have multiple URLs, versions, or post-delivery records. Preserve sender, thread, and event-time context; use TeamsMessageId rather than assuming MessageId uses the same namespace.",
      "family": "teams-message",
      "otherNotes": []
    },
    {
      "id": "email-events-campaign-info-message",
      "title": "Connect email activity to CampaignInfo",
      "description": "Match the Microsoft 365 NetworkMessageId in EmailEvents and CampaignInfo.",
      "from": {
        "table": "EmailEvents",
        "column": "NetworkMessageId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "CampaignInfo",
        "column": "NetworkMessageId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Email",
        "Message correlation"
      ],
      "guidance": "A message can have multiple recipients and activity or evidence rows. Add recipient context when correlating a particular delivery. NetworkMessageId is different from an InternetMessageId.",
      "family": "email-message",
      "otherNotes": []
    },
    {
      "id": "email-events-data-security-events-message",
      "title": "Connect email activity to DataSecurityEvents",
      "description": "Match the Microsoft 365 NetworkMessageId in EmailEvents and DataSecurityEvents.",
      "from": {
        "table": "EmailEvents",
        "column": "NetworkMessageId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "DataSecurityEvents",
        "column": "NetworkMessageId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Email",
        "Message correlation"
      ],
      "guidance": "A message can have multiple recipients and activity or evidence rows. Add recipient context when correlating a particular delivery. NetworkMessageId is different from an InternetMessageId.",
      "family": "email-message",
      "otherNotes": []
    },
    {
      "id": "email-events-alert-evidence-message",
      "title": "Connect email activity to AlertEvidence",
      "description": "Match the Microsoft 365 NetworkMessageId in EmailEvents and AlertEvidence.",
      "from": {
        "table": "EmailEvents",
        "column": "NetworkMessageId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "AlertEvidence",
        "column": "NetworkMessageId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Email",
        "Message correlation"
      ],
      "guidance": "A message can have multiple recipients and activity or evidence rows. Add recipient context when correlating a particular delivery. NetworkMessageId is different from an InternetMessageId.",
      "family": "email-message",
      "otherNotes": []
    },
    {
      "id": "alert-info-to-device-alert-events",
      "title": "Connect alert metadata to device alerts",
      "description": "Match the Defender alert ID across AlertInfo and DeviceAlertEvents.",
      "from": {
        "table": "AlertInfo",
        "column": "AlertId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "DeviceAlertEvents",
        "column": "AlertId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Alerts",
        "Device"
      ],
      "guidance": "Keep device and alert context. One alert may have multiple device event records.",
      "family": "defender-alert",
      "otherNotes": []
    },
    {
      "id": "sentinel-incident-to-alerts",
      "title": "Expand a Sentinel incident into its alerts",
      "description": "Expand SecurityIncident.AlertIds and match each identifier to SecurityAlert.SystemAlertId.",
      "from": {
        "table": "SecurityIncident",
        "column": "AlertIds",
        "path": "[]",
        "timeColumn": "TimeGenerated"
      },
      "to": {
        "table": "SecurityAlert",
        "column": "SystemAlertId",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Alerts",
        "Microsoft Sentinel",
        "Nested JSON"
      ],
      "guidance": "Select the latest SecurityIncident record per IncidentName within the workspace before expanding AlertIds. Both incident history and alert updates can create duplicate results. The Sentinel system alert ID is a separate namespace from Defender AlertInfo.AlertId. Select the latest incident snapshot before expansion and searches a longer alert window because an incident update can reference an older alert. Adjust both lookbacks to your retention and investigation period.",
      "kql": "let IncidentAlerts = SecurityIncident\n| where TimeGenerated > ago(7d)\n| summarize arg_max(TimeGenerated, *) by TenantId, IncidentName\n| mv-expand SystemAlertId = AlertIds to typeof(string)\n| where isnotempty(SystemAlertId);\nSecurityAlert\n| where TimeGenerated > ago(30d)\n| where isnotempty(SystemAlertId)\n| join kind=inner (IncidentAlerts) on SystemAlertId",
      "otherNotes": [
        {
          "title": "Incident alert identifiers",
          "text": "SecurityIncident.AlertIds contains the identifiers of the alerts related to an incident. Expand the array to find the corresponding SystemAlertId values in SecurityAlert.",
          "sourceLabel": "Microsoft Learn: SecurityIncident",
          "sourceUrl": "https://learn.microsoft.com/en-us/azure/azure-monitor/reference/tables/securityincident",
          "query": "let IncidentAlerts = SecurityIncident\n| where TimeGenerated > ago(7d)\n| summarize arg_max(TimeGenerated, *) by TenantId, IncidentName\n| mv-expand SystemAlertId = AlertIds to typeof(string)\n| where isnotempty(SystemAlertId);\nSecurityAlert\n| where TimeGenerated > ago(30d)\n| where isnotempty(SystemAlertId)\n| join kind=inner (IncidentAlerts) on SystemAlertId",
          "queryLanguage": "kusto"
        }
      ],
      "family": "sentinel-alert"
    },
    {
      "id": "device-vulnerability-to-knowledge-base",
      "title": "Enrich device vulnerabilities with CVE details",
      "description": "Match CveId to obtain vulnerability scores, exploit availability, and descriptions.",
      "from": {
        "table": "DeviceTvmSoftwareVulnerabilities",
        "column": "CveId"
      },
      "to": {
        "table": "DeviceTvmSoftwareVulnerabilitiesKB",
        "column": "CveId"
      },
      "tags": [
        "Device",
        "Vulnerability management"
      ],
      "guidance": "One CVE can affect many devices and software versions. Preserve device and software context. The knowledge base has no event timestamp filter; PublishedDate or LastModifiedTime would exclude older CVEs that still affect current devices.",
      "family": "cve",
      "otherNotes": []
    },
    {
      "id": "device-configuration-to-knowledge-base",
      "title": "Enrich configuration assessments with remediation details",
      "description": "Match ConfigurationId to obtain configuration descriptions, benchmarks, and remediation options.",
      "from": {
        "table": "DeviceTvmSecureConfigurationAssessment",
        "column": "ConfigurationId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "DeviceTvmSecureConfigurationAssessmentKB",
        "column": "ConfigurationId"
      },
      "tags": [
        "Device",
        "Vulnerability management"
      ],
      "guidance": "One configuration can be assessed on many devices. Preserve DeviceId, compliance status, and assessment time. The knowledge base has no event timestamp filter.",
      "family": "configuration",
      "otherNotes": []
    },
    {
      "id": "process-start-key-device-network-events",
      "title": "Follow a process into DeviceNetworkEvents",
      "description": "Match the Windows Process Start Key of a recorded process to the initiating process key in DeviceNetworkEvents.",
      "from": {
        "table": "DeviceProcessEvents",
        "column": "ProcessUniqueId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "DeviceNetworkEvents",
        "column": "InitiatingProcessUniqueId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Device",
        "Process correlation"
      ],
      "guidance": "Match DeviceId and TenantId as well as the process key; matching process keys alone is incomplete across devices. These are Windows Process Start Keys, not process IDs. Require activity at or after ProcessCreationTime. Extend the process lookback when a long-running parent predates the activity window. These fields can be empty on unsupported platforms.",
      "kql": "let Processes = DeviceProcessEvents\n| where Timestamp > ago(7d)\n| where isnotempty(DeviceId) and isnotempty(ProcessUniqueId)\n| project TenantId, DeviceId, ProcessKey=ProcessUniqueId, ProcessStart=ProcessCreationTime,\n          ProcessEventTime=Timestamp, ProcessFile=FileName, ProcessCommandLine;\nDeviceNetworkEvents\n| where Timestamp > ago(7d)\n| where isnotempty(DeviceId) and isnotempty(InitiatingProcessUniqueId)\n| extend ProcessKey=InitiatingProcessUniqueId, ActivityTime=Timestamp\n| join kind=inner (Processes) on TenantId, DeviceId, ProcessKey\n| where ActivityTime >= ProcessStart",
      "otherNotes": [
        {
          "title": "Identifier reference",
          "text": "Match the Windows Process Start Key of a recorded process to the initiating process key in DeviceNetworkEvents.",
          "sourceLabel": "Microsoft Learn",
          "sourceUrl": "https://learn.microsoft.com/en-us/defender-xdr/advanced-hunting-deviceprocessevents-table",
          "query": "let Processes = DeviceProcessEvents\n| where Timestamp > ago(7d)\n| where isnotempty(DeviceId) and isnotempty(ProcessUniqueId)\n| project TenantId, DeviceId, ProcessKey=ProcessUniqueId, ProcessStart=ProcessCreationTime,\n          ProcessEventTime=Timestamp, ProcessFile=FileName, ProcessCommandLine;\nDeviceNetworkEvents\n| where Timestamp > ago(7d)\n| where isnotempty(DeviceId) and isnotempty(InitiatingProcessUniqueId)\n| extend ProcessKey=InitiatingProcessUniqueId, ActivityTime=Timestamp\n| join kind=inner (Processes) on TenantId, DeviceId, ProcessKey\n| where ActivityTime >= ProcessStart",
          "queryLanguage": "kusto"
        }
      ],
      "family": "process-start-key"
    },
    {
      "id": "process-start-key-device-file-events",
      "title": "Follow a process into DeviceFileEvents",
      "description": "Match the Windows Process Start Key of a recorded process to the initiating process key in DeviceFileEvents.",
      "from": {
        "table": "DeviceProcessEvents",
        "column": "ProcessUniqueId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "DeviceFileEvents",
        "column": "InitiatingProcessUniqueId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Device",
        "Process correlation"
      ],
      "guidance": "Match DeviceId and TenantId as well as the process key; matching process keys alone is incomplete across devices. These are Windows Process Start Keys, not process IDs. Require activity at or after ProcessCreationTime. Extend the process lookback when a long-running parent predates the activity window. These fields can be empty on unsupported platforms.",
      "kql": "let Processes = DeviceProcessEvents\n| where Timestamp > ago(7d)\n| where isnotempty(DeviceId) and isnotempty(ProcessUniqueId)\n| project TenantId, DeviceId, ProcessKey=ProcessUniqueId, ProcessStart=ProcessCreationTime,\n          ProcessEventTime=Timestamp, ProcessFile=FileName, ProcessCommandLine;\nDeviceFileEvents\n| where Timestamp > ago(7d)\n| where isnotempty(DeviceId) and isnotempty(InitiatingProcessUniqueId)\n| extend ProcessKey=InitiatingProcessUniqueId, ActivityTime=Timestamp\n| join kind=inner (Processes) on TenantId, DeviceId, ProcessKey\n| where ActivityTime >= ProcessStart",
      "otherNotes": [
        {
          "title": "Identifier reference",
          "text": "Match the Windows Process Start Key of a recorded process to the initiating process key in DeviceFileEvents.",
          "sourceLabel": "Microsoft Learn",
          "sourceUrl": "https://learn.microsoft.com/en-us/defender-xdr/advanced-hunting-deviceprocessevents-table",
          "query": "let Processes = DeviceProcessEvents\n| where Timestamp > ago(7d)\n| where isnotempty(DeviceId) and isnotempty(ProcessUniqueId)\n| project TenantId, DeviceId, ProcessKey=ProcessUniqueId, ProcessStart=ProcessCreationTime,\n          ProcessEventTime=Timestamp, ProcessFile=FileName, ProcessCommandLine;\nDeviceFileEvents\n| where Timestamp > ago(7d)\n| where isnotempty(DeviceId) and isnotempty(InitiatingProcessUniqueId)\n| extend ProcessKey=InitiatingProcessUniqueId, ActivityTime=Timestamp\n| join kind=inner (Processes) on TenantId, DeviceId, ProcessKey\n| where ActivityTime >= ProcessStart",
          "queryLanguage": "kusto"
        }
      ],
      "family": "process-start-key"
    },
    {
      "id": "process-start-key-device-registry-events",
      "title": "Follow a process into DeviceRegistryEvents",
      "description": "Match the Windows Process Start Key of a recorded process to the initiating process key in DeviceRegistryEvents.",
      "from": {
        "table": "DeviceProcessEvents",
        "column": "ProcessUniqueId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "DeviceRegistryEvents",
        "column": "InitiatingProcessUniqueId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Device",
        "Process correlation"
      ],
      "guidance": "Match DeviceId and TenantId as well as the process key; matching process keys alone is incomplete across devices. These are Windows Process Start Keys, not process IDs. Require activity at or after ProcessCreationTime. Extend the process lookback when a long-running parent predates the activity window. These fields can be empty on unsupported platforms.",
      "kql": "let Processes = DeviceProcessEvents\n| where Timestamp > ago(7d)\n| where isnotempty(DeviceId) and isnotempty(ProcessUniqueId)\n| project TenantId, DeviceId, ProcessKey=ProcessUniqueId, ProcessStart=ProcessCreationTime,\n          ProcessEventTime=Timestamp, ProcessFile=FileName, ProcessCommandLine;\nDeviceRegistryEvents\n| where Timestamp > ago(7d)\n| where isnotempty(DeviceId) and isnotempty(InitiatingProcessUniqueId)\n| extend ProcessKey=InitiatingProcessUniqueId, ActivityTime=Timestamp\n| join kind=inner (Processes) on TenantId, DeviceId, ProcessKey\n| where ActivityTime >= ProcessStart",
      "otherNotes": [
        {
          "title": "Identifier reference",
          "text": "Match the Windows Process Start Key of a recorded process to the initiating process key in DeviceRegistryEvents.",
          "sourceLabel": "Microsoft Learn",
          "sourceUrl": "https://learn.microsoft.com/en-us/defender-xdr/advanced-hunting-deviceprocessevents-table",
          "query": "let Processes = DeviceProcessEvents\n| where Timestamp > ago(7d)\n| where isnotempty(DeviceId) and isnotempty(ProcessUniqueId)\n| project TenantId, DeviceId, ProcessKey=ProcessUniqueId, ProcessStart=ProcessCreationTime,\n          ProcessEventTime=Timestamp, ProcessFile=FileName, ProcessCommandLine;\nDeviceRegistryEvents\n| where Timestamp > ago(7d)\n| where isnotempty(DeviceId) and isnotempty(InitiatingProcessUniqueId)\n| extend ProcessKey=InitiatingProcessUniqueId, ActivityTime=Timestamp\n| join kind=inner (Processes) on TenantId, DeviceId, ProcessKey\n| where ActivityTime >= ProcessStart",
          "queryLanguage": "kusto"
        }
      ],
      "family": "process-start-key"
    },
    {
      "id": "process-start-key-device-logon-events",
      "title": "Follow a process into DeviceLogonEvents",
      "description": "Match the Windows Process Start Key of a recorded process to the initiating process key in DeviceLogonEvents.",
      "from": {
        "table": "DeviceProcessEvents",
        "column": "ProcessUniqueId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "DeviceLogonEvents",
        "column": "InitiatingProcessUniqueId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Device",
        "Process correlation"
      ],
      "guidance": "Match DeviceId and TenantId as well as the process key; matching process keys alone is incomplete across devices. These are Windows Process Start Keys, not process IDs. Require activity at or after ProcessCreationTime. Extend the process lookback when a long-running parent predates the activity window. These fields can be empty on unsupported platforms.",
      "kql": "let Processes = DeviceProcessEvents\n| where Timestamp > ago(7d)\n| where isnotempty(DeviceId) and isnotempty(ProcessUniqueId)\n| project TenantId, DeviceId, ProcessKey=ProcessUniqueId, ProcessStart=ProcessCreationTime,\n          ProcessEventTime=Timestamp, ProcessFile=FileName, ProcessCommandLine;\nDeviceLogonEvents\n| where Timestamp > ago(7d)\n| where isnotempty(DeviceId) and isnotempty(InitiatingProcessUniqueId)\n| extend ProcessKey=InitiatingProcessUniqueId, ActivityTime=Timestamp\n| join kind=inner (Processes) on TenantId, DeviceId, ProcessKey\n| where ActivityTime >= ProcessStart",
      "otherNotes": [
        {
          "title": "Identifier reference",
          "text": "Match the Windows Process Start Key of a recorded process to the initiating process key in DeviceLogonEvents.",
          "sourceLabel": "Microsoft Learn",
          "sourceUrl": "https://learn.microsoft.com/en-us/defender-xdr/advanced-hunting-deviceprocessevents-table",
          "query": "let Processes = DeviceProcessEvents\n| where Timestamp > ago(7d)\n| where isnotempty(DeviceId) and isnotempty(ProcessUniqueId)\n| project TenantId, DeviceId, ProcessKey=ProcessUniqueId, ProcessStart=ProcessCreationTime,\n          ProcessEventTime=Timestamp, ProcessFile=FileName, ProcessCommandLine;\nDeviceLogonEvents\n| where Timestamp > ago(7d)\n| where isnotempty(DeviceId) and isnotempty(InitiatingProcessUniqueId)\n| extend ProcessKey=InitiatingProcessUniqueId, ActivityTime=Timestamp\n| join kind=inner (Processes) on TenantId, DeviceId, ProcessKey\n| where ActivityTime >= ProcessStart",
          "queryLanguage": "kusto"
        }
      ],
      "family": "process-start-key"
    },
    {
      "id": "process-start-key-device-image-load-events",
      "title": "Follow a process into DeviceImageLoadEvents",
      "description": "Match the Windows Process Start Key of a recorded process to the initiating process key in DeviceImageLoadEvents.",
      "from": {
        "table": "DeviceProcessEvents",
        "column": "ProcessUniqueId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "DeviceImageLoadEvents",
        "column": "InitiatingProcessUniqueId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Device",
        "Process correlation"
      ],
      "guidance": "Match DeviceId and TenantId as well as the process key; matching process keys alone is incomplete across devices. These are Windows Process Start Keys, not process IDs. Require activity at or after ProcessCreationTime. Extend the process lookback when a long-running parent predates the activity window. These fields can be empty on unsupported platforms.",
      "kql": "let Processes = DeviceProcessEvents\n| where Timestamp > ago(7d)\n| where isnotempty(DeviceId) and isnotempty(ProcessUniqueId)\n| project TenantId, DeviceId, ProcessKey=ProcessUniqueId, ProcessStart=ProcessCreationTime,\n          ProcessEventTime=Timestamp, ProcessFile=FileName, ProcessCommandLine;\nDeviceImageLoadEvents\n| where Timestamp > ago(7d)\n| where isnotempty(DeviceId) and isnotempty(InitiatingProcessUniqueId)\n| extend ProcessKey=InitiatingProcessUniqueId, ActivityTime=Timestamp\n| join kind=inner (Processes) on TenantId, DeviceId, ProcessKey\n| where ActivityTime >= ProcessStart",
      "otherNotes": [
        {
          "title": "Identifier reference",
          "text": "Match the Windows Process Start Key of a recorded process to the initiating process key in DeviceImageLoadEvents.",
          "sourceLabel": "Microsoft Learn",
          "sourceUrl": "https://learn.microsoft.com/en-us/defender-xdr/advanced-hunting-deviceprocessevents-table",
          "query": "let Processes = DeviceProcessEvents\n| where Timestamp > ago(7d)\n| where isnotempty(DeviceId) and isnotempty(ProcessUniqueId)\n| project TenantId, DeviceId, ProcessKey=ProcessUniqueId, ProcessStart=ProcessCreationTime,\n          ProcessEventTime=Timestamp, ProcessFile=FileName, ProcessCommandLine;\nDeviceImageLoadEvents\n| where Timestamp > ago(7d)\n| where isnotempty(DeviceId) and isnotempty(InitiatingProcessUniqueId)\n| extend ProcessKey=InitiatingProcessUniqueId, ActivityTime=Timestamp\n| join kind=inner (Processes) on TenantId, DeviceId, ProcessKey\n| where ActivityTime >= ProcessStart",
          "queryLanguage": "kusto"
        }
      ],
      "family": "process-start-key"
    },
    {
      "id": "process-start-key-device-events",
      "title": "Follow a process into DeviceEvents",
      "description": "Match the Windows Process Start Key of a recorded process to the initiating process key in DeviceEvents.",
      "from": {
        "table": "DeviceProcessEvents",
        "column": "ProcessUniqueId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "DeviceEvents",
        "column": "InitiatingProcessUniqueId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Device",
        "Process correlation"
      ],
      "guidance": "Match DeviceId and TenantId as well as the process key; matching process keys alone is incomplete across devices. These are Windows Process Start Keys, not process IDs. Require activity at or after ProcessCreationTime. Extend the process lookback when a long-running parent predates the activity window. These fields can be empty on unsupported platforms.",
      "kql": "let Processes = DeviceProcessEvents\n| where Timestamp > ago(7d)\n| where isnotempty(DeviceId) and isnotempty(ProcessUniqueId)\n| project TenantId, DeviceId, ProcessKey=ProcessUniqueId, ProcessStart=ProcessCreationTime,\n          ProcessEventTime=Timestamp, ProcessFile=FileName, ProcessCommandLine;\nDeviceEvents\n| where Timestamp > ago(7d)\n| where isnotempty(DeviceId) and isnotempty(InitiatingProcessUniqueId)\n| extend ProcessKey=InitiatingProcessUniqueId, ActivityTime=Timestamp\n| join kind=inner (Processes) on TenantId, DeviceId, ProcessKey\n| where ActivityTime >= ProcessStart",
      "otherNotes": [
        {
          "title": "Identifier reference",
          "text": "Match the Windows Process Start Key of a recorded process to the initiating process key in DeviceEvents.",
          "sourceLabel": "Microsoft Learn",
          "sourceUrl": "https://learn.microsoft.com/en-us/defender-xdr/advanced-hunting-deviceprocessevents-table",
          "query": "let Processes = DeviceProcessEvents\n| where Timestamp > ago(7d)\n| where isnotempty(DeviceId) and isnotempty(ProcessUniqueId)\n| project TenantId, DeviceId, ProcessKey=ProcessUniqueId, ProcessStart=ProcessCreationTime,\n          ProcessEventTime=Timestamp, ProcessFile=FileName, ProcessCommandLine;\nDeviceEvents\n| where Timestamp > ago(7d)\n| where isnotempty(DeviceId) and isnotempty(InitiatingProcessUniqueId)\n| extend ProcessKey=InitiatingProcessUniqueId, ActivityTime=Timestamp\n| join kind=inner (Processes) on TenantId, DeviceId, ProcessKey\n| where ActivityTime >= ProcessStart",
          "queryLanguage": "kusto"
        }
      ],
      "family": "process-start-key"
    },
    {
      "id": "process-start-key-device-process-events",
      "title": "Connect parent and child processes",
      "description": "Match the Windows Process Start Key of a recorded process to the initiating process key in DeviceProcessEvents.",
      "from": {
        "table": "DeviceProcessEvents",
        "column": "ProcessUniqueId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "DeviceProcessEvents",
        "column": "InitiatingProcessUniqueId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Device",
        "Process correlation"
      ],
      "guidance": "Match DeviceId and TenantId as well as the process key; matching process keys alone is incomplete across devices. These are Windows Process Start Keys, not process IDs. Require activity at or after ProcessCreationTime. Extend the process lookback when a long-running parent predates the activity window. These fields can be empty on unsupported platforms.",
      "kql": "let Processes = DeviceProcessEvents\n| where Timestamp > ago(7d)\n| where isnotempty(DeviceId) and isnotempty(ProcessUniqueId)\n| project TenantId, DeviceId, ProcessKey=ProcessUniqueId, ProcessStart=ProcessCreationTime,\n          ProcessEventTime=Timestamp, ProcessFile=FileName, ProcessCommandLine;\nDeviceProcessEvents\n| where Timestamp > ago(7d)\n| where isnotempty(DeviceId) and isnotempty(InitiatingProcessUniqueId)\n| extend ProcessKey=InitiatingProcessUniqueId, ActivityTime=Timestamp\n| join kind=inner (Processes) on TenantId, DeviceId, ProcessKey\n| where ActivityTime >= ProcessStart",
      "otherNotes": [
        {
          "title": "Identifier reference",
          "text": "Match the Windows Process Start Key of a recorded process to the initiating process key in DeviceProcessEvents.",
          "sourceLabel": "Microsoft Learn",
          "sourceUrl": "https://learn.microsoft.com/en-us/defender-xdr/advanced-hunting-deviceprocessevents-table",
          "query": "let Processes = DeviceProcessEvents\n| where Timestamp > ago(7d)\n| where isnotempty(DeviceId) and isnotempty(ProcessUniqueId)\n| project TenantId, DeviceId, ProcessKey=ProcessUniqueId, ProcessStart=ProcessCreationTime,\n          ProcessEventTime=Timestamp, ProcessFile=FileName, ProcessCommandLine;\nDeviceProcessEvents\n| where Timestamp > ago(7d)\n| where isnotempty(DeviceId) and isnotempty(InitiatingProcessUniqueId)\n| extend ProcessKey=InitiatingProcessUniqueId, ActivityTime=Timestamp\n| join kind=inner (Processes) on TenantId, DeviceId, ProcessKey\n| where ActivityTime >= ProcessStart",
          "queryLanguage": "kusto"
        }
      ],
      "family": "process-start-key"
    },
    {
      "id": "crowdstrike-host-to-vulnerabilities",
      "title": "Enrich CrowdStrike vulnerabilities with host details",
      "description": "Match a CrowdStrike host device ID to the agent ID (AID) of the affected system.",
      "from": {
        "table": "CrowdStrikeHosts",
        "column": "DeviceId",
        "timeColumn": "TimeGenerated"
      },
      "to": {
        "table": "CrowdStrikeVulnerabilities",
        "column": "Aid",
        "timeColumn": "UpdatedTimestamp"
      },
      "tags": [
        "CrowdStrike",
        "Device",
        "Vulnerability management"
      ],
      "guidance": "Match Cid (CrowdStrike customer) and workspace TenantId as well as the agent ID. These IDs do not belong to the Defender DeviceId namespace. Select the latest ingested host snapshot for current enrichment; it does not represent historical host state. UpdatedTimestamp is the vulnerability update time, while host TimeGenerated is ingestion time. Adjust both lookbacks for collection cadence.",
      "kql": "let Hosts = CrowdStrikeHosts\n| where TimeGenerated > ago(30d)\n| where isnotempty(Cid) and isnotempty(DeviceId)\n| summarize arg_max(TimeGenerated, *) by TenantId, Cid, DeviceId\n| project TenantId, Cid, Aid=DeviceId, Hostname, HostSnapshotTime=TimeGenerated;\nCrowdStrikeVulnerabilities\n| where UpdatedTimestamp > ago(7d)\n| where isnotempty(Cid) and isnotempty(Aid)\n| join kind=inner (Hosts) on TenantId, Cid, Aid",
      "otherNotes": [
        {
          "title": "Identifier reference",
          "text": "Match a CrowdStrike host device ID to the agent ID (AID) of the affected system.",
          "sourceLabel": "CrowdStrike Developer Center",
          "sourceUrl": "https://developer.crowdstrike.com/api-reference/collections/spotlight-vulnerabilities/",
          "query": "let Hosts = CrowdStrikeHosts\n| where TimeGenerated > ago(30d)\n| where isnotempty(Cid) and isnotempty(DeviceId)\n| summarize arg_max(TimeGenerated, *) by TenantId, Cid, DeviceId\n| project TenantId, Cid, Aid=DeviceId, Hostname, HostSnapshotTime=TimeGenerated;\nCrowdStrikeVulnerabilities\n| where UpdatedTimestamp > ago(7d)\n| where isnotempty(Cid) and isnotempty(Aid)\n| join kind=inner (Hosts) on TenantId, Cid, Aid",
          "queryLanguage": "kusto"
        }
      ],
      "family": "crowdstrike-agent"
    },
    {
      "id": "sentinel-behavior-info-to-entities",
      "title": "Connect Sentinel behaviors to their entities",
      "description": "Match the Sentinel behavior identifier in its summary and entity tables.",
      "from": {
        "table": "SentinelBehaviorInfo",
        "column": "BehaviorId",
        "timeColumn": "TimeGenerated"
      },
      "to": {
        "table": "SentinelBehaviorEntities",
        "column": "BehaviorId",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Behaviors",
        "Entities",
        "Microsoft Sentinel"
      ],
      "guidance": "One behavior can contain many entities. Keep workspace TenantId in the join and retain entity type and role. These mappings do not establish a shared BehaviorId namespace with Defender BehaviorInfo or BehaviorEntities.",
      "kql": "let LeftEvents = SentinelBehaviorInfo\n| where TimeGenerated > ago(7d)\n| extend JoinKey = tostring(BehaviorId)\n| where isnotempty(JoinKey);\nlet RightEvents = SentinelBehaviorEntities\n| where TimeGenerated > ago(7d)\n| extend JoinKey = tostring(BehaviorId)\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on TenantId, JoinKey",
      "otherNotes": [
        {
          "title": "Identifier reference",
          "text": "Match the Sentinel behavior identifier in its summary and entity tables.",
          "sourceLabel": "Microsoft Learn",
          "sourceUrl": "https://learn.microsoft.com/en-us/azure/azure-monitor/reference/tables/sentinelbehaviorentities",
          "query": "let LeftEvents = SentinelBehaviorInfo\n| where TimeGenerated > ago(7d)\n| extend JoinKey = tostring(BehaviorId)\n| where isnotempty(JoinKey);\nlet RightEvents = SentinelBehaviorEntities\n| where TimeGenerated > ago(7d)\n| extend JoinKey = tostring(BehaviorId)\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on TenantId, JoinKey",
          "queryLanguage": "kusto"
        }
      ],
      "family": "sentinel-behavior"
    },
    {
      "id": "identity-info-sentinel-behavior-info",
      "title": "Enrich SentinelBehaviorInfo with identity information",
      "description": "Match the Entra account object ID associated with a Sentinel behavior to IdentityInfo.AccountObjectId.",
      "from": {
        "table": "IdentityInfo",
        "column": "AccountObjectId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "SentinelBehaviorInfo",
        "column": "AccountObjectId",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Identity",
        "Behaviors",
        "User enrichment"
      ],
      "guidance": "Enrich the indicated account, keeping actor/target role and actual Entra tenant context. IdentityInfo may contain repeated snapshots; choose the relevant one. A shared user is not a shared session or token. Sentinel workspace TenantId and an identity tenant field can have different meanings.",
      "kql": "let LeftEvents = IdentityInfo\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(AccountObjectId)\n| where isnotempty(JoinKey);\nlet RightEvents = SentinelBehaviorInfo\n| where TimeGenerated > ago(7d)\n| extend JoinKey = tostring(AccountObjectId)\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on JoinKey",
      "otherNotes": [
        {
          "title": "Identifier reference",
          "text": "Match the Entra account object ID associated with a Sentinel behavior to IdentityInfo.AccountObjectId.",
          "sourceLabel": "Microsoft Learn",
          "sourceUrl": "https://learn.microsoft.com/en-us/azure/azure-monitor/reference/tables/sentinelbehaviorinfo",
          "query": "let LeftEvents = IdentityInfo\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(AccountObjectId)\n| where isnotempty(JoinKey);\nlet RightEvents = SentinelBehaviorInfo\n| where TimeGenerated > ago(7d)\n| extend JoinKey = tostring(AccountObjectId)\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on JoinKey",
          "queryLanguage": "kusto"
        }
      ],
      "family": "entra-user"
    },
    {
      "id": "identity-info-sentinel-behavior-entities",
      "title": "Enrich SentinelBehaviorEntities with identity information",
      "description": "Match the Entra account object ID associated with a Sentinel behavior to IdentityInfo.AccountObjectId.",
      "from": {
        "table": "IdentityInfo",
        "column": "AccountObjectId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "SentinelBehaviorEntities",
        "column": "AccountObjectId",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Identity",
        "Behaviors",
        "User enrichment"
      ],
      "guidance": "Enrich the indicated account, keeping actor/target role and actual Entra tenant context. IdentityInfo may contain repeated snapshots; choose the relevant one. A shared user is not a shared session or token. Sentinel workspace TenantId and an identity tenant field can have different meanings.",
      "kql": "let LeftEvents = IdentityInfo\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(AccountObjectId)\n| where isnotempty(JoinKey);\nlet RightEvents = SentinelBehaviorEntities\n| where TimeGenerated > ago(7d)\n| extend JoinKey = tostring(AccountObjectId)\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on JoinKey",
      "otherNotes": [
        {
          "title": "Identifier reference",
          "text": "Match the Entra account object ID associated with a Sentinel behavior to IdentityInfo.AccountObjectId.",
          "sourceLabel": "Microsoft Learn",
          "sourceUrl": "https://learn.microsoft.com/en-us/azure/azure-monitor/reference/tables/sentinelbehaviorentities",
          "query": "let LeftEvents = IdentityInfo\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(AccountObjectId)\n| where isnotempty(JoinKey);\nlet RightEvents = SentinelBehaviorEntities\n| where TimeGenerated > ago(7d)\n| extend JoinKey = tostring(AccountObjectId)\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on JoinKey",
          "queryLanguage": "kusto"
        }
      ],
      "family": "entra-user"
    },
    {
      "id": "threat-intel-export-threat-intel-indicators",
      "title": "Connect exports to ThreatIntelIndicators",
      "description": "Match the Sentinel internal STIX object ID of an export to ThreatIntelIndicators.Id.",
      "from": {
        "table": "ThreatIntelExportOperation",
        "column": "Id",
        "timeColumn": "TimeExported"
      },
      "to": {
        "table": "ThreatIntelIndicators",
        "column": "Id",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Threat intelligence",
        "Microsoft Sentinel"
      ],
      "guidance": "Use the internal Id and scope by workspace TenantId. StixId is the global STIX identifier; ExportId identifies an export operation and ExternallyExportedId belongs to the destination. The legacy ThreatIntelligenceIndicator.IndicatorId is a separate field. Enrich exports with the latest object snapshot; preserve IsDeleted, Revoked, validity, and export status when interpreting historical exports.",
      "kql": "let Intelligence = ThreatIntelIndicators\n| where TimeGenerated > ago(30d)\n| where isnotempty(Id)\n| summarize arg_max(TimeGenerated, *) by TenantId, Id;\nThreatIntelExportOperation\n| where TimeExported > ago(7d)\n| where isnotempty(Id)\n| join kind=inner (Intelligence) on TenantId, Id",
      "otherNotes": [
        {
          "title": "Identifier reference",
          "text": "Match the Sentinel internal STIX object ID of an export to ThreatIntelIndicators.Id.",
          "sourceLabel": "Microsoft Learn",
          "sourceUrl": "https://learn.microsoft.com/en-us/azure/azure-monitor/reference/tables/threatintelexportoperation",
          "query": "let Intelligence = ThreatIntelIndicators\n| where TimeGenerated > ago(30d)\n| where isnotempty(Id)\n| summarize arg_max(TimeGenerated, *) by TenantId, Id;\nThreatIntelExportOperation\n| where TimeExported > ago(7d)\n| where isnotempty(Id)\n| join kind=inner (Intelligence) on TenantId, Id",
          "queryLanguage": "kusto"
        }
      ],
      "family": "sentinel-intel"
    },
    {
      "id": "threat-intel-export-threat-intel-indicators-stix",
      "title": "Follow a global STIX ID into ThreatIntelIndicators",
      "description": "Match an exported global STIX identifier to ThreatIntelIndicators.Data.id.",
      "from": {
        "table": "ThreatIntelExportOperation",
        "column": "StixId",
        "timeColumn": "TimeExported"
      },
      "to": {
        "table": "ThreatIntelIndicators",
        "column": "Data",
        "path": "id",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Threat intelligence",
        "Microsoft Sentinel",
        "Nested JSON"
      ],
      "guidance": "Use the global STIX ID, not the internal Id. A STIX object can arrive through several feeds, producing multiple internal IDs. Scope to the same workspace and select each internal object’s latest snapshot; preserve SourceSystem and internal Id to explain multiple matches. Deleted or revoked records can still explain a historical export.",
      "kql": "let Intelligence = ThreatIntelIndicators\n| where TimeGenerated > ago(30d)\n| summarize arg_max(TimeGenerated, *) by TenantId, Id\n| extend StixKey=tostring(Data.id)\n| where isnotempty(StixKey);\nThreatIntelExportOperation\n| where TimeExported > ago(7d)\n| extend StixKey=tostring(StixId)\n| where isnotempty(StixKey)\n| join kind=inner (Intelligence) on TenantId, StixKey",
      "otherNotes": [
        {
          "title": "Identifier reference",
          "text": "Match an exported global STIX identifier to ThreatIntelIndicators.Data.id.",
          "sourceLabel": "Microsoft Learn",
          "sourceUrl": "https://learn.microsoft.com/en-us/azure/sentinel/work-with-stix-objects-indicators",
          "query": "let Intelligence = ThreatIntelIndicators\n| where TimeGenerated > ago(30d)\n| summarize arg_max(TimeGenerated, *) by TenantId, Id\n| extend StixKey=tostring(Data.id)\n| where isnotempty(StixKey);\nThreatIntelExportOperation\n| where TimeExported > ago(7d)\n| extend StixKey=tostring(StixId)\n| where isnotempty(StixKey)\n| join kind=inner (Intelligence) on TenantId, StixKey",
          "queryLanguage": "kusto"
        }
      ],
      "family": "stix-object"
    },
    {
      "id": "threat-intel-export-threat-intel-objects",
      "title": "Connect exports to ThreatIntelObjects",
      "description": "Match the Sentinel internal STIX object ID of an export to ThreatIntelObjects.Id.",
      "from": {
        "table": "ThreatIntelExportOperation",
        "column": "Id",
        "timeColumn": "TimeExported"
      },
      "to": {
        "table": "ThreatIntelObjects",
        "column": "Id",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Threat intelligence",
        "Microsoft Sentinel"
      ],
      "guidance": "Use the internal Id and scope by workspace TenantId. StixId is the global STIX identifier; ExportId identifies an export operation and ExternallyExportedId belongs to the destination. The legacy ThreatIntelligenceIndicator.IndicatorId is a separate field. Enrich exports with the latest object snapshot; preserve IsDeleted, Revoked, validity, and export status when interpreting historical exports.",
      "kql": "let Intelligence = ThreatIntelObjects\n| where TimeGenerated > ago(30d)\n| where isnotempty(Id)\n| summarize arg_max(TimeGenerated, *) by TenantId, Id;\nThreatIntelExportOperation\n| where TimeExported > ago(7d)\n| where isnotempty(Id)\n| join kind=inner (Intelligence) on TenantId, Id",
      "otherNotes": [
        {
          "title": "Identifier reference",
          "text": "Match the Sentinel internal STIX object ID of an export to ThreatIntelObjects.Id.",
          "sourceLabel": "Microsoft Learn",
          "sourceUrl": "https://learn.microsoft.com/en-us/azure/azure-monitor/reference/tables/threatintelexportoperation",
          "query": "let Intelligence = ThreatIntelObjects\n| where TimeGenerated > ago(30d)\n| where isnotempty(Id)\n| summarize arg_max(TimeGenerated, *) by TenantId, Id;\nThreatIntelExportOperation\n| where TimeExported > ago(7d)\n| where isnotempty(Id)\n| join kind=inner (Intelligence) on TenantId, Id",
          "queryLanguage": "kusto"
        }
      ],
      "family": "sentinel-intel"
    },
    {
      "id": "threat-intel-export-threat-intel-objects-stix",
      "title": "Follow a global STIX ID into ThreatIntelObjects",
      "description": "Match an exported global STIX identifier to ThreatIntelObjects.Data.id.",
      "from": {
        "table": "ThreatIntelExportOperation",
        "column": "StixId",
        "timeColumn": "TimeExported"
      },
      "to": {
        "table": "ThreatIntelObjects",
        "column": "Data",
        "path": "id",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Threat intelligence",
        "Microsoft Sentinel",
        "Nested JSON"
      ],
      "guidance": "Use the global STIX ID, not the internal Id. A STIX object can arrive through several feeds, producing multiple internal IDs. Scope to the same workspace and select each internal object’s latest snapshot; preserve SourceSystem and internal Id to explain multiple matches. Deleted or revoked records can still explain a historical export.",
      "kql": "let Intelligence = ThreatIntelObjects\n| where TimeGenerated > ago(30d)\n| summarize arg_max(TimeGenerated, *) by TenantId, Id\n| extend StixKey=tostring(Data.id)\n| where isnotempty(StixKey);\nThreatIntelExportOperation\n| where TimeExported > ago(7d)\n| extend StixKey=tostring(StixId)\n| where isnotempty(StixKey)\n| join kind=inner (Intelligence) on TenantId, StixKey",
      "otherNotes": [
        {
          "title": "Identifier reference",
          "text": "Match an exported global STIX identifier to ThreatIntelObjects.Data.id.",
          "sourceLabel": "Microsoft Learn",
          "sourceUrl": "https://learn.microsoft.com/en-us/azure/sentinel/work-with-stix-objects-indicators",
          "query": "let Intelligence = ThreatIntelObjects\n| where TimeGenerated > ago(30d)\n| summarize arg_max(TimeGenerated, *) by TenantId, Id\n| extend StixKey=tostring(Data.id)\n| where isnotempty(StixKey);\nThreatIntelExportOperation\n| where TimeExported > ago(7d)\n| extend StixKey=tostring(StixId)\n| where isnotempty(StixKey)\n| join kind=inner (Intelligence) on TenantId, StixKey",
          "queryLanguage": "kusto"
        }
      ],
      "family": "stix-object"
    },
    {
      "id": "stix-relationship-source-threat-intel-indicators",
      "title": "Resolve a STIX relationship source in ThreatIntelIndicators",
      "description": "Match a STIX relationship’s source_ref to the referenced object’s Data.id.",
      "from": {
        "table": "ThreatIntelObjects",
        "column": "Data",
        "path": "source_ref",
        "timeColumn": "TimeGenerated"
      },
      "to": {
        "table": "ThreatIntelIndicators",
        "column": "Data",
        "path": "id",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Threat intelligence",
        "Microsoft Sentinel",
        "Nested JSON"
      ],
      "guidance": "Keep only relationship objects, exclude deleted snapshots, and match workspace plus feed provenance. Id contains a feed prefix separated from the STIX ID by ---; Data.id and the relationship references are the global STIX identifiers. One object can participate in many relationships. Preserve source and target roles when interpreting matches.",
      "kql": "let Relationships = ThreatIntelObjects\n| where TimeGenerated > ago(30d)\n| summarize arg_max(TimeGenerated, *) by TenantId, Id\n| where IsDeleted == false and StixType == \"relationship\"\n| extend StixKey=tostring(Data.source_ref), FeedKey=tostring(split(Id, \"---\")[0])\n| where isnotempty(StixKey);\nThreatIntelIndicators\n| where TimeGenerated > ago(30d)\n| summarize arg_max(TimeGenerated, *) by TenantId, Id\n| where IsDeleted == false\n| extend StixKey=tostring(Data.id), FeedKey=tostring(split(Id, \"---\")[0])\n| where isnotempty(StixKey)\n| join kind=inner (Relationships) on TenantId, FeedKey, StixKey",
      "otherNotes": [
        {
          "title": "Identifier reference",
          "text": "Match a STIX relationship’s source_ref to the referenced object’s Data.id.",
          "sourceLabel": "Microsoft Learn",
          "sourceUrl": "https://learn.microsoft.com/en-us/azure/sentinel/work-with-stix-objects-indicators",
          "query": "let Relationships = ThreatIntelObjects\n| where TimeGenerated > ago(30d)\n| summarize arg_max(TimeGenerated, *) by TenantId, Id\n| where IsDeleted == false and StixType == \"relationship\"\n| extend StixKey=tostring(Data.source_ref), FeedKey=tostring(split(Id, \"---\")[0])\n| where isnotempty(StixKey);\nThreatIntelIndicators\n| where TimeGenerated > ago(30d)\n| summarize arg_max(TimeGenerated, *) by TenantId, Id\n| where IsDeleted == false\n| extend StixKey=tostring(Data.id), FeedKey=tostring(split(Id, \"---\")[0])\n| where isnotempty(StixKey)\n| join kind=inner (Relationships) on TenantId, FeedKey, StixKey",
          "queryLanguage": "kusto"
        }
      ],
      "family": "stix-object"
    },
    {
      "id": "stix-relationship-target-threat-intel-indicators",
      "title": "Resolve a STIX relationship target in ThreatIntelIndicators",
      "description": "Match a STIX relationship’s target_ref to the referenced object’s Data.id.",
      "from": {
        "table": "ThreatIntelObjects",
        "column": "Data",
        "path": "target_ref",
        "timeColumn": "TimeGenerated"
      },
      "to": {
        "table": "ThreatIntelIndicators",
        "column": "Data",
        "path": "id",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Threat intelligence",
        "Microsoft Sentinel",
        "Nested JSON"
      ],
      "guidance": "Keep only relationship objects, exclude deleted snapshots, and match workspace plus feed provenance. Id contains a feed prefix separated from the STIX ID by ---; Data.id and the relationship references are the global STIX identifiers. One object can participate in many relationships. Preserve source and target roles when interpreting matches.",
      "kql": "let Relationships = ThreatIntelObjects\n| where TimeGenerated > ago(30d)\n| summarize arg_max(TimeGenerated, *) by TenantId, Id\n| where IsDeleted == false and StixType == \"relationship\"\n| extend StixKey=tostring(Data.target_ref), FeedKey=tostring(split(Id, \"---\")[0])\n| where isnotempty(StixKey);\nThreatIntelIndicators\n| where TimeGenerated > ago(30d)\n| summarize arg_max(TimeGenerated, *) by TenantId, Id\n| where IsDeleted == false\n| extend StixKey=tostring(Data.id), FeedKey=tostring(split(Id, \"---\")[0])\n| where isnotempty(StixKey)\n| join kind=inner (Relationships) on TenantId, FeedKey, StixKey",
      "otherNotes": [
        {
          "title": "Identifier reference",
          "text": "Match a STIX relationship’s target_ref to the referenced object’s Data.id.",
          "sourceLabel": "Microsoft Learn",
          "sourceUrl": "https://learn.microsoft.com/en-us/azure/sentinel/work-with-stix-objects-indicators",
          "query": "let Relationships = ThreatIntelObjects\n| where TimeGenerated > ago(30d)\n| summarize arg_max(TimeGenerated, *) by TenantId, Id\n| where IsDeleted == false and StixType == \"relationship\"\n| extend StixKey=tostring(Data.target_ref), FeedKey=tostring(split(Id, \"---\")[0])\n| where isnotempty(StixKey);\nThreatIntelIndicators\n| where TimeGenerated > ago(30d)\n| summarize arg_max(TimeGenerated, *) by TenantId, Id\n| where IsDeleted == false\n| extend StixKey=tostring(Data.id), FeedKey=tostring(split(Id, \"---\")[0])\n| where isnotempty(StixKey)\n| join kind=inner (Relationships) on TenantId, FeedKey, StixKey",
          "queryLanguage": "kusto"
        }
      ],
      "family": "stix-object"
    },
    {
      "id": "stix-relationship-source-threat-intel-objects",
      "title": "Resolve a STIX relationship source in ThreatIntelObjects",
      "description": "Match a STIX relationship’s source_ref to the referenced object’s Data.id.",
      "from": {
        "table": "ThreatIntelObjects",
        "column": "Data",
        "path": "source_ref",
        "timeColumn": "TimeGenerated"
      },
      "to": {
        "table": "ThreatIntelObjects",
        "column": "Data",
        "path": "id",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Threat intelligence",
        "Microsoft Sentinel",
        "Nested JSON"
      ],
      "guidance": "Keep only relationship objects, exclude deleted snapshots, and match workspace plus feed provenance. Id contains a feed prefix separated from the STIX ID by ---; Data.id and the relationship references are the global STIX identifiers. One object can participate in many relationships. Preserve source and target roles when interpreting matches.",
      "kql": "let Relationships = ThreatIntelObjects\n| where TimeGenerated > ago(30d)\n| summarize arg_max(TimeGenerated, *) by TenantId, Id\n| where IsDeleted == false and StixType == \"relationship\"\n| extend StixKey=tostring(Data.source_ref), FeedKey=tostring(split(Id, \"---\")[0])\n| where isnotempty(StixKey);\nThreatIntelObjects\n| where TimeGenerated > ago(30d)\n| summarize arg_max(TimeGenerated, *) by TenantId, Id\n| where IsDeleted == false\n| extend StixKey=tostring(Data.id), FeedKey=tostring(split(Id, \"---\")[0])\n| where isnotempty(StixKey)\n| join kind=inner (Relationships) on TenantId, FeedKey, StixKey",
      "otherNotes": [
        {
          "title": "Identifier reference",
          "text": "Match a STIX relationship’s source_ref to the referenced object’s Data.id.",
          "sourceLabel": "Microsoft Learn",
          "sourceUrl": "https://learn.microsoft.com/en-us/azure/sentinel/work-with-stix-objects-indicators",
          "query": "let Relationships = ThreatIntelObjects\n| where TimeGenerated > ago(30d)\n| summarize arg_max(TimeGenerated, *) by TenantId, Id\n| where IsDeleted == false and StixType == \"relationship\"\n| extend StixKey=tostring(Data.source_ref), FeedKey=tostring(split(Id, \"---\")[0])\n| where isnotempty(StixKey);\nThreatIntelObjects\n| where TimeGenerated > ago(30d)\n| summarize arg_max(TimeGenerated, *) by TenantId, Id\n| where IsDeleted == false\n| extend StixKey=tostring(Data.id), FeedKey=tostring(split(Id, \"---\")[0])\n| where isnotempty(StixKey)\n| join kind=inner (Relationships) on TenantId, FeedKey, StixKey",
          "queryLanguage": "kusto"
        }
      ],
      "family": "stix-object"
    },
    {
      "id": "stix-relationship-target-threat-intel-objects",
      "title": "Resolve a STIX relationship target in ThreatIntelObjects",
      "description": "Match a STIX relationship’s target_ref to the referenced object’s Data.id.",
      "from": {
        "table": "ThreatIntelObjects",
        "column": "Data",
        "path": "target_ref",
        "timeColumn": "TimeGenerated"
      },
      "to": {
        "table": "ThreatIntelObjects",
        "column": "Data",
        "path": "id",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Threat intelligence",
        "Microsoft Sentinel",
        "Nested JSON"
      ],
      "guidance": "Keep only relationship objects, exclude deleted snapshots, and match workspace plus feed provenance. Id contains a feed prefix separated from the STIX ID by ---; Data.id and the relationship references are the global STIX identifiers. One object can participate in many relationships. Preserve source and target roles when interpreting matches.",
      "kql": "let Relationships = ThreatIntelObjects\n| where TimeGenerated > ago(30d)\n| summarize arg_max(TimeGenerated, *) by TenantId, Id\n| where IsDeleted == false and StixType == \"relationship\"\n| extend StixKey=tostring(Data.target_ref), FeedKey=tostring(split(Id, \"---\")[0])\n| where isnotempty(StixKey);\nThreatIntelObjects\n| where TimeGenerated > ago(30d)\n| summarize arg_max(TimeGenerated, *) by TenantId, Id\n| where IsDeleted == false\n| extend StixKey=tostring(Data.id), FeedKey=tostring(split(Id, \"---\")[0])\n| where isnotempty(StixKey)\n| join kind=inner (Relationships) on TenantId, FeedKey, StixKey",
      "otherNotes": [
        {
          "title": "Identifier reference",
          "text": "Match a STIX relationship’s target_ref to the referenced object’s Data.id.",
          "sourceLabel": "Microsoft Learn",
          "sourceUrl": "https://learn.microsoft.com/en-us/azure/sentinel/work-with-stix-objects-indicators",
          "query": "let Relationships = ThreatIntelObjects\n| where TimeGenerated > ago(30d)\n| summarize arg_max(TimeGenerated, *) by TenantId, Id\n| where IsDeleted == false and StixType == \"relationship\"\n| extend StixKey=tostring(Data.target_ref), FeedKey=tostring(split(Id, \"---\")[0])\n| where isnotempty(StixKey);\nThreatIntelObjects\n| where TimeGenerated > ago(30d)\n| summarize arg_max(TimeGenerated, *) by TenantId, Id\n| where IsDeleted == false\n| extend StixKey=tostring(Data.id), FeedKey=tostring(split(Id, \"---\")[0])\n| where isnotempty(StixKey)\n| join kind=inner (Relationships) on TenantId, FeedKey, StixKey",
          "queryLanguage": "kusto"
        }
      ],
      "family": "stix-object"
    },
    {
      "id": "sentinel-incident-to-bookmarks",
      "title": "Connect Sentinel incidents to hunting bookmarks",
      "description": "Expand incident BookmarkIds and match the related HuntingBookmark.BookmarkId values.",
      "from": {
        "table": "SecurityIncident",
        "column": "BookmarkIds",
        "path": "[]",
        "timeColumn": "TimeGenerated"
      },
      "to": {
        "table": "HuntingBookmark",
        "column": "BookmarkId",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Microsoft Sentinel",
        "Incidents",
        "Bookmarks",
        "Nested JSON"
      ],
      "guidance": "Use the latest incident and bookmark snapshots within the workspace before enrichment. Use a longer bookmark window because an incident update can refer to an older bookmark. Preserve SoftDeleted and query time-range context when reviewing historical bookmarks.",
      "kql": "let IncidentBookmarks = SecurityIncident\n| where TimeGenerated > ago(7d)\n| summarize arg_max(TimeGenerated, *) by TenantId, IncidentName\n| mv-expand BookmarkId=BookmarkIds to typeof(string)\n| where isnotempty(BookmarkId);\nHuntingBookmark\n| where TimeGenerated > ago(30d)\n| where isnotempty(BookmarkId)\n| summarize arg_max(TimeGenerated, *) by TenantId, BookmarkId\n| join kind=inner (IncidentBookmarks) on TenantId, BookmarkId",
      "otherNotes": [
        {
          "title": "Identifier reference",
          "text": "Expand incident BookmarkIds and match the related HuntingBookmark.BookmarkId values.",
          "sourceLabel": "Microsoft Learn",
          "sourceUrl": "https://learn.microsoft.com/en-us/azure/azure-monitor/reference/tables/securityincident",
          "query": "let IncidentBookmarks = SecurityIncident\n| where TimeGenerated > ago(7d)\n| summarize arg_max(TimeGenerated, *) by TenantId, IncidentName\n| mv-expand BookmarkId=BookmarkIds to typeof(string)\n| where isnotempty(BookmarkId);\nHuntingBookmark\n| where TimeGenerated > ago(30d)\n| where isnotempty(BookmarkId)\n| summarize arg_max(TimeGenerated, *) by TenantId, BookmarkId\n| join kind=inner (IncidentBookmarks) on TenantId, BookmarkId",
          "queryLanguage": "kusto"
        }
      ],
      "family": "bookmark"
    },
    {
      "id": "device-info-alert-evidence",
      "title": "Enrich AlertEvidence with device information",
      "description": "Match the Defender device identifier in AlertEvidence to DeviceInfo.DeviceId.",
      "from": {
        "table": "DeviceInfo",
        "column": "DeviceId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "AlertEvidence",
        "column": "DeviceId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Device",
        "Device enrichment"
      ],
      "guidance": "Use the Defender service device ID within the same tenant. Select the appropriate DeviceInfo snapshot and retain entity/evidence role. A shared device enriches the event but does not establish a shared process or session.",
      "kql": "let LeftEvents = DeviceInfo\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(DeviceId)\n| where isnotempty(JoinKey);\nlet RightEvents = AlertEvidence\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(DeviceId)\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on JoinKey",
      "otherNotes": [
        {
          "title": "Identifier reference",
          "text": "Match the Defender device identifier in AlertEvidence to DeviceInfo.DeviceId.",
          "sourceLabel": "Microsoft Learn",
          "sourceUrl": "https://learn.microsoft.com/en-us/defender-xdr/advanced-hunting-alertevidence-table",
          "query": "let LeftEvents = DeviceInfo\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(DeviceId)\n| where isnotempty(JoinKey);\nlet RightEvents = AlertEvidence\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(DeviceId)\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on JoinKey",
          "queryLanguage": "kusto"
        }
      ],
      "family": "defender-device"
    },
    {
      "id": "device-info-dynamic-event-collection",
      "title": "Enrich DynamicEventCollection with device information",
      "description": "Match the Defender device identifier in DynamicEventCollection to DeviceInfo.DeviceId.",
      "from": {
        "table": "DeviceInfo",
        "column": "DeviceId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "DynamicEventCollection",
        "column": "DeviceId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Device",
        "Device enrichment"
      ],
      "guidance": "Use the Defender service device ID within the same tenant. Select the appropriate DeviceInfo snapshot and retain entity/evidence role. A shared device enriches the event but does not establish a shared process or session.",
      "kql": "let LeftEvents = DeviceInfo\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(DeviceId)\n| where isnotempty(JoinKey);\nlet RightEvents = DynamicEventCollection\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(DeviceId)\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on JoinKey",
      "otherNotes": [
        {
          "title": "Identifier reference",
          "text": "Match the Defender device identifier in DynamicEventCollection to DeviceInfo.DeviceId.",
          "sourceLabel": "Microsoft Learn",
          "sourceUrl": "https://learn.microsoft.com/en-us/defender-xdr/advanced-hunting-deviceinfo-table",
          "query": "let LeftEvents = DeviceInfo\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(DeviceId)\n| where isnotempty(JoinKey);\nlet RightEvents = DynamicEventCollection\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(DeviceId)\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on JoinKey",
          "queryLanguage": "kusto"
        }
      ],
      "family": "defender-device"
    },
    {
      "id": "device-info-cloud-audit-events-azure-resource",
      "title": "Connect Azure devices to CloudAuditEvents",
      "description": "Match the Azure resource identifier associated with a device and CloudAuditEvents.",
      "from": {
        "table": "DeviceInfo",
        "column": "AzureResourceId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "CloudAuditEvents",
        "column": "AzureResourceId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Device",
        "Cloud resources",
        "Microsoft Azure"
      ],
      "guidance": "This connects records associated with the same cloud resource; it does not establish that one event caused another or that they share a process. Match the full resource identifier, preserving provider and tenant/account context. Do not equate a parent resource with a child resource or a hostname. One resource can have many events, so narrow the time window before joining. Azure ARM identifiers are compared in lowercase to accommodate casing differences. Select the relevant DeviceInfo snapshot; an Azure resource match is not a Defender device ID match.",
      "kql": "let LeftEvents = DeviceInfo\n| where Timestamp > ago(7d)\n| extend JoinKey = tolower(tostring(AzureResourceId))\n| where isnotempty(JoinKey);\nlet RightEvents = CloudAuditEvents\n| where Timestamp > ago(7d)\n| extend JoinKey = tolower(tostring(AzureResourceId))\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on JoinKey",
      "otherNotes": [
        {
          "title": "Identifier reference",
          "text": "Match the Azure resource identifier associated with a device and CloudAuditEvents.",
          "sourceLabel": "Microsoft Learn",
          "sourceUrl": "https://learn.microsoft.com/en-us/defender-xdr/advanced-hunting-cloudauditevents-table",
          "query": "let LeftEvents = DeviceInfo\n| where Timestamp > ago(7d)\n| extend JoinKey = tolower(tostring(AzureResourceId))\n| where isnotempty(JoinKey);\nlet RightEvents = CloudAuditEvents\n| where Timestamp > ago(7d)\n| extend JoinKey = tolower(tostring(AzureResourceId))\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on JoinKey",
          "queryLanguage": "kusto"
        }
      ],
      "family": "azure-resource"
    },
    {
      "id": "device-info-cloud-process-events-azure-resource",
      "title": "Connect Azure devices to CloudProcessEvents",
      "description": "Match the Azure resource identifier associated with a device and CloudProcessEvents.",
      "from": {
        "table": "DeviceInfo",
        "column": "AzureResourceId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "CloudProcessEvents",
        "column": "AzureResourceId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Device",
        "Cloud resources",
        "Microsoft Azure"
      ],
      "guidance": "This connects records associated with the same cloud resource; it does not establish that one event caused another or that they share a process. Match the full resource identifier, preserving provider and tenant/account context. Do not equate a parent resource with a child resource or a hostname. One resource can have many events, so narrow the time window before joining. Azure ARM identifiers are compared in lowercase to accommodate casing differences. Select the relevant DeviceInfo snapshot; an Azure resource match is not a Defender device ID match.",
      "kql": "let LeftEvents = DeviceInfo\n| where Timestamp > ago(7d)\n| extend JoinKey = tolower(tostring(AzureResourceId))\n| where isnotempty(JoinKey);\nlet RightEvents = CloudProcessEvents\n| where Timestamp > ago(7d)\n| extend JoinKey = tolower(tostring(AzureResourceId))\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on JoinKey",
      "otherNotes": [
        {
          "title": "Identifier reference",
          "text": "Match the Azure resource identifier associated with a device and CloudProcessEvents.",
          "sourceLabel": "Microsoft Learn",
          "sourceUrl": "https://learn.microsoft.com/en-us/defender-xdr/advanced-hunting-cloudprocessevents-table",
          "query": "let LeftEvents = DeviceInfo\n| where Timestamp > ago(7d)\n| extend JoinKey = tolower(tostring(AzureResourceId))\n| where isnotempty(JoinKey);\nlet RightEvents = CloudProcessEvents\n| where Timestamp > ago(7d)\n| extend JoinKey = tolower(tostring(AzureResourceId))\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on JoinKey",
          "queryLanguage": "kusto"
        }
      ],
      "family": "azure-resource"
    },
    {
      "id": "device-info-cloud-dns-events-azure-resource",
      "title": "Connect Azure devices to CloudDnsEvents",
      "description": "Match the Azure resource identifier associated with a device and CloudDnsEvents.",
      "from": {
        "table": "DeviceInfo",
        "column": "AzureResourceId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "CloudDnsEvents",
        "column": "AzureResourceId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Device",
        "Cloud resources",
        "Microsoft Azure"
      ],
      "guidance": "This connects records associated with the same cloud resource; it does not establish that one event caused another or that they share a process. Match the full resource identifier, preserving provider and tenant/account context. Do not equate a parent resource with a child resource or a hostname. One resource can have many events, so narrow the time window before joining. Azure ARM identifiers are compared in lowercase to accommodate casing differences. Select the relevant DeviceInfo snapshot; an Azure resource match is not a Defender device ID match.",
      "kql": "let LeftEvents = DeviceInfo\n| where Timestamp > ago(7d)\n| extend JoinKey = tolower(tostring(AzureResourceId))\n| where isnotempty(JoinKey);\nlet RightEvents = CloudDnsEvents\n| where Timestamp > ago(7d)\n| extend JoinKey = tolower(tostring(AzureResourceId))\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on JoinKey",
      "otherNotes": [
        {
          "title": "Identifier reference",
          "text": "Match the Azure resource identifier associated with a device and CloudDnsEvents.",
          "sourceLabel": "Microsoft Learn",
          "sourceUrl": "https://learn.microsoft.com/en-us/defender-xdr/advanced-hunting-clouddnsevents-table",
          "query": "let LeftEvents = DeviceInfo\n| where Timestamp > ago(7d)\n| extend JoinKey = tolower(tostring(AzureResourceId))\n| where isnotempty(JoinKey);\nlet RightEvents = CloudDnsEvents\n| where Timestamp > ago(7d)\n| extend JoinKey = tolower(tostring(AzureResourceId))\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on JoinKey",
          "queryLanguage": "kusto"
        }
      ],
      "family": "azure-resource"
    },
    {
      "id": "device-info-cloud-policy-enforcement-events-azure-resource",
      "title": "Connect Azure devices to CloudPolicyEnforcementEvents",
      "description": "Match the Azure resource identifier associated with a device and CloudPolicyEnforcementEvents.",
      "from": {
        "table": "DeviceInfo",
        "column": "AzureResourceId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "CloudPolicyEnforcementEvents",
        "column": "AzureResourceId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Device",
        "Cloud resources",
        "Microsoft Azure"
      ],
      "guidance": "This connects records associated with the same cloud resource; it does not establish that one event caused another or that they share a process. Match the full resource identifier, preserving provider and tenant/account context. Do not equate a parent resource with a child resource or a hostname. One resource can have many events, so narrow the time window before joining. Azure ARM identifiers are compared in lowercase to accommodate casing differences. Select the relevant DeviceInfo snapshot; an Azure resource match is not a Defender device ID match.",
      "kql": "let LeftEvents = DeviceInfo\n| where Timestamp > ago(7d)\n| extend JoinKey = tolower(tostring(AzureResourceId))\n| where isnotempty(JoinKey);\nlet RightEvents = CloudPolicyEnforcementEvents\n| where Timestamp > ago(7d)\n| extend JoinKey = tolower(tostring(AzureResourceId))\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on JoinKey",
      "otherNotes": [
        {
          "title": "Identifier reference",
          "text": "Match the Azure resource identifier associated with a device and CloudPolicyEnforcementEvents.",
          "sourceLabel": "Microsoft Learn",
          "sourceUrl": "https://learn.microsoft.com/en-us/defender-xdr/advanced-hunting-cloudpolicyenforcementevents-table",
          "query": "let LeftEvents = DeviceInfo\n| where Timestamp > ago(7d)\n| extend JoinKey = tolower(tostring(AzureResourceId))\n| where isnotempty(JoinKey);\nlet RightEvents = CloudPolicyEnforcementEvents\n| where Timestamp > ago(7d)\n| extend JoinKey = tolower(tostring(AzureResourceId))\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on JoinKey",
          "queryLanguage": "kusto"
        }
      ],
      "family": "azure-resource"
    },
    {
      "id": "device-info-cloud-storage-aggregated-events-azure-resource",
      "title": "Connect Azure devices to CloudStorageAggregatedEvents",
      "description": "Match the Azure resource identifier associated with a device and CloudStorageAggregatedEvents.",
      "from": {
        "table": "DeviceInfo",
        "column": "AzureResourceId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "CloudStorageAggregatedEvents",
        "column": "AzureResourceId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Device",
        "Cloud resources",
        "Microsoft Azure"
      ],
      "guidance": "This connects records associated with the same cloud resource; it does not establish that one event caused another or that they share a process. Match the full resource identifier, preserving provider and tenant/account context. Do not equate a parent resource with a child resource or a hostname. One resource can have many events, so narrow the time window before joining. Azure ARM identifiers are compared in lowercase to accommodate casing differences. Select the relevant DeviceInfo snapshot; an Azure resource match is not a Defender device ID match.",
      "kql": "let LeftEvents = DeviceInfo\n| where Timestamp > ago(7d)\n| extend JoinKey = tolower(tostring(AzureResourceId))\n| where isnotempty(JoinKey);\nlet RightEvents = CloudStorageAggregatedEvents\n| where Timestamp > ago(7d)\n| extend JoinKey = tolower(tostring(AzureResourceId))\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on JoinKey",
      "otherNotes": [
        {
          "title": "Identifier reference",
          "text": "Match the Azure resource identifier associated with a device and CloudStorageAggregatedEvents.",
          "sourceLabel": "Microsoft Learn",
          "sourceUrl": "https://learn.microsoft.com/en-us/defender-xdr/advanced-hunting-cloudstorageaggregatedevents-table",
          "query": "let LeftEvents = DeviceInfo\n| where Timestamp > ago(7d)\n| extend JoinKey = tolower(tostring(AzureResourceId))\n| where isnotempty(JoinKey);\nlet RightEvents = CloudStorageAggregatedEvents\n| where Timestamp > ago(7d)\n| extend JoinKey = tolower(tostring(AzureResourceId))\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on JoinKey",
          "queryLanguage": "kusto"
        }
      ],
      "family": "azure-resource"
    },
    {
      "id": "device-info-cloud-key-vault-events-azure-resource",
      "title": "Connect Azure devices to CloudKeyVaultEvents",
      "description": "Match the Azure resource identifier associated with a device and CloudKeyVaultEvents.",
      "from": {
        "table": "DeviceInfo",
        "column": "AzureResourceId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "CloudKeyVaultEvents",
        "column": "AzureResourceId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Device",
        "Cloud resources",
        "Microsoft Azure"
      ],
      "guidance": "This connects records associated with the same cloud resource; it does not establish that one event caused another or that they share a process. Match the full resource identifier, preserving provider and tenant/account context. Do not equate a parent resource with a child resource or a hostname. One resource can have many events, so narrow the time window before joining. Azure ARM identifiers are compared in lowercase to accommodate casing differences. Select the relevant DeviceInfo snapshot; an Azure resource match is not a Defender device ID match.",
      "kql": "let LeftEvents = DeviceInfo\n| where Timestamp > ago(7d)\n| extend JoinKey = tolower(tostring(AzureResourceId))\n| where isnotempty(JoinKey);\nlet RightEvents = CloudKeyVaultEvents\n| where Timestamp > ago(7d)\n| extend JoinKey = tolower(tostring(AzureResourceId))\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on JoinKey",
      "otherNotes": [
        {
          "title": "Identifier reference",
          "text": "Match the Azure resource identifier associated with a device and CloudKeyVaultEvents.",
          "sourceLabel": "Microsoft Learn",
          "sourceUrl": "https://learn.microsoft.com/en-us/defender-xdr/advanced-hunting-cloudkeyvaultevents-table",
          "query": "let LeftEvents = DeviceInfo\n| where Timestamp > ago(7d)\n| extend JoinKey = tolower(tostring(AzureResourceId))\n| where isnotempty(JoinKey);\nlet RightEvents = CloudKeyVaultEvents\n| where Timestamp > ago(7d)\n| extend JoinKey = tolower(tostring(AzureResourceId))\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on JoinKey",
          "queryLanguage": "kusto"
        }
      ],
      "family": "azure-resource"
    },
    {
      "id": "cloud-process-cloud-dns-events-azure-resource-id",
      "title": "Connect process and CloudDnsEvents records by Microsoft Azure resource",
      "description": "Match the full Microsoft Azure resource identifier associated with both cloud events.",
      "from": {
        "table": "CloudProcessEvents",
        "column": "AzureResourceId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "CloudDnsEvents",
        "column": "AzureResourceId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Cloud resources",
        "Microsoft Azure"
      ],
      "guidance": "This connects records associated with the same cloud resource; it does not establish that one event caused another or that they share a process. Match the full resource identifier, preserving provider and tenant/account context. Do not equate a parent resource with a child resource or a hostname. One resource can have many events, so narrow the time window before joining. Normalize Azure ARM identifier case.",
      "kql": "let LeftEvents = CloudProcessEvents\n| where Timestamp > ago(7d)\n| extend JoinKey = tolower(tostring(AzureResourceId))\n| where isnotempty(JoinKey);\nlet RightEvents = CloudDnsEvents\n| where Timestamp > ago(7d)\n| extend JoinKey = tolower(tostring(AzureResourceId))\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on JoinKey",
      "otherNotes": [
        {
          "title": "Identifier reference",
          "text": "Match the full Microsoft Azure resource identifier associated with both cloud events.",
          "sourceLabel": "Microsoft Learn",
          "sourceUrl": "https://learn.microsoft.com/en-us/defender-xdr/advanced-hunting-cloudprocessevents-table",
          "query": "let LeftEvents = CloudProcessEvents\n| where Timestamp > ago(7d)\n| extend JoinKey = tolower(tostring(AzureResourceId))\n| where isnotempty(JoinKey);\nlet RightEvents = CloudDnsEvents\n| where Timestamp > ago(7d)\n| extend JoinKey = tolower(tostring(AzureResourceId))\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on JoinKey",
          "queryLanguage": "kusto"
        }
      ],
      "family": "azure-resource"
    },
    {
      "id": "cloud-process-cloud-dns-events-aws-resource-name",
      "title": "Connect process and CloudDnsEvents records by AWS resource",
      "description": "Match the full AWS resource identifier associated with both cloud events.",
      "from": {
        "table": "CloudProcessEvents",
        "column": "AwsResourceName",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "CloudDnsEvents",
        "column": "AwsResourceName",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Cloud resources",
        "AWS"
      ],
      "guidance": "This connects records associated with the same cloud resource; it does not establish that one event caused another or that they share a process. Match the full resource identifier, preserving provider and tenant/account context. Do not equate a parent resource with a child resource or a hostname. One resource can have many events, so narrow the time window before joining. Preserve case in AWS and Google Cloud resource identifiers.",
      "kql": "let LeftEvents = CloudProcessEvents\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(AwsResourceName)\n| where isnotempty(JoinKey);\nlet RightEvents = CloudDnsEvents\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(AwsResourceName)\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on JoinKey",
      "otherNotes": [
        {
          "title": "Identifier reference",
          "text": "Match the full AWS resource identifier associated with both cloud events.",
          "sourceLabel": "Microsoft Learn",
          "sourceUrl": "https://learn.microsoft.com/en-us/defender-xdr/advanced-hunting-cloudprocessevents-table",
          "query": "let LeftEvents = CloudProcessEvents\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(AwsResourceName)\n| where isnotempty(JoinKey);\nlet RightEvents = CloudDnsEvents\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(AwsResourceName)\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on JoinKey",
          "queryLanguage": "kusto"
        }
      ],
      "family": "aws-resource"
    },
    {
      "id": "cloud-process-cloud-dns-events-gcp-full-resource-name",
      "title": "Connect process and CloudDnsEvents records by Google Cloud resource",
      "description": "Match the full Google Cloud resource identifier associated with both cloud events.",
      "from": {
        "table": "CloudProcessEvents",
        "column": "GcpFullResourceName",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "CloudDnsEvents",
        "column": "GcpFullResourceName",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Cloud resources",
        "Google Cloud"
      ],
      "guidance": "This connects records associated with the same cloud resource; it does not establish that one event caused another or that they share a process. Match the full resource identifier, preserving provider and tenant/account context. Do not equate a parent resource with a child resource or a hostname. One resource can have many events, so narrow the time window before joining. Preserve case in AWS and Google Cloud resource identifiers.",
      "kql": "let LeftEvents = CloudProcessEvents\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(GcpFullResourceName)\n| where isnotempty(JoinKey);\nlet RightEvents = CloudDnsEvents\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(GcpFullResourceName)\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on JoinKey",
      "otherNotes": [
        {
          "title": "Identifier reference",
          "text": "Match the full Google Cloud resource identifier associated with both cloud events.",
          "sourceLabel": "Microsoft Learn",
          "sourceUrl": "https://learn.microsoft.com/en-us/defender-xdr/advanced-hunting-cloudprocessevents-table",
          "query": "let LeftEvents = CloudProcessEvents\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(GcpFullResourceName)\n| where isnotempty(JoinKey);\nlet RightEvents = CloudDnsEvents\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(GcpFullResourceName)\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on JoinKey",
          "queryLanguage": "kusto"
        }
      ],
      "family": "gcp-resource"
    },
    {
      "id": "cloud-process-cloud-audit-events-azure-resource-id",
      "title": "Connect process and CloudAuditEvents records by Microsoft Azure resource",
      "description": "Match the full Microsoft Azure resource identifier associated with both cloud events.",
      "from": {
        "table": "CloudProcessEvents",
        "column": "AzureResourceId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "CloudAuditEvents",
        "column": "AzureResourceId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Cloud resources",
        "Microsoft Azure"
      ],
      "guidance": "This connects records associated with the same cloud resource; it does not establish that one event caused another or that they share a process. Match the full resource identifier, preserving provider and tenant/account context. Do not equate a parent resource with a child resource or a hostname. One resource can have many events, so narrow the time window before joining. Normalize Azure ARM identifier case.",
      "kql": "let LeftEvents = CloudProcessEvents\n| where Timestamp > ago(7d)\n| extend JoinKey = tolower(tostring(AzureResourceId))\n| where isnotempty(JoinKey);\nlet RightEvents = CloudAuditEvents\n| where Timestamp > ago(7d)\n| extend JoinKey = tolower(tostring(AzureResourceId))\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on JoinKey",
      "otherNotes": [
        {
          "title": "Identifier reference",
          "text": "Match the full Microsoft Azure resource identifier associated with both cloud events.",
          "sourceLabel": "Microsoft Learn",
          "sourceUrl": "https://learn.microsoft.com/en-us/defender-xdr/advanced-hunting-cloudprocessevents-table",
          "query": "let LeftEvents = CloudProcessEvents\n| where Timestamp > ago(7d)\n| extend JoinKey = tolower(tostring(AzureResourceId))\n| where isnotempty(JoinKey);\nlet RightEvents = CloudAuditEvents\n| where Timestamp > ago(7d)\n| extend JoinKey = tolower(tostring(AzureResourceId))\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on JoinKey",
          "queryLanguage": "kusto"
        }
      ],
      "family": "azure-resource"
    },
    {
      "id": "cloud-process-cloud-audit-events-aws-resource-name",
      "title": "Connect process and CloudAuditEvents records by AWS resource",
      "description": "Match the full AWS resource identifier associated with both cloud events.",
      "from": {
        "table": "CloudProcessEvents",
        "column": "AwsResourceName",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "CloudAuditEvents",
        "column": "AwsResourceName",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Cloud resources",
        "AWS"
      ],
      "guidance": "This connects records associated with the same cloud resource; it does not establish that one event caused another or that they share a process. Match the full resource identifier, preserving provider and tenant/account context. Do not equate a parent resource with a child resource or a hostname. One resource can have many events, so narrow the time window before joining. Preserve case in AWS and Google Cloud resource identifiers.",
      "kql": "let LeftEvents = CloudProcessEvents\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(AwsResourceName)\n| where isnotempty(JoinKey);\nlet RightEvents = CloudAuditEvents\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(AwsResourceName)\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on JoinKey",
      "otherNotes": [
        {
          "title": "Identifier reference",
          "text": "Match the full AWS resource identifier associated with both cloud events.",
          "sourceLabel": "Microsoft Learn",
          "sourceUrl": "https://learn.microsoft.com/en-us/defender-xdr/advanced-hunting-cloudprocessevents-table",
          "query": "let LeftEvents = CloudProcessEvents\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(AwsResourceName)\n| where isnotempty(JoinKey);\nlet RightEvents = CloudAuditEvents\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(AwsResourceName)\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on JoinKey",
          "queryLanguage": "kusto"
        }
      ],
      "family": "aws-resource"
    },
    {
      "id": "cloud-process-cloud-audit-events-gcp-full-resource-name",
      "title": "Connect process and CloudAuditEvents records by Google Cloud resource",
      "description": "Match the full Google Cloud resource identifier associated with both cloud events.",
      "from": {
        "table": "CloudProcessEvents",
        "column": "GcpFullResourceName",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "CloudAuditEvents",
        "column": "GcpFullResourceName",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Cloud resources",
        "Google Cloud"
      ],
      "guidance": "This connects records associated with the same cloud resource; it does not establish that one event caused another or that they share a process. Match the full resource identifier, preserving provider and tenant/account context. Do not equate a parent resource with a child resource or a hostname. One resource can have many events, so narrow the time window before joining. Preserve case in AWS and Google Cloud resource identifiers.",
      "kql": "let LeftEvents = CloudProcessEvents\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(GcpFullResourceName)\n| where isnotempty(JoinKey);\nlet RightEvents = CloudAuditEvents\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(GcpFullResourceName)\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on JoinKey",
      "otherNotes": [
        {
          "title": "Identifier reference",
          "text": "Match the full Google Cloud resource identifier associated with both cloud events.",
          "sourceLabel": "Microsoft Learn",
          "sourceUrl": "https://learn.microsoft.com/en-us/defender-xdr/advanced-hunting-cloudprocessevents-table",
          "query": "let LeftEvents = CloudProcessEvents\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(GcpFullResourceName)\n| where isnotempty(JoinKey);\nlet RightEvents = CloudAuditEvents\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(GcpFullResourceName)\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on JoinKey",
          "queryLanguage": "kusto"
        }
      ],
      "family": "gcp-resource"
    },
    {
      "id": "cloud-process-cloud-policy-enforcement-events-azure-resource-id",
      "title": "Connect process and CloudPolicyEnforcementEvents records by Microsoft Azure resource",
      "description": "Match the full Microsoft Azure resource identifier associated with both cloud events.",
      "from": {
        "table": "CloudProcessEvents",
        "column": "AzureResourceId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "CloudPolicyEnforcementEvents",
        "column": "AzureResourceId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Cloud resources",
        "Microsoft Azure"
      ],
      "guidance": "This connects records associated with the same cloud resource; it does not establish that one event caused another or that they share a process. Match the full resource identifier, preserving provider and tenant/account context. Do not equate a parent resource with a child resource or a hostname. One resource can have many events, so narrow the time window before joining. Normalize Azure ARM identifier case.",
      "kql": "let LeftEvents = CloudProcessEvents\n| where Timestamp > ago(7d)\n| extend JoinKey = tolower(tostring(AzureResourceId))\n| where isnotempty(JoinKey);\nlet RightEvents = CloudPolicyEnforcementEvents\n| where Timestamp > ago(7d)\n| extend JoinKey = tolower(tostring(AzureResourceId))\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on JoinKey",
      "otherNotes": [
        {
          "title": "Identifier reference",
          "text": "Match the full Microsoft Azure resource identifier associated with both cloud events.",
          "sourceLabel": "Microsoft Learn",
          "sourceUrl": "https://learn.microsoft.com/en-us/defender-xdr/advanced-hunting-cloudprocessevents-table",
          "query": "let LeftEvents = CloudProcessEvents\n| where Timestamp > ago(7d)\n| extend JoinKey = tolower(tostring(AzureResourceId))\n| where isnotempty(JoinKey);\nlet RightEvents = CloudPolicyEnforcementEvents\n| where Timestamp > ago(7d)\n| extend JoinKey = tolower(tostring(AzureResourceId))\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on JoinKey",
          "queryLanguage": "kusto"
        }
      ],
      "family": "azure-resource"
    },
    {
      "id": "cloud-process-cloud-policy-enforcement-events-aws-resource-name",
      "title": "Connect process and CloudPolicyEnforcementEvents records by AWS resource",
      "description": "Match the full AWS resource identifier associated with both cloud events.",
      "from": {
        "table": "CloudProcessEvents",
        "column": "AwsResourceName",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "CloudPolicyEnforcementEvents",
        "column": "AwsResourceName",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Cloud resources",
        "AWS"
      ],
      "guidance": "This connects records associated with the same cloud resource; it does not establish that one event caused another or that they share a process. Match the full resource identifier, preserving provider and tenant/account context. Do not equate a parent resource with a child resource or a hostname. One resource can have many events, so narrow the time window before joining. Preserve case in AWS and Google Cloud resource identifiers.",
      "kql": "let LeftEvents = CloudProcessEvents\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(AwsResourceName)\n| where isnotempty(JoinKey);\nlet RightEvents = CloudPolicyEnforcementEvents\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(AwsResourceName)\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on JoinKey",
      "otherNotes": [
        {
          "title": "Identifier reference",
          "text": "Match the full AWS resource identifier associated with both cloud events.",
          "sourceLabel": "Microsoft Learn",
          "sourceUrl": "https://learn.microsoft.com/en-us/defender-xdr/advanced-hunting-cloudprocessevents-table",
          "query": "let LeftEvents = CloudProcessEvents\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(AwsResourceName)\n| where isnotempty(JoinKey);\nlet RightEvents = CloudPolicyEnforcementEvents\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(AwsResourceName)\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on JoinKey",
          "queryLanguage": "kusto"
        }
      ],
      "family": "aws-resource"
    },
    {
      "id": "cloud-process-cloud-policy-enforcement-events-gcp-full-resource-name",
      "title": "Connect process and CloudPolicyEnforcementEvents records by Google Cloud resource",
      "description": "Match the full Google Cloud resource identifier associated with both cloud events.",
      "from": {
        "table": "CloudProcessEvents",
        "column": "GcpFullResourceName",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "CloudPolicyEnforcementEvents",
        "column": "GcpFullResourceName",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Cloud resources",
        "Google Cloud"
      ],
      "guidance": "This connects records associated with the same cloud resource; it does not establish that one event caused another or that they share a process. Match the full resource identifier, preserving provider and tenant/account context. Do not equate a parent resource with a child resource or a hostname. One resource can have many events, so narrow the time window before joining. Preserve case in AWS and Google Cloud resource identifiers.",
      "kql": "let LeftEvents = CloudProcessEvents\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(GcpFullResourceName)\n| where isnotempty(JoinKey);\nlet RightEvents = CloudPolicyEnforcementEvents\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(GcpFullResourceName)\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on JoinKey",
      "otherNotes": [
        {
          "title": "Identifier reference",
          "text": "Match the full Google Cloud resource identifier associated with both cloud events.",
          "sourceLabel": "Microsoft Learn",
          "sourceUrl": "https://learn.microsoft.com/en-us/defender-xdr/advanced-hunting-cloudprocessevents-table",
          "query": "let LeftEvents = CloudProcessEvents\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(GcpFullResourceName)\n| where isnotempty(JoinKey);\nlet RightEvents = CloudPolicyEnforcementEvents\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(GcpFullResourceName)\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on JoinKey",
          "queryLanguage": "kusto"
        }
      ],
      "family": "gcp-resource"
    },
    {
      "id": "audit-initiator-account-object-id",
      "title": "Enrich an audit initiator through user.id",
      "description": "Match AuditLogs.InitiatedBy.user.id to IdentityInfo.AccountObjectId.",
      "from": {
        "table": "AuditLogs",
        "column": "InitiatedBy",
        "path": "user.id",
        "timeColumn": "ActivityDateTime"
      },
      "to": {
        "table": "IdentityInfo",
        "column": "AccountObjectId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Identity",
        "Audit",
        "User enrichment",
        "Nested JSON"
      ],
      "guidance": "Enrich the initiating actor, not a target resource. User object IDs, application/client IDs, and service principal IDs are separate namespaces. Scope to the actual Entra tenant; AuditLogs.AADTenantId is the identity tenant. Snapshot metadata can repeat, so select the appropriate snapshot. These joins do not prove a shared session or token. Verify nested fields in collected records.",
      "kql": "let LeftEvents = AuditLogs\n| where ActivityDateTime > ago(7d)\n| extend JoinKey = tostring(parse_json(tostring(parse_json(tostring(InitiatedBy)).user)).id)\n| where isnotempty(JoinKey);\nlet RightEvents = IdentityInfo\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(AccountObjectId)\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on JoinKey",
      "otherNotes": [
        {
          "title": "Identifier reference",
          "text": "Match AuditLogs.InitiatedBy.user.id to IdentityInfo.AccountObjectId.",
          "sourceLabel": "Microsoft Learn",
          "sourceUrl": "https://learn.microsoft.com/en-us/graph/api/resources/useridentity?view=graph-rest-1.0",
          "query": "let LeftEvents = AuditLogs\n| where ActivityDateTime > ago(7d)\n| extend JoinKey = tostring(parse_json(tostring(parse_json(tostring(InitiatedBy)).user)).id)\n| where isnotempty(JoinKey);\nlet RightEvents = IdentityInfo\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(AccountObjectId)\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on JoinKey",
          "queryLanguage": "kusto"
        }
      ],
      "family": "entra-user"
    },
    {
      "id": "audit-initiator-service-principal-id",
      "title": "Enrich an audit initiator through app.servicePrincipalId",
      "description": "Match AuditLogs.InitiatedBy.app.servicePrincipalId to OAuthAppInfo.ServicePrincipalId.",
      "from": {
        "table": "AuditLogs",
        "column": "InitiatedBy",
        "path": "app.servicePrincipalId",
        "timeColumn": "ActivityDateTime"
      },
      "to": {
        "table": "OAuthAppInfo",
        "column": "ServicePrincipalId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Identity",
        "Audit",
        "Application enrichment",
        "Nested JSON"
      ],
      "guidance": "Enrich the initiating actor, not a target resource. User object IDs, application/client IDs, and service principal IDs are separate namespaces. Scope to the actual Entra tenant; AuditLogs.AADTenantId is the identity tenant. Snapshot metadata can repeat, so select the appropriate snapshot. These joins do not prove a shared session or token. Verify nested fields in collected records.",
      "kql": "let LeftEvents = AuditLogs\n| where ActivityDateTime > ago(7d)\n| extend JoinKey = tostring(parse_json(tostring(parse_json(tostring(InitiatedBy)).app)).servicePrincipalId)\n| where isnotempty(JoinKey);\nlet RightEvents = OAuthAppInfo\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(ServicePrincipalId)\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on JoinKey",
      "otherNotes": [
        {
          "title": "Identifier reference",
          "text": "Match AuditLogs.InitiatedBy.app.servicePrincipalId to OAuthAppInfo.ServicePrincipalId.",
          "sourceLabel": "Microsoft Learn",
          "sourceUrl": "https://learn.microsoft.com/en-us/graph/api/resources/appidentity?view=graph-rest-1.0",
          "query": "let LeftEvents = AuditLogs\n| where ActivityDateTime > ago(7d)\n| extend JoinKey = tostring(parse_json(tostring(parse_json(tostring(InitiatedBy)).app)).servicePrincipalId)\n| where isnotempty(JoinKey);\nlet RightEvents = OAuthAppInfo\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(ServicePrincipalId)\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on JoinKey",
          "queryLanguage": "kusto"
        }
      ],
      "family": "service-principal"
    },
    {
      "id": "audit-initiator-o-auth-app-id",
      "title": "Enrich an audit initiator through app.appId",
      "description": "Match AuditLogs.InitiatedBy.app.appId to OAuthAppInfo.OAuthAppId.",
      "from": {
        "table": "AuditLogs",
        "column": "InitiatedBy",
        "path": "app.appId",
        "timeColumn": "ActivityDateTime"
      },
      "to": {
        "table": "OAuthAppInfo",
        "column": "OAuthAppId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Identity",
        "Audit",
        "Application enrichment",
        "Nested JSON"
      ],
      "guidance": "Enrich the initiating actor, not a target resource. User object IDs, application/client IDs, and service principal IDs are separate namespaces. Scope to the actual Entra tenant; AuditLogs.AADTenantId is the identity tenant. Snapshot metadata can repeat, so select the appropriate snapshot. These joins do not prove a shared session or token. Verify nested fields in collected records.",
      "kql": "let LeftEvents = AuditLogs\n| where ActivityDateTime > ago(7d)\n| extend JoinKey = tostring(parse_json(tostring(parse_json(tostring(InitiatedBy)).app)).appId)\n| where isnotempty(JoinKey);\nlet RightEvents = OAuthAppInfo\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(OAuthAppId)\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on JoinKey",
      "otherNotes": [
        {
          "title": "Identifier reference",
          "text": "Match AuditLogs.InitiatedBy.app.appId to OAuthAppInfo.OAuthAppId.",
          "sourceLabel": "Microsoft Learn",
          "sourceUrl": "https://learn.microsoft.com/en-us/graph/api/resources/appidentity?view=graph-rest-1.0",
          "query": "let LeftEvents = AuditLogs\n| where ActivityDateTime > ago(7d)\n| extend JoinKey = tostring(parse_json(tostring(parse_json(tostring(InitiatedBy)).app)).appId)\n| where isnotempty(JoinKey);\nlet RightEvents = OAuthAppInfo\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(OAuthAppId)\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on JoinKey",
          "queryLanguage": "kusto"
        }
      ],
      "family": "oauth-client"
    },
    {
      "id": "process-file-to-signing-certificate",
      "title": "Retrieve signing information for a process executable",
      "description": "Match the SHA-1 hash of a process image to file certificate information.",
      "from": {
        "table": "DeviceProcessEvents",
        "column": "SHA1",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "DeviceFileCertificateInfo",
        "column": "SHA1",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Device",
        "File correlation",
        "Certificates"
      ],
      "guidance": "Microsoft documents this executable hash join. Select the latest certificate record per device and preserve processes without a certificate match. IsTrusted is contextual, so keep DeviceId and TenantId when evaluating trust. SHA-1 can be populated when SHA-256 is unavailable; missing certificate data is not proof that a file is unsigned.",
      "kql": "let Certificates = DeviceFileCertificateInfo\n| where Timestamp > ago(30d)\n| where isnotempty(DeviceId) and isnotempty(SHA1)\n| extend FileKey=tolower(SHA1)\n| summarize arg_max(Timestamp, *) by TenantId, DeviceId, FileKey;\nDeviceProcessEvents\n| where Timestamp > ago(7d)\n| where isnotempty(DeviceId) and isnotempty(SHA1)\n| extend FileKey=tolower(SHA1)\n| join kind=leftouter (Certificates) on TenantId, DeviceId, FileKey",
      "otherNotes": [
        {
          "title": "Identifier reference",
          "text": "Match the SHA-1 hash of a process image to file certificate information.",
          "sourceLabel": "Microsoft Learn",
          "sourceUrl": "https://learn.microsoft.com/en-us/defender-xdr/advanced-hunting-deviceprocessevents-table",
          "query": "let Certificates = DeviceFileCertificateInfo\n| where Timestamp > ago(30d)\n| where isnotempty(DeviceId) and isnotempty(SHA1)\n| extend FileKey=tolower(SHA1)\n| summarize arg_max(Timestamp, *) by TenantId, DeviceId, FileKey;\nDeviceProcessEvents\n| where Timestamp > ago(7d)\n| where isnotempty(DeviceId) and isnotempty(SHA1)\n| extend FileKey=tolower(SHA1)\n| join kind=leftouter (Certificates) on TenantId, DeviceId, FileKey",
          "queryLanguage": "kusto"
        }
      ],
      "family": "file-sha1"
    },
    {
      "id": "malicious-content-email-attachment-info-sha256",
      "title": "Connect malicious file content to EmailAttachmentInfo",
      "description": "Match the SHA-256 content hash in FileMaliciousContentInfo and EmailAttachmentInfo.",
      "from": {
        "table": "FileMaliciousContentInfo",
        "column": "SHA256",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "EmailAttachmentInfo",
        "column": "SHA256",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "File correlation",
        "Threats"
      ],
      "guidance": "A hash match identifies the same file content, not the same file path, delivery, user, or execution. Exclude empty hashes and use the same algorithm. Normalize hexadecimal hash case; this normalization must not be applied to token identifiers. Keep workload, device or recipient context and detection time when interpreting matches.",
      "kql": "let LeftEvents = FileMaliciousContentInfo\n| where Timestamp > ago(7d)\n| extend JoinKey = tolower(tostring(SHA256))\n| where isnotempty(JoinKey);\nlet RightEvents = EmailAttachmentInfo\n| where Timestamp > ago(7d)\n| extend JoinKey = tolower(tostring(SHA256))\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on JoinKey",
      "otherNotes": [
        {
          "title": "Identifier reference",
          "text": "Match the SHA-256 content hash in FileMaliciousContentInfo and EmailAttachmentInfo.",
          "sourceLabel": "Microsoft Learn",
          "sourceUrl": "https://learn.microsoft.com/en-us/defender-xdr/advanced-hunting-filemaliciouscontentinfo-table",
          "query": "let LeftEvents = FileMaliciousContentInfo\n| where Timestamp > ago(7d)\n| extend JoinKey = tolower(tostring(SHA256))\n| where isnotempty(JoinKey);\nlet RightEvents = EmailAttachmentInfo\n| where Timestamp > ago(7d)\n| extend JoinKey = tolower(tostring(SHA256))\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on JoinKey",
          "queryLanguage": "kusto"
        }
      ],
      "family": "file-sha256"
    },
    {
      "id": "malicious-content-device-file-events-sha256",
      "title": "Connect malicious file content to DeviceFileEvents",
      "description": "Match the SHA-256 content hash in FileMaliciousContentInfo and DeviceFileEvents.",
      "from": {
        "table": "FileMaliciousContentInfo",
        "column": "SHA256",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "DeviceFileEvents",
        "column": "SHA256",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "File correlation",
        "Threats"
      ],
      "guidance": "A hash match identifies the same file content, not the same file path, delivery, user, or execution. Exclude empty hashes and use the same algorithm. Normalize hexadecimal hash case; this normalization must not be applied to token identifiers. Keep workload, device or recipient context and detection time when interpreting matches.",
      "kql": "let LeftEvents = FileMaliciousContentInfo\n| where Timestamp > ago(7d)\n| extend JoinKey = tolower(tostring(SHA256))\n| where isnotempty(JoinKey);\nlet RightEvents = DeviceFileEvents\n| where Timestamp > ago(7d)\n| extend JoinKey = tolower(tostring(SHA256))\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on JoinKey",
      "otherNotes": [
        {
          "title": "Identifier reference",
          "text": "Match the SHA-256 content hash in FileMaliciousContentInfo and DeviceFileEvents.",
          "sourceLabel": "Microsoft Learn",
          "sourceUrl": "https://learn.microsoft.com/en-us/defender-xdr/advanced-hunting-filemaliciouscontentinfo-table",
          "query": "let LeftEvents = FileMaliciousContentInfo\n| where Timestamp > ago(7d)\n| extend JoinKey = tolower(tostring(SHA256))\n| where isnotempty(JoinKey);\nlet RightEvents = DeviceFileEvents\n| where Timestamp > ago(7d)\n| extend JoinKey = tolower(tostring(SHA256))\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on JoinKey",
          "queryLanguage": "kusto"
        }
      ],
      "family": "file-sha256"
    },
    {
      "id": "identity-info-aad-signin-beta",
      "title": "Enrich retained beta sign-ins with identity information",
      "description": "Match the Entra account object ID in AADSignInEventsBeta to IdentityInfo.AccountObjectId.",
      "from": {
        "table": "IdentityInfo",
        "column": "AccountObjectId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "AADSignInEventsBeta",
        "column": "AccountObjectId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Identity",
        "User enrichment",
        "Legacy schema"
      ],
      "guidance": "AADSignInEventsBeta is deprecated. This supports retained historical beta-table records; use EntraIdSignInEvents for the current equivalent. Match the actual identity tenant and select the appropriate IdentityInfo snapshot; a shared account does not establish a shared token.",
      "kql": "let LeftEvents = IdentityInfo\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(AccountObjectId)\n| where isnotempty(JoinKey);\nlet RightEvents = AADSignInEventsBeta\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(AccountObjectId)\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on JoinKey",
      "otherNotes": [
        {
          "title": "Identifier reference",
          "text": "Match the Entra account object ID in AADSignInEventsBeta to IdentityInfo.AccountObjectId.",
          "sourceLabel": "Microsoft Learn",
          "sourceUrl": "https://learn.microsoft.com/en-us/defender-xdr/advanced-hunting-entraidsigninevents-table",
          "query": "let LeftEvents = IdentityInfo\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(AccountObjectId)\n| where isnotempty(JoinKey);\nlet RightEvents = AADSignInEventsBeta\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(AccountObjectId)\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on JoinKey",
          "queryLanguage": "kusto"
        }
      ],
      "family": "entra-user"
    },
    {
      "id": "device-info-aad-signin-beta-aad-device-id",
      "title": "Enrich retained beta sign-ins with Entra device information",
      "description": "Match the retained beta sign-in field AadDeviceId to DeviceInfo.AadDeviceId.",
      "from": {
        "table": "DeviceInfo",
        "column": "AadDeviceId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "AADSignInEventsBeta",
        "column": "AadDeviceId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Device",
        "Identity",
        "Legacy schema"
      ],
      "guidance": "AADSignInEventsBeta is deprecated. This supports historical beta-table records; use EntraIdSignInEvents.EntraIdDeviceId for the current equivalent. These are Entra device GUIDs, not Defender DeviceId values. The retained schema exposes two device field names; check which is populated in your records. Select the relevant DeviceInfo snapshot.",
      "kql": "let LeftEvents = DeviceInfo\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(AadDeviceId)\n| where isnotempty(JoinKey);\nlet RightEvents = AADSignInEventsBeta\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(AadDeviceId)\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on JoinKey",
      "otherNotes": [
        {
          "title": "Identifier reference",
          "text": "Match the retained beta sign-in field AadDeviceId to DeviceInfo.AadDeviceId.",
          "sourceLabel": "Microsoft Learn",
          "sourceUrl": "https://learn.microsoft.com/en-us/defender-xdr/advanced-hunting-entraidsigninevents-table",
          "query": "let LeftEvents = DeviceInfo\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(AadDeviceId)\n| where isnotempty(JoinKey);\nlet RightEvents = AADSignInEventsBeta\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(AadDeviceId)\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on JoinKey",
          "queryLanguage": "kusto"
        }
      ],
      "family": "entra-device"
    },
    {
      "id": "device-info-aad-signin-beta-entra-id-device-id",
      "title": "Enrich retained beta sign-ins with Entra device information",
      "description": "Match the retained beta sign-in field EntraIdDeviceId to DeviceInfo.AadDeviceId.",
      "from": {
        "table": "DeviceInfo",
        "column": "AadDeviceId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "AADSignInEventsBeta",
        "column": "EntraIdDeviceId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Device",
        "Identity",
        "Legacy schema"
      ],
      "guidance": "AADSignInEventsBeta is deprecated. This supports historical beta-table records; use EntraIdSignInEvents.EntraIdDeviceId for the current equivalent. These are Entra device GUIDs, not Defender DeviceId values. The retained schema exposes two device field names; check which is populated in your records. Select the relevant DeviceInfo snapshot.",
      "kql": "let LeftEvents = DeviceInfo\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(AadDeviceId)\n| where isnotempty(JoinKey);\nlet RightEvents = AADSignInEventsBeta\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(EntraIdDeviceId)\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on JoinKey",
      "otherNotes": [
        {
          "title": "Identifier reference",
          "text": "Match the retained beta sign-in field EntraIdDeviceId to DeviceInfo.AadDeviceId.",
          "sourceLabel": "Microsoft Learn",
          "sourceUrl": "https://learn.microsoft.com/en-us/defender-xdr/advanced-hunting-entraidsigninevents-table",
          "query": "let LeftEvents = DeviceInfo\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(AadDeviceId)\n| where isnotempty(JoinKey);\nlet RightEvents = AADSignInEventsBeta\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(EntraIdDeviceId)\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on JoinKey",
          "queryLanguage": "kusto"
        }
      ],
      "family": "entra-device"
    },
    {
      "id": "identity-info-aad-graph-activity-logs-user-id",
      "title": "Enrich AADGraphActivityLogs with identity information",
      "description": "Match the Entra user object identifier in AADGraphActivityLogs.UserId to IdentityInfo.AccountObjectId.",
      "from": {
        "table": "IdentityInfo",
        "column": "AccountObjectId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "AADGraphActivityLogs",
        "column": "UserId",
        "timeColumn": "TimeRequested"
      },
      "tags": [
        "Identity",
        "User enrichment",
        "Azure AD Graph",
        "Microsoft Sentinel"
      ],
      "guidance": "Match the Microsoft Entra user object ID within the same identity tenant. Keep actor and target identities distinct; a shared account is enrichment, not proof that two events share a token or session. IdentityInfo can contain multiple snapshots; select the appropriate or latest snapshot before enrichment. Use TimeRequested for request timing and allow for delayed ingestion. AADGraphActivityLogs.AADTenantId identifies the Entra tenant; its TenantId can identify the workspace. Use the actual identity tenant when narrowing enrichment. User and application actors use different fields; preserve ActorType when interpreting the result.",
      "otherNotes": [
        {
          "title": "AAD Graph actor and device identifiers",
          "text": "Match the Entra user object identifier in AADGraphActivityLogs.UserId to IdentityInfo.AccountObjectId.",
          "sourceLabel": "Microsoft Learn: AADGraphActivityLogs",
          "sourceUrl": "https://learn.microsoft.com/en-us/azure/azure-monitor/reference/tables/aadgraphactivitylogs",
          "query": "let LeftEvents = IdentityInfo\n| where ['Timestamp'] > ago(7d)\n| extend __relationLeftKey = tostring(['AccountObjectId'])\n| where isnotempty(__relationLeftKey);\nlet RightEvents = AADGraphActivityLogs\n| where ['TimeRequested'] > ago(7d)\n| extend __relationRightKey = tostring(['UserId'])\n| where isnotempty(__relationRightKey);\nLeftEvents\n| join kind=inner (RightEvents) on $left.__relationLeftKey == $right.__relationRightKey\n| project-away __relationLeftKey, __relationRightKey",
          "queryLanguage": "kusto"
        }
      ],
      "family": "entra-user"
    },
    {
      "id": "oauth-app-info-aad-graph-activity-logs-app-id",
      "title": "Enrich AADGraphActivityLogs with OAuth application information",
      "description": "Match OAuthAppInfo.OAuthAppId to AADGraphActivityLogs.AppId.",
      "from": {
        "table": "OAuthAppInfo",
        "column": "OAuthAppId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "AADGraphActivityLogs",
        "column": "AppId",
        "timeColumn": "TimeRequested"
      },
      "tags": [
        "Identity",
        "OAuth applications",
        "Application enrichment",
        "Azure AD Graph",
        "Microsoft Sentinel"
      ],
      "guidance": "The OAuth application/client ID and the service principal object ID are different namespaces. Scope service principal joins to the same tenant. App metadata can have multiple snapshots; select the relevant snapshot. A shared application enriches activity and does not establish a shared token or session. Use TimeRequested for request timing and allow for delayed ingestion. AADGraphActivityLogs.AADTenantId identifies the Entra tenant; its TenantId can identify the workspace. Use the actual identity tenant when narrowing enrichment.",
      "otherNotes": [
        {
          "title": "AAD Graph actor and device identifiers",
          "text": "Match OAuthAppInfo.OAuthAppId to AADGraphActivityLogs.AppId.",
          "sourceLabel": "Microsoft Learn: AADGraphActivityLogs",
          "sourceUrl": "https://learn.microsoft.com/en-us/azure/azure-monitor/reference/tables/aadgraphactivitylogs",
          "query": "let LeftEvents = OAuthAppInfo\n| where ['Timestamp'] > ago(7d)\n| extend __relationLeftKey = tostring(['OAuthAppId'])\n| where isnotempty(__relationLeftKey);\nlet RightEvents = AADGraphActivityLogs\n| where ['TimeRequested'] > ago(7d)\n| extend __relationRightKey = tostring(['AppId'])\n| where isnotempty(__relationRightKey);\nLeftEvents\n| join kind=inner (RightEvents) on $left.__relationLeftKey == $right.__relationRightKey\n| project-away __relationLeftKey, __relationRightKey",
          "queryLanguage": "kusto"
        }
      ],
      "family": "oauth-client"
    },
    {
      "id": "oauth-app-info-aad-graph-activity-logs-service-principal-id",
      "title": "Enrich AADGraphActivityLogs with OAuth application information",
      "description": "Match OAuthAppInfo.ServicePrincipalId to AADGraphActivityLogs.ServicePrincipalId.",
      "from": {
        "table": "OAuthAppInfo",
        "column": "ServicePrincipalId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "AADGraphActivityLogs",
        "column": "ServicePrincipalId",
        "timeColumn": "TimeRequested"
      },
      "tags": [
        "Identity",
        "OAuth applications",
        "Application enrichment",
        "Azure AD Graph",
        "Microsoft Sentinel"
      ],
      "guidance": "The OAuth application/client ID and the service principal object ID are different namespaces. Scope service principal joins to the same tenant. App metadata can have multiple snapshots; select the relevant snapshot. A shared application enriches activity and does not establish a shared token or session. Use TimeRequested for request timing and allow for delayed ingestion. AADGraphActivityLogs.AADTenantId identifies the Entra tenant; its TenantId can identify the workspace. Use the actual identity tenant when narrowing enrichment. User and application actors use different fields; preserve ActorType when interpreting the result.",
      "otherNotes": [
        {
          "title": "AAD Graph actor and device identifiers",
          "text": "Match OAuthAppInfo.ServicePrincipalId to AADGraphActivityLogs.ServicePrincipalId.",
          "sourceLabel": "Microsoft Learn: AADGraphActivityLogs",
          "sourceUrl": "https://learn.microsoft.com/en-us/azure/azure-monitor/reference/tables/aadgraphactivitylogs",
          "query": "let LeftEvents = OAuthAppInfo\n| where ['Timestamp'] > ago(7d)\n| extend __relationLeftKey = tostring(['ServicePrincipalId'])\n| where isnotempty(__relationLeftKey);\nlet RightEvents = AADGraphActivityLogs\n| where ['TimeRequested'] > ago(7d)\n| extend __relationRightKey = tostring(['ServicePrincipalId'])\n| where isnotempty(__relationRightKey);\nLeftEvents\n| join kind=inner (RightEvents) on $left.__relationLeftKey == $right.__relationRightKey\n| project-away __relationLeftKey, __relationRightKey",
          "queryLanguage": "kusto"
        }
      ],
      "family": "service-principal"
    },
    {
      "id": "device-info-aad-graph-activity-logs-entra-device",
      "title": "Connect AADGraphActivityLogs to an Entra device",
      "description": "Match DeviceInfo.AadDeviceId to the Entra device identifier in AADGraphActivityLogs.",
      "from": {
        "table": "DeviceInfo",
        "column": "AadDeviceId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "AADGraphActivityLogs",
        "column": "DeviceId",
        "timeColumn": "TimeRequested"
      },
      "tags": [
        "Device",
        "Identity",
        "Device enrichment",
        "Azure AD Graph",
        "Microsoft Sentinel"
      ],
      "guidance": "Use the Entra device GUID, not DeviceInfo.DeviceId. Device details are available only when recorded in the authentication context. Exclude empty identifiers and select the appropriate DeviceInfo snapshot. Use TimeRequested for request timing and allow for delayed ingestion. AADGraphActivityLogs.AADTenantId identifies the Entra tenant; its TenantId can identify the workspace. Use the actual identity tenant when narrowing enrichment.",
      "otherNotes": [
        {
          "title": "AAD Graph actor and device identifiers",
          "text": "Match DeviceInfo.AadDeviceId to the Entra device identifier in AADGraphActivityLogs.",
          "sourceLabel": "Microsoft Learn: AADGraphActivityLogs",
          "sourceUrl": "https://learn.microsoft.com/en-us/azure/azure-monitor/reference/tables/aadgraphactivitylogs",
          "query": "let LeftEvents = DeviceInfo\n| where ['Timestamp'] > ago(7d)\n| extend __relationLeftKey = tostring(['AadDeviceId'])\n| where isnotempty(__relationLeftKey);\nlet RightEvents = AADGraphActivityLogs\n| where ['TimeRequested'] > ago(7d)\n| extend __relationRightKey = tostring(['DeviceId'])\n| where isnotempty(__relationRightKey);\nLeftEvents\n| join kind=inner (RightEvents) on $left.__relationLeftKey == $right.__relationRightKey\n| project-away __relationLeftKey, __relationRightKey",
          "queryLanguage": "kusto"
        }
      ],
      "family": "entra-device"
    },
    {
      "id": "entra-signin-events-beta-session",
      "title": "Link Entra sign-ins to beta sign-in sessions",
      "description": "Match the authentication session ID between EntraIdSignInEvents and AADSignInEventsBeta.",
      "from": {
        "table": "EntraIdSignInEvents",
        "column": "SessionId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "AADSignInEventsBeta",
        "column": "SessionId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Identity",
        "Entra ID",
        "Session correlation",
        "Beta schema"
      ],
      "guidance": "AADSignInEventsBeta is deprecated. The two tables can expose the same authentication session identifiers for retained records. Prefer EntraIdSignInEvents for current data; treat matches as one-to-many, exclude empty values, and retain AccountObjectId and time context when joining.",
      "kql": "let EntraSessions = EntraIdSignInEvents\n| where Timestamp > ago(1d)\n| where isnotempty(AccountObjectId) and isnotempty(SessionId)\n| summarize by AccountObjectId, SessionId;\nlet BetaSessions = AADSignInEventsBeta\n| where Timestamp > ago(1d)\n| where isnotempty(AccountObjectId) and isnotempty(SessionId)\n| summarize by AccountObjectId, SessionId;\nEntraSessions\n| join kind=inner BetaSessions on AccountObjectId, SessionId",
      "family": "entra-session",
      "otherNotes": []
    },
    {
      "id": "aad-signin-beta-device-id-alias",
      "title": "Relate the two beta sign-in device ID fields",
      "description": "Compare AadDeviceId and EntraIdDeviceId within AADSignInEventsBeta.",
      "from": {
        "table": "AADSignInEventsBeta",
        "column": "AadDeviceId",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "AADSignInEventsBeta",
        "column": "EntraIdDeviceId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Device",
        "Entra ID",
        "Field alias",
        "Beta schema"
      ],
      "guidance": "AADSignInEventsBeta is deprecated. These fields may represent aliases for the same Entra device identifier in retained beta records. Prefer current Entra sign-in schemas when available, compare non-empty values before relying on the alias, and preserve both source field names because schema aliases can vary by table version.",
      "kql": "AADSignInEventsBeta\n| where Timestamp > ago(1d)\n| where isnotempty(AadDeviceId) and isnotempty(EntraIdDeviceId)\n| extend AadHash = hash_sha256(tostring(AadDeviceId)), EntraHash = hash_sha256(tostring(EntraIdDeviceId))\n| summarize Rows = count(), Different = countif(AadHash != EntraHash)",
      "family": "entra-device",
      "otherNotes": []
    },
    {
      "id": "graph-audit-to-graph-activity-request-uri",
      "title": "Correlate Microsoft Graph requests across audit sources",
      "description": "Match the same Microsoft Graph RequestUri between GraphAPIAuditEvents and MicrosoftGraphActivityLogs.",
      "from": {
        "table": "GraphAPIAuditEvents",
        "column": "RequestUri",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "MicrosoftGraphActivityLogs",
        "column": "RequestUri",
        "timeColumn": "TimeGenerated"
      },
      "tags": [
        "Microsoft Graph",
        "Audit",
        "Request correlation"
      ],
      "guidance": "The same Microsoft Graph request may be represented in both sources. RequestUri is not globally unique, so retain request method, actor, application, and a narrow time window; normalize object IDs only for endpoint-pattern analysis, not exact event correlation.",
      "kql": "let GraphAudit = GraphAPIAuditEvents\n| where Timestamp > ago(1d)\n| where isnotempty(RequestUri)\n| project RequestUri, AccountObjectId, RequestMethod, AuditTime = Timestamp;\nlet GraphActivity = MicrosoftGraphActivityLogs\n| where TimeGenerated > ago(1d)\n| where isnotempty(RequestUri)\n| project RequestUri, UserId, RequestMethod, ActivityTime = TimeGenerated;\nGraphAudit\n| join kind=inner GraphActivity on RequestUri, RequestMethod\n| project RequestUri, RequestMethod, AccountObjectId, UserId, AuditTime, ActivityTime",
      "family": "entra-token",
      "otherNotes": []
    },
    {
      "id": "audit-target-resource-id-account-object-id",
      "title": "Enrich audit target resources with identity information",
      "description": "Match AuditLogs.TargetResources[].id to IdentityInfo.AccountObjectId when the target resource is a user object.",
      "from": {
        "table": "AuditLogs",
        "column": "TargetResources",
        "path": "[].id",
        "timeColumn": "ActivityDateTime"
      },
      "to": {
        "table": "IdentityInfo",
        "column": "AccountObjectId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Identity",
        "Audit",
        "User enrichment",
        "Nested JSON"
      ],
      "guidance": "TargetResources can contain users, groups, devices, applications, service principals, and other resource types. Use this mapping only when the target type is known to be a user and preserve tenant and target-type context. Expand the array before joining; an ID match alone does not prove the audit actor or the operation's target semantics.",
      "kql": "let LeftEvents = AuditLogs\n| where ActivityDateTime > ago(7d)\n| mv-expand TargetResource = TargetResources\n| extend JoinKey = tostring(TargetResource.id)\n| where isnotempty(JoinKey);\nlet RightEvents = IdentityInfo\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(AccountObjectId)\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on JoinKey",
      "otherNotes": [
        {
          "title": "Identifier reference",
          "text": "Expand AuditLogs.TargetResources and inspect each resource object's id before matching it to a known user object identifier.",
          "sourceLabel": "Microsoft Learn: AuditLogs",
          "sourceUrl": "https://learn.microsoft.com/en-us/azure/azure-monitor/reference/tables/auditlogs",
          "query": "AuditLogs\n| where ActivityDateTime > ago(7d)\n| mv-expand TargetResource = TargetResources\n| extend TargetResourceId = tostring(TargetResource.id)\n| where isnotempty(TargetResourceId)\n| project ActivityDateTime, OperationName, TargetResource, TargetResourceId",
          "queryLanguage": "kusto"
        }
      ],
      "family": "entra-user"
    },
    {
      "id": "cloudapp-raw-event-target-account-object-id",
      "title": "Enrich CloudAppEvents target data with identity information",
      "description": "Match CloudAppEvents.RawEventData.Target to IdentityInfo.AccountObjectId when the target value contains a user object ID.",
      "from": {
        "table": "CloudAppEvents",
        "column": "RawEventData",
        "path": "Target",
        "timeColumn": "Timestamp"
      },
      "to": {
        "table": "IdentityInfo",
        "column": "AccountObjectId",
        "timeColumn": "Timestamp"
      },
      "tags": [
        "Identity",
        "CloudAppEvents",
        "User enrichment",
        "Nested JSON"
      ],
      "guidance": "RawEventData.Target is workload- and payload-specific and may identify a user, device, application, or other resource. Use this mapping only when the event schema confirms that Target contains a user object ID. Compare non-empty identifiers exactly, and retain workload, tenant, target-type, account, and time context.",
      "kql": "let LeftEvents = CloudAppEvents\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(RawEventData.Target)\n| where isnotempty(JoinKey);\nlet RightEvents = IdentityInfo\n| where Timestamp > ago(7d)\n| extend JoinKey = tostring(AccountObjectId)\n| where isnotempty(JoinKey);\nLeftEvents\n| join kind=inner (RightEvents) on JoinKey",
      "otherNotes": [
        {
          "title": "Nested target value",
          "text": "Extract the workload-specific Target property from CloudAppEvents.RawEventData and verify its meaning before using it as an identity join key.",
          "sourceLabel": "Microsoft Learn: CloudAppEvents",
          "sourceUrl": "https://learn.microsoft.com/en-us/defender-xdr/advanced-hunting-cloudappevents-table",
          "query": "CloudAppEvents\n| where Timestamp > ago(7d)\n| extend TargetValue = tostring(RawEventData.Target)\n| where isnotempty(TargetValue)\n| project Timestamp, AccountObjectId, ActionType, Application, TargetValue",
          "queryLanguage": "kusto"
        }
      ],
      "family": "entra-user"
    }
  ],
  "families": [
    {
      "id": "entra-session",
      "label": "Session identifier",
      "short": "sid"
    },
    {
      "id": "entra-token",
      "label": "Token identifier",
      "short": "uti"
    },
    {
      "id": "aws-resource",
      "label": "AWS resource ARN",
      "short": "AwsResourceName"
    },
    {
      "id": "azure-resource",
      "label": "Azure resource ID",
      "short": "Full ARM resource ID"
    },
    {
      "id": "cve",
      "label": "CVE identifier",
      "short": "CveId"
    },
    {
      "id": "configuration",
      "label": "Configuration identifier",
      "short": "ConfigurationId"
    },
    {
      "id": "crowdstrike-agent",
      "label": "CrowdStrike agent ID",
      "short": "Customer-scoped AID"
    },
    {
      "id": "defender-alert",
      "label": "Defender alert ID",
      "short": "AlertId"
    },
    {
      "id": "defender-behavior",
      "label": "Defender behavior ID",
      "short": "BehaviorId"
    },
    {
      "id": "defender-device",
      "label": "Defender device ID",
      "short": "DeviceId"
    },
    {
      "id": "entra-device",
      "label": "Entra device ID",
      "short": "deviceid"
    },
    {
      "id": "entra-user",
      "label": "Entra user object ID",
      "short": "oid"
    },
    {
      "id": "exposure-node",
      "label": "Exposure graph node ID",
      "short": "NodeId"
    },
    {
      "id": "file-sha1",
      "label": "File SHA-1",
      "short": "SHA1"
    },
    {
      "id": "file-sha256",
      "label": "File SHA-256",
      "short": "SHA256"
    },
    {
      "id": "stix-object",
      "label": "Global STIX object ID",
      "short": "STIX ID"
    },
    {
      "id": "gcp-resource",
      "label": "Google Cloud resource ID",
      "short": "GcpFullResourceName"
    },
    {
      "id": "bookmark",
      "label": "Hunting bookmark ID",
      "short": "BookmarkId"
    },
    {
      "id": "identity-account",
      "label": "Internal identity account ID",
      "short": "AccountId"
    },
    {
      "id": "email-message",
      "label": "Microsoft 365 email message ID",
      "short": "NetworkMessageId"
    },
    {
      "id": "oauth-client",
      "label": "OAuth application / client ID",
      "short": "AppId"
    },
    {
      "id": "sentinel-alert",
      "label": "Sentinel alert ID",
      "short": "SystemAlertId"
    },
    {
      "id": "sentinel-behavior",
      "label": "Sentinel behavior ID",
      "short": "BehaviorId"
    },
    {
      "id": "sentinel-intel",
      "label": "Sentinel internal threat-intel ID",
      "short": "Id"
    },
    {
      "id": "service-principal",
      "label": "Service principal object ID",
      "short": "ServicePrincipalId"
    },
    {
      "id": "teams-message",
      "label": "Teams message ID",
      "short": "TeamsMessageId"
    },
    {
      "id": "unified-identity",
      "label": "Unified identity ID",
      "short": "IdentityId"
    },
    {
      "id": "process-start-key",
      "label": "Windows Process Start Key",
      "short": "Device-scoped"
    }
  ]
}
