Safety Net

RatHat is a new Android malware that records your screen touches to steal passwords

This malicious software also weaponizes AI to infect the device.
 By 
Matt Binder
 on 
Android logo
New malware called RatHat is targeting Android devices. Credit: CFOTO/Future Publishing via Getty Images

Beware: There's a new malware making the rounds and it's targeting your Android device.

Cybersecurity researchers at Zimperium recently discovered a new strain of Android malware, called RatHat, and have linked it to threat actors based out of China.

"RatHat incorporates novel techniques for persistence and leverages generative AI for operational control," Zimperium's zLabs researchers said in a report.


You May Also Like

As the cybersecurity firm Malwarebytes explains, "RatHat gives a live AI assistant the keys to the accessibility tree of the infected device." This unique weaponization of AI allows the attacker to figure out "where to tap or scroll, rather than following a hardcoded script."

As with most malware, RatHat initially infects the device through social engineering tactics. The attacker convinces a target to download a seemingly legit app, such as Google Chrome, through a fake website posing as the Google Play Store. The user downloads the app but unknowingly installs the RatHat malware on their device.

From there, RatHat requests accessibility permissions while still masked as a legitimate application.

Once the target provides RatHat with those permissions, the malware activates Wireless Debugging under Developer Options. RatHate weaponizes this actual Android developer feature to pair with the device. 

With this access, RatHat is able to capture text messages and create overlays on targeted apps, steal passwords, and multi-factor authentication codes in the process.

"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," Zimperium explains. 

However, the AI component isn't the only unique aspect of RatHat. The overlay acts like a keylogger, recording the user's raw touch inputs directly on the device.

Android users should protect themselves from RatHat by avoiding any downloads from untrustworthy sources. Unfortunately, once RatHat has infected a device, the only way to remove it is to factory reset the device.

Matt Binder
Matt Binder
Senior Tech Reporter

Matt Binder joined Mashable's tech vertical in 2018, where he covers social media, tech policy, cybersecurity, online scams, cryptocurrency, AI, creator news, weird tech, and other related tech beats.

Mashable Potato

More from Safety Net
How to protect yourself from falling for a deepfake
A colorful collage of symbols and ripped paper forming the profile of a human head.

Samsung TVs might use the mics of connected devices to listen to you, researcher says
Samsung TVs

Hackers find a way to turn users' own AI agents and Downloads folders against them
Data Breach, Cyber security concept, digital data security with open padlock on chip of motherboard. Digitally generated image. 3d render.

PHP vulnerability: PHP security issues today explained
The website of Roularta Media Group is offline, due to two critical vulnerabilities with the PHP programming language

Capcom data breach confirmed: More than 11 million accounts impacted
Capcom logo

Recommended For You
I used an iOS 27 Shortcut to cut my screen time and retrain my brain
iOS 27 Shortcut screen time

Update your Mac: Screen Share vulnerability gives attackers full control of your computer
Mysterious hand using MacBook


Operation Bluebird loses bid to re-claim Twitter title
By Phil Clark
Tweet.app logos

Have you been Flocked? This website lets you find out
A Flock Safety camera is shown mounted to a light pole on August 03, 2026 in Beverly Hills, California.

Trending on Mashable
NYT Connections hints today: Clues, answers for November 1, 2026
Connections game on a smartphone

Wordle today: Answer, hints for November 1, 2026
Wordle game on a smartphone

NYT Connections hints today: Meanings for each word for Nov. 1, 2026
NYT Connections logo.

NYT Connections hints today: Clues, answers for October 31, 2026
Connections game on a smartphone

NYT Strands hints, answers for November 1, 2026
A game being played on a smartphone.