Advpack.dll

type: OSLibraries
Utility for installing software and drivers with rundll32.exe

Full path

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

Commands

  1. AWL BypassUser T1218.011

    Run local or remote script(let) code through INF file specification.

    rundll32.exe advpack.dll,LaunchINFSection {PATH:.inf},DefaultInstall_SingleUser,1,

    Execute the specified (local or remote) .wsh/.sct script with scrobj.dll in the .inf file by calling an information file directive (section name specified).

    os: Windows 10, Windows 11

    Execute: INF

  2. AWL BypassUser T1218.011

    Run local or remote script(let) code through INF file specification.

    rundll32.exe advpack.dll,LaunchINFSection {PATH:.inf},,1,

    Execute the specified (local or remote) .wsh/.sct script with scrobj.dll in the .inf file by calling an information file directive (DefaultInstall section implied).

    os: Windows 10, Windows 11

    Execute: INF

  3. ExecuteUser T1218.011

    Load a DLL payload.

    rundll32.exe advpack.dll,RegisterOCX {PATH:.dll}

    Launch a DLL payload by calling the RegisterOCX function.

    os: Windows 10, Windows 11

    Execute: DLL

  4. ExecuteUser T1218.011

    Run an executable payload.

    rundll32.exe advpack.dll,RegisterOCX {PATH:.exe}

    Launch an executable by calling the RegisterOCX function.

    os: Windows 10, Windows 11

    Execute: EXE

  5. ExecuteUser T1218.011

    Run an executable payload.

    rundll32 advpack.dll, RegisterOCX {CMD}

    Launch command line by calling the RegisterOCX function.

    os: Windows 10, Windows 11

    Execute: CMD

Detection

Code samples

Resources

acknowledgement: Jimmy (LaunchINFSection) @bohops, Fabrizio (RegisterOCX - DLL) @0rbz_, Moriarty (RegisterOCX - CMD) @moriarty_meng, Nick Carr (Threat Intel) @ItsReallyNick