Skip to content

Diagram index — by diagram type

Built mechanically by scripts/diagram-census.py.

This index deliberately does not reproduce the diagrams. A diagram copied out of its chapter loses the prose that STYLE-GUIDE.md requires to sit beside it, and goes stale the moment the original is edited. What you get here is the location, the shape, and the size — enough to decide whether to open it.

Columns: Type is the Mermaid diagram family. Nodes is a crude count of distinct node, participant or class identifiers — a size signal, not an analysis. Boundaries counts subgraph blocks, which is how this repository draws a trust boundary. Atk marks a diagram that colours attacker-controlled input #f9d0d0, the convention in STYLE-GUIDE.md section 6.

818 diagrams in 6 Mermaid families. Use this view when you want a worked example of a particular diagram type to copy the shape of.

Type Count Share
flowchart 419 51.2%
mindmap 167 20.4%
sequence 156 19.1%
state 36 4.4%
block layout 28 3.4%
class 12 1.5%

flowchart (419)

Chapter Depicts Nodes Atk Location
(root) Learning path 13 README.md:94
(root) 6. Diagram conventions 5 yes STYLE-GUIDE.md:227
00-Introduction 2.1 The map of the whole field 29 README.md:181
00-Introduction 2.2 Where the attacker sits relative to the app 22 yes README.md:234
00-Introduction 3.2 The career ladder 10 README.md:423
00-Introduction Magisk: the systemless approach 6 README.md:1280
00-Introduction Decision flow 11 yes README.md:1550
00-Introduction 5.5 How to actually study this repository 9 README.md:2097
00-Introduction 8.1 The order of operations 10 README.md:2434
01-Computer-Science-Basics 2.1 The stack from transistor to app 24 yes README.md:196
01-Computer-Science-Basics 2.5 Trust boundaries 14 yes README.md:412
01-Computer-Science-Basics 3.11 Kernel space, user space, privilege rings and exception levels 10 yes README.md:1266
01-Computer-Science-Basics 3.12 Processes: address space, PID, and the process control block 11 README.md:1380
01-Computer-Science-Basics 3.17 The heap, in full 15 yes README.md:1960
01-Computer-Science-Basics 3.18.1 Pages and page tables 8 yes README.md:2151
01-Computer-Science-Basics 3.24 The compilation pipeline 8 yes README.md:2858
01-Computer-Science-Basics 7. Dynamic Analysis 12 README.md:3659
02-Linux-Basics 2.1 The layers between your keystroke and the hardware 21 yes README.md:145
02-Linux-Basics 2.3 The Android filesystem at a glance 22 yes README.md:228
02-Linux-Basics 2.4 Trust boundaries expressed as UIDs 23 yes README.md:265
02-Linux-Basics The problem the inode solves 10 README.md:528
02-Linux-Basics The complete access decision on Android 13 yes README.md:983
02-Linux-Basics Pipes 6 README.md:1500
02-Linux-Basics How Android replaces most of this with Binder 19 yes README.md:1606
02-Linux-Basics The dynamic linker, and why LD_PRELOAD is a hooking primitive 12 yes README.md:2013
02-Linux-Basics How Magisk uses all of this 17 yes README.md:2263
02-Linux-Basics The permission decision, as a flowchart 16 yes labs/lab-01-filesystem-and-permissions.md:1269
03-Programming-Fundamentals 2.1 The abstraction ladder 6 README.md:194
03-Programming-Fundamentals 2.2 The four translation strategies 14 README.md:234
03-Programming-Fundamentals 2.4 Anatomy of the pipeline that turns C into a running Android library 16 README.md:406
03-Programming-Fundamentals 2.5 The Android version of the same pipeline 12 README.md:460
03-Programming-Fundamentals 3.4.2 The worked example — an allocation size overflow 8 yes README.md:852
03-Programming-Fundamentals 3.6.2 What the CPU actually has 5 README.md:1156
03-Programming-Fundamentals 3.8.3 The call stack, drawn 10 yes README.md:1486
03-Programming-Fundamentals 3.9.2 The linked list — flexible, scattered, pointer-chasing 5 README.md:1680
03-Programming-Fundamentals 3.9.3 The stack — last in, first out 5 README.md:1737
03-Programming-Fundamentals 3.9.4 The queue — first in, first out 5 README.md:1782
03-Programming-Fundamentals 3.10.2 The idea 9 README.md:1855
03-Programming-Fundamentals 3.10.4 Collision resolution — the two real strategies 5 yes README.md:1911
03-Programming-Fundamentals 3.10.7 Why this matters for DEX internals 10 README.md:2045
03-Programming-Fundamentals 3.11.1 Trees 7 README.md:2086
03-Programming-Fundamentals 3.11.2 Graphs 7 README.md:2131
03-Programming-Fundamentals 3.14.1 The problem 7 yes README.md:2434
03-Programming-Fundamentals 3.14.3 Garbage collection 10 yes README.md:2483
03-Programming-Fundamentals 3.17.3 Exceptions 11 yes README.md:2793
03-Programming-Fundamentals 3.18.2 Ahead-of-time compilation to native code 4 README.md:2923
03-Programming-Fundamentals 3.18.5 Android's actual pipeline, end to end 16 README.md:3013
03-Programming-Fundamentals 3.19.2 The mental model: a DAG of snapshots 9 README.md:3121
03-Programming-Fundamentals 3.19.3 The three areas 4 README.md:3164
03-Programming-Fundamentals 8.1 The single most important pentester skill: reading code you did not write 8 yes README.md:4079
03-Programming-Fundamentals 8.1.3 Move 3 — follow the state 7 yes README.md:4160
04-Java 2.1 From source text to a running method 10 README.md:219
04-Java HashMap internals — buckets, hashing, and collisions 12 README.md:844
04-Java 3.10 Exceptions 12 README.md:922
05-Kotlin 2.1 The compilation pipeline, and where Kotlin inserts itself 12 README.md:190
05-Kotlin 2.3 Where Kotlin's guarantees live at runtime 15 yes README.md:276
06-Android-Architecture 2.1 The complete stack 42 yes README.md:169
06-Android-Architecture 2.2 Trust boundaries 22 yes README.md:278
06-Android-Architecture 2.3 The process view — what is actually running 24 README.md:343
06-Android-Architecture 3.2.3 Project Treble and the system/vendor split 10 yes README.md:620
06-Android-Architecture 3.5 The Java API framework — what "the framework" actually is 13 yes README.md:827
06-Android-Architecture 3.7.14 What a "soft reboot" actually is 10 README.md:1458
06-Android-Architecture 3.9.2 Why Zygote breaks that assumption 8 yes README.md:1646
06-Android-Architecture 3.10.1 What it is and why it exists 14 README.md:1736
06-Android-Architecture 5.1 The layered trust model, stated precisely 8 yes README.md:2287
07-AOSP 1.5 What is not in AOSP, and why it dominates security testing 24 yes README.md:143
07-AOSP 2.1 AOSP as a set of layers, mapped to directories 31 yes README.md:237
07-AOSP 2.2 How the ~1000 repositories become one tree 19 README.md:300
07-AOSP 2.3 The trust boundaries visible in the source tree 25 yes README.md:354
07-AOSP 2.4 Where a released device diverges from AOSP 8 yes README.md:419
07-AOSP The procedure 18 README.md:631
07-AOSP How enforcement works 11 yes README.md:939
07-AOSP 4.2 Trace B — SharedPreferences.edit().putString().apply() to bytes on disk 35 README.md:1592
07-AOSP 4.3 Trace C — a permission check, from checkSelfPermission to the enforcement point 20 yes README.md:1789
07-AOSP Step 5 — where enforcement actually happens 11 yes README.md:1944
07-AOSP 5.3.4 Patch gapping — the bulletin as a vulnerability feed 8 yes README.md:2385
08-Build-System 2.1 The two systems side by side 15 yes README.md:180
08-Build-System 2.2 The platform build graph 14 README.md:224
08-Build-System 2.3 The app build pipeline — the big diagram 46 yes README.md:276
08-Build-System 2.4 The trust boundaries of a build 15 yes README.md:416
08-Build-System 3.4 How SELinux policy is built 18 README.md:752
08-Build-System 3.9 Build variants: types, flavours, and source sets 18 README.md:1064
08-Build-System The priority order 6 yes README.md:1146
08-Build-System 3.15 Shrinking, obfuscation, and resource shrinking 16 README.md:1543
08-Build-System 3.16 Resources: aapt2 compile and link 13 README.md:1596
08-Build-System 3.19 AAB, bundletool, splits and dynamic feature modules 8 README.md:1746
08-Build-System 5.4 Supply-chain risk, in depth 18 yes README.md:2689
09-Android-App-Internals 2.1 The three axes: identity, storage, execution 17 yes README.md:183
09-Android-App-Internals 2.2 Who does what: the component map 25 yes README.md:251
09-Android-App-Internals 3.15 The main thread: Looper, MessageQueue, Handler 16 README.md:1400
10-APK-Internals 2.2 Parsing order — why it runs backwards 13 yes README.md:302
10-APK-Internals 2.3 The full picture 26 yes README.md:334
10-APK-Internals 3.4 resources.arsc 13 README.md:621
10-APK-Internals 3.5 Signing — the heart of the chapter 21 yes README.md:682
10-APK-Internals The honest hierarchy 8 yes README.md:1370
11-Android-Runtime 1.5 Register machines versus stack machines, from first principles 9 README.md:345
11-Android-Runtime 2.1 Where the runtime sits in the Android stack 19 yes README.md:486
11-Android-Runtime 2.2 The complete lifecycle of code, source to silicon 15 yes README.md:552
11-Android-Runtime 2.3 The per-app process model 10 yes README.md:660
11-Android-Runtime 2.6 The trust boundary map 12 yes README.md:858
11-Android-Runtime Mode 1 — Interpretation 9 README.md:922
11-Android-Runtime The comparison, side by side 11 README.md:1014
11-Android-Runtime 3.10 Dynamic class loading as an attack technique 17 yes README.md:1543
12-DEX-Internals 2.2 The index-and-data split 16 README.md:338
12-DEX-Internals 2.3 From .java to classes.dex 9 README.md:396
12-DEX-Internals 3.8 string_id_item and string_data_item 7 README.md:1174
12-DEX-Internals 3.13 class_def_item 13 README.md:1356
12-DEX-Internals The signed size convention 10 yes README.md:1833
12-DEX-Internals 5.1 Why the format is a security topic at all 5 yes README.md:2755
13-ART 2.1 Where ART sits in the system 14 yes README.md:193
13-ART 2.2 The compilation and execution pipeline 12 yes README.md:242
13-ART 2.5 Trust boundaries around ART 6 yes README.md:348
13-ART 3.16 Entry points and the trampolines they point at 10 yes README.md:1086
13-ART odrefresh and odsign 9 README.md:1450
14-Dalvik 2.1 The Dalvik pipeline, end to end 14 yes README.md:306
14-Dalvik 2.2 Stack machine versus register machine 9 README.md:353
14-Dalvik 2.6 Where Smali sits in the modern toolchain 14 yes README.md:623
14-Dalvik 2.7 Trust boundaries when you rewrite Smali 11 yes README.md:665
15-Native-Code 2.1 From APK entry to mapped page 19 yes README.md:213
15-Native-Code 2.4 Trust boundaries at the native layer 15 yes README.md:358
15-Native-Code 3.8 PLT and GOT: the indirection that makes hooking possible 7 yes README.md:979
16-JNI 2.1 The bridge, drawn 12 yes README.md:289
16-JNI 2.3 The JNIEnv double indirection 9 README.md:405
16-JNI 2.4 Trust boundaries at the bridge 15 yes README.md:440
16-JNI 6.6 The decision tree 11 README.md:3059
17-Libraries The library stack, from app code to kernel 26 yes README.md:173
17-Libraries The three rings, as a decision tree 8 yes README.md:367
17-Libraries 8.1 The methodology — "enumerate every library in this APK and rate each" 20 yes README.md:1786
17-Libraries The one-page decision flow 15 yes mindmap.md:287
18-ARM 2.1 What is actually on the chip 24 README.md:174
18-ARM 2.3 From C to silicon 11 README.md:285
19-Memory 2.2 What happens when you call malloc(32) 13 yes README.md:216
19-Memory 2.4 The detection landscape 16 README.md:308
19-Memory 3.13.1 The shared idea: tagged memory 11 yes README.md:1089
20-Security-Architecture 2.1 Defence in depth, drawn once 30 yes README.md:103
20-Security-Architecture 2.2 Trust boundaries, named explicitly 20 yes README.md:171
20-Security-Architecture The mechanism: a Merkle tree 15 yes README.md:382
20-Security-Architecture Why dm-verity forced Magisk to be "systemless" 7 yes README.md:458
20-Security-Architecture 3.9 Synthesis — what is actually attackable in a typical engagement 12 yes README.md:800
21-App-Sandbox 2.1 The sandbox as nested enforcement layers 23 yes README.md:114
21-App-Sandbox 2.2 The trust boundaries, named 15 yes README.md:171
21-App-Sandbox 3.4 SELinux as the second layer — the short version 8 yes README.md:547
21-App-Sandbox What isolatedProcess gives you 7 yes README.md:709
21-App-Sandbox What the SDK Runtime does 9 yes README.md:786
21-App-Sandbox What scoped storage changes 6 yes README.md:958
21-App-Sandbox 3.14 What the sandbox does NOT protect against 14 yes README.md:1094
21-App-Sandbox 3.15 Sandbox escape — the six classes 13 yes README.md:1325
22-SELinux 2.1 Where SELinux sits in a system call 21 yes README.md:127
22-SELinux 2.2 The three layers of enforcement, drawn 13 yes README.md:184
22-SELinux 2.4 The trust boundaries SELinux draws 19 yes README.md:264
22-SELinux Diagram: the two apps 14 yes README.md:908
23-Permissions 2.1 The life of one permission, end to end 15 yes README.md:204
23-Permissions 2.2 The three lists, and why conflating them produces wrong findings 9 yes README.md:258
23-Permissions 2.4 The trust boundary drawn properly 10 yes README.md:345
23-Permissions Where the framework check physically lives 11 yes README.md:1507
23-Permissions The idea 8 yes README.md:1557
24-IPC 2.1 The whole IPC landscape in one picture 20 yes README.md:184
24-IPC 2.2 The two shapes of IPC: mediated and direct 9 yes README.md:267
24-IPC 2.4 Trust boundaries drawn explicitly 13 yes README.md:339
24-IPC 3.3 Binder — the substrate everything else sits on 11 yes README.md:468
24-IPC 3.4 Intents — the framework's message envelope 9 yes README.md:515
24-IPC 3.22 A full methodology for enumerating an app's IPC surface 8 README.md:2089
25-Binder 2.1 The whole stack in one picture 22 yes README.md:169
25-Binder 2.3 The trust boundaries, drawn explicitly 16 yes README.md:277
25-Binder 2.4 Four device nodes, four separate worlds 12 yes README.md:329
25-Binder 5.1 The one-sentence threat model 16 yes README.md:2008
26-Intent 2.3 The trust boundary 12 yes README.md:252
26-Intent 2.4 Where resolution happens 13 yes README.md:304
26-Intent 3.4 The resolution algorithm — the part readers get wrong 13 yes README.md:462
26-Intent Test 3 — data 8 README.md:536
26-Intent 4.3 From startActivity to the resolver 33 yes README.md:1395
26-Intent The two apps, at a glance 10 yes examples/README.md:80
27-ContentProviders The call path from a client app to a provider 19 yes README.md:137
27-ContentProviders Anatomy of a content URI 10 yes README.md:208
27-ContentProviders Where providers sit among the four component types 8 README.md:231
27-ContentProviders The exploit 7 yes README.md:1812
27-ContentProviders 7.7 A complete testing workflow 15 yes README.md:2734
28-Services 1.4 The three shapes, in one paragraph each 9 README.md:133
28-Services 2.1 Who is involved 18 yes README.md:191
28-Services 2.4 The trust boundaries, named 12 yes README.md:326
28-Services 2.5 Where the three IBinder shapes sit 9 yes README.md:367
29-BroadcastReceivers 2.1 The whole path, in one picture 26 yes README.md:199
29-BroadcastReceivers 2.2 The two registration paths — the visibility gap 15 yes README.md:277
29-BroadcastReceivers 2.3 The trust boundary, drawn explicitly 16 yes README.md:346
29-BroadcastReceivers 3.8 The two permission checks, and their asymmetry 8 yes README.md:1028
30-Activities 2.1 The four nouns, and how they nest 10 yes README.md:155
30-Activities 2.3 The trust boundary 12 yes README.md:248
30-Activities 2.4 Where the two signature attacks sit 11 yes README.md:296
31-Fragments 2.1 Where a Fragment actually sits 14 yes README.md:166
31-Fragments 2.3 The trust boundary 14 yes README.md:272
31-Fragments 5.1 The taxonomy 12 yes README.md:1149
32-Manifest Where the manifest sits in the APK 9 yes README.md:139
32-Manifest The lifecycle of a manifest, from source to enforcement 16 yes README.md:169
32-Manifest The trust boundary the manifest defines 11 yes README.md:222
32-Manifest The two parsers you must reconcile 9 yes README.md:263
32-Manifest Reading the backup attributes together 10 yes README.md:643
32-Manifest The provider audit flow 18 yes README.md:1008
32-Manifest 3.17 Manifest merging — how components you never wrote appear in your APK 8 yes README.md:1394
32-Manifest 4.4 The runtime check: exported and permission for an Activity 13 yes README.md:1628
33-Storage 2.2 The two trust boundaries 14 yes README.md:232
34-Cryptography 2.1 The map of cryptography 17 README.md:192
34-Cryptography 2.2 Where crypto lives in the Android stack 19 yes README.md:241
34-Cryptography 2.4 The shape of a correct encryption operation 12 yes README.md:355
34-Cryptography 3.3.1 ECB — Electronic Codebook 9 yes README.md:505
34-Cryptography 3.3.2 CBC — Cipher Block Chaining 13 README.md:549
34-Cryptography 3.3.4 CTR — Counter mode 15 README.md:676
34-Cryptography 3.3.5 GCM — Galois/Counter Mode, and the catastrophe of nonce reuse 22 yes README.md:710
34-Cryptography 3.6.1 The problem it solves 5 yes README.md:959
34-Cryptography 3.7.1 Length extension, and why HMAC exists 8 yes README.md:1209
34-Cryptography 3.8.2 Encrypt-then-MAC versus MAC-then-encrypt 17 yes README.md:1264
34-Cryptography 3.8.3 Key derivation functions 11 README.md:1344
34-Cryptography 3.10 Digital signatures and PKI in one page 7 README.md:1462
35-SSL 2.1 Where TLS sits 14 yes README.md:185
35-SSL 2.3 The two questions, drawn separately 7 yes README.md:284
35-SSL The shape of the exercise 10 yes labs/lab-01-end-to-end-interception.md:79
35-SSL Stage 5 — Route 2: promote the CA to the system store 6 yes labs/lab-01-end-to-end-interception.md:366
35-SSL Why one bad certificate is not enough 9 yes labs/lab-02-deliberate-bad-certificate.md:39
35-SSL Part 0 — The six checks, named precisely 14 yes labs/lab-03-dissecting-validation.md:83
35-SSL The field: what stands between you and the flag 8 yes labs/lab-04-ctf-the-trusted-impostor.md:316
36-CertificatePinning 2.1 The layers 15 yes README.md:199
36-CertificatePinning 2.3 Where the code physically lives 11 yes README.md:303
36-CertificatePinning 7.1 The workflow, in the order that works 11 yes README.md:1767
36-CertificatePinning 1. The failure this lab is designed to give you 9 yes labs/lab-02-defeat-a-two-layer-pin.md:28
36-CertificatePinning 4.1 The topology 10 yes labs/lab-04-ctf-the-pin-that-moved.md:102
37-RootDetection 2.1 What is on the device after rooting 18 yes README.md:174
37-RootDetection 2.2 The detection surface map 16 yes README.md:233
37-RootDetection 2.3 Where a check runs, and why that decides your approach 11 yes README.md:274
37-RootDetection 2.4 The trust boundary, drawn honestly 9 yes README.md:301
37-RootDetection How it works 12 yes README.md:1635
37-RootDetection 7.1 The methodology, before any tool 13 yes README.md:2459
37-RootDetection 9.4 Real application — a banking app's layered posture 9 yes README.md:2871
38-TamperDetection 2.1 The life of a tampered app 17 yes README.md:261
38-TamperDetection 2.2 The five tiers — when each check runs 14 README.md:308
38-TamperDetection 2.4 The detection surface, drawn honestly 16 yes README.md:399
38-TamperDetection 2.5 A decision tree for the first ten minutes 15 yes README.md:445
38-TamperDetection Cross-chapter map 16 mindmap.md:222
39-EmulatorDetection 2.1 Where the signals come from 16 yes README.md:200
39-EmulatorDetection 2.2 The detection surface, by cost to defeat 15 yes README.md:268
39-EmulatorDetection 2.3 The trust boundary, drawn honestly 11 yes README.md:323
39-EmulatorDetection Related chapters 12 yes mindmap.md:176
40-Obfuscation Where obfuscation happens in the build 23 yes README.md:156
40-Obfuscation The attacker's decision tree 12 yes README.md:234
40-Obfuscation 3.3.2 Control-flow flattening — the important one 10 README.md:797
40-Obfuscation 3.3.2 Control-flow flattening — the important one 11 yes README.md:813
40-Obfuscation 3.7.3 The general unpacking methodology 12 yes README.md:1200
40-Obfuscation 3.7.4 Commercial protector families, descriptively 7 README.md:1333
40-Obfuscation 6.1 THE DEOBFUSCATION METHODOLOGY 12 yes README.md:1798
40-Obfuscation Phase 2 — Decide static or dynamic 7 yes README.md:1852
41-ProGuard 2.1 Where the rules file enters the build 19 yes README.md:214
41-ProGuard 2.3 The reachability model — what "keep" actually means 15 yes README.md:325
41-ProGuard 2.4 Trust boundaries, and where the interesting artefacts land 11 yes README.md:401
41-ProGuard 2.5 Where a rules file physically lives 13 README.md:450
41-ProGuard The same material as a decision path 22 yes mindmap.md:154
42-R8 2.1 Where R8 sits in the build 17 yes README.md:137
42-R8 2.3 What comes out, and who is allowed to see it 10 yes README.md:218
43-WebView 2.1 Where everything actually runs 15 yes README.md:212
43-WebView 2.3 The class stack, from the API you type to the code that runs 15 README.md:330
43-WebView 2.4 The certificate-error path, drawn on its own 15 yes README.md:388
43-WebView 2.5 The two network stacks in one app 11 yes README.md:434
44-NetworkSecurityConfig 2.1 From a manifest attribute to a TLS decision 23 README.md:221
44-NetworkSecurityConfig 2.3 Which configuration applies to which host 11 yes README.md:328
45-OAuth The four roles 4 yes README.md:111
45-OAuth 2.1 The complete Android OAuth topology 13 yes README.md:192
45-OAuth 2.2 The trust boundaries, drawn explicitly 16 yes README.md:250
45-OAuth 2.4 Grant-type decision tree 9 yes README.md:324
45-OAuth 3.9 Custom Tabs versus WebView 8 yes README.md:834
45-OAuth id_token versus access_token — the distinction that breaks systems 15 yes README.md:1193
45-OAuth 5.5 How pentesters test it — the methodology in one place 9 README.md:1825
46-Tokens 2.1 The life of a token, end to end 12 yes README.md:267
46-Tokens 2.2 The trust boundaries 16 yes README.md:332
46-Tokens 2.3 The two token shapes, side by side 10 README.md:381
46-Tokens 3.3 Opaque tokens, and why the distinction changes everything 10 yes README.md:650
46-Tokens 7.1 The method, in order 10 README.md:2349
47-Authentication 2.1 The whole picture, and where trust stops 20 yes README.md:252
47-Authentication 3.3 Password handling — where a password comes from, before it reaches a KDF 9 yes README.md:554
47-Authentication 7.1 The order of operations, and why traffic comes first 6 yes README.md:2562
48-Biometrics 2.1 The whole system, once 18 yes README.md:188
48-Biometrics 2.3 Where each authenticator class can and cannot reach 12 yes README.md:324
48-Biometrics 3.8 What actually reaches the TEE — enrolment, matching, and the token 10 yes README.md:846
48-Biometrics 7.1 The three-pass method 12 yes README.md:1786
48-Biometrics 9.4 Real application — a password manager 6 README.md:2388
48-Biometrics 0. The shape of the work 7 labs/lab-03-audit-a-real-app.md:32
49-KeyStore 2.1 The full stack, from your Cipher call to the silicon 23 yes README.md:113
49-KeyStore 2.4 Trust boundaries, drawn explicitly 11 yes README.md:268
49-KeyStore 3.7.3 The chain 5 README.md:534
49-KeyStore 3.7.5 How a server verifies, step by step 20 yes README.md:625
49-KeyStore 7.1 The methodology, as a process 9 README.md:1298
50-HardwareBackedSecurity 2.1 The trust hierarchy, drawn once 18 yes README.md:141
50-HardwareBackedSecurity 2.5 Where the boundaries are, and what crossing each one buys an attacker 12 yes README.md:329
50-HardwareBackedSecurity 3.7.2 How KeyMint checks it 14 yes README.md:706
51-DynamicAnalysis 2.1 The pipeline 20 yes README.md:208
51-DynamicAnalysis 2.2 The nine observation channels, and what each can and cannot see 12 README.md:271
51-DynamicAnalysis 2.5 The trust boundary you are standing on 11 yes README.md:441
51-DynamicAnalysis 3.5.1 The four altitudes 10 yes README.md:1025
51-DynamicAnalysis 7.4 Instrumenting: the decision, not the mechanism 11 yes README.md:2783
52-StaticAnalysis 2.1 The pipeline 22 yes README.md:157
52-StaticAnalysis 2.2 What each view can and cannot see 16 yes README.md:216
52-StaticAnalysis 2.4 The trust boundary you are standing on 8 yes README.md:297
52-StaticAnalysis 7.5 Which tool answers this question? 12 yes README.md:1895
53-Frida 2.1 The whole system, one picture 25 yes README.md:139
53-Frida 2.3 Spawn versus attach 16 yes README.md:275
53-Frida 2.5 The no-root path: frida-gadget 14 yes README.md:367
53-Frida 3.6.1 Interceptor — attach versus replace 18 README.md:793
53-Frida 3.7 Stalker — instruction-level tracing 13 yes README.md:1321
53-Frida 3.9.2 How a Java hook is installed, at the ART level 11 README.md:1538
53-Frida 7.2 The engagement workflow 10 README.md:3096
53-Frida 7.4 The four failure modes, exhaustively 12 yes README.md:3439
53-Frida 7.4.2 Failure 2 — ClassNotFoundException and the ClassLoader problem 5 yes README.md:3598
53-Frida 7.10 The no-root path: frida-gadget 11 yes README.md:4600
54-Objection 2.1 The whole system in one picture 11 yes README.md:180
54-Objection 2.3 One agent, not one script per command 9 README.md:289
54-Objection 3.11 Version skew — the commonest real-world blocker 5 yes README.md:1194
54-Objection 4.1 One command, end to end 16 yes README.md:1254
54-Objection 7.3 The four failure modes, and how to tell them apart 10 yes README.md:1800
55-MobSF 2.1 What happens when you upload an APK 19 yes README.md:339
55-MobSF 2.2 Where MobSF sits inside 52's pipeline 12 yes README.md:402
55-MobSF 2.5 Static and dynamic, as two different machines 12 README.md:565
55-MobSF 2.6 The trust boundary you are standing on 13 yes README.md:597
56-JADX 1.4 The three ways jadx fails 7 yes README.md:255
56-JADX 2.1 Where jadx sits between the build and you 11 yes README.md:324
56-JADX 2.3 The jadx internal pipeline 16 yes README.md:405
56-JADX 2.4 GUI or CLI: a decision, not a preference 4 README.md:444
56-JADX 2.5 Trust boundary: jadx runs attacker-supplied input 9 yes README.md:474
57-Ghidra The decompilation pipeline 13 README.md:158
57-Ghidra Ghidra's process architecture 8 README.md:198
57-Ghidra Where Ghidra sits in the Android RE workflow 9 yes README.md:242
57-Ghidra 3.8 The JNIEnv problem, and how to solve it 8 README.md:662
57-Ghidra 3.9 Finding JNI entry points 9 yes README.md:765
57-Ghidra 7.1 The address arithmetic that connects the two worlds 4 README.md:1825
58-IDA 2.1 The pipeline 11 README.md:241
58-IDA 2.2 The database, and what is actually in it 8 yes README.md:282
58-IDA 2.3 Where IDA sits in an Android workflow 12 yes README.md:334
58-IDA 3.4 Hex-Rays: microcode, and why it is not P-Code 13 README.md:546
58-IDA 3.7 FLIRT — measured, not described 9 yes README.md:837
59-radare2 The library stack 17 README.md:185
59-radare2 The separation that matters: parse versus analyse 5 README.md:256
59-radare2 Where radare2 sits in the Android workflow 10 yes README.md:359
59-radare2 3.2 The command language, taught as a grammar 10 README.md:466
59-radare2 3.6 Analysis levels — aaa and what it actually costs 8 README.md:882
59-radare2 3.14 radare2 versus rizin versus Cutter 6 README.md:1327
59-radare2 7.1 The address arithmetic that connects static to dynamic 7 README.md:2001
59-radare2 How the pieces connect 11 yes mindmap.md:166
59-radare2 The two failure modes, side by side 15 yes mindmap.md:195
60-ADB 2.1 Three programs, not one 15 yes README.md:133
60-ADB 2.4 Where the trust boundaries actually are 11 yes README.md:284
61-Fastboot 2.1 Where fastboot sits relative to everything else 15 yes README.md:199
61-Fastboot 2.4 Two implementations of one protocol 12 README.md:381
61-Fastboot 3.7 Dynamic partitions and the super partition 4 README.md:889
61-Fastboot 9.5 Enterprise — a fleet device-posture pipeline 11 yes README.md:2602
62-Magisk 2.1 Where Magisk sits in the boot chain 21 yes README.md:160
62-Magisk 2.2 The overlay illusion 13 yes README.md:223
62-Magisk 2.4 Zygisk — injection into every app 16 yes README.md:312
63-LSPosed 2.1 The injection chain, end to end 20 yes README.md:249
63-LSPosed 2.3 Four processes, four privilege levels 10 yes README.md:353
63-LSPosed 2.5 Classic Xposed and LSPosed, side by side 10 yes README.md:421
63-LSPosed 3.5 Getting a module's DEX into a foreign process — and the class-loader problem 4 yes README.md:606
63-LSPosed 3.10 The backup method — the trampoline of the managed world 7 yes README.md:873
63-LSPosed 3.13 Timing: the three entry points and what exists at each 12 README.md:986
63-LSPosed Decision: which instrument? 15 mindmap.md:165
63-LSPosed Diagnostic: the hook did not fire 18 yes mindmap.md:196
63-LSPosed The four privilege levels, at a glance 5 yes mindmap.md:229
64-Xposed 2.1 The boot chain classic Xposed inserted itself into 20 yes README.md:313
64-Xposed 2.5 The four things Xposed needed, and when each became impossible 10 yes README.md:490
65-Hooking 2.1 The five places a call can be intercepted 20 yes README.md:167
65-Hooking 2.2 What each hook physically overwrites 11 README.md:211
65-Hooking 2.5 Blast radius: the property that should drive your choice 6 yes README.md:318
65-Hooking The one-diagram version 13 yes mindmap.md:163
66-Instrumentation 2.1 The command path 17 yes README.md:180
67-BypassingProtections 2.1 The five seams 20 yes README.md:190
67-BypassingProtections 2.5 Where the responses live 11 yes README.md:350
67-BypassingProtections The same thing as a decision tree 26 yes mindmap.md:215
68-ReverseEngineering 2.1 The investigation loop 10 README.md:335
68-ReverseEngineering 2.2 The triage funnel, across both halves 12 yes README.md:386
68-ReverseEngineering 2.3 The evidence ladder 6 yes README.md:436
68-ReverseEngineering 2.4 Where the tools sit on the loop 13 README.md:486
68-ReverseEngineering 3.3 Stage 2 — triage in twenty minutes 5 yes README.md:702
68-ReverseEngineering 3.8 Crossing the managed/native boundary as one question 8 README.md:992
69-MalwareAnalysis 2.1 The triage pipeline 22 yes README.md:313
69-MalwareAnalysis 2.4 The analysis environment — what "isolation" means concretely 10 yes README.md:502
69-MalwareAnalysis 2.5 The trust boundary you are standing on 9 yes README.md:548
69-MalwareAnalysis How the chapters connect 17 yes mindmap.md:211
69-MalwareAnalysis The one-page decision tree 12 yes mindmap.md:264
70-VulnerabilityResearch 1.3 A crash is not a bug, and a bug is not a vulnerability 6 yes README.md:147
70-VulnerabilityResearch 2.1 The pipeline 8 README.md:305
70-VulnerabilityResearch 2.2 The Android attack surface, drawn by who can reach what 13 yes README.md:343
70-VulnerabilityResearch 2.3 The funnel, with real numbers 8 README.md:412
70-VulnerabilityResearch The same thing as a decision flow 20 yes mindmap.md:187
71-OWASP-Mobile How the three documents relate 20 README.md:105
71-OWASP-Mobile The verification levels 6 yes README.md:160
71-OWASP-Mobile Where each control area maps in this repository 28 README.md:192
71-OWASP-Mobile Scoping an engagement against the standard 10 README.md:389
71-OWASP-Mobile Step 4 — The composition hunt, specifically 5 yes labs/lab-03-find-the-gap.md:203
72-RealWorldFindings 2.1 The adjudication pipeline 10 yes README.md:184
72-RealWorldFindings 2.2 Where each finding class comes from 14 yes README.md:232
73-Labs 2.1 The corpus as a system 15 yes README.md:164
74-CaseStudies 2.1 The five phases every investigation actually has 9 yes README.md:173
74-CaseStudies 2.2 What each case is really about — the same shape six times 16 yes README.md:205
74-CaseStudies The chapter as a decision procedure 12 yes mindmap.md:158
75-InterviewQuestions 2.1 The pipeline as a system 13 yes README.md:283
76-CheatSheets How the parts fit together 14 yes mindmap.md:112
76-CheatSheets The decision the chapter is built on 6 yes mindmap.md:163
77-UsefulCommands Where your commands actually land 28 yes README.md:89
77-UsefulCommands The privilege ladder 6 README.md:166
78-Diagrams 4.1 The Android security stack, end to end 17 yes README.md:334
78-Diagrams 4.3 Where every chapter sits in the platform 22 README.md:444
78-Diagrams 4.4 The complete trust-boundary map 16 yes README.md:505
78-Diagrams 5.2 Flowchart arrows and node shapes 6 README.md:707
78-Diagrams 6.1 Show the boundary, do not imply it 6 yes README.md:847
78-Diagrams 6.4 Draw the actual flow, not the intended one 8 yes README.md:919
78-Diagrams Version A — the diagram most people draw 5 examples/01-one-system-three-diagrams.md:30
78-Diagrams Version B — the same system with the boundaries drawn 10 yes examples/01-one-system-three-diagrams.md:106
78-Diagrams 3 — A backslash-escaped quote inside a quoted label 3 examples/02-broken-diagrams-and-their-fixes.md:128
78-Diagrams 3 — A backslash-escaped quote inside a quoted label 2 examples/02-broken-diagrams-and-their-fixes.md:135
78-Diagrams 6 — Unquoted parentheses in flowchart node text 3 examples/02-broken-diagrams-and-their-fixes.md:254
78-Diagrams Part 5 — Draw it 15 yes labs/lab-01-boundaries-from-evidence.md:287
78-Diagrams Part 5 — Redraw the diagram with the omission in it 10 yes labs/lab-02-what-the-diagram-omits.md:282
78-Diagrams Part 3 — Draw the actual flow 11 yes labs/lab-03-intended-versus-actual.md:294
78-Diagrams The topology you were given 5 labs/lab-04-ctf-the-cartographers-error.md:178
78-Diagrams Stage 5 — Redraw it 12 yes labs/lab-04-ctf-the-cartographers-error.md:403

mindmap (167)

Chapter Depicts Nodes Atk Location
00-Introduction 13.2 Chapter mind map 1 README.md:3054
00-Introduction (no heading above it) 1 mindmap.md:7
01-Computer-Science-Basics 13.2 Chapter mind map 1 README.md:4774
01-Computer-Science-Basics (no heading above it) 1 mindmap.md:13
02-Linux-Basics 13.2 Chapter mind map 2 README.md:3440
02-Linux-Basics (no heading above it) 4 mindmap.md:5
03-Programming-Fundamentals 2.6 Where each concept in this chapter lands in the Android stack 4 README.md:497
03-Programming-Fundamentals Mind map 1 README.md:5555
03-Programming-Fundamentals (no heading above it) 2 mindmap.md:5
04-Java 13.2 The chapter as a map 1 README.md:2864
04-Java (no heading above it) 0 mindmap.md:8
05-Kotlin Mind map 1 README.md:2572
05-Kotlin (no heading above it) 1 mindmap.md:14
06-Android-Architecture Mind map 1 README.md:3013
06-Android-Architecture (no heading above it) 1 mindmap.md:12
07-AOSP Mind map 1 README.md:3521
07-AOSP (no heading above it) 1 mindmap.md:5
08-Build-System Mind map 1 README.md:4724
08-Build-System (no heading above it) 1 mindmap.md:5
09-Android-App-Internals 13.2 The chapter as one picture 1 README.md:4062
09-Android-App-Internals (no heading above it) 1 mindmap.md:11
10-APK-Internals Mind map 1 README.md:2271
10-APK-Internals (no heading above it) 1 mindmap.md:9
11-Android-Runtime Mind map 1 README.md:2722
11-Android-Runtime (no heading above it) 1 mindmap.md:13
12-DEX-Internals Mind map 1 README.md:3340
12-DEX-Internals (no heading above it) 1 mindmap.md:13
13-ART Mind map 1 README.md:2417
13-ART (no heading above it) 1 mindmap.md:10
14-Dalvik Mind map 1 README.md:3990
14-Dalvik (no heading above it) 1 mindmap.md:6
15-Native-Code 13.2 Chapter mind map 1 README.md:3311
15-Native-Code (no heading above it) 1 mindmap.md:6
16-JNI Mind map 1 README.md:3913
16-JNI (no heading above it) 1 mindmap.md:6
17-Libraries Mind map 4 README.md:2995
17-Libraries (no heading above it) 1 mindmap.md:5
18-ARM 13.2 Mind map 1 README.md:3592
18-ARM (no heading above it) 1 mindmap.md:5
19-Memory 13.2 Mind map 1 README.md:2968
19-Memory (no heading above it) 1 mindmap.md:6
20-Security-Architecture 13.2 Mind map 1 README.md:2080
20-Security-Architecture (no heading above it) 1 mindmap.md:3
21-App-Sandbox 13.2 Mindmap 1 README.md:3515
21-App-Sandbox (no heading above it) 1 mindmap.md:15
22-SELinux 13.2 Mind map 1 README.md:3479
22-SELinux (no heading above it) 1 mindmap.md:5
23-Permissions 13.2 Mind map 1 README.md:3562
23-Permissions (no heading above it) 1 mindmap.md:8
24-IPC Mind map 1 README.md:4090
24-IPC (no heading above it) 1 mindmap.md:3
25-Binder 13.2 Mind map 2 README.md:3579
25-Binder (no heading above it) 3 mindmap.md:6
26-Intent 5.1 The taxonomy 1 README.md:1575
26-Intent 13.2 Mind map 3 README.md:3158
26-Intent (no heading above it) 1 mindmap.md:6
27-ContentProviders Mind map 2 README.md:3755
27-ContentProviders (no heading above it) 1 mindmap.md:3
28-Services Mind map 2 README.md:3629
28-Services (no heading above it) 1 mindmap.md:7
29-BroadcastReceivers 5.1 The taxonomy 1 README.md:1521
29-BroadcastReceivers 13.2 Mind map 1 README.md:3118
29-BroadcastReceivers (no heading above it) 3 mindmap.md:6
30-Activities The chapter as one map 1 README.md:3300
30-Activities (no heading above it) 1 mindmap.md:6
31-Fragments The chapter as one map 4 README.md:2660
31-Fragments (no heading above it) 16 mindmap.md:7
32-Manifest Mind map 1 README.md:3194
32-Manifest (no heading above it) 1 mindmap.md:11
33-Storage 13.2 Mind map 1 README.md:2520
33-Storage (no heading above it) 2 mindmap.md:7
34-Cryptography Mind map 1 README.md:3977
34-Cryptography (no heading above it) 1 mindmap.md:10
35-SSL 13.2 The chapter as a map 1 README.md:2620
35-SSL (no heading above it) 1 mindmap.md:14
36-CertificatePinning 13.2 Mind map 1 README.md:3105
36-CertificatePinning (no heading above it) 1 mindmap.md:6
37-RootDetection Mind map 1 README.md:3220
37-RootDetection (no heading above it) 2 mindmap.md:15
38-TamperDetection Mind map 1 README.md:2665
38-TamperDetection (no heading above it) 2 mindmap.md:6
39-EmulatorDetection Mind map 1 README.md:2750
39-EmulatorDetection (no heading above it) 1 mindmap.md:7
40-Obfuscation Mind map 1 README.md:2866
40-Obfuscation (no heading above it) 2 mindmap.md:20
41-ProGuard Mind map 5 README.md:3156
41-ProGuard (no heading above it) 5 mindmap.md:8
42-R8 Mind map 1 README.md:2361
42-R8 (no heading above it) 1 mindmap.md:5
43-WebView 13.2 The chapter as a map 1 README.md:3259
43-WebView (no heading above it) 2 mindmap.md:6
44-NetworkSecurityConfig 13.2 The chapter as a map 1 README.md:3073
44-NetworkSecurityConfig (no heading above it) 2 mindmap.md:5
45-OAuth Mind map 1 README.md:3449
45-OAuth (no heading above it) 1 mindmap.md:6
46-Tokens 13.2 Mind map 1 README.md:3464
46-Tokens (no heading above it) 3 mindmap.md:8
47-Authentication 13.2 Mind map 1 README.md:3509
47-Authentication (no heading above it) 1 mindmap.md:5
48-Biometrics 13.2 Mind map 3 README.md:2797
48-Biometrics (no heading above it) 1 mindmap.md:6
49-KeyStore 13.2 Mindmap 1 README.md:1737
49-KeyStore (no heading above it) 1 mindmap.md:15
50-HardwareBackedSecurity 13.2 The chapter as a map 1 README.md:2168
50-HardwareBackedSecurity (no heading above it) 1 mindmap.md:6
51-DynamicAnalysis 13.2 Mind map 1 README.md:3768
51-DynamicAnalysis (no heading above it) 1 mindmap.md:8
52-StaticAnalysis 13.2 Mind map 1 README.md:2964
52-StaticAnalysis (no heading above it) 1 mindmap.md:7
53-Frida Mind map 1 README.md:5992
53-Frida (no heading above it) 2 mindmap.md:12
54-Objection 13.2 Mind map 1 README.md:2544
54-Objection (no heading above it) 1 mindmap.md:6
55-MobSF 13.2 The chapter as a mind map 1 README.md:3646
55-MobSF (no heading above it) 1 mindmap.md:3
56-JADX Mind map 1 README.md:4122
56-JADX (no heading above it) 1 mindmap.md:8
57-Ghidra Mind map 1 README.md:3201
57-Ghidra (no heading above it) 1 mindmap.md:12
58-IDA Mind map 1 README.md:2397
58-IDA (no heading above it) 1 mindmap.md:5
59-radare2 Mind map 1 README.md:2922
59-radare2 (no heading above it) 1 mindmap.md:5
60-ADB Mind map 3 README.md:2974
60-ADB (no heading above it) 3 mindmap.md:6
61-Fastboot 13.2 The chapter as a map 1 README.md:2975
61-Fastboot (no heading above it) 1 mindmap.md:6
62-Magisk Mind map 1 README.md:2139
62-Magisk (no heading above it) 1 mindmap.md:3
63-LSPosed 13.2 Mind map 1 README.md:2884
63-LSPosed The chapter 1 mindmap.md:11
64-Xposed 13.2 Mind map 2 README.md:3027
64-Xposed (no heading above it) 1 mindmap.md:13
65-Hooking 13.2 Mind map 1 README.md:2449
65-Hooking (no heading above it) 2 mindmap.md:6
66-Instrumentation 13.2 Mind map 1 README.md:2402
66-Instrumentation (no heading above it) 1 mindmap.md:6
67-BypassingProtections 13.2 Mind map 1 README.md:2829
67-BypassingProtections (no heading above it) 1 mindmap.md:6
68-ReverseEngineering 13.2 The chapter as one picture 1 README.md:2871
68-ReverseEngineering (no heading above it) 1 mindmap.md:12
69-MalwareAnalysis 13.2 Mind map 1 README.md:3030
69-MalwareAnalysis (no heading above it) 1 mindmap.md:10
70-VulnerabilityResearch The chapter as a map 1 README.md:3130
70-VulnerabilityResearch (no heading above it) 1 mindmap.md:5
71-OWASP-Mobile Mind map 1 README.md:830
71-OWASP-Mobile The whole standard, in one tree 1 mindmap.md:15
72-RealWorldFindings 13.2 Mind map 1 README.md:1871
72-RealWorldFindings (no heading above it) 1 mindmap.md:7
73-Labs 13.2 Mind map 1 README.md:1360
73-Labs (no heading above it) 2 mindmap.md:6
74-CaseStudies 13.2 Mind map 3 README.md:2065
74-CaseStudies (no heading above it) 1 mindmap.md:6
75-InterviewQuestions Mind map 1 README.md:2687
75-InterviewQuestions (no heading above it) 1 mindmap.md:8
76-CheatSheets Mind map 1 README.md:878
76-CheatSheets (no heading above it) 1 mindmap.md:6
77-UsefulCommands Mind map 1 README.md:1296
77-UsefulCommands (no heading above it) 1 mindmap.md:3
78-Diagrams Mind map 1 README.md:1164
78-Diagrams (no heading above it) 1 mindmap.md:5
78-Diagrams 2 — Unquoted parentheses or brackets in mindmap text 3 examples/02-broken-diagrams-and-their-fixes.md:92
78-Diagrams 2 — Unquoted parentheses or brackets in mindmap text 1 examples/02-broken-diagrams-and-their-fixes.md:101
78-Diagrams 7 — A mindmap leaf whose text starts with a diagram-type keyword 1 examples/02-broken-diagrams-and-their-fixes.md:283
78-Diagrams 7 — A mindmap leaf whose text starts with a diagram-type keyword 3 examples/02-broken-diagrams-and-their-fixes.md:293
79-Glossary Mind map 1 README.md:845
80-Appendix Mind map 1 README.md:630

sequence (156)

Chapter Depicts Nodes Atk Location
00-Introduction 2.3 What a typical engagement looks like as a sequence 5 README.md:320
01-Computer-Science-Basics 2.4 The lifetime of one instruction 8 README.md:361
01-Computer-Science-Basics 3.13 fork, exec, and why Zygote exists 4 README.md:1469
01-Computer-Science-Basics 3.13.1 Zygote: fork without exec 4 README.md:1558
01-Computer-Science-Basics 3.19 System calls 4 README.md:2378
01-Computer-Science-Basics 3.25 Static versus dynamic linking 5 README.md:2967
01-Computer-Science-Basics 4.2 Trace one: open() in Java reaches the kernel 6 README.md:3121
01-Computer-Science-Basics 4.3 Trace two: an app process is born 6 README.md:3161
02-Linux-Basics 2.2 Process creation: what actually happens when you type ls 5 README.md:190
02-Linux-Basics How an app gets its UID: the install flow 5 README.md:730
02-Linux-Basics Android's twist: Zygote instead of fork+exec 5 README.md:1075
02-Linux-Basics Signals and debugging — the part that matters for Android RE 3 README.md:1374
02-Linux-Basics 4.4 Tracing one complete path: File.exists() down to the kernel 6 README.md:2439
03-Programming-Fundamentals 3.18.1 Pure interpretation 3 README.md:2898
03-Programming-Fundamentals 4.3 The intern table — art/runtime/intern_table.cc and intern_table.h 4 README.md:3315
04-Java 2.4 The lifecycle of a single method call 4 README.md:351
04-Java Why attackers love reflection 4 yes README.md:1053
04-Java 4.3 What setAccessible(true) actually does 5 README.md:1513
05-Kotlin 2.4 The lifecycle of a suspend function call 4 README.md:316
05-Kotlin 4.4 Tracing one call end to end 6 README.md:1324
06-Android-Architecture 3.7.1 The full sequence 17 README.md:984
06-Android-Architecture 3.8.2 fork() without exec() — what that actually means 5 README.md:1540
07-AOSP 3.6 AIDL, and why every trace goes through it 5 README.md:827
07-AOSP 4.1 Trace A — Context.startActivity(), from your code to the kernel and back 12 README.md:1274
08-Build-System 3.7 Gradle: the three phases 6 README.md:873
08-Build-System Play App Signing 3 README.md:1508
08-Build-System 4.4 Trace 2 — from certificate: "platform" to a signed APK on the image 7 README.md:2048
09-Android-App-Internals 3.7 The install flow, end to end 9 README.md:814
09-Android-App-Internals 3.13 Zygote: how a process comes into existence 5 README.md:1239
09-Android-App-Internals 3.14 ActivityThread.main() and the bootstrap order 8 README.md:1323
10-APK-Internals Janus — CVE-2017-13156 4 README.md:1133
10-APK-Internals Scenario A — repackaging a banking app for a third-party store 4 README.md:1310
11-Android-Runtime 2.4 Zygote: preload once, fork many 5 README.md:723
11-Android-Runtime 3.2 Profile-guided compilation and Cloud Profiles 6 README.md:1065
11-Android-Runtime 3.8 Parent delegation and what it protects 6 README.md:1400
11-Android-Runtime 3.15 Deoptimization and why hooking frameworks depend on it 4 README.md:1890
12-DEX-Internals 4.1 Trace — how the runtime opens a DEX file 5 README.md:2686
13-ART 3.8 dex2oat: when it runs and what it does 4 README.md:773
13-ART 3.17 Method entrypoint patching: the mechanism behind ALL Java hooking 4 README.md:1119
14-Dalvik 2.5 The trace JIT 4 README.md:545
15-Native-Code 2.3 What System.loadLibrary sets in motion 6 README.md:311
16-JNI 2.2 The life of a native call, end to end 6 README.md:344
16-JNI 3.22 The managed-to-native transition inside ART 6 README.md:2052
17-Libraries How a library gets into a process 5 README.md:253
18-ARM 6.1 The path from Java down to the instruction 5 README.md:2541
19-Memory 2.3 The Zygote's consequence for address-space layout 4 README.md:255
20-Security-Architecture 2.3 The boot-time sequence 7 README.md:215
20-Security-Architecture How the key is actually derived 7 README.md:568
20-Security-Architecture Where the trust actually sits — the only paragraph that matters 4 yes README.md:693
21-App-Sandbox 2.3 UID assignment at install time 6 README.md:217
21-App-Sandbox 2.4 Process creation — where the sandbox is actually installed 5 README.md:253
21-App-Sandbox How it works, step by step 4 README.md:1040
22-SELinux 2.3 Boot: how the policy gets loaded, and why the order matters 6 README.md:217
22-SELinux The full sequence, with the syscalls named 6 README.md:584
22-SELinux 3.15 Binder and service_manager: a two-stage MAC decision 4 README.md:1607
23-Permissions 2.3 The two enforcement points 5 README.md:302
23-Permissions The flow 5 README.md:1319
23-Permissions 4.3 From <permission> in XML to a decision at install 6 README.md:2023
24-IPC 2.3 A concrete request, end to end 5 README.md:304
24-IPC 3.20.1 The Android worked example 4 README.md:1804
25-Binder 2.2 One transaction, as a sequence 5 README.md:231
25-Binder 3.12.2 Why the thread pool makes it dangerous 3 README.md:1336
26-Intent 2.2 The delivery path, end to end 7 README.md:197
26-Intent How verification works 4 README.md:1110
26-Intent The exploit 4 README.md:1690
26-Intent Background: why this is a privilege escalation and not a routing bug 4 labs/lab-01-intent-redirection.md:60
26-Intent Background: request versus state 4 labs/lab-03-applink-verification.md:45
27-ContentProviders 3.6 URI permissions: the temporary grant system 3 README.md:522
28-Services 2.2 One bindService call, end to end 5 README.md:248
29-BroadcastReceivers 2.4 What actually happens on the wire, in order 7 README.md:409
30-Activities 2.2 What actually happens when you call startActivity 6 README.md:206
30-Activities 3.9 Tapjacking — a different subsystem entirely 4 README.md:860
30-Activities 3.10 The result channel 2 README.md:948
30-Activities The intended mechanism 5 README.md:1352
31-Fragments 2.4 The injection, end to end 5 README.md:322
32-Manifest Task hijacking, precisely 4 README.md:737
32-Manifest 4.2 From bytes to PackageInfo 6 README.md:1529
33-Storage 2.3 What the same file looks like from three vantage points 5 README.md:290
34-Cryptography 2.3 The JCA call flow, end to end 7 README.md:300
34-Cryptography 3.3.3 The padding oracle attack — explained in full 2 README.md:630
34-Cryptography 3.6.3 Diffie–Hellman and ECDH — the colour-mixing analogy 3 README.md:1045
35-SSL 2.2 The handshake, as a conversation 2 README.md:239
35-SSL 3.2.3 What an intercepting proxy actually does 3 README.md:534
36-CertificatePinning 2.2 Order of operations for one connection 7 README.md:261
37-RootDetection The arms race, drawn 4 README.md:1853
37-RootDetection 4.1 File.exists() → faccessat syscall 7 README.md:2041
37-RootDetection 4.3 PackageManager.getPackageInfo across Binder 5 README.md:2144
38-TamperDetection 2.3 Where a self-signature check gets its answer 5 README.md:358
39-EmulatorDetection 5.8 The correct architecture 4 README.md:1635
40-Obfuscation The runtime picture: what a packed app does at process start 6 README.md:263
40-Obfuscation 4.3 The framework side — how a packer's stub gets control 5 README.md:1634
42-R8 2.2 The four phases inside R8 6 README.md:181
43-WebView 2.2 A page load, from loadUrl to pixels 7 README.md:275
44-NetworkSecurityConfig 2.2 Answering one question: "may I connect to this host, and whom do I trust for it?" 6 README.md:288
45-OAuth 3.2 Grant type 1 — Authorisation Code (without PKCE) 5 README.md:393
45-OAuth 3.3 Grant type 2 — Authorisation Code with PKCE (the correct choice) 4 README.md:440
45-OAuth 3.4 Grant type 3 — Implicit (dead, and why) 4 README.md:554
45-OAuth 3.5 Grant type 4 — Resource Owner Password Credentials (ROPC) (dead, and why apps still ship it) 3 README.md:602
45-OAuth 3.6 Grant type 5 — Client Credentials 2 README.md:661
45-OAuth 3.7 Grant type 6 — Device Authorization Grant (RFC 8628) 4 README.md:702
45-OAuth 3.8 Grant type 7 — Refresh Token 3 README.md:756
45-OAuth 3.10.1 Custom URI schemes — and scheme hijacking 5 yes README.md:960
45-OAuth 3.11 The state parameter, and CSRF 3 yes README.md:1098
45-OAuth 3.13 Pushed Authorization Requests and other hardening 3 README.md:1293
45-OAuth 4.1 The redirect's journey through the platform 6 README.md:1414
45-OAuth Attack 5 — Mix-up attacks 4 yes README.md:1694
45-OAuth Attack 6 — "Sign in with X" backend token confusion 5 README.md:1726
46-Tokens 3.9 Refresh tokens: rotation and reuse detection 3 README.md:942
46-Tokens DPoP (RFC 9449) 4 README.md:1095
47-Authentication 2.2 The login sequence, with the transport on every arrow 6 README.md:322
47-Authentication 3.5 The autofill framework — a third party is offered your password field 4 README.md:764
47-Authentication 3.6 Credential Manager and passkeys 5 README.md:861
47-Authentication 4.1 The account stack 5 README.md:1296
48-Biometrics 2.2 The successful path, in order 7 README.md:260
49-KeyStore 2.2 The lifecycle of one key, as a sequence 5 README.md:179
50-HardwareBackedSecurity 2.4 From PIN to permitted operation: the whole chain in one sequence 6 README.md:271
51-DynamicAnalysis 2.4 The other half of the loop 3 README.md:390
53-Frida 2.2 The injection sequence, step by step 6 README.md:217
53-Frida 2.4 The message channel 6 README.md:330
53-Frida 7.4.4 Failure 4 — attaching instead of spawning 5 README.md:3885
54-Objection 2.2 What happens when you type the command 6 README.md:237
55-MobSF 2.4 The REST API, as a conversation 3 README.md:518
56-JADX 7.1 The read-hook-verify loop 4 README.md:2805
57-Ghidra 3.15 The Ghidra debugger against an Android target 5 README.md:1189
58-IDA 3.9 The debugger and android_server 5 README.md:935
60-ADB 2.2 The handshake, message by message 2 README.md:195
60-ADB 3.14 adb install is three streams — the transport half 3 README.md:1222
61-Fastboot 2.2 The three-legged transaction that every fastboot operation is built from 2 README.md:262
61-Fastboot 3.6 fastbootd — userspace fastboot, and why it had to exist 4 README.md:765
61-Fastboot 3.9 The factory-reset guarantee 3 README.md:1034
61-Fastboot 4.2 Tracing one complete path: fastboot flash system system.img 7 README.md:1300
62-Magisk 2.3 The su request flow 5 README.md:267
63-LSPosed 2.2 One app launch, as a sequence 7 README.md:310
64-Xposed 2.2 One app launch, as a sequence 6 README.md:371
65-Hooking 2.3 The anatomy of an inline hook 4 README.md:242
66-Instrumentation 2.2 The Binder sequence, with the ordering that matters 7 README.md:232
67-BypassingProtections 2.2 The same picture as a sequence, with the timing that matters 6 README.md:241
68-ReverseEngineering 3.5 Stage 4 — hypothesis, prediction, experiment, verdict 3 README.md:793
68-ReverseEngineering 4.5 Tracing one question from Java to the kernel 5 README.md:1547
69-MalwareAnalysis 2.3 The lifecycle of a mobile malware campaign 5 README.md:448
70-VulnerabilityResearch 2.4 Where a crash comes from and where it goes 5 README.md:442
70-VulnerabilityResearch 4.4 Tracing one path from untrusted input to a parser 5 yes README.md:1361
73-Labs 2.2 How the index is produced 4 README.md:208
74-CaseStudies 2.3 Where the evidence for one case comes from 5 README.md:253
75-InterviewQuestions 2.2 One round, end to end 4 README.md:342
78-Diagrams 4.2 The boot chain, hardware root of trust to app code 6 README.md:398
78-Diagrams 4.5 One Binder call, across every boundary 5 README.md:567
78-Diagrams 5.3 Sequence arrows — the four you must tell apart 2 README.md:734
78-Diagrams Version C — the same system as a sequence 6 examples/01-one-system-three-diagrams.md:194
78-Diagrams 1 — A semicolon in message or label text 2 examples/02-broken-diagrams-and-their-fixes.md:47
78-Diagrams 1 — A semicolon in message or label text 2 examples/02-broken-diagrams-and-their-fixes.md:56
78-Diagrams 4 — style inside a sequenceDiagram 2 examples/02-broken-diagrams-and-their-fixes.md:165
78-Diagrams 4 — style inside a sequenceDiagram 2 examples/02-broken-diagrams-and-their-fixes.md:177
78-Diagrams 5 — A participant id that collides with a keyword 2 examples/02-broken-diagrams-and-their-fixes.md:220
78-Diagrams Part 1 — Draw the intended flow, before measuring 4 labs/lab-03-intended-versus-actual.md:80
78-Diagrams Part 3 — Draw the actual flow 5 labs/lab-03-intended-versus-actual.md:275

state (36)

Chapter Depicts Nodes Atk Location
00-Introduction 2.4 The learning state machine 0 README.md:356
01-Computer-Science-Basics 3.6 What a CPU does: fetch, decode, execute 0 README.md:903
01-Computer-Science-Basics 3.12 Processes: address space, PID, and the process control block 6 README.md:1405
02-Linux-Basics fork(), execve(), wait(), exit() — the process lifecycle 7 README.md:1051
03-Programming-Fundamentals 3.18.4 JIT — compiling at run time 0 README.md:2982
09-Android-App-Internals 2.3 The lifetime of an app, end to end 6 README.md:321
13-ART 2.4 The three execution modes, compared 0 README.md:320
18-ARM 2.2 The execution states, and why a phone has three 4 README.md:239
20-Security-Architecture From FDE to FBE 2 README.md:542
27-ContentProviders 3.11 Provider lifecycle and process behaviour 4 README.md:816
28-Services 2.3 The lifecycle, as a state machine 9 README.md:294
29-BroadcastReceivers 2.5 The life of one broadcast, as a state machine 6 README.md:463
30-Activities 3.1 The lifecycle, and which parts an attacker controls 8 README.md:329
31-Fragments 3.1 The Fragment lifecycle, and the four ways it differs from an Activity's 10 README.md:369
33-Storage 2.4 The lifecycle of a byte 3 README.md:343
35-SSL 2.5 The trust decision, as a state machine 0 README.md:372
36-CertificatePinning 2.4 The decision tree you are actually walking 0 README.md:344
41-ProGuard 2.2 ProGuard's four phases, and R8's one 0 README.md:273
41-ProGuard The rules-writing loop 0 mindmap.md:203
42-R8 2.4 The compatibility-mode split 1 README.md:250
47-Authentication 2.3 The session lifecycle as a state machine 3 README.md:385
50-HardwareBackedSecurity 3.2 ARM TrustZone mechanics 0 README.md:414
51-DynamicAnalysis 2.3 The life of an observation 0 README.md:338
52-StaticAnalysis 2.3 The life of a lead 0 README.md:258
61-Fastboot 2.3 The lock-state machine — the most important diagram in this chapter 3 README.md:313
61-Fastboot 3.2 The wire protocol: five prefixes and nothing else 2 README.md:527
63-LSPosed 3.7 XC_MethodHook — the lifecycle, precisely 4 README.md:736
66-Instrumentation 2.4 The lifecycle as a state machine 4 README.md:328
67-BypassingProtections 2.4 The escalation ladder, drawn 3 README.md:309
68-ReverseEngineering 2.5 The state of a question 0 README.md:537
69-MalwareAnalysis 3.8 Persistence hook 3 — services, watchdogs and the platform's counter-moves 0 README.md:987
73-Labs 2.4 The lifecycle of one lab attempt 0 README.md:263
75-InterviewQuestions 2.3 The state machine of a single answer 0 README.md:396
78-Diagrams 4.6 The engagement, static through dynamic to reporting 0 README.md:606
78-Diagrams 4.7 The device-state machine an engagement moves through 0 README.md:649
78-Diagrams 5.4 State and class notation 0 README.md:765

block layout (28)

Chapter Depicts Nodes Atk Location
01-Computer-Science-Basics 2.2 What one function call actually costs 12 README.md:275
01-Computer-Science-Basics 2.3 A process's address space 13 README.md:313
01-Computer-Science-Basics 3.16 The stack, in full 15 README.md:1798
01-Computer-Science-Basics 3.23 ELF: the container for all native code 15 README.md:2763
01-Computer-Science-Basics Part C — Reading /proc/<pid>/maps 13 labs/lab-02-processes-memory-maps.md:355
01-Computer-Science-Basics Part B — Read the prologue and epilogue 10 labs/lab-03-stack-frames-and-overflow.md:299
03-Programming-Fundamentals 3.1 Variables and memory — what a variable actually is 13 README.md:584
04-Java 2.3 The runtime picture: where a Java object actually lives 8 README.md:315
08-Build-System 2.5 Where each artefact ends up 16 README.md:465
11-Android-Runtime 2.5 Copy-on-write and what it costs you as an attacker 8 README.md:798
11-Android-Runtime 3.14 JIT hardening, W^X, and CFI 6 README.md:1821
12-DEX-Internals 2.1 The whole file at a glance 22 README.md:251
12-DEX-Internals 2.4 Where DEX sits inside an APK 10 README.md:435
12-DEX-Internals 3.2 header_item field by field 23 yes README.md:568
15-Native-Code 2.2 The two tables, and who reads which 12 README.md:276
20-Security-Architecture 2.4 Where each control lives in the stack 22 README.md:250
21-App-Sandbox 2.5 The filesystem, drawn 12 README.md:293
40-Obfuscation Layer map: what protects what 9 README.md:303
45-OAuth 2.3 Where the pieces live on the device 10 README.md:291
46-Tokens 2.4 Where a token can be on an Android device 11 README.md:435
47-Authentication 2.4 Where the credential physically lives 7 yes README.md:447
48-Biometrics 2.4 Trust boundaries, drawn honestly 6 yes README.md:377
53-Frida 3.3 What lives inside the agent 9 README.md:597
56-JADX 2.2 The information-loss ladder 13 README.md:373
64-Xposed 2.3 What a classic install physically wrote to disk 11 yes README.md:415
69-MalwareAnalysis 2.2 The capability stack — what an installed app can actually reach 16 yes README.md:384
72-RealWorldFindings 2.3 The severity funnel, drawn to scale 6 README.md:279
73-Labs 2.3 The lab environment, as a stack 12 README.md:245

class (12)

Chapter Depicts Nodes Atk Location
04-Java 2.2 What lives inside a class file 4 README.md:265
04-Java 3.8 The collections framework 3 README.md:777
05-Kotlin 2.2 What the compiler adds to a class 6 README.md:235
11-Android-Runtime 3.7 The ClassLoader hierarchy on Android 10 README.md:1297
13-ART 2.6 The object graph inside libart 7 README.md:386
16-JNI 2.5 The reference tables, drawn 5 README.md:488
26-Intent 2.1 What an Intent actually is, as a shape 3 README.md:152
31-Fragments 2.2 Two Fragment implementations, and why an app has both 4 README.md:222
34-Cryptography 3.11.1 The provider model 11 README.md:1500
44-NetworkSecurityConfig 2.4 The object graph, at runtime 11 README.md:369
55-MobSF 2.3 The report, as a data structure 8 README.md:447
78-Diagrams 5.4 State and class notation 2 README.md:781