mirror of
https://github.com/marcredhat/kql
synced 2026-06-10 22:11:18 +00:00
Initial commit: KQL ↔ SDL PowerQuery proof of equivalence
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
let SensitiveOps = dynamic([
|
||||
"microsoft.compute/snapshots/write",
|
||||
"microsoft.network/networksecuritygroups/write",
|
||||
"microsoft.storage/storageaccounts/listkeys/action"]);
|
||||
let threshold = 5;
|
||||
AzureActivity
|
||||
| where OperationNameValue in~ (SensitiveOps)
|
||||
| where ActivityStatusValue =~ "Success"
|
||||
| where TimeGenerated >= ago(1d)
|
||||
| summarize ActivityCount = count() by CallerIpAddress, Caller, OperationNameValue
|
||||
| where ActivityCount >= threshold
|
||||
Reference in New Issue
Block a user