Skip to content

Mobile Application Security

31 questions
0 of 31 done · 5 unlocked for you
DONEUNLOCKEDLOCKED

Mobile Security Interview Questions (Android & iOS)

The Android and iOS security models, secure storage with the Keystore, Keychain and Secure Enclave, exported components, deep links and WebViews, certificate pinning and its rotation, root detection and attestation, reverse engineering of apps, and the on-device AI features that bring prompt injection to the phone.

Worked answers that start from a threat model, explain each control by mechanism, and include the follow-ups and scoring an interviewer uses.

You have 5 free answers unlocked here.Sign in free for 5 more · 21 are premium.
01–13Foundationsthe mechanisms and vocabulary an interviewer expects you to have0/13 done
14–24Core questionsthe questions this round asks most, answered in full0/11 done
25–31Field scenariosdesign rounds, incidents and judgment calls with the inputs left incomplete0/7 done
PRACTICE TESTStudied this track? Prove it: a timed Mobile Application Security test.new items each time · every answer explained · easy level free with an accountStart →

The concepts behind Mobile Application Security

The lessons these answers build on. Introductory ones are free; advanced ones need Premium.

Foundational
The Mobile Platform Security ModelAndroid and iOS both isolate each app in a sandbox, identify apps by their signatures, gate sensitive resources behind permissions or entitlements, and offer hardware-backed key storage. Android isolates apps with per-app Linux user IDs and SELinux and allows sideloading and vendor-controlled updates; iOS uses a kernel-enforced sandbox profile, mandatory code signing and central distribution. Both models protect apps from other apps, not from a device owner with root or a jailbreak, which is why mobile security designs keep authoritative decisions on the server.
Foundational
Protecting Data on Mobile DevicesMobile apps protect data by storing as little as possible, keeping keys in the Android Keystore or iOS Keychain and Secure Enclave, encrypting what must persist with those keys, and choosing protection classes that keep secrets out of backups and inaccessible while the device is locked. Hardware backing stops keys being copied off the device, but not their use by a compromised app. Most real leaks bypass storage entirely: logs, crash reports, analytics SDKs, backups, app-switcher screenshots, the clipboard, keyboard caches, URLs and notifications.
Core
Sign in
Mobile IPC, Deep Links and WebViews as Attack SurfaceMobile apps expose entry points that other apps and web pages can reach: Android activities, services, receivers and content providers; deep links and custom URL schemes on both platforms; and WebViews with JavaScript bridges into native code. Each is an API with an untrusted caller. Typical bugs are missing authorization on exported components, intent redirection where the app forwards attacker intents with its own identity, content-provider path traversal, custom schemes claimed by malicious apps to steal OAuth codes, deep links that perform actions without confirmation, and WebView bridges reachable from untrusted pages. Fixes are the API-security basics applied on the phone: minimal exposure, verified identity, validated input and explicit confirmation.
Advanced
🔒 Premium
WebView Security: A Browser With Your App's IdentityA WebView is a browser engine inside an app, with no address bar and whatever powers the app adds. Most WebView bugs come from three choices: a JavaScript bridge exposed to every frame, file and content access that let a page read local data, and loading content the app does not control, such as deep-link URLs and model-generated HTML. The defences: separate trusted and untrusted content, give local files a real origin, use origin-restricted message channels, and send external links and login to the system browser.
Core
Sign in
Signing In From a Mobile App: OAuth for Native AppsA mobile app cannot keep a client secret, so OAuth treats it as a public client. RFC 8252 sets the pattern: run the login in the system browser or a platform authentication session, never an embedded WebView; receive the code on a redirect the OS verifies, such as an App Link or universal link; and protect the code with PKCE using S256. RFC 9700 adds that public clients must use PKCE and that their refresh tokens must be rotated or bound to a key, which on a phone can live in secure hardware.
Core
Sign in
Trusting a Mobile Client: Pinning, Tamper Detection and AttestationMobile client controls have different trust assumptions. Pinning narrows accepted TLS keys on an uncompromised client; root detection and anti-tamper checks raise effort but can be modified by an attacker who controls the app. Play Integrity and App Attest provide evidence that the server can verify and bind to an action, using different protocols. Good designs check request binding and freshness, combine attestation with fraud signals, and enforce authorization on the server. Hardware-backed keys and platform isolation remain useful within their own threat models.
Unlock all 31 answers · $25

Every worked answer in all 17 topics, every lesson in every course, the full concept curriculum, the complete practice-test bank, and the downloadable security field guides.

6 months · One payment · No auto-renewal