Skip to content

Commit eac1431

Browse files
[M365 Defender] Improve response action support in event dataset. (#13769)
This PR copies the value, when present, from m365_defender.event.device.id to cloud.instance.id. The value will not be copied if the device ID is null or cloud.instance.id is already set. Setting this field addresses one of the solutions in elastic/kibana#218756 The M365 Defender response action is available on alerts with the following fields: microsoft_defender_endpoint: [ 'm365_defender.alerts.entities.deviceId', 'm365_defender.alerts.devices.mdatpDeviceId', 'm365_defender.incident.alert.evidence.mde_device_id', 'cloud.instance.id', ], Currently, any alert generated from the m365_defender.event dataset will not have a response action available. Once cloud.instance.id is set, it is possible to isolate/release a host via the connector. The alternative/supplemental solution, adding m365_defender.event.device.id to the constant, microsoft_defender_endpoint would require an update to Kibana, making the approach here a more immediate fix.
1 parent 1ad4716 commit eac1431

File tree

7 files changed

+301
-3
lines changed

7 files changed

+301
-3
lines changed

packages/m365_defender/changelog.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# newer versions go on top
2+
- version: "3.4.0"
3+
changes:
4+
- description: Set `cloud.instance.id` in event dataset.
5+
type: enhancement
6+
link: https://github.com/elastic/integrations/pull/13769
27
- version: "3.3.1"
38
changes:
49
- description: Fix default request trace enabled behavior.

packages/m365_defender/data_stream/event/_dev/test/pipeline/test-alert.log-expected.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
"expected": [
33
{
44
"@timestamp": "2022-11-08T08:41:56.595Z",
5+
"cloud": {
6+
"instance": {
7+
"id": "08f8d2adebd88b1b7e509fcca55a665831912345"
8+
}
9+
},
510
"ecs": {
611
"version": "8.11.0"
712
},
@@ -267,6 +272,11 @@
267272
},
268273
{
269274
"@timestamp": "2024-09-10T03:59:59.294Z",
275+
"cloud": {
276+
"instance": {
277+
"id": "debfb10830a9dacd8800e9e3bb7169248a361653"
278+
}
279+
},
270280
"ecs": {
271281
"version": "8.11.0"
272282
},
@@ -518,6 +528,11 @@
518528
},
519529
{
520530
"@timestamp": "2024-09-10T14:20:33.665Z",
531+
"cloud": {
532+
"instance": {
533+
"id": "ddddd"
534+
}
535+
},
521536
"ecs": {
522537
"version": "8.11.0"
523538
},

0 commit comments

Comments
 (0)