mandiant / capa-rules

Standard collection of rules for capa: the tool for enumerating the capabilities of programs
https://github.com/mandiant/capa/
Apache License 2.0
544 stars 163 forks source link

Xamarin.Android (Build fully native Android apps using C#) #706

Open mike-hunhoff opened 1 year ago

mike-hunhoff commented 1 year ago

Consider writing capa rules for Xamarin.Android applications:

Xamarin.Android exposes the complete Android SDK for .NET developers. Build fully native Android apps using C# or F# in Visual Studio.

(credit)

Developers can write cross-platform and platform-specific C# (Android, iOS) . Here, we should aim to target Android-specific C# implemented via Mono.Android:

Screen Shot 2023-02-22 at 10 42 23 AM

(credit)

Xamarin.Android framework has been leveraged by malware authors:

Quick hunt on VT finds:

We already have some coverage on this sample:

Screen Shot 2023-02-22 at 11 33 12 AM

Deliverables:

komen205 commented 1 year ago

Hello,

I'm not sure if this will be helpful in any way, but maybe identifying that the file is actually a Xamarin application could be quite useful. Since now it seems that it only identifies that the file is a dotnet one.

We can do this by targeting the magic "XALZ", for reference, https://github.com/xamarin/xamarin-android/pull/4686