RatHat Android Trojan Uses Generative AI to Navigate Infected Devices

RatHat Android Trojan Uses Generative AI to Navigate Infected Devices

AI-generated editorial illustration; not a documentary photograph.

A newly identified Android trojan called RatHat uses generative AI to interpret on-screen interfaces and operate infected devices, according to mobile security company Zimperium. SecurityWeek reports that the malware spreads through smishing and malvertising, then follows a multi-stage process designed to escape Android's application sandbox and obtain shell-level execution.

AI Guides Interface Actions

RatHat serializes the device's live Accessibility tree into XML and sends that representation to a generative AI assistant. Zimperium says the assistant reads the visible content and layout, allowing the malware to navigate and interact with the interface in real time. The reported AI use covers otherwise non-malicious interface actions, while RatHat's surrounding components perform credential theft and remote-control functions.

Credentials and Touches Exposed

The malicious Android application can imitate banking and payment apps through WebView overlays, capture screens and user input, intercept SMS messages, and seek Device Admin rights. Its keylogging methods include monitoring accessibility text-change events, reading browser address bars by resource ID, and reconstructing taps from raw coordinates recorded through Android's getevent debugging tool.

This combination can expose typed passwords, PINs, access codes and unlock patterns. RatHat can also receive activity aliases through a dynamic configuration, while a localized HTML lure is used to obtain Accessibility Services access and elevate privileges.

Three-Part Persistence Chain

Zimperium describes RatHat as a three-component system comprising the Android application, a Go agent and an FRP client. After the infection obtains a shell through the local ADB daemon, the Go agent executes commands, maintains system-level persistence and seeks power-management exemptions. The frpc component, derived from fatedier/frp, creates a persistent reverse tunnel that exposes the ADB daemon to attackers.

The malware can cancel uninstall attempts and leave a hidden shell service behind even when its visible application is removed. That service periodically checks for the app and reinstalls it if necessary. Zimperium also says prompts found in the malware suggest, but do not establish, development by a Chinese threat actor.

Source: RatHat Android Trojan Uses AI for Automation

Share this article
FacebookThreadsLinkedInX

Leave a Reply

Your email address will not be published. Required fields are marked *