When people talk about mobile app security, everyone thinks of the server side; yet the app itself is an attack surface too. An attacker who downloads and unpacks your APK sees whatever you buried inside it. That's why the OWASP Mobile Top 10 is our mandatory pre-delivery checklist on mobile projects. In this post, we summarize the most critical items on the list along with our field observations, and show what they look like concretely in Flutter and native projects.
M1: Embedded secrets — the most common and most embarrassing flaw
The item at the top of the list is improper credential usage. In plain terms: embedding an API key, a database password, or a signing secret in the app's code. In a notable share of the projects we've taken over, production API keys came out of the decompiled APK. The rule is clear: nothing that ships to the client is a secret. Secrets stay on the server; the mobile app talks using short-lived, user-specific tokens.

Insecure storage and communication
Tokens written to SharedPreferences or plain files can be read as cleartext on a rooted device. Sensitive data needs the platform's secure vault: Android Keystore and iOS Keychain; on the Flutter side, flutter_secure_storage wraps both. For communication, HTTPS is now the bare minimum; critical apps should add certificate pinning on top. But be careful: if you implement pinning without a certificate rotation plan, you'll lock out all your users the moment the certificate is renewed. We've seen that happen in the field, too.
Common pitfalls on the code side
- Insufficient input validation: the assumption that "it comes from the mobile app, so it's safe." An API should never trust the client; validation must always be repeated on the server.
- Excessive logging: debug leftovers that write tokens and personal data to logcat in the production build.
- Missing obfuscation: builds shipped without R8/ProGuard or Flutter's obfuscate flag make reverse engineering easier. Obfuscation isn't security, but it raises the cost of an attack.
- No jailbreak/root detection at all: even if you're not at banking level, a device integrity check layer is valuable for risky operations.

After release: security is a living process
Shipping a build to the store doesn't close the security work. A CVE could be published tomorrow for one of your dependencies; if you don't have an automated scan to alert you (a vulnerability check in CI for your pub.dev dependencies), the attacker learns about the flaw before you do. Changes to the server-side API affect mobile security as well: adding a new endpoint can break the authorization model the mobile app assumes. That's why we treat mobile and backend security reviews as a single whole rather than separate worlds. One final note about old versions: in an app where a significant share of users are still on a version from two years ago, the APIs that old version talks to stay alive too. If a forced update mechanism (a minimum version check) isn't designed in from the start, your weakest link will always be stuck in the past.
Our recommended process
Don't leave security until the end of the release. Our workflow: automated static scanning on every release (embedded secrets, dependency vulnerabilities), manual review on critical releases, and an independent penetration test at least once a year. At Rich Design, we have been developing mobile apps since 2010; we run OWASP Mobile Top 10-based security audits and hardening work for your existing Flutter or native app. If you're curious how your app looks from the outside, get in touch.