-
Notifications
You must be signed in to change notification settings - Fork 463
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
m365_defender: fix message ID handling #12546
Conversation
The current data flow for the fields changed here is NetworkMessageId[1] → m365_defender.event.network.message_id → email.message_id and InternetMessageId[1] → m365_defender.event.internet_message_id → email.local_id, but the definition of email.message_id is that it represents the RFC5322 Message-ID[2], corresponding to the Defender InternetMessageId value, and email.local_id[3] is the non-persistent identifier, reasonably corresponding to the Defender NetworkMessageId value. Also add m365_defender.event.internet_message_id to final remove processor. [1]https://learn.microsoft.com/en-us/defender-xdr/advanced-hunting-emailevents-table#:~:text=NetworkMessageId,sending%20email%20system [2]https://www.elastic.co/guide/en/ecs/current/ecs-email.html#field-email-message-id [3]https://www.elastic.co/guide/en/ecs/current/ecs-email.html#field-email-local-id
23baf99
to
0e6b438
Compare
🚀 Benchmarks reportTo see the full report comment with |
💚 Build Succeeded
cc @efd6 |
|
Pinging @elastic/security-service-integrations (Team:Security-Service Integrations) |
Package m365_defender - 2.21.1 containing this change is available at https://epr.elastic.co/package/m365_defender/2.21.1/ |
The current data flow for the fields changed here is NetworkMessageId[1] → m365_defender.event.network.message_id → email.message_id and InternetMessageId[1] → m365_defender.event.internet_message_id → email.local_id, but the definition of email.message_id is that it represents the RFC5322 Message-ID[2], corresponding to the Defender InternetMessageId value, and email.local_id[3] is the non-persistent identifier, reasonably corresponding to the Defender NetworkMessageId value. Also add m365_defender.event.internet_message_id to final remove processor. [1]https://learn.microsoft.com/en-us/defender-xdr/advanced-hunting-emailevents-table#:~:text=NetworkMessageId,sending%20email%20system [2]https://www.elastic.co/guide/en/ecs/current/ecs-email.html#field-email-message-id [3]https://www.elastic.co/guide/en/ecs/current/ecs-email.html#field-email-local-id
The current data flow for the fields changed here is NetworkMessageId[1] → m365_defender.event.network.message_id → email.message_id and InternetMessageId[1] → m365_defender.event.internet_message_id → email.local_id, but the definition of email.message_id is that it represents the RFC5322 Message-ID[2], corresponding to the Defender InternetMessageId value, and email.local_id[3] is the non-persistent identifier, reasonably corresponding to the Defender NetworkMessageId value. Also add m365_defender.event.internet_message_id to final remove processor. [1]https://learn.microsoft.com/en-us/defender-xdr/advanced-hunting-emailevents-table#:~:text=NetworkMessageId,sending%20email%20system [2]https://www.elastic.co/guide/en/ecs/current/ecs-email.html#field-email-message-id [3]https://www.elastic.co/guide/en/ecs/current/ecs-email.html#field-email-local-id
The current data flow for the fields changed here is NetworkMessageId[1] → m365_defender.event.network.message_id → email.message_id and InternetMessageId[1] → m365_defender.event.internet_message_id → email.local_id, but the definition of email.message_id is that it represents the RFC5322 Message-ID[2], corresponding to the Defender InternetMessageId value, and email.local_id[3] is the non-persistent identifier, reasonably corresponding to the Defender NetworkMessageId value. Also add m365_defender.event.internet_message_id to final remove processor. [1]https://learn.microsoft.com/en-us/defender-xdr/advanced-hunting-emailevents-table#:~:text=NetworkMessageId,sending%20email%20system [2]https://www.elastic.co/guide/en/ecs/current/ecs-email.html#field-email-message-id [3]https://www.elastic.co/guide/en/ecs/current/ecs-email.html#field-email-local-id
Proposed commit message
Checklist
changelog.yml
file.Author's Checklist
How to test this PR locally
Related issues
Screenshots