Hi everyone,
I've configured the Wazuh integration with Office 365.
When I create, delete, or update a group, rule 91539 is triggered.
The relevant part about which group was changed is as follows:
"Target": [
{
"Type": 2,
"ID": "Group_abcd"
},
{
"Type": 2,
"ID": "abcdefg"
},
{
"Type": 2,
"ID": "Group"
},
{
"Type": 1,
"ID": "testwazuh"
}
],
"RecordType": "8",
"Version": "1",
"ModifiedProperties": [
{
"OldValue": "[]",
"NewValue": "[\r\n \"testwazuh\"\r\n]",
"Name": "Description"
},
{
"OldValue": "[]",
"NewValue": "[\r\n \"testwazuh\"\r\n]",
"Name": "DisplayName"
},
{
"OldValue": "[]",
"NewValue": "[\r\n \"Unified\"\r\n]",
"Name": "GroupType"
},
{
"OldValue": "[]",
"NewValue": "[\r\n false\r\n]",
"Name": "IsAssignableToRole"
},
{
"OldValue": "[]",
"NewValue": "[\r\n true\r\n]",
"Name": "IsPublic"
},
{
"OldValue": "[]",
"NewValue": "[\r\n \"test...@domain.com\"\r\n]",
"Name": "Mail"
},
{
"OldValue": "[]",
"NewValue": "[\r\n true\r\n]",
"Name": "MailEnabled"
},
{
"OldValue": "[]",
"NewValue": "[\r\n \"testwazuh\"\r\n]",
"Name": "MailNickname"
},
[...]
I would like to send some alerts, including this information, to Microsoft Teams, but I need to specify which fields will be in the alert.
I don't have any field that contains the group name separately.
Is there any way to capture the group name and put it in another field, or extract it for Teams?
Or will I need to extract this information using a custom decoder?