← Back to SOC feed Coverage →

devices_with_vuln_and_users_received_payload

kql MEDIUM Azure-Sentinel
EmailAttachmentInfoIdentityInfo
exploithuntingmicrosoftofficial
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-06-02T11:00:00Z · Confidence: medium

Hunt Hypothesis

Devices with known vulnerabilities that have been accessed by users may indicate potential exploitation vectors for adversaries. SOC teams should proactively hunt for this behavior in Azure Sentinel to identify and mitigate risks before a compromise occurs.

KQL Query

let all_computers_with_vlcvln=
DeviceTvmSoftwareVulnerabilities 
| where SoftwareName contains "vlc" 
| summarize makelist(DeviceName, 200);
let all_affected_users=
DeviceInfo
| where DeviceName in (all_computers_with_vlcvln)
| mvexpand todynamic(LoggedOnUsers)
| extend ParsedFields = parsejson(LoggedOnUsers)
| project UserName = ParsedFields.UserName
| summarize makelist(tolower(UserName), 200);
let all_email_addresses_aff_users=
IdentityInfo
| where tolower(AccountName) in (all_affected_users)
| summarize makelist(tolower(MailAddress), 200);
EmailAttachmentInfo
| where FileName contains ".mkv"
| where tolower(RecipientEmailAddress) in (all_email_addresses_aff_users)

Analytic Rule Definition

id: fbcb7ff3-0d5a-4565-9caa-fc454138081f
name: devices_with_vuln_and_users_received_payload
description: |
  // Author: jan geisbauer
  // @janvonkirchheim
  // ------------------------
  // 1.	A list of all devices that have this vulnerability
  // 2.	A list of all users that uses those devices
  // 3.	If these users received .mkv files recently
requiredDataConnectors:
- connectorId: MicrosoftThreatProtection
  dataTypes:
  - DeviceTvmSoftwareVulnerabilities
  - DeviceInfo
  - IdentityInfo
  - EmailAttachmentInfo
query: |
  let all_computers_with_vlcvln=
  DeviceTvmSoftwareVulnerabilities 
  | where SoftwareName contains "vlc" 
  | summarize makelist(DeviceName, 200);
  let all_affected_users=
  DeviceInfo
  | where DeviceName in (all_computers_with_vlcvln)
  | mvexpand todynamic(LoggedOnUsers)
  | extend ParsedFields = parsejson(LoggedOnUsers)
  | project UserName = ParsedFields.UserName
  | summarize makelist(tolower(UserName), 200);
  let all_email_addresses_aff_users=
  IdentityInfo
  | where tolower(AccountName) in (all_affected_users)
  | summarize makelist(tolower(MailAddress), 200);
  EmailAttachmentInfo
  | where FileName contains ".mkv"
  | where tolower(RecipientEmailAddress) in (all_email_addresses_aff_users)
version: 1.0.0

Required Data Sources

Sentinel TableNotes
EmailAttachmentInfoEnsure this data connector is enabled
IdentityInfoEnsure this data connector is enabled

References

False Positive Guidance

Original source: https://github.com/Azure/Azure-Sentinel/blob/main/Hunting Queries/Microsoft 365 Defender/TVM/devices_with_vuln_and_users_received_payload.yaml