Analytic rule catalog
API - JWT validation
Back
| Id | bbd163f4-1f56-434f-9c23-b06713c119c2 |
| Rulename | API - JWT validation |
| Description | 42Crunch API protection against JWT validation |
| Severity | Low |
| Tactics | InitialAccess CredentialAccess |
| Techniques | T1190 T1528 |
| Required data connectors | 42CrunchAPIProtection FortyTwoCrunchAPIProtection |
| Kind | Scheduled |
| Query frequency | 5m |
| Query period | 5m |
| Trigger threshold | 0 |
| Trigger operator | gt |
| Source Uri | https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/42Crunch%20API%20Protection/Analytic%20Rules/APIJWTValidation.yaml |
| Version | 3.0.1 |
| Arm template | bbd163f4-1f56-434f-9c23-b06713c119c2.json |
FortyTwoCrunchAPIProtection
| where TimeGenerated >= ago(5m)
| where ErrorMessage has "missing [\"x-access-token\"]"
| project-away NonBlockingMode, SourcePort, DestinationPort, Query, ApiId, ResponseHeader, RequestHeader, Errors, EventType, Uuid
| sort by TimeGenerated desc
entityMappings:
- fieldMappings:
- columnName: SourceIp
identifier: Address
entityType: IP
- fieldMappings:
- columnName: Hostname
identifier: HostName
entityType: Host
- fieldMappings:
- columnName: InstanceName
identifier: FullName
entityType: Account
requiredDataConnectors:
- dataTypes:
- FortyTwoCrunchAPIProtection
connectorId: 42CrunchAPIProtection
- dataTypes:
- FortyTwoCrunchAPIProtection
connectorId: FortyTwoCrunchAPIProtection
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/42Crunch%20API%20Protection/Analytic%20Rules/APIJWTValidation.yaml
version: 3.0.1
status: Available
relevantTechniques:
- T1190
- T1528
query: |
FortyTwoCrunchAPIProtection
| where TimeGenerated >= ago(5m)
| where ErrorMessage has "missing [\"x-access-token\"]"
| project-away NonBlockingMode, SourcePort, DestinationPort, Query, ApiId, ResponseHeader, RequestHeader, Errors, EventType, Uuid
| sort by TimeGenerated desc
tactics:
- InitialAccess
- CredentialAccess
queryFrequency: 5m
id: bbd163f4-1f56-434f-9c23-b06713c119c2
triggerThreshold: 0
triggerOperator: gt
name: API - JWT validation
queryPeriod: 5m
severity: Low
customDetails:
kind: Scheduled
eventGroupingSettings:
aggregationKind: SingleAlert
description: |
'42Crunch API protection against JWT validation'
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"workspace": {
"type": "String"
}
},
"resources": [
{
"apiVersion": "2024-01-01-preview",
"id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/providers', parameters('workspace'), 'Microsoft.SecurityInsights'),'/alertRules/bbd163f4-1f56-434f-9c23-b06713c119c2')]",
"kind": "Scheduled",
"name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/bbd163f4-1f56-434f-9c23-b06713c119c2')]",
"properties": {
"alertRuleTemplateName": "bbd163f4-1f56-434f-9c23-b06713c119c2",
"customDetails": null,
"description": "'42Crunch API protection against JWT validation'\n",
"displayName": "API - JWT validation",
"enabled": true,
"entityMappings": [
{
"entityType": "IP",
"fieldMappings": [
{
"columnName": "SourceIp",
"identifier": "Address"
}
]
},
{
"entityType": "Host",
"fieldMappings": [
{
"columnName": "Hostname",
"identifier": "HostName"
}
]
},
{
"entityType": "Account",
"fieldMappings": [
{
"columnName": "InstanceName",
"identifier": "FullName"
}
]
}
],
"eventGroupingSettings": {
"aggregationKind": "SingleAlert"
},
"OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/42Crunch%20API%20Protection/Analytic%20Rules/APIJWTValidation.yaml",
"query": "FortyTwoCrunchAPIProtection\n| where TimeGenerated >= ago(5m) \n| where ErrorMessage has \"missing [\\\"x-access-token\\\"]\" \n| project-away NonBlockingMode, SourcePort, DestinationPort, Query, ApiId, ResponseHeader, RequestHeader, Errors, EventType, Uuid \n| sort by TimeGenerated desc \n",
"queryFrequency": "PT5M",
"queryPeriod": "PT5M",
"severity": "Low",
"status": "Available",
"subTechniques": [],
"suppressionDuration": "PT1H",
"suppressionEnabled": false,
"tactics": [
"CredentialAccess",
"InitialAccess"
],
"techniques": [
"T1190",
"T1528"
],
"templateVersion": "3.0.1",
"triggerOperator": "GreaterThan",
"triggerThreshold": 0
},
"type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
}
]
}