<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Mohammad Ezziedden on Medium]]></title>
        <description><![CDATA[Stories by Mohammad Ezziedden on Medium]]></description>
        <link>https://medium.com/@mohammadEzzo?source=rss-584311a6ccf2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Wh8bvXAnMBltyHWz7uakvg.jpeg</url>
            <title>Stories by Mohammad Ezziedden on Medium</title>
            <link>https://medium.com/@mohammadEzzo?source=rss-584311a6ccf2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 03:48:28 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mohammadEzzo/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Securing Flutter Apps.]]></title>
            <link>https://medium.com/@mohammadEzzo/securing-flutter-apps-3cd1aedda088?source=rss-584311a6ccf2------2</link>
            <guid isPermaLink="false">https://medium.com/p/3cd1aedda088</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[andoid]]></category>
            <category><![CDATA[job-interview]]></category>
            <category><![CDATA[mobile-apps]]></category>
            <dc:creator><![CDATA[Mohammad Ezziedden]]></dc:creator>
            <pubDate>Sun, 31 Oct 2021 18:48:34 GMT</pubDate>
            <atom:updated>2025-05-26T16:42:33.564Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CiCCk7SfQLffYjVMYQZ4aw.jpeg" /></figure><h3>Securing Flutter Apps — 2025 Edition</h3><p>Updated May 2025 · by Mohammad EzzAlddin</p><p><strong>TL;DR — </strong>Dart 3, Play Integrity and Apple’s Privacy Manifest reshaped mobile security. Here’s a concise, 2025-ready checklist to keep your Flutter apps safe.</p><h3>1 Why Security Matters More Than Ever</h3><p>The average mobile breach now costs <strong>US $ 4.45 M</strong> (IBM 2024). With Flutter powering finance and health apps, security is a core feature, not an add-on.</p><h3>Key changes since 2021</h3><ul><li><strong>Android:</strong> <em>SafetyNet</em> → <strong>Play Integrity API</strong> (hardware-backed verdicts)</li><li><strong>iOS:</strong> <strong>Privacy Manifest</strong> enforced (May 2024)</li><li><strong>Auth:</strong> Passcodes/biometrics → <strong>Passkeys</strong> (WebAuthn)</li><li><strong>Dart:</strong> 3.x adds full null-safety, records and pattern matching</li><li><strong>Tooling:</strong> dart pub outdated --security fails builds with vulnerable packages</li></ul><h3>2 Start With a Threat Model</h3><ol><li>Data in transit</li><li>Data at rest</li><li>Code &amp; IP</li><li>Device integrity</li><li>Supply chain</li></ol><p>Score each by <strong>likelihood × impact</strong> (OWASP MASVS 2.0) before choosing controls.</p><h3>3 Protect Data in Transit</h3><ul><li>Enforce <strong>TLS 1.3</strong>; delete any badCertificateCallback left from debug.</li><li>Block clear-text: use <em>network_security_config.xml</em> (Android) and keep NSAllowsArbitraryLoads false (iOS).</li><li>Pin certificates via <a href="https://pub.dev/packages/http_certificate_pinning">http_certificate_pinning</a>:</li></ul><pre>final ctx = SecurityContext(withTrustedRoots: false)..setTrustedCertificates(&#39;certs/api_spki.pem&#39;);</pre><h3>4 Authentication &amp; Sessions</h3><ul><li>Use <strong>passkeys</strong> (passkeys + local_auth).</li><li>Keep access tokens short-lived (~15 min). Store refresh tokens with flutter_secure_storage (hardware-backed on Android 13+).</li></ul><h3>5 Device &amp; App Integrity</h3><ul><li>Root/jailbreak checks: flutter_jailbreak_detection.</li><li>Play Integrity: play_integrity_flutter; iOS equivalent: <em>App Attest</em>.</li><li>Hide sensitive UI or block payments on compromised devices.</li></ul><h3>6 Secure Data at Rest</h3><ul><li>Secrets → flutter_secure_storage.</li><li>Databases → sqlcipher_flutter_libs or hive + AES (cryptography).</li><li>Wipe caches on AppLifecycleState.detached to emulate a vault logout.</li></ul><h3>7 Code Protection</h3><pre>flutter build appbundle \<br>  --obfuscate \<br>  --split-debug-info=build/symbols</pre><p>Upload symbol files to Play Console/Sentry. Consider <strong>Guardsquare iXGuard</strong> or <strong>Verimatrix XTD Mobile</strong> for runtime checks.</p><h3>8 Supply Chain &amp; CI/CD</h3><ul><li>dart pub outdated --security --no-transitive in CI.</li><li>Generate a CycloneDX SBOM; sign it for <strong>SLSA Level 2</strong>.</li><li>Store signing keys in a YubiKey; use remote build machines.</li></ul><h3>9 Privacy &amp; Compliance</h3><ul><li>Fill Google Play <strong>Data Safety</strong>.</li><li>Include an Apple <strong>Privacy Manifest</strong> or face rejection.</li><li>Follow regional laws (e.g., UAE PDPL 2021) and support data-erasure requests.</li></ul><h3>10 Testing Checklist</h3><ul><li>Static: dart analyze clean.</li><li>Dependencies: Dependabot/GitLab scans.</li><li>Dynamic: <strong>MobSF</strong> or OWASP App Scanner.</li><li>Map results to <strong>OWASP MASVS 2.0</strong>.</li></ul><h3>11 Conclusion</h3><p>Perfect security is impossible, but layered, automated defences are reachable. Combine platform features, modern Flutter tooling and rigorous CI checks to stay ahead of 2025 threats.</p><h3>Further Reading</h3><ul><li>OWASP MASVS v2</li><li>Play Integrity API docs</li><li>Apple Privacy Manifest docs</li><li>flutter_secure_storage changelog</li><li>SLSA + SBOM guides</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3cd1aedda088" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>