1
0
mirror of https://github.com/LOLBAS-Project/LOLBAS synced 2024-09-19 18:24:02 +02:00

Update Csc.yml (#376)

Co-authored-by: Wietze <wietze@users.noreply.github.com>
This commit is contained in:
Mozhar Alhosni 2024-05-23 01:55:40 +08:00 committed by GitHub
parent 5d7ec48f4f
commit 91a3e80d8f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,18 +1,18 @@
---
Name: Csc.exe
Description: Binary file used by .NET to compile C# code
Description: Binary file used by .NET Framework to compile C# code
Author: 'Oddvar Moe'
Created: 2018-05-25
Commands:
- Command: csc.exe -out:My.exe File.cs
Description: Use CSC.EXE to compile C# code stored in File.cs and output the compiled version to My.exe.
- Command: csc.exe -out:Output.exe File.cs
Description: Use csc.exe to compile C# code, targeting the .NET Framework, stored in File.cs and output the compiled version to Output.exe.
Usecase: Compile attacker code on system. Bypass defensive counter measures.
Category: Compile
Privileges: User
MitreID: T1127
OperatingSystem: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
- Command: csc -target:library File.cs
Description: Use CSC.EXE to compile C# code stored in File.cs and output the compiled version to a dll file.
Description: Use csc.exe to compile C# code, targeting the .NET Framework, stored in File.cs and output the compiled version to a DLL file.
Usecase: Compile attacker code on system. Bypass defensive counter measures.
Category: Compile
Privileges: User
@ -30,7 +30,4 @@ Detection:
- Elastic: https://github.com/elastic/detection-rules/blob/82ec6ac1eeb62a1383792719a1943b551264ed16/rules/windows/defense_evasion_execution_msbuild_started_unusal_process.toml
- IOC: Csc.exe should normally not run as System account unless it is used for development.
Resources:
- Link: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-options/command-line-building-with-csc-exe
Acknowledgement:
- Person:
Handle:
- Link: https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-options/