How does the Long UNC path technique help in bypassing UAC by mocking trusted directories?
The Long UNC path technique allows an attacker to create a folder with spaces or dots appended, such as `\\?\C:\Windows \`, which the system interprets as a separate directory. By placing an auto-elevating executable like `winsat.exe` inside this fake folder (e.g., `c:\windows \system32\winsat.exe`), the program runs from a path that looks like `c:\windows\system32`, satisfying the trusted directory requirement for UAC bypass. This method is detailed in the original Analysis of UAC Bypass Exploitation by Mocking Trusted Directories.
Long UNCUAC bypasstrusted directoriesauto-elevateDLL hijacking