Mobile security

What mobile app tampering actually shows you

A mobile app that assumes the device is honest will keep working on a device that is not. The test is to remove that assumption.

Published 2026-10-22 · Updated 2026-11-18 · 8 min read

The platform is not a guarantee

Most mobile applications are written against an assumption: the device is intact, the operating system enforces the rules, and the checks in the app will hold. Rooted phones, jailbroken phones, emulators and debuggers remove that assumption — and they are ordinary tools, available to anyone who wants them.

The purpose of the device-trust test is not to prove that detection can be bypassed. It is to find out what happens on the other side of the bypass. A root check that can be patched out in an afternoon is a speed bump; what matters is whether the secrets, the stored tokens and the local database are protected by anything else once the check is gone.

What we run and why

We test the release build on real devices across the operating system versions the app actually supports, because that is what your users have and what an attacker receives from the store.

We then run the same build on a rooted device, a jailbroken device, in an emulator, and under a debugger. Each environment removes a different protection: on a rooted device, filesystem isolation and secure storage guarantees weaken; in an emulator, hardware attestation is absent; under a debugger, control flow can be observed and altered at runtime.

The difference in behaviour between the environments is the finding. A login that succeeds on a rooted device because the token was stored in plain SharedPreferences is a real, exploitable data exposure. A root check that only adds a log line is not.

  • Local databases, caches, logs, shared preferences and backups, inspected after logout as well as during a session
  • Token storage: where session material lives, whether it is bound to the device, and whether it expires
  • Traffic: interception, replay, reordering and modification of the app's own API calls
  • Runtime tampering: repackaging, instrumentation, hook frameworks and debugger attachment
  • Local authentication gates: PIN and biometric flows that trust the client

What the mobile test finds that a code review does not

Static reading tells you what is possible. Running the app tells you what actually happens — including the behaviour of the frameworks you do not control. An analytics or advertising SDK that writes identifiers to shared storage, or a crash reporter that attaches the last request body, will not show up in a review of your own code.

It also tells you about the server's behaviour. If the API trusts a client-supplied device identifier for authorisation, that is a server-side finding, and it only appears when you replay requests from a device you control.

Fixing what the test finds

For storage: move secrets into the platform keystore, keep them out of logs and backups, and clear sensitive values on logout — not just the visible session.

For traffic: enforce certificate validation, and treat pinning as a defence in depth measure rather than the control itself, because a pinned client can always be patched.

For tamper detection: raise the cost of the attack rather than pretending to prevent it. The realistic goal is that the app fails safely when it detects a hostile environment, and that nothing valuable is reachable from that state.

For the API: authenticate every request independently of the device, and authorise on the server. A device check is a signal, never an authorisation.