2019-05-31 13:53:43 +02:00
|
|
|
---
|
|
|
|
Name: Jsc.exe
|
2022-05-05 12:12:22 +02:00
|
|
|
Description: Binary file used by .NET to compile JavaScript code to .exe or .dll format
|
2019-05-31 13:53:43 +02:00
|
|
|
Author: 'Oddvar Moe'
|
2021-01-10 16:04:52 +01:00
|
|
|
Created: 2019-05-31
|
2019-05-31 13:53:43 +02:00
|
|
|
Commands:
|
|
|
|
- Command: jsc.exe scriptfile.js
|
2022-05-05 12:12:22 +02:00
|
|
|
Description: Use jsc.exe to compile JavaScript code stored in scriptfile.js and output scriptfile.exe.
|
2019-05-31 13:53:43 +02:00
|
|
|
Usecase: Compile attacker code on system. Bypass defensive counter measures.
|
|
|
|
Category: Compile
|
|
|
|
Privileges: User
|
|
|
|
MitreID: T1127
|
2021-12-14 16:50:17 +01:00
|
|
|
OperatingSystem: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
|
2024-04-03 17:53:36 +02:00
|
|
|
Tags:
|
|
|
|
- Execute: WSH
|
2019-05-31 13:53:43 +02:00
|
|
|
- Command: jsc.exe /t:library Library.js
|
2022-05-05 12:12:22 +02:00
|
|
|
Description: Use jsc.exe to compile JavaScript code stored in Library.js and output Library.dll.
|
2019-05-31 13:53:43 +02:00
|
|
|
Usecase: Compile attacker code on system. Bypass defensive counter measures.
|
|
|
|
Category: Compile
|
|
|
|
Privileges: User
|
|
|
|
MitreID: T1127
|
2021-12-14 16:50:17 +01:00
|
|
|
OperatingSystem: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
|
2024-04-03 17:53:36 +02:00
|
|
|
Tags:
|
|
|
|
- Execute: WSH
|
2019-05-31 13:53:43 +02:00
|
|
|
Full_Path:
|
|
|
|
- Path: C:\Windows\Microsoft.NET\Framework\v4.0.30319\Jsc.exe
|
|
|
|
- Path: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Jsc.exe
|
|
|
|
- Path: C:\Windows\Microsoft.NET\Framework\v2.0.50727\Jsc.exe
|
|
|
|
- Path: C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Jsc.exe
|
2021-01-10 16:04:52 +01:00
|
|
|
Code_Sample:
|
2021-11-15 14:19:03 +01:00
|
|
|
- Code:
|
2019-05-31 13:53:43 +02:00
|
|
|
Detection:
|
2022-05-17 10:18:45 +02:00
|
|
|
- Sigma: https://github.com/SigmaHQ/sigma/blob/35a7244c62820fbc5a832e50b1e224ac3a1935da/rules/windows/process_creation/proc_creation_win_lolbin_jsc.yml
|
2021-11-15 14:19:03 +01:00
|
|
|
- IOC: Jsc.exe should normally not run a system unless it is used for development.
|
2019-05-31 13:53:43 +02:00
|
|
|
Resources:
|
|
|
|
- Link: https://twitter.com/DissectMalware/status/998797808907046913
|
|
|
|
- Link: https://www.phpied.com/make-your-javascript-a-windows-exe/
|
|
|
|
Acknowledgement:
|
|
|
|
- Person: Malwrologist
|
2019-05-31 13:56:55 +02:00
|
|
|
Handle: '@DissectMalware'
|