-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAZT601-5.json
46 lines (46 loc) · 1.39 KB
/
AZT601-5.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"Rule Name": {
"defaultValue": "AZT601.5 - Steal Managed Identity JsonWebToken - Automation Account Runbook",
"type": "String"
}
},
"variables": {},
"resources": [
{
"type": "microsoft.insights/scheduledqueryrules",
"apiVersion": "2022-06-15",
"name": "[parameters('Rule Name')]",
"location": "centralus",
"properties": {
"displayName": "[parameters('Rule Name')]",
"description": "Will alert whenever a JWT is gathered via an AA Runbook",
"severity": 2,
"enabled": true,
"evaluationFrequency": "PT15M",
"Scopes": [
"[subscription().id]"
],
"windowSize": "PT15M",
"criteria": {
"allOf": [
{
"query": "AzureDiagnostics | where ResourceProvider == 'MICROSOFT.AUTOMATION' and ResultDescription has 'access_token'",
"timeAggregation": "Count",
"dimensions": [],
"operator": "GreaterThanOrEqual",
"threshold": 1,
"failingPeriods": {
"numberOfEvaluationPeriods": 1,
"minFailingPeriodsToAlert": 1
}
}
]
},
"autoMitigate": false
}
}
]
}