Field note · Mobile

You gave every user
a copy of the client

A shipped Android app is not software you control — it is a file in the attacker’s hands, on a device they own, with all the time in the world. Here is the surface that gives them, and how to shrink it.

By Martin Mwathi, Orvantis Security · Published 20 October 2026 · Original research · 6 min read


The moment an app reaches a store, the most important fact about it changes: it is now running on hardware the attacker controls. They can pull the package apart, read what it contains, run it on a rooted device, sit between it and your server, and feed it input it never expected — not once, but ten thousand times, unhurried. Every assumption the app makes about its own environment is now a suggestion.

This note is the generalized version of a pattern I see across mobile assessments: the parts of an Android app that quietly expose more than the developer meant. No client is named, and nothing here is a working exploit — the point is the surface and the fix. The through-line is a single idea: the app is in enemy territory, and the server is the only ground you still hold.

The attack surface of a shipped Android app An attacker who holds the APK can extract shipped secrets, invoke exported components from another app, inject into deep links and WebViews, and read local storage — while the real prize, the API, sits behind it. Only the server stays under the developer's control. Attacker owns device + APK The shipped app (in enemy hands) Shipped secrets · keys, endpoints Exported components (IPC) Deep links & WebViews Local storage · tokens, cache, logs Client-side checks (theatre) API server the only ground you still hold
Everything inside the box is readable and reachable by someone who holds the package. The server is the only place a control genuinely holds.

The one habit that causes most of it

The client is in enemy hands. Anything it must keep secret, it can’t; anything it must enforce, the server must.

Nearly every finding below is a secret or a rule that was placed on the device because the device was treated as trusted. It isn’t. Decompiling an app takes minutes and standard, freely available tools.

The surface, by pattern

1. Secrets shipped inside the package

API keys, backend hostnames, cloud tokens, signing secrets, third-party credentials — baked into resources, config files, or string constants, sometimes lightly obfuscated, occasionally in plain text. Obfuscation raises the time cost by minutes; it does not make a secret a secret. If knowing a value lets someone act as your app, that value cannot live in something you hand out. The server has to broker it.

2. Exported components that answer to any app

Activities, services, broadcast receivers, and content providers that are reachable from other apps on the device — exported either explicitly, or implicitly because they declared an intent filter. A component meant for the app’s own internal use, left open, becomes an entry point any installed app can invoke: triggering privileged actions, feeding in crafted intents, or reading data a provider was never meant to share across the boundary.

3. Deep links and WebViews that trust their input

A deep link is attacker-reachable input by design — any link, any QR code, any other app can fire one. When the handler takes a URL or parameter from that intent and loads it, or hands it to a WebView, the app will render or act on whatever it’s given. Add a WebView with JavaScript enabled and a native bridge, and a page the attacker controls can start reaching into app capabilities. The two combine into some of the nastiest mobile findings: untrusted input, loaded with the app’s own authority.

4. The “encrypted” traffic that isn’t

Without certificate pinning — or with pinning that a rooted device defeats trivially — an attacker positioned on the network reads and rewrites the app’s API calls at will. Everything the app assumed was private in transit is now editable in transit. Pinning is not about the lock icon; it is about the app refusing to talk to anything but your server.

5. Trust placed in the device’s own storage

Session tokens, personal data, and cached responses written to local storage in the clear; sensitive screens left capturable in the app switcher; secrets and request/response bodies spilled into device logs. On a device the attacker controls — or one that’s simply lost — “it’s only stored locally” is not a safeguard. It is the exposure.

6. Client-side checks standing in for server-side ones

The root/jailbreak detection, the disabled button, the hidden menu, the “you’re not allowed” dialog — all of it runs on the attacker’s hardware, so all of it can be patched out or simply bypassed by calling the API directly. These controls have a place as friction and telemetry. They have no place as the thing standing between a caller and an action. That has to be the server’s job — the same way the back end has to enforce the rules the app only pretends to.

Why it matters more than it looks

A mobile finding is easy to wave off — “they’d need the app and a rooted phone.” But the attacker already has the app; that is what shipping means. And the prize is rarely the one phone in front of them. A secret pulled from one copy of the package works against your backend for every user. An exported component or a deep-link handler turns any malicious app on the store into a remote trigger. The device in the attacker’s hand is not the target — it is the free, unlimited lab they use to find the request that works against everyone.

How I test it

Static first: unpack the package, read what it ships, enumerate the exported surface in the manifest, and map every place that takes outside input — deep links, WebViews, providers, receivers. Then dynamic, on devices I control and only against apps I’m authorized to assess: invoke the exported components from a test app of my own, fire crafted deep links, sit on the network to see what pinning does and doesn’t cover, inspect what gets written to storage and logs. Every finding is reproduced and independently re-verified, and the exercise stops at proof — demonstrating the door opens, not walking through it to take anything.

What good looks like

Closing it — move the trust to the one place you keep

There is a single move underneath all five fixes: stop asking the device to be trustworthy. Ship nothing that is dangerous to read, export nothing that doesn’t need a door, validate everything that comes from outside, and enforce every real rule on the server. Do that and the attacker is welcome to the copy of the client you gave them — it won’t get them anywhere you still hold.

How I work

All live testing happens only against systems and apps I’m authorized to assess, on devices I provision for the purpose, with no destructive operations and no extraction of real user data. Every finding is reproduced — at least twice, and independently re-verified — before it’s written down; what can’t be demonstrated is recorded as a negative, not carried to pad a count. Findings go to the owner first, on a coordinated timeline, before anything is ever said in public.

Related reading: the authentication failures in the backends these apps talk to, and the access-control flaw that leaks the most once you’re past the front door.

Related advisory — this, found in the wild Production credentials shipped inside a published Android app · 4 min read

Want this run against your app?

Same rigor, your target. Independent, evidence-based, and never softened.

Start a conversation View services