/secskills-core:reversing-xamarin-mauifrom secskills-core
Extracts and decompiles Xamarin / .NET MAUI mobile app assemblies from APK/IPA containers using pyxamstore, dnSpy, or ILSpy. Use when jadx shows only Xamarin bootstrap classes or the APK contains assemblies.blob / XALZ-compressed DLLs.
Ships in secskills-core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Xamarin apps hide a complete .NET application inside an Android package. Once you extract and decompress the assemblies you get near-source-quality C#, which makes this one of the highest-return reversing jobs — but only if you get past the container format, which changed twice and defeats naive unzipping.
lib/*/libmonodroid.so, libmonosgen-2.0.so, or
libxamarin-app.soassemblies/assemblies.blob or assemblies/*.dlljadx shows only mono.MonoPackageManager and Xamarin bootstrap classes.dll files or a Frameworks/Mono* layoutglobal-metadata.dat, libil2cpp.so) — use reversing-unity-il2cpp;
Unity is also .NET but uses a completely different packagingreversing-flutter-apps or
reversing-react-native-appsbypassing-mobile-pinningtesting-mobile-applicationsThree formats shipped over the product's life, and the extraction differs.
unzip -l target.apk | rg 'assemblies|libmonodroid|libxamarin|libmonosgen'
| What you see | Generation | Extraction |
|---|---|---|
assemblies/*.dll, readable PE headers (MZ) | Classic, uncompressed | Unzip and decompile directly |
assemblies/*.dll starting with XALZ | Classic, LZ4-compressed | Decompress the XALZ wrapper first |
assemblies/assemblies.blob + .manifest | AssemblyStore | pyxamstore to unpack |
lib/*/libxamarin-app.so with no assemblies/ | .NET 6+ / MAUI, assemblies in the ELF | Extract from the shared library |
| No managed assemblies anywhere | NativeAOT | Not .NET reversing — use analyzing-binaries |
# Which one is it? Check the first four bytes of an assembly
unzip -p target.apk 'assemblies/Mono.Android.dll' 2>/dev/null | xxd | head -1
# 4d5a... → MZ, a plain .NET PE, decompile now
# 58414c5a → "XALZ", LZ4-compressed, decompress first
# AssemblyStore (assemblies.blob)
pyxamstore unpack -d ./out target.apk
# produces the individual .dll files under ./out
# XALZ-compressed individual DLLs
# The header is: magic "XALZ" | descriptor index | uncompressed size | LZ4 block
python3 -c "
import lz4.block, struct, sys
d = open(sys.argv[1],'rb').read()
assert d[:4] == b'XALZ'
size = struct.unpack('<I', d[8:12])[0]
open(sys.argv[2],'wb').write(lz4.block.decompress(d[12:], uncompressed_size=size))
" Mono.Android.dll Mono.Android.decompressed.dll
# MAUI / .NET 6+ assemblies embedded in libxamarin-app.so
# They are stored as sections; carve by MZ header or use pyxamstore's newer modes
unzip -j target.apk 'lib/arm64-v8a/*' -d libs && binwalk -Me libs/libxamarin-app.so
Once you have plain .dll files it is ordinary .NET work:
ilspycmd ./out/YourApp.dll -o ./decompiled # or dnSpy / dnSpyEx / dotPeek
rg -n 'https?://|ApiKey|ConnectionString|Bearer|password' ./decompiled | head -40
Start with the app's own assembly, not the framework ones. It is usually
named after the product; Mono.Android.dll, System.*, and Xamarin.* are
stock and waste your time.
Frida's Java bridge does not see Mono methods — the app's logic is not in the JVM. You need Mono-aware instrumentation.
# Enumerate the Mono runtime and its loaded assemblies
frida -U -f com.target.app -l frida-mono-api.js
# Fridax targets Xamarin specifically; also useful:
# mono_get_root_domain, mono_assembly_foreach, mono_class_get_methods,
# mono_compile_method → resolve a managed method to a native address, then
# Interceptor.attach at that address
The practical route: decompile first, find the exact class and method you want, then resolve it through the Mono API and attach. Blind hooking of Mono is far slower than reading the C# you already recovered.
Certificate validation in Xamarin lives in managed code, which is why generic Android pinning bypasses miss it entirely:
// The two hook targets, both in the managed layer
ServicePointManager.ServerCertificateValidationCallback
HttpClientHandler.ServerCertificateCustomValidationCallback
Force these to return true via Mono hooking, or patch the assembly and
repack. See bypassing-mobile-pinning for the surrounding diagnosis.
Xamarin apps concentrate risk in ways that are easy to spot once decompiled:
ServerCertificateValidationCallback returning true. Common in
development builds that shipped.Xamarin.Essentials.SecureStorage is usually
fine; Preferences and raw file writes are not.# Edit IL directly in dnSpy, save the assembly, then rebuild the container
pyxamstore pack -d ./out # rebuild assemblies.blob
apktool b target -o patched.apk && apksigner sign --ks debug.keystore patched.apk
Repacking must reproduce the original container format exactly — an uncompressed DLL where the loader expects XALZ, or a mis-sized blob, fails at startup with an unhelpful native crash. Prefer runtime hooking when you only need to observe.
assemblies/.testing-mobile-applications — the wider assessment and platform storagebypassing-mobile-pinning — diagnosing the interception failure around thisreversing-unity-il2cpp — the other .NET-based mobile frameworkanalyzing-binaries — NativeAOT builds with no managed assembliesWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub trilwu/secskills --plugin secskills-core30 skills in this plugin
/analyzing-binariesReverse engineer compiled binaries, firmware, and mobile app packages using triage, static disassembly, decompilation, and dynamic instrumentation. Use when analyzing an executable, ELF/PE/Mach-O file, firmware image, or stripped binary, recovering an algorithm or protocol, or working a CTF reversing challenge./analyzing-dotnet-assembliesReverse engineer .NET assemblies and executables with dnSpyEx, ILSpy, and de4dot — identifying and unwrapping obfuscators and packers, deobfuscating control flow and string encryption, handling single-file and NativeAOT publishes, and patching IL. Use when a binary is a managed PE, when ILSpy shows mangled names or empty method bodies, or when analyzing .NET malware, a loader, or a Windows application./analyzing-firmware-imagesExtract, analyze, and assess firmware images from embedded devices, IoT hardware, routers, and similar targets — filesystem extraction, hardcoded credential discovery, binary analysis across architectures, web interface review, network service enumeration, emulation, and cryptographic assessment. Use when analyzing a firmware update file, reviewing IoT device security, hunting for hardcoded secrets in device firmware, or assessing the attack surface of an embedded system./analyzing-go-binariesReverse engineer Go binaries by recovering function names and types from pclntab and moduledata using GoReSym, redress, and IDA/Ghidra Go plugins, and by reading Go's non-standard calling convention, interface dispatch, and string layout. Use when a binary contains Go runtime strings, when strings show runtime.main or go:buildid, when a stripped binary is unexpectedly large, or when analyzing Go malware or a Go-based service./analyzing-ios-binariesAnalyze iOS applications at the binary level — decrypting FairPlay-protected IPAs with frida-ios-dump or bagbak, inspecting Mach-O load commands, recovering Objective-C headers with class-dump, and reading Swift metadata. Use when working with an IPA or .app bundle, when a downloaded App Store binary shows cryptid=1, when class-dump returns nothing, or when analyzing iOS frameworks and app extensions./analyzing-macos-binariesReverse engineer and security-review macOS applications and Mach-O binaries — thinning universal binaries, recovering Objective-C/Swift structure, reading code-signing entitlements and the hardened runtime, and auditing XPC services, dylib load paths, and TCC privacy exposure. Use when analyzing a .app bundle or Mach-O on macOS, checking entitlements and notarization, hunting a dylib-hijack or XPC privilege bug, or reasoning about Gatekeeper and quarantine.2 plugins ship this exact skill · first indexed Jul 31, 2026
Other plugins' skills for the same job