Update HostExportingMailboxAndRemovingExport.yaml

Adding Event filter in that was missing
This commit is contained in:
Shain 2021-01-21 10:39:58 -08:00 коммит произвёл GitHub
Родитель e2773f9281
Коммит 0bab07aed0
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 3 добавлений и 1 удалений

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

@ -21,10 +21,12 @@ query: |
// Adjust the timeframe to change the window events need to occur within to alert
let timeframe = 1h;
SecurityEvent
| where EventID == 4688
| where Process in~ ("powershell.exe", "cmd.exe")
| where CommandLine contains 'New-MailboxExportRequest'
| summarize by Computer, timekey = bin(TimeGenerated, timeframe), CommandLine, SubjectUserName
| join kind=inner (SecurityEvent
| where EventID == 4688
| where Process in~ ("powershell.exe", "cmd.exe")
| where CommandLine contains 'Remove-MailboxExportRequest'
| summarize by Computer, timekey = bin(TimeGenerated, timeframe), CommandLine, SubjectUserName) on Computer, timekey, SubjectUserName