Ubiquiti - Unusual traffic
Id | 31e868c0-91d3-40eb-accc-3fa73aa96f8e |
Rulename | Ubiquiti - Unusual traffic |
Description | Detects unusual traffic masking as HTTP(S). |
Severity | Medium |
Tactics | CommandAndControl |
Techniques | T1573 |
Required data connectors | CustomLogsAma UbiquitiUnifi |
Kind | Scheduled |
Query frequency | 1h |
Query period | 1h |
Trigger threshold | 0 |
Trigger operator | gt |
Source Uri | https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Ubiquiti UniFi/Analytic Rules/UbiquitiUnusualTraffic.yaml |
Version | 1.0.2 |
Arm template | 31e868c0-91d3-40eb-accc-3fa73aa96f8e.json |
UbiquitiAuditEvent
| where EventCategory =~ 'firewall'
| where DstPortNumber in ('80', '443')
| where NetworkProtocol !~ 'TCP'
| extend IPCustomEntity = SrcIpAddr
relevantTechniques:
- T1573
name: Ubiquiti - Unusual traffic
requiredDataConnectors:
- dataTypes:
- UbiquitiAuditEvent
connectorId: UbiquitiUnifi
- dataTypes:
- Ubiquiti_CL
connectorId: CustomLogsAma
entityMappings:
- fieldMappings:
- identifier: Address
columnName: IPCustomEntity
entityType: IP
triggerThreshold: 0
id: 31e868c0-91d3-40eb-accc-3fa73aa96f8e
tactics:
- CommandAndControl
version: 1.0.2
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Ubiquiti UniFi/Analytic Rules/UbiquitiUnusualTraffic.yaml
queryPeriod: 1h
kind: Scheduled
queryFrequency: 1h
severity: Medium
status: Available
description: |
'Detects unusual traffic masking as HTTP(S).'
query: |
UbiquitiAuditEvent
| where EventCategory =~ 'firewall'
| where DstPortNumber in ('80', '443')
| where NetworkProtocol !~ 'TCP'
| extend IPCustomEntity = SrcIpAddr
triggerOperator: gt
{
"$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/31e868c0-91d3-40eb-accc-3fa73aa96f8e')]",
"kind": "Scheduled",
"name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/31e868c0-91d3-40eb-accc-3fa73aa96f8e')]",
"properties": {
"alertRuleTemplateName": "31e868c0-91d3-40eb-accc-3fa73aa96f8e",
"customDetails": null,
"description": "'Detects unusual traffic masking as HTTP(S).'\n",
"displayName": "Ubiquiti - Unusual traffic",
"enabled": true,
"entityMappings": [
{
"entityType": "IP",
"fieldMappings": [
{
"columnName": "IPCustomEntity",
"identifier": "Address"
}
]
}
],
"OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Ubiquiti UniFi/Analytic Rules/UbiquitiUnusualTraffic.yaml",
"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",
"severity": "Medium",
"status": "Available",
"subTechniques": [],
"suppressionDuration": "PT1H",
"suppressionEnabled": false,
"tactics": [
"CommandAndControl"
],
"techniques": [
"T1573"
],
"templateVersion": "1.0.2",
"triggerOperator": "GreaterThan",
"triggerThreshold": 0
},
"type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
}
]
}