Updated IPsec detection KQL snippets to use Event table source

This commit is contained in:
Jimmy Fitzsimmons 2022-02-05 13:04:12 +11:00
Родитель e34bc6af87
Коммит 67b5a9c9a1
2 изменённых файлов: 46 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,23 @@
//KQL query to detect IPsec MM HMAC algorithm (Event table)
Event
| where EventID == 4650 or EventID == 4651
| extend ed = parse_xml(EventData).DataItem.EventData.Data
| mv-apply ed on
(
where ed['@Name'] == 'MMIntegrityAlg'
| project MMIntegrityAlg = ed['#text']
)
| extend ed = parse_xml(EventData).DataItem.EventData.Data
| mv-apply ed on
(
where ed['@Name'] == 'LocalAddress'
| project LocalAddress = ed['#text']
)
| extend ed = parse_xml(EventData).DataItem.EventData.Data
| mv-apply ed on
(
where ed['@Name'] == 'RemoteAddress'
| project RemoteAddress = ed['#text']
)
| where MMIntegrityAlg != "%%8242" and MMIntegrityAlg != "%%8243"
| project TimeGenerated, Computer, LocalAddress, RemoteAddress, MMIntegrityAlg

Просмотреть файл

@ -0,0 +1,23 @@
//KQL query to detect IPsec DH Groups with low modulus (Event table)
Event
| where EventID == 4650 or EventID == 4651
| extend ed = parse_xml(EventData).DataItem.EventData.Data
| mv-apply ed on
(
where ed['@Name'] == 'DHGroup'
| project DHGroup = ed['#text']
)
| extend ed = parse_xml(EventData).DataItem.EventData.Data
| mv-apply ed on
(
where ed['@Name'] == 'LocalAddress'
| project LocalAddress = ed['#text']
)
| extend ed = parse_xml(EventData).DataItem.EventData.Data
| mv-apply ed on
(
where ed['@Name'] == 'RemoteAddress'
| project RemoteAddress = ed['#text']
)
| where DHGroup != "%%8232" and DHGroup != "%%8248" and DHGroup != "%%8233" and DHGroup != "%%8234"
| project TimeGenerated, Computer, LocalAddress, RemoteAddress, DHGroup