Regsvcs.exe

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

Paths

  • 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

Execute

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

Use case: Execute dll file and bypass Application whitelisting

Privileges: User

regsvcs.exe {PATH:.dll}

AWL Bypass

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

Use case: Execute dll file and bypass Application whitelisting

Privileges: Local Admin

regsvcs.exe {PATH:.dll}

Detection

Resources