Microsoft Sentinel Analytic Rules
cloudbrothers.infoAzure Sentinel RepoToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeBack to homepage

Ubiquiti - Unusual traffic

Back
Id31e868c0-91d3-40eb-accc-3fa73aa96f8e
RulenameUbiquiti - Unusual traffic
DescriptionDetects unusual traffic masking as HTTP(S).
SeverityMedium
TacticsInitialAccess
Required data connectorsUbiquitiUnifi
KindScheduled
Query frequency1h
Query period1h
Trigger threshold0
Trigger operatorgt
Source Urihttps://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Ubiquiti UniFi/Analytic Rules/UbiquitiUnusualTraffic.yaml
Version1.0.0
Arm template31e868c0-91d3-40eb-accc-3fa73aa96f8e.json
Deploy To Azure
UbiquitiAuditEvent
| where EventCategory =~ 'firewall'
| where DstPortNumber in ('80', '443')
| where NetworkProtocol !~ 'TCP'
| extend IPCustomEntity = SrcIpAddr
queryFrequency: 1h
triggerThreshold: 0
name: Ubiquiti - Unusual traffic
version: 1.0.0
id: 31e868c0-91d3-40eb-accc-3fa73aa96f8e
status: Available
tactics:
- InitialAccess
entityMappings:
- entityType: IP
  fieldMappings:
  - columnName: IPCustomEntity
    identifier: Address
queryPeriod: 1h
description: |
    'Detects unusual traffic masking as HTTP(S).'
requiredDataConnectors:
- connectorId: UbiquitiUnifi
  dataTypes:
  - UbiquitiAuditEvent
query: |
  UbiquitiAuditEvent
  | where EventCategory =~ 'firewall'
  | where DstPortNumber in ('80', '443')
  | where NetworkProtocol !~ 'TCP'
  | extend IPCustomEntity = SrcIpAddr  
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Ubiquiti UniFi/Analytic Rules/UbiquitiUnusualTraffic.yaml
triggerOperator: gt
kind: Scheduled
severity: Medium
{
  "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
    "workspace": {
      "type": "String"
    }
  },
  "resources": [
    {
      "apiVersion": "2023-02-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",
        "suppressionDuration": "PT1H",
        "suppressionEnabled": false,
        "tactics": [
          "InitialAccess"
        ],
        "templateVersion": "1.0.0",
        "triggerOperator": "GreaterThan",
        "triggerThreshold": 0
      },
      "type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
    }
  ]
}