This commit is contained in:
Iftekhar Hussain 2020-07-29 20:05:49 +05:30
Родитель 5822a35708
Коммит 9ac3464878
2 изменённых файлов: 3 добавлений и 2 удалений

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

@ -19,6 +19,8 @@ query: |
// The underlying table where the data exists is the Event table.
// the timeframe and threshold can be changed below as per requirement
//
let TimeFrame = 1d;
let failedThreshold = 3;
SQLEvent
| where TimeGenerated >= ago(TimeFrame)
| where LogonResult has "failed"

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

@ -22,7 +22,6 @@ query: |
SQLEvent
| where TimeGenerated >= ago(1d)
| where Statement has "Create Login"
| parse Statement with "CREATE LOGIN [" TargetUser:string
"]" *
| parse Statement with "CREATE LOGIN [" TargetUser:string "]" *
| project TimeGenerated, Computer, Action, ClientIP, CurrentUser, DatabaseName, TargetUser, ObjectName, Statement
| extend timestamp = TimeGenerated, AccountCustomEntity = CurrentUser, IPCustomEntity = ClientIP