Jsc.exe
Binary file used by .NET to compile JavaScript code to .exe or .dll format
Paths
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Jsc.exeC:\Windows\Microsoft.NET\Framework64\v4.0.30319\Jsc.exeC:\Windows\Microsoft.NET\Framework\v2.0.50727\Jsc.exeC:\Windows\Microsoft.NET\Framework64\v2.0.50727\Jsc.exe
Commands
Compile
Use jsc.exe to compile JavaScript code stored in the provided .JS file and generate a .EXE file with the same name.
Use case: Compile attacker code on system. Bypass defensive counter measures.
Privileges: User
jsc.exe {PATH:.js}
Compile
Use jsc.exe to compile JavaScript code stored in the .JS file and generate a DLL file with the same name.
Use case: Compile attacker code on system. Bypass defensive counter measures.
Privileges: User
jsc.exe /t:library {PATH:.js}
Detection
- Sigma: https://github.com/SigmaHQ/sigma/blob/35a7244c62820fbc5a832e50b1e224ac3a1935da/rules/windows/process_creation/proc_creation_win_lolbin_jsc.yml
- IOC: Jsc.exe should normally not run a system unless it is used for development.