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 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' Author: 'Oddvar Moe'
Created: 2018-05-25 Created: 2018-05-25
Commands: Commands:
- Command: csc.exe -out:My.exe File.cs - Command: csc.exe -out:Output.exe File.cs
Description: Use CSC.EXE to compile C# code stored in File.cs and output the compiled version to My.exe. 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. Usecase: Compile attacker code on system. Bypass defensive counter measures.
Category: Compile Category: Compile
Privileges: User Privileges: User
MitreID: T1127 MitreID: T1127
OperatingSystem: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11 OperatingSystem: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
- Command: csc -target:library File.cs - 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. Usecase: Compile attacker code on system. Bypass defensive counter measures.
Category: Compile Category: Compile
Privileges: User 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 - 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. - IOC: Csc.exe should normally not run as System account unless it is used for development.
Resources: Resources:
- Link: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-options/command-line-building-with-csc-exe - Link: https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-options/
Acknowledgement:
- Person:
Handle: