Regsvcs.exe

type: OSBinaries
Regsvcs and Regasm are Windows command-line utilities that are used to register .NET Component Object Model (COM) assemblies

Full path

C:\Windows\Microsoft.NET\Framework64\v2.0.50727\RegSvcs.exe
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\RegSvcs.exe
C:\Windows\Microsoft.NET\Framework\v2.0.50727\RegSvcs.exe
C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegSvcs.exe

Commands

  1. ExecuteUser T1218.009

    Execute dll file and bypass Application whitelisting

    regsvcs.exe {PATH:.dll}

    Loads the target .NET DLL file and executes the RegisterClass function.

    os: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11

    Execute: DLL (.NET)

  2. AWL BypassLocal Admin T1218.009

    Execute dll file and bypass Application whitelisting

    regsvcs.exe {PATH:.dll}

    Loads the target .NET DLL file and executes the RegisterClass function.

    os: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11

    Execute: DLL (.NET)

Detection

Resources

acknowledgement: Casey Smith @subtee