New RatHat Android malware uses AI to automate device control
Zimperium discovered RatHat, an AI-assisted Android banking trojan linked to Chinese actors, stealing credentials via overlays and intercepting SMS one-time passwords.
Zimperium zLabs identified RatHat, a new Android banking malware whose AI subsystem serializes the live Accessibility tree to XML and queries a popular AI assistant for navigation instructions such as SCROLL_DOWN. It is distributed via malvertising, SMS, and phishing sites pushing sideloaded APKs, then abuses Accessibility permissions to enable Wireless Debugging and gain ADB shell privileges without a PC, similar to ToxicPanda and RedHook. A Go-based agent (liblocal-service.so) maintains mutual persistence with the malware, while libmedia_codec.so acts as an FRP reverse-proxy tunnel; HTML overlays capture banking and crypto credentials, SMS OTPs, and lock-screen PINs. Zimperium links it to Chinese-speaking operators based on Chinese-language LLM prompts and notes anti-analysis tricks including a 61MB manifest and invalid DEX pseudo instructions.
- Uses an AI assistant to convert Accessibility tree XML into navigation commands, adapting beyond scripted automation.
- Enables Developer Options and Wireless Debugging for local ADB shell execution, similar to ToxicPanda and RedHook.
- Malware and Go agent liblocal-service.so restore each other to maintain persistence.
- Overlays target banking and crypto apps, capturing credentials, SMS OTPs, and lock-screen PINs.
- Anti-analysis includes a 61MB manifest, APK container tampering, and invalid DEX pseudo instructions.
Full article521 words · extracted from bleepingcomputer.com · click to collapse

A new Android malware called RatHat has been discovered, targeting users with an AI-powered subsystem that helps operators remotely navigate compromised devices.
Zimperium zLabs researchers analyzed the malware and believe it is linked to threat actors from China after finding it using LLM prompts written in Chinese.
The researchers say the malware is distributed through malvertising, SMS, and phishing sites promoting APK downloads from outside Google Play.
Like most Android malware families, RatHat relies on abusing Android's Accessibility permissions to perform highly privileged actions on infected devices.
Most notably, it enables Developer Options and Wireless Debugging to gain a local shell-level execution context without requiring an external computer, similarly to mechanisms seen in the ToxicPanda and RedHook Android malware families.
ADB access lets RatHat install a Go-based agent (liblocal-service.so) that runs commands with ADB shell privileges, creates battery-restriction bypasses, and manages persistence.
The same agent also restores the malware if it's removed or stopped, providing a persistence channel independent of the malware itself. This back-up goes both ways, with the malware restoring the agent if it's removed.

Source: Zimperium
A second agent (libmedia_codec.so) also acts as an FRP reverse-proxy client, establishing a persistent tunnel to the attacker.
The malware displays HTML overlays for targeted banking and cryptocurrency applications to capture account credentials.
It can also intercept SMS messages and notifications, including one-time passwords; record text-change events; extract URLs from browser address bars; and capture lock-screen PINs, passwords, and unlock patterns.

Source: Zimperium
AI-guided navigation
Zimperium reports that RatHat uses an AI-powered user interface-automation engine that serializes the live Android Accessibility tree into XML and sends it to a popular AI assistant not named in the report.
The AI tool is then tasked with:
- Identifying the center coordinates of a named interface element
- Determining an element's actual on-screen text
- Returning navigation instructions such as 'SCROLL_DOWN' and others
This AI-powered subsystem makes RatHat's interface automation more adaptable than automation based entirely on fixed scripts, allowing remote navigation without requiring the operators to perform real-time interaction.
"RatHat uses AI to intelligently navigate and control the device interface in real-time, making its operations more adaptable and harder for security software to detect than traditional, scripted automation," comments Zimperium.

Source: Zimperium
The researchers warn that RatHat will actively thwart removal attempts by intercepting the uninstall confirmation screen, canceling the procedure, and displaying a fake Google Play overlay containing a bogus error message.
Zimperium also highlights multiple anti-analysis techniques embedded in the malware, including APK container tampering, a bloated (61MB) Android manifest file, and invalid DEX pseudo instructions, all aimed at confusing or breaking analysis tools.
Android users should never download APK files from outside Google Play unless they explicitly trust the publisher, avoid granting Accessibility permissions to apps, and regularly scan their devices with Play Protect.
Build your security blueprint for AI-powered attacks
Join Mikko Hyppönen and security leaders from the NFL, CHANEL, and Atlassian for a two-hour digital summit on what AI-speed attacks change, what defenders should stop doing, and how to validate, decide, fix, and re-validate at machine speed.
Text extracted automatically; images, tables and formatting may be missing. Original: https://www.bleepingcomputer.com/news/security/new-rathat-android-malware-uses-ai-to-automate-device-control/