Cross-platform mobile checks
Flutter mobile app security testing guide for Android and iOS
Flutter compiles Dart ahead-of-time into native binaries and ships its own TLS stack. Testing Android and iOS Flutter builds accurately requires inspecting complete release splits, understanding BoringSSL proxy behavior, and separating static indicators from real-device proof.
How Flutter packaging changes mobile security review
Unlike native Android apps written in Kotlin or Java, a release Flutter build does not place application logic inside classes.dex. Instead, the Flutter toolchain compiles Dart ahead-of-time (AOT) into native machine code bundled as libapp.so alongside the engine binary libflutter.so. On modern Google Play deliveries built from an Android App Bundle (.aab), those native libraries live inside architecture-specific ABI splits such as split_config.arm64_v8a.apk rather than base.apk.
Scanning only base.apk misses libapp.so completely. A base-only scan sees the Android manifest, Flutter asset resources, and Java/Kotlin plugin glue, while leaving all compiled Dart logic, API routes, and embedded snapshot strings uninspected. For complete Android coverage and clean hardware installs, export and review a signed .apks split archive from your .aab via bundletool as outlined in our Android split APK testing guide.
On iOS, Dart AOT code is packaged inside Payload/*.app/Frameworks/App.framework/App alongside Flutter.framework. When an IPA is downloaded from the Apple App Store, Apple FairPlay DRM encrypts executable Mach-O pages (LC_ENCRYPTION_INFO_64 with cryptid=1), blocking static inspection of both the runner binary and compiled frameworks. Always export an unencrypted development or ad-hoc IPA (cryptid 0) from the same release commit before review; see our iOS IPA FairPlay testing guide for verification steps:
# Verify Android split archive contains libapp.so
unzip -l build/app-release.apks | grep -E 'arm64_v8a|base-master'
unzip -l /tmp/apks-verify/splits/base-arm64_v8a.apk | grep 'libapp.so'
# Verify iOS App.framework is unencrypted (cryptid 0)
otool -l /tmp/ipa-verify/Payload/Runner.app/Frameworks/App.framework/App \
| grep -A4 LC_ENCRYPTION_INFO_64
Why Flutter networking bypasses standard proxy interception
Traditional Android and iOS apps usually delegate TLS connections to platform networking stacks such as OkHttp/Conscrypt under Android's network security config or Apple's URLSession governed by App Transport Security. Flutter's dart:io HttpClient takes a different path: it links against Dart's own bundled BoringSSL stack and ignores OS-level Wi-Fi proxy settings and user-installed proxy CA certificates by default.
Because of this design, pointing a physical phone at a standard intercepting proxy commonly produces zero captured Flutter HTTPS requests. Security reviewers must not mistake an empty proxy log for verified certificate pinning or idle networking. Instead, check three concrete areas under an authorized scope: whether Dart code pins certificates via SecurityContext or weakens validation with a permissive badCertificateCallback (MASVS-NETWORK), whether native plugins make parallel HTTP calls through platform stacks with different TLS policies, and how authorized test builds route traffic when capturing Record Mode or proxy sessions.
High-value Flutter security checks mapped to OWASP MASVS
Because a Flutter app spans Dart AOT snapshots, bundled assets, and native platform plugins, map checks across both layers against OWASP MASVS control groups:
- Secure local storage vs plain preferences (MASVS-STORAGE): Confirm that session tokens, refresh secrets, and user credentials use
flutter_secure_storagebacked by Android Keystore and iOS Keychain rather than plainshared_preferences(SharedPreferences/NSUserDefaults) or unencrypted local SQLite and Hive files. Compare native rules in our Android storage guide and iOS Keychain guide. - Embedded endpoints and keys in snapshots and assets (MASVS-STORAGE, MASVS-CRYPTO): Inspect string pools inside
libapp.soandApp.framework/Appas well asflutter_assets/files (such as bundled.envor JSON configs) for hardcoded API keys, staging URLs, and weak client-side cryptographic defaults. - Platform channels and native plugin bridges (MASVS-PLATFORM): Review
MethodChannelandEventChannelimplementations in Kotlin/Java and Swift/Objective-C for missing input validation, unsafe WebView JavaScript bridges, and unintended permissions inherited from third-party pub.dev plugins. - Deep links, App Links, and Universal Links (MASVS-PLATFORM): Audit Android intent filters and iOS
CFBundleURLTypesorapplinks:entries that pass external URIs into Flutter routing layers so untrusted links cannot bypass authentication gates or trigger open redirects. - Screen capture and task-switcher protection (MASVS-STORAGE, MASVS-RESILIENCE): Verify whether sensitive screens enable Android
FLAG_SECUREand iOS background-snapshot masking so account balances or one-time codes do not persist in OS recents previews. - Limits of Dart obfuscation (MASVS-RESILIENCE): Compiling with
--obfuscate --split-debug-infostrips Dart symbol names and raises static reverse-engineering effort, but it does not encrypt plain strings influtter_assets/or protect backend secrets embedded in the binary. Treat obfuscation strictly as defense-in-depth, never as secret storage.
Static package signals vs real-device verification
Static analysis of a complete Android .apks split archive (or standalone .apk) or unencrypted iOS IPA quickly surfaces manifest and Info.plist misconfigurations, native plugin risks, bundled asset files, and string candidates inside libapp.so or App.framework. Those static findings are valuable starting points, but they do not prove runtime exploitability on their own.
Pairing static review with authorized execution on physical hardware confirms concrete runtime facts: clean multi-split installation and foreground launch on real Android and iPhone devices, passive FLAG_SECURE window checks on active screens, and masked runtime log-canary observations. When live HTTPS inspection is needed, an authorized tester can supply a Record Mode traffic capture under a signed scope.
Honest coverage boundaries: Automated real-device runs deliver partial dynamic coverage. Encrypted Flutter BoringSSL traffic remains unmeasured unless an authorized capture is provided, AWS public iPhone runs re-sign the IPA and therefore do not prove production App Store entitlements, and static indicators remain candidates for a human validator rather than automatically confirmed findings.
Inspect how static candidates and hardware evidence are separated in our redacted sample reports, automate uploads and non-blocking SARIF export via CI/CD integration, or compare EU static-only and real-device options on pricing and pilots.