Hydra
- Type
- Banking trojan
- Capabilities
- Credential theftSession hijackingKeyloggingExfiltrationPersistenceDefense evasion
- Delivery
- PhishingSmishingLureFake update
- Platforms
- Android
Hydra is an Android banking trojan that steals financial credentials and other sensitive information through application overlays, keylogging, and abuse of Android Accessibility Services. Observed campaigns have targeted banking users in Turkey, other European countries, Colombia, and the United States. Its targets also include cryptocurrency applications and other online services.
Hydra displays fraudulent interfaces over targeted applications to capture credentials and authentication data. Its capabilities include stealing SMS messages, one-time passwords, device lock PINs, contacts, browser cookies, and notification contents. Cookie theft is implemented through WebView-based browsing. The malware can hide intercepted notifications, manipulate call forwarding, execute USSD codes, and send bulk SMS messages to harvested contacts for smishing. Accessibility abuse also helps it hinder uninstallation. Captured information is exfiltrated to command-and-control infrastructure; observed variants use fallback servers and Tor-related mechanisms to retrieve command-and-control information.
Distribution includes phishing websites and staged delivery through malicious Google Play applications masquerading as document scanners, QR utilities, and other legitimate tools. Droppers prompt victims to install purported updates that contain the banking payload. Hydra has been delivered through DawDropper and campaigns associated with Brunhilda, with Gymdrop also appearing in its distribution ecosystem. Payloads use packing, dynamic code loading, and anti-emulation checks. Some associated droppers conceal executable code within images and apply time or country checks before loading it.
Hydra has also been adapted beyond financially motivated campaigns: UNC5125, also tracked as FlyingYeti and UAC-0149, used a bespoke derivative named GREYBATTLE to steal credentials and data in operations targeting Ukrainian military personnel.
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
The scripts carry credentials for more than a dozen MySQL accounts on the victim’s hosting ranges, including one account with read and write access to the production database.
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
The scripts carry credentials for more than a dozen MySQL accounts on the victim’s hosting ranges, including one account with read and write access to the production database.
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."
The scripts carry credentials for more than a dozen MySQL accounts on the victim’s hosting ranges, including one account with read and write access to the production database.
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 .
The scripts carry credentials for more than a dozen MySQL accounts on the victim’s hosting ranges, including one account with read and write access to the production database.
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.
Массовые неудачные логины с одного IP - Brute Force (T1110, Credential Access)
ARTEX tests weak passwords and brute forces sign-in forms.
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
27 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.