Coverage area · Partly checked automatically

Mobile app security for Android and iOS code

A mobile app runs on a device you don't control, so what ships in the build is effectively public. This page covers the settings in app source, manifests and plist files that expose users and backends; OpenRouting checks part of the source automatically.

AndroidManifest.xml1<activity2 android:name=".TransferActivity"3 android:exported="true" />Mobilewhat this review answersComponent exported to other apps?Guarded by a permission?Does it start a sensitive action?$ verdict REAL ISSUE$ fix export only if needed, with permission▍

Illustrative example of how a finding in this area is reviewed when a scanner raises one.

What OpenRouting checks today

Partly checked automatically

Semgrep's default ruleset flags activities exported without protection in AndroidManifest.xml, sensitive data in iOS UserDefaults, permissive Swift WebView settings, cookie and TLS issues in Kotlin, and secrets in known token formats; the mobile agent reviews them. Not checked: debuggable, allowBackup and cleartext-traffic flags in the manifest, Info.plist settings, and compiled APKs or IPAs.

Why this area matters

The OWASP Mobile Top 10 lists insecure data storage, insecure communication, improper credential usage and security misconfiguration among its top risks. Most of them are visible in the repository: a debuggable release build, cleartext traffic allowed in the manifest, an exported activity that accepts any intent, a token written to plain SharedPreferences, an API key compiled into the binary.

Whether these settings matter depends on build variants and what a component does. When Semgrep flags one, the mobile agent checks whether it applies to release builds and whether an exported component handles sensitive actions.

What goes wrong in real applications

  • Debug and backup settings in release

    debuggable or allowBackup in release builds let anyone with the device inspect the running app or copy its data.

  • Cleartext traffic

    Allowing HTTP, or disabling App Transport Security, exposes tokens and user data on shared networks.

  • Over-exported components

    Activities, services and receivers exported without permission checks can be triggered by any app on the device.

  • Insecure local storage

    Tokens and personal data in plain preferences, files or logs can be read from backups or a compromised device.

  • Secrets in the app bundle

    API keys and backend credentials compiled into the app can be extracted by anyone who downloads it.

Sample: the risky pattern and the fix

Riskyapp/src/main/AndroidManifest.xml
<application
    android:debuggable="true"
    android:allowBackup="true"
    android:usesCleartextTraffic="true">
    <activity
        android:name=".TransferActivity"
        android:exported="true" />
</application>
Saferapp/src/main/AndroidManifest.xml
<application
    android:allowBackup="false"
    android:usesCleartextTraffic="false"
    android:networkSecurityConfig="@xml/network_security_config">
    <activity
        android:name=".TransferActivity"
        android:exported="false" />
</application>

The manifest hard-codes a debuggable release, allows backups of app data and cleartext HTTP, and lets any installed app launch the money-transfer screen. The fix leaves debuggable to the build type, disables backup and cleartext, adds a network security config for TLS rules, and stops exporting the activity.

Illustrative code, simplified for clarity — not taken from a customer repository.

What to look for in your code

  • AndroidManifest.xml: exported components (checked automatically), and debuggable, allowBackup, cleartext traffic and permissions (a manual check today)
  • iOS Info.plist: App Transport Security exceptions and URL schemes (a manual check today)
  • Storage of tokens and personal data: SharedPreferences, UserDefaults, files, logs
  • WebView settings: JavaScript bridges and file access
  • API keys and credentials in source and resource files

Scope and limits

  • It reviews source and config in the repository; it doesn't analyze compiled APKs or IPAs, run the app or test it on a device.
  • Backend authorization for the APIs the app calls is reviewed only if that code is in a connected repository.

The checklist above is broader than what runs automatically; see what OpenRouting checks today. Where a scanner does run, it surfaces candidates and a review agent decides whether each one is real — it doesn't promise to find every issue.

Review agents for this area

These agents give the verdict and fix when a scanner raises a finding here.

Common questions

Can I upload an APK?

No. OpenRouting scans source repositories. Binary analysis of built apps is out of scope.

Does it cover React Native and Flutter?

Partly. React Native JavaScript is scanned with Semgrep's JavaScript rules; there are no stock Dart rules, and in the native manifests only exported activities are checked automatically.