Logo van Reversing Flutter Apps

Reversing Flutter Apps

Community
trilwu
reversing-flutter-apps

Reverse-engineer mobiele apps in Flutter/Dart en onderschep hun verkeer met blutter, reFlutter en Frida. Gebruik dit wanneer een APK of IPA libflutter.so, libapp.so, App.framework of flutter_assets bevat, wanneer jadx alleen een dunne Dart-wrapper laat zien, wanneer Burp of mitmproxy geen verkeer van een app ziet die duidelijk online is, of wanneer het doelwit wordt beschreven als gebouwd met Flutter of Dart.

Add to TypingMind

Overzicht

Uitgevertrilwu
Repositorysecskills
Skillnaamreversing-flutter-apps
Sterren
144
Forks
15
Meegeleverde bestanden
Alleen instructies
LicentieMIT
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Compleet zonder extra bestanden

    Alles wat het model nodig heeft, staat in de instructies — geen extra bestanden om te synchroniseren.

  • Open source

    Gepubliceerd door trilwu op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Reversing Flutter Apps in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/trilwu/secskills/tree/main/secskills-core/skills/reversing-flutter-apps
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/trilwu/secskills.git /tmp/secskills
mkdir -p .claude/skills
cp -r /tmp/secskills/secskills-core/skills/reversing-flutter-apps .claude/skills/reversing-flutter-apps
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Reversing Flutter Apps in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Reversing Flutter Apps automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Reversing Flutter Apps niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

Reversing Flutter Apps

Flutter breaks both halves of the standard mobile workflow at once. Dart is AOT-compiled to a native snapshot, so there is no dex for jadx to decompile — and the Flutter engine ships its own BoringSSL with its own trust store, so it ignores the system proxy and the user CA store, and your interception proxy sees nothing. Neither failure is obvious from the symptoms, which is why people burn hours on this before recognizing what they are looking at.

When to Use

  • jadx on the APK shows a near-empty MainActivity and little else
  • The APK contains lib/arm64-v8a/libflutter.so and libapp.so, or assets/flutter_assets/
  • An IPA contains Frameworks/App.framework and Frameworks/Flutter.framework
  • Burp, mitmproxy, or Charles shows zero traffic from an app that is plainly making network calls
  • You need to recover Dart class and method names, or find the API layer, in a release build

When NOT to Use

  • Ordinary Java/Kotlin Android apps — use testing-mobile-applications
  • React Native (index.android.bundle, Hermes) — use reversing-react-native-apps
  • Unity (global-metadata.dat, libil2cpp.so) — use reversing-unity-il2cpp
  • The backend the app talks to — use testing-apis once you can see traffic
  • Generic native .so reversing — use analyzing-binaries

Identify the Build First

The build mode decides everything that follows. Check before installing tools.

bash
unzip -l target.apk | rg 'libflutter|libapp|flutter_assets|kernel_blob'
What you seeBuildWhat it means
libapp.so + libflutter.soAOT releaseThe normal case. Dart compiled to a native snapshot — this skill's main path
assets/flutter_assets/kernel_blob.binDebug / JITFar easier: Dart kernel bytecode, and the VM service may be reachable
App.framework/App (iOS)AOT releaseSame as libapp.so; extract from the decrypted IPA
Only arm64-v8a present—Expected; blutter targets arm64. armeabi-v7a support is weaker
bash
# Confirm the engine version — it gates which tools work
strings lib/arm64-v8a/libflutter.so | rg -m5 'Flutter|Dart VM version|dart-sdk'

If kernel_blob.bin is present, stop and unpack that instead: debug builds retain far more, and the Dart VM service (if enabled) gives you live inspection. Release builds are the hard case, and the rest of this assumes one.

Recovering Dart Structure with blutter

blutter parses the Dart AOT snapshot and recovers class, method, and field names plus the object pool — the difference between an unreadable arm64 listing and a navigable app.

bash
# blutter needs BOTH libraries: libapp.so is the snapshot, libflutter.so
# identifies the exact Dart version used to compile it
unzip -j target.apk 'lib/arm64-v8a/*' -d ./libs
python3 blutter.py ./libs ./out

Output you will actually use:

ArtifactUse
pp.txtObject pool dump — string constants, URLs, keys, endpoints. Read this first
objs.txtRecovered Dart objects and classes
asm/Per-library disassembly with Dart symbols applied
ida_script/Loads symbols into IDA; equivalents exist for Ghidra
blutter_frida.jsGenerated Frida hooks against recovered Dart functions

The failure you will hit is a Dart version mismatch. blutter compiles against a specific Dart SDK, and the snapshot format changes between versions. When it errors on parsing, the fix is to build blutter against the Dart SDK version that matches the app's engine, not to try a different snapshot. Read the version out of libflutter.so first, and expect the first run against a brand-new Flutter release to fail until blutter catches up.

Obfuscated builds (flutter build --obfuscate --split-debug-info=...) strip Dart names. blutter still recovers structure — call graph, object pool, string constants — but the names are gone. Pivot to pp.txt: URLs, endpoint paths, and error strings survive obfuscation and are usually enough to locate the API layer, which is what you wanted anyway.

Seeing the Traffic

Two separate problems, and both must be solved. Fixing only one leaves you with an empty proxy and no idea why.

Problem 1 — Flutter ignores the system proxy. Dart's HTTP client does not read Android/iOS proxy settings, so setting a Wi-Fi proxy does nothing. Force traffic at the network layer instead:

bash
# Redirect transparently on the device/emulator
adb shell su -c 'iptables -t nat -A OUTPUT -p tcp --dport 443 -j DNAT --to <proxy-ip>:8080'
# or use a VPN-based tunnel (tun2socks / a VPN-mode proxy app)

Problem 2 — Flutter has its own CA store. Installing your CA as a user certificate, or even as a system certificate, does not make Flutter trust it. Two working approaches:

bash
# A. reFlutter — patches the Flutter engine to trust your proxy and to
#    reroute traffic. Repackage and re-sign afterwards.
reflutter target.apk           # prompts for the proxy IP
# outputs a patched APK; then:
apksigner sign --ks debug.keystore release.RE.apk

# B. Frida — hook the certificate check inside libflutter.so at runtime.
#    ssl_verify_peer_cert is not exported, so scripts locate it by pattern
#    scanning; the pattern is engine-version specific.
frida -U -f com.target.app -l flutter-ssl-bypass.js

Prefer reFlutter when you can repackage (it also enables snapshot dumping and socket-level logging); prefer Frida when the app has integrity checks that a repackage would trip, or when you cannot re-sign. If both fail, the fallback is to hook the Dart HTTP client functions that blutter recovered — you lose protocol-level fidelity but still see requests and responses.

Working the App

Once you have symbols and traffic:

  1. Start from pp.txt. Base URLs, endpoint paths, header names, and any embedded key material are in the object pool. This usually maps the API in minutes.
  2. Hook recovered functions using blutter_frida.js as a starting point — dump arguments and return values around the request builder, the auth token handler, and any local crypto.
  3. Check the platform channels. Flutter apps delegate to native code for biometrics, keystore, and payments; those are ordinary Java/Kotlin or Swift, so hand them to testing-mobile-applications.
  4. Then test the API properly with testing-apis. Everything above was to get you to the request; the vulnerabilities are usually on the other end.

Rationalizations to Reject

  • "The proxy shows nothing, so the app must not use the network." It uses the network. It is not using your proxy.
  • "I installed the CA as a system cert, so TLS interception will work." Flutter does not consult the system store.
  • "jadx showed nothing, so the app is heavily obfuscated." There is nothing in the dex to see. The app is in libapp.so.
  • "blutter failed, so this build can't be analyzed." It almost always means a Dart version mismatch. Read the engine version and rebuild blutter against it.
  • "It's obfuscated, so the strings are gone." Names are gone; the object pool is not. Read pp.txt.
  • "I'll just reverse the arm64 by hand." Dart AOT output without symbols is extraordinarily slow to read. Recover symbols first — it is the whole job.

References

  • testing-mobile-applications — the wider mobile assessment and native channels
  • testing-apis — testing the backend once traffic is visible
  • analyzing-binaries — deeper native work on the engine itself
  • blutter, reFlutter, Frida/objection, jadx, apktool, apksigner

Veelgestelde vragen

Wat doet de AI-skill Reversing Flutter Apps?

Reverse-engineer mobiele apps in Flutter/Dart en onderschep hun verkeer met blutter, reFlutter en Frida. Gebruik dit wanneer een APK of IPA libflutter.so, libapp.so, App.framework of flutter_assets bevat, wanneer jadx alleen een dunne Dart-wrapper laat zien, wanneer Burp of mitmproxy geen verkeer van een app ziet die duidelijk online is, of wanneer het doelwit wordt beschreven als gebouwd met Flutter of Dart.

Waarom Reversing Flutter Apps gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Reversing Flutter Apps bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Reversing Flutter Apps in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/trilwu/secskills/tree/main/secskills-core/skills/reversing-flutter-apps. TypingMind leest het bestand SKILL.md en installeert het als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Reversing Flutter Apps gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Reversing Flutter Apps gebruiken?

Zoveel als je wilt. Je kunt Reversing Flutter Apps gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Reversing Flutter Apps gratis?

Ja. Deze skill is door trilwu op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇