RatHat Android Malware Uses AI to Steal Banking Credentials

New AI-Powered Android Malware 'RatHat' Steals Financial Data

HIGH
September 22, 2026
4m read
MalwareThreat ActorMobile Security

Related Entities

Threat Actors

China-based operators

Organizations

Google ZimperiumMalwarebytes

Products & Tech

Google Gemini Android Debug Bridge (ADB)GoFast Reverse Proxy (FRP)Android

Other

RatHat

Full Report

Executive Summary

A new and highly sophisticated Android remote access trojan (RAT) named RatHat has been identified in the wild. Attributed to Chinese-speaking threat actors, this malware distinguishes itself by leveraging generative AI, reportedly Google Gemini, to automate its malicious activities. It is distributed through smishing and malvertising campaigns that lead victims to fake app stores. Once installed, RatHat abuses Android's Accessibility Services to gain deep control over the device, enabling it to steal banking credentials, PINs, and multi-factor authentication (MFA) codes. The malware's advanced persistence and control mechanisms, including the use of an embedded Android Debug Bridge (ADB) library, make it exceptionally dangerous and difficult to remove without a full factory reset.


Threat Overview

RatHat represents a significant evolution in mobile malware, moving beyond pre-scripted actions to dynamic, AI-driven control. The attack begins with social engineering, luring users to download what appear to be legitimate applications from counterfeit Google Play Store pages. After installation, the malware requests extensive permissions, particularly focusing on Android's Accessibility Services, by promising financial incentives or claiming to be necessary for network functions.

Once permissions are granted, the malware's core functionality activates. Its most novel feature is the use of a generative AI model to interpret the device's screen layout (via the accessibility tree) and decide where to tap and scroll. This allows it to navigate complex app interfaces, fill in forms, and bypass security prompts in a human-like manner that evades behavior-based detection. The malware establishes a covert command-and-control (C2) channel and uses an embedded Android Debug Bridge (ADB) library to enable wireless debugging, granting it shell-level access to the device. This allows for credential theft through screen overlays, keylogging by recording touch coordinates, and interception of SMS messages containing one-time passwords (OTPs).


Technical Analysis

The RatHat infection chain and operational model are multi-staged and complex:

  1. Initial Access: Victims are targeted via smishing and malvertising (T1566.002 - Spearphishing Link). They are directed to a fake app store to download a trojanized application.
  2. Permissions Abuse: The malware coerces the user into granting Accessibility Service permissions (T1629 - Abuse Elevation Control Mechanism). This is the critical step that enables all subsequent actions.
  3. Privilege Escalation & Control: RatHat uses its permissions to enable Wireless Debugging in the Developer Options. It then leverages an embedded Android Debug Bridge (ADB) library to self-connect to the device's debugging interface (T1473 - Channel Internal Connections), achieving powerful shell access without an external computer.
  4. AI-Driven Navigation: The malware sends the device's accessibility tree (an XML representation of the on-screen UI elements) to a Google Gemini endpoint. The AI processes this information and returns precise coordinates for synthetic taps and scrolls, which the malware executes (T1417.001 - Input Capture: Keylogging). The AI prompts are reportedly written in Chinese.
  5. Data Theft: With full control, RatHat performs several malicious actions:
    • Overlay Attacks: It presents fake login screens over legitimate banking and financial apps to steal usernames and passwords (T1417.002 - Input Capture: GUI Input Capture).
    • Keylogging: A Go-based agent reads raw touch event data from the kernel (/dev/input/event*) and reconstructs PINs and unlock patterns.
    • SMS Interception: It reads incoming SMS messages to steal OTPs and MFA codes (T1411 - Data from Information Repositories).
  6. Persistence: A hidden background service ensures the malware can reinstall itself and restore its permissions if the user attempts to remove it (T1648 - System Services). The architecture also involves a Fast Reverse Proxy (FRP) client to maintain the C2 connection.

Impact Assessment

The primary impact of a RatHat infection is financial theft. By targeting banking applications and cryptocurrency wallets, the attackers can drain user accounts. The theft of credentials and personal information also exposes victims to identity theft and further fraud. For organizations with Bring Your Own Device (BYOD) policies, an infected device on the corporate network could serve as a potential entry point for a wider breach, although the malware's primary focus appears to be personal financial data. The sophisticated nature of the malware and its persistence mechanisms mean that the average user is unlikely to successfully remove it, leading to prolonged compromise and data loss. The only confirmed remediation is a full factory reset, which results in the loss of all data on the device that is not backed up.


IOCs — Directly from Articles

No specific file hashes, domains, or IP addresses were provided in the source articles.


Cyber Observables — Hunting Hints

Security teams may want to hunt for the following patterns to detect potential RatHat activity on managed mobile devices:

Type
process_name
Value
com.android.shell
Description
The process associated with ADB shell access. Unexpected activity from this process could indicate compromise.
Context
EDR/MDM logs
Confidence
high
Type
log_source
Value
Android Developer Options logs
Description
The enabling of Wireless Debugging on a device where it is not standard policy.
Context
MDM/Device Policy Auditing
Confidence
high
Type
network_traffic_pattern
Value
Outbound connections to generativelanguage.googleapis.com
Description
Traffic to Google's Gemini API endpoint from non-standard applications could indicate AI-driven malware.
Context
Network Firewall/Proxy Logs
Confidence
medium
Type
file_path
Value
/dev/input/event*
Description
Direct access to raw input device files by a user-installed application is highly suspicious.
Context
Mobile EDR/File Integrity Monitoring
Confidence
high
Type
command_line_pattern
Value
adb pair or adb connect
Description
Commands used to establish a wireless debugging session, especially if initiated by an on-device process.
Context
Process monitoring on device
Confidence
high

Detection & Response

Detection:

  • Mobile Device Management (MDM) / Unified Endpoint Management (UEM): Configure policies to alert on or block the enabling of Developer Options and Wireless Debugging. Monitor for applications that request excessive Accessibility Service permissions.
  • Network Monitoring: Analyze traffic from mobile devices. Look for unusual outbound connections, especially to known AI service endpoints like those for Google Gemini, from applications that have no legitimate reason to use them. D3FEND's Network Traffic Analysis (D3-NTA) is critical here.
  • Endpoint Detection (Mobile EDR): If available, deploy mobile EDR solutions that can monitor for suspicious process behavior, such as an application spawning an adb shell or accessing raw input device files. D3FEND's Process Analysis (D3-PA) can help identify these anomalous actions.

Response:

  1. Isolate: Immediately disconnect the infected device from all networks (Wi-Fi, cellular, Bluetooth) to prevent further data exfiltration or lateral movement.
  2. Credential Reset: From a separate, trusted device, change the passwords for all accounts accessed on the compromised phone, including banking, email, and social media.
  3. Revoke Sessions: Log out of all active sessions for critical applications.
  4. Eradication: Due to the malware's deep integration and persistence, the only recommended method of removal is a factory reset of the device. Instruct the user not to restore from a recent backup that may contain the malicious application.

Mitigation

  • User Training: Educate users to be skeptical of unsolicited messages (smishing) and to only download applications from the official Google Play Store. Train them to scrutinize permission requests, especially for Accessibility Services, which grant powerful control. See M1017 - User Training.
  • Restrict Sideloading: Use MDM/UEM policies to block the installation of applications from unknown sources (sideloading). This is a primary defense against malware distributed outside of official app stores. This aligns with D3FEND's Executable Denylisting (D3-EDL).
  • Disable Developer Options: For corporate-managed devices, enforce policies that disable Developer Options and ADB access entirely, unless explicitly required for a specific job function. This is a form of M1028 - Operating System Configuration.
  • Application Vetting: Implement a process for vetting applications before they are allowed on corporate devices, even if downloaded from the official Play Store. This can be supported by Mobile App Reputation Services.

Timeline of Events

1
September 22, 2026
This article was published

MITRE ATT&CK Mitigations

Train users to recognize smishing attempts and the dangers of granting excessive permissions, especially to Accessibility Services.

Prevent the installation of applications from untrusted, third-party sources (sideloading) to block the initial infection vector.

Harden Android devices by disabling Developer Options and Wireless Debugging through MDM/UEM policies.

Deploy mobile threat defense (MTD) or mobile EDR solutions to detect malicious application behavior and known malware signatures.

Sources & References

RatHat Android Trojan Uses AI for Automation
SecurityWeek (securityweek.com) September 21, 2026
What is RatHat malware?
PCRisk (pcrisk.com) September 18, 2026
Bank PINs, logins being stolen through new Android malware
Cyber Daily (cyberdaily.au) September 22, 2026

Article Author

Jason Gomes

Jason Gomes

• Cybersecurity Practitioner

Cybersecurity professional with over 10 years of specialized experience in security operations, threat intelligence, incident response, and security automation. Expertise spans SOAR/XSOAR orchestration, threat intelligence platforms, SIEM/UEBA analytics, and building cyber fusion centers. Background includes technical enablement, solution architecture for enterprise and government clients, and implementing security automation workflows across IR, TIP, and SOC use cases.

Threat Intelligence & AnalysisSecurity Orchestration (SOAR/XSOAR)Incident Response & Digital ForensicsSecurity Operations Center (SOC)SIEM & Security AnalyticsCyber Fusion & Threat SharingSecurity Automation & IntegrationManaged Detection & Response (MDR)

Editorial Standards & Analyst Review

CyberNetSec.io uses automation to assist source monitoring, deduplication, observable extraction, and structured intelligence generation. Published analysis follows human-defined editorial standards and adds defensive context including MITRE ATT&CK, D3FEND, STIX, and Sigma where applicable. Read our editorial policy.

Tags

RatHatAndroidMalwareRATAIMobile SecurityFinancial MalwareSmishing

📢 Share This Article

Help others stay informed about cybersecurity threats

🎯 MITRE ATT&CK Mapped

Every tactic, technique, and sub-technique used in this threat has been identified and mapped to the MITRE ATT&CK framework for consistent, actionable threat language.

🧠 Enriched & Analyzed

Observables and indicators of compromise (IOCs) have been extracted and cataloged. Risk has been assessed and correlated with known threat actors and historical campaigns.

🛡️ Actionable Guidance

Detection rules, incident response steps, and D3FEND-aligned mitigation strategies are included so your team can act on this intelligence immediately.

🔗 STIX Visualizer

Structured threat data is packaged as a STIX 2.1 bundle and can be visualized as an interactive graph — relationships between actors, malware, techniques, and indicators.

Sigma Generator

Sigma detection rules are derived from the threat techniques in this article and can be converted for deployment across any major SIEM or EDR platform.