Lab index — by what your setup must have¶
331 labs across 80 chapters, 75 of them CTFs. Built mechanically by scripts/build-lab-index.py; do not edit this file.
Every tag below is derived from the lab text, not assigned by hand. Ask the generator why any single lab carries a tag:
# host, from 73-Labs/
python3 -B scripts/build-lab-index.py --why 53-Frida/labs/lab-01-first-contact.md
no-root means the lab states in its own header that root is not needed. Absence of both root and no-root means the lab never says — treat that as unknown, not as "no root needed".
| Tag | Meaning | Labs |
|---|---|---|
no-device |
nothing but a laptop | 58 |
no-root |
explicitly states root is NOT needed | 70 |
root |
root on the device | 85 |
physical |
a physical device (an emulator cannot answer this honestly) | 8 |
frida |
Frida (host tool and a working frida-server) | 130 |
objection |
Objection | 8 |
ndk |
Android NDK (native toolchain) | 51 |
jdk |
JDK plus SDK build-tools (javac / kotlinc / d8 / aapt2) | 109 |
jadx |
jadx | 81 |
apktool |
apktool | 72 |
ghidra |
Ghidra | 14 |
radare2 |
radare2 | 8 |
ida |
IDA Pro or IDA Free | 4 |
mobsf |
MobSF | 6 |
proxy |
an intercepting proxy (Burp, mitmproxy, ZAP) | 6 |
xposed |
Xposed or LSPosed | 14 |
drozer |
drozer | 0 |
aosp |
a local AOSP checkout or AOSP source browsing | 4 |
docker |
Docker | 3 |
python |
Python 3 on the host | 184 |
device |
any Android device or emulator reachable over adb | 273 |
no-device — nothing but a laptop (58)¶
| Ch | Lab | Band | Evidence in the lab |
|---|---|---|---|
| 00 | Lab 03 — Legal Scope Triage | Beginner | no adb invocation anywhere in the file |
| 03 | Lab 01 — Your first program, all the way down | Beginner | no adb invocation anywhere in the file |
| 03 | Lab 03 — The debugging challenge | Intermediate | no adb invocation anywhere in the file |
| 04 | Lab 01 — Hello World, from source to DEX and back again | Beginner | no adb invocation anywhere in the file |
| 04 | Lab 02 — Strings, ==, and the DEX string table |
Intermediate | no adb invocation anywhere in the file |
| 04 | Lab 03 — Reflection hunt (CTF) | CTF | no adb invocation anywhere in the file |
| 05 | Lab 03 — CTF: Reconstruct the Coroutine State Machine | CTF | no adb invocation anywhere in the file |
| 06 | Lab 03 — Audit a Firmware Image | Advanced | no adb invocation anywhere in the file |
| 08 | Lab 01 — Reading a build file cold | Beginner | no adb invocation anywhere in the file |
| 08 | Lab 03 — Supply-chain simulation | Advanced | no adb invocation anywhere in the file |
| 14 | Lab 04 — CTF: The Latin VM | CTF | no adb invocation anywhere in the file |
| 15 | Lab 02 — Run the hardening checklist, and write it up honestly | Intermediate | no adb invocation anywhere in the file |
| 15 | Lab 03 — Symbols, stripping, and what findExportByName is really searching |
Intermediate | no adb invocation anywhere in the file |
| 15 | Lab 05 — CTF: the honest header | CTF | no adb invocation anywhere in the file |
| 16 | Lab 03 — Recovering dynamically registered natives | Advanced | no adb invocation anywhere in the file |
| 16 | Lab 04 — CTF: The Unlisted Number | CTF | no adb invocation anywhere in the file |
| 17 | Lab 02 — Version Fingerprinting Without Build Files | Intermediate | no adb invocation anywhere in the file |
| 18 | Lab 04 — CTF: four decisions | CTF | no adb invocation anywhere in the file |
| 19 | Lab 04 — CTF: The Quiet Corruption | CTF | no adb invocation anywhere in the file |
| 22 | Lab 05 — CTF: The Quiet Domain | CTF | no adb invocation anywhere in the file |
| 39 | Lab 04 — CTF: The Honest Emulator | CTF | no adb invocation anywhere in the file |
| 40 | Lab 05 — CTF: The Vault | CTF | no adb invocation anywhere in the file |
| 41 | Lab 01 — Read a rules file | Beginner | no adb invocation anywhere in the file |
| 41 | Lab 02 — Build the diff: the same app, with and without rules | Intermediate | no adb invocation anywhere in the file |
| 41 | Lab 04 — CTF: the rule that lied | CTF | no adb invocation anywhere in the file |
| 42 | Lab 04 — CTF: The Leaked Key | CTF | no adb invocation anywhere in the file |
| 46 | Lab 01 — Anatomy of a Token | Beginner | no adb invocation anywhere in the file |
| 46 | Lab 02 — The JWT Attack Gauntlet | Advanced | no adb invocation anywhere in the file |
| 46 | Lab 04 — CTF: The Token That Outlived Its Owner | CTF | no adb invocation anywhere in the file |
| 47 | Lab 02 — Session lifecycle and logout | Intermediate | no adb invocation anywhere in the file |
| 50 | Lab 04 — CTF: The Honest Phone | CTF | no adb invocation anywhere in the file |
| 52 | Lab 02 — The false-positive gauntlet | Intermediate | no adb invocation anywhere in the file |
| 52 | Lab 04 — CTF: the honest report | CTF | no adb invocation anywhere in the file |
| 55 | Lab 02 — The survival rate | unstated | no adb invocation anywhere in the file |
| 55 | Lab 03 — Obfuscation blindness | Advanced | no adb invocation anywhere in the file |
| 55 | Lab 04 — CTF: the report that lies | CTF | no adb invocation anywhere in the file |
| 56 | Lab 01 — Your first decompilation, and what it costs | Beginner | no adb invocation anywhere in the file |
| 56 | Lab 02 — The method jadx gets wrong | Advanced | no adb invocation anywhere in the file |
| 56 | Lab 04 — CTF: The Honest Decompiler | CTF | no adb invocation anywhere in the file |
| 57 | Lab 01 — First Contact With a .so |
Beginner | no adb invocation anywhere in the file |
| 57 | Lab 03 — Defining JNIEnv and Re-reading the Output |
Intermediate | no adb invocation anywhere in the file |
| 58 | Lab 01 — Your first database | Beginner | no adb invocation anywhere in the file |
| 58 | Lab 02 — Structure recovery | Intermediate | no adb invocation anywhere in the file |
| 58 | Lab 03 — FLIRT and type libraries | Intermediate | no adb invocation anywhere in the file |
| 59 | Lab 01 — The command language | Beginner | no adb invocation anywhere in the file |
| 61 | Lab 02 — The sparse image format, by hand | Intermediate | no adb invocation anywhere in the file |
| 61 | Lab 04 — CTF: The Bricked Vault | CTF | no adb invocation anywhere in the file |
| 68 | Lab 01 — The first twenty minutes | Beginner | no adb invocation anywhere in the file |
| 68 | Lab 02 — The hypothesis loop, run in the open | Intermediate | no adb invocation anywhere in the file |
| 68 | Lab 04 — CTF: The confident conclusion | CTF | no adb invocation anywhere in the file |
| 69 | Lab 02 — Configuration recovery and capability adjudication | Intermediate | no adb invocation anywhere in the file |
| 69 | Lab 04 — CTF: the quiet sample | CTF | no adb invocation anywhere in the file |
| 70 | Lab 02 — Write a bug, harness it, fuzz it, triage it | Intermediate | no adb invocation anywhere in the file |
| 70 | Lab 03 — Triage at scale, and the report | Advanced | no adb invocation anywhere in the file |
| 71 | Lab 01 — Build the Checklist | Beginner | no adb invocation anywhere in the file |
| 71 | Lab 03 — Find the Gap | Advanced | no adb invocation anywhere in the file |
| 71 | Lab 04 — Portfolio Heatmap | Advanced | no adb invocation anywhere in the file |
| 75 | Lab 01 — The timed mock technical round | Intermediate | no adb invocation anywhere in the file |
no-root — explicitly states root is NOT needed (70)¶
| Ch | Lab | Band | Evidence in the lab |
|---|---|---|---|
| 00 | Lab 02 — Your First 60 Minutes | Beginner | not required for this lab. Everything below works on an unrooted, locked device. |
| 01 | Lab 02 — Processes, /proc, and Reading a Memory Map |
Intermediate | 'run-as' then lets you act as that app's UID without root. On an emulator running a Google APIs (not |
| 02 | Lab 04 — CTF: The Hidden Flag | CTF | 2. **No root is required** for stages 1 to 4. Stage 5 needs privilege only to *create* the mount, |
| 06 | Lab 01 — Trace the Boot | Beginner | Without root, 'logcat -b kernel' may carry some of the same messages, and the |
| 06 | Lab 02 — Map Every Process to Its Layer | Intermediate | Without root you can still fully inspect processes you own, and 'ps -Z' still works for all. |
| 09 | Lab 03 — CTF: The Shared UID Heist | CTF | \| **No root required** \| that is the point of the lab \| |
| 14 | Lab 02 — Patch, Rebuild, Verify | Intermediate | device or emulator. **Not rooted** — that is the point. |
| 20 | Lab 01 — Device posture, and the device that lies about it | Beginner | - **Best: two devices** — one stock and unrooted, one rooted. The diff between them is the lab. |
| 20 | Lab 03 — Breaking a client-side integrity gate | Intermediate | - A stock unrooted device *in addition* to one of the above, so that you can see the 'TRUSTED' path. |
| 21 | Lab 03 — Write an Attacker App and Probe the Boundary | Intermediate | \| 'REACHABLE' \| Succeeded from an ordinary app UID \| "An unprivileged third-party application can…" — the strongest c |
| 21 | Lab 05 — CTF: "Escape the Torch" | CTF | - [ ] You did it without root, without 'run-as', and without 'adb shell' in the final answer |
| 22 | Lab 01 — Reading Contexts on a Real Device | Beginner | **Prerequisites:** [Chapter 22 §1–§3.6] (../README.md#1-introduction), a device or emulator with 'adb'. **No root requir |
| 22 | Lab 02 — From a Denial to the Rule That Would Allow It | Intermediate | **Prerequisites:** [Lab 01] (lab-01-reading-contexts.md), [Chapter 22 §3.4] (../README.md#34-object-classes-and-permissi |
| 22 | Lab 03 — MCS and App-vs-App Isolation | Intermediate | **Prerequisites:** [Lab 01] (lab-01-reading-contexts.md), [Lab 02] (lab-02-denial-to-rule.md), [Chapter 22 §3.7] (../REA |
| 22 | Lab 04 — Reviewing a Vendor Policy | Advanced | **Prerequisites:** [Lab 01] (lab-01-reading-contexts.md), [Lab 02] (lab-02-denial-to-rule.md), [Lab 03] (lab-03-mcs-and- |
| 23 | Lab 03 — Borrowing a privileged app's permissions | Advanced | The allow-lists themselves are readable without root: |
| 24 | Lab 04 — The Localhost Service | Advanced | --uid <uid>'; that route works without root, whereas 'netstat''s process column is frequently blank on |
| 32 | Lab 02 — The Full Audit | Intermediate | Objection work without root. |
| 33 | Lab 01 — Map the Eight Roots | Beginner | '--no-root' at one point on purpose, so that you see exactly how much an unprivileged attacker on |
| 33 | Lab 04 — CTF: The Plaintext Copy | CTF | secret, several copies, one of them outside the uid sandbox and readable without root. |
| 35 | Lab 01 — End-to-end interception on a physical device | Intermediate | Without root the remaining option is to change the app rather than the device: decompile it, add a |
| 37 | Lab 04 — CTF: The Decoupled Check | CTF | If you have an unrooted device or a clean AVD, confirm the flag appears there. Then put that device |
| 38 | Lab 01 — Build an app that detects its own repackaging | Beginner | **Device.** Any Android 5+ device or emulator. **Root is not required** — this entire lab was |
| 38 | Lab 04 — CTF: the app that works fine, and then does not | CTF | Measured on the reference device (i9000S, Android 13 / API 33, unrooted), after the six-second wait: |
| 42 | Lab 02 — Synthetic safari | Intermediate | **Option A — pull one from a device.** No root needed; a third-party 'base.apk' is world-readable because the runtime mu |
| 42 | Lab 03 — Recover original names from kotlin.Metadata |
Advanced | Pull whatever real APKs you can. Unrooted 'adb' is enough: |
| 44 | Lab 03 — Prove it on the device | Advanced | - an unrooted device — in which case you lose Frida, and you are back to the static read. |
| 46 | Lab 03 — Tokens at Rest | Intermediate | API 33, not rooted**: |
| 49 | Lab 04 — CTF: The Vault That Lies | CTF | \| Flaw \| Prerequisite \| Works without root? \| |
| 50 | Lab 01 — Determine the real security level of every key an app can create on your device | Intermediate | `'Unverified', 'deviceLocked=false', with an all-zero 'verifiedBootKey'. If your device is not |
| rooted they will agree, an` | |||
| 50 | Lab 03 — Read a key attestation offline, and catch a phone lying about itself | Advanced | This part is most striking on a **rooted** device. On an unrooted device you will get agreement, |
| 51 | Lab 01 — Your first complete runtime pass | Beginner | > 'package not debuggable') and the device is not rooted. No statement in this report addresses the |
| 51 | Lab 03 — Coverage, and the lie of a clean pass | Intermediate | security patch '<patch>', SELinux '<mode>', '<rooted\|not rooted>', over '<N>' sessions totalling |
| 54 | Lab 01 — Your first session, and the four ways it goes wrong | Beginner | unrooted path and step S3 will fail — that is expected, and Exercise 5 is written for you. |
| 54 | Lab 04 — CTF: The Confident Tool | CTF | 4. **Try it on an unrooted device** via 'objection patchapk', and note which of the four defences |
| 60 | Lab 03 — Posture and exposure | Intermediate | # adb shell — no root required |
| 61 | Lab 01 — Device posture from the outside | Beginner | > **'su' is not portable, and getting this wrong looks like "not rooted"** |
| 62 | Lab 03 — DenyList Investigation | Intermediate | **Q7.** Now the question that matters for detection: a stock, unrooted device has a certain number |
| 62 | Lab 05 — CTF: The Invisible Mount | CTF | - **No uninstalling Magisk.** "It works on a device without root" is not a solution to a lab about |
| 63 | Lab 01 — Mapping the injection chain | Intermediate | an unrooted device produces if you are skimming. |
| 64 | Lab 01 — The detection surface that outlived the framework | Intermediate | # host — TRY BOTH. The emulator's su rejects -c in a way that reads as "not rooted". |
| 64 | Lab 03 — Why the mechanism broke | Advanced | \| **Needs root?** \| For Parts 2 and 4. Parts 1, 3 and 5 work unrooted \| |
| 65 | Lab 01 — The five hook types, on one target | Intermediate | **Device used to verify this lab:** 'i9000S', Android 13 / API 33, **unrooted, no frida-server**. |
| 65 | Lab 02 — Write an inline hook by hand | Advanced | **Device used to verify this lab:** 'i9000S', Android 13 / API 33, **unrooted, no frida-server**, |
| 65 | Lab 03 — Where hooks fail | Advanced | **Device used to verify this lab:** 'i9000S', Android 13 / API 33, **unrooted, no frida-server**. |
| 65 | Lab 04 — CTF: The Honest Trampoline | CTF | **Device used to verify this challenge:** 'i9000S', Android 13 / API 33, **unrooted, no |
| 66 | Lab 01 — First contact: two APKs and one command | Beginner | the first package's UID, without root, without Frida, and without the first package agreeing to |
| 66 | Lab 02 — The gate matrix: what actually decides | Intermediate | > 'su: invalid uid/gid '-c'', which reads exactly like "not rooted". Three chapters in this |
| 67 | Lab 01 — Triage the death | Beginner | > do this without root, without Frida, and without reading the app's source. |
| 67 | Lab 02 — The escalation ladder, end to end | unstated | **Root required:** rounds 3 and 4 want frida-server. A no-root path is given for each. |
| 67 | Lab 03 — When to stop bypassing | Intermediate | **Root required:** no for parts A, C and D; part B is better with frida-server and gives a no-root |
| 67 | Lab 04 — CTF: the boolean that lied | CTF | This CTF was built and solved on **i9000S, Android 13 / API 33, arm64-v8a, Enforcing, not rooted**. |
| 70 | Lab 01 — Attack surface enumeration and target selection | Intermediate | \| A device or emulator \| Any Android 8 or newer. **Root is not required and is not used.** \| |
| 72 | Lab 01 — Build the base rate | Intermediate | \| 'su' takes 'su 0 <cmd>', **not** 'su -c <cmd>' \| 'su -c id' returns 'su: invalid uid/gid '-c'', which reads as "not |
| 72 | Lab 02 — The severity clinic | Intermediate | > - **Devices:** testing on Android 13 and Android 15, both unrooted for the primary pass, one |
| 72 | Lab 03 — Write the finding | Advanced | device: Pixel 7a, Android 14, unrooted, tested twice |
| 72 | Lab 04 — CTF: the peer review | CTF | > **Test devices:** one managed Pixel 7 (Android 14, unrooted, MDM-enrolled) as the primary target, |
| 73 | Lab 01 — The capability survey: what your setup can actually run | Beginner | nearly recorded that emulator as unrooted on exactly this evidence. |
| 73 | Lab 03 — Write a lab that survives someone else running it | Intermediate | `'root' is raised because §6.2 really does run 'su 0 am broadcast'. The lab is completable without |
| root; one optional sec` | |||
| 73 | Lab 04 — CTF: The Gauntlet | CTF | > First, the 'su' form: get it wrong and the output reads exactly like "not rooted". Second, the app |
| 74 | Lab 01 — The property that lied | Beginner | Then determine your root convention, because getting it wrong reads as *"not rooted"*: |
| 74 | Lab 03 — The detection that cannot detect | Intermediate | > debuggable package**. Parts 1–3 work without root; Part 4 needs it. |
| 75 | Lab 02 — The take-home, with the grader's rubric | Intermediate | > 'su 0 <cmd>', which reads as "not rooted" when it fails and has caught several chapters of |
| 75 | Lab 03 — Live triage, and saying "I do not know" correctly | unstated | which reads exactly like *not rooted*. A candidate who concludes "not rooted" from that has |
| 76 | Lab 01 — The sixty-minute triage, using only the sheets | Intermediate | "not rooted". |
| 76 | Lab 02 — The sheet lies: six commands that answer confidently and wrongly | Intermediate | and exits 1. Read as an answer, it says **"this device is not rooted."** |
| 76 | Lab 03 — Build a sheet you would trust a year from now | Advanced | \| 'adb shell "su -c id"' <!-- lint:allow --> \| — \| — \| **Broken here.** 'su: invalid uid/gid '-c'', exit 1 — reads a |
| 77 | Lab 01 — Device Reconnaissance | Beginner | > **Warning — one failing form does not mean "not rooted".** Magisk's 'su' takes |
| 77 | Lab 04 — Storage Diff | Intermediate | adb shell 'command -v su >/dev/null && echo root \|\| echo no-root' |
| 78 | Lab 03 — Redraw an intended flow as the actual one | Intermediate | If none of them exists, your device is not rooted, and the intended diagram does not apply. Use |
root — root on the device (85)¶
| Ch | Lab | Band | Evidence in the lab |
|---|---|---|---|
| 02 | Lab 01 — Filesystem, Permissions and the Android Layout | Beginner | # host / WSL — needs root, hence sudo |
| 02 | Lab 02 — Processes, /proc and Signals |
Intermediate | adb root |
| 03 | Lab 04 — Reading code you did not write | unstated | adb shell "su -c 'cat /data/data/com.target.app/shared_prefs/app_prefs.xml'" > /tmp/before.xml |
| 06 | Lab 03 — Audit a Firmware Image | Advanced | git clone https://github.com/topjohnwu/Magisk # magiskboot |
| 07 | Lab 02 — Build and boot AOSP | Intermediate | adb root |
| 07 | Lab 03 — Patch the platform | Advanced | adb wait-for-device && adb root |
| 07 | Lab 05 — CTF: The vendor's back door | CTF | adb root |
| 08 | Lab 04 — Build a userdebug AOSP image and trace a module | Advanced | adb root && adb shell id # expect: uid=0(root) |
| 09 | Lab 01 — App Identity and UID | Beginner | adb root # must print "restarting adbd as root" or "adbd is already running as root" |
| 09 | Lab 02 — Tracing the Install Flow End to End | Intermediate | adb root |
| 10 | Lab 02 — Unpack, Modify, Rebuild, Re-sign | Intermediate | grep -rn "su\"\\|/system/bin/su\\|magisk\\|Superuser\\|test-keys\\|ro.debuggable" jadx-out/sources/ \| head -30 |
| 11 | Lab 01 — Observing the Runtime | Beginner | adb root |
| 12 | Lab 03 — Find the Hidden Key | Advanced | \|\| adb shell "su -c 'cat /data/data/com.artlab.keylab/files/vault.bin'" > vault.bin |
| 13 | Lab 01 — Reading the ART Artifacts | Beginner | adb shell 'su -c id' |
| 13 | Lab 02 — Compiler Filters and Hook Reliability | Intermediate | adb shell "su -c '/data/local/tmp/frida-server --version'" |
| 13 | Lab 03 — ArtMethod Archaeology | Advanced | adb shell "su -c '/data/local/tmp/frida-server --version'" |
| 15 | Lab 04 — From APK entry to mapped page | Intermediate | adb shell 'su -c "grep libnative /proc/$(pidof com.example.app)/maps"' |
| 16 | Lab 02 — References, exceptions, and the crash you can cause | Intermediate | # adb shell — needs root; applies to processes started afterwards |
| 16 | Lab 03 — Recovering dynamically registered natives | Advanced | \| Frida + a rooted device or emulator \| Parts 3–5 \| frida-gadget in a repackaged debuggable build works too \| |
| 18 | Lab 03 — Runtime truth: memory versus the file | Advanced | adb shell "su -c '/data/local/tmp/frida-server &'" # outer quotes: the & must reach the device |
| 20 | Lab 02 — Dissecting vbmeta, and catching a phone in a lie | Intermediate | su -c 'dd if=/dev/block/by-name/vbmeta of=/data/local/tmp/vbmeta.img bs=4096 count=32' |
| 20 | Lab 04 — CTF: The Lying Phone | CTF | [34 — Cryptography] (../../34-Cryptography/README.md), Node 16+ on the host, a rooted device or AVD |
| 21 | Lab 01 — Mapping the Sandbox on a Real Device | Beginner | su -c "grep $PKG /data/system/packages.list" |
| 28 | Lab 02 — Bind to a real service from an unprivileged app | Intermediate | # 2. Rooted device -- install as root. This is what the chapter's measurements used. |
| 28 | Lab 03 — The check that does nothing | Advanced | # adb shell "su -c 'pm install -r -t /data/local/tmp/ch28vault.apk'" |
| 29 | Lab 01 — Map the runtime receiver surface | Intermediate | \| **Needs root?** \| No. 'dumpsys activity broadcasts' is readable by uid 2000. \| |
| 29 | Lab 02 — Forge a broadcast at a vulnerable receiver | Intermediate | \| **Needs root?** \| No \| |
| 29 | Lab 03 — Ordered broadcasts and interception | Advanced | \| **Needs root?** \| No \| |
| 29 | Lab 04 — CTF: the receiver that is not there | CTF | \| **Needs root?** \| No \| |
| 30 | Lab 04 — Tapjacking a consent screen | Advanced | adb shell "su -c 'appops set com.pentest.ch30.attacker SYSTEM_ALERT_WINDOW allow'" |
| 33 | Lab 02 — Filesystem Diff Across a Session | Intermediate | an Android SDK with build-tools and a JDK, a rooted device, 'frida-server' running on the device |
| 33 | Lab 03 — Scoped Storage and FUSE, Measured | Advanced | adb shell "su -c 'cat /data/user/0/com.pentest.ch33.vault/files/probe.txt'" |
| 34 | Lab 01 — Break the Vulnerable Vault | Beginner | a rooted device or emulator |
| 34 | Lab 03 — Audit a Real App, End to End | Advanced | adb shell "su -c 'tar czf /sdcard/appdata.tgz /data/data/<pkg>'" |
| 35 | Lab 02 — The deliberate bad certificate | Advanced | completed, OpenSSL on the host, a rooted device or emulator, Frida 16+ on host and device |
| 35 | Lab 03 — Dissecting Validation: Which Check Is This App Actually Doing? | Advanced | adb shell "su -c 'cmd package compile -m verify -f com.example.app'" |
| 35 | Lab 04 — CTF: The Trusted Impostor | CTF | adb shell "su -c 'pm install -r /data/local/tmp/vault.apk'" |
| 36 | Lab 02 — Defeat a two-layer pin you built yourself | Advanced | adb shell "su -c 'pm install -r /data/local/tmp/ch36.apk'" |
| 36 | Lab 03 — Attribute the rejection, and survive renewal | Intermediate | adb shell "su -c 'pm uninstall com.pentest.ch36.twolayer'" |
| 36 | Lab 04 — CTF: the pin that moved | CTF | adb shell "su -c 'pm install -r /data/local/tmp/ctf.apk'" |
| 37 | Lab 01 — Build and Break Your Own Root Check | Beginner | or emulator with Magisk, Frida installed and working ([53-Frida] (../../53-Frida/README.md)), |
| 37 | Lab 02 — Native Check, No Java Surface | Intermediate | this.deny = /(^\|\/)su$\|magisk\|busybox/i.test(path \|\| ""); |
| 37 | Lab 03 — Trace, Identify, Neutralise | Advanced | String[] pkgs = {"com.topjohnwu.magisk", "eu.chainfire.supersu", |
| 40 | Lab 01 — Obfuscation Triage | Beginner | \| grep -ciE 'ptrace\|TracerPid\|frida\|xposed\|magisk\|goldfish\|isDebuggerConnected' |
| 42 | Lab 01 — Build it yourself, then read the mapping | Intermediate | **Root required:** No |
| 42 | Lab 04 — CTF: The Leaked Key | CTF | **Root required:** No |
| 43 | Lab 01 — Exploit a JavaScript bridge in an app you build | Intermediate | adb shell "su -c 'cp /data/local/tmp/evil.html /data/data/com.pentest.ch43.vuln/files/evil.html'" |
| 43 | Lab 02 — Defeat a config that looks correct | Advanced | # spaces, so an unquoted 'su -c 'ls DIR \| wc -l'' reaches the device as |
| 43 | Lab 03 — Audit a real app end to end | Advanced | adb shell "su -c 'cat /proc/net/unix'" \| grep -i devtools |
| 43 | Lab 04 — CTF: The Deputy in the Browser | CTF | adb shell "su -c 'mount'" \| grep -i "on /system/etc/security/cacerts" |
| 44 | Lab 02 — Make an app you built trust your proxy CA | Intermediate | adb shell "su -c 'ls -la /data/misc/user/0/cacerts-added/'" |
| 47 | Lab 04 — CTF: The account that would not close | CTF | adb shell "su -c 'cat /data/data/com.pentest.ch47.vault/shared_prefs/vault_prefs.xml'" |
| 48 | Lab 01 — Callback versus crypto: the same attack, twice | Intermediate | adb shell 'su -c "/data/local/tmp/frida-server &"' |
| 48 | Lab 02 — Measuring the binding yourself | Intermediate | adb root |
| 48 | Lab 04 — CTF: The Fifth Finger | CTF | adb shell "su -c 'pm install -r /data/local/tmp/vt.apk'" |
| 49 | Lab 01 — Keystore Inventory and Profiling | Beginner | **Prerequisites:** [Chapter 49 §3.1–3.8] (../README.md#3-deep-internal-working), a rooted device or |
| 49 | Lab 02 — Prove Extraction Versus Use | Intermediate | a rooted device or emulator with 'frida-server', an enrolled biometric and a secure lock screen. |
| 50 | Lab 02 — Gatekeeper and the hardware auth-token chain | Intermediate | > **Needs root:** **no** |
| 50 | Lab 04 — CTF: The Honest Phone | CTF | > **Needs root:** **no** |
| 52 | Lab 03 — Mapping the blind spots | Intermediate | **Difficulty:** intermediate. Part A needs no device; Part B needs a rooted device with |
| 53 | Lab 01 — First Contact | Beginner | a rooted device or emulator |
| 54 | Lab 02 — One task, two tools: feeling the trade | Intermediate | I CH54: B magisk-unknown-path rooted=false |
| 54 | Lab 03 — Mapping the envelope: turning "it depends" into a capability statement | Advanced | String[] pkgs = {"com.topjohnwu.magisk", "eu.chainfire.supersu", |
| 57 | Lab 02 — Recovering a Dynamic JNI Registration Table | Intermediate | [16-JNI] (../../16-JNI/README.md), a rooted device or emulator for the runtime half |
| 60 | Lab 01 — Read the wire | Beginner | device you own. **You do not need root, and you do not need to modify any device.** |
| 61 | Lab 03 — vbmeta, verity, and the one byte that matters | Advanced | **You need:** 'python3'. Parts 1–4 need a 'vbmeta.img', obtainable from a rooted device, an emulator, |
| 62 | Lab 01 — Root a Device From Scratch | Beginner | [§9.1] (../README.md#91-simple--install-magisk-end-to-end), |
| 62 | Lab 02 — Write a Magisk Module | Intermediate | # Lab 02 — Write a Magisk Module |
| 62 | Lab 04 — Module Supply-Chain Audit | Advanced | [§8.1] (../README.md#81-analysing-a-magisk-module-before-installing-it), |
| 63 | Lab 02 — Your first module, built offline | Intermediate | > Sections 6–8 run the module and need LSPosed on a rooted device with Zygisk enabled. |
| 63 | Lab 03 — Scope, timing, and the five ways a module fails | Advanced | implied by chapter 63; the lab does not print the command |
| 63 | Lab 04 — CTF: The Invisible Module | CTF | > and a host-only toolchain. Gold needs a rooted device with Zygisk and LSPosed. Platinum needs |
| 64 | Lab 02 — Read a classic module, then build one | Intermediate | implied by chapter 64; the lab does not print the command |
| 64 | Lab 04 — CTF: The Ghost of app_process |
CTF | implied by chapter 64; the lab does not print the command |
| 71 | Lab 02 — Map a Known App | Intermediate | [Chapter 71 §3 and §7] (../README.md#3-deep-internal-working), a rooted device or emulator, 'adb', |
| 73 | Lab 02 — The chain no chapter can host: static → dynamic → report | Intermediate | # host — this AVD's su takes 'su 0 <cmd>'; see Lab 01 §3.2 |
| 74 | Lab 04 — CTF: The Confident Report | CTF | private static final String[] R = {"/data/adb/lspd", "/data/adb/magisk", |
| 76 | Lab 04 — CTF: The stale sheet | CTF | \| 1 \| 'adb shell su -c id' \| Whether the device is rooted. 'uid=0' means yes \| |
| 77 | Lab 05 — CTF: One Command, One Flag | CTF | adb shell "su -c 'find /data/data/com.example.target -type f -mmin -2 -exec ls -la {} \;'" |
| 78 | Lab 02 — Take a diagram from this repository and find what it omits | Intermediate | # adb shell — create the path the detector looks for. Note: su 0 <cmd>, not su -c |
| 78 | Lab 04 — CTF: The Cartographer's Error | CTF | su 0 mkdir -p /data/adb/cartography.lock |
| 81 | Lab 01 — Runtime Anatomy of an App | Beginner | adb shell "su 0 id" |
| 81 | Lab 02 — ArtMethod Entrypoints |
Intermediate | adb shell "su 0 chmod 755 /data/local/tmp/frida-server" |
| 81 | Lab 03 — Zygisk Module Anatomy | Advanced | NDK r21 or newer, a rooted lab device with Magisk Zygisk or ZygiskNext |
| 81 | Lab 04 — CTF: The Invisible Hook | CTF | adb shell "su 0 cat /proc/<pid>/maps" \| grep -iE "frida\|gum\|linjector\|anon" |
physical — a physical device (an emulator cannot answer this honestly) (8)¶
| Ch | Lab | Band | Evidence in the lab |
|---|---|---|---|
| 48 | Lab 02 — Measuring the binding yourself | Intermediate | adb shell 'pm list features \| grep -iE "fingerprint\|biometric\|strongbox"' |
| 48 | Lab 03 — Audit a real app, end to end | Advanced | grep -E 'securityLevel\|enforcedBySecureHardware\|strongbox' /tmp/device-baseline.json |
| 49 | Lab 01 — Keystore Inventory and Profiling | Beginner | adb shell pm list features \| grep -Ei 'hardware_keystore\|strongbox\|keystore' |
| 49 | Lab 03 — Read a Key Attestation Certificate | Advanced | adb shell pm list features \| grep -Ei 'hardware_keystore\|strongbox' |
| 49 | Lab 04 — CTF: The Vault That Lies | CTF | import android.security.keystore.StrongBoxUnavailableException |
| 50 | Lab 03 — Read a key attestation offline, and catch a phone lying about itself | Advanced | if att["attestationSecurityLevel"] not in ("TrustedEnvironment", "StrongBox"): |
| 61 | Lab 04 — CTF: The Bricked Vault | CTF | 1. fastboot flash <every partition from the STOCK factory image> # or flashall / update |
| 62 | Lab 01 — Root a Device From Scratch | Beginner | # fastboot oem unlock |
frida — Frida (host tool and a working frida-server) (130)¶
| Ch | Lab | Band | Evidence in the lab |
|---|---|---|---|
| 00 | Lab 01 — Build Your Lab | Beginner | pip install frida-tools objection |
| 01 | Lab 02 — Processes, /proc, and Reading a Memory Map |
Intermediate | > read-only, and which anonymous region Frida just created to hold its trampolines. |
| 02 | Lab 02 — Processes, /proc and Signals |
Intermediate | # host — terminal 2, attach with Frida in attach mode |
| 03 | Lab 02 — Hash maps by hand, then in a real DEX | Intermediate | frida -U -n com.example.app -e " |
| 03 | Lab 04 — Reading code you did not write | unstated | frida -U -f com.target.app -l - <<'EOF' |
| 04 | Lab 03 — Reflection hunt (CTF) | CTF | // Frida REPL / frida -l reflect-trace.js -f com.example.target |
| 05 | Lab 02 — Null Safety in JADX, and Breaking It with Frida | unstated | # Lab 02 — Null Safety in JADX, and Breaking It with Frida |
| 05 | Lab 03 — CTF: Reconstruct the Coroutine State Machine | CTF | // frida -n java -l recover.js |
| 07 | Lab 03 — Patch the platform | Advanced | if (maps.contains("frida") \|\| maps.contains("gum-js-loop")) return true |
| 10 | Lab 02 — Unpack, Modify, Rebuild, Re-sign | Intermediate | frida -U -f com.example.target -l ../scripts/apk-signature-hooks.js |
| 11 | Lab 02 — ClassLoader Archaeology | Intermediate | // Frida script — save as chain.js, run: frida -U -n com.example.loaderlab -l chain.js |
| 11 | Lab 03 — Dynamic DEX Loading and Hooking | Advanced | // Frida script — save as dumpdex.js, run: frida -U -f com.example.memlab -l dumpdex.js |
| 11 | Lab 04 — CTF: The Vanishing Class | CTF | if (new File("/data/local/tmp/frida-server").exists()) |
| 12 | Lab 03 — Find the Hidden Key | Advanced | frida -U -f com.artlab.keylab -l ../../34-Cryptography/scripts/frida-jca-universal-hook.js |
| 12 | Lab 04 — CTF: The Lying DEX | CTF | frida -U -f com.artlab.lyingdex -l ../../13-ART/scripts/dump-loaded-dex.js |
| 13 | Lab 02 — Compiler Filters and Hook Reliability | Intermediate | [Chapter 13 §3.8–3.17] (../README.md#3-deep-internal-working), Frida installed and working |
| 13 | Lab 03 — ArtMethod Archaeology | Advanced | [19-Memory] (../../19-Memory/README.md), comfort with Frida's native API |
| 13 | Lab 04 — CTF: The Vanishing Method | CTF | // naive.js — frida -U -f com.artlab.ctf -l naive.js |
| 15 | Lab 03 — Symbols, stripping, and what findExportByName is really searching |
Intermediate | **You will need:** the fixtures from [Lab 01] (lab-01-elf-by-hand.md), Python 3. A device and Frida |
| 15 | Lab 04 — From APK entry to mapped page | Intermediate | // Frida REPL -- frida -U -n com.example.app |
| 16 | Lab 01 — Building the bridge, and breaking it on purpose | Beginner | \| Frida \| Part 6 \| Skip Part 6 \| |
| 16 | Lab 02 — References, exceptions, and the crash you can cause | Intermediate | \| Frida \| Parts 4–6 \| The bypasses also work through plain reflection — see 4.4 \| |
| 16 | Lab 03 — Recovering dynamically registered natives | Advanced | \| Frida + a rooted device or emulator \| Parts 3–5 \| frida-gadget in a repackaged debuggable build works too \| |
| 16 | Lab 04 — CTF: The Unlisted Number | CTF | // frida -U -f com.unlisted -l pathA.js --no-pause |
| 17 | Lab 03 — SDK Data-Collection Audit | Intermediate | [53-Frida] (../../53-Frida/README.md), an intercepting proxy, and a device you control. |
| 17 | Lab 04 — Catch the Constructor | Advanced | [53-Frida] (../../53-Frida/README.md), the Android NDK, a rooted or debuggable test device. |
| 17 | Lab 05 — CTF: The Library That Lied | CTF | frida-trace -U -f com.liblab.shop -i "fopen" -i "fread" -i "__android_log_print" |
| 18 | Lab 03 — Runtime truth: memory versus the file | Advanced | [§7] (../README.md#7-dynamic-analysis); [53-Frida] (../../53-Frida/README.md) for getting |
| 19 | Lab 01 — Reading /proc/<pid>/maps by hand, and finding a known value in a live process |
Intermediate | frida -U -n com.example.target -l ../scripts/mem-search.js |
| 19 | Lab 02 — The allocator, measured: Scudo, size classes, reuse, and ASLR entropy | Intermediate | # adb shell — bisect the threshold with the Frida probe, or by hand: |
| 19 | Lab 03 — Detection: HWASan, MTE, GWP-ASan, malloc_debug, and reading their reports | Advanced | // Frida, in the target |
| 20 | Lab 03 — Breaking a client-side integrity gate | Intermediate | a working Frida setup ([53 — Frida] (../../53-Frida/README.md)), Android Studio or a Gradle |
| 20 | Lab 04 — CTF: The Lying Phone | CTF | [Lab 03] (lab-03-integrity-gate-bypass.md), [53 — Frida] (../../53-Frida/README.md), |
| 22 | Lab 03 — MCS and App-vs-App Isolation | Intermediate | # host (needs a rooted device for frida-server) |
| 23 | Lab 03 — Borrowing a privileged app's permissions | Advanced | frida -U -n com.vendor.settings -l ~/Android-Security-Handbook/23-Permissions/scripts/hook-permission-checks.js |
| 23 | Lab 04 — CTF: The Borrowed Key | CTF | frida -U -n com.ardent.helper \ |
| 24 | Lab 01 — Map the IPC Surface | Beginner | frida -U -f $PKG -l ../scripts/trace-ipc.js |
| 24 | Lab 02 — The Abstract Socket | Intermediate | frida -U -f com.iplab.victim -l ../scripts/trace-ipc.js |
| 24 | Lab 03 — The Confused Deputy | Intermediate | frida -U -n com.iplab.deputy -l ../scripts/trace-ipc.js |
| 25 | Lab 03 — The identity boundary: prove it, then break the code around it | Intermediate | frida -U -f com.example.vault -l ../scripts/trace-binder-transactions.js |
| 26 | Lab 01 — Intent redirection: build the deputy, build the exploit, write the fix | Advanced | frida -U -f com.pentest.deputy -l ../scripts/intent-monitor.js |
| 26 | Lab 04 — CTF: The Courier | CTF | frida -U -f com.pentest.deputy -l ../scripts/intent-monitor.js |
| 27 | Lab 03 — openFile Path Traversal to a Session Token |
Intermediate | frida -U -f com.example.vuln -l ../scripts/hook-provider.js |
| 27 | Lab 04 — call() as an Unprotected RPC Entry Point |
Advanced | [56-JADX] (../../56-JADX/README.md), Frida. |
| 28 | Lab 03 — The check that does nothing | Advanced | \| **Needs** \| Lab 02's prober installed; build-tools 35.0.1+; a JDK; Frida (host + 'frida-server'); root to attach Fri |
| 28 | Lab 05 — CTF: The Silent Door | CTF | frida -U -p <relay pid> -l ... --runtime=v8 |
| 29 | Lab 01 — Map the runtime receiver surface | Intermediate | frida -U -f com.example.target -l ../scripts/hook-broadcast.js |
| 29 | Lab 02 — Forge a broadcast at a vulnerable receiver | Intermediate | frida -U -f com.example.vault -l ../scripts/hook-broadcast.js |
| 29 | Lab 03 — Ordered broadcasts and interception | Advanced | frida -U -n com.example.vault -l ../scripts/hook-broadcast.js |
| 29 | Lab 04 — CTF: the receiver that is not there | CTF | frida -U -f com.example.vaultctf -l ../scripts/hook-broadcast.js |
| 30 | Lab 01 — Read the task graph | Beginner | # host — requires frida-server on the device; see ../../53-Frida/README.md |
| 30 | Lab 03 — The deputy that launders a grant | Advanced | frida -U -f com.pentest.ch30.victim -l scripts/activity-trace.js |
| 30 | Lab 04 — Tapjacking a consent screen | Advanced | frida -U -f com.pentest.ch30.victim -l scripts/activity-trace.js |
| 32 | Lab 01 — Reading a Manifest Three Ways | Beginner | frida -U -f $PKG -l ../scripts/frida-manifest-runtime.js |
| 32 | Lab 06 — CTF: The Lying Manifest | CTF | frida -U -f com.artlab.lyingmanifest -l ../scripts/frida-manifest-runtime.js |
| 33 | Lab 02 — Filesystem Diff Across a Session | Intermediate | an Android SDK with build-tools and a JDK, a rooted device, 'frida-server' running on the device |
| 33 | Lab 03 — Scoped Storage and FUSE, Measured | Advanced | [23-Permissions] (../../23-Permissions/README.md), a rooted API 29+ device, Frida |
| 33 | Lab 04 — CTF: The Plaintext Copy | CTF | [34-Cryptography] (../../34-Cryptography/README.md), a rooted device, Frida, Python 3 |
| 34 | Lab 01 — Break the Vulnerable Vault | Beginner | frida -U -f com.vault.target -l ../scripts/frida-jca-universal-hook.js |
| 34 | Lab 02 — Hook Everything | Intermediate | [Chapter 34 §2.3, §7.1–7.5] (../README.md), [53-Frida] (../../53-Frida/README.md), |
| 34 | Lab 03 — Audit a Real App, End to End | Advanced | frida -U -f <pkg> -l ../scripts/frida-jca-universal-hook.js \ |
| 35 | Lab 01 — End-to-end interception on a physical device | Intermediate | without Google Play, Burp Suite (Community is enough), OpenSSL on the host, 'adb', Frida 16+ on host |
| 35 | Lab 02 — The deliberate bad certificate | Advanced | completed, OpenSSL on the host, a rooted device or emulator, Frida 16+ on host and device |
| 35 | Lab 03 — Dissecting Validation: Which Check Is This App Actually Doing? | Advanced | frida -U -f com.example.app -l ../scripts/trace-tls-validation.js |
| 35 | Lab 04 — CTF: The Trusted Impostor | CTF | # host — then call verdict() in the Frida REPL once the request has been made |
| 36 | Lab 02 — Defeat a two-layer pin you built yourself | Advanced | > [18-ARM] (../../18-ARM/README.md), [53-Frida] (../../53-Frida/README.md) |
| 36 | Lab 03 — Attribute the rejection, and survive renewal | Intermediate | > [53-Frida] (../../53-Frida/README.md), 'openssl' on the host |
| 36 | Lab 04 — CTF: the pin that moved | CTF | > [53-Frida] (../../53-Frida/README.md) |
| 37 | Lab 01 — Build and Break Your Own Root Check | Beginner | or emulator with Magisk, Frida installed and working ([53-Frida] (../../53-Frida/README.md)), |
| 37 | Lab 02 — Native Check, No Java Surface | Intermediate | frida -U -f com.rootlab.target -l lab01-bypass.js --no-pause |
| 37 | Lab 03 — Trace, Identify, Neutralise | Advanced | frida -U -f com.rootlab.target -l ../scripts/root-check-tracer.js --no-pause |
| 37 | Lab 04 — CTF: The Decoupled Check | CTF | frida -U -f com.rootlab.target \ |
| 38 | Lab 01 — Build an app that detects its own repackaging | Beginner | D6 frida default port = PASS \| 127.0.0.1:27042 -> ConnectException |
| 38 | Lab 02 — Anti-analysis in JNI_OnLoad, and in the tier below it |
Intermediate | CH38N: N4 frida port PASS \| 127.0.0.1:27042 refused (Connection refused) |
| 39 | Lab 02 — Build a detector worth attacking | Intermediate | // frida -U -f com.lab39 -l java-only.js |
| 39 | Lab 03 — Trace and neutralise | Advanced | > and working Frida ([53-Frida] (../../53-Frida/README.md)). |
| 39 | Lab 04 — CTF: The Honest Emulator | CTF | > **You will need:** an emulator you own, Frida, jadx or apktool, the NDK. |
| 40 | Lab 01 — Obfuscation Triage | Beginner | \| grep -ciE 'ptrace\|TracerPid\|frida\|xposed\|magisk\|goldfish\|isDebuggerConnected' |
| 40 | Lab 02 — Recover Encrypted Strings, Then Read the Code | Intermediate | [53-Frida] (../../53-Frida/README.md), [56-JADX] (../../56-JADX/README.md) |
| 40 | Lab 03 — Recognise and Reverse Control-Flow Flattening | Intermediate | [14-Dalvik] (../../14-Dalvik/README.md) for Smali, 'jadx', 'apktool', Frida |
| 40 | Lab 04 — Unpack a Packed App | Advanced | [16-JNI] (../../16-JNI/README.md), Frida, 'jadx', 'apktool' |
| 40 | Lab 05 — CTF: The Vault | CTF | frida -U -n com.obflab.vault -l ../scripts/frida-string-decryptor.js |
| 43 | Lab 02 — Defeat a config that looks correct | Advanced | import frida, subprocess, time |
| 43 | Lab 03 — Audit a real app end to end | Advanced | import frida, time, sys |
| 44 | Lab 02 — Make an app you built trust your proxy CA | Intermediate | frida -U -p $(adb shell pidof com.pentest.nsclab) -l ../scripts/nsc-runtime.js |
| 44 | Lab 03 — Prove it on the device | Advanced | [Lab 02] (lab-02-make-an-app-trust-your-ca.md); [53-Frida] (../../53-Frida/README.md) for the |
| 44 | Lab 04 — CTF: the config that lies | CTF | frida -U -p $(adb shell pidof com.vaultpay.wallet \| tr -d '\r') -l ../scripts/nsc-runtime.js |
| 45 | Lab 01 — Intercept and decode a full authorisation-code + PKCE flow | Beginner | frida -U -f com.example.lab -l ../scripts/oauth-flow-tracer.js |
| 45 | Lab 02 — Testing PKCE enforcement, not PKCE presence | Intermediate | // Frida REPL — the highest-value hook in the chapter |
| 45 | Lab 04 — CTF: The Borrowed Identity | CTF | frida -U -f com.lab.vaultnotes -l ../scripts/oauth-flow-tracer.js |
| 47 | Lab 01 — Map the authentication surface | Intermediate | frida -U -f com.example.app -l ../../scripts/auth-hooks.js |
| 48 | Lab 01 — Callback versus crypto: the same attack, twice | Intermediate | > **Objective:** run one unchanged Frida script against two apps that look identical to the user, |
| 48 | Lab 03 — Audit a real app, end to end | Advanced | frida -U -n $PKG -l <chapter>/scripts/hook-biometric-prompt.js |
| 48 | Lab 04 — CTF: The Fifth Finger | CTF | \| **Needs** \| A device or emulator you own, with a fingerprint enrolled and a lock credential set. Frida for flags 1 a |
| 49 | Lab 01 — Keystore Inventory and Profiling | Beginner | emulator with 'frida-server' running, 'adb'. See [51 — Dynamic Analysis] (../../51-DynamicAnalysis/README.md) |
| 49 | Lab 02 — Prove Extraction Versus Use | Intermediate | a rooted device or emulator with 'frida-server', an enrolled biometric and a secure lock screen. |
| 49 | Lab 03 — Read a Key Attestation Certificate | Advanced | // Frida — confirm the app actually requested it |
| 49 | Lab 04 — CTF: The Vault That Lies | CTF | [Lab 03] (lab-03-attestation-analysis.md), a rooted device or emulator with 'frida-server' |
| 50 | Lab 01 — Determine the real security level of every key an app can create on your device | Intermediate | > **Needs root:** **no**, for parts A–D. Part E needs root and Frida. |
| 51 | Lab 01 — Your first complete runtime pass | Beginner | > **with no root and no 'frida-server'**, ending with **one written finding you have validated** and a |
| 52 | Lab 03 — Mapping the blind spots | Intermediate | 'frida-server'; Part C needs neither. |
| 53 | Lab 01 — First Contact | Beginner | python3 -m pip install --upgrade frida-tools |
| 53 | Lab 02 — The Four Failure Modes | Intermediate | frida-ps -U \| head -3 |
| 53 | Lab 03 — Native Instrumentation | Advanced | frida -U -f com.fridalab.nativelab -l ../scripts/native-tracer.js --no-pause |
| 53 | Lab 04 — CTF: The Silent Vault | CTF | StringBuilder sb = new StringBuilder("FRIDA{"); |
| 54 | Lab 01 — Your first session, and the four ways it goes wrong | Beginner | [53-Frida lab-01] (../../53-Frida/labs/lab-01-first-contact.md) completed, or at least a working |
| 54 | Lab 02 — One task, two tools: feeling the trade | Intermediate | **Prerequisites:** [lab-01] (lab-01-first-session.md) completed. Working 'frida-server' matching |
| 54 | Lab 03 — Mapping the envelope: turning "it depends" into a capability statement | Advanced | [lab-02] (lab-02-objection-versus-a-script.md) completed. You can write a Frida hook without |
| 54 | Lab 04 — CTF: The Confident Tool | CTF | and [lab-03] (lab-03-mapping-the-envelope.md) completed. You can write and debug a Frida agent. |
| 57 | Lab 02 — Recovering a Dynamic JNI Registration Table | Intermediate | frida -U -f com.ghidralab.hidden \ |
| 57 | Lab 04 — CTF: Three Routes to One Secret | CTF | [53-Frida §7] (../../53-Frida/README.md#7-dynamic-analysis) |
| 58 | Lab 02 — Structure recovery | Intermediate | // Frida REPL -- confirm a recovered structure by printing every field. |
| 62 | Lab 03 — DenyList Investigation | Intermediate | for (String needle : new String[]{"zygisk", "magisk", "frida", "memfd"}) { |
| 62 | Lab 05 — CTF: The Invisible Mount | CTF | // frida -U -f com.magisklab.vault -l solve-d.js --no-pause |
| 67 | Lab 02 — The escalation ladder, end to end | unstated | **Root required:** rounds 3 and 4 want frida-server. A no-root path is given for each. |
| 67 | Lab 03 — When to stop bypassing | Intermediate | **Root required:** no for parts A, C and D; part B is better with frida-server and gives a no-root |
| 67 | Lab 04 — CTF: the boolean that lied | CTF | // frida -U -f com.pentest.ch67.ctf -l /tmp/ctf.js --no-pause |
| 68 | Lab 02 — The hypothesis loop, run in the open | Intermediate | frida -D <serial> -n <process> -l ../scripts/dataflow-watch.js |
| 68 | Lab 03 — Across the boundary, and back | Advanced | frida -D $S -f <your.package> -l scripts/boundary-confirm.js -o rn.txt |
| 69 | Lab 01 — Your first complete triage | Beginner | frida -U -f <pkg> --no-pause -l hook-dlopen.js |
| 71 | Lab 02 — Map a Known App | Intermediate | 'jadx', 'apktool', Frida, an interception proxy, and the probe app from |
| 72 | Lab 03 — Write the finding | Advanced | - Frida attached immediately, all methods hookable |
| 73 | Lab 01 — The capability survey: what your setup can actually run | Beginner | frida --version |
| 73 | Lab 03 — Write a lab that survives someone else running it | Intermediate | **Requires:** the honest list — device? root? Frida? NDK? nothing? |
| 75 | Lab 02 — The take-home, with the grader's rubric | Intermediate | > Frida), and an emulator or device **you own**. |
| 76 | Lab 02 — The sheet lies: six commands that answer confidently and wrongly | Intermediate | frida-ps -U |
| 76 | Lab 04 — CTF: The stale sheet | CTF | \| 5 \| 'frida-ps -U' \| Whether Frida is working on this device \| |
| 78 | Lab 02 — Take a diagram from this repository and find what it omits | Intermediate | // frida — save as trace-getter.js, run: |
| 81 | Lab 02 — ArtMethod Entrypoints |
Intermediate | Frida on the host and 'frida-server' on the device |
| 81 | Lab 04 — CTF: The Invisible Hook | CTF | [Chapter 81 §3.6–3.7] (../README.md#36-entrypoints-what-quick-actually-means), Frida, 'jadx', 'd8' |
objection — Objection (8)¶
| Ch | Lab | Band | Evidence in the lab |
|---|---|---|---|
| 00 | Lab 01 — Build Your Lab | Beginner | pip install frida-tools objection |
| 10 | Lab 02 — Unpack, Modify, Rebuild, Re-sign | Intermediate | # host — or use Objection's built-in helpers |
| 54 | Lab 01 — Your first session, and the four ways it goes wrong | Beginner | python3 -B ../scripts/objection-doctor.py --serial <your-serial> |
| 54 | Lab 02 — One task, two tools: feeling the trade | Intermediate | python3 -B ../scripts/objection-doctor.py --serial <serial> |
| 54 | Lab 03 — Mapping the envelope: turning "it depends" into a capability statement | Advanced | [lab-02] (lab-02-objection-versus-a-script.md) completed. You can write a Frida hook without |
| 54 | Lab 04 — CTF: The Confident Tool | CTF | **Prerequisites:** [lab-01] (lab-01-first-session.md), [lab-02] (lab-02-objection-versus-a-script.md) |
| 73 | Lab 01 — The capability survey: what your setup can actually run | Beginner | [yes] Objection You have v1.11.0 and v1.12.5 is ready for download. |
| 76 | Lab 03 — Build a sheet you would trust a year from now | Advanced | \| 'objection --gadget <pkg> explore' then 'android root disable' \| 'any' \| 'all' \| **Did not defeat this target.** I |
ndk — Android NDK (native toolchain) (51)¶
| Ch | Lab | Band | Evidence in the lab |
|---|---|---|---|
| 01 | Lab 03 — Stack Frames, Calling Conventions, and Losing Control of the Return Address | Intermediate | # host / WSL — adjust the NDK path and API level for your installation |
| 15 | Lab 02 — Run the hardening checklist, and write it up honestly | Intermediate | **You will need:** the NDK (this lab is about comparing builds, so the fixtures are essential), |
| 16 | Lab 01 — Building the bridge, and breaking it on purpose | Beginner | \| 'nm' / 'readelf' / 'strings' \| Part 3 \| Use the NDK's 'llvm-nm', 'llvm-readelf', 'llvm-strings' \| |
| 16 | Lab 02 — References, exceptions, and the crash you can cause | Intermediate | \| Android NDK, a device or emulator, 'adb' \| Parts 2–6 \| Part 1 is paper; read the rest \| |
| 16 | Lab 03 — Recovering dynamically registered natives | Advanced | \| Android NDK \| Part 2 (building the target) \| Use any real app that registers dynamically instead \| |
| 16 | Lab 04 — CTF: The Unlisted Number | CTF | $TC/aarch64-linux-android21-clang -shared -fPIC -O2 \ |
| 17 | Lab 02 — Version Fingerprinting Without Build Files | Intermediate | externalNativeBuild { cmake { path "src/main/cpp/CMakeLists.txt" } } |
| 17 | Lab 04 — Catch the Constructor | Advanced | [53-Frida] (../../53-Frida/README.md), the Android NDK, a rooted or debuggable test device. |
| 17 | Lab 05 — CTF: The Library That Lied | CTF | ndk { abiFilters "arm64-v8a" } |
| 18 | Lab 01 — Read your first disassembly | Beginner | **You will need:** the Android NDK (r21 or newer), a shell, and Python 3. **No device.** |
| 18 | Lab 02 — Patch the licence check | Intermediate | NB="$ANDROID_HOME/ndk/25.2.9519653/toolchains/llvm/prebuilt/$(ls "$ANDROID_HOME/ndk/25.2.9519653/toolchains/llvm/prebuil |
| 18 | Lab 03 — Runtime truth: memory versus the file | Advanced | 'frida-server', 'adb', the NDK, and Python 3 |
| 19 | Lab 01 — Reading /proc/<pid>/maps by hand, and finding a known value in a live process |
Intermediate | \| The NDK \| To build the fixtures. Or skip to Part 4 and use the shipped capture. \| |
| 19 | Lab 03 — Detection: HWASan, MTE, GWP-ASan, malloc_debug, and reading their reports | Advanced | \| The NDK \| r25 or newer. \| |
| 25 | Lab 02 — Parcel anatomy: decode the bytes, then break the token | Intermediate | > **Needs:** 'adb' and a device (no root). The NDK for Tasks 5–7; without it, the shipped captures |
| 25 | Lab 03 — The identity boundary: prove it, then break the code around it | Intermediate | > **Needs:** 'adb', a device (no root for Parts A and B), the NDK for Part A, Android Studio for |
| 25 | Lab 04 — Transaction limits: measure the budget, then spend someone else's | Intermediate | > **Needs:** 'adb', a device (no root), the NDK for Task 2, Android Studio for Parts B and C. |
| 25 | Lab 05 — CTF: The Unmarked Code | CTF | > **Needs:** everything from labs 01–04. 'adb', the NDK, Android Studio. |
| 36 | Lab 01 — Map the pinning surface before you touch anything | Beginner | # host — NDK llvm-readelf |
| 36 | Lab 02 — Defeat a two-layer pin you built yourself | Advanced | llvm-objdump -s -j .rodata /tmp/lab02/libnativepin.so \| grep -A2 -B2 'AAAA' |
| 37 | Lab 02 — Native Check, No Java Surface | Intermediate | [15-Native-Code] (../../15-Native-Code/README.md), [16-JNI] (../../16-JNI/README.md), the Android NDK |
| 38 | Lab 02 — Anti-analysis in JNI_OnLoad, and in the tier below it |
Intermediate | # host — set these to your NDK and host tag |
| 39 | Lab 01 — Measure both sides | Beginner | ls "$ANDROID_HOME/ndk/" |
| 39 | Lab 02 — Build a detector worth attacking | Intermediate | > **You will need:** an emulator you own, the NDK, and ideally a physical device. |
| 39 | Lab 03 — Trace and neutralise | Advanced | * $NDK/x86_64-linux-android21-clang -Wall -Wextra -O2 -shared -fPIC \ |
| 39 | Lab 04 — CTF: The Honest Emulator | CTF | > **You will need:** an emulator you own, Frida, jadx or apktool, the NDK. |
| 47 | Lab 03 — Enumeration, lockout and OTP | Advanced | > [Lab 02] (lab-02-session-lifecycle-and-logout.md), and — for Part 5 — the Android NDK or any |
| 53 | Lab 03 — Native Instrumentation | Advanced | // Build with the NDK. CMakeLists.txt is below. |
| 57 | Lab 01 — First Contact With a .so |
Beginner | // Build with the NDK for arm64-v8a. See the CMakeLists.txt below. |
| 57 | Lab 02 — Recovering a Dynamic JNI Registration Table | Intermediate | // Build for arm64-v8a with the NDK. Stripped, and every implementation is |
| 57 | Lab 04 — CTF: Three Routes to One Secret | CTF | // Build for arm64-v8a with the NDK, stripped. |
| 58 | Lab 01 — Your first database | Beginner | export NDKBIN="$HOME/AppData/Local/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/windows-x86_64/bin" |
| 58 | Lab 02 — Structure recovery | Intermediate | export NDKBIN="$HOME/AppData/Local/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/windows-x86_64/bin" |
| 58 | Lab 03 — FLIRT and type libraries | Intermediate | export NDKBIN="$HOME/AppData/Local/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/windows-x86_64/bin" |
| 58 | Lab 04 — CTF: the function that does not matter | CTF | export NDKBIN="$HOME/AppData/Local/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/windows-x86_64/bin" |
| 59 | Lab 02 — Triage a real library | Intermediate | # host -- AArch64 libraries on an x86_64 AVD (present when NDK translation is installed) |
| 59 | Lab 03 — Patching, and the function that did not matter | Advanced | llvm-objdump -d ~/ch59-build/r2gate.verifyonly --disassemble-symbols=lt_verify_license \| head -6 |
| 65 | Lab 01 — The five hook types, on one target | Intermediate | export ANDROID_NDK=$HOME/Android/Sdk/ndk/25.2.9519653 |
| 65 | Lab 02 — Write an inline hook by hand | Advanced | 8× Cortex-A53 ('CPU implementer 0x41', 'CPU part 0xd03'). NDK 25.2.9519653, clang 14.0.7. |
| 65 | Lab 03 — Where hooks fail | Advanced | $NDK/llvm-objdump -d $OUT/libinline.so \| sed -n '/<lic_is_valid>:/,/^$/p;/<lic_open_feature>:/,/^$/p' |
| 65 | Lab 04 — CTF: The Honest Trampoline | CTF | export ANDROID_NDK=$HOME/Android/Sdk/ndk/25.2.9519653 |
| 67 | Lab 02 — The escalation ladder, end to end | unstated | export NDKCC="$(ls -d $SDK/ndk/*/toolchains/llvm/prebuilt/*/bin/aarch64-linux-android21-clang \| tail -1)" |
| 68 | Lab 01 — The first twenty minutes | Beginner | # host -- adjust for your NDK location and host triple |
| 68 | Lab 02 — The hypothesis loop, run in the open | Intermediate | export NDKBIN="$HOME/AppData/Local/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/windows-x86_64/bin" |
| 68 | Lab 03 — Across the boundary, and back | Advanced | $NDKBIN/llvm-objdump -d "$OUT/libinvestigate.so" \| grep -oE 'bl[[:space:]]+0x[0-9a-f]+ <[^>]+>' \| sort \| uniq -c |
| 68 | Lab 04 — CTF: The confident conclusion | CTF | export NDKBIN="$HOME/AppData/Local/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/windows-x86_64/bin" |
| 69 | Lab 01 — Your first complete triage | Beginner | built lib/arm64-v8a/libinertstub.so with aarch64-linux-android21-clang |
| 73 | Lab 01 — The capability survey: what your setup can actually run | Beginner | [yes] Android NDK C:\Users\harsh\AppData\Local\Android\Sdk\ndk\25.2.9519653 |
| 73 | Lab 03 — Write a lab that survives someone else running it | Intermediate | **Requires:** the honest list — device? root? Frida? NDK? nothing? |
| 74 | Lab 02 — The patch that changed nothing | Intermediate | > **Level:** Intermediate · **Time:** 2–3 hours · **Needs:** the NDK on your host. A device is |
| 81 | Lab 03 — Zygisk Module Anatomy | Advanced | NDK r21 or newer, a rooted lab device with Magisk Zygisk or ZygiskNext |
jdk — JDK plus SDK build-tools (javac / kotlinc / d8 / aapt2) (109)¶
| Ch | Lab | Band | Evidence in the lab |
|---|---|---|---|
| 00 | Lab 01 — Build Your Lab | Beginner | javac -version |
| 03 | Lab 01 — Your first program, all the way down | Beginner | javac -version # from a JDK; 'java -version' alone is not enough |
| 03 | Lab 02 — Hash maps by hand, then in a real DEX | Intermediate | javac -version |
| 03 | Lab 03 — The debugging challenge | Intermediate | gcc --version && python3 --version && javac -version |
| 04 | Lab 01 — Hello World, from source to DEX and back again | Beginner | javac -g Hello.java |
| 04 | Lab 02 — Strings, ==, and the DEX string table |
Intermediate | javac -g Login.java |
| 04 | Lab 03 — Reflection hunt (CTF) | CTF | javac -g:none VaultChallenge.java |
| 05 | Lab 01 — Spot the Kotlin | unstated | kotlinc src/ModernStore.kt src/LegacyStore.java -include-runtime -d mixed.jar |
| 05 | Lab 02 — Null Safety in JADX, and Breaking It with Frida | unstated | kotlinc src/NullDemo.kt src/JavaConfig.java -include-runtime -d nulls.jar |
| 05 | Lab 03 — CTF: Reconstruct the Coroutine State Machine | CTF | kotlinc Vault.kt -cp kotlinx-coroutines-core-jvm-1.8.1.jar -d classes/ |
| 06 | Lab 03 — Audit a Firmware Image | Advanced | aapt2 dump xmltree SomeApp.apk --file AndroidManifest.xml \| grep -A3 -E 'exported\|permission' |
| 08 | Lab 03 — Supply-chain simulation | Advanced | grep execve build.strace \| grep -vE "gradle\|java\|javac\|kotlinc" \| head -20 |
| 08 | Lab 04 — Build a userdebug AOSP image and trace a module | Advanced | apksigner verify --print-certs \ |
| 08 | Lab 05 — CTF: The invisible receiver | CTF | aapt2 dump badging challenge.apk |
| 09 | Lab 03 — CTF: The Shared UID Heist | CTF | keytool -genkeypair \ |
| 10 | Lab 01 — Dissecting the APK, Byte by Byte | Intermediate | apksigner verify -v target.apk 2>/dev/null \|\| echo "apksigner not installed - fine, continue" |
| 10 | Lab 02 — Unpack, Modify, Rebuild, Re-sign | Intermediate | apksigner verify -v --print-certs target.apk \| tee original-signature.txt |
| 10 | Lab 03 — Write Your Own AXML Parser | Advanced | aapt2 dump xmltree target.apk --file AndroidManifest.xml > aapt2-reading.txt |
| 10 | Lab 04 — CTF: The Lying Manifest | CTF | that yourself with 'apksigner verify -v' before and after. |
| 11 | Lab 02 — ClassLoader Archaeology | Intermediate | javac -d ~/loaderlab-alt/classes ~/loaderlab-alt/com/example/loaderlab/Greeter.java |
| 11 | Lab 03 — Dynamic DEX Loading and Hooking | Advanced | javac -d ~/memlab-payload/classes ~/memlab-payload/com/example/hidden/Secret.java |
| 11 | Lab 04 — CTF: The Vanishing Class | CTF | javac -d ~/vanish/classes ~/vanish/src/com/vanishing/payload/Guard.java |
| 12 | Lab 04 — CTF: The Lying DEX | CTF | zipalign -p -f -v 4 app-lying.apk aligned.apk |
| 14 | Lab 01 — Read Smali by Hand | Beginner | **Needs:** a JDK, Android SDK build-tools ('d8'), 'baksmali'. **No device, no emulator, no Gradle |
| 14 | Lab 02 — Patch, Rebuild, Verify | Intermediate | **Needs:** Android Studio or a Gradle command line, 'apktool', 'zipalign', 'apksigner', 'adb', and a |
| 14 | Lab 03 — Break the Verifier on Purpose | Advanced | 'zipalign', 'apksigner', 'adb', a device or emulator. |
| 14 | Lab 04 — CTF: The Latin VM | CTF | javac -d classes/ Latin.java Challenge.java |
| 15 | Lab 04 — From APK entry to mapped page | Intermediate | are required. Run zipalign. See README section 3.11. |
| 17 | Lab 02 — Version Fingerprinting Without Build Files | Intermediate | apksigner sign --ks debug.keystore app-release.apk |
| 17 | Lab 05 — CTF: The Library That Lied | CTF | apksigner sign --ks debug.keystore app-release.apk |
| 20 | Lab 04 — CTF: The Lying Phone | CTF | zipalign -f 4 lp_patched.apk lp_aligned.apk |
| 24 | Lab 01 — Map the IPC Surface | Beginner | aapt2 dump badging target.apk \| grep -E "package:\|sdkVersion\|targetSdkVersion" |
| 24 | Lab 05 — CTF: Five Doors | CTF | aapt2 dump badging fivedoors.apk \| grep -E "package\|targetSdkVersion" |
| 26 | Lab 01 — Intent redirection: build the deputy, build the exploit, write the fix | Advanced | aapt2 dump xmltree --file AndroidManifest.xml out/deputy.apk \| grep -A3 'E: activity' |
| 26 | Lab 02 — Resolution forensics: predict, then measure | Intermediate | aapt2 dump xmltree --file AndroidManifest.xml app.apk \| sed -n '/intent-filter/,/^ *E:/p' |
| 26 | Lab 03 — App Links verification state on a real device | Intermediate | aapt2 dump xmltree --file AndroidManifest.xml target.apk \ |
| 26 | Lab 04 — CTF: The Courier | CTF | aapt2 dump xmltree --file AndroidManifest.xml out/deputy.apk \| sed -n '/E: activity/,$p' \| head -80 |
| 28 | Lab 02 — Bind to a real service from an unprivileged app | Intermediate | javac -version |
| 28 | Lab 03 — The check that does nothing | Advanced | javac -source 8 -target 8 -bootclasspath "$AJ" -d classes \ |
| 28 | Lab 05 — CTF: The Silent Door | CTF | aapt2 dump xmltree --file AndroidManifest.xml doorkeeper.apk \| grep -A6 "E: action" |
| 30 | Lab 02 — Task hijacking, proved or disproved | Intermediate | aapt2 dump xmltree --file AndroidManifest.xml \ |
| 31 | Lab 04 — Sweep and adjudicate | Advanced | > **You will need:** a device or emulator you own, 'adb', Python 3, 'aapt2' from build-tools, and |
| 32 | Lab 01 — Reading a Manifest Three Ways | Beginner | [10-APK-Internals] (../../10-APK-Internals/README.md), 'adb', 'apktool', 'aapt2', a device or emulator |
| 32 | Lab 02 — The Full Audit | Intermediate | aapt2 dump xmltree --file AndroidManifest.xml real.apk > real-aapt2.txt |
| 32 | Lab 05 — Merge and Inject | Advanced | aapt2 dump xmltree $APK --file AndroidManifest.xml \| grep -A4 -E 'receiver\|service\|provider' |
| 32 | Lab 06 — CTF: The Lying Manifest | CTF | # then repack, zipalign and re-sign |
| 34 | Lab 03 — Audit a Real App, End to End | Advanced | aapt2 dump badging target.apk \| head -5 |
| 35 | Lab 01 — End-to-end interception on a physical device | Intermediate | apksigner sign --ks debug.keystore patched.apk |
| 35 | Lab 04 — CTF: The Trusted Impostor | CTF | aapt2 link -I "$AJ" --manifest AndroidManifest.xml -o "$OUT/base.apk" --java "$OUT/gen" |
| 36 | Lab 01 — Map the pinning surface before you touch anything | Beginner | aapt2 dump xmltree --file res/xml/network_security_config.xml target.apk |
| 37 | Lab 03 — Trace, Identify, Neutralise | Advanced | aapt2 dump xmltree ../app-release.apk --file AndroidManifest.xml \| grep -A6 queries |
| 38 | Lab 01 — Build an app that detects its own repackaging | Beginner | keytool -list -v -keystore /tmp/ch38/dev.ks -storepass android -alias ch38dev \| grep SHA256 |
| 38 | Lab 02 — Anti-analysis in JNI_OnLoad, and in the tier below it |
Intermediate | # then zipalign + apksigner exactly as build.sh does |
| 38 | Lab 04 — CTF: the app that works fine, and then does not | CTF | aapt2 dump xmltree --file AndroidManifest.xml /tmp/ch38ctf/vault-challenge.apk \| grep -A6 provider |
| 39 | Lab 01 — Measure both sides | Beginner | # host - the script does aapt2 -> javac -> d8 -> zipalign -> apksigner |
| 39 | Lab 02 — Build a detector worth attacking | Intermediate | # then zipalign and re-sign, exactly as build-probe-app.sh does |
| 40 | Lab 01 — Obfuscation Triage | Beginner | [12-DEX-Internals] (../../12-DEX-Internals/README.md), 'jadx', 'apktool', 'aapt2', 'python3' |
| 40 | Lab 03 — Recognise and Reverse Control-Flow Flattening | Intermediate | zipalign -p -f 4 D_patched.apk D_aligned.apk |
| 41 | Lab 02 — Build the diff: the same app, with and without rules | Intermediate | java -cp "$BT/lib/d8.jar" com.android.tools.r8.R8 --version |
| 41 | Lab 03 — Audit an app you did not build | Advanced | aapt2 dump packagename target.apk |
| 41 | Lab 04 — CTF: the rule that lied | CTF | aapt2 dump resources /tmp/ch41ctf/app.apk \| grep -oE 'string/[a-z0-9_]+' |
| 42 | Lab 01 — Build it yourself, then read the mapping | Intermediate | $ D8="$SDK/build-tools/35.0.1/lib/d8.jar" |
| 42 | Lab 02 — Synthetic safari | Intermediate | $ D8="$SDK/build-tools/35.0.1/lib/d8.jar" |
| 42 | Lab 04 — CTF: The Leaked Key | CTF | $ D8="$SDK/build-tools/35.0.1/lib/d8.jar" |
| 43 | Lab 01 — Exploit a JavaScript bridge in an app you build | Intermediate | ls $ANDROID_HOME/build-tools # need aapt2, d8, zipalign, apksigner |
| 44 | Lab 01 — Extract and read a real app's network security config | Intermediate | aapt2 dump resources base.apk \| grep -B1 -A2 '0x7f0b0000' |
| 44 | Lab 02 — Make an app you built trust your proxy CA | Intermediate | keytool -genkeypair -keystore lab.keystore -alias lab -storepass labpass \ |
| 47 | Lab 01 — Map the authentication surface | Intermediate | which aapt2 apksigner dexdump # from Android SDK build-tools |
| 47 | Lab 02 — Session lifecycle and logout | Intermediate | D8 password change does not invalidate other sessions |
| 48 | Lab 02 — Measuring the binding yourself | Intermediate | javac -version # any JDK |
| 49 | Lab 03 — Read a Key Attestation Certificate | Advanced | apksigner verify --print-certs app-debug.apk \| grep -i 'SHA-256 digest' |
| 51 | Lab 01 — Your first complete runtime pass | Beginner | aapt2 dump xmltree --file AndroidManifest.xml artefact/base.apk > evidence/manifest.txt |
| 51 | Lab 02 — The loop, run explicitly | Intermediate | aapt2 dump xmltree --file AndroidManifest.xml loop/artefact/base.apk > loop/static/manifest.txt |
| 51 | Lab 03 — Coverage, and the lie of a clean pass | Intermediate | aapt2 dump xmltree --file AndroidManifest.xml cov/artefact/base.apk > cov/manifest.txt |
| 51 | Lab 04 — CTF: the session that lied | CTF | # entry points, from aapt2 dump xmltree on base.apk (SHA-256 4b1c...e07a) |
| 52 | Lab 01 — Your first complete static pass | Beginner | apksigner verify -v --print-certs base.apk \| tee evidence/signer.txt |
| 53 | Lab 02 — The Four Failure Modes | Intermediate | javac -source 8 -target 8 -d plugin_build plugin/com/fridalab/plugin/Engine.java |
| 53 | Lab 04 — CTF: The Silent Vault | CTF | javac -source 8 -target 8 -d core_build core/com/fridalab/core/Validator.java |
| 55 | Lab 01 — The first scan, and reading it bottom-up | Beginner | [32-Manifest] (../../32-Manifest/README.md), and a working 'aapt2' (Android build-tools). |
| 55 | Lab 02 — The survival rate | unstated | manifest via: aapt2 |
| 55 | Lab 03 — Obfuscation blindness | Advanced | with 'unzip', 'grep', 'aapt2' and 'jadx', none of which need a server. |
| 55 | Lab 04 — CTF: the report that lies | CTF | aapt2 dump xmltree --file AndroidManifest.xml CMPen-Android-App-v1.2.apk \| grep -B3 -A3 'E: permission' |
| 56 | Lab 01 — Your first decompilation, and what it costs | Beginner | [1/4] javac --release 8 -g:none (release) |
| 56 | Lab 02 — The method jadx gets wrong | Advanced | javac -d _proof Proof.java && java -cp _proof Proof |
| 56 | Lab 03 — Triage a real application | Intermediate | aapt2 dump xmltree base.apk --file AndroidManifest.xml > manifest-aapt2.txt |
| 63 | Lab 02 — Your first module, built offline | Intermediate | > **Needs a network?** **No.** Not once. That is deliberate — the build path here uses 'javac' and |
| 64 | Lab 02 — Read a classic module, then build one | Intermediate | javac -version # 11 or newer |
| 66 | Lab 01 — First contact: two APKs and one command | Beginner | [10 — APK Internals] (../../10-APK-Internals/README.md) for what 'apksigner' is doing · |
| 66 | Lab 02 — The gate matrix: what actually decides | Intermediate | aapt2 dump xmltree --file AndroidManifest.xml /tmp/ch66/$a.apk \| grep -c debuggable |
| 67 | Lab 02 — The escalation ladder, end to end | unstated | BTB="$BT"; [ -x "$BTB/aapt2" ] \|\| BTB="$BT" |
| 67 | Lab 03 — When to stop bypassing | Intermediate | keytool -genkeypair -keystore ks -storepass android -keypass android -alias k \ |
| 67 | Lab 04 — CTF: the boolean that lied | CTF | "$BT/aapt2" link -o "$(p "$W/base.apk")" -I "$(p "$AJ")" \ |
| 68 | Lab 01 — The first twenty minutes | Beginner | aapt2 dump badging base.apk \| grep -E 'package: name\|versionName' |
| 68 | Lab 03 — Across the boundary, and back | Advanced | aapt2 dump badging base.apk \| grep -E 'package: name\|versionName' |
| 69 | Lab 01 — Your first complete triage | Beginner | java -version # any JDK with javac and keytool |
| 69 | Lab 03 — Full triage, ending in a written analysis | Advanced | "$ANDROID_HOME"/build-tools/*/apksigner verify -v --print-certs \ |
| 71 | Lab 02 — Map a Known App | Intermediate | apksigner verify -v --print-certs target.apk \| tee evidence/00-signer.txt |
| 72 | Lab 01 — Build the base rate | Intermediate | Requires aapt2 from the Android SDK build-tools on PATH.""" |
| 73 | Lab 01 — The capability survey: what your setup can actually run | Beginner | [yes] JDK (javac) javac 24.0.2 |
| 73 | Lab 02 — The chain no chapter can host: static → dynamic → report | Intermediate | "$ANDROID_HOME/build-tools/35.0.1/aapt2" dump xmltree \ |
| 75 | Lab 02 — The take-home, with the grader's rubric | Intermediate | apksigner verify --print-certs base.apk |
| 76 | Lab 01 — The sixty-minute triage, using only the sheets | Intermediate | > 'aapt2' (or 'apktool'), and any APK you are authorised to analyse. |
| 77 | Lab 02 — Manifest Audit From a Live Device | Intermediate | aapt2 dump xmltree target.apk --file AndroidManifest.xml > manifest-parsed.txt |
| 77 | Lab 03 — The Exported-Surface Sweep | Intermediate | aapt2 dump xmltree target.apk --file AndroidManifest.xml \| grep -B2 -A2 'exported' |
| 77 | Lab 05 — CTF: One Command, One Flag | CTF | apksigner verify -v --print-certs target.apk |
| 78 | Lab 01 — Draw the trust boundaries of a real app, from evidence only | Intermediate | aapt2 dump xmltree --file AndroidManifest.xml app.apk \| head -80 |
| 78 | Lab 02 — Take a diagram from this repository and find what it omits | Intermediate | aapt2 dump xmltree --file AndroidManifest.xml app.apk \| grep -B6 "E: intent-filter" |
| 81 | Lab 02 — ArtMethod Entrypoints |
Intermediate | javac -source 8 -target 8 -d out Target.java |
| 81 | Lab 04 — CTF: The Invisible Hook | CTF | [Chapter 81 §3.6–3.7] (../README.md#36-entrypoints-what-quick-actually-means), Frida, 'jadx', 'd8' |
jadx — jadx (81)¶
| Ch | Lab | Band | Evidence in the lab |
|---|---|---|---|
| 00 | Lab 01 — Build Your Lab | Beginner | # Windows : choco install jadx -y |
| 00 | Lab 02 — Your First 60 Minutes | Beginner | jadx-gui target.apk |
| 03 | Lab 04 — Reading code you did not write | unstated | jadx -d out/ target.apk |
| 04 | Lab 01 — Hello World, from source to DEX and back again | Beginner | jadx -d jadx_out classes.dex |
| 04 | Lab 02 — Strings, ==, and the DEX string table |
Intermediate | jadx -d jadx_out classes.dex |
| 04 | Lab 03 — Reflection hunt (CTF) | CTF | jadx -d jadx_out classes.dex |
| 05 | Lab 01 — Spot the Kotlin | unstated | [lab 02] (lab-02-null-safety-in-jadx.md) and [lab 03] (lab-03-coroutine-state-machine.md). |
| 05 | Lab 02 — Null Safety in JADX, and Breaking It with Frida | unstated | # Lab 02 — Null Safety in JADX, and Breaking It with Frida |
| 05 | Lab 03 — CTF: Reconstruct the Coroutine State Machine | CTF | [lab 01] (lab-01-spot-the-kotlin.md) and [lab 02] (lab-02-null-safety-in-jadx.md). |
| 07 | Lab 04 — Hidden APIs and the blocklist | Intermediate | jadx -d decompiled some-app.apk |
| 07 | Lab 05 — CTF: The vendor's back door | CTF | jadx -d svc services.jar |
| 08 | Lab 05 — CTF: The invisible receiver | CTF | jadx -d src --deobf challenge.apk |
| 09 | Lab 03 — CTF: The Shared UID Heist | CTF | jadx -d out companion-release.apk |
| 10 | Lab 02 — Unpack, Modify, Rebuild, Re-sign | Intermediate | jadx -d jadx-out --show-bad-code target.apk 2>/dev/null |
| 10 | Lab 03 — Write Your Own AXML Parser | Advanced | jadx -d /tmp/bentjx --no-src bent-attrsize.apk && cat /tmp/bentjx/resources/AndroidManifest.xml |
| 11 | Lab 03 — Dynamic DEX Loading and Hooking | Advanced | jadx -d /tmp/memlab-jadx app/build/outputs/apk/debug/app-debug.apk |
| 11 | Lab 04 — CTF: The Vanishing Class | CTF | jadx -d /tmp/vanish-jadx app/build/outputs/apk/debug/app-debug.apk |
| 12 | Lab 04 — CTF: The Lying DEX | CTF | jadx -d out challenge.apk |
| 13 | Lab 01 — Reading the ART Artifacts | Beginner | jadx -d ./decompiled ./dex_from_vdex/*.dex |
| 16 | Lab 01 — Building the bridge, and breaking it on purpose | Beginner | jadx -d out target.apk 2>/dev/null \| tail -5 |
| 17 | Lab 01 — Build the Inventory | Beginner | jadx --no-src -d out base.apk && find out -name '*.java' \| wc -l |
| 20 | Lab 03 — Breaking a client-side integrity gate | Intermediate | jadx -d target_jadx target.apk |
| 20 | Lab 04 — CTF: The Lying Phone | CTF | jadx -d lp_jadx app-debug.apk |
| 21 | Lab 03 — Write an Attacker App and Probe the Boundary | Intermediate | jadx -d out victim.apk |
| 21 | Lab 05 — CTF: "Escape the Torch" | CTF | jadx -d vault_out vault-release.apk |
| 23 | Lab 03 — Borrowing a privileged app's permissions | Advanced | > 'apktool', 'jadx', Python 3.6+, the Android SDK build-tools |
| 23 | Lab 04 — CTF: The Borrowed Key | CTF | grep -rn 'checkCallingOrSelfPermission\\|Handler\\|post(' jadx-helper/ |
| 24 | Lab 01 — Map the IPC Surface | Beginner | jadx -d out/ target.apk >/dev/null 2>&1 |
| 24 | Lab 03 — The Confused Deputy | Intermediate | jadx -d out/ deputy.apk >/dev/null 2>&1 |
| 25 | Lab 03 — The identity boundary: prove it, then break the code around it | Intermediate | jadx -d out/ some-system-app.apk |
| 25 | Lab 05 — CTF: The Unmarked Code | CTF | jadx -d out/ ledger.apk |
| 26 | Lab 01 — Intent redirection: build the deputy, build the exploit, write the fix | Advanced | jadx -d src/ out/deputy.apk |
| 27 | Lab 04 — call() as an Unprotected RPC Entry Point |
Advanced | [56-JADX] (../../56-JADX/README.md), Frida. |
| 28 | Lab 02 — Bind to a real service from an unprivileged app | Intermediate | jadx -d out/ MiuiAnalytics.apk |
| 28 | Lab 05 — CTF: The Silent Door | CTF | jadx -d out/ doorkeeper.apk |
| 34 | Lab 01 — Break the Vulnerable Vault | Beginner | [10-APK-Internals] (../../10-APK-Internals/README.md), 'jadx' and 'apktool' installed, |
| 34 | Lab 03 — Audit a Real App, End to End | Advanced | jadx -d static/jadx apk/target.apk |
| 34 | Lab 04 — CTF: The Padding Oracle | CTF | jadx -d out challenge.apk |
| 35 | Lab 03 — Dissecting Validation: Which Check Is This App Actually Doing? | Advanced | jadx -d out-jadx/ target.apk |
| 37 | Lab 03 — Trace, Identify, Neutralise | Advanced | [56-JADX] (../../56-JADX/README.md) |
| 38 | Lab 03 — Map before you bypass | Advanced | jadx -d j corpus/app.apk 2>/dev/null |
| 38 | Lab 04 — CTF: the app that works fine, and then does not | CTF | jadx -d /tmp/ch38ctf/j /tmp/ch38ctf/vault-challenge.apk |
| 39 | Lab 03 — Trace and neutralise | Advanced | > **You will need:** an emulator you own, Frida, jadx or apktool. |
| 39 | Lab 04 — CTF: The Honest Emulator | CTF | > **You will need:** an emulator you own, Frida, jadx or apktool, the NDK. |
| 40 | Lab 01 — Obfuscation Triage | Beginner | [12-DEX-Internals] (../../12-DEX-Internals/README.md), 'jadx', 'apktool', 'aapt2', 'python3' |
| 40 | Lab 02 — Recover Encrypted Strings, Then Read the Code | Intermediate | [53-Frida] (../../53-Frida/README.md), [56-JADX] (../../56-JADX/README.md) |
| 40 | Lab 03 — Recognise and Reverse Control-Flow Flattening | Intermediate | [14-Dalvik] (../../14-Dalvik/README.md) for Smali, 'jadx', 'apktool', Frida |
| 40 | Lab 04 — Unpack a Packed App | Advanced | [16-JNI] (../../16-JNI/README.md), Frida, 'jadx', 'apktool' |
| 40 | Lab 05 — CTF: The Vault | CTF | jadx -d v_jadx --no-res vault.apk |
| 41 | Lab 03 — Audit an app you did not build | Advanced | jadx -d out --no-res target.apk 2>/dev/null |
| 42 | Lab 02 — Synthetic safari | Intermediate | $ jadx -d out-jadx target.apk 2>/dev/null |
| 45 | Lab 01 — Intercept and decode a full authorisation-code + PKCE flow | Beginner | apktool d app.apk -o work/ && jadx -d out/ app.apk |
| 45 | Lab 04 — CTF: The Borrowed Identity | CTF | jadx -d out/ vaultnotes.apk |
| 48 | Lab 01 — Callback versus crypto: the same attack, twice | Intermediate | jadx -d /tmp/ch48-jadx app/build/outputs/apk/release/app-release-unsigned.apk |
| 48 | Lab 03 — Audit a real app, end to end | Advanced | jadx -d jadx-out base.apk |
| 48 | Lab 04 — CTF: The Fifth Finger | CTF | jadx -d vt-jadx vt.apk |
| 49 | Lab 04 — CTF: The Vault That Lies | CTF | jadx -d out vault-release.apk |
| 51 | Lab 02 — The loop, run explicitly | Intermediate | you may decompile — see §1. 'jadx' or 'apktool', 'python3'. |
| 51 | Lab 03 — Coverage, and the lie of a clean pass | Intermediate | jadx -d cov/out cov/artefact/base.apk 2>/dev/null |
| 52 | Lab 01 — Your first complete static pass | Beginner | jadx -d out base.apk 2>&1 \| tail -5 & |
| 55 | Lab 01 — The first scan, and reading it bottom-up | Beginner | jadx --version \|\| echo "no jadx - steps 6 and 7 will be shallow" |
| 55 | Lab 02 — The survival rate | unstated | jadx -d out target.apk |
| 55 | Lab 03 — Obfuscation blindness | Advanced | with 'unzip', 'grep', 'aapt2' and 'jadx', none of which need a server. |
| 55 | Lab 04 — CTF: the report that lies | CTF | jadx -d out CMPen-Android-App-v1.2.apk |
| 56 | Lab 01 — Your first decompilation, and what it costs | Beginner | No device, no root, no network. A JDK, the Android SDK build-tools, and jadx. |
| 56 | Lab 02 — The method jadx gets wrong | Advanced | # Lab 02 — The method jadx gets wrong |
| 56 | Lab 03 — Triage a real application | Intermediate | An APK you are permitted to analyse, jadx, Python 3, and about 4 GB of free disk. |
| 56 | Lab 04 — CTF: The Honest Decompiler | CTF | **Prerequisites:** [Lab 02] (lab-02-the-method-jadx-gets-wrong.md) — genuinely required — |
| 63 | Lab 02 — Your first module, built offline | Intermediate | jadx -d out app-debug.apk |
| 63 | Lab 04 — CTF: The Invisible Module | CTF | jadx -d out app-debug.apk |
| 68 | Lab 03 — Across the boundary, and back | Advanced | jadx -d out target/base.apk 2>&1 \| tail -3 |
| 71 | Lab 02 — Map a Known App | Intermediate | 'jadx', 'apktool', Frida, an interception proxy, and the probe app from |
| 71 | Lab 04 — Portfolio Heatmap | Advanced | jadx -d src/ app.apk >/dev/null 2>&1 |
| 73 | Lab 01 — The capability survey: what your setup can actually run | Beginner | [yes] jadx 1.5.3 |
| 73 | Lab 02 — The chain no chapter can host: static → dynamic → report | Intermediate | different vantage; the lab completes without it. 'apktool' and 'jadx' are convenient and neither is |
| 73 | Lab 04 — CTF: The Gauntlet | CTF | rm -rf /tmp/ch73-chain-build /tmp/ch73-sdk23 /tmp/ch73-jadx |
| 75 | Lab 02 — The take-home, with the grader's rubric | Intermediate | > **Prerequisites:** a working static and dynamic toolchain (jadx or apktool, 'adb', ideally |
| 76 | Lab 01 — The sixty-minute triage, using only the sheets | Intermediate | jadx -d out app.apk |
| 78 | Lab 01 — Draw the trust boundaries of a real app, from evidence only | Intermediate | jadx -d out app.apk >/dev/null 2>&1 |
| 78 | Lab 02 — Take a diagram from this repository and find what it omits | Intermediate | jadx -d out app.apk >/dev/null 2>&1 |
| 81 | Lab 04 — CTF: The Invisible Hook | CTF | [Chapter 81 §3.6–3.7] (../README.md#36-entrypoints-what-quick-actually-means), Frida, 'jadx', 'd8' |
apktool — apktool (72)¶
| Ch | Lab | Band | Evidence in the lab |
|---|---|---|---|
| 00 | Lab 01 — Build Your Lab | Beginner | # Windows : choco install apktool -y |
| 00 | Lab 02 — Your First 60 Minutes | Beginner | apktool d target.apk -o decoded |
| 03 | Lab 04 — Reading code you did not write | unstated | apktool d target.apk -o work/ |
| 08 | Lab 05 — CTF: The invisible receiver | CTF | apktool d -f challenge.apk -o out/ |
| 10 | Lab 02 — Unpack, Modify, Rebuild, Re-sign | Intermediate | apktool d -f -o work target.apk |
| 10 | Lab 03 — Write Your Own AXML Parser | Advanced | apktool d -f -o /tmp/bent bent-attrsize.apk && cat /tmp/bent/AndroidManifest.xml |
| 10 | Lab 04 — CTF: The Lying Manifest | CTF | apktool d -f challenge.apk -o work/ |
| 12 | Lab 04 — CTF: The Lying DEX | CTF | apktool d challenge.apk -o work/ |
| 14 | Lab 02 — Patch, Rebuild, Verify | Intermediate | **Needs:** Android Studio or a Gradle command line, 'apktool', 'zipalign', 'apksigner', 'adb', and a |
| 14 | Lab 03 — Break the Verifier on Purpose | Advanced | **Needs:** the app from Lab 02 (or any APK you may modify), 'apktool', 'smali'/'baksmali', |
| 16 | Lab 01 — Building the bridge, and breaking it on purpose | Beginner | apktool d -f -o out app-debug.apk >/dev/null |
| 16 | Lab 03 — Recovering dynamically registered natives | Advanced | apktool d -f -o out target.apk >/dev/null |
| 16 | Lab 04 — CTF: The Unlisted Number | CTF | apktool d -f -o out app.apk >/dev/null |
| 17 | Lab 01 — Build the Inventory | Beginner | apktool d -f base.apk -o work >/dev/null |
| 17 | Lab 03 — SDK Data-Collection Audit | Intermediate | apktool d -f app.apk -o work >/dev/null |
| 20 | Lab 03 — Breaking a client-side integrity gate | Intermediate | apktool d target.apk -o target_out |
| 20 | Lab 04 — CTF: The Lying Phone | CTF | apktool d app-debug.apk -o lp_out |
| 21 | Lab 03 — Write an Attacker App and Probe the Boundary | Intermediate | apktool d -f victim.apk -o work/ >/dev/null |
| 21 | Lab 04 — Sandbox Escape by the Front Door: Exported Components | Intermediate | apktool d -f victim.apk -o work/ >/dev/null |
| 21 | Lab 05 — CTF: "Escape the Torch" | CTF | apktool d -f vault-release.apk -o vault_work/ >/dev/null |
| 23 | Lab 01 — Reading grant state without lying to yourself | Beginner | > **Needs:** a device or emulator with 'adb', Python 3.6+, and 'apktool' |
| 23 | Lab 03 — Borrowing a privileged app's permissions | Advanced | > 'apktool', 'jadx', Python 3.6+, the Android SDK build-tools |
| 24 | Lab 01 — Map the IPC Surface | Beginner | apktool d -f target.apk -o work/ >/dev/null |
| 24 | Lab 03 — The Confused Deputy | Intermediate | apktool d -f deputy.apk -o work/ >/dev/null |
| 24 | Lab 05 — CTF: Five Doors | CTF | apktool d -f fivedoors.apk -o work/ >/dev/null |
| 25 | Lab 05 — CTF: The Unmarked Code | CTF | apktool d ledger.apk -o out_apktool |
| 26 | Lab 01 — Intent redirection: build the deputy, build the exploit, write the fix | Advanced | apktool d -f out/deputy.apk -o work/ |
| 28 | Lab 05 — CTF: The Silent Door | CTF | apktool d doorkeeper.apk -o out/ -f |
| 29 | Lab 02 — Forge a broadcast at a vulnerable receiver | Intermediate | apktool d -f vault.apk -o work/ |
| 29 | Lab 04 — CTF: the receiver that is not there | CTF | apktool d -f ctf.apk -o ctf/ |
| 31 | Lab 03 — Beyond PreferenceActivity |
Advanced | java -cp /path/to/apktool.jar com.android.tools.smali.baksmali.Main d classes.dex -o out/ |
| 31 | Lab 05 — CTF: The Understudy's Understudy | CTF | java -cp /path/to/apktool.jar com.android.tools.smali.baksmali.Main d classes.dex -o out/ |
| 32 | Lab 01 — Reading a Manifest Three Ways | Beginner | [10-APK-Internals] (../../10-APK-Internals/README.md), 'adb', 'apktool', 'aapt2', a device or emulator |
| 32 | Lab 02 — The Full Audit | Intermediate | apktool d -f real.apk -o real-work/ >/dev/null |
| 32 | Lab 04 — Provider Surgery | Advanced | apktool d -f target.apk -o work/ >/dev/null |
| 32 | Lab 05 — Merge and Inject | Advanced | apktool d -f $APK -o blackbox/ >/dev/null |
| 32 | Lab 06 — CTF: The Lying Manifest | CTF | apktool d -f challenge.apk -o work/ |
| 34 | Lab 01 — Break the Vulnerable Vault | Beginner | [10-APK-Internals] (../../10-APK-Internals/README.md), 'jadx' and 'apktool' installed, |
| 34 | Lab 03 — Audit a Real App, End to End | Advanced | apktool d apk/target.apk -o static/apktool -f |
| 35 | Lab 01 — End-to-end interception on a physical device | Intermediate | apktool d target.apk -o work/ |
| 35 | Lab 02 — The deliberate bad certificate | Advanced | apktool d target.apk -o work/ >/dev/null |
| 35 | Lab 03 — Dissecting Validation: Which Check Is This App Actually Doing? | Advanced | apktool d -o out-smali/ target.apk |
| 38 | Lab 01 — Build an app that detects its own repackaging | Beginner | apktool d -f -o /tmp/ch38dec /tmp/ch38/clean.apk |
| 39 | Lab 03 — Trace and neutralise | Advanced | > **You will need:** an emulator you own, Frida, jadx or apktool. |
| 39 | Lab 04 — CTF: The Honest Emulator | CTF | > **You will need:** an emulator you own, Frida, jadx or apktool, the NDK. |
| 40 | Lab 01 — Obfuscation Triage | Beginner | [12-DEX-Internals] (../../12-DEX-Internals/README.md), 'jadx', 'apktool', 'aapt2', 'python3' |
| 40 | Lab 02 — Recover Encrypted Strings, Then Read the Code | Intermediate | apktool d -f -o C_out C.apk >/dev/null |
| 40 | Lab 03 — Recognise and Reverse Control-Flow Flattening | Intermediate | [14-Dalvik] (../../14-Dalvik/README.md) for Smali, 'jadx', 'apktool', Frida |
| 40 | Lab 04 — Unpack a Packed App | Advanced | [16-JNI] (../../16-JNI/README.md), Frida, 'jadx', 'apktool' |
| 40 | Lab 05 — CTF: The Vault | CTF | apktool d -f -o v_out unpacked.dex 2>/dev/null \|\| baksmali d unpacked.dex -o v_out |
| 44 | Lab 01 — Extract and read a real app's network security config | Intermediate | # 3. apktool, which writes text XML back out |
| 44 | Lab 02 — Make an app you built trust your proxy CA | Intermediate | apktool d -f target.apk -o work/ |
| 45 | Lab 01 — Intercept and decode a full authorisation-code + PKCE flow | Beginner | apktool d app.apk -o work/ && jadx -d out/ app.apk |
| 45 | Lab 04 — CTF: The Borrowed Identity | CTF | apktool d vaultnotes.apk -o work/ && grep -n 'scheme' work/AndroidManifest.xml |
| 47 | Lab 01 — Map the authentication surface | Intermediate | apktool d -f -o out app.apk |
| 51 | Lab 02 — The loop, run explicitly | Intermediate | you may decompile — see §1. 'jadx' or 'apktool', 'python3'. |
| 52 | Lab 01 — Your first complete static pass | Beginner | apktool d -f base.apk -o work |
| 53 | Lab 02 — The Four Failure Modes | Intermediate | apktool d -o work app-release.apk |
| 56 | Lab 02 — The method jadx gets wrong | Advanced | # (or, on a real engagement, just: apktool d -o work app.apk) |
| 56 | Lab 03 — Triage a real application | Intermediate | apktool d -f -o work base.apk 2>/dev/null && cp work/AndroidManifest.xml manifest-apktool.xml |
| 64 | Lab 01 — The detection surface that outlived the framework | Intermediate | apktool d -f -o /tmp/ch64-smali <the apk> |
| 64 | Lab 02 — Read a classic module, then build one | Intermediate | # host — find a baksmali. apktool ships one under Resources/; MobSF ships one; |
| 67 | Lab 03 — When to stop bypassing | Intermediate | apktool d -f -o work guarded-release.apk |
| 71 | Lab 02 — Map a Known App | Intermediate | 'jadx', 'apktool', Frida, an interception proxy, and the probe app from |
| 73 | Lab 01 — The capability survey: what your setup can actually run | Beginner | [NO ] apktool found on PATH but did not execute: no such executable |
| 73 | Lab 02 — The chain no chapter can host: static → dynamic → report | Intermediate | different vantage; the lab completes without it. 'apktool' and 'jadx' are convenient and neither is |
| 73 | Lab 03 — Write a lab that survives someone else running it | Intermediate | apktool <- apktool d -f -o /tmp/ch73-apktool chain-target.apk |
| 73 | Lab 04 — CTF: The Gauntlet | CTF | that does not link and no 'apktool', 'ghidra' or 'radare2'. |
| 75 | Lab 02 — The take-home, with the grader's rubric | Intermediate | > **Prerequisites:** a working static and dynamic toolchain (jadx or apktool, 'adb', ideally |
| 76 | Lab 01 — The sixty-minute triage, using only the sheets | Intermediate | > 'aapt2' (or 'apktool'), and any APK you are authorised to analyse. |
| 77 | Lab 02 — Manifest Audit From a Live Device | Intermediate | apktool d target.apk -o target/ |
| 77 | Lab 03 — The Exported-Surface Sweep | Intermediate | apktool d -f target.apk -o work/ >/dev/null |
ghidra — Ghidra (14)¶
| Ch | Lab | Band | Evidence in the lab |
|---|---|---|---|
| 16 | Lab 03 — Recovering dynamically registered natives | Advanced | [57 Ghidra] (../../57-Ghidra/README.md) |
| 17 | Lab 04 — Catch the Constructor | Advanced | # or open it in Ghidra and read the function |
| 17 | Lab 05 — CTF: The Library That Lied | CTF | # then extract the .so and find the constant array; xxd, Ghidra, or: |
| 18 | Lab 03 — Runtime truth: memory versus the file | Advanced | offset : 0x48c4 <- type this into Ghidra (plus its image base) |
| 36 | Lab 04 — CTF: the pin that moved | CTF | > [18-ARM] (../../18-ARM/README.md), [57-Ghidra] (../../57-Ghidra/README.md), |
| 37 | Lab 04 — CTF: The Decoupled Check | CTF | [34-Cryptography] (../../34-Cryptography/README.md), [57-Ghidra] (../../57-Ghidra/README.md) or |
| 40 | Lab 05 — CTF: The Vault | CTF | [34-Cryptography] (../../34-Cryptography/README.md), [57-Ghidra] (../../57-Ghidra/README.md) |
| 57 | Lab 01 — First Contact With a .so |
Beginner | > **Provenance.** Ghidra **is** installed on the machine this chapter was written on (12.1.2 PUBLIC, |
| 57 | Lab 02 — Recovering a Dynamic JNI Registration Table | Intermediate | > **Provenance.** Ghidra **is** installed on the machine this chapter was written on (12.1.2 PUBLIC, |
| 57 | Lab 03 — Defining JNIEnv and Re-reading the Output |
Intermediate | > **Provenance.** Ghidra **is** installed on the machine this chapter was written on (12.1.2 PUBLIC, |
| 57 | Lab 04 — CTF: Three Routes to One Secret | CTF | > **Provenance.** Ghidra **is** installed on the machine this chapter was written on (12.1.2 PUBLIC, |
| 64 | Lab 02 — Read a classic module, then build one | Intermediate | # Ghidra ships one. Any will do. |
| 73 | Lab 01 — The capability survey: what your setup can actually run | Beginner | [NO ] Ghidra not on PATH |
| 73 | Lab 04 — CTF: The Gauntlet | CTF | that does not link and no 'apktool', 'ghidra' or 'radare2'. |
radare2 — radare2 (8)¶
| Ch | Lab | Band | Evidence in the lab |
|---|---|---|---|
| 37 | Lab 04 — CTF: The Decoupled Check | CTF | [59-radare2] (../../59-radare2/README.md) |
| 59 | Lab 01 — The command language | Beginner | git clone https://github.com/radareorg/radare2 |
| 59 | Lab 02 — Triage a real library | Intermediate | [Chapter 59 §3.4–§3.8] (../README.md#34-rabin2--the-part-you-will-use-most-and-think-about-least) |
| 59 | Lab 03 — Patching, and the function that did not matter | Advanced | [18-ARM] (../../18-ARM/README.md), [Chapter 59 §3.12] (../README.md#312-patching-with-r2--w), |
| 59 | Lab 04 — CTF: The gate that was not there | CTF | cd 59-radare2/examples |
| 67 | Lab 02 — The escalation ladder, end to end | unstated | // /tmp/ch67-ladder/r2.js |
| 73 | Lab 01 — The capability survey: what your setup can actually run | Beginner | [NO ] radare2 not on PATH |
| 73 | Lab 04 — CTF: The Gauntlet | CTF | that does not link and no 'apktool', 'ghidra' or 'radare2'. |
ida — IDA Pro or IDA Free (4)¶
| Ch | Lab | Band | Evidence in the lab |
|---|---|---|---|
| 58 | Lab 01 — Your first database | Beginner | implied by chapter 58; the lab does not print the command |
| 58 | Lab 02 — Structure recovery | Intermediate | const IMAGEBASE = 0x0; // from idaapi.get_imagebase(); do NOT assume |
| 58 | Lab 03 — FLIRT and type libraries | Intermediate | \| **Needs an IDA licence?** \| **No** for the measurement, which is the substance. **Yes** for the final 'sigmake' step |
| 58 | Lab 04 — CTF: the function that does not matter | CTF | implied by chapter 58; the lab does not print the command |
mobsf — MobSF (6)¶
| Ch | Lab | Band | Evidence in the lab |
|---|---|---|---|
| 55 | Lab 01 — The first scan, and reading it bottom-up | Beginner | cd 55-MobSF |
| 55 | Lab 02 — The survival rate | unstated | **MobSF required:** **No.** Two saved reports ship with this chapter. |
| 55 | Lab 03 — Obfuscation blindness | Advanced | **MobSF required:** **No.** Two fixtures ship with this chapter; the measurements below were taken |
| 55 | Lab 04 — CTF: the report that lies | CTF | **MobSF required:** **No.** Flags 1–3 are solvable from the shipped report fixture alone. Flag 4 |
| 64 | Lab 02 — Read a classic module, then build one | Intermediate | # host — find a baksmali. apktool ships one under Resources/; MobSF ships one; |
| 73 | Lab 01 — The capability survey: what your setup can actually run | Beginner | mobsf 6 labs |
proxy — an intercepting proxy (Burp, mitmproxy, ZAP) (6)¶
| Ch | Lab | Band | Evidence in the lab |
|---|---|---|---|
| 17 | Lab 03 — SDK Data-Collection Audit | Intermediate | mitmproxy --mode regular --listen-port 8080 |
| 35 | Lab 01 — End-to-end interception on a physical device | Intermediate | without Google Play, Burp Suite (Community is enough), OpenSSL on the host, 'adb', Frida 16+ on host |
| 44 | Lab 02 — Make an app you built trust your proxy CA | Intermediate | **Needs:** Android SDK (build-tools + platform), a JDK, a device or emulator, and Burp Suite or |
| 45 | Lab 01 — Intercept and decode a full authorisation-code + PKCE flow | Beginner | # host — point the device at Burp |
| 62 | Lab 02 — Write a Magisk Module | Intermediate | # host — export your proxy's CA. Burp: Proxy > Settings > Import/Export CA certificate > DER. |
| 73 | Lab 01 — The capability survey: what your setup can actually run | Beginner | [NO ] mitmproxy not on PATH |
xposed — Xposed or LSPosed (14)¶
| Ch | Lab | Band | Evidence in the lab |
|---|---|---|---|
| 33 | Lab 01 — Map the Eight Roots | Beginner | _data=/storage/emulated/0/Download/lsposed-1-9-2.apk, owner_package_name=com.android.chrome |
| 33 | Lab 03 — Scoped Storage and FUSE, Measured | Advanced | _data=/storage/emulated/0/Download/lsposed-1-9-2.apk, owner_package_name=com.android.chrome |
| 37 | Lab 01 — Build and Break Your Own Root Check | Beginner | <package android:name="de.robv.android.xposed.installer" /> |
| 40 | Lab 01 — Obfuscation Triage | Beginner | \| grep -ciE 'ptrace\|TracerPid\|frida\|xposed\|magisk\|goldfish\|isDebuggerConnected' |
| 63 | Lab 01 — Mapping the injection chain | Intermediate | > **Needs LSPosed installed?** **No.** This lab measures the *substrate* LSPosed sits on, and it is |
| 63 | Lab 02 — Your first module, built offline | Intermediate | > **Needs LSPosed installed?** **No** for sections 1–5, which are the ones that teach the mechanism. |
| 63 | Lab 03 — Scope, timing, and the five ways a module fails | Advanced | > **Needs LSPosed installed?** Sections 1–5 do. **Section 6 runs entirely on the host** and is the |
| 63 | Lab 04 — CTF: The Invisible Module | CTF | > **Needs LSPosed installed?** **Partially.** Bronze and Silver are reachable with static analysis |
| 64 | Lab 01 — The detection surface that outlived the framework | Intermediate | \| **Needs classic Xposed?** \| **No.** It cannot be installed. That is the point of the lab \| |
| 64 | Lab 02 — Read a classic module, then build one | Intermediate | \| **Needs classic Xposed?** \| **No.** It cannot be installed \| |
| 64 | Lab 03 — Why the mechanism broke | Advanced | \| **Needs classic Xposed?** \| **No.** Demonstrating that you *cannot install it* is the lab \| |
| 64 | Lab 04 — CTF: The Ghost of app_process |
CTF | \| **Needs classic Xposed?** \| **No.** Two of the four flags are *about* the fact that you cannot have it \| |
| 73 | Lab 01 — The capability survey: what your setup can actually run | Beginner | xposed 14 labs |
| 74 | Lab 04 — CTF: The Confident Report | CTF | APKs containing the substring 'xposed' : 58 |
aosp — a local AOSP checkout or AOSP source browsing (4)¶
| Ch | Lab | Band | Evidence in the lab |
|---|---|---|---|
| 07 | Lab 02 — Build and boot AOSP | Intermediate | repo init -u https://android.googlesource.com/platform/manifest \ |
| 07 | Lab 03 — Patch the platform | Advanced | source build/envsetup.sh |
| 07 | Lab 04 — Hidden APIs and the blocklist | Intermediate | # cs.android.com |
| 08 | Lab 04 — Build a userdebug AOSP image and trace a module | Advanced | repo init -u https://android.googlesource.com/platform/manifest -b main --depth=1 |
docker — Docker (3)¶
| Ch | Lab | Band | Evidence in the lab |
|---|---|---|---|
| 08 | Lab 01 — Reading a build file cold | Beginner | docker run --rm -v "$PWD":/w -w /w -u "$(id -u):$(id -g)" \ |
| 08 | Lab 03 — Supply-chain simulation | Advanced | docker run --rm -v "$PWD":/w -w /w --network none -u "$(id -u):$(id -g)" \ |
| 45 | Lab 01 — Intercept and decode a full authorisation-code + PKCE flow | Beginner | docker run -p 8080:8080 \ |
python — Python 3 on the host (184)¶
| Ch | Lab | Band | Evidence in the lab |
|---|---|---|---|
| 00 | Lab 01 — Build Your Lab | Beginner | # python -m venv "$HOME\androidsec" |
| 00 | Lab 02 — Your First 60 Minutes | Beginner | python3 00-Introduction/examples/apk-anatomy.py ~/work/lab02/target.apk |
| 01 | Lab 01 — Binary, Hexadecimal, Two's Complement and Endianness | Beginner | # host / WSL — save as endian.py, run: python3 endian.py |
| 01 | Lab 03 — Stack Frames, Calling Conventions, and Losing Control of the Return Address | Intermediate | setarch "$(uname -m)" -R ./vuln "$(python3 -c 'print("A"*36 + "B"*4, end="")')" |
| 02 | Lab 03 — IPC, Sockets and Mount Namespaces | Advanced | sudo apt update && sudo apt install -y socat python3 util-linux iproute2 |
| 03 | Lab 01 — Your first program, all the way down | Beginner | python3 sum_demo.py # prints 55 |
| 03 | Lab 02 — Hash maps by hand, then in a real DEX | Intermediate | python3 -c " |
| 03 | Lab 03 — The debugging challenge | Intermediate | # bug6.py — run: python3 bug6.py |
| 04 | Lab 03 — Reflection hunt (CTF) | CTF | python3 -c "print(''.join(chr(c + 1) for c in [116, 109, 107, 110, 98, 106]))" |
| 06 | Lab 03 — Audit a Firmware Image | Advanced | sudo apt install -y python3 unzip cpio file |
| 07 | Lab 02 — Build and boot AOSP | Intermediate | python3 -m json.tool out/soong/soong.variables \| head -80 |
| 08 | Lab 02 — Manifest merger archaeology | Intermediate | python3 -m http.server 8000 --directory /tmp/lab02 |
| 08 | Lab 04 — Build a userdebug AOSP image and trace a module | Advanced | python3 -m json.tool out/soong/soong.variables \| head -60 |
| 09 | Lab 01 — App Identity and UID | Beginner | python3 -c "import datetime;print(datetime.datetime.fromtimestamp(int('18f2c1a4c11',16)/1000))" |
| 09 | Lab 03 — CTF: The Shared UID Heist | CTF | python3 solve.py |
| 10 | Lab 01 — Dissecting the APK, Byte by Byte | Intermediate | # host — save as walk_apk.py, run: python3 walk_apk.py target.apk |
| 10 | Lab 03 — Write Your Own AXML Parser | Advanced | python3 myaxml.py AndroidManifest.xml |
| 10 | Lab 04 — CTF: The Lying Manifest | CTF | python3 widen-attributes.py clean/AndroidManifest.xml challenge-manifest.xml |
| 11 | Lab 04 — CTF: The Vanishing Class | CTF | # runs on your host machine — save as gen_guard.py, run: python3 gen_guard.py > Guard.java |
| 12 | Lab 01 — Parse a DEX Header by Hand | Beginner | `which xxd python3 |
| which dexdump || echo "dexdump is in the Android SDK build-tools; add it to PATH"` | |||
| 12 | Lab 03 — Find the Hidden Key | Advanced | from Crypto.Cipher import AES # pip install pycryptodome |
| 14 | Lab 04 — CTF: The Latin VM | CTF | java -cp classes com.example.latin.Challenge "$(python3 lab04_solve.py)" |
| 15 | Lab 01 — Parse an ELF by hand | Beginner | **You will need:** a '.so' file, a hex viewer (or 'od', or Python), and Python 3 |
| 15 | Lab 02 — Run the hardening checklist, and write it up honestly | Intermediate | Python 3 |
| 15 | Lab 03 — Symbols, stripping, and what findExportByName is really searching |
Intermediate | **You will need:** the fixtures from [Lab 01] (lab-01-elf-by-hand.md), Python 3. A device and Frida |
| 15 | Lab 04 — From APK entry to mapped page | Intermediate | **You will need:** the fixtures, Python 3. Parts 4 and 5 need a device or emulator; Parts 1–3 do |
| 15 | Lab 05 — CTF: the honest header | CTF | **You will need:** Python 3 and nothing else. **No NDK, no device, no compiler.** |
| 16 | Lab 01 — Building the bridge, and breaking it on purpose | Beginner | \| Python 3.8+ \| Parts 1 and 2 \| — (nothing else needed) \| |
| 16 | Lab 04 — CTF: The Unlisted Number | CTF | * python3 -c " |
| 17 | Lab 01 — Build the Inventory | Beginner | python3 -c "import zipfile,sys,collections |
| 17 | Lab 04 — Catch the Constructor | Advanced | `# host — or with nothing installed but python3 |
| python3 ../scripts/lib-fingerprint.py app/build/.../libguarded.so` | |||
| 18 | Lab 01 — Read your first disassembly | Beginner | **You will need:** the Android NDK (r21 or newer), a shell, and Python 3. **No device.** |
| 18 | Lab 03 — Runtime truth: memory versus the file | Advanced | 'frida-server', 'adb', the NDK, and Python 3 |
| 18 | Lab 04 — CTF: four decisions | CTF | **You will need:** **Python 3 and nothing else.** No NDK. No device. No emulator. No network. |
| 19 | Lab 01 — Reading /proc/<pid>/maps by hand, and finding a known value in a live process |
Intermediate | \| Python 3 \| For ['../scripts/maps-analyse.py'] (../scripts/maps-analyse.py). \| |
| 19 | Lab 02 — The allocator, measured: Scudo, size classes, reuse, and ASLR entropy | Intermediate | \| Python 3 and 'awk' \| On the device's shell, 'toybox awk' is present on Android 9+. \| |
| 20 | Lab 02 — Dissecting vbmeta, and catching a phone in a lie | Intermediate | particular, its cmdline-versus-property comparison. Python 3.7+. A device you own, ideally rooted. |
| 20 | Lab 03 — Breaking a client-side integrity gate | Intermediate | # Requires: pip install cryptography |
| 22 | Lab 02 — From a Denial to the Rule That Would Allow It | Intermediate | python3 scripts/avc-decode.py examples/avc-denials-measured.log --group |
| 22 | Lab 05 — CTF: The Quiet Domain | CTF | python3 scripts/avc-decode.py labs/ctf-quiet-domain/avc.log --group |
| 23 | Lab 01 — Reading grant state without lying to yourself | Beginner | > **Needs:** a device or emulator with 'adb', Python 3.6+, and 'apktool' |
| 23 | Lab 02 — Permission squatting with two installable apps | Intermediate | python3 -B scripts/permission-audit.py \ |
| 23 | Lab 03 — Borrowing a privileged app's permissions | Advanced | > 'apktool', 'jadx', Python 3.6+, the Android SDK build-tools |
| 23 | Lab 04 — CTF: The Borrowed Key | CTF | > **Needs:** a device or emulator you own, 'adb', the Android SDK build-tools, a JDK, Python 3.6+ |
| 24 | Lab 02 — The Abstract Socket | Intermediate | adb shell "cd /data/local/tmp && python3 abstract-socket-probe.py --list" |
| 25 | Lab 01 — service list and service call against a real device |
Beginner | python3 -B binder-service-map.py --fixture ../examples/fixture-device-snapshot \| head |
| 25 | Lab 02 — Parcel anatomy: decode the bytes, then break the token | Intermediate | \| python3 -B ../scripts/parcel-decode.py - --layout str16 |
| 25 | Lab 03 — The identity boundary: prove it, then break the code around it | Intermediate | python3 -c "print(hex((2000 << 32) \| 4321))" |
| 25 | Lab 05 — CTF: The Unmarked Code | CTF | python3 -c "print(hex((ord('_')<<24)\|(ord('P')<<16)\|(ord('R')<<8)\|ord('P')))" |
| 26 | Lab 03 — App Links verification state on a real device | Intermediate | "https://<host>/.well-known/assetlinks.json" \| python3 -m json.tool |
| 28 | Lab 01 — Map the service surface | Beginner | python3 scripts/service-recon.py > all.txt |
| 29 | Lab 01 — Map the runtime receiver surface | Intermediate | python3 -B receiver-surface.py --brief |
| 29 | Lab 02 — Forge a broadcast at a vulnerable receiver | Intermediate | python3 -B ../scripts/receiver-surface.py --package com.example.vault |
| 29 | Lab 04 — CTF: the receiver that is not there | CTF | python3 -B ../scripts/receiver-surface.py --package com.example.vaultctf |
| 30 | Lab 01 — Read the task graph | Beginner | python3 -B scripts/task-affinity-map.py --check |
| 30 | Lab 05 — CTF: The Understudy | CTF | cd .. && python3 -B scripts/task-affinity-map.py -p com.pentest.ch30.victim --recents |
| 31 | Lab 02 — Is it still exploitable? | Intermediate | > 'dexdump' (ships with build-tools), Python 3, and the apps from ['../examples/'] (../examples/build.sh). |
| 31 | Lab 03 — Beyond PreferenceActivity |
Advanced | > ['../examples/'] (../examples/build.sh), and Python 3 on the host. |
| 31 | Lab 04 — Sweep and adjudicate | Advanced | > **You will need:** a device or emulator you own, 'adb', Python 3, 'aapt2' from build-tools, and |
| 31 | Lab 05 — CTF: The Understudy's Understudy | CTF | > ['../examples/'] (../examples/build.sh), Python 3, and 'dexdump' or 'baksmali'. |
| 32 | Lab 03 — Proving Reachability | Intermediate | python3 -m http.server 8000 |
| 32 | Lab 06 — CTF: The Lying Manifest | CTF | python3 craft-lying-manifest.py extracted/AndroidManifest.xml out.xml |
| 33 | Lab 02 — Filesystem Diff Across a Session | Intermediate | python3 -B scripts/storage-diff.py snapshot \ |
| 33 | Lab 04 — CTF: The Plaintext Copy | CTF | [34-Cryptography] (../../34-Cryptography/README.md), a rooted device, Frida, Python 3 |
| 34 | Lab 01 — Break the Vulnerable Vault | Beginner | # Requires: pip install pycryptodome |
| 34 | Lab 04 — CTF: The Padding Oracle | CTF | Python 3, a device or emulator with 'adb' |
| 35 | Lab 04 — CTF: The Trusted Impostor | CTF | # host — vault.py, run from your scratchpad: sudo python3 vault.py |
| 36 | Lab 01 — Map the pinning surface before you touch anything | Beginner | python3 -B pinning-surface.py --help |
| 36 | Lab 02 — Defeat a two-layer pin you built yourself | Advanced | python3 -B ../scripts/pinning-surface.py --apk app-debug.apk |
| 36 | Lab 04 — CTF: the pin that moved | CTF | python3 -B challenge_server.py --setup |
| 37 | Lab 03 — Trace, Identify, Neutralise | Advanced | python3 -c "m=int(input('mask: ')); print([i for i in range(12) if m>>i & 1])" |
| 38 | Lab 02 — Anti-analysis in JNI_OnLoad, and in the tier below it |
Intermediate | python3 -B - <<'PY' |
| 38 | Lab 03 — Map before you bypass | Advanced | python3 -B ../scripts/tamper-surface-map.py corpus/com.example.app.apk |
| 38 | Lab 04 — CTF: the app that works fine, and then does not | CTF | python3 -B ../../scripts/tamper-surface-map.py /tmp/ch38ctf/vault-challenge.apk |
| 39 | Lab 03 — Trace and neutralise | Advanced | python3 -B ../scripts/emu-signal-map.py target.apk \| tee map.txt |
| 39 | Lab 04 — CTF: The Honest Emulator | CTF | python3 -B ../scripts/emu-signal-map.py ctf.apk |
| 40 | Lab 01 — Obfuscation Triage | Beginner | python3 -c " |
| 40 | Lab 04 — Unpack a Packed App | Advanced | python3 pack.py payload/classes.dex payload.dat |
| 41 | Lab 01 — Read a rules file | Beginner | **Needs:** a text editor and Python 3. No device, no Android SDK, no network. |
| 41 | Lab 02 — Build the diff: the same app, with and without rules | Intermediate | **Needs:** Android SDK build-tools (any recent version), a JDK, Python 3. **No device, no root, no |
| 41 | Lab 03 — Audit an app you did not build | Advanced | **Needs:** Android SDK build-tools, Python 3, and at least one APK you are authorised to analyse. A |
| 41 | Lab 04 — CTF: the rule that lied | CTF | **Needs:** Android SDK build-tools, a JDK, Python 3. No device, no root, no network. |
| 42 | Lab 01 — Build it yourself, then read the mapping | Intermediate | $ python3 -B ../42-R8/scripts/mapping-reader.py out/full/mapping.txt stats |
| 42 | Lab 02 — Synthetic safari | Intermediate | $ python3 -B - <<'PY' > classes.txt |
| 42 | Lab 03 — Recover original names from kotlin.Metadata |
Advanced | $ python3 -B 42-R8/scripts/kotlin-metadata-recover.py out/full/classes.dex --rewrite-check |
| 42 | Lab 04 — CTF: The Leaked Key | CTF | $ python3 -B ../42-R8/scripts/mapping-reader.py out/dex/mapping.txt stats |
| 43 | Lab 01 — Exploit a JavaScript bridge in an app you build | Intermediate | python3 -B ../../10-APK-Internals/examples/parse_axml.py \ |
| 43 | Lab 02 — Defeat a config that looks correct | Advanced | PYTHONIOENCODING=utf-8 python3 -B 44-NetworkSecurityConfig/scripts/nsc-audit.py \ |
| 43 | Lab 03 — Audit a real app end to end | Advanced | python3 -B -c " |
| 43 | Lab 04 — CTF: The Deputy in the Browser | CTF | python3 -B 43-WebView/scripts/webview-audit.py "$OUTDIR/vulnerable-webview/vulnerable-webview.apk" |
| 44 | Lab 01 — Extract and read a real app's network security config | Intermediate | python3 -B ../../10-APK-Internals/examples/parse_axml.py --extract base.apk \ |
| 44 | Lab 02 — Make an app you built trust your proxy CA | Intermediate | python3 -B ../scripts/nsc-audit.py app/build/outputs/apk/debug/app-debug.apk --xml |
| 44 | Lab 03 — Prove it on the device | Advanced | python3 -B ../scripts/nsc-audit.py linkedin.apk --xml |
| 44 | Lab 04 — CTF: the config that lies | CTF | PYTHONIOENCODING=utf-8 python3 -B ../scripts/nsc-audit.py ctf-vaultpay-config.xml \ |
| 45 | Lab 04 — CTF: The Borrowed Identity | CTF | # Usage: pip install flask pyjwt cryptography && python3 mock_as.py |
| 46 | Lab 01 — Anatomy of a Token | Beginner | **Prerequisites:** A terminal, Python 3.8+, and [Chapter 46 §2.5 and §3.1–§3.5] (../README.md) |
| 46 | Lab 02 — The JWT Attack Gauntlet | Advanced | python3 -B "$CH46/labs/gauntlet/issuer.py" --workdir "$WORK" --init |
| 46 | Lab 03 — Tokens at Rest | Intermediate | RT="opaque-refresh-$(python3 -c 'import secrets;print(secrets.token_urlsafe(24))')" |
| 46 | Lab 04 — CTF: The Token That Outlived Its Owner | CTF | python3 -B "$CH46/labs/gauntlet/issuer.py" --workdir "$WORK" --init |
| 47 | Lab 01 — Map the authentication surface | Intermediate | > **You will need:** a host with Python 3 and the Android SDK build-tools; an Android |
| 47 | Lab 02 — Session lifecycle and logout | Intermediate | python3 -B auth_server.py --list-defects |
| 47 | Lab 03 — Enumeration, lockout and OTP | Advanced | > **You will need:** Python 3, the lab server from |
| 47 | Lab 04 — CTF: The account that would not close | CTF | python3 -B vault_auth.py |
| 48 | Lab 01 — Callback versus crypto: the same attack, twice | Intermediate | python3 -B ../scripts/grade-biometric-usage.py /tmp/ch48-jadx --show-evidence |
| 48 | Lab 02 — Measuring the binding yourself | Intermediate | diff <(python3 -B -m json.tool /tmp/phone.json) <(python3 -B -m json.tool /tmp/emu.json) |
| 48 | Lab 03 — Audit a real app, end to end | Advanced | python3 -B <chapter>/scripts/grade-biometric-usage.py jadx-out --show-evidence |
| 48 | Lab 04 — CTF: The Fifth Finger | CTF | python3 -B ../scripts/grade-biometric-usage.py vt-jadx --show-evidence |
| 49 | Lab 03 — Read a Key Attestation Certificate | Advanced | a device with hardware attestation support, Python 3.8+ with 'cryptography' and 'asn1crypto', |
| 50 | Lab 01 — Determine the real security level of every key an app can create on your device | Intermediate | python3 -B ./scripts/parse-attestation.py chain.pem \| tee -a lab01-results.md |
| 50 | Lab 03 — Read a key attestation offline, and catch a phone lying about itself | Advanced | python3 -B ./scripts/parse-attestation.py chain.pem \| tee lab03-results.txt |
| 50 | Lab 04 — CTF: The Honest Phone | CTF | python3 -B ctf-verifier.py |
| 51 | Lab 01 — Your first complete runtime pass | Beginner | python3 -B ../scripts/coverage-reporter.py --package "$PKG" \ |
| 51 | Lab 02 — The loop, run explicitly | Intermediate | python3 -B ../../52-StaticAnalysis/scripts/static-sweep.py loop/static/out \ |
| 51 | Lab 03 — Coverage, and the lie of a clean pass | Intermediate | python3 -B ../scripts/coverage-reporter.py -p "$PKG" \ |
| 51 | Lab 04 — CTF: the session that lied | CTF | python3 -B ../scripts/coverage-reporter.py -p com.acme.fieldnotes --no-device \ |
| 52 | Lab 01 — Your first complete static pass | Beginner | python3 -B ../scripts/static-sweep.py ./out --show-suppressed \| tee evidence/sweep.txt |
| 52 | Lab 02 — The false-positive gauntlet | Intermediate | python3 -B ../scripts/static-sweep.py ./out \| tee sweep.txt |
| 52 | Lab 03 — Mapping the blind spots | Intermediate | python3 -B ../scripts/static-sweep.py ./out \| sed -n '/BLIND SPOTS/,$p' |
| 52 | Lab 04 — CTF: the honest report | CTF | python3 -B ../scripts/static-sweep.py ./out \| tee sweep.txt |
| 53 | Lab 01 — First Contact | Beginner | python3 -m pip install --upgrade frida-tools |
| 54 | Lab 01 — Your first session, and the four ways it goes wrong | Beginner | python3 -B ../scripts/objection-doctor.py --serial <your-serial> |
| 54 | Lab 02 — One task, two tools: feeling the trade | Intermediate | python3 -B ../scripts/objection-doctor.py --serial <serial> |
| 54 | Lab 03 — Mapping the envelope: turning "it depends" into a capability statement | Advanced | python3 -B ../scripts/split-agent.py --out /tmp/agent-modules |
| 54 | Lab 04 — CTF: The Confident Tool | CTF | python3 -B - <<'PY' |
| 55 | Lab 01 — The first scan, and reading it bottom-up | Beginner | python3 -B -c "import json;d=json.load(open('examples/synthetic-mobsf-report.json'));print(d['_fixture']['WHAT_IS_REAL'] |
| 55 | Lab 02 — The survival rate | unstated | python3 -B scripts/mobsf-validate.py \ |
| 55 | Lab 03 — Obfuscation blindness | Advanced | python3 -B ../../36-CertificatePinning/scripts/pinning-surface.py --apk v1.2.apk |
| 55 | Lab 04 — CTF: the report that lies | CTF | python3 -B -c "import json;d=json.load(open('$REPORT'));print(d['_fixture']['WHAT_IS_REAL'][:300])" |
| 56 | Lab 03 — Triage a real application | Intermediate | An APK you are permitted to analyse, jadx, Python 3, and about 4 GB of free disk. |
| 56 | Lab 04 — CTF: The Honest Decompiler | CTF | # then compute both readings in Python and confirm they differ |
| 58 | Lab 01 — Your first database | Beginner | python3 -B -c " |
| 58 | Lab 03 — FLIRT and type libraries | Intermediate | python3 -B scripts/01-make-flirt-pat.py /tmp/ch58/libcrcutil.a --explain |
| 58 | Lab 04 — CTF: the function that does not matter | CTF | python3 -B -c "print('%08x' % ((21317 << 16) \| 21326))" |
| 59 | Lab 02 — Triage a real library | Intermediate | python3 -B r2-jni-inventory.py ~/ch59-build/libr2target.so |
| 59 | Lab 03 — Patching, and the function that did not matter | Advanced | python3 -B - <<'PY' |
| 60 | Lab 01 — Read the wire | Beginner | **You will need:** a workstation with 'adb', Python 3, and either an Android emulator or a spare |
| 60 | Lab 02 — Speak the protocol | Intermediate | **You will need:** Python 3.6+, an emulator or a spare device that listens on TCP, and |
| 60 | Lab 03 — Posture and exposure | Intermediate | python3 -B ../scripts/adb-mini-client.py --port 5555 --service "$s" --timeout 2 2>&1 \ |
| 60 | Lab 04 — CTF: The unattended terminal | CTF | python3 -B ../scripts/adb-mini-client.py --host 127.0.0.1 --port 5555 \ |
| 61 | Lab 02 — The sparse image format, by hand | Intermediate | python3 -B <chapter>/scripts/sparse-tool.py selftest |
| 61 | Lab 03 — vbmeta, verity, and the one byte that matters | Advanced | python3 -B <chapter>/scripts/vbmeta-flags.py selftest |
| 61 | Lab 04 — CTF: The Bricked Vault | CTF | python3 -B scripts/make-ctf-images.py /tmp/ctf-vault |
| 63 | Lab 02 — Your first module, built offline | Intermediate | python3 -B -c " |
| 63 | Lab 04 — CTF: The Invisible Module | CTF | python3 -B -c " |
| 64 | Lab 01 — The detection surface that outlived the framework | Intermediate | python3 -B scripts/xposed-detection-scan.py /tmp/ch64-corpus --recursive --substring-audit |
| 64 | Lab 02 — Read a classic module, then build one | Intermediate | python3 -B -c " |
| 65 | Lab 02 — Write an inline hook by hand | Advanced | python3 -B hookability.py $OUT/libguard.so --symbol guard_check |
| 65 | Lab 03 — Where hooks fail | Advanced | python3 -B ../scripts/hookability.py $OUT/libinline.so --symbol lic_is_valid |
| 65 | Lab 04 — CTF: The Honest Trampoline | CTF | python3 -B hookability.py $OUT/libvault.so --symbol vault_pin_ok |
| 66 | Lab 01 — First contact: two APKs and one command | Beginner | \| python3 -B ../scripts/parse-instrumentation-results.py --key read. --key write. |
| 67 | Lab 01 — Triage the death | Beginner | python3 -B scripts/bypass-triage.py \ |
| 67 | Lab 02 — The escalation ladder, end to end | unstated | ( cd "$W" && HAVE_NATIVE=$HAVE python3 -B -c " |
| 67 | Lab 03 — When to stop bypassing | Intermediate | python3 -B examples/server-app/server.py |
| 67 | Lab 04 — CTF: the boolean that lied | CTF | ( cd "$W" && python3 -B -c " |
| 68 | Lab 01 — The first twenty minutes | Beginner | python3 -B ../scripts/re-journal.py init --target libinvestigate.so \ |
| 68 | Lab 02 — The hypothesis loop, run in the open | Intermediate | python3 -B ../scripts/re-journal.py --file lab02.json init \ |
| 68 | Lab 03 — Across the boundary, and back | Advanced | python3 -B scripts/boundary-map.py target/base.apk --report |
| 68 | Lab 04 — CTF: The confident conclusion | CTF | python3 -B ../scripts/re-journal.py --file ctf.json init \ |
| 69 | Lab 01 — Your first complete triage | Beginner | python3 -B make-config-assets.py --show |
| 69 | Lab 02 — Configuration recovery and capability adjudication | Intermediate | python3 -B make-config-assets.py --show |
| 69 | Lab 03 — Full triage, ending in a written analysis | Advanced | python3 -B ../scripts/apk-triage.py /tmp/ch69/*/inert-sample.apk --quiet |
| 69 | Lab 04 — CTF: the quiet sample | CTF | python3 -B scripts/config-decrypt.py --file labs/ctf-artefacts/challenge-01.b64 --auto |
| 70 | Lab 02 — Write a bug, harness it, fuzz it, triage it | Intermediate | # host -- python3 -B make_seed.py |
| 70 | Lab 03 — Triage at scale, and the report | Advanced | # host -- python3 -B make_pile.py <outdir> |
| 71 | Lab 01 — Build the Checklist | Beginner | python3 scripts/scope-checklist.py examples/profile-internal-tool.json |
| 71 | Lab 02 — Map a Known App | Intermediate | python3 scripts/mas-coverage.py examples/findings-ovaa.csv |
| 71 | Lab 04 — Portfolio Heatmap | Advanced | and working, Python 3.6+ |
| 72 | Lab 01 — Build the base rate | Intermediate | python3 -B scripts/manifest-corpus-sweep.py --help |
| 73 | Lab 01 — The capability survey: what your setup can actually run | Beginner | python3 -B scripts/lab-env-probe.py --help \| head -20 |
| 73 | Lab 02 — The chain no chapter can host: static → dynamic → report | Intermediate | python3 -B -c " |
| 73 | Lab 03 — Write a lab that survives someone else running it | Intermediate | **Requires:** Python 3 and this repository. **No device needed for the validation half**; your lab |
| 73 | Lab 04 — CTF: The Gauntlet | CTF | python3 -B ../scripts/lab-env-probe.py --match --json > "$HOME/ch73-ctf-baseline.json" |
| 74 | Lab 02 — The patch that changed nothing | Intermediate | python3 -B "$OUT/patch.py" "$OUT/gate-patched" <your-offset> |
| 74 | Lab 03 — The detection that cannot detect | Intermediate | python3 -B ../scripts/claim-ledger.py --strict my-replication.md |
| 74 | Lab 04 — CTF: The Confident Report | CTF | python3 -B ../scripts/claim-ledger.py --strict your-report.md |
| 75 | Lab 01 — The timed mock technical round | Intermediate | > **Prerequisites:** Python 3, this repository. No device required. |
| 75 | Lab 02 — The take-home, with the grader's rubric | Intermediate | python3 -B ../scripts/answer-shape-lint.py --split --min 7 /path/to/submission.md |
| 76 | Lab 01 — The sixty-minute triage, using only the sheets | Intermediate | python3 -B scripts/lint-commands.py --path /path/to/your-notes.md --no-fail |
| 76 | Lab 02 — The sheet lies: six commands that answer confidently and wrongly | Intermediate | python3 -B scripts/lint-commands.py --path /path/to/your-rows.md --no-fail |
| 76 | Lab 03 — Build a sheet you would trust a year from now | Advanced | python3 -B scripts/lint-commands.py --path /path/to/your-sheet.md --no-fail |
| 76 | Lab 04 — CTF: The stale sheet | CTF | python3 -B scripts/lint-commands.py --path /path/to/that/sheet.md --no-fail |
| 77 | Lab 04 — Storage Diff | Intermediate | echo '<payload-part>' \| tr '_-' '/+' \| base64 -d 2>/dev/null \| python3 -m json.tool |
| 78 | Lab 02 — Take a diagram from this repository and find what it omits | Intermediate | python3 -B scripts/diagram-census.py |
| 81 | Lab 02 — ArtMethod Entrypoints |
Intermediate | python3 -c "import frida; print(frida.__version__)" |
device — any Android device or emulator reachable over adb (273)¶
| Ch | Lab | Band | Evidence in the lab |
|---|---|---|---|
| 00 | Lab 01 — Build Your Lab | Beginner | \| Android SDK platform-tools \| Provides 'adb' and 'fastboot', the only official channel to a device \| 'adb version' \ |
| 00 | Lab 02 — Your First 60 Minutes | Beginner | Starting from a machine that has 'adb', 'unzip', and 'jadx' (built in |
| 01 | Lab 01 — Binary, Hexadecimal, Two's Complement and Endianness | Beginner | adb shell pm path com.android.chrome |
| 01 | Lab 02 — Processes, /proc, and Reading a Memory Map |
Intermediate | unchanged, which means the exact commands you learn on your laptop work over 'adb shell' against a |
| 01 | Lab 03 — Stack Frames, Calling Conventions, and Losing Control of the Return Address | Intermediate | adb push vuln_android /data/local/tmp/ && adb shell chmod 755 /data/local/tmp/vuln_android |
| 02 | Lab 01 — Filesystem, Permissions and the Android Layout | Beginner | \| An Android device or emulator with USB debugging enabled \| Part F \| 'adb devices' lists a device \| |
| 02 | Lab 02 — Processes, /proc and Signals |
Intermediate | \| An Android device or emulator with USB debugging \| Parts C, E, F \| 'adb devices' \| |
| 02 | Lab 03 — IPC, Sockets and Mount Namespaces | Advanced | \| An Android device or emulator \| Parts C and F \| 'adb devices' \| |
| 02 | Lab 04 — CTF: The Hidden Flag | CTF | adb push ctf-setup.sh /data/local/tmp/ |
| 03 | Lab 02 — Hash maps by hand, then in a real DEX | Intermediate | adb shell pm list packages -3 \| head |
| 03 | Lab 04 — Reading code you did not write | unstated | adb shell pm list packages -3 |
| 05 | Lab 01 — Spot the Kotlin | unstated | adb shell pm list packages \| head -40 |
| 05 | Lab 02 — Null Safety in JADX, and Breaking It with Frida | unstated | \| 'adb' \| Talk to the device \| 'adb devices' \| |
| 06 | Lab 01 — Trace the Boot | Beginner | **Prerequisites:** [Chapter 06 §3] (../README.md), a device or emulator, 'adb' |
| 06 | Lab 02 — Map Every Process to Its Layer | Intermediate | adb shell getprop ro.product.manufacturer |
| 07 | Lab 01 — Three traces, unaided | Beginner | adb shell service list \| grep -i activity_task |
| 07 | Lab 02 — Build and boot AOSP | Intermediate | adb devices |
| 07 | Lab 03 — Patch the platform | Advanced | adb wait-for-device && adb root |
| 07 | Lab 04 — Hidden APIs and the blocklist | Intermediate | adb devices |
| 07 | Lab 05 — CTF: The vendor's back door | CTF | - No root on the target. 'adb shell' is unprivileged. |
| 08 | Lab 02 — Manifest merger archaeology | Intermediate | - A device or emulator with 'adb' access (API 26+; API 31+ is better, because it makes |
| 08 | Lab 04 — Build a userdebug AOSP image and trace a module | Advanced | adb devices |
| 08 | Lab 05 — CTF: The invisible receiver | CTF | adb install -r challenge.apk |
| 09 | Lab 01 — App Identity and UID | Beginner | \| A working 'adb' on your host \| every step uses it \| 'adb version' \| |
| 09 | Lab 02 — Tracing the Install Flow End to End | Intermediate | 'adb install app.apk' is one command. Behind it, six subsystems cooperate: 'adb', 'PackageInstaller', |
| 09 | Lab 03 — CTF: The Shared UID Heist | CTF | \| An emulator or device, API 33+ \| 'adb shell getprop ro.build.version.sdk' \| |
| 10 | Lab 01 — Dissecting the APK, Byte by Byte | Intermediate | \| An Android device or emulator with USB debugging \| To obtain a real APK \| 'adb devices' \| |
| 10 | Lab 02 — Unpack, Modify, Rebuild, Re-sign | Intermediate | \| 'adb' \| 'adb devices' \| From platform-tools \| |
| 10 | Lab 03 — Write Your Own AXML Parser | Advanced | adb install -r bent-attrsize.apk |
| 10 | Lab 04 — CTF: The Lying Manifest | CTF | adb install -r challenge.apk |
| 11 | Lab 01 — Observing the Runtime | Beginner | cloning itself. This lab makes all three facts visible on a live device using only 'adb' and '/proc'. |
| 11 | Lab 02 — ClassLoader Archaeology | Intermediate | adb logcat -c && adb shell am start -n com.example.loaderlab/.MainActivity && adb logcat -s LoaderLab |
| 11 | Lab 03 — Dynamic DEX Loading and Hooking | Advanced | adb logcat -c && adb shell am start -n com.example.memlab/.MainActivity && adb logcat -s MemLab |
| 11 | Lab 04 — CTF: The Vanishing Class | CTF | adb logcat -c && adb shell am start -n com.vanishing.chal/.MainActivity && adb logcat -s Vanish |
| 12 | Lab 01 — Parse a DEX Header by Hand | Beginner | adb shell pm list packages -3 |
| 12 | Lab 02 — Decode Instructions From Raw Bytes | Intermediate | adb logcat -s art |
| 12 | Lab 03 — Find the Hidden Key | Advanced | adb install -r app/build/outputs/apk/release/app-release.apk |
| 12 | Lab 04 — CTF: The Lying DEX | CTF | adb install -r challenge.apk |
| 13 | Lab 01 — Reading the ART Artifacts | Beginner | emulator, 'adb' |
| 13 | Lab 02 — Compiler Filters and Hook Reliability | Intermediate | adb install -r app/build/outputs/apk/release/app-release.apk |
| 13 | Lab 03 — ArtMethod Archaeology | Advanced | adb shell cmd package compile -m verify -f com.artlab.target |
| 13 | Lab 04 — CTF: The Vanishing Method | CTF | adb install -r app/build/outputs/apk/release/app-release.apk |
| 14 | Lab 01 — Read Smali by Hand | Beginner | see the first time something used the class — not at install, not at build. 'adb logcat -s art:*' |
| 14 | Lab 02 — Patch, Rebuild, Verify | Intermediate | **Needs:** Android Studio or a Gradle command line, 'apktool', 'zipalign', 'apksigner', 'adb', and a |
| 14 | Lab 03 — Break the Verifier on Purpose | Advanced | 'zipalign', 'apksigner', 'adb', a device or emulator. |
| 15 | Lab 01 — Parse an ELF by hand | Beginner | adb pull /system/lib64/libc.so /tmp/ch15-fixtures/ |
| 15 | Lab 04 — From APK entry to mapped page | Intermediate | - *Where is the '.so' on the device?* — which is where you 'adb pull' from, and where a |
| 16 | Lab 01 — Building the bridge, and breaking it on purpose | Beginner | \| Any APK with native libraries \| Part 3 \| Take any app off your own device with 'adb pull' \| |
| 16 | Lab 02 — References, exceptions, and the crash you can cause | Intermediate | \| Android NDK, a device or emulator, 'adb' \| Parts 2–6 \| Part 1 is paper; read the rest \| |
| 17 | Lab 01 — Build the Inventory | Beginner | adb shell pm path org.example.target |
| 17 | Lab 03 — SDK Data-Collection Audit | Intermediate | # adb shell — point the device at it |
| 17 | Lab 04 — Catch the Constructor | Advanced | adb logcat -c |
| 17 | Lab 05 — CTF: The Library That Lied | CTF | # adb shell |
| 18 | Lab 01 — Read your first disassembly | Beginner | adb pull /system/lib64/libcutils.so /tmp/ch18/ |
| 18 | Lab 02 — Patch the licence check | Intermediate | adb push licence-runner liblicence.so lic-A.so lic-B.so /data/local/tmp/ |
| 18 | Lab 03 — Runtime truth: memory versus the file | Advanced | 'frida-server', 'adb', the NDK, and Python 3 |
| 19 | Lab 01 — Reading /proc/<pid>/maps by hand, and finding a known value in a live process |
Intermediate | **Prerequisites:** [02-Linux-Basics] (../../02-Linux-Basics/README.md) for 'adb shell' and file |
| 19 | Lab 02 — The allocator, measured: Scudo, size classes, reuse, and ASLR entropy | Intermediate | # adb shell |
| 19 | Lab 03 — Detection: HWASan, MTE, GWP-ASan, malloc_debug, and reading their reports | Advanced | # adb shell |
| 20 | Lab 01 — Device posture, and the device that lies about it | Beginner | **Prerequisites:** ['adb' installed and a device or emulator connected] (../../60-ADB/README.md). |
| 20 | Lab 02 — Dissecting vbmeta, and catching a phone in a lie | Intermediate | # adb shell — dump the top-level vbmeta. 128 KiB is more than enough; |
| 20 | Lab 03 — Breaking a client-side integrity gate | Intermediate | adb devices -l |
| 20 | Lab 04 — CTF: The Lying Phone | CTF | * adb shell sha256sum /system/etc/security/otacerts.zip |
| 21 | Lab 01 — Mapping the Sandbox on a Real Device | Beginner | with 'adb'. Root is helpful for two optional steps and is called out where needed. |
| 21 | Lab 02 — Isolated Versus Non-Isolated Processes | Intermediate | adb logcat -c |
| 21 | Lab 03 — Write an Attacker App and Probe the Boundary | Intermediate | > **Definition — 'adb shell'** |
| 21 | Lab 04 — Sandbox Escape by the Front Door: Exported Components | Intermediate | adb install -r victim/build/outputs/apk/debug/victim-debug.apk |
| 21 | Lab 05 — CTF: "Escape the Torch" | CTF | - **No 'adb shell' in the final answer.** You may use the shell to *explore*. The flag must arrive in |
| 22 | Lab 01 — Reading Contexts on a Real Device | Beginner | **Prerequisites:** [Chapter 22 §1–§3.6] (../README.md#1-introduction), a device or emulator with 'adb'. **No root requir |
| 22 | Lab 02 — From a Denial to the Rule That Would Allow It | Intermediate | adb devices |
| 22 | Lab 03 — MCS and App-vs-App Isolation | Intermediate | adb devices |
| 22 | Lab 04 — Reviewing a Vendor Policy | Advanced | adb pull /system/etc/selinux/plat_sepolicy.cil |
| 23 | Lab 01 — Reading grant state without lying to yourself | Beginner | > **Needs:** a device or emulator with 'adb', Python 3.6+, and 'apktool' |
| 23 | Lab 02 — Permission squatting with two installable apps | Intermediate | > **Needs:** a device or emulator you own, 'adb', the Android SDK build-tools, a JDK |
| 23 | Lab 03 — Borrowing a privileged app's permissions | Advanced | > **Needs:** a physical device you own (an emulator works but has far fewer vendor apps), 'adb', |
| 23 | Lab 04 — CTF: The Borrowed Key | CTF | > **Needs:** a device or emulator you own, 'adb', the Android SDK build-tools, a JDK, Python 3.6+ |
| 24 | Lab 01 — Map the IPC Surface | Beginner | [23-Permissions] (../../23-Permissions/README.md), a test device or emulator with 'adb' |
| 24 | Lab 02 — The Abstract Socket | Intermediate | adb devices |
| 24 | Lab 03 — The Confused Deputy | Intermediate | adb install -r deputy.apk |
| 24 | Lab 04 — The Localhost Service | Advanced | adb install -r local.apk |
| 24 | Lab 05 — CTF: Five Doors | CTF | 'adb shell' runs as UID 2000 in the SELinux domain 'shell', and holds privileges no installed app |
| 25 | Lab 01 — service list and service call against a real device |
Beginner | > **Needs:** an Android device or emulator with 'adb', **no root**. If you have neither, every |
| 25 | Lab 02 — Parcel anatomy: decode the bytes, then break the token | Intermediate | > **Needs:** 'adb' and a device (no root). The NDK for Tasks 5–7; without it, the shipped captures |
| 25 | Lab 03 — The identity boundary: prove it, then break the code around it | Intermediate | > **Needs:** 'adb', a device (no root for Parts A and B), the NDK for Part A, Android Studio for |
| 25 | Lab 04 — Transaction limits: measure the budget, then spend someone else's | Intermediate | > **Needs:** 'adb', a device (no root), the NDK for Task 2, Android Studio for Parts B and C. |
| 25 | Lab 05 — CTF: The Unmarked Code | CTF | > **Needs:** everything from labs 01–04. 'adb', the NDK, Android Studio. |
| 26 | Lab 01 — Intent redirection: build the deputy, build the exploit, write the fix | Advanced | \| Triggerable from 'adb shell am' \| **No** \| **Yes** \| |
| 26 | Lab 02 — Resolution forensics: predict, then measure | Intermediate | adb devices |
| 26 | Lab 03 — App Links verification state on a real device | Intermediate | $ adb shell pm get-app-links |
| 26 | Lab 04 — CTF: The Courier | CTF | 2. 'adb shell' is allowed for *reconnaissance*. Flag B must be obtained from an |
| 27 | Lab 01 — Enumerate and Read an Exported Provider | Intermediate | [§7.1–7.3] (../README.md#71-enumerating-providers-on-a-device), a device or emulator, 'adb', Android |
| 27 | Lab 02 — SQL Injection Through All Four Points | Intermediate | adb shell dumpsys package com.example.vuln \| grep -A6 "Provider{" |
| 27 | Lab 03 — openFile Path Traversal to a Session Token |
Intermediate | adb shell run-as com.example.vuln ls -la /data/data/com.example.vuln/shared_prefs 2>/dev/null \ |
| 27 | Lab 04 — call() as an Unprotected RPC Entry Point |
Advanced | adb shell dumpsys package com.example.vuln \| grep -A6 "Provider{" |
| 27 | Lab 05 — CTF: The Provider Gauntlet | CTF | - **Flag 5 must be recovered from an unprivileged app**, not from 'adb shell'. The whole point of the |
| 28 | Lab 01 — Map the service surface | Beginner | \| **Needs** \| A device or emulator with 'adb'. **No root. No app to install. No Frida.** \| |
| 28 | Lab 02 — Bind to a real service from an unprivileged app | Intermediate | \| **Needs** \| 'adb'; Android SDK build-tools **35.0.1 or newer**; a JDK; the ability to install an APK \| |
| 28 | Lab 03 — The check that does nothing | Advanced | Install (see Lab 02 §3 if 'adb install' is refused): |
| 28 | Lab 04 — Lifecycle, foreground, and the restart that did not happen | Intermediate | \| **Needs** \| 'adb'; build-tools 35.0.1+; a JDK; the ability to install an APK. **No Frida, no root** (root only if yo |
| 28 | Lab 05 — CTF: The Silent Door | CTF | \| **Needs** \| Everything from Labs 01–04: 'adb', build-tools 35.0.1+, a JDK, the prober, Frida (optional but faster) \ |
| 29 | Lab 01 — Map the runtime receiver surface | Intermediate | \| An Android device or emulator, API 21+ \| 'adb devices -l' \| |
| 29 | Lab 02 — Forge a broadcast at a vulnerable receiver | Intermediate | **refuses every 'adb install' with 'INSTALL_FAILED_USER_RESTRICTED'.** That is an OEM policy |
| 29 | Lab 03 — Ordered broadcasts and interception | Advanced | ordinary apps — and, as this lab shows, 'adb shell am broadcast' uses it by default, which |
| 29 | Lab 04 — CTF: the receiver that is not there | CTF | \| **Needs an installed lab app?** \| **Yes** for flags 1–4. Flag 5 needs the app installed but is solvable with 'adb sh |
| 30 | Lab 01 — Read the task graph | Beginner | > **You will need:** an Android device or emulator with 'adb', the two apps from |
| 30 | Lab 02 — Task hijacking, proved or disproved | Intermediate | > **You will need:** an Android device or emulator you own, 'adb', and the two apps from |
| 30 | Lab 03 — The deputy that launders a grant | Advanced | > **You will need:** an Android device or emulator you own, 'adb', and the two apps from |
| 30 | Lab 04 — Tapjacking a consent screen | Advanced | > **You will need:** an Android device or emulator you own **and can unlock**, 'adb', and the two apps |
| 30 | Lab 05 — CTF: The Understudy | CTF | > **You will need:** an Android device or emulator you own **and can unlock**, 'adb', and the two apps |
| 31 | Lab 01 — Land the classic | Beginner | > **You will need:** an Android device or emulator you own, 'adb', an Android SDK with build-tools |
| 31 | Lab 02 — Is it still exploitable? | Intermediate | > **You will need:** a device or emulator you own, 'adb', an Android SDK with build-tools, a JDK, |
| 31 | Lab 03 — Beyond PreferenceActivity |
Advanced | > **You will need:** a device or emulator you own, 'adb', the apps from |
| 31 | Lab 04 — Sweep and adjudicate | Advanced | > **You will need:** a device or emulator you own, 'adb', Python 3, 'aapt2' from build-tools, and |
| 31 | Lab 05 — CTF: The Understudy's Understudy | CTF | > **You will need:** a device or emulator you own, 'adb', the apps from |
| 32 | Lab 01 — Reading a Manifest Three Ways | Beginner | [10-APK-Internals] (../../10-APK-Internals/README.md), 'adb', 'apktool', 'aapt2', a device or emulator |
| 32 | Lab 02 — The Full Audit | Intermediate | adb pull "$(adb shell pm path $PKG \| head -1 \| tr -d '\r' \| sed 's/package://')" real.apk |
| 32 | Lab 03 — Proving Reachability | Intermediate | your privileged 'adb shell'. Then demonstrate task hijacking with a second app, because that class |
| 32 | Lab 04 — Provider Surgery | Advanced | adb pull $(adb shell pm path $PKG \| head -1 \| sed 's/package://') target.apk |
| 32 | Lab 05 — Merge and Inject | Advanced | adb install -r $APK |
| 32 | Lab 06 — CTF: The Lying Manifest | CTF | adb install -r challenge.apk |
| 33 | Lab 01 — Map the Eight Roots | Beginner | [21-App-Sandbox] (../../21-App-Sandbox/README.md), a rooted device or emulator with 'adb', |
| 33 | Lab 02 — Filesystem Diff Across a Session | Intermediate | adb shell pm list packages \| grep pentest |
| 33 | Lab 03 — Scoped Storage and FUSE, Measured | Advanced | to three different vantage points — 'adb shell' (uid 2000), an ordinary third-party app with no |
| 33 | Lab 04 — CTF: The Plaintext Copy | CTF | at the top of its task delivers no new Intent and 'adb' prints *Activity not started, intent has been |
| 34 | Lab 01 — Break the Vulnerable Vault | Beginner | adb install -r app/build/outputs/apk/release/app-release.apk |
| 34 | Lab 02 — Hook Everything | Intermediate | adb install -r app/build/outputs/apk/release/app-release.apk |
| 34 | Lab 03 — Audit a Real App, End to End | Advanced | adb shell getprop ro.build.fingerprint |
| 34 | Lab 04 — CTF: The Padding Oracle | CTF | Python 3, a device or emulator with 'adb' |
| 35 | Lab 01 — End-to-end interception on a physical device | Intermediate | without Google Play, Burp Suite (Community is enough), OpenSSL on the host, 'adb', Frida 16+ on host |
| 35 | Lab 02 — The deliberate bad certificate | Advanced | # device root — route A: hosts file plus adb reverse |
| 35 | Lab 03 — Dissecting Validation: Which Check Is This App Actually Doing? | Advanced | > **Warning — two environment facts that cost an hour each.** 'adb install' on this device fails |
| 35 | Lab 04 — CTF: The Trusted Impostor | CTF | own machine; 'adb', root on your own device, and the device's certificate stores; 'jadx', 'apktool', |
| 36 | Lab 01 — Map the pinning surface before you touch anything | Beginner | > [15-Native-Code] (../../15-Native-Code/README.md), a device or emulator with 'adb' |
| 36 | Lab 02 — Defeat a two-layer pin you built yourself | Advanced | \| Device \| Redmi 'M2101K6P', Android 11 / API 30, rooted \| 'adb shell "su -c id"' \| |
| 36 | Lab 03 — Attribute the rejection, and survive renewal | Intermediate | adb shell cmd package compile -m verify -f com.pentest.ch36.twolayer |
| 36 | Lab 04 — CTF: the pin that moved | CTF | adb push app-debug.apk /data/local/tmp/ctf.apk |
| 37 | Lab 01 — Build and Break Your Own Root Check | Beginner | adb shell "su -c id" |
| 37 | Lab 02 — Native Check, No Java Surface | Intermediate | adb install -r app/build/outputs/apk/debug/app-debug.apk |
| 37 | Lab 03 — Trace, Identify, Neutralise | Advanced | adb install -r app/build/outputs/apk/release/app-release.apk |
| 37 | Lab 04 — CTF: The Decoupled Check | CTF | adb install -r app/build/outputs/apk/release/app-release.apk |
| 38 | Lab 01 — Build an app that detects its own repackaging | Beginner | \| 'adb', and a device or emulator \| 'adb devices -l' \| |
| 38 | Lab 02 — Anti-analysis in JNI_OnLoad, and in the tier below it |
Intermediate | \| 'adb' and a device (for Part D) \| 'adb devices -l' \| |
| 38 | Lab 03 — Map before you bypass | Advanced | **Tools.** 'python3', 'adb', 'jadx', 'apktool', 'apksigner', 'llvm-readelf'. |
| 38 | Lab 04 — CTF: the app that works fine, and then does not | CTF | adb shell am start -n com.pentest.ch38.ctf/.VaultActivity |
| 39 | Lab 01 — Measure both sides | Beginner | 3. Explain the difference between what 'adb shell' can see and what an **app** can see, with numbers |
| 39 | Lab 02 — Build a detector worth attacking | Intermediate | # check 'adb logcat \| grep -i detector' for an UnsatisfiedLinkError. |
| 39 | Lab 03 — Trace and neutralise | Advanced | 3. Did the process die, or is it still running? ('adb shell pidof com.lab39.target') |
| 40 | Lab 01 — Obfuscation Triage | Beginner | **Q1.** Why does the methodology insist you pull the APK from a *device* with 'adb shell pm path' |
| 40 | Lab 02 — Recover Encrypted Strings, Then Read the Code | Intermediate | adb install -r C.apk |
| 40 | Lab 03 — Recognise and Reverse Control-Flow Flattening | Intermediate | adb install -r app/build/outputs/apk/release/app-release.apk |
| 40 | Lab 04 — Unpack a Packed App | Advanced | adb install -r app/build/outputs/apk/release/app-release.apk |
| 41 | Lab 03 — Audit an app you did not build | Advanced | adb shell pm list packages -s \| head -40 |
| 42 | Lab 01 — Build it yourself, then read the mapping | Intermediate | $ adb logcat -d -b crash \| python3 -B ../42-R8/scripts/mapping-reader.py mapping.txt retrace |
| 42 | Lab 02 — Synthetic safari | Intermediate | $ adb devices -l |
| 42 | Lab 03 — Recover original names from kotlin.Metadata |
Advanced | Pull whatever real APKs you can. Unrooted 'adb' is enough: |
| 43 | Lab 01 — Exploit a JavaScript bridge in an app you build | Intermediate | through 'adb reverse'; nothing is exposed to a network. |
| 43 | Lab 02 — Defeat a config that looks correct | Advanced | collector all run on your own machine and are reached from the device through 'adb reverse'. Nothing |
| 43 | Lab 03 — Audit a real app end to end | Advanced | adb shell pm list packages -3 \| sort \| head -40 |
| 43 | Lab 04 — CTF: The Deputy in the Browser | CTF | machine, reached through 'adb reverse'. No third-party software is touched at any point. |
| 44 | Lab 01 — Extract and read a real app's network security config | Intermediate | adb devices -l |
| 44 | Lab 02 — Make an app you built trust your proxy CA | Intermediate | adb push burp.pem /sdcard/Download/burp.crt |
| 44 | Lab 03 — Prove it on the device | Advanced | adb devices -l |
| 44 | Lab 04 — CTF: the config that lies | CTF | frida -U -p $(adb shell pidof com.vaultpay.wallet \| tr -d '\r') -l ../scripts/nsc-runtime.js |
| 45 | Lab 01 — Intercept and decode a full authorisation-code + PKCE flow | Beginner | adb devices |
| 45 | Lab 02 — Testing PKCE enforcement, not PKCE presence | Intermediate | adb shell am start -a android.intent.action.VIEW -d \ |
| 45 | Lab 03 — Scheme hijacking: stealing an authorisation code with a competing app | Advanced | adb shell pm get-app-links com.example.target |
| 45 | Lab 04 — CTF: The Borrowed Identity | CTF | adb reverse tcp:9000 tcp:9000 # or use 10.0.2.2 on an emulator |
| 46 | Lab 03 — Tokens at Rest | Intermediate | adb devices -l |
| 47 | Lab 01 — Map the authentication surface | Intermediate | adb devices -l |
| 47 | Lab 03 — Enumeration, lockout and OTP | Advanced | adb push otp-verify /data/local/tmp/ && adb shell /data/local/tmp/otp-verify |
| 47 | Lab 04 — CTF: The account that would not close | CTF | device you own, and recover the artefact yourself with 'run-as', 'adb backup' or root. This |
| 48 | Lab 01 — Callback versus crypto: the same attack, twice | Intermediate | adb devices -l |
| 48 | Lab 02 — Measuring the binding yourself | Intermediate | adb devices -l |
| 48 | Lab 03 — Audit a real app, end to end | Advanced | # adb shell |
| 48 | Lab 04 — CTF: The Fifth Finger | CTF | adb install -r app/build/outputs/apk/debug/app-debug.apk |
| 49 | Lab 01 — Keystore Inventory and Profiling | Beginner | emulator with 'frida-server' running, 'adb'. See [51 — Dynamic Analysis] (../../51-DynamicAnalysis/README.md) |
| 49 | Lab 02 — Prove Extraction Versus Use | Intermediate | # adb shell as root |
| 49 | Lab 03 — Read a Key Attestation Certificate | Advanced | adb shell pm list features \| grep -Ei 'hardware_keystore\|strongbox' |
| 49 | Lab 04 — CTF: The Vault That Lies | CTF | adb install -r vault/build/outputs/apk/release/vault-release.apk |
| 50 | Lab 01 — Determine the real security level of every key an app can create on your device | Intermediate | \| 'adb' on PATH \| \| |
| 50 | Lab 02 — Gatekeeper and the hardware auth-token chain | Intermediate | adb devices -l |
| 50 | Lab 03 — Read a key attestation offline, and catch a phone lying about itself | Advanced | adb devices -l && adb shell getprop ro.product.model && adb shell getprop ro.build.version.sdk |
| 51 | Lab 01 — Your first complete runtime pass | Beginner | with 'adb' working. 'aapt2' (from the Android SDK build-tools) if you have it; the lab tells you what |
| 51 | Lab 02 — The loop, run explicitly | Intermediate | adb shell "pm path $PKG" |
| 51 | Lab 03 — Coverage, and the lie of a clean pass | Intermediate | adb shell "pm path $PKG" |
| 51 | Lab 04 — CTF: the session that lied | CTF | 'adb logcat' shows the bearer token in plain text. |
| 52 | Lab 01 — Your first complete static pass | Beginner | with 'adb' working. 'jadx', 'unzip', 'python3'. 'apktool' and 'aapt2' if you have them; the lab tells |
| 52 | Lab 03 — Mapping the blind spots | Intermediate | # adb shell — the live registration table |
| 53 | Lab 01 — First Contact | Beginner | (the "AOSP" images) is rooted by default via 'adb root', which makes this lab friction-free: |
| 53 | Lab 02 — The Four Failure Modes | Intermediate | adb install -r app/build/outputs/apk/release/app-release.apk |
| 53 | Lab 03 — Native Instrumentation | Advanced | adb install -r app/build/outputs/apk/release/app-release.apk |
| 53 | Lab 04 — CTF: The Silent Vault | CTF | adb install -r app/build/outputs/apk/release/app-release.apk |
| 54 | Lab 01 — Your first session, and the four ways it goes wrong | Beginner | 3. Explain, without looking it up, why 'adb shell am force-stop' before connecting changes |
| 54 | Lab 02 — One task, two tools: feeling the trade | Intermediate | adb shell am force-stop com.pentest.ch54.target |
| 54 | Lab 03 — Mapping the envelope: turning "it depends" into a capability statement | Advanced | adb shell am force-stop com.pentest.ch54.target |
| 54 | Lab 04 — CTF: The Confident Tool | CTF | adb shell am start -n com.pentest.ch54.ctf/.VaultActivity |
| 55 | Lab 01 — The first scan, and reading it bottom-up | Beginner | adb shell pm list packages -3 \| head -20 |
| 56 | Lab 03 — Triage a real application | Intermediate | adb shell pm list packages \| grep -i <fragment> |
| 57 | Lab 02 — Recovering a Dynamic JNI Registration Table | Intermediate | adb install -r app/build/outputs/apk/release/app-release.apk |
| 57 | Lab 04 — CTF: Three Routes to One Secret | CTF | adb install -r app/build/outputs/apk/release/app-release.apk |
| 58 | Lab 04 — CTF: the function that does not matter | CTF | > On Git Bash, 'adb push /local/path /device/path' will silently rewrite the *device* path into a |
| 59 | Lab 02 — Triage a real library | Intermediate | adb pull /system/lib64/libsqlite.so . |
| 59 | Lab 03 — Patching, and the function that did not matter | Advanced | adb push ~/ch59-build/r2gate /data/local/tmp/ch59_r2gate |
| 59 | Lab 04 — CTF: The gate that was not there | CTF | adb push ~/ch59-build/ctfvault /data/local/tmp/ch59_ctfvault |
| 60 | Lab 01 — Read the wire | Beginner | > load-bearing and which are decoration, and map a complete 'adb shell' session onto its message |
| 60 | Lab 02 — Speak the protocol | Intermediate | > **Objective:** connect to 'adbd' and drive it with **no 'adb' client, no 'adb' server, and no |
| 60 | Lab 03 — Posture and exposure | Intermediate | > what identity 'adb shell' actually gives you and how it differs from an app; and write three |
| 60 | Lab 04 — CTF: The unattended terminal | CTF | > without the 'adb' client, find the install that was never finished, work out who is authorised to |
| 61 | Lab 01 — Device posture from the outside | Beginner | **You need:** any Android device or emulator you can run 'adb shell' on. Root is optional and the lab |
| 61 | Lab 03 — vbmeta, verity, and the one byte that matters | Advanced | SIZE=$(adb shell getprop ro.boot.vbmeta.size \| tr -d '\r') |
| 62 | Lab 01 — Root a Device From Scratch | Beginner | \| A host with 'adb' and 'fastboot' \| Google's 'platform-tools'. Do **not** use a distro-packaged 'fastboot' that is ye |
| 62 | Lab 02 — Write a Magisk Module | Intermediate | adb shell "su -c 'magisk -v'" # confirms Magisk is alive; the OUTER quotes matter |
| 62 | Lab 03 — DenyList Investigation | Intermediate | # adb shell as root — confirm the ground state |
| 62 | Lab 04 — Module Supply-Chain Audit | Advanced | # adb shell as root — 1. what modules exist, and when did they arrive |
| 62 | Lab 05 — CTF: The Invisible Mount | CTF | adb install -r app/build/outputs/apk/debug/app-debug.apk |
| 63 | Lab 01 — Mapping the injection chain | Intermediate | from what 'adb shell' can see, and the one every published detection list gets wrong. |
| 63 | Lab 02 — Your first module, built offline | Intermediate | adb install -r app-debug.apk |
| 63 | Lab 03 — Scope, timing, and the five ways a module fails | Advanced | adb shell am startservice -n com.pentest.ch63.vault/.SyncService |
| 63 | Lab 04 — CTF: The Invisible Module | CTF | adb shell 'su 0 ls /data/adb/modules' # unchanged from before you started |
| 64 | Lab 01 — The detection surface that outlived the framework | Intermediate | 3. A detection probe verified from 'adb shell' **has not been verified**. |
| 64 | Lab 02 — Read a classic module, then build one | Intermediate | 4. 'adb shell am force-stop com.pentest.ch64.vault', then relaunch. **The force-stop is not |
| 64 | Lab 03 — Why the mechanism broke | Advanced | first principles, using nothing but a device and 'adb'. Once you have done it for Xposed you can do |
| 64 | Lab 04 — CTF: The Ghost of app_process |
CTF | adb logcat -c && adb shell am start -n com.pentest.ch64.vaultpay/.MainActivity |
| 65 | Lab 01 — The five hook types, on one target | Intermediate | adb devices -l |
| 65 | Lab 02 — Write an inline hook by hand | Advanced | adb push $OUT/libguard.so $OUT/trampoline-hook /data/local/tmp/ |
| 65 | Lab 03 — Where hooks fail | Advanced | adb push $OUT/libinline.so $OUT/hook-that-fails /data/local/tmp/ |
| 65 | Lab 04 — CTF: The Honest Trampoline | CTF | adb shell rm -f /data/local/tmp/libvault.so /data/local/tmp/vault-runner /data/local/tmp/solver |
| 66 | Lab 01 — First contact: two APKs and one command | Beginner | adb devices -l |
| 66 | Lab 02 — The gate matrix: what actually decides | Intermediate | adb devices -l |
| 66 | Lab 03 — Ordering, vantage, and the two traps | Advanced | a probe verified from 'adb shell' has not been verified: the shell sees properties, files and |
| 66 | Lab 04 — CTF: Before Application | CTF | adb shell am instrument -w -r \ |
| 67 | Lab 01 — Triage the death | Beginner | adb devices -l |
| 67 | Lab 02 — The escalation ladder, end to end | unstated | adb devices -l && adb shell getprop ro.product.model && adb shell getprop ro.build.version.sdk |
| 67 | Lab 03 — When to stop bypassing | Intermediate | adb devices -l && adb shell getprop ro.product.model && adb shell getprop ro.build.version.sdk |
| 67 | Lab 04 — CTF: the boolean that lied | CTF | adb devices -l && adb shell getprop ro.product.model && adb shell getprop ro.build.version.sdk |
| 68 | Lab 03 — Across the boundary, and back | Advanced | export S=<your-device-serial> # from 'adb devices -l' |
| 69 | Lab 01 — Your first complete triage | Beginner | > will not need a device, an emulator, or 'adb' at any point. |
| 69 | Lab 03 — Full triage, ending in a written analysis | Advanced | adb shell mount \| grep cacerts |
| 70 | Lab 01 — Attack surface enumeration and target selection | Intermediate | \| 'adb' \| On your PATH \| |
| 70 | Lab 04 — CTF: The Reachability Verdict | CTF | $ adb shell ls -lZ /vendor/etc/nyx/boot.cfg |
| 71 | Lab 02 — Map a Known App | Intermediate | [Chapter 71 §3 and §7] (../README.md#3-deep-internal-working), a rooted device or emulator, 'adb', |
| 72 | Lab 01 — Build the base rate | Intermediate | adb devices -l |
| 72 | Lab 02 — The severity clinic | Intermediate | 'targetSdk' 34, (b) establish what is actually in the backup set, and (c) show that 'adb backup' |
| 72 | Lab 03 — Write the finding | Advanced | \| 6 \| **Vantage is stated where it matters** \| A 'adb shell' result presented as an app result \| |
| 72 | Lab 04 — CTF: the peer review | CTF | > $ adb shell content query --uri content://com.anon.northwind.driver.manifests/deliveries |
| 73 | Lab 01 — The capability survey: what your setup can actually run | Beginner | adb devices -l |
| 73 | Lab 02 — The chain no chapter can host: static → dynamic → report | Intermediate | adb install /tmp/ch73-sdk23/chain-target.apk |
| 73 | Lab 03 — Write a lab that survives someone else running it | Intermediate | - You write 'adb shell su -c 'id'' because it works on your phone. It is **broken everywhere** — the |
| 73 | Lab 04 — CTF: The Gauntlet | CTF | adb logcat -c |
| 74 | Lab 01 — The property that lied | Beginner | is not required. You need 'adb' on your PATH and one device attached. |
| 74 | Lab 02 — The patch that changed nothing | Intermediate | adb push "$OUT/gate" "$OUT/gate-patched" /data/local/tmp/ |
| 74 | Lab 03 — The detection that cannot detect | Intermediate | **Objective.** By the end you will never again verify a detection probe from 'adb shell', you will be |
| 74 | Lab 04 — CTF: The Confident Report | CTF | '/system/xbin' is '0750 root:shell': visible to 'adb shell', invisible to an app. |
| 75 | Lab 02 — The take-home, with the grader's rubric | Intermediate | > **Prerequisites:** a working static and dynamic toolchain (jadx or apktool, 'adb', ideally |
| 75 | Lab 03 — Live triage, and saying "I do not know" correctly | unstated | > **Prerequisites:** an emulator or a device **you own**, 'adb' on 'PATH', and this |
| 75 | Lab 04 — CTF: The Panel | CTF | > A device you own, 'adb', and 'sha256sum' (or 'Get-FileHash'). |
| 76 | Lab 01 — The sixty-minute triage, using only the sheets | Intermediate | > **Prerequisites:** ['../README.md'] (../README.md) §2 and §4.1. An Android device or emulator, 'adb', |
| 76 | Lab 02 — The sheet lies: six commands that answer confidently and wrongly | Intermediate | > 'adb'. **Root helps but is not required** — rounds 3, 4 and 5 work without it, and round 1 is more |
| 76 | Lab 03 — Build a sheet you would trust a year from now | Advanced | Every real engagement accumulates a private vocabulary within the first day: the two 'adb' incantations |
| 76 | Lab 04 — CTF: The stale sheet | CTF | > [03] (lab-03-build-your-own-sheet.md). An Android device or emulator with 'adb'. Root and a |
| 77 | Lab 01 — Device Reconnaissance | Beginner | **Prerequisites:** A device or emulator with USB debugging enabled, 'adb' on your PATH |
| 77 | Lab 02 — Manifest Audit From a Live Device | Intermediate | adb shell pm list packages -3 \| grep -i <something> |
| 77 | Lab 03 — The Exported-Surface Sweep | Intermediate | 'adb shell' runs as UID 2000 ('shell'), which holds privileges an app does not. Components you can |
| 77 | Lab 04 — Storage Diff | Intermediate | adb shell pm path $PKG |
| 77 | Lab 05 — CTF: One Command, One Flag | CTF | - You may use 'adb shell' and anything on the device or in the SDK. |
| 78 | Lab 01 — Draw the trust boundaries of a real app, from evidence only | Intermediate | **You need:** any Android device or emulator with 'adb', and an app you are authorised to inspect |
| 78 | Lab 02 — Take a diagram from this repository and find what it omits | Intermediate | **You need:** an Android device or emulator with 'adb', root optional but useful |
| 78 | Lab 03 — Redraw an intended flow as the actual one | Intermediate | **You need:** an Android device or emulator you have root on, and 'adb' |
| 78 | Lab 04 — CTF: The Cartographer's Error | CTF | **You need:** an Android device or emulator with 'adb'. Root is **not** required for the flag; one |
| 81 | Lab 01 — Runtime Anatomy of an App | Beginner | emulator, 'adb' |
| 81 | Lab 02 — ArtMethod Entrypoints |
Intermediate | adb shell "getprop ro.product.cpu.abi" |
| 81 | Lab 03 — Zygisk Module Anatomy | Advanced | adb shell "su 0 id" |
| 81 | Lab 04 — CTF: The Invisible Hook | CTF | adb push out/classes.dex /data/local/tmp/vault.dex |