Skip to content

Course

Mobile App Security

Android and iOS app internals, on-device storage pitfalls, certificate pinning, mobile reverse engineering, and the platform-specific bug classes — from APK anatomy to Play Integrity attestation.

13 lessons

Course Q&A

Keep reading

Related articles from the SudoSecurity blog.

Reviews

Enrolled members can rate this course.

No reviews yet.

How Mobile Apps Actually Work

What an APK or IPA really is, what the sandbox and permissions actually gate, and which components other apps on the device can reach.

  1. 01Inside the PackageAn APK is a zip with DEX, a binary manifest, and a signature scheme whose v1 design let Janus prepend hostile DEX code — an IPA is the same archive shape under Apple's per-byte code signature.12mOpen
  2. 02The Sandbox and the Permission LieEvery Android app is a separate Linux UID under SELinux and seccomp; the permission list gates framework APIs, not what the app does with Accessibility and overlay powers users hand it.12mOpen
  3. 03Intents, Deep Links, and Exported ComponentsManifest-declared components are callable IPC — implicit exported defaults pre-Android 12, unverifiable custom schemes, intent redirection, mutable PendingIntents, and provider path traversal.13mOpen

Where Apps Leak: Storage and Secrets

The real destinations for stored data — prefs, backups, logs, clipboard, snapshots — and how Keystore, Keychain, and key hygiene actually protect it.

  1. 01Where Data Actually LandsSharedPreferences and NSUserDefaults are plaintext XML/plist, backups ship private dirs off-device, logcat and switcher snapshots leak the screen — the sandbox only stops other apps on a stock phone.13mOpen
  2. 02Keystore and Keychain: Doing It RightAndroid Keystore and the iOS Keychain keep key bytes in hardware and hand you a handle — accessibility classes, biometric gating, and synchronizable flags decide who can ever read them.12mOpen
  3. 03There Are No Secrets in the BinaryEvery constant you ship is extractable in minutes, so mobile OAuth runs PKCE without client secrets and privileged keys live server-side — obfuscation renames names, never data.11mOpen

Talking to the Server

Cleartext and trust-anchor policy on both platforms, what certificate pinning buys and breaks, and how to intercept your own app's traffic in a lab.

  1. 01TLS Is Not a GivenCleartext permission is a per-app, per-SDK policy decision set in networkSecurityConfig and the ATS dict — one staging exemption or NSAllowsArbitraryLoads silently undoes it.10mOpen
  2. 02Certificate Pinning: What It Buys and What It BreaksPin the intermediate's SPKI with a backup pin, accept that expiry is a brick event and objection defeats it on-device in minutes — pinning fights the network, not the device owner.13mOpen
  3. 03Seeing Your Own TrafficNougat stopped trusting user CAs, Flutter ignores the proxy entirely, and QUIC sails past HTTP proxies on UDP 443 — lab interception needs the system store or transparent redirection.13mOpen

Breaking It: Analysis and Hardening

Static and dynamic analysis of mobile binaries, the platform bug classes that actually ship, and what attestation can and cannot prove.

  1. 01Reading the Binaryapktool and jadx turn a release APK into a searchable codebase, smali grep finds the dangerous calls, and a FairPlay-encrypted Mach-O needs a jailbroken dump before Ghidra can read it.12mOpen
  2. 02Frida, objection, and the Rooted DeviceFrida hooks the live process — objection's `sslpinning disable` proves pinning is a speed bump — while Magisk, Gadget repacks, and jailbreaks decide how deep instrumentation goes.13mOpen
  3. 03The Bugs You'll Actually FindaddJavascriptInterface RCE, intent redirection, overlay tapjacking, StrandHogg task hijack, pasteboard snooping, and scheme collisions — the recurring platform bug classes with their CVEs.14mOpen
  4. 04Hardening, Detection, and AttestationR8 obfuscates names, root/jailbreak detection is a cost dial bypassable in one Frida session, and Play Integrity or App Attest only mean anything when verified on your server.12mOpen