Security AffairsPierluigi Paganini
Android RatHat Trojan Uses AI and Wireless Debugging to Steal PINs
Part of the RatHat story · since 17 Sep
- Thu 17 Sep, 13:36 UTC. Infosecurity, first report. New RatHat Android Malware Uses AI to Steal Banking Data and OTPs.
- Fri 18 Sep, 06:37 UTC. The Hacker News, its first report on the story. RatHat Android Malware Survives Uninstall Through ADB Access.
- Fri 18 Sep, 10:11 UTC. Security Affairs, its first report on the story. Android RatHat Trojan Uses AI and Wireless Debugging to Steal PINs. This article, 3rd of 8.
- Fri 18 Sep, 16:18 UTC. Malwarebytes, its first report on the story. RatHat Android Trojan Uses Live AI to Steal Logins and PINs.
- Mon 21 Sep, 07:30 UTC. Malwarebytes. Android RatHat Malware Steals Bank Logins and Screen-Lock PINs.
- Mon 21 Sep, 13:24 UTC. SecurityWeek, its first report on the story. AI-Powered RatHat Android Trojan Hijacks Devices Through Smishing.
- Mon 28 Sep, 18:59 UTC. The Hacker News. RatHat Android Trojan Uses Gemini AI to Identify Lucrative Victims.
- Tue 29 Sep, 15:00 UTC. Infosecurity. RatHat Android Trojan Evolves C2 to Evade Detection and Target Banks.
Zimperium researchers have detailed RatHat, an Android trojan reportedly linked to China-based operators. It is distributed through deceptive phishing sites, malvertising, smishing and third-party forums, where victims are persuaded to install malicious APKs. The malware hides its payload in encrypted files, uses reflection to load a second-stage DEX file in memory, and abuses Android’s SessionInstaller APIs to evade installation and Accessibility Service restrictions.
It also employs extensive anti-analysis measures, including a 61 MB `AndroidManifest.xml`, invalid pseudo-instructions, encrypted strings and checks for debuggers, Frida, Xposed, root access and emulators.
After obtaining Accessibility Service access, RatHat can enable Developer Options and Wireless Debugging, read the ADB pairing code from the screen and pair with the phone’s own debugging interface without a cable or additional device. It installs Go-based components that expose an ADB shell through a reverse-proxy tunnel. The malware can then log text through Accessibility, extract browser URLs, and read raw touch coordinates from `/dev/input`, using brand-specific keypad layouts to infer PINs.
It overlays fake screens on banking, payment, WeChat and Alipay applications, intercepts SMS-based two-factor codes, and communicates with command-and-control infrastructure over HTTP and WebSocket connections.
A notable feature is its use of a generative AI assistant: RatHat sends the device’s Accessibility tree as XML and receives coordinates, text or navigation instructions to automate interaction as screen layouts change. The malware can also resist removal by displaying a fake Google Play error and, if uninstalled, using an external agent to reinstall itself and restore permissions.
Zimperium said the initial requirement for Accessibility access remains a key weakness; users should not grant that permission to apps without a clear and legitimate need.
How the story developed
8 articles from 5 outlets since 17 Sep. Quiet since 29 Sep. This was the 3rd report, 21 hours after the first.
- Thu 17 Sep, 13:36 UTC. Infosecurity, first report. New RatHat Android Malware Uses AI to Steal Banking Data and OTPs.
- Fri 18 Sep, 06:37 UTC. The Hacker News, its first report on the story. RatHat Android Malware Survives Uninstall Through ADB Access.
- Fri 18 Sep, 10:11 UTC. Security Affairs, its first report on the story. Android RatHat Trojan Uses AI and Wireless Debugging to Steal PINs. This article, 3rd of 8.
- Fri 18 Sep, 16:18 UTC. Malwarebytes, its first report on the story. RatHat Android Trojan Uses Live AI to Steal Logins and PINs.
- Mon 21 Sep, 07:30 UTC. Malwarebytes. Android RatHat Malware Steals Bank Logins and Screen-Lock PINs.
- Mon 21 Sep, 13:24 UTC. SecurityWeek, its first report on the story. AI-Powered RatHat Android Trojan Hijacks Devices Through Smishing.
- Mon 28 Sep, 18:59 UTC. The Hacker News. RatHat Android Trojan Uses Gemini AI to Identify Lucrative Victims.
- Tue 29 Sep, 15:00 UTC. Infosecurity. RatHat Android Trojan Evolves C2 to Evade Detection and Target Banks.
- No CVE
- Larger: an outlet’s first report
- Coverage over time
- Quiet time, folded
Show all 8 articles as a listHide the list
- Thu 17 SepDay 01
- New RatHat Android Malware Uses AI to Steal Banking Data and OTPs13:36 · Infosecurity · First report
- Fri 18 SepDay 13
- RatHat Android Malware Survives Uninstall Through ADB Access06:37 · The Hacker News
- Android RatHat Trojan Uses AI and Wireless Debugging to Steal PINs10:11 · Security Affairs · This article, 3rd of 8
- RatHat Android Trojan Uses Live AI to Steal Logins and PINs16:18 · Malwarebytes
Quiet for 3 days
Mon 21 SepDay 42- Android RatHat Malware Steals Bank Logins and Screen-Lock PINs07:30 · Malwarebytes · Picked up again
- AI-Powered RatHat Android Trojan Hijacks Devices Through Smishing13:24 · SecurityWeek
Quiet for 7 days
Mon 28 SepDay 111- RatHat Android Trojan Uses Gemini AI to Identify Lucrative Victims18:59 · The Hacker News · Picked up again
- Tue 29 SepDay 121
- RatHat Android Trojan Evolves C2 to Evade Detection and Target Banks15:00 · Infosecurity