- Zimperium zLabs discovers RatHat, an AI-powered banking trojan that automates attacks on Android.
- It is distributed through smishing and malicious advertising, abusing accessibility permissions and ADB.
- Its AI system interprets the screen and adapts navigation without human intervention.
- It has mechanisms for persistence and theft of credentials, SMS, PIN and keystrokes.

A new Android malware is taking remote device control to an even more sophisticated level. RatHat incorporates an artificial intelligence-based system capable of interpreting an infected mobile device's interface and deciding how to interact with it, allowing attackers to automate actions that previously relied more heavily on predefined instructions.
The discovery was made by researchers at Zimperium zLabs, who analyzed the capabilities of this threat. RatHat is reportedly reaching users through malicious advertising campaigns, SMS messages, and phishing websites that offer APK files outside of the Google Play Store. Once installed, the malware attempts to gain Android accessibility permissions, which it uses to perform actions with a high level of control over the device. It also activates developer options and wireless debugging to gain access to a local console with ADB privileges, without needing to physically connect the phone to a computer.
What is RatHat and how is it distributed?

RatHat is a banking Trojan identified by mobile security specialists Gianluca Braga, Vishnu Pratapagiri, and Fernando Ortega. Researchers link it to threat actors based in China, although this alone does not confirm the origin of those responsible. Its distribution relies on smishing campaigns and malicious advertising that redirect victims to fraudulent download sites, sometimes impersonating popular applications like Google Chrome.
The installation package acts as a dropper, launching the main malicious payload. Once inside the system, the application requests accessibility permissions, a legitimate Android mechanism designed to assist people with disabilities, but which, in the hands of this threat, becomes a gateway to sensitive functions.
How RatHat's artificial intelligence works

RatHat's main innovation lies in its AI-based automation system. Instead of relying on programmed instructions for a specific interface, the malware gathers Android's visual structure and transforms it into an XML document. This XML is then sent to a generative AI assistant that identifies screen elements, determines their position, interprets visible text, and returns instructions for navigating menus. This allows it to adapt to changes in application design without requiring reprogramming.
Zimperium explains that “RatHat uses AI to intelligently navigate and control the device interface in real time.” This capability makes its operations more flexible and harder to detect than traditional automations based on fixed scripts.
What theft capabilities does this malware have?

RatHat creates an invisible layer that overlays banking and cryptocurrency apps to capture login credentials and one-time passwords. It also intercepts SMS messages, reads notifications, logs keystrokes, and extracts PINs, patterns, or unlock passwords. The malware can record the screen using the MediaProjection API and obtain a complete list of apps installed on the device.
The Trojan's architecture consists of three parts: the malicious application that acts as the entry point, a "Go Agent" that disguises itself as a native library and executes commands with shell privileges, and a reverse FRP proxy client that establishes a secure tunnel to the command and control server. Even if the victim uninstalls the application, the attacker retains remote access to the device and can automatically reinstall the malware.
In addition, RatHat incorporates anti-analysis techniques such as a 61 MB "manifest bomb," DEX bytecode poisoning, and a double-encryption scheme for text strings called StringCrypto. It can also block uninstallation attempts by displaying a fake Google Play interface with an error message.
Safety and mitigation recommendations
Experts advise installing apps only from Google Play and being wary of any app that requests accessibility permissions without a justified reason. Developer options or wireless debugging should never be enabled unless their purpose is fully understood. Keeping your device's anti-malware software up to date and regularly reviewing granted permissions are basic security measures.
If an infection is suspected, a factory reset is the safest course of action, as RatHat can survive a standard uninstallation. While the identities of the targets and the number of affected devices are currently unknown, the research by Zimperium zLabs highlights the evolution of mobile threats toward a more autonomous and difficult-to-contain model.