← Back to SOC feed Coverage →

Commonality of Operating Systems

kql MEDIUM Azure-Sentinel
backdoorhuntingmicrosoftofficial
This rule was pulled from an open-source repository and enriched with AI. Validate in a test environment before deploying to production.
View original rule at Azure-Sentinel →
Retrieved: 2026-05-08T23:00:01Z · Confidence: medium

Hunt Hypothesis

Adversaries may target specific operating systems by exploiting known vulnerabilities or deploying malware tailored to those environments. SOC teams should proactively hunt for this behavior to identify potential attack vectors and prioritize systems that may be at higher risk based on observed OS distribution patterns.

KQL Query

//
DeviceInfo
| summarize arg_max(Timestamp, *) by DeviceId
| summarize dcount(DeviceId) by OSDistribution

Analytic Rule Definition

id: 5a540d69-a196-4e1f-9029-df8a100aa4a7
name: Commonality of Operating Systems
description: |
  This query provides the commonality of operating systems seen in the inventory
requiredDataConnectors:
- connectorId: MicrosoftThreatProtection
  dataTypes:
  - DeviceInfo
tactics:
- Resource Development
relevantTechniques: []
query: |
  //
  DeviceInfo
  | summarize arg_max(Timestamp, *) by DeviceId
  | summarize dcount(DeviceId) by OSDistribution

MITRE ATT&CK Context

References

False Positive Guidance

Original source: https://github.com/Azure/Azure-Sentinel/blob/main/Hunting Queries/Microsoft 365 Defender/Device Inventory/Commonality of Operating Systems.yaml