Query Details
# Identify network shares with write permissions set to Everyone in highly exposed devices
## Description
The following query leverages DeviceTvmSecureConfigurationAssessment which is available at the Microsoft Defender Vulnerability Management (MDVM) add-on license. Results provided include network shares with write permissions set to Everyone in highly exposed devices.
### Microsoft Defender XDR
```
let DevVulNetShares = DeviceTvmSecureConfigurationAssessment
| where ConfigurationId has "scid-4001"
| where IsCompliant == "0"
| where IsApplicable == "1"
| extend Folder = parse_json(Context)[0][0]
| extend Path = parse_json(Context)[0][1]
| project DeviceId, DeviceName, OSPlatform, Folder, Path;
let DeviceInformation = DeviceInfo
| where ExposureLevel has "High"
| distinct DeviceId, ExposureLevel;
union DevVulNetShares, DeviceInformation
| summarize by DeviceId
| join ( DevVulNetShares ) on DeviceId
| join kind=leftouter ( DeviceInformation ) on DeviceId
| project DeviceId,
DeviceName,
OSPlatform,
Folder,
Path
```
### Versioning
| Version | Date | Comments |
| ------------- |---------------| ---------------------------------------|
| 1.0 | 06/10/2024 | Initial publish |
This query is designed to identify network shares on devices that are highly exposed and have write permissions set to "Everyone." It uses data from Microsoft Defender Vulnerability Management to find these network shares and combines it with device information to highlight those with a high exposure level. Here's a breakdown of what the query does:
Data Source: It uses the DeviceTvmSecureConfigurationAssessment table, which contains security configuration assessments for devices.
Filter Criteria:
IsCompliant == "0") and applicable (IsApplicable == "1").Data Extraction:
Device Information:
DeviceInfo table, focusing on devices with a high exposure level.Combining Data:
Output:
In summary, this query helps security teams identify potentially vulnerable network shares on devices that are at high risk, allowing them to take corrective actions.

Michalis Michalos
Released: October 6, 2024
Tables
Keywords
Operators