UbiquitiAuditEvent
| where EventCategory =~ 'firewall'
| where DstPortNumber in ('80', '443')
| where NetworkProtocol !~ 'TCP'
| extend IPCustomEntity = SrcIpAddr
version: 1.0.0
name: Ubiquiti - Unusual traffic
severity: Medium
kind: Scheduled
queryPeriod: 1h
description: |
'Detects unusual traffic masking as HTTP(S).'
query: |
UbiquitiAuditEvent
| where EventCategory =~ 'firewall'
| where DstPortNumber in ('80', '443')
| where NetworkProtocol !~ 'TCP'
| extend IPCustomEntity = SrcIpAddr
tactics:
- InitialAccess
triggerOperator: gt
entityMappings:
- entityType: IP
fieldMappings:
- columnName: IPCustomEntity
identifier: Address
triggerThreshold: 0
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Ubiquiti UniFi/Analytic Rules/UbiquitiUnusualTraffic.yaml
requiredDataConnectors:
- connectorId: UbiquitiUnifi
dataTypes:
- UbiquitiAuditEvent
status: Available
queryFrequency: 1h
id: 31e868c0-91d3-40eb-accc-3fa73aa96f8e
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"workspace": {
"type": "String"
}
},
"resources": [
{
"id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/providers', parameters('workspace'), 'Microsoft.SecurityInsights'),'/alertRules/31e868c0-91d3-40eb-accc-3fa73aa96f8e')]",
"name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/31e868c0-91d3-40eb-accc-3fa73aa96f8e')]",
"type": "Microsoft.OperationalInsights/workspaces/providers/alertRules",
"kind": "Scheduled",
"apiVersion": "2022-11-01-preview",
"properties": {
"displayName": "Ubiquiti - Unusual traffic",
"description": "'Detects unusual traffic masking as HTTP(S).'\n",
"severity": "Medium",
"enabled": true,
"query": "UbiquitiAuditEvent\n| where EventCategory =~ 'firewall'\n| where DstPortNumber in ('80', '443')\n| where NetworkProtocol !~ 'TCP'\n| extend IPCustomEntity = SrcIpAddr\n",
"queryFrequency": "PT1H",
"queryPeriod": "PT1H",
"triggerOperator": "GreaterThan",
"triggerThreshold": 0,
"suppressionDuration": "PT1H",
"suppressionEnabled": false,
"tactics": [
"InitialAccess"
],
"alertRuleTemplateName": "31e868c0-91d3-40eb-accc-3fa73aa96f8e",
"customDetails": null,
"entityMappings": [
{
"fieldMappings": [
{
"columnName": "IPCustomEntity",
"identifier": "Address"
}
],
"entityType": "IP"
}
],
"status": "Available",
"OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Ubiquiti UniFi/Analytic Rules/UbiquitiUnusualTraffic.yaml",
"templateVersion": "1.0.0"
}
}
]
}