Ethical Hacking News
RatHat, a new Android malware, has been discovered by cybersecurity researchers at Zimperium. The malware utilizes an AI-powered system to navigate and control compromised devices, leveraging the Android Debug Bridge (ADB) to retain shell access even after uninstallation. This threat actor employs various tactics, including smishing and malvertising campaigns, to distribute the malware, and incorporates layers of anti-analysis and anti-debug checks to evade detection. The malware's persistence and capabilities pose a significant threat to Android device security, emphasizing the need for more advanced security measures to combat emerging threats.
RatHat is a sophisticated Android malware developed by China-based threat actors, leveraging the Android Debug Bridge (ADB) to maintain shell access even after uninstallation. The malware uses targeted smishing and malvertising campaigns to trick users into installing malware-laced APKs. RatHat employs four anti-analysis techniques: container tampering, manifest bomb, DEX bytecode poisoning, and dual string-encryption to evade detection. The malware's architecture consists of three primary components: the malicious Android app, a Go agent, and an FRP client. RatHat can harvest credentials, record the screen, intercept SMS messages, and override installation attempts to maintain persistence on the device. The malware uses AI to navigate and control devices, with autonomous local ADB self-pairing and a hardware-level keylogger. Traditional mobile security controls are insufficient against RatHat's sophistication, highlighting the need for advanced and dynamic security measures.
The cybersecurity landscape has witnessed the emergence of a sophisticated Android malware known as RatHat, which has been identified as a tool employed by China-based threat actors. The malware leverages the Android Debug Bridge (ADB) to retain shell access on a compromised device even after uninstallation. This article delves into the intricacies of RatHat, its propagation mechanisms, and the tactics employed by threat actors to sustain their malicious activities.
RatHat was first detected by cybersecurity researchers at Zimperium, who observed that the malware utilized an artificial intelligence (AI)-powered system to navigate and control compromised devices. The malware's distribution mechanism primarily involves targeted smishing (SMS/text phishing) and malvertising campaigns, which trick unsuspecting users into installing malware-laced APKs. These packages function as a dropper to launch the main payload, while incorporating layers of anti-analysis and anti-debug checks to sidestep detection.
The four anti-analysis techniques employed by RatHat include container tampering, manifest bomb, DEX bytecode poisoning, and dual string-encryption. These features enable the malware to evade traditional mobile security controls and maintain persistence on the device even after uninstallation. The malware's architecture consists of three primary components: the malicious Android application, a Go agent, and an FRP (reverse-proxy) client. The Android app serves as a conduit to acquire critical system permissions and launch the next phase of the attack, allowing it to obtain accessibility services permissions and abuse them to unlock Developer Options, enable Wireless Debugging, and extract the 6-digit ADB pairing code.
Once the malware has gained access to the device, it can serve overlays atop specific apps to harvest credentials, record the screen using Android's MediaProjection API, intercept SMS messages, and override installation attempts by serving a fake failure overlay impersonating the Google Play Store. However, even if the victim manages to uninstall the malware, the attacker still retains shell access on the device. The attacker can weaponize the local service to check if the malware is installed and re-install it if not found.
The AI component of RatHat is utilized to signal automatic navigation commands and resolve a named target's centre coordinates on the screen as JSON to direct synthetic clicks. Additionally, the malware uses an autonomous local ADB self-pairing mechanism to break out of the standard Android application sandbox, staging independent native daemons that execute with shell-level privileges.
The Go Agent, executed by the APK, masquerades as a native library ("liblocal-service.so") but leverages the shell access acquired via the local ADB daemon to execute commands. The FRP client establishes a secure, reverse tunnel to a command-and-control (C2) server, which is used to have access to the ADB daemon. This connection is used by attackers to have access to the device, independent of the malware's own feature set.
The threat actors collect SMS messages, credentials, files, lock screen PIN, pattern, or password, screen captures, keystrokes (including URLs entered in web browser address bars), and a list of installed applications. Additionally, RatHat includes a hardware-level keylogger that's executed by the Go Agent, capable of recording finger presses on the screen.
The multi-tiered architecture, reliance on out-of-lifecycle daemons, and use of real-time GenAI decision loops make traditional, signature-based mobile security controls insufficient. The sophistication of RatHat highlights the need for more advanced and dynamic security measures to combat emerging threats.
Related Information:
https://www.ethicalhackingnews.com/articles/RatHat-Android-Malware-A-Sophisticated-Threat-Actor-Exploits-ADB-for-Persistent-Shell-Access-ehn.shtml
https://thehackernews.com/2026/09/rathat-android-malware-abuses-adb-to.html
Published: Fri Sep 18 03:41:10 2026 by llama3.2 3B Q4_K_M