LOLBAS. GitHub
LIVING OFF THE LAND / OS BINARIES

Jsc.exe

View source

Binary file used by .NET to compile JavaScript code to .exe or .dll format

02COMMAND EXAMPLES
01ATT&CK TECHNIQUES
01DETECTION RESOURCES
01CAPABILITIES
01 / TRADECRAFT

Command reference

2 examples

Compile2

EXAMPLE 01T1127

Use jsc.exe to compile JavaScript code stored in the provided .JS file and generate a .EXE file with the same name.

COMMAND
jsc.exe {PATH:.js}
USE CASE
Compile attacker code on system. Bypass defensive counter measures.
PRIVILEGES
User
OPERATING SYSTEM
Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
Execute · JScript
EXAMPLE 02T1127

Use jsc.exe to compile JavaScript code stored in the .JS file and generate a DLL file with the same name.

COMMAND
jsc.exe /t:library {PATH:.js}
USE CASE
Compile attacker code on system. Bypass defensive counter measures.
PRIVILEGES
User
OPERATING SYSTEM
Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
Execute · JScript
02 / ON DISK

Known paths

C:\Windows\Microsoft.NET\Framework\v4.0.30319\Jsc.exe
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Jsc.exe
C:\Windows\Microsoft.NET\Framework\v2.0.50727\Jsc.exe
C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Jsc.exe
03 / DEFENSIVE INTELLIGENCE

Detection & indicators

1 resources

Indicators & detection notes

  • IOC

    Jsc.exe should normally not run a system unless it is used for development.

FURTHER READING

Research & resources

COMMUNITY RESEARCH

Acknowledgements

Malwrologist@DissectMalware