Analytic rule catalog
UniFi Site Manager Firmware version diversity within a model
Back
| Id | 2b0ca272-72fd-c2c2-6728-7f287c22e275 |
| Rulename | UniFi Site Manager: Firmware version diversity within a model |
| Description | Models running multiple distinct firmware versions across the estate. Indicates inconsistent patch management - some units are forgotten or excluded from update windows. |
| Tactics | Reconnaissance |
| Techniques | T1595 |
| Required data connectors | UniFiSiteManagerConnectorDefinition |
| Kind | HuntingQuery |
| Source Uri | https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/UniFi%20Site%20Manager%20%28CCF%29/Hunting%20Queries/UniFiCloudFirmwareVersionDiversity.yaml |
| Version | 1.0.0 |
| Arm template | 2b0ca272-72fd-c2c2-6728-7f287c22e275.json |
Unifi_SiteManager_Devices_CL
| where TimeGenerated > ago(2h)
| summarize arg_max(TimeGenerated, *) by Id
| summarize Devices = count(),
SampleDevice = take_any(Name),
['Distinct versions'] = make_set(Version),
['Up-to-date count'] = countif(FirmwareStatus =~ "upToDate")
by Model = Model
| extend ['Version count'] = array_length(['Distinct versions'])
| where ['Version count'] > 1
| order by ['Version count'] desc, Devices desc
id: 2b0ca272-72fd-c2c2-6728-7f287c22e275
requiredDataConnectors:
- connectorId: UniFiSiteManagerConnectorDefinition
dataTypes:
- Unifi_SiteManager_Devices_CL
description: |
Models running multiple distinct firmware versions across the estate. Indicates inconsistent patch management - some units are forgotten or excluded from update windows.
name: 'UniFi Site Manager: Firmware version diversity within a model'
version: 1.0.0
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/UniFi%20Site%20Manager%20%28CCF%29/Hunting%20Queries/UniFiCloudFirmwareVersionDiversity.yaml
entityMappings:
- fieldMappings:
- identifier: HostName
columnName: SampleDevice
entityType: Host
tactics:
- Reconnaissance
kind: HuntingQuery
relevantTechniques:
- T1595
query: |
Unifi_SiteManager_Devices_CL
| where TimeGenerated > ago(2h)
| summarize arg_max(TimeGenerated, *) by Id
| summarize Devices = count(),
SampleDevice = take_any(Name),
['Distinct versions'] = make_set(Version),
['Up-to-date count'] = countif(FirmwareStatus =~ "upToDate")
by Model = Model
| extend ['Version count'] = array_length(['Distinct versions'])
| where ['Version count'] > 1
| order by ['Version count'] desc, Devices desc
{
"$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/2b0ca272-72fd-c2c2-6728-7f287c22e275')]",
"kind": "Huntingquery",
"name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/2b0ca272-72fd-c2c2-6728-7f287c22e275')]",
"properties": {
"alertRuleTemplateName": "2b0ca272-72fd-c2c2-6728-7f287c22e275",
"customDetails": null,
"description": "Models running multiple distinct firmware versions across the estate. Indicates inconsistent patch management - some units are forgotten or excluded from update windows.\n",
"displayName": "UniFi Site Manager: Firmware version diversity within a model",
"enabled": true,
"entityMappings": [
{
"entityType": "Host",
"fieldMappings": [
{
"columnName": "SampleDevice",
"identifier": "HostName"
}
]
}
],
"OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/UniFi%20Site%20Manager%20%28CCF%29/Hunting%20Queries/UniFiCloudFirmwareVersionDiversity.yaml",
"query": "Unifi_SiteManager_Devices_CL\n| where TimeGenerated > ago(2h)\n| summarize arg_max(TimeGenerated, *) by Id\n| summarize Devices = count(),\n SampleDevice = take_any(Name),\n ['Distinct versions'] = make_set(Version),\n ['Up-to-date count'] = countif(FirmwareStatus =~ \"upToDate\")\n by Model = Model\n| extend ['Version count'] = array_length(['Distinct versions'])\n| where ['Version count'] > 1\n| order by ['Version count'] desc, Devices desc\n",
"subTechniques": [],
"suppressionDuration": "PT1H",
"suppressionEnabled": false,
"tactics": [
"Reconnaissance"
],
"techniques": [
"T1595"
],
"templateVersion": "1.0.0"
},
"type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
}
]
}