Back to Blog
Red Teaming May 13, 2026 201 views

Elevated Reverse Shell Using DLL Hijacking & Mock Directories

DLL Hijacking combined with Mock Directories bypasses Windows UAC to deliver a high-integrity reverse shell, even with Windows Defender active. Full exploitation walkthrough and mitigation guidance.

By Usman Sikander, Security Researcher, Cytomate

Dynamic Link Libraries (DLLs) are essential components containing code and procedures for Windows programs. DLL hijacking exploits how certain Windows applications search for and load DLLs by placing malicious versions in directories that get searched before legitimate ones.

The UAC Bypass Technique

User Account Control (UAC), introduced in Windows Vista, provides security protections but includes built-in exceptions allowing trusted system DLLs to auto-elevate without prompts. Mock directories, folders with trailing spaces like "C:\Windows \System32", can be created via command line to exploit this vulnerability.

Exploitation Process (4 Steps)

  • Malicious DLL Creation, Using msfvenom to generate CSharp shellcode for reverse shell connections
  • Mock folder setup, Creating directories and copying legitimate binaries alongside malicious DLLs
  • Administrative shell acquisition, Executing computerdefaults.exe to load the hijacked DLL (propsys.dll)
  • Post-exploitation, Credential dumping with Mimikatz, lateral movement
The technique leverages computerdefaults.exe, which loads propsys.dll, renamed as the malicious payload, achieving high-integrity shell access even with Windows Defender active.

Why This Works

computerdefaults.exe is a trusted Windows binary that auto-elevates without UAC prompts. When placed in a mock directory, Windows Defender treats the execution context as trusted, allowing the malicious DLL to load without generating alerts.

Mitigation

Set UAC to "Always Notify" to display prompts before high-risk applications execute. This prevents auto-elevation of binaries like computerdefaults.exe and blocks the attack chain at the privilege escalation stage.

Endpoint Detection and Response (EDR) solutions should monitor for DLL loading from non-standard directory paths and alert on mock directory creation (directories containing trailing spaces).

Originally published on cytomate.net

More from the Blog

Threat Intelligence Nov 29, 2026

The Build-Pipeline Backdoor: Inside the NullReceiver Supply-Chain Campaign

Read More
Deception Nov 29, 2026

Lying to the Machines: The Secret Weapon Against AI Attacks

Read More
Agentic Security Nov 24, 2026

Your AI Coding Agents Need an EDR Too: Introducing cADRe

Read More