Overlay attack
In plain terms
You open your banking app and see its login screen. Except what you're seeing is drawn on top by another app, and that app is the one receiving what you type.
Definition
An overlay attack is when an app installed on the phone displays a window on top of another app as soon as it launches, in order to intercept what the user types into it.
How it works
A mobile system lets an app display an element above the others: that's what makes chat bubbles or screen filters work. The corresponding permission is therefore legitimate and exists for good reasons. A malicious app requests it under a plausible pretext, then watches which app comes to the foreground. When it's a banking app, it instantly draws a copy of its login screen on top. The user has no way to notice: they did open the right app, the screen is the one they expected, and the action is theirs. The input goes to the malicious app, which then closes its window and lets the real app appear.
Why it works
You opened the right app and see the expected screen: there's nothing to notice. The permission was granted long before, under a plausible pretext, and nobody makes the connection.
What this attack relies on
Understanding these levers is worth more than memorizing a hundred pages: it is what lets you recognize a scam no one has described yet.
Warning signs
- App that has obtained permission to display over other apps for no obvious reason
- Login screen that appears with a slight delay or an unusual theme
- Keyboard or screen appearance that differs from what you're used to
- Abrupt return to the home screen right after entering something
- App requesting accessibility permission for a feature that doesn't require it
Example
Fictional example — no real organization or address
Request shown when opening a phone-cleaning app installed the day before.
To optimize your phone, allow display over other apps and turn on the accessibility service. [Allow]
What gives it away
- Cleaning a phone requires neither of these permissions.
- They're the two most powerful permissions on the phone.
- The app has only just been installed.
How to verify
Open the phone's settings and look at the list of apps allowed to display over other apps, as well as those with accessibility access. Both lists should be short and every entry should make sense. This is the only place where this attack is visible, since the screen itself can't reveal anything.
The questions to ask, in order
Is an app asking to display over other apps or for accessibility access with no reason tied to its function?
If yes: Refuse and uninstall it.
Does the list of apps allowed to display over others include one you can't explain?
If yes: Remove its permission and uninstall it.
Did you enter banking credentials while such an app was installed?
If yes: Warn your bank and change your passwords from another device.
What to do
Don't grant either display-over-other-apps or accessibility access to an app whose function doesn't require it — these are the two most powerful permissions on a phone. Keep the system up to date, and prefer biometrics, which can't be typed on a screen.
If it already happened
Uninstall the app in question from safe mode if it resists, then change the passwords entered during the period, from another device. Notify your bank and monitor transactions. Revoke active sessions on the affected accounts.
So it doesn't happen again
- Grant these two permissions only to the rare apps that really need them.
- Review both lists in your phone's settings from time to time.
- Keep the system up to date and prefer biometrics for your banking apps.
Test yourself
An app asks for permission to display over other apps.
Start the simulation: Overlay attackFrequently asked questions
- How can another app draw over my banking app?
- Because the system intentionally allows it, for legitimate uses like chat bubbles. The attack doesn't exploit a flaw: it hijacks a feature, which is why it requires a permission rather than forcing anything.
- Does biometrics protect against this?
- It helps, because a fingerprint or a face can't be typed on a screen and so can't be captured by an overlaid window. An app that offers to fall back to the PIN code "because biometrics isn't working" deserves the utmost suspicion.
Related attacks
Official sources
This article is part of the Phones and connected devices family. Last updated: 2026-09-03.
Published under the responsibility of Mountaga Diallo · methodology.