Module 22 · Mobile Application Security · Lesson 64 of 75

Android and iOS security models, and the OWASP mobile standards

How phones keep apps apart (sandboxes, permissions, signing, secure hardware), how Android and iOS differ, and the OWASP Mobile Top 10, MASVS and MASTG.

In this lesson · about 35 minutes

  • Explain sandboxing, permissions and code signing on Android and iOS
  • Describe why rooting and jailbreaking weaken security
  • Use the OWASP Mobile Top 10 and MASVS to frame a test

Shared ideas

  • App sandbox: each app runs isolated, with its own private storage.
  • Permissions: camera, location, contacts, microphone; modern versions ask at the moment of use and allow "only this time".
  • Code signing: apps are signed by the developer; updates must carry the same signature.
  • Secure hardware: Android's Keystore (often backed by a Trusted Execution Environment or StrongBox) and iOS's Secure Enclave keep keys out of reach of the app itself.
  • Full-disk or file-based encryption, tied to the passcode.

Android

Linux-based; each app gets its own Linux user ID and SELinux policy. Apps ship as APK or AAB files containing AndroidManifest.xml (permissions and components), compiled code (classes.dex, Kotlin or Java), resources and native libraries. App components are activities (screens), services, broadcast receivers and content providers; any marked exported can be called by other apps. Sideloading from outside Google Play is possible, which helps malware spread.

iOS

Apps come only from the App Store (with limited exceptions), are reviewed, and ship as IPA files. Strong sandboxing, mandatory code signing, and the Keychain for secrets. Fewer devices and faster updates make patching more consistent than on Android.

Rooting and jailbreaking

Removing the platform's restrictions gives full control, which testers use in the lab, but it also removes the sandbox protections for users. Banking apps often detect it and refuse to run.

OWASP mobile resources

  • OWASP Mobile Top 10 (2024): M1 Improper Credential Usage, M2 Inadequate Supply Chain Security, M3 Insecure Authentication/Authorisation, M4 Insufficient Input/Output Validation, M5 Insecure Communication, M6 Inadequate Privacy Controls, M7 Insufficient Binary Protections, M8 Security Misconfiguration, M9 Insecure Data Storage, M10 Insufficient Cryptography.
  • MASVS (Mobile Application Security Verification Standard): what a secure app must do, in groups such as STORAGE, CRYPTO, AUTH, NETWORK, PLATFORM, CODE, RESILIENCE and PRIVACY.
  • MASTG (Mobile Application Security Testing Guide): how to test each requirement, step by step.

Remember the server

Most serious mobile bugs are in the API behind the app: broken object-level authorisation, missing rate limits, exposed admin endpoints. Everything from Modules 11 and 12 applies; the app is just another client.

Sorting drill

Which OWASP Mobile risk is it?

Sort each finding into the risk category it belongs to.

  • The app saves the user's session token in plain text in shared preferences
  • Login requests are sent over plain HTTP on some networks
  • A cloud API key with write access is hard-coded in the app
  • The release build has android:debuggable="true"
  • An activity showing account settings is exported with no permission
  • The app accepts any TLS certificate, even self-signed ones

0 of 6 sorted

Check your understanding0 of 3 correct

Question 1

1.Where do iOS apps keep secrets such as tokens safely?

Question 2

2.Which file lists an Android app's permissions and components?

Question 3

3.Which OWASP project explains how to test mobile apps step by step?

Quiz score: 0 of 3

Tip: answer every quiz question correctly first.

Written by Noviq Academy in its own words. All labs are simulations: no real systems are touched, and every name, address, password and hash is made up. The offensive techniques taught here are for defending systems and for authorised testing only; never scan, access or test a system without the owner's written permission. Tool and product names belong to their owners, and command output may differ slightly from yours. Read-aloud uses your device's built-in voices.