vbc.exe

type: OSBinaries
Binary file used for compile vbs code

Full path

C:\Windows\Microsoft.NET\Framework\v4.0.30319\vbc.exe
C:\Windows\Microsoft.NET\Framework\v3.5\vbc.exe
C:\Windows\Microsoft.NET\Framework\v2.0.50727\vbc.exe
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\vbc.exe
C:\Windows\Microsoft.NET\Framework64\v3.5\vbc.exe
C:\Windows\Microsoft.NET\Framework64\v2.0.50727\vbc.exe

Commands

  1. CompileUser T1127

    Compile attacker code on system. Bypass defensive counter measures.

    vbc.exe /target:exe {PATH_ABSOLUTE:.vb}

    Binary file used by .NET to compile Visual Basic code to an executable.

    os: Windows 7, Windows 10, Windows 11

  2. CompileUser T1127

    Compile attacker code on system. Bypass defensive counter measures.

    vbc -reference:Microsoft.VisualBasic.dll {PATH_ABSOLUTE:.vb}

    Binary file used by .NET to compile Visual Basic code to an executable.

    os: Windows 7, Windows 10, Windows 11

Detection

acknowledgement: Lior Adar, Hai Vaknin(Lux)