Hydra
- Type
- Banking trojan
- Capabilities
- Credential theftSession hijackingKeyloggingExfiltrationPersistenceDefense evasion
- Delivery
- PhishingSmishingFake updateLure
- Platforms
- Android
Hydra is an Android banking trojan that steals financial credentials, authentication data, and other sensitive information from compromised mobile devices. It uses fraudulent overlays and webinjects to impersonate legitimate applications, including banking and cryptocurrency applications. Its capabilities include accessibility-based keylogging, SMS and notification interception, contact collection, cookie theft through WebView, and theft of one-time passwords and device-lock PINs. Hydra can also manipulate call forwarding, execute USSD requests, and send bulk SMS messages to stolen contacts for smishing.
Hydra abuses Android Accessibility Services to capture user input and hinder removal. Analyzed variants use packing, dynamically loaded DEX payloads, encrypted strings, and emulator checks to obstruct analysis. Some early droppers concealed executable code within image data and restricted payload execution using time and country checks. Variants have also used Tor-based communication to retrieve command-and-control information and maintained fallback infrastructure.
Hydra has been distributed through phishing websites and malicious Google Play applications masquerading as legitimate utilities. These applications can retrieve the banking payload separately and present installation as a required update. Distribution has involved DawDropper and Brunhilda-operated dropper campaigns. Activity has targeted banking users in Turkey, Colombia, Europe, and the United States. Separately, the Russia-linked cluster UNC5125, also known as FlyingYeti or UAC-0149, has used GREYBATTLE, a customized Hydra derivative, to steal credentials and data while targeting Ukrainian military users.
Associated threat actors
3 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
In the first case, we observed Brunhilda posing as a QR code creator app, Brunhilda dropped samples from established families, like Hydra, as well as novel ones, like Ermac.
"...GREYBATTLE, a bespoke version of the Hydra banking trojan..."
"...GREYBATTLE, a bespoke version of the Hydra banking trojan..."
Techniques & procedures
45 distinct techniques documented for this family, organized by ATT&CK tactic.
Resource Development
1 technique
Resource Development
T1588.002 — Obtain Capabilities: Tool (Resource Development)
Initial Access
3 techniques
Initial Access
Using the discovered wordlist with Hydra, valid credentials are obtained through a brute-force attack. With authenticated WordPress access...
BRAND Generates a (d)efault (p)assword (l)ist from the local file ... limiting the output to BRAND systems, using the format username:password
Email attachments continue to be the most common delivery mechanism. These typically contain macros or embedded scripts that execute malware under the guise of legitimate business communication.
Execution
3 techniques
Execution
After these breakpoints, app will create dex file and load it. You will see Accessibility page pop-pup if you do it correctly.
the user is forced to update the app in order to continue using the app... the user will be prompted to download and install it.
"It uses the process hijacking technique I described at SyScan presentation. Instead of injecting a library it leaves the process in a suspended state and makes its PID available for the userland daemon."
Persistence
2 techniques
Persistence
Using the discovered wordlist with Hydra, valid credentials are obtained through a brute-force attack. With authenticated WordPress access...
BRAND Generates a (d)efault (p)assword (l)ist from the local file ... limiting the output to BRAND systems, using the format username:password
Privilege Escalation
4 techniques
Privilege Escalation
"Hydra is sample code of a kernel extension that will intercept process creation, suspend, and communicate it to a userland daemon that will be in charge of patching the application. It uses the process hijacking technique... Instead of injecting a library it leaves the process in a suspended state and makes its PID available for the userland daemon. This daemon will be responsible for patching and resuming the process after."
Using the discovered wordlist with Hydra, valid credentials are obtained through a brute-force attack. With authenticated WordPress access...
BRAND Generates a (d)efault (p)assword (l)ist from the local file ... limiting the output to BRAND systems, using the format username:password
After successfully downloading the “update”, the user will be asked for the permission to install apps from unknown sources.
Stealth
10 techniques
Stealth
OS X Kernel Rootkits (duh!). ... Zombie rootkits! ... Install rootkit code. Fix mem permissions and offsets. Redirect execution to zombie. Create kernel memory leak. Return KERN_FAILURE.
Dropper apps extract dex file from png file with kinda stenography and downloads malicious app from command and control server with dropped dex.
These apps posed as QR code scanners, PDF scanners, and cryptocurrency apps.
"Hydra is sample code of a kernel extension that will intercept process creation, suspend, and communicate it to a userland daemon that will be in charge of patching the application. It uses the process hijacking technique... Instead of injecting a library it leaves the process in a suspended state and makes its PID available for the userland daemon. This daemon will be responsible for patching and resuming the process after."
If you look for dropped file in filesystem, you won’t see anything. File is removed with remove .
Using the discovered wordlist with Hydra, valid credentials are obtained through a brute-force attack. With authenticated WordPress access...
BRAND Generates a (d)efault (p)assword (l)ist from the local file ... limiting the output to BRAND systems, using the format username:password
As you can see there are functions : getSimCountryISO , getNetworkCountryIso , getCountry and one suspicious string : tr . Without running we can assume code will check if these function’s return values are equals to tr . I know this app targets Turkish people so this is reasonable to avoid sandbox and even manual analyze.
First, it checks the time and if the condition holds, the app will load the native library and call fyndmmn(Hdvhepuwy.j());
"It uses the process hijacking technique I described at SyScan presentation. Instead of injecting a library it leaves the process in a suspended state and makes its PID available for the userland daemon."
Defense Impairment
1 technique
Defense Impairment
"Using this technique there is no need to resign a codesign protected application because it acts after those checks are done."
Credential Access
11 techniques
Credential Access
the threat actor was observed dropping and executing open source and free tools such as Hydra, SecretsDump, and CrackMapExec.
Hydra is another android bankbot variant. It uses overlay to steal information like Anubis.
Keylogging: Hydra abuses the Accessibility permissions to set up an Accessibility service that receives every Accessibility event happening on the infected device. This way the malware receives change events for TextFields (to steal usernames and passwords) and button clicks.
Overlays/Injections: At the beginning of the infection, it sends a few requests to the C2 server, and receives a list of targeted applications and a URL that points to a ZIP file which contains the corresponding injections... Hydra saves these injections locally and shows them as soon as it detects a user opening a banking application.
Credentials : credential-attack (Hydra, hashcat, john) ; Imagicle CTI brute-force
“The question pointed directly at SSH user alice with a weak password, so I brute-forced it with Hydra.”
The threat actors then likely used password-cracking techniques to obtain the plaintext password.
Among the new tools are additions focused on credential testing, including legba and the re-added hydra-gtk. Their inclusion reflects how identity-based attacks—including password spraying, credential reuse, and authentication testing—continue to play a central role in modern security assessments.
These tools act as a wake-up call: if you aren't enforcing MFA, disabling legacy authentication, and proactively monitoring for password-spraying attempts, your infrastructure is likely the low-hanging fruit in a credential-stuffing campaign.
Around June 2022 we found new samples introducing this new feature used to steal cookies from sessions after the victims log in to their accounts... after the victim successfully logs in to his account, the cookies of the loaded website in the WebView are forwarded to the C2 server.
dpl4hydra Generates a (d)efault (p)assword (l)ist as input for THC hydra
Discovery
5 techniques
Discovery
Hydra implements features to steal other information from the infected device... such as... a list of installed applications...
Filesystem access ... Very easy to do using VFS functions. ... Ability to read and write anywhere.
As you can see there are functions : getSimCountryISO , getNetworkCountryIso , getCountry and one suspicious string : tr . Without running we can assume code will check if these function’s return values are equals to tr . I know this app targets Turkish people so this is reasonable to avoid sandbox and even manual analyze.
First, it checks the time and if the condition holds, the app will load the native library and call fyndmmn(Hdvhepuwy.j());
This behavior is in line with Anatsa moving from region to region, constantly updating its list of targeted financial institutions.
Lateral Movement
2 techniques
Lateral Movement
--hydra 自动化爆破支持协议:ssh,rdp,ftp,smb,mysql,mssql,oracle,postgresql,mongodb,redis
Launching Hydra against SSH ... Result: [22] [ssh] host: 10.48 . 176.143 login: marco password: Security2024! ... ssh marco @10 .48.176.143
Collection
5 techniques
Collection
Hydra is another android bankbot variant. It uses overlay to steal information like Anubis.
Keylogging: Hydra abuses the Accessibility permissions to set up an Accessibility service that receives every Accessibility event happening on the infected device. This way the malware receives change events for TextFields (to steal usernames and passwords) and button clicks.
Overlays/Injections: At the beginning of the infection, it sends a few requests to the C2 server, and receives a list of targeted applications and a URL that points to a ZIP file which contains the corresponding injections... Hydra saves these injections locally and shows them as soon as it detects a user opening a banking application.
webinjects can alter what the user sees on his/her browser, as opposed to what's in fact being sent by the server... the webinject will interpret an identical design of legitimate pages from popular services.
The malware collect the contacts stored in the victim’s device and send it to C2 server. And smishing the stolen numbers.
Command and Control
10 techniques
Command and Control
When we download mirrors file from http://lalabanda.com/api/mirrors , we will find encoded domains. I guess when the main C2 server is down, the malware will communicate with the mirrors or domains that we downloaded.
Dropper apps extract dex file from png file with kinda stenography and downloads malicious app from command and control server with dropped dex.
Hydra creates a POST request to send credentials or cookies to the C2 server.
Hydra invece permette di monitorare la navigazione online, individuando le applicazioni usate, i siti web visitati, e se si fa uso di VPN o del Tor Browser
Using Tor: This variant includes a Tor (.onion) URL to the endpoint ‘/api/mirrors’. As response, it will receive a Base64-encoded JSON with the list of C2 servers to use. This variant includes code to download Tor native libraries in order to connect to this ‘backup C2’ using the Tor network.
In this moment, Anatsa payload is downloaded from the C2 server(s), and installed on the device of the unsuspecting victim.
Hydra includes a screencast component that sends screenshots to the C2 server and receives commands used to simulate Accessibility events (click buttons, enter text in TextFields, etc.). This way the TAs can manipulate the target application on the victim’s device to monetize the account associated with that application.
Using Tor: This variant includes a Tor (.onion) URL to the endpoint ‘/api/mirrors’. As response, it will receive a Base64-encoded JSON with the list of C2 servers to use... Using GitHub: This variant includes a GitHub repository file containing a Base64-encoded JSON object with the list of C2 servers... Hardcoded C2 server: This variant includes the C2 server in the binary itself and eventually sends a request to the path ‘/api/mirrors’ in order to get a new list of C2 servers.
MITRE ATT&CK® Techniques... Command and Control T1571 Non-Standard Port
The below code has been used to create a TOR connection that will receive the C&C URL.
Impact
1 technique
Impact
Этот крипто-вымогатель шифрует данные пользователей с помощью AES (режим GCM или похожий) + RSA-2048... К зашифрованным файлам добавляется расширение: .Void
Observables
88 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
26 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.