NachoMDM: Weaponizing Windows MDM for UAC Bypass
Score: 8/10

NachoMDM: Weaponizing Windows MDM for UAC Bypass

NachoMDM is a research project demonstrating how a malicious MDM server can achieve silent SYSTEM code execution and UAC bypass by abusing the native Windows MDM enrollment process.

Executive Summary

Research by AmberWolf reveals a novel technique called NachoMDM that weaponizes the native Windows Mobile Device Management (MDM) enrollment protocol to bypass User Account Control (UAC) and gain NT AUTHORITY\SYSTEM privileges. The attack targets users who are members of the local administrators group but running in a medium-integrity context. By leveraging the native `ms-device-enrollment` URI handler, an attacker can social engineer a victim into a single-click enrollment that connects their device to a rogue MDM server.

Technically, the exploit relies on the fact that the Windows Device Management Client (`omadmclient.exe`) runs as SYSTEM and performs software installations without triggering UAC prompts for enrolled devices. Once the handshake is complete, the rogue server pushes a malicious SyncML payload that utilizes the `EnterpriseDesktopAppManagement` Configuration Service Provider (CSP) to silently install a malicious MSI package.

While Microsoft has reviewed the report and determined it does not meet the bar for a security patch, it remains a significant risk for home users and BYOD environments. In enterprise settings, the risk is partially mitigated if users lack local admin rights or if devices are already enrolled in a legitimate MDM solution, as Windows prevents dual enrollment.

Key Details

Threat Name

NachoMDM

Affects

—

Adversary

—

Malware/Tools

NachoMDM

Report Score

8out of 10
Quality Score
Good
IOC Quality4
TTP Details9
Detection Guidance7
Enterprise Relevance8
Clarity & Structure9
Technical Depth9

Sources