NeuralBridge
Sign in Download IDE
AI NewsAndroid, security

RatHat uses Gemini to navigate the Android interface

In October 2026, F6 discovered RatHat on roughly ten smartphones in Russia and Belarus. The trojan calls Gemini to locate settings elements on the screen, and then can control them via Android accessibility features.

RatHat uses Gemini to navigate the Android interface
Image: Habr

In October 2026, specialists from F6 discovered the Android trojan RatHat on roughly ten smartphones in Russia and Belarus. The malicious app masqueraded as a new social network, and used Gemini to navigate phone settings. F6 reported the finding on 24 November; Zimperium researchers first described RatHat on 16 September.

How RatHat gains access to the smartphone

In the scenario considered, the user downloads an APK from a fake site and runs an app promising access to a social network. Instead of a normal registration, it reports network problems and suggests changing phone settings. However, the button leads to the “Accessibility” section, not to Wi‑Fi or mobile data settings.

If the offered service is enabled, RatHat gains the ability to recognize screen elements and click them on behalf of the owner. This permission allows the trojan to recognize screen elements and click them on behalf of the owner.

F6 discovered in the code a reference to Gemini 2.5 Flash-Lite: the model helps locate the wireless debugging toggle. On different devices it may be named and placed differently. Gemini recognizes the needed element, and the trojan clicks it itself. The AI here does not select a password nor make a payment — it helps navigate the interface.

After gaining access to special capabilities, RatHat can autonomously approve system requests. According to observations from F6, windows appear and disappear quickly. The trojan can also hide its icon or change it, for example to a Chrome icon, continue running in the background and read messages and notifications, including one‑time codes.

Fake windows and payment data

In the examined samples, PIN entry forms for Alipay and WeChat were found. The scheme uses a real payment app: RatHat overlays its own screen on top, and the trojan receives the entered digits, not the service.

F6 also described the possibility of swapping bank details when preparing a transfer. These are identified functions of the malicious program, not confirmed consequences of infections, as reported by the company. F6 did not provide data on the amounts withdrawn or the number of affected bank customers. About ten — the number of infections found by the company, not an estimate of RatHat's overall prevalence.

What this means for developers

For mobile developers, RatHat shows that abusing accessibility can give an app broad control over the interface. Therefore, such a permission request should be clear to the user and match the app’s function: an explanation about internet problems should not lead to granting screen‑control permission.

Teams responsible for app security should also consider the scenario of overlaying a fake form over a real payment client. A familiar screen alone does not guarantee that the PIN code is received by the intended app. An additional risk is reading notifications and one‑time codes after granting accessibility permissions.

F6 advises users not to enable this permission for an app that explains the request as network issues. If the permission has already been granted and system windows switch without touches, the company recommends turning off Wi‑Fi and mobile data on the smartphone. If a PIN code was entered into an unexpected form, you should contact the bank from another device and verify the transactions.

All postsAlso in "AI News"