Post 59 - Resuming

21 Dec 2023

Task 15, Day 09, Malware analysis She sells C# shells by the C2shore

I have really been slacking this year, so time to try and catch up.

.NET binaries contain code written in languages compatible with .NET framework, like C#, VB.NET, F#, and managed C++. Can be exes, dlls, or assemblies of multiple types and resources. These languages donโ€™t compile straight to machine language but go to an intermediate language (IL) which gets translated at runtime by a Common Language Runtime (CLR). This allows .NET binaries to be reconverted back to source code.

C#

For loops repeatedly execute a block of code for a given number of times. Typically consists of initialization, condition, and iteration. Can be broken with break command.

Conditional statements include if and else.

Can include namespaces, classes, and functions from external libraries through using directive.

dnSpy

Open-source .NET assembly (C#) debugger and editor. Typically used for reverse enigneering .NET applications and analysing their code. Also capable of modifying retrieved code, setting breakpoints, and running through code one step at a time.

Methodology

Focus on individual functions before tackling Main function.

The task

Breakdown the malware and extract information about what it does and who it contacts.

Malware Analysis module in the SOC Level 2 Path.