Skip to content

Lesson 9 of 13 · 13m

Seeing Your Own Traffic

Nougat stopped trusting user CAs, Flutter ignores the proxy entirely, and QUIC sails past HTTP proxies on UDP 443 — lab interception needs the system store or transparent redirection.

The first wall: Nougat

The standard setup is boring on purpose: Burp Suite or mitmproxy on a laptop, the phone on the same network with its Wi-Fi proxy pointed at the laptop's port, and the proxy's CA installed on the device. On Android the CA lands in the user store — cacerts-added/ — and that used to be the whole job.

Android 7.0 ended it. Apps targeting API 24+ stopped trusting user-installed CAs by default; your release app will TLS-fail against Burp even with the cert installed correctly. The system store lives at /system/etc/security/cacerts/<subject-hash>.0 — files named like 5ed36f99.0 — and it's read-only. The paths around the wall:

  • <debug-overrides> in network_security_config.xml with <trust-anchors><certificates src="user"/></trust-anchors> — the intended answer: debug builds trust the user CA, release builds don't. This is why the config file exists.
  • Move the CA into the system store on a rooted device — Magisk modules (MagiskTrustUserCerts, always-trust-user-certs) do it without remounting; on an emulator, -writable-system plus adb root lets you push 5ed36f99.0 directly.
  • Repackage the app with a modified config trusting user certs — works without root, but invalidates the signature and any integrity checks.
  • Hook the TLS layer at runtime — a Frida script that forces checkServerTrusted/ATS to succeed, which is also how you'd disable pinning on a test build.

On Android 14 the cert store moved into the updatable Conscrypt APEX module (com.android.conscrypt), delivered via Google Play — details changed, the user-vs-system split didn't.

When the proxy sees nothing

Two failure modes eat hours.

HTTP/3. QUIC runs on UDP 443 and HTTP proxies are TCP things. An app negotiating QUIC bypasses Burp entirely while looking like normal fast traffic. The fix is crude and standard: block outbound UDP 443 at the network edge — the app falls back to TCP and appears in the proxy.

Non-proxy-aware stacks. OkHttp and HttpURLConnection honor the system proxy; raw Socket code and several native HTTP stacks don't. The notorious case is Flutter: the Dart engine ships its own BoringSSL with a compiled-in root bundle and ignores both Android's proxy setting and the user CA store. Proxying Flutter traffic requires a transparent proxy — redirect at the network layer on a rooted device or emulator (iptables REDIRECT to mitmproxy's --mode transparent, or a VPN-based tool like ProxyGen) — plus handling Dart's hardcoded CA trust. RN, Xamarin, and dart:io clients have their own CA decisions; assume nothing about HttpClient.badCertificateCallback until you've read the app's own stack.

Reading what you caught

Once TLS is open, the traffic tells you the app's actual behavior: the analytics SDKs phoning home on domains your manifest never mentions, the Authorization header shape, whether the API leaks more than the UI shows, whether Set-Cookie carries Secure/HttpOnly, which endpoints your feature list doesn't cover. MobSF's runtime view or mitmproxy's saved flows are the audit artifact — what the app does, not what the manifest intends.

iOS needs no CA drama at the device level — install the proxy CA in Settings → Profile, then enable it under Settings → General → About → Certificate Trust Settings (the second toggle people forget). Jailbroken devices plus objection's ios sslpinning disable handle pinned apps.

The wrong model

"TLS means I can't see the traffic" — the pentester's version of the user's complaint. TLS protects you from the network, not from a device whose trust store its owner controls. Your own app is inspectable end-to-end; the only question is how much labor the inspection costs.

Practice

  • Keep a rooted test device (or -writable-system emulator + Magisk via rootAVD) with the proxy CA in the system store.
  • Verify proxy pathing with curl --proxy from the device first — fix the network before blaming the app.
  • Block UDP 443 when traffic looks invisible.
  • Flutter/Dart: expect transparent proxying, don't waste time on the Wi-Fi proxy field.
  • Document what your release build trusts: <debug-overrides> only, never a release user trust-anchor.

Was this lesson helpful?

Sign in to rate

Keep reading

Related articles from the SudoSecurity blog.