Skip to Content
mobsec

Pentest checklist (mapped to this rig)

This is the HackTricks/OWASP-MASTG Android checklist, rewritten as "which command in this rig does that, and where does it stop working". Use it so you do not reinvent steps — and so you do not claim coverage the emulator cannot give you.

Legend: ✔ a command does it · ~ partial, read the note · ✘ impossible or pointless here.

1. Before you install anything (static)

CheckCommand
What is it, who signed it, which SDKsrecon app.apk✔
Obfuscation / packer / anti-VM hintsrecon → Packers section (apkid)✔
APKiD says anti_vm / anti_debugverify by hand in jadx — it fires on Google/Firebase/Material library code~
Secrets, API keys, endpoints in DEX/resourcesrecon --deep, then apkleaks section✔
Rule-based SAST (Weak crypto, WebView, backup flags…)recon → mobsfscan✔
Manifest triage: exported components, deep links, allowBackup, dataExtractionRules, networkSecurityConfig, usesCleartextTraffic, debuggablerecon (summary) + entry (attack sheet)✔
App Links / assetlinks.jsonentry → "App links on this device"✔
Native libs + CVEsapkanalyzer apk summary, unzip -l; CVE mapping by hand~
Cross-platform framework (Flutter/RN/Tauri/Cordova)find lib/ -name '*.so'; Tauri = libapp_lib.so + remote web UI✔
Decompile for source reviewjadx-gui app.apk (or apktool d)✔
Sideloaded/store differencescompare APKs from Play vs vendor — Play App Signing changes the signing key~

2. Install and get it running

CheckCommand
Get past root/emulator detectionfspawn <pkg> intercept (HTTP Toolkit set: root detection off, pinning off, proxy overridden)✔
Get past key attestationsetup-keybox.sh / keybox-refresh, target listed in /data/adb/tricky_store/target.txt✔
Get past Play Integritysee Play Integrity — not passable on an emulator✘
Force the app to talk to younettap on (proxy + reverse + addon), then use the app✔
Launch an exported activity/service/receiverentry <pkg> --run✔
See what it does with a URLentry <pkg> --only links✔

3. Runtime: storage

CheckCommand
Private dir, sqlite, prefs, webview storepull-data <pkg> (--sql, --grep)✔
What is actually in the databasessqlite3 ~/.mobsec/data/<pkg>/…/foo.db .dump✔
Session/refresh tokens at restpull-data --grep token → then decrypt by hand if needed✔
Keystore-backed keysfspawn <pkg> attest (20-keystore.js dumps subject/issuer of generated chains)✔
"Keystore is hardware-backed" claimKeyAttestation app → see Attestation✔
adb backup extractionblocked on API 31+ unless the app opts in; use pull-data instead~
External storage / shared prefspull-data also pulls /sdcard/Android/data/<pkg>✔

4. Runtime: network

CheckCommand
Full request set, decryptednettap on + flows (files in /tmp/mtflows, index in _index.jsonl)✔
Pinningfspawn <pkg> intercept✔
Proxy-unaware / native trafficsame profile (in-process proxy override)✔
WebSocket / GraphQL over WSflows capture the handshake; cdp watch shows app-side messages~
Edit and re-send a requestreplay --grep PATH --patch 'field=value'✔
IDOR / authz testingsnap list → clone the AVD, log in as user B (ANDROID_SERIAL), replay user A's requests~
MQTT/gRPC/QUIC/bluetoothnothing here terminates those; check the app's protocol first✘

5. Runtime: WebView / hybrid apps

CheckCommand
DOM, localStorage, sessionStorage, cookiesfdp then cdp eval 'location.href' / session harvest✔
Console + network of the web layercdp watch 30✔
addJavascriptInterface bridgesfspawn <pkg> web shows console; grep the bundle for the bridge name~
Client-side authz enforced in JSread the bundle: grep -o 'plugin:[^"]*' *.js finds Tauri/Electron IPC commands✔
Deep links into the web layerentry + cdp eval 'location.href="/route"'✔

6. Runtime: components and injection

CheckCommand
Exported components reachable, permission NOT enforcedentry <pkg> --run, watch logcat✔
Content provider data leakentry provider lines (content query --uri …) — note exported=false + grantUriPermissions=true needs a grant~
Task hijacking / StrandHoggneeds a real launcher and a second malicious app — out of scope for this rig✘
Tapjacking / overlay attacksneeds overlay permissions and a real UI; emulator OK but no template here✘
Dynamic instrumentationfspawn <pkg> trace|attest|web|spy✔
Root/emulator checks firingfspawn <pkg> trace → 30-rootcheck.js prints each path/API queried✔

7. Server side (where the money usually is)

CheckCommand
Endpoint inventoryflows index + recon --deep endpoints, diffed✔
Authz: object ownershipreplay with another user's ids✔
Mass assignment / field injectionreplay --patch✔
Rate limits / lockoutreplay in a loop, watch status codes✔
MFA weaknessessession harvest → inspect /auth/session-style endpoints for seeds/tokens✔
Logout / session invalidationreplay the logout, then reuse the cookie✔

8. What this rig cannot tell you

  • Anything hardware-backed that you did not spoof: sensors, Secure Element, StrongBox, real TEE behaviour.
  • Play Integrity verdicts (why).
  • Bluetooth, NFC, USB, SIM/telephony behaviour.
  • OEM-specific bugs (the emulator is AOSP + Google image, no vendor blobs).
  • Performance/timing side channels that depend on real CPU and memory pressure.
  • Whether a leaked key matters — that is a server-side validation question, and the answer changes per target.

Reporting habit

For every finding, keep the evidence triple: the flow file (/tmp/mtflows/…txt), the replay command that reproduces it, and the app state (which snap image, which user, which Frida profile). _index.jsonl plus a one-line replay command is the cheapest possible repro packet.

On this page