2020-03-17 02:04:20 +01:00
|
|
|
---
|
2020-03-17 11:05:14 +01:00
|
|
|
Name: Ilasm.exe
|
2020-03-17 02:04:20 +01:00
|
|
|
Description: used for compile c# code into dll or exe.
|
|
|
|
Author: Hai vaknin (lux)
|
2021-01-10 16:04:52 +01:00
|
|
|
Created: 2020-03-17
|
2020-03-17 02:04:20 +01:00
|
|
|
Commands:
|
2020-03-17 11:05:14 +01:00
|
|
|
- Command: ilasm.exe C:\public\test.txt /exe
|
2021-11-15 14:19:03 +01:00
|
|
|
Description: Binary file used by .NET to compile C#/intermediate (IL) code to .exe
|
2020-03-17 02:04:20 +01:00
|
|
|
Usecase: Compile attacker code on system. Bypass defensive counter measures.
|
|
|
|
Category: Compile
|
2020-03-17 11:05:14 +01:00
|
|
|
Privileges: User
|
2020-03-17 02:04:20 +01:00
|
|
|
MitreID: T1127
|
2021-12-14 16:50:17 +01:00
|
|
|
OperatingSystem: Windows 7, Windows 10, Windows 11
|
2020-03-17 11:05:14 +01:00
|
|
|
- Command: ilasm.exe C:\public\test.txt /dll
|
2021-11-15 14:19:03 +01:00
|
|
|
Description: Binary file used by .NET to compile C#/intermediate (IL) code to dll
|
2020-03-17 02:04:20 +01:00
|
|
|
Usecase: A description of the usecase
|
|
|
|
Category: Compile
|
2020-03-17 11:05:14 +01:00
|
|
|
Privileges: User
|
2020-03-17 02:04:20 +01:00
|
|
|
MitreID: T1127
|
2021-12-14 16:50:17 +01:00
|
|
|
OperatingSystem: Windows 7, Windows 10, Windows 11
|
2020-03-17 02:04:20 +01:00
|
|
|
Full_Path:
|
2020-03-17 11:05:14 +01:00
|
|
|
- Path: C:\Windows\Microsoft.NET\Framework\v4.0.30319\ilasm.exe
|
|
|
|
- Path: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ilasm.exe
|
2021-01-10 16:04:52 +01:00
|
|
|
Code_Sample:
|
2021-11-15 14:19:03 +01:00
|
|
|
- Code:
|
|
|
|
Detection:
|
|
|
|
- IOC: Ilasm may not be used often in production environments (such as on endpoints)
|
2022-05-23 13:35:58 +02:00
|
|
|
- Sigma: https://github.com/SigmaHQ/sigma/blob/bea6f18d350d9c9fdc067f93dde0e9b11cc22dc2/rules/windows/process_creation/proc_creation_win_lolbin_ilasm.yml
|
2020-03-17 11:05:14 +01:00
|
|
|
Resources:
|
|
|
|
- Link: https://github.com/LuxNoBulIshit/BeforeCompileBy-ilasm/blob/master/hello_world.txt
|
2020-03-17 02:04:20 +01:00
|
|
|
Acknowledgement:
|
2020-03-17 11:05:14 +01:00
|
|
|
- Person: Hai Vaknin(Lux)
|
|
|
|
Handle: '@VakninHai'
|
|
|
|
- Person: Lior Adar
|
|
|
|
Handle:
|