Module 22 · Mobile Application Security · Lesson 66 of 75
Dynamic testing, insecure storage and managing company phones
Intercept app traffic with a proxy, understand certificate pinning and Frida, check what the app leaves on the device, and protect company phones with MDM.
In this lesson · about 40 minutes
- Route app traffic through Burp Suite or ZAP on a test device
- Explain certificate pinning and runtime instrumentation
- Check data storage and logs, and describe MDM controls
Intercepting traffic
- Run Burp Suite or ZAP and set the test phone or emulator's Wi-Fi proxy to it.
- Install the proxy's CA certificate. Modern Android apps only trust system certificates by default, so testers use a rooted emulator or a debug build with a network security config that trusts user certificates.
- Use the app and test its API exactly as in Module 12: change IDs (IDOR), amounts, roles, and replay requests.
Certificate pinning
The app only accepts the server's own certificate or key, not any trusted CA, so a proxy (or an attacker with a rogue CA) cannot read the traffic. Testers bypass pinning in the lab with Frida (a runtime instrumentation toolkit that injects JavaScript into the app's process to change functions as they run) or objection (built on Frida, with commands such as disabling pinning or root detection). Pinning is a useful layer, but the API must be secure even if someone sees the traffic.
Insecure data storage
On a test device, look in /data/data/<package>/ (Android) or the app container (iOS) for:
shared_prefs/*.xmlandNSUserDefaultsplists with tokens or personal data.- SQLite databases (
databases/*.db) with unencrypted records. - Cached files, screenshots taken when the app goes to the background, and the clipboard.
- Logs:
adb logcatshowing tokens, card numbers or full API responses.
Fixes: Keystore/Keychain for secrets, EncryptedSharedPreferences or SQLCipher, no sensitive logging in release builds, FLAG_SECURE to block screenshots of sensitive screens.
Protecting company phones
- MDM / UEM (Intune, Jamf, Workspace ONE): enforce passcodes and encryption, push updates, block jailbroken or rooted devices, remote wipe.
- BYOD: work profiles (Android) and managed apps (iOS) separate company data from personal data, so the company can wipe only its own data.
- Mobile threat defence apps detect malicious apps, risky networks and phishing links; SMS phishing ("smishing") and malicious QR codes are common attack routes.
Decision scenario
The app trusts the client
You are testing the staging build of the wallet app with Burp Suite.
When you send money, the app sends POST /api/transfer with {"from":"acc-1182","to":"acc-5531","amount":25.00,"fee":0.50}. You change fee to -20.00 and the server accepts it, crediting you 20.
What do you recommend?
0 of 3 options explored. Try the others to see how each would play out.
Check your understanding0 of 4 correct
Flashcards
Module 22 flashcards
0 of 10 known
Say the answer out loud, flip the card, then be honest: cards you miss come back at the end.
Practice exam
Module 22 checkpoint
10 questions, 12 minutes.
- 10 questions · 12 minutes
- No feedback until you submit. Flag questions to come back to them.
- Aim for 85% or better before you move on. The real exam's 750 out of 900 is roughly 80–83%.
Quiz score: 0 of 4
Written by Noviq Academy in its own words. All labs are simulations: no real systems are touched, and every name, address, password and hash is made up. The offensive techniques taught here are for defending systems and for authorised testing only; never scan, access or test a system without the owner's written permission. Tool and product names belong to their owners, and command output may differ slightly from yours. Read-aloud uses your device's built-in voices.