Flutter SSL pinning: how to intercept app traffic with Frida.

Your proxy works in the browser but shows nothing from the Flutter app. Or the app fails as soon as you install the proxy CA. These are different problems. Learn how to isolate routing, trust, and engine issues before choosing an interception method.

Use these techniques only on applications, devices, and accounts you own or have permission to test. The examples use placeholder package names and supplier.example, not details from a real target.

1. Do not assume SSL pinning is the first problem

SSL pinning gets the attention because it sounds like a difficult target. In practice, an empty proxy log can also come from proxy routing, an offline workflow, cached responses, a native SDK, or a protocol your proxy does not handle.

Flutter adds another complication. Flutter applications may not use Android's system proxy settings by default. A device can be configured correctly for a browser while the Flutter engine connects through a different path. Before changing certificate verification, prove whether the app's traffic is reaching the proxy at all.

Three symptoms need three different responses:

  • No application requests. Check routing, proxy support, cache behavior, and whether the workflow actually uses the network.
  • Connections with TLS or certificate errors. Check CA trust, certificate pinning, and the TLS library used by the application.
  • Some requests appear but the required calls are missing. Check plugins, WebViews, native SDKs, alternate transports, and additional pinning layers.

2. Confirm the Flutter engine and architecture

Check the application before choosing a script. Flutter reverse-engineering tools are sensitive to the engine, ABI, and build version. A hook written for one combination can fail silently or crash on another.

unzip -l app-arm64.apk | grep -E 'lib(app|flutter)\.so'

lib/arm64-v8a/libapp.so
lib/arm64-v8a/libflutter.so

If these files are missing from base.apk, check the ABI-specific split before concluding that the app is not Flutter. The complete APK-to-API workflow is in our Flutter reverse engineering guide.

Inspect the engine itself when architecture is uncertain:

file lib/arm64-v8a/libflutter.so

ELF 64-bit LSB shared object, ARM aarch64, stripped

This is an illustrative result, not a target fingerprint. A stripped engine can remove convenient symbols, which is one reason TLS scripts often rely on instruction patterns. Those patterns are version-specific. Do not copy a function offset from an unrelated app or Flutter release.

Also record the device ABI and the script's supported platforms. A mismatch between an arm64 application, an x86 emulator, and an arm64-only tool will waste time.

3. Make the proxy path observable

Use a controlled test device, an authorized test account, and a proxy you can inspect. Then test each layer separately.

  1. Prove the proxy with an ordinary browser.Load a site through the same device and proxy configuration. If the browser does not appear, fix the proxy address, interface, VPN, or emulator network before touching the app.
  2. Test HTTP and HTTPS separately.HTTP confirms basic routing. HTTPS adds certificate trust. A working HTTP request with a failing HTTPS request points to a different layer from a complete absence of traffic.
  3. Run a simple Flutter test application.The NVISO project recommends checking a demo app. This distinguishes a general Flutter or proxy problem from behavior specific to your application.
  4. Run one known read-only workflow.Avoid starting with sign-in or a state-changing action. Use a screen that should produce a predictable request, and note what appears in the proxy and device logs.

On a device with ADB available, logs can help separate trust failures from routing failures:

adb logcat | grep -iE 'ssl|tls|certificate|handshake|flutter'

The filter is only a starting point. Applications do not always log useful network errors, and log output can contain sensitive information. Save only what you need and redact it.

If the app never reaches the proxy, changing TLS verification will not solve the problem. Use a proxy method that works for the application, such as emulator proxy settings, a supported VPN-based setup, or a test access point. The right choice depends on the device and test environment.

4. Choose an interception method for the authorized test

A debug build or proxy-friendly test configuration is usually easier to maintain than a modified production binary. Use that option when it is available. When it is not, choose the least invasive method that answers the question.

Option A: disable TLS verification on a test device

The open-source NVISO Flutter TLS verification script uses Frida and instruction patterns to locate ssl_verify_peer_cert in supported Flutter engines. Its documentation also covers proxy setup and unsupported-library checks.

frida -U -f com.example.app -l disable-flutter-tls.js --no-pause

The package name is a placeholder. Use the application you are authorized to test and a script version that supports its engine and architecture. Keep the NVISO attribution if you reuse or adapt its code.

If the script does not work, check in this order:

  • Can you intercept the project's demo application?
  • Is Frida attaching to the process and ABI you intended?
  • Is the expected libflutter.so loaded?
  • Does the repository's libflutter_samples and verify.py workflow recognize the engine?
  • Does another plugin or native SDK perform its own certificate verification?

Do not answer a crash by suppressing exception handlers or anti-instrumentation checks. That hides the evidence you need and can change the workflow you are trying to observe. Reassess the test method, use a compatible build, or stop at the limit of the authorized scope.

Option B: use TLS key logging when the library supports it

TLS key logging records per-session secrets that Wireshark can use to decrypt supported traffic. It does not require disabling certificate verification, but it does require a compatible TLS library and a way to export the secrets from the client or server.

For supported desktop applications, SSLKEYLOGFILE can create that file:

export SSLKEYLOGFILE="$HOME/Desktop/test-keylog.txt"
open -a firefox

This is a desktop example, not a universal Android or Flutter switch. A Flutter engine needs compatible instrumentation to emit the key material. If the engine does not support it, an environment variable alone will not produce a key log.

In Wireshark, open Preferences, select Protocols, then TLS, and set the (Pre)-Master-Secret log filename. Use tls to inspect TLS records and tls and (http or http2) to check decrypted HTTP traffic.

Treat the key log and decrypted capture as credentials. Restrict access, do not commit them, and delete them when the authorized analysis is complete.

5. Read the symptoms instead of guessing

Match the observed behavior to the next diagnostic step. Repeating the same hook against every failure usually makes the evidence worse.

Symptom                              Likely layer                  Next check
No browser traffic                  Proxy routing                Proxy address, VPN, emulator network
Browser HTTP works, HTTPS fails     Certificate trust            CA installation and trust store
Browser works, Flutter is absent    Flutter proxy behavior        Demo app and application proxy path
Flutter TLS errors appear           TLS verification             Engine, plugin, and pinning behavior
Frida finds no target function      Version or ABI               Loaded library and supported samples
Application crashes after hooking   Compatibility                Stop and change the test method
Only some API calls are missing     Another SDK or protocol      Plugins, WebViews, and alternate transports

Keep a short log of what changed between tests. Engine version, device ABI, proxy mode, script version, and the exact workflow matter more than a generic statement that "Frida does not work."

6. Turn decrypted traffic into an API map

Interception is only the observation phase. Once the required requests are visible, connect each one to the user action that caused it and the application state it requires.

For every required call, record:

  • Method, path, query parameters, and exact body representation.
  • Authentication headers, cookies, challenge values, and session state.
  • Response fields that the application actually uses.
  • Timestamps, nonces, signatures, and values that change on every request.
  • Rate limits, expiration, rotation, and replay restrictions.

Separate required workflow traffic from analytics and background services. Redact credentials and personal data as you build the map. A useful record looks like this:

action: read catalog
method: GET
url: https://api.supplier.example/v1/catalog?cursor=...
requires: valid test session
observed: 200 with an items array and next_cursor
replay: follow next_cursor until it is absent; never invent a cursor

Then move to the complete Flutter-to-API process for request signing, session reconstruction, client implementation, and validation. If the workflow cannot be reproduced with HTTP alone, compare a real browser, HTTP-only, or hybrid design instead of forcing everything into one client.

7. Use the findings on both sides of the engagement

For an authorized integration, the result should be a documented API contract and a reliable way to complete the workflow. For an application owner, the same analysis shows which assumptions do not hold: system proxy settings are not universal, native TLS behavior differs from Java behavior, and obfuscation does not keep endpoints or request logic secret.

Server-side authorization, scoped credentials, rate limits, and careful session design still matter after pinning is enabled. Certificate pinning also needs a maintenance plan for engine updates, pin rotation, and failure recovery.

Nina handles mobile app and API reverse engineering for authorized engagements. If your team is stuck at traffic visibility, request reconstruction, or session behavior, we can review the workflow and define a practical scope.

Need to understand what your mobile app is doing?

Tell us what you own or have permission to analyze and where the workflow breaks down. We will review the target and propose a technical approach.

Start a project