windows community v1.0.0

ndfapi.dll

ndfapi.dll — Sideloading, Environment Variable hijacking (Microsoft)

📋 Live Preview
ndfapi.dll
ndfapi.dll

Sandbox: execFile · Timeout: 30s

Capabilities

security.defenseevasion.dll-hijack

Documentation

examples:

  • description: "Place malicious ndfapi.dll in the search order location" command: "copy malicious.dll "%SYSTEM32%\ndfapi.dll""
  • description: "Execute the vulnerable binary to trigger the hijack" command: ""%SYSTEM32%\msra.exe""

ndfapi.dll

Vendor: Microsoft

Expected Location: %SYSTEM32%

Vulnerable Executables:

  • %SYSTEM32%\msra.exe (Sideloading)
  • %SYSTEM32%\netsh.exe (Sideloading)
  • %SYSTEM32%\dpiscaling.exe (Environment Variable)
  • %SYSTEM32%\slui.exe (Environment Variable)

Acknowledgement: Wietze

References