Overlay attacks, accessibility abuse, repackaged apps: a mobile banking threat map
How Android banking malware uses overlays, accessibility services and repackaged apps, and which defenses belong in the app, in the platform and on your backend.
Most fraud against mobile banking customers does not involve breaking your cryptography or your servers. It happens on the customer's phone, where malware sits next to your app and tricks the user, reads the screen or replaces your app with a modified copy. This post looks at three techniques that keep showing up in Android banking malware (overlays, accessibility abuse and repackaging) and sorts the defenses into what belongs in the app, what the platform already gives you, and what has to live on your backend.
Overlay attacks
How they work
An overlay attack draws a window on top of your app. The classic version shows a fake login or card form that looks like yours, collects what the user types and then dismisses itself. A subtler version, tapjacking, puts a transparent or misleading layer over your real UI so the user's tap lands on a button they did not intend to press, such as a confirmation or permission dialog.
On Android, drawing over other apps requires the SYSTEM_ALERT_WINDOW permission, which users can be talked into granting. Malware usually pairs it with a way to know when your app is in the foreground, so the fake screen appears at exactly the right moment.
Defenses
- Reject obscured touches on sensitive views. Android lets a view ignore touches while another window covers it, through
filterTouchesWhenObscuredor by checking the obscured flags on the motion event. The Android documentation on tapjacking covers the options. - Hide non-system overlays. Since Android 12, an app holding the
HIDE_OVERLAY_WINDOWSpermission can callsetHideOverlayWindows(true)on a window, so third-party overlays are not drawn over it while it is visible. That is a good fit for login, payment and transfer-confirmation screens. - Keep secrets off the screen. Use
FLAG_SECUREon screens that show card numbers, one-time codes or balances, so they are excluded from screenshots and non-secure displays.
Accessibility service abuse
How it works
Accessibility services exist so assistive technology can read the screen and act on the user's behalf. That is exactly what banking malware wants. An app with an enabled accessibility service can read the text of other apps' views, watch which app is in the foreground and perform gestures. Malware families use it to capture credentials and one-time codes as they appear, to grant themselves further permissions, and in some cases to run transactions on the device while the user is not looking (often called on-device fraud).
The platform has pushed back. Android 13 introduced restricted settings, which make it harder for sideloaded apps to be granted accessibility access. Attackers adapted with installers that try to look like store installs, and with social engineering that walks the victim through the settings screens.
Defenses
- Treat the device as untrusted during high-risk actions. Adding a new payee, raising a limit or changing a device binding deserves step-up checks that a script on the device cannot complete by itself, such as a confirmation through a separate channel.
- Collect context, decide on the server. Your app can report which accessibility services are enabled and whether they are from known assistive vendors. That is useful input to a risk score, but blocking every user with an accessibility service enabled excludes the people the feature exists for.
- Watch for behavioral signs. Unusually fast or mechanical navigation, transactions immediately after a new service was enabled, or sessions where the screen appears to be locked are patterns your backend can score.
- Limit what is on screen. Do not render full card numbers or long-lived secrets where the accessibility tree can read them unless the user needs to see them.
Repackaged and modified apps
How it works
An APK can be unpacked, modified and re-signed with a different key. Attackers do this to remove security checks, add malicious code to an otherwise working copy of your app, or produce a convincing clone that phishes your customers. The modified app is then distributed through phishing links, messaging apps or third-party stores.
Android's signing schemes stop a modified APK from installing as an update over your genuine app, because the signing key will not match. They do not stop it from being installed as a separate app, and they do nothing to stop someone running a patched copy on their own device.
Defenses
- Check your own signature and integrity at runtime. Your app can confirm that it is signed with your certificate and that its code has not been changed. Report the result to your backend rather than relying on a local check alone, which an attacker can patch out.
- Use platform attestation. The Play Integrity API lets your server receive a signed verdict about the app binary and the device. Because the verdict is verified server-side, it is much harder to fake than a local check.
- Harden the binary. Code and string encryption plus obfuscation raise the cost of finding and removing your checks, which is what repackaging depends on.
- Monitor for clones. Look for apps using your name and icon in third-party stores, and for API traffic from app versions or signatures you never shipped.
Where the controls belong
A useful way to plan is to split controls into three layers:
- Platform. Use what Android already provides: signing, restricted settings, overlay hiding, secure flags and Play Integrity. These are free and maintained by the platform.
- App. Harden the binary and collect runtime signals: root, hooking frameworks, debuggers, emulators, repackaging and overlay or accessibility context. Decide locally only when the risk is clear and the impact on legitimate users is low.
- Backend. Make the decisions that matter: transaction risk scoring, step-up authentication, device binding and velocity limits. This is the only layer an attacker on the device cannot modify.
The OWASP MASVS maps well onto this split. MASVS-PLATFORM covers the platform interactions above, and MASVS-RESILIENCE covers hardening and runtime checks. Using it as a checklist makes it easier to show an auditor that both were considered, alongside the backend controls your payment rules already require.
Next step: platform controls you can ship this sprint
- Set
FLAG_SECUREon screens that show balances, card data or one-time codes. - Set
android:filterTouchesWhenObscured="true"(or checkFLAG_WINDOW_IS_OBSCURED) on confirm-payment and permission buttons. - Verify Play Integrity verdicts on your backend, never in the app, and decide what a failed verdict means for each sensitive action.
- Require re-authentication on your server for changes to payees, limits and contact details.
Where Tamandua App Guard fits
The app-layer concepts above are educational, not an availability claim. Current App Guard evidence is a detect-only Android lab observation on one tested device: root and re-signing were detected and logged on-device. No hosted completion, console telemetry, public enrollment, purchase, blocking, or verified effect is offered. An assisted Android pilot is under consideration, not available. iOS is source/preview only; no enrollment or availability offer is made. A request records interest; it does not grant access or guarantee delivery. Until device signals reach your backend, the backend decisions in this post have to rely on signals you already have, such as Play Integrity. Register interest.
Updated 2026-10-10: current App Guard availability boundaries replace the prior status paragraph.