Shell32.dll

type: OSLibraries
Windows Shell Common Dll

Full path

c:\windows\system32\shell32.dll
c:\windows\syswow64\shell32.dll

Commands

  1. ExecuteUser T1218.011

    Load a DLL payload.

    rundll32.exe shell32.dll,Control_RunDLL {PATH_ABSOLUTE:.dll}

    Launch a DLL payload by calling the Control_RunDLL function.

    os: Windows 10, Windows 11

    Execute: DLL

  2. ExecuteUser T1218.011

    Run an executable payload.

    rundll32.exe shell32.dll,ShellExec_RunDLL {PATH:.exe}

    Launch an executable by calling the ShellExec_RunDLL function.

    os: Windows 10, Windows 11

    Execute: EXE

  3. ExecuteUser T1218.011

    Run an executable payload.

    rundll32 SHELL32.DLL,ShellExec_RunDLL {PATH:.exe} {CMD:args}

    Launch command line by calling the ShellExec_RunDLL function.

    os: Windows 10, Windows 11

    Execute: CMD

  4. ExecuteUser T1218.011

    Load a DLL/CPL payload.

    rundll32.exe shell32.dll,#44 {PATH:.dll}

    Load a DLL/CPL by calling undocumented Control_RunDLLNoFallback function.

    os: Windows 10, Windows 11

    Execute: DLL

Detection

Resources

acknowledgement: Adam (Control_RunDLL, Control_RunDLLNoFallback) @hexacorn, Pierre-Alexandre Braeken (ShellExec_RunDLL) @pabraeken, Matt Graeber (ShellExec_RunDLL) @mattifestation, Kyle Hanslovan (ShellExec_RunDLL) @KyleHanslovan