1. Executive Summary
According to the supplied Zimperium zLabs analysis, RatHat is an Android malware family distributed through SMS phishing/smishing, malvertising, phishing websites and third-party APK download portals.
After installation, RatHat attempts to obtain Accessibility Service access and uses it to manipulate Android settings, enable Developer Options and Wireless Debugging, retrieve an ADB pairing code and establish local shell-level access.
It then deploys components including liblocal-service.so, described as a Go-based agent used for privileged operations and persistence, and libmedia_codec.so, identified as an FRP reverse-proxy client for a persistent tunnel.
2. Why RatHat Is Different
Traditional Android automation can depend on fixed coordinates and predefined workflows. That approach becomes fragile when applications change, manufacturers customize interfaces, screen dimensions differ, languages change or buttons move.
Traditional automation
Hardcoded coordinates β fixed screen β fixed action.
RatHat's AI-assisted approach
Read current UI β serialize Accessibility tree β use AI to identify target β return coordinates/text/navigation β perform action.
What the AI-assisted workflow changes
The supplied material states that RatHat serializes the live Accessibility tree into XML and uses an AI assistant to determine interface elements, coordinates and navigation instructions such as scrolling.
The important development is therefore context-aware automation, not a claim that the malware has become fully autonomous.
3. Attack Chain
4. How RatHat Gets In
The supplied analysis describes distribution through malicious advertisements, smishing and phishing sites that encourage users to download APK files outside the official Google Play ecosystem.
The initial infection can look ordinary: βDownload this app,β βYour account requires an update,β or βWatch this video / claim this offer.β The technical sophistication comes after installation.
5. Accessibility Service Abuse
Accessibility Services are legitimate Android functionality, but RatHat abuses them to automate interaction with the device interface.
6. The ADB Trick
After obtaining Accessibility access, RatHat can interact with Android settings to enable Wireless Debugging and retrieve pairing information, then authenticate against the local ADB daemon.
The supplied material describes this as providing a shell-level execution context without requiring a separate computer, allowing additional components to be staged.
7. The Go Agent
RatHat includes a Go-based component disguised as liblocal-service.so. According to the supplied analysis, it is staged in /data/local/tmp and operates from the ADB shell context.
The agent can perform system-level operations including persistence and power-management modifications, moving functionality beyond the normal Android application lifecycle.
8. Persistent Reverse Tunnel
libmedia_codec.so is described in the supplied analysis as an FRP client that establishes a persistent reverse-proxy tunnel back to attacker infrastructure.
This gives the operator a route toward internal device interfaces and the ADB daemon, making the compromised phone resemble a remotely operated endpoint.
9. Banking Credential Theft
RatHat can monitor the foreground application and trigger malicious HTML overlays when targeted banking or cryptocurrency applications are detected. The supplied analysis says the fake interface is designed to resemble the legitimate application and capture credentials.
It also targets payment applications, including WeChat and Alipay, according to the cited Zimperium analysis in the supplied post.
10. OTP Theft
RatHat can intercept SMS messages, notifications and OTP/2FA codes.
11. Hardware-Level Touch Capture
The supplied analysis describes RatHat's privileged Go agent using Android's getevent functionality to observe raw touch coordinates.
Those coordinates can then be correlated with known keypad layouts to reconstruct PINs, password input or unlock patterns. This is significant because it can expose input that would normally be hidden in secure interfaces.
12. Persistence β Even After Uninstallation
RatHat attempts to interfere with removal by intercepting the uninstall confirmation process and displaying a fake Google Play-style failure message.
The supplied material says the external Go agent can survive outside the normal application lifecycle and reinstall the APK if it detects removal of the main application.
13. Anti-Analysis
Zimperium's analysis, as reproduced in the supplied post, identifies mechanisms intended to frustrate analysis:
14. The AI Component
RatHat serializes the live Accessibility tree into XML and sends interface information to an AI assistant. The supplied material says the AI component can help determine where a target element is, what text is displayed, which navigation action should occur and where a synthetic click should be performed.
15. A New Direction for Mobile Malware
Yesterday β Scripted Malware
Fixed commands, fixed coordinates, fixed workflows.
Today β Adaptive Malware
Accessibility, ADB, dynamic UI detection and remote control.
Emerging Direction β AI-Assisted Malware
Understand interface β choose action β navigate dynamically β adapt to environment.
Important limitation
The supplied post explicitly says RatHat has not demonstrated fully autonomous cybercrime.
The source also references ESET's earlier documentation of PromptSpy using generative AI for a narrower Android persistence task, showing that AI-assisted malware is not limited to a single family.
16. MITRE ATT&CK / Mobile ATT&CK Mapping
17. What Android Users Should Do
If you suspect compromise, stop using banking applications on that device. Use another trusted device to change passwords, contact your bank, review transactions and revoke suspicious sessions where possible.
18. If You Suspect RatHat or Similar Android Malware
19. CyberRakshakLabs Threat Intelligence Assessment
That potentially changes the economics of mobile malware development. Instead of maintaining large numbers of hardcoded workflows, AI can potentially help interpret the current state and select the next action.
Important: The final AI-agentic stage is an emerging risk described in the supplied content, not something the RatHat report itself proves is already fully autonomous.
20. π― Final Takeaway
RatHat combines social engineering, Accessibility abuse, ADB, credential theft, OTP theft, persistence, reverse proxying and AI-assisted navigation.
CyberRakshakLabs
Think Before You Click. Stay Aware. Stay Secure.