Fix EmailEntity_PaloAlto join condition: DestinationUserID → DestinationUserName#14006
Draft
Fix EmailEntity_PaloAlto join condition: DestinationUserID → DestinationUserName#14006
Conversation
…nstead of DestinationUserID Agent-Logs-Url: https://github.com/Azure/Azure-Sentinel/sessions/2de15fe4-9af7-42df-8bfb-34c9f37993e5 Co-authored-by: v-sabiraj <94349919+v-sabiraj@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Clarify join condition in EmailEntity_PaloAlto analytic rule
Fix EmailEntity_PaloAlto join condition: DestinationUserID → DestinationUserName
Apr 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In PaloAlto CEF logs,
DestinationUserIDis a system-level account identifier (e.g.1761761851203431902@playhop.com) — not a real email address — whileDestinationUserNameholds the actual user email. The joinEmailSenderAddress == DestinationUserIDcould produce missed matches or false negatives when ID values don't correspond to real sender addresses.Change(s):
DestinationUserIDreferences withDestinationUserNamein both rule variants:Solutions/Threat Intelligence/Analytic Rules/EmailEntity_PaloAlto.yamlSolutions/Threat Intelligence (NEW)/Analytic Rules/EmailEntity_PaloAlto.yamlisnotempty()filter,extend tolower(),where matches regex, join condition,summarize by,project, andentityMappingsReason for Change(s):
DestinationUserNameis the semantically correct CEF field for the user's email address in PaloAlto WildFire SMTP/POP3 logs;DestinationUserIDis an opaque system identifierVersion Updated:
Solutions/Threat Intelligence/Analytic Rules/EmailEntity_PaloAlto.yaml: 1.2.6 → 1.2.7Solutions/Threat Intelligence (NEW)/Analytic Rules/EmailEntity_PaloAlto.yaml: 1.2.9 → 1.2.10Testing Completed:
DestinationUserIDreferences in either fileChecked that the validations are passing and have addressed any issues that are present: