Library / SDK
Impact-I/reFlutter avatar
Impact-I/reFlutter

reFlutter: a Flutter reverse engineering framework that swaps the engine instead of the app

Flutter Reverse Engineering Framework

2,809 stars294 forksPythonGPL-3.0

At a glance

What is it?
reFlutter repacks Android and iOS Flutter apps with a prebuilt patched engine to intercept TLS traffic and dump Dart function offsets, and falls back to Frida for engines it cannot rebuild. It is a Python CLI under GPL-3.0.
Who is it for?
Adopt reFlutter if you are auditing a Flutter app you own or are authorised to test and you need to see its TLS traffic or name its Dart functions in a disassembler; the repack path avoids root and certificate installation on Android, which is the main reason to pick it.
Can I use it commercially?
Yes, with conditions. GPL-3.0 is a copyleft licence: if you distribute software that includes it, you must release that software's source code under the same licence. Running it internally without distributing it does not trigger that obligation.
Is it still maintained?
Yes. The repository last received commits 31 days ago.
What is it written in?
Mainly Python, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 24, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • Impact-I/reFlutter2,809 ★ · +44
Star history
Repository2026-10-042026-11-24
Impact-I/reFlutter2.8k2.8k

44 Stars in the last 51 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

The problem: a Flutter release build hides both its traffic and its symbols

A Flutter release app is not a normal Android or iOS app with readable Java or Objective-C. The Dart code is compiled ahead of time into a snapshot that the app loads through libflutter.so, and the Dart symbol names are gone from the shipped binary. Two things that a mobile security tester normally does first, reading HTTP traffic through a proxy and naming functions in a disassembler, both stop working. Certificate pinning inside the engine's boringssl makes the proxy handshake fail, and the absence of symbols makes the disassembly a wall of unnamed offsets.

reFlutter is aimed at that specific gap. The README states its purpose directly: it "reverse-engineers Flutter apps by swapping the app's engine for a prebuilt patched one (repack mode) or by instrumenting the app's own engine at runtime (attach mode)." The audience is mobile security engineers, bug bounty hunters and reverse engineers working on Flutter targets, plus developers who need to see what their own release build sends over the wire. The topics on the repository (bugbounty, mobile-security, reverse-engineering, ssl-pinning) point at the same group.

Repack mode: replace libflutter.so with an engine that has the bypass compiled in

The main mechanism is a swap. reFlutter reads the target APK or IPA, computes the snapshot hash of the Flutter engine the app was built against, and looks that hash up in enginehash.csv. If there is a match, it substitutes a prebuilt engine for that exact snapshot in which boringssl certificate verification has been patched to succeed unconditionally. The README describes the result as bypassing "several Flutter certificate-pinning implementations" with no root and no certificate installation needed on Android. The output is a new file, for example release.RE.apk, which the user signs.

Because the patched engine is prebuilt and keyed by snapshot hash, the whole operation is offline and fast. The cost is coverage: the tool can only repack engines whose hash it already has an asset for. The README lists Android arm64, arm32 and x64 (x64 assets from Flutter 3.41) and iOS arm64, for release and profile builds on the Stable and Beta channels. Pre-monorepo engines up to 3.27 are built from the archived flutter/engine repository, and the 3.24.x assets ship from the same pipeline. Anything outside that matrix is not a repack candidate.

A detail worth knowing before you file a bug: the proxy handling changed between engine eras. Engines up to and including Flutter 3.24.x (snapshot hash 80a49c7111088100a233b2ae788e1f48) carried a hardcoded proxy IP that reFlutter patches in place. From 3.27.x on, that hardcoded IP is gone and the proxy has to be configured on the device instead. If you follow an old tutorial and wonder why the app ignores your Burp listener, this is usually why.

Installing reFlutter and repacking a first APK

reFlutter is published on PyPI and the README gives a single install line for Linux, Windows and macOS. The package requires Python 3.10 or newer according to setup.py, which declares python_requires=">=3.10" and lists classifiers for 3.10 through 3.13. The current version in setup.py is 0.9.8.

bash
pip3 install reflutter

With the CLI on the PATH, run it against an APK. The README's quick start shows the interactive prompt for the Burp Suite IP and the resulting output file. The tool prints the snapshot hash it found, which is the value you want to check against enginehash.csv.

console
$ reflutter main.apk

Please enter your Burp Suite IP: <input_ip>

SnapshotHash: 8ee4ef7a67df9845fba331734198a953
The resulting apk file: ./release.RE.apk
Please sign the apk file

The output APK is unsigned, so it has to be signed and aligned before installation. The README names uber-apk-signer as a working option. For an IPA, the README says to sign and install the result as usual and notes that the tool prints a reminder.

bash
java -jar uber-apk-signer.jar --allowResign -a release.RE.apk

For Android, point the device at the proxy, then install the repacked APK. The README gives this adb command and notes that routing everything through Burp with TunProxy is optional. On the Burp side the listener needs port 8083 bound to All interfaces and Support invisible proxying set to True.

bash
adb -s <device> shell "settings put global http_proxy <proxy_ip:port>"

Two flags matter for repeatable runs. -n, --no-interact never prompts for a Burp IP and implies 127.0.0.1, which the README recommends for old engines in CI. -p, --patch-dump switches to dump mode, where the repacked engine emits a dump.dart on start and the tool writes a ready frida.js next to the output instead of the proxy instructions. iOS installs the signed IPA and uses a per-app proxy tool; the README names Potatso for that.

bash
reflutter -n main.apk

Dump mode and why the offsets are not ELF offsets

Dump mode is the part that most changes how you work on an app. Running with -p makes the repacked engine write a dump.dart file, one JSON object per function, containing the method name, class name, library URL, static-ness, parameter count and a code offset. On Android you pull it out of the app's data directory after starting the app.

bash
reflutter -p main.apk && java -jar uber-apk-signer.jar --allowResign -a release.RE.apk
adb shell "cat /data/data/<PACKAGE_NAME>/dump.dart" > dump.dart

The README is explicit that the offset is relative to the Dart instructions image start, either _kDartIsolateSnapshotInstructions or _kDartSnapshotText, and not the ELF base. That distinction decides whether your hooks land. There are two consumers. The auto-written frida.js resolves the right symbol for the Dart version and hooks an offset you fill in, run with frida -U -f <package> -l frida.js, and the README says it works across Frida 14 to 17. For static analysis, scripts/dump2disasm.py turns dump.dart into naming scripts for IDA and Ghidra. A sample line from the README shows the shape: a method_name of _handleRequest, an offset of 0x00000000000a8740, a library_url of package:anyapp/api/client.dart, a class_name of ApiClient, is_static false and parameter_count of 2.

bash
frida -U -f <package> -l frida.js
bash
python3 scripts/dump2disasm.py dump.dart

Attach mode and Shorebird: the cases where repacking cannot work

Repacking fails on two classes of target, and reFlutter has separate answers for each. The first is any engine for which there is no prebuilt asset, including engines that ship stripped. The second is Shorebird, whose apps run a private Dart fork with a snapshot hash different from the vanilla release they are based on. The README states plainly that Shorebird apps cannot use -p because their snapshots do not run in patched engines.

frida-ssl.js is the runtime answer for traffic. It disables TLS verification without repacking at all by patching boringssl inside the loaded libflutter.so, run as frida -U -f <package> -l frida-ssl.js. The constraint is real: it resolves the internal-linkage verification function from .symtab, so it needs an engine that still carries a symbol table. The README says Shorebird engines (which ship unstripped, around 150 MB) and debug or profile builds qualify, while stock release APKs ship stripped engines and the symbols.zip in the same bucket is a separate link whose addresses do not transfer. For stripped release builds, repack mode remains the route. arm, arm64 and x64 are handled per-ISA and other architectures abort without writing anything. On Android 15 or 16 the README requires frida-server 17.x, because 16.x kills system_server there; 17.9.9 is noted as verified on API 36.

bash
frida -U -f <package> -l frida-ssl.js

Shorebird traffic interception works like any other app, by running reflutter app.apk or app.ipa, but with no engine build behind it: Shorebird's own engine artifact is fetched from their public bucket and boringssl's certificate-chain verification is patched to succeed unconditionally through a pure-Python ELF and Mach-O walk, symbol table to file offset to a per-ISA patch. reFlutter identifies Shorebird apps automatically, because a hash found only in enginehash_sb.csv identifies one even when flutter_assets/shorebird.yaml is absent. For dumping a Shorebird app, the README points at scripts/frida-dump.js instead of -p.

Build engine mode, the Dockerfile, and what it costs you

There is a third path for people who need a change reFlutter does not ship. The -b <Snapshot_Hash>, --build-engine flag prints the engine commit for a snapshot hash and, when run inside an engine checkout, applies the reFlutter source patches. The repository Dockerfile automates the whole thing: it starts from ubuntu:22.04, takes HASH_PATCH, COMMIT, arm, arm64 and x64 as build arguments, clones depot_tools and flutter, resets the checkout to the requested commit, runs reflutter -b ${HASH_PATCH} -p, sets up a .gclient pointing at the local checkout, runs gclient sync, and then builds with gn and ninja for the requested CPU targets. The README also describes manual engine patching via a crafted Dockerfile.

bash
reflutter -b <Snapshot_Hash> -p

That is the honest cost of an uncovered engine: a Chromium-style toolchain build. It is not a five-minute operation, and the Dockerfile even contains a sleep $WAIT step, defaulting to 4 seconds, whose comment tells the operator to change the source code in that window before the build proceeds. If your target's hash is not in the CSVs and you do not have the time or disk for a full engine build, the tool is the wrong choice for that target.

One more structural point. reFlutter is a Python package (version 0.9.8 in setup.py) with a console entry point reflutter = reflutter.__init__:main, and it ships package data including frida.js and a patches directory. The reverse engineering logic lives in Python; the heavy lifting is done by prebuilt artifacts fetched and swapped, not by anything the package compiles at install time. That is why pip3 install reflutter is small and why the engine build path exists separately.

Alternatives and how they differ in approach

The closest alternative in the Flutter world is Frida on its own, which is what reFlutter itself uses for the runtime paths. The difference is where the patch lives. Frida attaches to a running process and patches memory, so it needs an injectable environment (frida-server, root or a repackaged app) and a symbol or pattern to find the function it wants. reFlutter's repack mode patches the engine before the app ever runs, so the bypass is compiled in and no injection is needed at runtime on Android. The trade-off is the opposite of Frida's: repack mode is limited to engine hashes with prebuilt assets, while Frida scripting is limited by what you can locate in the loaded image. reFlutter's own frida-ssl.js sits between the two, using Frida to patch boringssl but requiring an unstripped engine.

For traffic inspection generally, the alternative is a system-level interception setup: a rooted device or emulator with a user CA installed in the system store, plus a pinning bypass module. That approach is engine-agnostic and works on non-Flutter apps too. It fails exactly where reFlutter's repack mode succeeds, namely on apps that pin inside the engine and refuse a user certificate, and it demands root or a writable system partition. reFlutter's stated advantage is that no root and no certificate installation are needed on Android. Its disadvantage is that it only knows about Flutter, and only about the engine snapshots it has assets for.

For disassembly, the alternative to dump mode is working from the stripped binary directly and naming functions by hand. reFlutter's contribution is the JSONL dump with names, classes and parameter counts attached to offsets, which scripts/dump2disasm.py converts into IDA and Ghidra naming scripts. If you already have a symbol source for the target, that advantage shrinks.

Licence and upgrade cost

reFlutter is GPL-3.0. setup.py declares license="GPLv3+" and the classifier "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", and the repository carries a LICENSE file. The practical implication is the usual copyleft one: if you distribute a modified version, or a product that incorporates the code, the GPL's source-availability terms apply. Internal use for security testing is a different question from redistribution, and the specifics depend on your situation rather than on anything the repository says. This is not legal advice; read the LICENSE file and, if you plan to ship something built on reFlutter, get your own answer.

Upgrade cost is dominated by engine coverage rather than by API churn. The three engine hash CSVs (enginehash.csv, enginehash_profile.csv, enginehash_sb.csv) are the compatibility surface, and each new Flutter release adds hashes and assets to them. The releases page shows iOS v2 and v3 and Android v3 artifacts sharing the same commit, which is the shape you would expect from a project that publishes per-platform engine builds. In practice, keeping reFlutter current means tracking Flutter releases and checking whether your target's snapshot hash has landed in the CSVs. If it has not, the fallback is -b and the Dockerfile, which is the expensive path.

Editorial conclusion

Adopt reFlutter if you are auditing a Flutter app you own or are authorised to test and you need to see its TLS traffic or name its Dart functions in a disassembler; the repack path avoids root and certificate installation on Android, which is the main reason to pick it. Skip it if the target is a Shorebird app and you wanted the -p dump (use scripts/frida-dump.js instead), if you need an architecture outside arm64/arm32/x64 on Android or arm64 on iOS, or if your target engine is a debug/profile build where frida-ssl.js is the simpler route. Before you rely on it, run reflutter main.apk once and check that the printed SnapshotHash appears in enginehash.csv for your Flutter version, because an uncovered hash means the prebuilt engine will not match.

Frequently asked questions

How do I install reFlutter?

The README gives a single command for Linux, Windows and macOS: pip3 install reflutter. The package requires Python 3.10 or newer, and the installed console command is reflutter.

How do I use reFlutter on an APK?

Run reflutter main.apk, enter your Burp Suite IP when prompted, then sign the resulting release.RE.apk with a tool such as uber-apk-signer and install it. The tool prints the snapshot hash it matched, which you can check against enginehash.csv.

What is reFlutter?

It is a Flutter reverse engineering framework that repacks an app with a prebuilt patched engine to intercept TLS traffic and dump Dart function offsets, or instruments the app's own engine at runtime with Frida. It is distributed as a Python package under GPL-3.0.

Official sources

  1. Impact-I/reFlutter on GitHub
  2. Issues
  3. License: GPL-3.0
  4. README
  5. Releases
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/impact-i-reflutter.svg)](https://hysenlabs.com/projects/impact-i-reflutter)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/impact-i-reflutter.svg)](https://hysenlabs.com/projects/impact-i-reflutter)

Was this useful?