Cross-chapter interview question index¶
This file is built mechanically from the per-chapter interview sections by
scripts/build-interview-index.py. It lists every
question in the repository and links to the chapter that answers it. It deliberately does
not copy the answers: an answer separated from the chapter that justifies it is how
people end up reciting a claim they cannot defend, which is exactly the failure mode
../README.md section 5 is about.
1373 questions across 78 chapters, in 5 tiers. Generated grouping: tier.
Beginner (348)¶
| Chapter | Question |
|---|---|
| 00 | What is an APK and what is inside it? |
| 00 | What is the difference between an emulator and a physical device for testing? |
| 00 | Why does Burp Suite not see an app's traffic even when the proxy is configured? |
| 00 | What does adb stand for and what is it for? |
| 00 | What is root and why would a tester want it? |
| 01 | What is the difference between a program and a process? |
| 01 | Why is hexadecimal used instead of decimal? |
| 01 | What is a byte, and why eight bits? |
| 01 | What does the stack do? |
| 01 | What is the difference between the stack and the heap? |
| 01 | What is a system call? |
| 02 | What is the difference between a shell and a terminal? |
| 02 | What does chmod 755 mean? |
| 02 | What is the difference between absolute and relative paths? |
| 02 | What is /proc? |
| 02 | What does the pipe operator do? |
| 03 | What is a variable, at the byte level? |
| 03 | What is the difference between the stack and the heap? |
| 03 | Why does 0.1 + 0.2 not equal 0.3? |
| 03 | What is a function, and what physically happens when you call one? |
| 03 | What is the difference between compiling and running a program? |
| 03 | What is an array, and why does indexing start at zero? |
| 03 | What does "the code compiles" tell you about the code? |
| 04 | What is the difference between the JDK, the JRE, and the JVM? |
| 04 | What is the difference between == and .equals()? |
| 04 | Why is String immutable? |
| 04 | What is the difference between an interface and an abstract class? |
| 04 | What is static? |
| 05 | What is Kotlin and how does it relate to Java on Android? |
| 05 | What is the difference between val and var? |
| 05 | What do ?, ?., ?: and !! mean? |
| 06 | Name the layers of the Android stack from the bottom up. |
| 06 | What is Zygote? |
| 06 | What is init? |
| 07 | What is AOSP, and how is it different from the Android on my phone? |
| 07 | Why is repo needed instead of git clone? |
| 07 | What licence is AOSP under, and why does the kernel differ? |
| 07 | What does @hide mean? |
| 07 | What is android.jar and why do its methods throw? |
| 07 | Name the three build variants and the security difference. |
| 08 | What are the two build systems in the Android world, and what does each produce? |
| 08 | What is the difference between namespace and applicationId? |
| 08 | What does minifyEnabled true actually do? |
| 08 | Why can the same source produce different APKs? |
| 08 | What is zipalign for and when must it run? |
| 09 | What is an APK, and what happens when you install one? |
| 09 | Why does each app get its own UID? |
| 09 | What is the difference between /data/data/<pkg> and /data/user/0/<pkg>? |
| 09 | What does android:debuggable="true" do? |
| 09 | What is the main thread and why must you not block it? |
| 10 | What is an APK? |
| 10 | Why can you not edit a file inside an APK and install it? |
| 10 | What is AndroidManifest.xml and why can you not read it with a text editor? |
| 11 | What is a runtime, and why does Android need one? |
| 11 | What is the difference between compiled and interpreted code? |
| 11 | What is a ClassLoader? |
| 12 | What is a DEX file? |
| 12 | Why did Android not just use .class files? |
| 12 | What is classes2.dex? |
| 13 | What is ART and what did it replace? |
| 13 | What is the difference between AOT and JIT? |
| 13 | What are the .odex, .vdex and .art files next to an installed APK? |
| 14 | What is Smali? |
| 14 | Is Dalvik still used on Android? |
| 14 | What is the difference between v0 and p0? |
| 14 | Why does invoke-virtual list its registers in braces? |
| 14 | What does /range mean? |
| 15 | What is a .so file? |
| 15 | Why does an APK have four lib/ directories, and which one runs? |
| 15 | What does "stripped" mean? |
| 15 | Why does strings on a library sometimes show almost nothing useful? |
| 15 | What is the difference between a section and a segment? |
| 16 | What is JNI, in one sentence? |
| 16 | How does a Java native method get connected to a C function? |
| 16 | What does System.loadLibrary("foo") do? |
| 16 | What is the type descriptor for byte[]? For String? For boolean? |
| 16 | Write the signature for int f(String s, byte[] b). |
| 16 | What is JNIEnv? |
| 17 | What is the difference between a static and a shared library? |
| 17 | What is Bionic? |
| 17 | Where are an app's own native libraries stored? |
| 17 | What does System.loadLibrary("foo") actually do? |
| 17 | Why does an app ship its own copy of a library instead of using the system's? |
| 18 | What is a register, and why does a processor have them? |
| 18 | What is the difference between x0 and w0? |
| 18 | How long is an AArch64 instruction? |
| 18 | What does ret do? |
| 18 | Where does a function's first argument live? |
| 18 | What is xzr? |
| 19 | What is a page, and why does it exist? |
| 19 | Why does /proc/<pid>/maps list the same library several times? |
| 19 | What is the difference between rw-p and r-xp? |
| 19 | Where does malloc get its memory? |
| 20 | What is the Android application sandbox, in one sentence? |
| 20 | What does Verified Boot do? |
| 20 | Where does an app store data privately? |
| 20 | What is a security patch level? |
| 21 | What is the Android application sandbox? |
| 21 | Where does an app's private data live? |
| 21 | Can another app read my APK? |
| 21 | What does android:sharedUserId do? |
| 21 | What is the difference between android:process and android:isolatedProcess? |
| 22 | What is SELinux, in one sentence? |
| 22 | What is the difference between DAC and MAC? |
| 22 | Read this context aloud and tell me what each field means: u:r:untrusted_app:s0:c107,c256,c512,c768. |
| 22 | My root shell gets "Permission denied". Why? |
| 22 | What does getenforce tell you, and what does it not? |
| 23 | What is an Android permission? |
| 23 | What is the difference between requesting a permission and holding one? |
| 23 | What is the default protectionLevel when the attribute is omitted? |
| 23 | Name the three base protection levels you will see in practice. |
| 23 | Why does an app need INTERNET if it is only making an HTTPS call? |
| 24 | What is IPC and why does Android need it? |
| 24 | Name five IPC mechanisms on Android. |
| 24 | What does android:exported do? |
| 24 | What is the difference between an explicit and an implicit Intent? |
| 25 | What is Binder, in one sentence? |
| 25 | Why does Android need it when Linux already has sockets and pipes? |
| 25 | What is a Parcel? |
| 25 | What is getCallingUid() and when does it lie? |
| 25 | What is TransactionTooLargeException? |
| 26 | What is an Intent? |
| 26 | What is the difference between an explicit and an implicit Intent? |
| 26 | What is the difference between an action and a category? |
| 26 | Why does my implicit Intent open a chooser? |
| 26 | What is CATEGORY_DEFAULT for? |
| 27 | What is a content provider and why does Android have them? |
| 27 | What are the parts of a content:// URI? |
| 27 | Name the methods a ContentProvider can implement. |
| 27 | How does a client app read from a provider? |
| 27 | What is android:exported and what is its default? |
| 28 | What is the difference between a started service and a bound service? |
| 28 | Does a service run on a background thread? |
| 28 | What does onStartCommand return, and why does it matter? |
| 28 | Is a "foreground service" in the foreground? |
| 28 | What is a sticky service? |
| 29 | What is a BroadcastReceiver? |
| 29 | What is the difference between a broadcast and an ordinary Intent? |
| 29 | Two ways to register a receiver? |
| 29 | Why is onReceive limited to a few seconds? |
| 30 | What is an Activity? |
| 30 | What is a task? |
| 30 | What is the back stack? |
| 30 | Name the launch modes. |
| 30 | What does exported="true" mean on an Activity? |
| 31 | What is a Fragment, and how is it different from an Activity? |
| 31 | Why does a Fragment need an empty public constructor? |
| 31 | What does addToBackStack do? |
| 32 | What is AndroidManifest.xml and why does it exist? |
| 32 | Is the manifest inside an APK a text file? |
| 32 | What does android:exported do? |
| 32 | Which components are exported if you write no exported attribute at all? |
| 32 | What is the difference between minSdkVersion, targetSdkVersion and compileSdkVersion? |
| 33 | Where does an Android app's data live? |
| 33 | Why can't one app read another app's files? |
| 33 | Is /sdcard a real SD card? |
| 34 | What is the difference between encoding, hashing and encryption? |
| 34 | What is the difference between symmetric and asymmetric cryptography? |
| 34 | Why is Cipher.getInstance("AES") dangerous? |
| 34 | What is an IV and does it need to be secret? |
| 34 | Why is MD5 bad? |
| 35 | What is the difference between SSL and TLS? |
| 35 | What does a certificate actually prove? |
| 35 | Why does HTTPS need certificates at all? Is encryption not enough? |
| 35 | What is a Certificate Authority? |
| 36 | What is certificate pinning? |
| 36 | Why would an app want that when TLS already validates the certificate? |
| 36 | What is actually being hashed in a pin? |
| 36 | Where do you find a pin in an APK? |
| 36 | Is an app without certificate pinning vulnerable? |
| 37 | What is root, and how is a phone rooted? |
| 37 | Name five ways an app can detect root. |
| 37 | Why is File.exists("/system/bin/su") a weak check? |
| 38 | What is tamper detection, in one sentence? |
| 38 | If an attacker modifies an APK, why can they not keep the original signature? |
| 38 | What does a self-signature check actually prove? |
| 38 | Which flag do you pass to getPackageInfo today, and why not the old one? |
| 38 | What is TracerPid? |
| 39 | What is an Android emulator, and how does it differ from a real device? |
| 39 | Name three ways an app can detect an emulator. |
| 39 | Why would an app want to know? |
| 39 | Can emulator detection be bypassed? |
| 40 | What is obfuscation, and does it make an app secure? |
| 40 | What is the difference between shrinking, optimisation and obfuscation? |
| 40 | If class names are a, b, c, how do you find anything? |
| 40 | What is a mapping file? |
| 41 | What does minifyEnabled true actually do? |
| 41 | Is ProGuard still used on Android? |
| 41 | What is mapping.txt? |
| 41 | Does obfuscation protect an API key in my code? |
| 41 | Why did my app crash only after enabling minification? |
| 42 | What is R8 and what does it do? |
| 42 | What is the difference between shrinking, optimisation and obfuscation? |
| 42 | What is mapping.txt? |
| 42 | Is R8 a security feature? |
| 43 | What is a WebView? |
| 43 | Is a WebView the same as Chrome? |
| 43 | What does setJavaScriptEnabled(true) mean for security? |
| 43 | Why is addJavascriptInterface considered dangerous? |
| 44 | What is the Network Security Config and where does it live? |
| 44 | Why doesn't my Burp certificate work any more? |
| 44 | What does cleartextTrafficPermitted="false" actually stop? |
| 44 | An app has no android:networkSecurityConfig. Is that a finding? |
| 45 | In one sentence, what problem does OAuth 2.0 solve? |
| 45 | Name the four OAuth roles and say what each one is. |
| 45 | What is the difference between authentication and authorisation, and which one is OAuth? |
| 45 | What is an authorisation code, and why is it not just a token? |
| 45 | What is a redirect URI and why does the authorisation server care about it? |
| 46 | What is a token, and why not just send the password every time? |
| 46 | Is a JWT encrypted? |
| 46 | What are the three parts of a JWT? |
| 46 | What is the difference between an access token and a refresh token? |
| 46 | What does Bearer mean in Authorization: Bearer ...? |
| 47 | What is the difference between authentication and authorisation? |
| 47 | Why can an Android app not decide whether the user is logged in? |
| 47 | An app stores a session token in SharedPreferences. Is that a finding? |
| 47 | What is a bearer token? |
| 47 | What does FLAG_SECURE do? |
| 48 | What does BiometricPrompt do? |
| 48 | Why is BiometricPrompt better than FingerprintManager? |
| 48 | What is a CryptoObject? |
| 48 | Where is a user's fingerprint stored? |
| 49 | What is the Android Keystore? |
| 49 | Where are Keystore keys stored? |
| 49 | Can another app read my Keystore key? |
| 49 | What is the difference between SecretKeySpec and a Keystore key? |
| 50 | What is a TEE? |
| 50 | What is the difference between a TEE and StrongBox? |
| 50 | If my phone is rooted, are my Keystore keys stolen? |
| 50 | How do I know whether a key is in hardware? |
| 51 | What is the difference between static and dynamic analysis? |
| 51 | Do I need root to do dynamic analysis? |
| 51 | Where do I even start? |
| 51 | What is the first thing to run on a device you have just been handed? |
| 52 | What is the difference between static and dynamic analysis? |
| 52 | What is the first thing you do with an APK? |
| 52 | Why is apktool output not enough? |
| 52 | You grep for password and get 137 results. What now? |
| 53 | What is Frida, in one sentence, and what is it not? |
| 53 | What is the difference between frida -U -f com.example.app and frida -U -n com.example.app? |
| 53 | Why does most Frida Java code sit inside Java.perform? |
| 53 | What does Interceptor.attach do that Interceptor.replace does not? |
| 53 | Why must frida-server on the device match the frida version on your host? |
| 53 | Do you need root to use Frida on Android? |
| 54 | What is Objection, in one sentence? |
| 54 | Does Objection require root? |
| 54 | What does objection -g mean? |
| 54 | What is the difference between android root disable and android root simulate? |
| 55 | What is MobSF, in one sentence? |
| 55 | Do you need root to use MobSF? |
| 55 | What is the security score and should I put it in a report? |
| 55 | MobSF says the app has fourteen exported activities. Is that fourteen findings? |
| 55 | Where does MobSF store what I upload? |
| 56 | What does jadx do? |
| 56 | Is the Java jadx produces the original source code? |
| 56 | What is the difference between jadx and apktool? |
| 56 | Why are all the class names a, b, c? |
| 56 | Can the app's developer tell that I decompiled their APK? |
| 57 | What is the difference between a disassembler and a decompiler? |
| 57 | What is a .so file and where does it live in an APK? |
| 57 | What is JNI, in one sentence? |
| 57 | Why does Ghidra show undefined4 and undefined8 everywhere? |
| 58 | What does the "I" in IDA stand for, and why does it matter? |
| 58 | What is the difference between a disassembler and a decompiler? |
| 58 | Can you use IDA Free for Android reverse engineering? |
| 58 | What is a .i64 file and why should you be careful with one? |
| 58 | What is FLIRT for? |
| 59 | What is radare2, and how is it different from Ghidra? |
| 59 | What does aaa do, and why would you not run it? |
| 59 | How do you find the strings in a library? |
| 59 | What does pdf do? |
| 60 | What is adbd? |
| 60 | Why does my device say "unauthorized"? |
| 60 | What is the difference between adb root and su? |
| 60 | Why can adb read files my app cannot? |
| 60 | Is adb over wifi safe? |
| 61 | What is the difference between adb and fastboot? |
| 61 | What does "unlocking the bootloader" mean? |
| 61 | Why does unlocking erase all your data? |
| 61 | What is fastboot boot and why should you use it? |
| 61 | Name three ways to get a device into fastboot mode. |
| 62 | What does "systemless root" mean? |
| 62 | Why do you need an unlocked bootloader? |
| 62 | What is the difference between fastboot boot and fastboot flash boot? |
| 62 | Where does Magisk keep its files? |
| 63 | What is LSPosed, in one sentence? |
| 63 | What is the difference between Xposed and LSPosed? |
| 63 | Does a module run as root? |
| 63 | Why does LSPosed need Magisk? |
| 63 | What are the two entry points a module implements? |
| 64 | What was Xposed, in one sentence? |
| 64 | Is Xposed still used? |
| 64 | Why does Xposed need root? |
| 64 | What is app_process? |
| 64 | What are the two entry points a module implements? |
| 64 | What makes an APK a module? |
| 65 | What is a hook? |
| 65 | Name three things a hook can do that reading the code cannot. |
| 65 | Why would you hook rather than patch the APK? |
| 65 | What is a trampoline? |
| 66 | What is android.app.Instrumentation? |
| 66 | What is the difference between getContext() and getTargetContext()? |
| 66 | What does INSTRUMENTATION_CODE: -1 mean? |
| 66 | Where does <instrumentation> go in the manifest? |
| 67 | What is a client-side security control, and why is it fundamentally weak? |
| 67 | Name three things an app checks to detect root. |
| 67 | What is the difference between spawning and attaching? |
| 67 | What does TracerPid tell you? |
| 68 | What is reverse engineering, in one sentence? |
| 68 | You are handed an APK and told "see what you can find". What do you do first? |
| 68 | Why is strings not enough? |
| 68 | What is the difference between static and dynamic analysis here? |
| 69 | How is Android malware different from desktop malware? |
| 69 | What is a dropper? |
| 69 | Why does malware ask for an accessibility service? |
| 69 | What is the first thing you do with a suspicious APK? |
| 69 | Is it safe to install a sample to look at it? |
| 70 | What is the difference between a bug and a vulnerability? |
| 70 | What does a fuzzer actually do? |
| 70 | Why do you need a sanitizer? Won't the program just crash? |
| 70 | What is a harness? |
| 70 | Where would you even start on a new Android device? |
| 71 | What is the difference between MASVS and MASTG? |
| 71 | What are the MASVS control categories? |
| 71 | Is the OWASP Mobile Top 10 the same thing? |
| 72 | What is the difference between a vulnerability and a finding? |
| 72 | An app has an exported Activity with no permission. Is that a vulnerability? |
| 72 | Why is severity not the same as confidence? |
| 73 | What is the difference between a lab, a tutorial and a cheatsheet? |
| 73 | Why do you need a device at all if you can decompile the APK? |
| 73 | What does "rooted" actually mean for a lab? |
| 73 | Why does this repository ship sources instead of APKs? |
| 74 | What is the difference between a finding and a case study? |
| 74 | Why would a root-detection check that "works" on your test device fail in production? |
| 74 | What does File.exists() returning false tell you? |
| 75 | What is the difference between what an interview question asks and what it measures? |
| 75 | Why do interviewers ask questions whose answers you could look up? |
| 75 | What are the five stages of a typical Android security hiring process? |
| 75 | What is the single most common reason a candidate fails a technical phone screen? |
| 75 | Why is "I don't know" a better answer than a guess? |
| 75 | What is a rubric, and why does a take-home need one? |
| 77 | What is the difference between adb shell and a root shell? |
| 77 | Why does adb root fail on my phone? |
| 77 | What does pm path do? |
| 81 | What is the difference between Zygisk and LSPlant? |
| 81 | Why does Android use zygote instead of starting a new runtime for every app? |
| 81 | What is ArtMethod? |
| 81 | What does "the hook installed but never fired" mean? |
Intermediate (359)¶
| Chapter | Question |
|---|---|
| 00 | An app you are testing fails to launch on your rooted device. Walk me through your approach. |
| 00 | Explain why client-side security controls are fundamentally limited. |
| 00 | What is the difference between MASVS and MASTG? |
| 00 | Why is android:exported important, and what changed in Android 12? |
| 01 | Explain what happens when a program dereferences a null pointer. |
| 01 | Why does a buffer overflow reach the return address? |
| 01 | What is copy-on-write and where does Android depend on it? |
| 01 | Why does LD_PRELOAD not work against an ordinary Android app? |
| 01 | What is the difference between a thread and a process, at the kernel level? |
| 01 | What does mprotect do and why do you care? |
| 01 | Two's complement — why, and what goes wrong? |
| 02 | Explain the difference between a hard link and a symbolic link. |
| 02 | What happens between fork() and execve(), and why does it matter on Android? |
| 02 | How does the INTERNET permission actually work? |
| 02 | What is a zombie process and how do you get rid of one? |
| 02 | What is umask and why does it matter for an Android app? |
| 03 | What is integer overflow, and why is it a vulnerability class rather than just a bug? |
| 03 | Java has no pointers, so it is memory safe. Is that true? |
| 03 | What is a hash map, how does it achieve O(1) lookup, and why do you care about DEX? |
| 03 | Explain compilation, interpretation, bytecode VMs, JIT and AOT, and say which Android uses. |
| 03 | Read me this stack trace and tell me what it says. |
| 03 | What is the difference between passing by value and passing by reference? |
| 03 | What is recursion and when is it dangerous? |
| 04 | Explain autoboxing and one hazard it introduces. |
| 04 | How does HashMap work, and what happens on a collision? |
| 04 | What is type erasure and what does it cost you? |
| 04 | Difference between checked and unchecked exceptions? |
| 04 | What does volatile guarantee, and what does it not? |
| 05 | You open an APK in JADX. How do you tell within ten seconds whether it was written in Kotlin? |
| 05 | What is kotlin.Metadata and why does it matter to a reverse engineer? |
| 05 | Why does hooking a suspend function with Frida usually fail on the first attempt? |
| 06 | Trace what happens between tapping an icon and the app's onCreate running. |
| 06 | Why can you not modify one file in /system on a stock device? |
| 06 | What does ro.build.tags=test-keys mean and why does it matter? |
| 06 | What is Project Mainline and how does it change your assessment of a device's patch level? |
| 07 | I want to know what happens when an app calls Context.startActivity(). Walk me through how you would find out. |
| 07 | Why does hooking checkSelfPermission to return GRANTED not let you use the camera? |
| 07 | What is the hidden-API blocklist and how do you relax it? |
| 07 | What is @SystemApi and who can use it? |
| 07 | What is Cuttlefish and why prefer it to the emulator? |
| 07 | Why does an app behave differently on your AOSP build than on a real phone? |
| 08 | An APK contains an exported BroadcastReceiver that appears nowhere in the source you were given. Explain. |
| 08 | Explain implementation versus api versus compileOnly. |
| 08 | A developer says the API key is safe because the app is obfuscated. Respond. |
| 08 | How do you tell whether an APK was built as debug or release, from the file alone? |
| 08 | What is tools:node="remove" and what does it not do? |
| 08 | Why is m snod useful to a platform security researcher? |
| 09 | An app runs as UID 1010234. What do you know about it? |
| 09 | Two packages show the same UID. What does that mean and how bad is it? |
| 09 | What runs before Application.onCreate()? |
| 09 | Why does adb install say "Performing Streamed Install"? |
| 09 | How does the system decide which process to kill under memory pressure? |
| 09 | An app has three processes but one UID. Is that a sandbox problem? |
| 10 | What is the difference between v1 and v2 signing? |
| 10 | You find an APK whose first four bytes are 64 65 78 0a. What is that and what do you do? |
| 10 | Why must zipalign run before apksigner? |
| 10 | apktool shows debuggable="false" but the app has run-as working. Explain. |
| 11 | Frida throws ClassNotFoundException for a class you can see in JADX. Why? |
| 11 | What is parent delegation and what does it protect? |
| 11 | An app loads a DEX from /sdcard. Why is that a finding, and how severe? |
| 11 | Is the bytecode verifier a sandbox? |
| 12 | The 64K limit — 64K of what, exactly? |
| 12 | What is the difference between v0 and p0 in Smali? |
| 12 | Why must move-result immediately follow an invoke? |
| 12 | An app checks its own classes.dex checksum on startup. Is that meaningful tamper detection? |
| 13 | Where does the DEX bytecode of an installed app actually live on Android 8+? |
| 13 | What is a compiler filter and which two matter most to a tester? |
| 13 | Your Frida hook installs without error but never fires. Give three causes. |
| 13 | Why is String a poor choice for a password in an Android app? |
| 14 | Why did Android use a register machine instead of a stack machine? |
| 14 | What is the move-result rule and why does it exist? |
| 14 | You add a local variable to a Smali method and the app breaks. Why? |
| 14 | What is /2addr? |
| 14 | How do you find hardcoded key material in an APK? |
| 15 | What does System.loadLibrary actually do? |
| 15 | What are PLT and GOT, and why does the indirection exist? |
| 15 | What is RELRO, and what is the difference between partial and full? |
| 15 | Is a missing stack canary a vulnerability? |
| 15 | What does Module.findExportByName search? |
| 16 | In a Frida hook on a native JNI function, what is args[0]? |
| 16 | Mangle com.my_app.Guard.check_root. |
| 16 | What is _00024 in a symbol name? |
| 16 | Why does an obfuscated app still contain a readable class name like com.vendor.security.Checker? |
| 16 | What is a jobject? |
| 16 | Local versus global reference? |
| 16 | What does local reference table overflow mean? |
| 17 | How do you determine which version of OkHttp an APK uses when the build files are unavailable? |
| 17 | Why is a bundled media parsing library more concerning than the platform's? |
| 17 | What is an initialisation ContentProvider and why do you care? |
| 17 | The client says "our Gradle file has no OpenSSL". Why might that be wrong? |
| 18 | What is AAPCS64 and why does it exist? |
| 18 | Explain adrp x0, page followed by add x0, x0, #off. |
| 18 | You see cmp w0, #100 followed by cset w0, gt. What is the C? |
| 18 | How do you tell a leaf function from a non-leaf one at a glance? |
| 18 | What is the difference between b and bl? |
| 18 | Why is there no cmp before a cbz? |
| 18 | Where is the AArch64 stack canary read from? |
| 19 | Why does a malloc return value on Android sometimes start with 0xb4? |
| 19 | Scudo or jemalloc — how do you know? |
| 19 | Which memory-safety bugs does a stock Android device catch, and why those? |
| 19 | What is the difference between a heap dump and a memory dump? |
| 20 | Explain the difference between Full Disk Encryption and File-Based Encryption, and why Android moved. |
| 20 | Why does dm-verity use a hash tree rather than a single hash of the partition? |
| 20 | What are the four Verified Boot states? |
| 20 | Why does unlocking the bootloader wipe user data? |
| 21 | Walk me through what happens between fork() in Zygote and the first line of app code. |
| 21 | Why must setgroups() come before setresuid()? |
| 21 | How is android.permission.INTERNET enforced, and why is that unusual? |
| 21 | Why is run-as restricted to debuggable apps? |
| 21 | An app has no INTERNET permission. Can it still exfiltrate data? |
| 22 | Walk me through an avc: denied line and write the rule it is asking for. |
| 22 | Two apps both run as untrusted_app. What stops one reading the other's files? |
| 22 | Where does an app's SELinux domain come from? |
| 22 | Why is a domain transition on Android a dyntransition rather than a type_transition? |
| 22 | What is the difference between file:execute and file:execute_no_trans? |
| 22 | Why is neverallow not a runtime protection? |
| 23 | An app declares a custom permission and uses it to protect a service. What do you check? |
| 23 | What is the difference between checkCallingPermission and checkCallingOrSelfPermission? |
| 23 | Why can you not revoke INTERNET from a running app? |
| 23 | What does pm grant refuse to do, and why? |
| 24 | An app declares exported="false" on an Activity. Can another app ever start it? |
| 24 | Why is a normal-protection custom permission not a security control? |
| 24 | What is the practical difference between Binder.getCallingUid() and Binder.getCallingPid()? |
| 24 | An app has a LocalServerSocket("myapp_ipc"). Who can connect? |
| 24 | Why is a service listening on 127.0.0.1 a real finding? |
| 25 | Where do transaction codes come from? |
| 25 | What does enforceInterface protect against, and what does it not? |
| 25 | Why is getCallingPid() less useful than getCallingUid()? |
| 25 | What is the difference between checkCallingPermission and checkCallingOrSelfPermission? |
| 26 | Walk through the resolution algorithm. |
| 26 | How do multiple <data> elements in one filter combine? |
| 26 | What does android:exported actually change? |
| 26 | Can I see who sent me an Intent? |
| 26 | Why did my deep link stop working after I installed a second app? |
| 27 | A provider is exported and declares android:readPermission. Is it safe? |
| 27 | Where can SQL injection occur in a provider, and why do people miss two of the three places? |
| 27 | How would you prove a sort-order injection when nothing is returned to you? |
| 27 | Why is <root-path path="." /> in a FileProvider configuration dangerous? |
| 27 | content query from adb shell succeeds against a provider. Is that a finding? |
| 28 | When would you use Messenger instead of AIDL? |
| 28 | android:exported on a service — what is the default? |
| 28 | How does a service know who is calling it? |
| 28 | What does BIND_AUTO_CREATE do? |
| 29 | What does an ordered broadcast give you that an unordered one does not? |
| 29 | Why were sticky broadcasts deprecated? |
| 29 | What changed at API 26? |
| 30 | What does singleTop actually do? |
| 30 | What is taskAffinity and what is its default? |
| 30 | When is taskAffinity consulted? |
| 30 | Can an Activity find out which app started it? |
| 30 | What is tapjacking and how do you stop it? |
| 31 | What is fragment injection? |
| 31 | Is it still exploitable? |
| 31 | Where do you put FLAG_SECURE for a sensitive Fragment? |
| 31 | Why did setRetainInstance get deprecated? |
| 32 | An app declares a custom permission and uses it to protect a service. What do you check? |
| 32 | Explain <activity-alias> and why it matters to an auditor. |
| 32 | What is taskAffinity and how is it abused? |
| 32 | The app has allowBackup="true". Walk me through assessing it. |
| 32 | What does <path-permission> do? |
| 33 | What is the difference between internal and external storage if they are on the same chip? |
| 33 | What did scoped storage actually change? |
| 33 | An app stores a session token in SharedPreferences. Is that a critical finding? |
| 34 | Explain a padding oracle attack. |
| 34 | Why is GCM nonce reuse worse than CBC IV reuse? |
| 34 | When would you choose ChaCha20-Poly1305 over AES-GCM? |
| 34 | What is the difference between a MAC and a signature? |
| 34 | How many iterations should PBKDF2 use? |
| 34 | An app stores an AES key in EncryptedSharedPreferences. Is that secure? |
| 35 | Why is X509TrustManager.checkServerTrusted unusually dangerous to implement? |
| 35 | What changed at API 24, and why? |
| 35 | Your Burp CA is installed and the browser trusts it, but the app does not. Why? |
| 35 | How does an intercepting proxy work? |
| 36 | An app uses OkHttp and you find okhttp3.CertificatePinner in the DEX. Does it pin? |
| 36 | Why does CertificatePinner run after the trust manager rather than instead of it? |
| 36 | What is the difference between restricting the trust store and pinning? |
| 36 | Why is a single-pin pin set a finding? |
| 37 | You hook java.io.File.exists() and the app still detects root. Give four explanations. |
| 37 | What is the difference between hooking File.exists and hooking libc.so!access? |
| 37 | Why does Magisk's DenyList sometimes defeat a check with no hooking at all? |
| 38 | Why does a DEX CRC check add nothing on a modern APK? |
| 38 | Where does the expected DEX hash live, and why is that a problem? |
| 38 | Does TracerPid detect Android Studio's debugger? |
| 38 | Why hook ApplicationPackageManager rather than PackageManager? |
| 38 | What is the difference between hasMultipleSigners() and hasPastSigningCertificates()? |
| 39 | Why does hooking SystemProperties.get fail to change Build.MODEL? |
| 39 | An app checks /dev/qemu_pipe. Is that a good check? |
| 39 | Why is File.exists() a weaker primitive than stat() for this? |
| 39 | How does ro.boot.hardware get its value? |
| 40 | An app has no readable strings in classes.dex. What do you do? |
| 40 | How do you tell a packed app from a heavily obfuscated one? |
| 40 | Why does hooking JNI_OnLoad sometimes fail to catch a packer's anti-debug? |
| 40 | What is control-flow flattening and how do you recognise it? |
| 40 | Why is InMemoryDexClassLoader significant for analysis? |
| 41 | Explain the difference between -keep, -keepnames and -keepclassmembers. |
| 41 | What is the difference between * and **? |
| 41 | Why does -keep class com.app.** { *; } matter? |
| 41 | What does -keepattributes Signature do and why would you need it? |
| 41 | Your app's crash reports are unreadable. What is the correct fix? |
| 41 | What is consumerProguardFiles? |
| 42 | Why did my app work in debug and crash in release? |
| 42 | What is R8 full mode and what breaks in it? |
| 42 | What is $$ExternalSyntheticLambda? |
| 42 | Can you get the original names back without mapping.txt? |
| 43 | What did @JavascriptInterface fix in API 17, and what did it not fix? |
| 43 | Does the network security config apply to a WebView? |
| 43 | Why does my OkHttp pinning bypass not work on this app's WebView traffic? |
| 43 | Where do WebView cookies live, and why does that matter at logout? |
| 44 | Walk me through inheritance. |
| 44 | What does <debug-overrides> do in a release build? |
| 44 | How do you compute a pin value? |
| 45 | Why can an Android app not hold a client secret? Walk me through the consequences. |
| 45 | What attack does PKCE stop, and how? |
| 45 | S256 versus plain — what is the difference and does it matter? |
| 45 | The app sends code_challenge=...&code_challenge_method=S256. Is PKCE implemented? |
| 45 | Why is using a WebView for the authorisation flow a finding in itself? |
| 45 | So what is the correct pattern? |
| 45 | What is state and what does it protect against? |
| 46 | What is alg: none and why is it dangerous? |
| 46 | Explain HS/RS algorithm confusion. |
| 46 | Why can a mobile app not verify an HS256 token? |
| 46 | Where should an Android app store a token? |
| 46 | What does aud do and what happens if nobody checks it? |
| 46 | Is a long-lived token always bad? |
| 47 | Walk me through testing whether logout works. |
| 47 | An app has a one-hour access token. What is its session lifetime? |
| 47 | How would you find account enumeration, and what severity would you give it? |
| 47 | Why is a hard account lockout often the wrong control? |
| 47 | What does GET_ACCOUNTS grant on a modern Android device? |
| 48 | What is the difference between BIOMETRIC_STRONG and BIOMETRIC_WEAK? |
| 48 | What happens if you pass a CryptoObject and also allow DEVICE_CREDENTIAL? |
| 48 | Why does Cipher.init throw UserNotAuthenticatedException, and what should the app do? |
| 48 | What does setInvalidatedByBiometricEnrollment(true) protect against? |
| 49 | Does the Keystore stop a rooted attacker from decrypting the data? |
| 49 | What does setUserAuthenticationRequired(true) actually do? |
| 49 | Why would a key become permanently invalid? |
| 49 | What is a key blob and why can it not be stolen? |
| 49 | What does KeyInfo.getSecurityLevel() tell you and why should you check it? |
| 50 | Walk me through what happens when a user types their PIN. |
| 50 | Why can't a rooted device forge that token? |
| 50 | Why do my keys stop working when the user changes their PIN? |
| 50 | What does a key attestation certificate actually prove? |
| 51 | Why take a control run? |
| 51 | Your delta report says nothing changed. What are the possible explanations? |
| 51 | Why did nothing happen when I hooked it? |
| 51 | How do you know you covered enough? |
| 51 | Static or dynamic first? |
| 52 | What is the difference between a hit, a lead and a finding? |
| 52 | A scanner reports 132 high-confidence secrets. How do you proceed? |
| 52 | How do you decide the severity of a hardcoded API key? |
| 52 | What can static analysis not see on Android? |
| 53 | Your hook installs without error and never fires. Walk me through your diagnosis. |
| 53 | Explain the ClassLoader problem and how you solve it. |
| 53 | What exactly does Java.deoptimizeEverything() do, and when is it the wrong tool? |
| 53 | Why does the same script work on your emulator and fail on the client's phone? |
| 53 | What is rpc.exports for, and why would you use it over console.log? |
| 53 | What is frida-gadget and what does it cost you? |
| 54 | What is the difference between a hook that installs and a hook that fires? |
| 55 | Explain the difference between MobSF's severity and the severity you would put in a report. |
| 55 | Why does MobSF report every exported component at roughly one severity? |
| 55 | You scan the same APK twice and get identical reports even though you upgraded MobSF. Why? |
| 55 | A MobSF report says "the app does not implement certificate pinning". How much do you trust it? |
| 55 | What is the first thing you read in a MobSF report? |
| 55 | Distinguish MobSF's manifest_analysis from its component inventory. |
| 56 | jadx says "Method not decompiled". What now? |
| 56 | What does --show-bad-code do, and when should you use it? |
| 56 | Does --deobf undo obfuscation? |
| 56 | Why do some apps decompile to almost-original code and others to str2 and iArr? |
| 56 | You find a hardcoded API key in decompiled Java. Is that the finding? |
| 56 | What does Removed duplicated region for block mean? |
| 57 | What is P-Code and why does the decompiler use an intermediate representation at all? |
| 57 | Why does defining the JNIEnv struct transform decompiled JNI output so dramatically? |
| 57 | Ghidra decompiled a function and the C looks nonsensical. What are the possible causes? |
| 57 | What does analyzeHeadless give you that the GUI does not? |
| 58 | Explain what happens when you press F5 on a function. |
| 58 | How is Hex-Rays' microcode different from Ghidra's P-Code, and why would you care? |
| 58 | You open a stripped .so and there are no Java_* exports. What do you conclude? |
| 58 | Why might a patched function have no effect? |
| 58 | What is a type library and why is loading one the first thing you do? |
| 59 | Explain radare2's command grammar. How would you find a command you have never used? |
| 59 | What is the difference between sym.access and sym.imp.access? |
| 59 | How would you list every place a library reads a system property? |
| 59 | You need to know which of 400 libraries call ptrace. How? |
| 59 | How do you patch a binary, and what is the trap? |
| 60 | Walk me through the 24-byte ADB header. |
| 60 | How does ADB multiplex several shells over one cable? |
| 60 | What does "Always allow from this computer" store, and where? |
| 60 | What exactly happens when you run adb install? |
| 60 | Why is adb exec-out cat file.bin > f.bin correct where adb shell cat is not? |
| 61 | Walk me through what happens on the wire when I run fastboot flash boot boot.img. |
| 61 | What is fastbootd and why does it exist? |
| 61 | What is the sparse image format and why is it not compression? |
| 61 | What does --disable-verity actually do? |
| 61 | What is the difference between A/B slots and dynamic partitions? |
| 62 | Explain how a Magisk module adds a file to /system without writing to /system. |
| 62 | What exactly does DenyList do? |
| 62 | You add an app to DenyList and your Burp interception stops working. Why? |
| 62 | What is Zygisk and why is it the right injection point? |
| 62 | Why does Magisk need to patch SELinux policy? |
| 63 | Why does every findAndHookMethod call take a ClassLoader? |
| 63 | What happens if you call param.setResult() in beforeHookedMethod? |
| 63 | Two modules hook the same method. What order do they run in? |
| 63 | Your module installs a hook and it never fires. First three things you check? |
| 63 | Why can a module not hook a native function? |
| 63 | What does compileOnly mean for the Xposed API, and what breaks without it? |
| 64 | Why did classic Xposed have to modify the system partition, when Magisk does not? |
| 64 | What did hookMethodNative actually do? |
| 64 | What is the runtime signature of a classic-Xposed hook that LSPosed does not produce? |
| 64 | Why does a hook need a backup of the original? |
| 64 | Why is there no scope in classic Xposed, and what did that cost? |
| 64 | A module built in 2015 — will it run today? |
| 64 | Why must the Xposed API be compileOnly? |
| 65 | Why is inline hooking harder on arm64 than on x86? |
| 65 | A PLT hook and an inline hook on the same function behave differently. How? |
| 65 | Why do you need to flush the instruction cache? |
| 65 | Why does LD_PRELOAD not work on Android apps? |
| 66 | Does the target application need to be debuggable for am instrument to work? |
| 66 | So what happens if the signatures do not match? |
| 66 | What is the relationship between AndroidJUnitRunner and Instrumentation? |
| 66 | Why does the app restart when you run an instrumentation? |
| 66 | How do you pass data into an instrumentation and get results out? |
| 67 | Why is hooking the verdict function usually a mistake? |
| 67 | How do you defeat a check for TCP 27042 without writing a hook? |
| 67 | What is the difference between Debug.isDebuggerConnected() and a TracerPid check? |
| 68 | jadx produced clean Java for a method. Is that enough to write a finding? |
| 68 | How do you find the native implementation of a native method? |
| 68 | Your Frida hook installed and never fired. What does that tell you about the app? |
| 69 | Why does ContentProvider.onCreate() matter for persistence? |
| 69 | What does a second process buy a sample? |
| 69 | Why is getInstallerPackageName() weak, and what replaces it? |
| 69 | A sample's config is AES-encrypted. Where is the key? |
| 69 | What is RegisterNatives and why does it matter to an analyst? |
| 70 | You have 400 crash files. What now? |
| 70 | Your campaign has run for 40 CPU-hours with no crashes. What do you conclude? |
| 70 | ASan reports nothing but you are sure there is an overflow. What could be going on? |
| 70 | What is the difference between -fsanitize=fuzzer and -fsanitize=fuzzer-no-link? |
| 70 | Why fuzz on the host rather than the device? |
| 71 | An app has no obfuscation and no root detection. Is that a MASVS failure? |
| 71 | How would you handle a real finding that does not map to any MASVS control? |
| 71 | A client says "make us MASVS compliant". What is your response? |
| 72 | You grep for FLAG_SECURE and get three hits across seventeen apps. What do you report? |
| 72 | Your scanner reports the same control in 18 of 18 apps. What is your first move? |
| 72 | How do you decide whether an exported ContentProvider is a finding? |
| 73 | adb install fails. Walk me through your diagnosis. |
| 73 | You run am start with an extra and nothing happens, but the command reports success. Why? |
| 73 | How would you decide which labs a new team member can run on day one? |
| 73 | What is a "vantage" and why does it belong in a report? |
| 74 | Why can -O2 leak a string that -O0 hides, from identical source? |
| 75 | Your two interviewers consistently disagree about the same candidates. What is wrong? |
| 75 | Why is finding count a poor take-home metric? |
| 75 | What does it mean when a debrief produces "insufficient signal"? |
| 75 | How would you interview for a skill you do not have yourself? |
| 77 | What is the difference between adb forward and adb reverse? |
| 77 | How do you get an app's private data with no root? |
| 81 | Why is patching one ArtMethod entrypoint not enough to intercept every call? |
| 81 | What is the difference between preAppSpecialize and postAppSpecialize? |
| 81 | How does InMemoryDexClassLoader change the artifact story? |
| 81 | What is hidden-API enforcement, and why does a hook framework care? |
| 81 | Why does a hook work with verify but fail with speed? |
Senior (297)¶
| Chapter | Question |
|---|---|
| 00 | A client says "we have Frida detection, so runtime attacks are mitigated." How do you respond? |
| 00 | How would you decide whether a finding is a false positive? |
| 00 | Design a mobile security programme for a company with forty apps and no existing programme. |
| 01 | Trace, layer by layer, what Frida does when you run frida -U -f com.target. |
| 01 | You have a native crash. Walk me through triage. |
| 01 | Why is a use-after-free more dangerous than a null pointer dereference? |
| 01 | Why is the process, and not the thread, the security boundary on Android? |
| 01 | What is the significance of X18 on Android? |
| 02 | An app's root detection fails to trigger even though the device is rooted with Magisk. Explain the mechanism. |
| 02 | How would you determine, on a live device, whether a given process is being debugged, without using any tool? |
| 02 | Why does LD_PRELOAD not work against a normal Android app, and what are the alternatives? |
| 02 | You have shell access as UID 2000. What can and cannot you do, and why? |
| 02 | Describe the complete permission check that occurs when an app opens a file. |
| 03 | Walk me from a line of Kotlin to an instruction the CPU executes on an Android device. |
| 03 | Why do secrets end up in a heap dump, and what would you do about it? |
| 03 | Give me four ways pointers kill you, and say which of them Java prevents. |
| 03 | You are handed 8 000 decompiled classes and one question. Describe your method. |
| 03 | What is Big-O, and when does it actually matter to you? |
| 04 | Walk me through what happens between javac Hello.java and the code running on a phone. |
| 04 | Why is private not a security control on Android? |
| 04 | How would you find every network endpoint an app can talk to, without running it? |
| 04 | Explain the deserialization threat model and why it is different from parsing JSON. |
| 05 | Walk me through reading a decompiled coroutine. |
| 05 | How do Kotlin's inline functions affect your ability to hook code? |
| 05 | Kotlin claims null safety. Is a Kotlin app therefore free of NullPointerExceptions? |
| 06 | Walk through SpecializeCommon() and explain what each step contributes to the sandbox. |
| 06 | Where is the actual security boundary between two apps, and what is not one? |
| 06 | Explain the Zygote ASLR weakness and assess how much it matters. |
| 06 | Why can SELinux deny a property write but not a property read? |
| 07 | Where is Android's app sandbox actually implemented? |
| 07 | Describe the confused-deputy pattern around clearCallingIdentity, and how you would hunt for it. |
| 07 | A client hands you an OEM phone. What do you do in the first thirty minutes, and why? |
| 07 | The AOSP source says one thing and the device does another. How do you resolve it? |
| 07 | Explain patch gapping and how you would evidence it in a report. |
| 08 | Walk me through the complete app build pipeline, naming the tool at each stage. |
| 08 | Why is a Gradle build a supply-chain risk in a way that a Soong build is not? |
| 08 | Explain dependency confusion in Gradle specifically, and give the exact fix. |
| 08 | The client's proguard-rules.pro looks sensible but nothing in the APK is obfuscated. Where do you look? |
| 08 | What changes for you as a tester when an app ships as an AAB rather than an APK? |
| 09 | Walk me through everything that happens between am start and the first frame. |
| 09 | Where is signature verification in the install flow, and why does its position matter? |
| 09 | Why does installd exist? Why not have system_server do the work? |
| 09 | A client says "we check the calling package name, so we are safe." Respond. |
| 09 | How would you find code that runs before an app's integrity checks? |
| 10 | Explain precisely which bytes the v2 signature covers, and why the EOCD is treated specially. |
| 10 | Why is key rotation hard, and what does v3 actually add? |
| 11 | Explain what the runtime does and does not enforce, and why it matters in a report. |
| 11 | Why must you spawn rather than attach against a packed app? |
| 11 | How does Zygote's design weaken ASLR, and how much does it matter? |
| 12 | Explain the encoded_catch_handler signed-size convention and why it exists. |
| 12 | How would you detect a DEX crafted to make analysis tools disagree with the runtime? |
| 12 | Where do hardcoded cryptographic keys end up in a DEX, and how do you find them? |
| 13 | Explain precisely how Frida hooks a Java method. |
| 13 | Why can two devices on the same Android version behave differently under instrumentation? |
| 13 | What is deoptimization, why does it exist, and how do you use it? |
| 13 | An app deletes its own OAT file at startup. What is it trying to achieve and does it work? |
| 14 | Explain what quickening was, and why it breaks your tools. |
| 14 | Why did Froyo's JIT compile traces rather than methods? |
| 14 | A patched APK installs but crashes when the user opens one screen. Diagnose it. |
| 14 | How does obfuscation change your approach at this level? |
| 14 | When is Smali patching the wrong tool? |
| 15 | Walk me through what happens between dlopen returning and JNI_OnLoad being called. |
| 15 | A GOT hook silently does nothing. Diagnose it. |
| 15 | How would you find a function that is not exported? |
| 15 | Why can Android reject a library that loads perfectly well on desktop Linux? |
| 16 | Explain why a bounds check in Java does not protect the native code behind it. |
| 16 | What happens if a JNI function fails and you do not check? |
| 16 | Which JNI calls are legal while an exception is pending? |
| 16 | You hook a native function and every argument looks like garbage. What went wrong? |
| 16 | Why does RegisterNatives make analysis harder, and how do you defeat it? |
| 16 | How would you find a use-after-free reachable from Java? |
| 17 | How would you decide whether a CVE in a bundled library is actually exploitable in this app? |
| 18 | How would you find every function in a stripped library that might be a security check? |
| 18 | Why does a missing stack canary not automatically constitute a finding? |
| 18 | Explain the Thumb bit. |
| 19 | Explain the Zygote's consequence for ASLR. |
| 19 | An overflow writes 20 bytes past a 32-byte allocation. What does it hit? |
| 19 | HWASan versus MTE — when would you recommend each? |
| 20 | An app reads ro.boot.verifiedbootstate and refuses to run unless it is green. Assess this control. |
| 20 | Explain precisely why Magisk does not break dm-verity. |
| 20 | Where should Play Integrity's verdict be evaluated, and what exactly goes wrong if it is evaluated on the device? |
| 20 | Why is targetSdkVersion a security control? |
| 21 | A client says "our data is safe because the sandbox protects it." What is your response? |
| 21 | Explain how an isolated process communicates with its host and why that interface is the whole attack surface. |
| 21 | Why does seccomp block setuid when the process already has no capabilities? |
| 21 | How do MCS categories relate to the UID sandbox? |
| 21 | A pentester reports "the app stores a session token in SharedPreferences — critical". Critique that finding. |
| 22 | A client shows you 6,000 SELinux denials in dmesg and asks how bad it is. What do you say? |
| 22 | You have shell on a device but not root. What can you still learn about its SELinux posture? |
| 22 | Explain why dex2oat having its own domain is a real trust property. |
| 22 | Where would you look first for a privilege-escalation path on an OEM build? |
| 22 | How does SELinux relate to the app sandbox in chapter 21? |
| 23 | Explain permission squatting, and state what actually happens on a modern device. |
| 23 | Why is signature\|privileged weaker than signature? |
| 23 | How would you find a confused-deputy issue on an OEM device? |
| 24 | Explain the confused deputy problem with a concrete Android example. |
| 24 | What are the vulnerability patterns around clearCallingIdentity? |
| 24 | A ContentProvider is exported="false". Is its data safe? |
| 25 | Precisely why can sender_euid not be forged, when the field is in a struct the caller writes? |
| 25 | Why is a ThreadLocal inside a Binder service dangerous? |
| 26 | Explain intent redirection, and why it is a privilege escalation rather than just a routing bug. |
| 26 | What exactly does a mutable PendingIntent give an attacker? |
| 26 | Why did Android make FLAG_IMMUTABLE/FLAG_MUTABLE mandatory at API 31? |
| 26 | An app declares android:autoVerify="true". Is its deep link exclusive? |
| 26 | When is an exported activity that accepts an implicit Intent not a finding? |
| 27 | Why is call() more dangerous than query()? |
| 27 | Explain URI-permission laundering. |
| 27 | How do you enumerate a provider's valid paths when you have no source? |
| 27 | A provider is exported="false" but the app has android:sharedUserId. What changes? |
| 28 | Why is a caller check in onBind useless, precisely? |
| 28 | An exported service is guarded by a custom permission. Is that enough? |
| 29 | Inside onReceive, how do you determine who sent the broadcast? |
| 29 | Distinguish receiverPermission from android:permission on a receiver. |
| 29 | How do you enumerate every receiver on a device, including the runtime ones? |
| 30 | Explain task hijacking, and tell me whether it still works. |
| 30 | If affinity namespacing blocks that, is the task model safe? |
| 30 | Walk me through a confused-deputy Activity. |
| 30 | Why does getIntent() go stale? |
| 31 | An app has no PreferenceActivity anywhere. Have you ruled out fragment injection? |
| 31 | The team fixed it with fragmentName.startsWith("com.ourapp."). Are you satisfied? |
| 31 | What is the difference between the platform and AndroidX Fragment loaders, and does it matter? |
| 31 | You hardened isValidFragment with a correct allowlist. What did you not fix? |
| 32 | Why do you cross-check apktool output against aapt2 and dumpsys? |
| 32 | An app targets API 30 and its PendingIntent usage is unaudited. Why does that matter? |
| 33 | allowBackup="true". Walk me through turning that into a finding. |
| 33 | An app deletes rows on logout. How do you check whether the data is gone? |
| 33 | You find a world-readable file in another app's data directory. Is it exploitable? |
| 34 | An app uses AES-GCM with a hardware-backed key. What can you still attack? |
| 34 | You find an ECDSA implementation in an app. What do you check? |
| 34 | How would you prove a nonce-reuse finding to a sceptical developer? |
| 35 | Why does a raw SSLSocket not verify the hostname, and what is the fix? |
| 35 | Why is a static-RSA cipher suite a finding when the encryption itself is sound? |
| 35 | Distinguish trust configuration from pinning. |
| 35 | What does TLS 1.3 change for a mobile tester? |
| 36 | Walk me from client.newCall(request).execute() to the kernel. |
| 36 | Why is hooking SSLContext.init insufficient on a modern app? |
| 36 | An app has a <pin-set> in XML and also builds a custom SSLContext. What happens? |
| 36 | A hand-rolled pinner compares against the chain the server sent. What is wrong with that? |
| 36 | You need to defeat a native pin in a stripped, statically linked BoringSSL. Options? |
| 36 | What is a backup pin and why does it not weaken the control? |
| 37 | Explain the trust boundary and why client-side detection sits on the wrong side of it. |
| 37 | How would you approach an app whose native root check uses inline syscall assembly? |
| 37 | What is the most common serious flaw in a Play Integrity integration? |
| 38 | Design the consequence. What should the app do when a check fails? |
| 38 | You find that the app checks its signature and, on failure, hides the transfer button. Severity? |
| 38 | Why is .init_array more interesting than JNI_OnLoad to an analyst? |
| 38 | Your static mapper reports a self-signature check in 18 of 18 apps. What do you conclude? |
| 39 | You find isEmulator() in an app. Walk me through the assessment. |
| 39 | Why is a weighted score better than a boolean, given both are hookable? |
| 39 | A developer says emulators are slower, so they will time a benchmark. Respond. |
| 39 | How would you defend a payment flow against emulator-based fraud, realistically? |
| 40 | Argue both sides of "obfuscation is security theatre". |
| 40 | Design a string-protection scheme that resists the standard Frida dump. Then break it. |
| 40 | An app dumps a valid DEX from memory but the method bodies are empty. What is happening? |
| 40 | When is deobfuscation the wrong use of your time? |
| 41 | Why can R8 delete a class that ProGuard would keep, given the same rules? |
| 41 | What is includedescriptorclasses for? |
| 41 | How would you audit what rules a build actually used? |
| 41 | Describe a case where a keep rule preserves a name for a reason that no longer applies. |
| 42 | Why is retracing an R8 stack trace not a simple dictionary lookup? |
| 42 | An app ships mapping.txt in its assets. How do you rate it, and why? |
| 42 | Two builds of the same app have different obfuscated names. Why, and what follows? |
| 42 | How would you prove a recovered mapping.txt belongs to a particular APK? |
| 43 | An app targets API 29. Which WebView defaults differ from an app targeting 30? |
| 43 | Why is isolatedProcess relevant to WebView, and what does it not protect? |
| 44 | A <pin-set> has expiration="2021-07-01". What is the app's behaviour today? |
| 44 | Name three separate reasons pinning silently does not happen. |
| 44 | How would you prove, on a device, what policy an app is actually running? |
| 44 | An app's config looks perfect and your proxy still sees nothing. Enumerate the possibilities. |
| 45 | Walk me through validating an id_token. What gets skipped, and what does skipping it cost? |
| 45 | state versus nonce. Why do both exist? |
| 45 | You are told "the app is fine, it uses a well-known SDK." How do you respond? |
| 45 | How does mobile OAuth interact with certificate pinning and with your ability to test at all? |
| 46 | Why is revoking a JWT hard, and what are the real options? |
| 46 | Rotation versus reuse detection. |
| 46 | When would you choose opaque tokens over JWTs? |
| 46 | What does DPoP actually change about severity? |
| 46 | A developer says "the token is safe, it is in the Keystore". What do you ask? |
| 47 | Design the credential exchange for a first-party mobile login. |
| 47 | How do you make MFA non-bypassable on a mobile client? |
| 47 | What is device binding, and how do you tell real from theatrical? |
| 47 | Where does AccountManager store its data, and what protects it? |
| 47 | A scanner reports that 15 of 17 apps have a client-side authentication gate. React. |
| 48 | An app calls setUserAuthenticationRequired(true) and passes a CryptoObject. Is it secure? |
| 48 | Why can't root defeat an auth-bound key? |
| 48 | What is the biggest limitation of static analysis here? |
| 49 | Walk me through what happens between cipher.doFinal(data) and the ciphertext coming back. |
| 49 | How would you assess whether an app's biometric protection is real? |
| 49 | Design a client-server flow that resists a rooted client. |
| 49 | An app requests StrongBox and falls back. Is that a vulnerability? |
| 50 | An app requests StrongBox and catches the exception. What do you check? |
| 50 | A server verifies attestation. Where is the bug? |
| 50 | How would you prove to a developer that ro.boot.verifiedbootstate is worthless? |
| 50 | What is rollback resistance and why do so few keys have it? |
| 51 | How would you establish that a piece of code is reachable? |
| 51 | An app contains a CertificatePinner. Does it pin? |
| 51 | You have no root and no frida-server. How much of a mobile assessment can you still do? |
| 51 | What goes in the "limits" section of a dynamic report? |
| 52 | How would you establish that a piece of code is reachable? |
| 52 | An app contains a CertificatePinner. Does it pin? |
| 52 | How do you keep a static pipeline from becoming a noise generator in CI? |
| 52 | What goes in the "limits" section of a static report? |
| 53 | Describe the injection sequence in as much detail as you can. |
| 53 | How does a Java hook work at the ART level? |
| 53 | When would you use Stalker instead of Interceptor, and what does it cost? |
| 53 | Explain the difference between Backtracer.ACCURATE and Backtracer.FUZZY and when each lies. |
| 53 | A NativeCallback you installed causes a crash five minutes later, in unrelated code. Why? |
| 53 | How would you find a key that never crosses a hookable API boundary? |
| 54 | What is Objection's process footprint, and why does it matter operationally? |
| 55 | MobSF flags addJavascriptInterface at CVSS 8.8. Walk me through turning that into a finding. |
| 55 | A client's CI fails builds below a MobSF score of 60. What do you tell them? |
| 55 | How do you report the things MobSF could not see? |
| 55 | Two MobSF reports for the same package disagree. Diagnose it. |
| 55 | What does obfuscation do to a MobSF report, precisely? |
| 56 | Explain why a decompiler can fail on control flow that a disassembler handles fine. |
| 56 | When is decompiled Java insufficient evidence for a finding? |
| 56 | Give a concrete example of jadx producing wrong code with no warning. |
| 56 | Why does jadx handle compiler output better than hand-written or obfuscated bytecode? |
| 56 | How do you decide, on a 20,000-class app, what to read? |
| 56 | Two versions of an app, and you want the diff. What breaks naively? |
| 57 | When do you reach for Ghidra, when IDA Pro, and when radare2? |
| 57 | What can a decompiler fundamentally not tell you? |
| 57 | How do you connect a Ghidra address to a live process? |
| 57 | You are given forty APKs and one week. Design the analysis. |
| 58 | A colleague wants to buy IDA Home to do client work. What do you tell them? |
| 58 | How would you identify statically-linked OpenSSL in a 40 MB stripped library? |
| 58 | Why is FLIRT weaker on AArch64 than on x86, structurally? |
| 58 | How do you decide whether an analysis is complete enough to report? |
| 58 | Frida and IDA's debugger are both attached to a process. What happens? |
| 59 | When do you reach for radare2, when Ghidra, and when IDA Pro? |
| 59 | A library has one export, JNI_OnLoad. Its native methods are called from Java. Find them. |
| 59 | You patched a check function to return true and verified the bytes. Behaviour did not change. Why? |
| 59 | How do you analyse a library that only exists in memory? |
| 60 | An IoT device has an open port that answers on 5555. Take me from there to a verdict. |
| 60 | Why is an authorised ADB key more dangerous than an SSH key, and less dangerous? |
| 61 | Why can you not unlock a bootloader purely from fastboot mode? |
| 61 | A device shows ro.boot.verifiedbootstate = green. What have you learned? |
| 61 | Why is relocking a bootloader with a patched boot image dangerous? |
| 61 | Under what circumstances is a bootloader memory-corruption bug not a serious vulnerability? |
| 61 | How do you tell an unlocked bootloader from outside the device? |
| 62 | Walk me through, in order, what happens from power-on to magiskd running. |
| 62 | Why is Magisk's su not a setuid binary, and what does that buy? |
| 62 | Compare Magisk and KernelSU from a detection standpoint. |
| 63 | Explain, mechanically, why LSPosed leaves no injection event in the target process. |
| 63 | Why is ArtMethod's layout dangerous to hard-code? |
| 63 | What is the security significance of a module's scope including android? |
| 63 | An application wants to detect LSPosed. Rank the approaches. |
| 63 | When is Frida the wrong tool and LSPosed the right one? |
| 64 | You are given an APK. Can you tell whether it is a classic-Xposed module or an LSPosed module? |
| 64 | How would you measure how much Xposed-detection code is actually shipping? |
| 65 | Your Frida hook installs and never fires. Walk me through the diagnosis. |
| 65 | Why can a self-integrity check never be sufficient? |
| 65 | You need to intercept a call a library makes to itself. Options? |
| 65 | When would you choose a PLT hook over an inline hook, deliberately? |
| 66 | Exactly when does Instrumentation.onCreate() run relative to the app's own startup? |
| 66 | What does that ordering mean for an assessment? |
| 66 | Describe the class loader graph inside an instrumented process. |
| 66 | Can an ordinary application, not the shell, start an instrumentation? |
| 66 | What does --no-hidden-api-checks actually change? |
| 67 | Describe the five seams of a client-side control and give the cost and detectability of each. |
| 67 | An app calls abort() from JNI_OnLoad when it sees Frida. Walk me through your response. |
| 67 | When do you stop hooking? |
| 67 | Your client says "we added root detection, are we secure now?" What do you say? |
| 68 | You have a hypothesis and two possible experiments. How do you choose? |
| 68 | Two of your sources disagree. What do you do? |
| 68 | How do you decide when you have done enough? |
| 68 | When do you need to understand an algorithm rather than merely predict it? |
| 69 | You have a 40 MB APK with a 90 KB classes.dex. What is your next step? |
| 69 | A sample does nothing when you run it. What are the possible causes? |
| 69 | How much is a shared signing certificate worth for attribution? |
| 69 | Why does a dropper have a launcher Activity when it has no UI? |
| 69 | How do you decide whether a capability request is malicious? |
| 70 | Walk me through turning a crash into a severity rating without writing an exploit. |
| 70 | A vendor closes your report as "not reproducible". What went wrong and what do you do? |
| 70 | How do you decide between fuzzing and code review for a given target? |
| 70 | What is a parser differential and why is it hard to fuzz for? |
| 70 | When do you stop? |
| 71 | Where does MASVS mislead a tester, and how do you compensate? |
| 71 | How would you use MASVS across a portfolio of forty apps? |
| 72 | A client asks why you rated a cross-app file read as Informational. |
| 72 | How do you report coverage without lying? |
| 72 | When is "the app does not detect root" a finding? |
| 73 | Why is Binder.getCallingUid() inside onReceive not the caller's uid? |
| 73 | You cannot reproduce a documented finding. What do you do? |
| 74 | How do you grade a root-detection check that cannot function? |
| 74 | When two integrity signals disagree, which do you believe? |
| 75 | How do you assess "honest severity" in an interview? |
| 75 | What is the interview equivalent of a false-positive rate, and how do you measure it? |
| 75 | Should take-homes exist? |
| 75 | Where is your loop leaking legally, and how would you know? |
| 77 | Walk me through what happens between typing am start -n a/b and the activity appearing. |
| 77 | How would you verify a dumpsys finding is real and not an artefact of your privileged shell? |
| 81 | Walk me through what happens between fork() and the first line of app code. |
| 81 | How would you prove that a suspicious executable mapping is a hook and not the JIT? |
| 81 | What does LSPlant's Deoptimize actually do, and when does it not help? |
| 81 | How does ZygiskNext differ from Magisk's built-in Zygisk? |
| 81 | Why does Vector ship a dex2oat wrapper? |
Staff Engineer (196)¶
| Chapter | Question |
|---|---|
| 00 | How do you scale mobile security testing across a large portfolio without scaling headcount linearly? |
| 00 | How do you evaluate whether a new mobile security tool is worth adopting? |
| 02 | Design a detection strategy for an app that must know whether it is running in a modified environment, given that all filesystem-level checks can be defeated by namespace manipulation. |
| 02 | A vendor daemon exposes a UNIX socket in /dev/socket with mode 0666. Walk through the impact assessment. |
| 02 | How would you build a per-app network monitoring capability on Android, and what are its limits? |
| 03 | A developer says "we do not need to validate this, it comes from our own app". Respond. |
| 05 | How would you configure R8 for a Kotlin app to maximise obfuscation without breaking it? |
| 06 | You are assessing a fleet of OEM Android devices. Where do you focus, and why? |
| 06 | Evaluate Project Mainline as a security architecture decision. |
| 07 | Design a research environment for a team doing continuous Android platform security work. Justify each choice. |
| 07 | Google publishes AOSP but keeps GMS proprietary. Analyse that arrangement from a security standpoint. |
| 07 | How would you decide whether a given piece of Android security work should be done by reading source or by reversing a binary? |
| 08 | Design a build pipeline for a banking app that resists a compromised developer workstation. |
| 08 | A vendor asks you to accept minifyEnabled true as the mitigation for a hardcoded API key finding. Argue the position. |
| 08 | How would you detect that a third-party SDK update introduced a new exported component, across fifty apps, continuously? |
| 09 | Design a migration off sharedUserId for a shipped two-app suite with ten million installs. |
| 09 | How do you build a fleet-wide detection for shared-UID risk? |
| 10 | Design an integrity strategy for a payments app, and be explicit about what each layer is worth. |
| 10 | How would you detect, at scale, APKs crafted to evade static analysis? |
| 11 | A team wants a plugin architecture that loads DEX at runtime. Design it safely. |
| 11 | Argue for and against the runtime enforcing more security properties. |
| 12 | Evaluate the DEX format's design decisions with twenty years of hindsight. |
| 12 | You must build a DEX analysis pipeline for ten thousand APKs. What do you build on? |
| 13 | Design an anti-hooking strategy given what you know about ART, and assess it honestly. |
| 13 | How would ART's Mainline updatability change how you plan a security programme? |
| 15 | Design a native hardening policy for an organisation shipping forty Android apps. |
| 15 | When is moving logic into native code a defensible security decision? |
| 15 | How do you decide whether an old bundled native library is worth fixing? |
| 16 | Design the JNI layer for a large product so this class of bug cannot recur. |
| 16 | What are the trade-offs of @FastNative and @CriticalNative? |
| 16 | Your product moved a secret into native code. What did that actually buy? |
| 16 | How would you monitor for JNI-layer defects in production? |
| 17 | Design a third-party dependency governance programme for a company shipping five Android apps. |
| 17 | Argue for and against bundling a library versus depending on the platform's. |
| 17 | How would you detect that a vendor shipped you a different binary from the one they published? |
| 18 | How do PAC and BTI change exploitation on Android, and what are their limits? |
| 18 | You are designing native code that must resist patching. What actually helps? |
| 18 | Two libraries in the same APK disagree about a value. How do you determine which one runs? |
| 19 | A client's black-box pentest found no memory-safety issues in two weeks. What does that mean? |
| 19 | Design a memory-safety programme for a codebase with 400k lines of C++ you cannot rewrite. |
| 19 | When is "we found the auth token in memory" a finding? |
| 20 | Design the integrity strategy for a banking application. What do you rely on, and what do you deliberately not rely on? |
| 20 | A vendor ships a device with ro.boot.veritymode=logging on a production build. Explain the impact and how you would demonstrate it. |
| 20 | How would you assess the security of an OEM's Android fork for a client purchasing a large fleet? |
| 21 | You are designing an app that must run a third-party analytics SDK you do not trust. What are your options, in order of strength? |
| 21 | How would you decide whether a given piece of app functionality belongs in an isolated process? |
| 21 | Your app must share data with a partner app. Compare the options. |
| 21 | What would you monitor in production to detect sandbox-relevant abuse? |
| 22 | A vendor wants to ship a domain marked permissive because they ran out of time. Make the case against it, and offer them something. |
| 22 | Design the SELinux story for a new privileged daemon that parses untrusted input. |
| 22 | What is the security argument for and against levelFrom=user on priv_app? |
| 22 | How do you keep a policy from rotting over five years of releases? |
| 23 | You need to expose data to a partner organisation's app. Compare the mechanisms. |
| 23 | How do App Ops change your threat model relative to permissions alone? |
| 24 | How would you build automated detection for intent redirection across a 2-million-line codebase? |
| 24 | Argue for and against exposing an AIDL service to third parties at all. |
| 25 | Why did Treble split Binder into three device nodes, and what does that buy security-wise? |
| 25 | What is the security significance of TF_ACCEPT_FDS? |
| 25 | How would you assess a device's Binder attack surface at scale, across a fleet of ROM builds? |
| 25 | Where is the boundary between what Binder guarantees and what SELinux guarantees? |
| 26 | Design a cross-app API for a companion app, and justify each control. |
| 26 | You must accept an Intent from an untrusted caller and forward it. How? |
| 26 | How would you find every intent-redirection bug across a 200-app estate? |
| 26 | Where does package visibility filtering change your analysis? |
| 27 | checkSignatures returns SIGNATURE_MATCH. What are you still not sure about? |
| 28 | What is Binder reentrancy and why should a service author care? |
| 30 | How would you design an app so that this whole class of problem cannot occur? |
| 30 | A scanner reports "task hijacking" on your flagship app. Triage it. |
| 30 | What would you add to CI? |
| 31 | How would you make "which screens are externally reachable?" answerable in CI? |
| 31 | R8 keeps stripping our Fragments and we added -keep public class * extends Fragment. Comment. |
| 32 | Design a CI gate that prevents insecure manifests from shipping. |
| 32 | Your app must expose data to a partner's app. Compare the mechanisms. |
| 32 | targetSdk upgrades are being deferred because they break things. Make the security case. |
| 33 | Design a storage policy for a 200-engineer codebase. |
| 33 | You must support Direct Boot for a boot-time feature. How do you avoid weakening the app? |
| 33 | How do you make deletion meaningful on flash storage? |
| 34 | How do you roll a compromised encryption key across 5 million installed devices? |
| 34 | When is it correct to implement cryptography rather than use a library? |
| 35 | You are asked to decide whether your company's Android app should pin. Argue both sides. |
| 35 | Your scanner reports "MITM vulnerability" across an app. How do you turn that into a report? |
| 35 | Why can validation not be moved somewhere the app does not control? |
| 36 | What is the failure mode of that design and how do you detect it? |
| 36 | Your app is Flutter. What is your pinning strategy and what does it cost? |
| 36 | When would you advise a team NOT to pin? |
| 37 | How do you measure whether your integrity controls are working? |
| 38 | Justify the engineering budget for client-side tamper detection to a sceptical VP. |
| 38 | How would you version and roll out a change to these checks? |
| 38 | An attestation integration is being designed. Name the three things that will be got wrong. |
| 38 | Your app must work offline. What happens to the integrity story? |
| 39 | Design an emulator-detection system whose signal set will not be stale in three years. |
| 39 | How do you decide the threshold, and how do you know it is right? |
| 40 | You own mobile security for a bank. Justify or reject a six-figure commercial protector. |
| 40 | How do you keep obfuscation from causing production crashes? |
| 40 | How does obfuscation interact with app bundles, dynamic features and R8 full mode? |
| 41 | Design a CI gate for rules-file quality that will not be gamed. |
| 41 | How do you decide whether obfuscation is a control your product needs at all? |
| 41 | What is the relationship between resource shrinking and code shrinking? |
| 42 | Design a build-time control that makes shipping the mapping file impossible rather than unlikely. |
| 42 | How do keep rules interact with obfuscation coverage, and how would you audit them? |
| 42 | When is investing in obfuscation beyond R8 justified? |
| 43 | You are designing the WebView layer for a banking app. What is your architecture? |
| 43 | How do you regression-test that a WebView configuration does not drift? |
| 43 | Your app is fine. A third-party SDK registers a bridge with 40 methods. What do you do? |
| 44 | Argue both sides of <pin-set expiration>. |
| 44 | How would you design a lint rule for this? |
| 44 | Where does this mechanism's design leak? |
| 45 | How would you build automated detection for this class of bug across a portfolio of 200 apps? |
| 45 | What is the security argument for and against a backend-for-frontend that holds the tokens? |
| 46 | Design token handling for an Android banking app. Justify each decision. |
| 46 | How do you migrate a symmetric HS256 estate to asymmetric RS256 with no downtime? |
| 46 | You are told to reduce token lifetime from 24 hours to 10 minutes. What breaks? |
| 46 | How do you detect token theft at scale? |
| 47 | How do you make IDOR structurally impossible rather than individually preventable? |
| 47 | Argue the case for and against SMS OTP for a consumer product. |
| 47 | You find a client-side gate and the server also enforces. What do you do with it? |
| 48 | Your product manager wants to stop prompting on every operation. What do you offer? |
| 48 | How do you verify at scale, across a fleet, that biometric unlock is actually enforced? |
| 48 | Where does biometric authentication belong relative to your session model? |
| 49 | Where does the trust in key attestation ultimately come from, and what are its failure modes? |
| 49 | You need to support devices with no secure hardware. How do you structure the risk? |
| 49 | Argue for and against adding anti-Frida detection to protect a Keystore key. |
| 50 | Design the device-trust tier for a banking app. |
| 50 | Your team wants setUserAuthenticationValidityDurationSeconds(300) for usability. Argue both sides. |
| 50 | What breaks if a vendor implements Gatekeeper's clock hook using the normal-world timer? |
| 51 | Design a dynamic-analysis capability for forty applications with fortnightly releases. |
| 51 | Where do MobSF and other automated dynamic scanners fit? |
| 51 | How do you handle a target that detects your instrumentation? |
| 52 | Design a triage system for static findings across forty applications. |
| 52 | Where does static analysis fit against SAST products and MobSF? |
| 52 | How do you handle an obfuscated target efficiently? |
| 53 | Design the anti-instrumentation strategy for a payments app, and then tell me honestly how good it is. |
| 53 | You need Frida instrumentation running in CI against nightly builds. Design it. |
| 53 | When is Frida the wrong tool, and what do you use instead? |
| 54 | How would you make Objection results reproducible across a team? |
| 55 | Justify running MobSF at all, given everything this chapter says about it. |
| 56 | Design a CI gate around decompilation. What do you check, and what do you deliberately not check? |
| 56 | A developer says "we obfuscate, so the hardcoded key is fine". Answer them. |
| 56 | How would you decide whether to invest in a custom jadx-based tool versus scripting the CLI? |
| 57 | Your team must review a third-party SDK shipped as a binary .so. Design the review. |
| 57 | How do you decide when decompilation has told you enough? |
| 58 | Design a tooling policy for a mobile security team of eight. |
| 58 | Your team's static analysis reports 40 findings per app and the client ignores them. Diagnose. |
| 58 | How do you make native reverse engineering reproducible across a team? |
| 58 | When would you invest in microcode-level tooling? |
| 59 | Design a CI job that flags risky native code across a company's app portfolio. |
| 59 | Your team says radare2 is unmaintainable because scripts break between versions. Respond. |
| 59 | How would you measure whether adopting radare2 for triage is actually worth it? |
| 60 | The ADB checksum field is dead. Would you add integrity protection, and where? |
| 60 | You own an Android-based product. Write the ADB policy. |
| 60 | Where does the ADB trust model actually break in a large organisation? |
| 61 | Design the unlock flow for a new Android device. What are the security requirements? |
| 61 | Why is the fastboot protocol so primitive, and would you change it? |
| 61 | How would you approach auditing an OEM's bootloader implementation? |
| 62 | Design a root detection strategy for a banking app, and be honest about its limits. |
| 62 | How would you build a device fleet for a security testing practice? |
| 63 | You are asked to allow LSPosed on a fleet of corporate test devices. What is your policy? |
| 63 | Where would you put a hooking framework's manager, if not in system_server? |
| 64 | Design the deprecation policy for client-side integrity checks in a product you own. |
| 64 | Compare classic Xposed's global model with LSPosed's scope as a security design decision. |
| 64 | A vendor SDK says it "detects Xposed". How do you evaluate the claim? |
| 64 | You inherit a codebase with 40 client-side integrity checks. Where do you start? |
| 65 | How would you make hook installation thread-safe? |
| 65 | An SDK vendor asks you to make their library "unhookable". What do you tell them? |
| 66 | A team wants a "test mode" that bypasses licensing when tests run. Design it safely. |
| 66 | How would you detect this technique in production telemetry? |
| 66 | Where does this sit relative to Frida and LSPosed in a threat model? |
| 67 | How would you build a control that resists a seam-5 attack? |
| 67 | What is wrong with responding to a detection by crashing? |
| 67 | Your app uses Play Integrity. Where does it go wrong in practice? |
| 68 | Your detector matched 18 of 18 samples. React. |
| 68 | How do you keep an investigation reproducible by someone else six months later? |
| 68 | A junior reports "root detection bypassed" as a High. How do you handle it? |
| 69 | Design a triage pipeline for forty thousand samples a day. |
| 69 | Your detector agrees with your analysts on every sample. What do you do? |
| 69 | What is the right severity language for a malware finding? |
| 70 | Design a fuzzing programme for a company shipping an Android device. |
| 70 | Your fuzzing fleet's bug rate has collapsed. Diagnose it. |
| 70 | How do you handle a finding in a third-party component you ship? |
| 71 | Design a process that embeds MASVS into a development lifecycle rather than bolting it on. |
| 71 | Argue against over-reliance on the standard. |
| 72 | Design a triage process for a scanner that produces 5,000 hits per app. |
| 72 | Two of your tools disagree about a manifest. How do you proceed? |
| 73 | You are asked to build a lab programme for a team of ten with mixed hardware. How? |
| 73 | How do you keep an index of 327 items from going stale? |
| 73 | What is the argument against collecting all the labs into one document? |
| 74 | Design a verified-boot check you would actually ship. |
| 74 | How do you keep a body of published measurements from decaying? |
| 75 | How would you calibrate five interviewers so their scores mean the same thing? |
| 75 | A senior candidate is technically outstanding and dismissive about developers. Hire? |
| 75 | What would you measure to know whether your interview process is working at all? |
| 77 | Design a repeatable engagement harness for testing 40 builds of the same app per quarter. |
| 81 | Design a detection for runtime hooking that does not rely on a filename. |
| 81 | How would you make a Java security check resistant to entrypoint patching? |
| 81 | A module works on Android 15 but crashes system_server on Android 16. How do you debug it? |
| 81 | How do you evaluate a closed-source root loader? |
Principal Engineer (173)¶
| Chapter | Question |
|---|---|
| 00 | Where do you think mobile application security is heading, and what should an organisation invest in now? |
| 00 | How do you set the security bar for a product where perfect is unattainable? |
| 02 | Argue for or against the position that Android's use of one Linux UID per app was the correct architectural decision. |
| 02 | You are asked to advise a platform team building a new Android-derived OS. Which Linux mechanisms would you require, and which would you forbid? |
| 02 | What is the strongest argument that on-device root detection is worth implementing at all, given that it is always bypassable? |
| 03 | Evaluate garbage collection versus manual memory management as a security decision. |
| 03 | Programming languages are abstractions over the same machine. What follows for security? |
| 03 | How do you know when you understand a system well enough to test it? |
| 04 | Argue for and against erasure-based generics as a design decision, from a security standpoint. |
| 07 | "AOSP being open source makes Android more secure." Evaluate that claim rigorously. |
| 07 | You are asked to raise the security of a device fleet from a manufacturer with a poor patch record. What do you actually do? |
| 07 | What is the strongest argument that AOSP's security model is fundamentally sound, and what is its most serious structural weakness? |
| 08 | Soong deliberately chose a non-Turing-complete build language. Evaluate that decision. |
| 08 | "The build is part of the attack surface." Develop that into a security architecture position. |
| 08 | Should a security team own the build configuration? |
| 09 | Critique Android's decision to make the UID the primary sandbox. What are the costs? |
| 09 | Where would you look for the next class of bug in the install and process-creation path? |
| 09 | Argue for and against provider-based initialisation as a platform feature. |
| 10 | The APK format carries forty years of ZIP baggage. What would you change, and what breaks? |
| 13 | ART chose profile-guided compilation over pure AOT or pure JIT. Evaluate that decision. |
| 13 | The managed/native boundary inside a process is not a security boundary. What follows? |
| 14 | A vendor claims their SDK "makes the app impossible to reverse engineer". Evaluate the claim. |
| 14 | How do you make instruction-level knowledge scale across a team? |
| 15 | What would you change about ELF if you could? |
| 15 | An automated scanner reports forty native findings across your portfolio. How do you respond? |
| 16 | Argue for and against the JNI design itself. |
| 16 | Where should the trust boundary for a mobile product actually be? |
| 16 | If you could change one thing about how Android apps use JNI, what would it be? |
| 17 | The industry keeps having supply chain incidents. What would actually fix this for mobile? |
| 17 | Should the Android security model draw a boundary between an app and the SDKs it embeds? |
| 18 | Argue for and against fixed-width instruction encoding from a security standpoint. |
| 18 | How does the AAPCS64 register allocation constrain what a hooking framework can do? |
| 19 | Argue for and against Android adopting fork + exec for app startup. |
| 20 | Android's security architecture assumes the device may be compromised. Given that, what is the theoretical maximum a mobile application can guarantee about its own execution? |
| 20 | Critique the Verified Boot model. Where are its real limits? |
| 20 | Where would you invest to improve Android's security posture across the ecosystem, and why? |
| 21 | The sandbox has held for eighteen years with essentially no changes to its core idea. Why, and what would you change if you were designing it today? |
| 21 | Argue against defence in depth here. Is seccomp actually worth its complexity? |
| 21 | How do you reason about a mitigation's value when you cannot measure the bugs it prevented? |
| 21 | A regulator asks whether Android's sandbox is sufficient protection for health data. How do you answer? |
| 22 | SELinux on Android has been enforcing for a decade. What has it actually bought, and what has it cost? |
| 22 | Where is the MAC model on Android genuinely weak? |
| 22 | If you were designing Android's MAC layer today, what would you change? |
| 22 | How would you evaluate whether a device's SELinux configuration is good, as opposed to merely present? |
| 23 | Argue against the claim that "only signature is a real boundary". |
| 23 | What is the residual risk after a suite migrates every custom permission to signature? |
| 23 | If you were designing Android's permission model today, what would you change? |
| 24 | How do you evaluate whether a proposed IPC hardening measure is worth its compatibility cost? |
| 25 | Where would you invest to reduce Binder-related vulnerability classes across an ecosystem? |
| 26 | Argue for or against Android's decision not to stamp caller identity into Intents. |
| 26 | Evaluate the API 31 PendingIntent mandate as a security intervention. |
| 26 | You own platform security for an OEM. Rank the Intent hardening you would ship. |
| 26 | A researcher reports "exported activity" on 40 of your apps. How do you triage at scale? |
| 30 | Where would you spend engineering effort to reduce this class platform-wide? |
| 31 | Argue that fragment injection is a platform design flaw. Then argue that it is not. |
| 31 | You have one week and an app with 200 Fragments. How do you get a defensible answer? |
| 31 | When is a Fragment-level authorisation check the wrong answer? |
| 32 | Android made android:exported mandatory at targetSdk 31. Evaluate that decision. |
| 32 | If you could redesign the manifest, what would you change and what would you keep? |
| 32 | How do you reason about the residual risk of an app whose manifest is perfect? |
| 33 | Argue for or against making all app storage device-encrypted by default. |
| 33 | What would you change about Android's storage model if you could? |
| 34 | Argue for and against making AES-GCM the only cipher available to Android app developers. |
| 34 | How would you measure whether an organisation's mobile crypto is improving over time? |
| 35 | Where is the residual risk after TLS is perfect, and how would you reason about it? |
| 35 | When is accepting an invalid certificate the correct engineering decision? |
| 36 | Pinning is enforced by code in a process the attacker controls. Is it worth anything? |
| 36 | Certificate Transparency exists. Does pinning still make sense? |
| 36 | How would you evaluate whether pinning was worth it, after the fact? |
| 36 | An attacker with root defeats every pin. Where would you spend the effort instead? |
| 36 | Argue against your own position. |
| 37 | Is remote attestation good for the ecosystem? Argue both sides. |
| 37 | Ten years from now, what should the root-detection section of a mobile security standard say? |
| 38 | Is client-side tamper detection worth having at all? |
| 38 | Where is the real boundary in this problem? |
| 38 | What would change your mind about the value of these controls? |
| 38 | How do you keep a team from over-investing here? |
| 39 | Argue against implementing emulator detection at all. |
| 39 | Where does this fit in a defence-in-depth strategy, and what is it defending? |
| 39 | How do you evaluate a commercial RASP vendor's emulator-detection claim? |
| 40 | Where should the boundary be, if not in the client? |
| 40 | Design an anti-tamper strategy that survives the techniques in this chapter. |
| 40 | How do you measure whether obfuscation is working? |
| 42 | Argue both sides: should a security team require obfuscation? |
| 42 | R8 gets more aggressive each release. What is the long-term consequence for reverse engineering Android? |
| 42 | A team says R8 broke their app and they have disabled it. Walk them back. |
| 42 | What would you change about how the industry treats mapping.txt? |
| 43 | Argue for and against onReceivedSslError existing at all. |
| 44 | Was moving trust policy from code into a declarative resource the right call? |
| 44 | If you were revising the schema, what would you change? |
| 44 | How would you get an organisation with two hundred apps to a good baseline? |
| 46 | Argue against JWTs for a system you are designing. |
| 46 | Where does the token model break down entirely? |
| 46 | Design token security for a 200-service estate where every team is different. |
| 46 | How do you decide, on an engagement, whether a token finding is worth writing? |
| 47 | Design authentication for a banking app that must work offline for read-only use. |
| 47 | When is a client-side authentication check worth building at all? |
| 48 | Argue the case that Android's biometric design is correct, then argue that it is not. |
| 48 | Where would you place a biometric in a zero-trust mobile architecture? |
| 48 | What single change to the Android platform would most improve real-world biometric security? |
| 49 | What is the deepest structural limitation of the Android Keystore, and how would you address it at a platform level? |
| 49 | How would you design a key hierarchy for a large financial application across a heterogeneous fleet? |
| 50 | The TEE is compromised on a device family. What is your response? |
| 50 | Where does the trust in attestation actually terminate, and is that acceptable? |
| 50 | Why is attestationApplicationId in the software-enforced list, and does that matter? |
| 51 | Argue the case for and against making dynamic analysis part of a release gate. |
| 51 | Your team's dynamic report says "no issues found". What do you ask? |
| 51 | How do you know your dynamic-analysis capability is improving? |
| 52 | Argue the case for and against making static analysis a release gate. |
| 52 | Your team's report says "no issues found". What do you ask? |
| 52 | How do you know your static analysis capability is improving? |
| 53 | Frida requires root, which requires an unlocked bootloader, which breaks attestation. Follow that chain to its conclusion for the mobile security industry. |
| 53 | Everything in this chapter rests on the premise that a process cannot defend itself against code running inside it. Is that premise absolute, and what would change it? |
| 53 | You have unlimited engineering budget. Would you build a better Frida, or something else? |
| 55 | Argue the case that automated mobile scanning has a structural ceiling, and say where it is. |
| 55 | How would you measure whether your team's use of a scanner is working? |
| 55 | A regulator asks whether a scanner report constitutes evidence of a security assessment. |
| 55 | Where does this repository's position on MobSF come from, and what would change it? |
| 56 | What is the theoretical limit here? Could a sufficiently good decompiler always succeed? |
| 56 | Your team standardises on one decompiler. What are the second-order consequences? |
| 57 | How should the existence of good, free decompilers inform how a mobile application is designed? |
| 58 | Argue both sides of "the tool does not matter". |
| 58 | A vendor claims their obfuscation "prevents reverse engineering". Respond. |
| 58 | How should decompiler output be treated in an evidentiary or regulatory context? |
| 58 | Where should the boundary sit between free and commercial tooling in a security programme? |
| 59 | Argue for and against basing a security-analysis platform on radare2. |
| 59 | What are the epistemics of static analysis? What can a tool like this never tell you? |
| 59 | The industry treats obfuscation as a security control. Assess that, with evidence. |
| 60 | ADB's design has barely changed since 2008. Is that a success or a failure? |
| 60 | If you could change one thing about ADB, what and why? |
| 61 | Is an unlockable bootloader a security flaw? |
| 62 | Argue both sides of whether Android should provide a supported way to root a device. |
| 62 | The hiding arms race — where does it end? |
| 63 | Argue both sides of "the platform should provide a supported, mediated hooking API". |
| 63 | LSPosed's whole design rests on Zygote. What happens to it if Android moves away from Zygote? |
| 63 | How do you evaluate a vendor's claim that their SDK "detects Xposed and LSPosed"? |
| 64 | Argue both sides of "the platform should provide a supported, mediated hooking API". |
| 64 | What does the Xposed story teach about designing security controls? |
| 64 | Where does "a hooking framework in our process" belong in an application's threat model? |
| 64 | Xposed's API outlived its framework by eight years. What does that tell you about API design? |
| 65 | Argue for and against building hooking into a platform as a supported feature. |
| 65 | Where does hooking sit in a defensive architecture, honestly? |
| 65 | How do you evaluate a claim that a product "detects Frida"? |
| 66 | Argue for or against the platform closing this hole. |
| 66 | You are designing an app that genuinely must resist this. What do you do? |
| 66 | Why is this chapter separate from 65 and 53 at all? |
| 67 | How would you measure whether your resilience investment is working? |
| 67 | A vendor sells you a RASP SDK that claims to be unbypassable. How do you evaluate the claim? |
| 67 | Where should the boundary be between what the client checks and what the server decides? |
| 68 | What is the epistemology of a reverse-engineering finding? What licenses the claim? |
| 68 | Where is the field's methodology weakest? |
| 68 | How would you build tooling that makes analysts better rather than faster? |
| 68 | Argue against your own method. When is a disciplined loop the wrong approach? |
| 69 | Where should detection actually live? |
| 69 | What is the honest state of Android malware attribution? |
| 70 | Argue for or against publishing a working exploit alongside a fixed vulnerability. |
| 70 | Is a 90-day disclosure deadline right for Android specifically? |
| 71 | MASVS controls are largely binary. Real risk is continuous. How would you reconcile that? |
| 71 | What would you change about the standard? |
| 72 | Your team's reports are technically correct and clients are not remediating. Diagnose it. |
| 72 | How would you build an organisational base-rate dataset, and what would you refuse to do with it? |
| 73 | Your team's tooling reports zero defects. What is your first question? |
| 73 | How do you build an evidence standard a team will actually follow? |
| 73 | When is "I could not establish this" the right thing to ship? |
| 74 | Argue against this chapter's own thesis. |
| 74 | What is the strongest argument that a client-side integrity check is worth shipping anyway? |
| 74 | This chapter corrects a published measurement in a sibling chapter. What should the process be? |
| 75 | Design the interview loop you would want to be assessed by, and say what it costs. |
| 77 | Android keeps tightening what shell can do. Argue both sides. |
| 77 | If you could add one capability to the Android platform for security testers, what and why? |
| 81 | What is the right architectural response to the fact that any client-side runtime can be hooked? |
| 81 | How would you standardise runtime compatibility across a fleet of Android devices? |
| 81 | How do you reason about a vulnerability that only appears when a method is JIT-compiled? |