Recently at EFFs Threat Lab, weve been focusing a lot on the Android malware ecosystem and providing tools for its analysis. Weve noticed lot of samples of Android malware in the tor-hydra family have surfaced, masquerading as banking apps to lure unsuspecting customers into installing them. In this post, we will take an example of one such sample and analyze it using open-source tools available to anyone.
The sample well be looking at was first seen on March 1st, 2022. This particular malware presents itself as the banking app for BAWAG, a prominent financial institution in Austria. Upon first run, the app prompts the user to give accessibility services permission to the app. The accessibility services permission grants an app broad access to read the screen and mimic user interaction. Upon granting the permission, the app backgrounds itself. Any attempt by the user to uninstall the app is prevented by the app interrupting and closing the uninstall dialogues. Attempting to open the app again also failsnothing happens.
The Android app manifest file contains a list of permissions, activities, and services that an app provides. If an activity is not listed in the app manifest, the app cant launch that activity. Using an Android static analysis tool like jadx or apktool we can take a look at the manifest XML. The malware apps manifest asks for a wide range of permissions, including the ability to read and send SMS messages (a common way for malware to propagate), request installation and deletion of packages, read contacts, initiate calls, and request the aforementioned accessibility service. In addition, a number of classes are referenced which are not defined anywhere in our jadx-reversed code:
The fact that the manifest references activities, services and receivers it wants to be run without defining them is the first indication that we are dealing with an Android dropper.
An Android dropper is malware which obfuscates its behavior by hiding its payload and only decoding and loading the code it needs at runtime. As Ahmet Bilal Can explains, this makes it harder for AV and security researchers to detect the malware by including reflection, obfuscation, code-flow flattening and trash codes to make [the] unpacking process stealthy. While stealthy, the steps the malware takes to hide itself can still be detected and subverted with a little help from the dynamic instrumentation toolkit Frida. Frida is able to inject itself into the control-flow of a running app, introducing its own code. This can be helpful to detect typical methods malware uses to disguise itself and load the underlying payload. In this case, we can use a short script to detect that Java classes are being loaded dynamically:
Running this code, we get
Our missing classes are indeed being loaded dynamically!
Previous iterations of tor-hydra malware dynamically loaded a dex file (an Android Dalvik executable file), which could be seen with adb logcat, and used the syscall unlink to delete that file, which would be seen in an strace call. For this app, we can use the command
to see the syscalls in real time. We did not observe unlink being used in this sample, so this iteration was doing something different. Java provides a method in java.io.File called delete, which will not trigger the unlink syscall. Using this script, we can detect when that method is used, alert us of the file it attempted to delete, and make it a non-operation:
The first few files deleted are of interest:
Once we issue an adb pull to download the base.apk.gjGyTF81.88g file from the device, we can use jadx again to determine that this includes the missing class definitions referenced in the manifest.
Looking into these files, there is a string obfuscation method that appears thousands of times throughout the code, unaltered from instance to instance:
Wherever we see a call which looks like $(166, 217, 28670) in the code, it refers to this function and uses the $ variable in the same scope to return a string. We can use a Java sandbox like this one to define the locally-scoped $ variable, the $ method, and print out the decoded string.
In sources/com/ombththz/ufqsuqx/bot/network/TorConnectionHelper.java we see a method which looks like a promising lead called loadAdminUrl. Decoding the $(556, 664, 4277) call, we get a base64-encoded onion address:
This address is available over the Tor network, and contains a base64-encoded URL which references the command and control (C&C) server, the server from which the malware operator issues commands. The author of this post reached out to the Tor Project on March 7th informing them of this C&C server. On app bootstrap, the Tor network is connected to by code lifted from Orbot in order to discover the C&C server, and then the Tor connection is promptly dropped. When first doing this investigation, the domain referenced yuuzzlllaa.xyz, but this has since changed to zhgggga.in. We can see a login page for the C&C server administrator when accessed:
One of the main features of the Tor network is censorship-resistance. If you can access the Tor network, you can access information and websites that cannot easily be taken down because of the way the network is architected. This is a good thing for dissidents in censorship regimes or whistleblowers trying to get privileged information to reporters: the services they rely on will be available even if their adversaries dont want them to be. This is a double-sided coin, thoughin this case malware is also able to direct victims devices to C&C servers in a way that cant be taken down. There is no way to have one without the other and keep the integrity of the network intact. In this case, the clearnet domain yuuzzlllaa.xyz was presumably taken down after being reported and then the malware operator spun up another domain at zhgggga.in without much interruption of the malware command and control. In these cases, reporting malicious C&C domains seems like a game of whack-a-mole: as soon as you take one down, the next pops up.
In the file com/ombththz/ufqsuqx/bot/DexTools.java we see an interesting method, run(), which loads a stage-2 payload from the admin C&C url path /payload. This is a dex file which can be decoded by jadx to an app ID of com.fbdevs.payload. Unfortunately for the sake of our analysis, this file contains mostly uninteresting and non-malicious code.
Looking at the om/ombththz/ufqsuqx/bot/components/ path, many of the components seem to be inherited directly from the Android BianLian malware, an excellent analysis of which can be found here. One of the components not included in this previous iteration is under the socks5 path, which opens a proxy server to a specified host in order to receive commands and launch attacks. All the components are activated and controlled by the C&C server through a Firebase Cloud Messaging (FCM) connection, allowing messages targeting specific devices.
Despite relatively state-of-the-art techniques employed to thwart analysis, a few powerful publicly accessible open-source tools were used to interrupt the control flow and reverse engineer this sample. More complex malware will detect hardware profiles and be able to determine that it is being run in an emulator, and change its behavior to further hide its core functionality. Still others will deploy malicious code in deeper stage payloads in an attempt to further bury its true behavior. However, this sample shows how a few simple steps can be taken to peel those layers back to eventually discover the control flow of a new class of malware. Moving forward, other samples in this class can be analyzed in much the same way to track changes in the ecosystem and how malware developers are responding to attempts to mitigate their effectiveness.
Analyzing malware and tracing its evolution is important for fighting back against it. Not only does it result in better signatures for anti-virus software to use and protect users, it helps us understand what protections are necessary on the operating-system level and guides platform security recommendations. Sometimes, it can lead to C&C servers being shut down and the targets of the botnets gaining some much-needed reprieve. And lastly, it gives users insight into what software is running on their devices so they can take control back.
Read the original:
Anatomy of an Android Malware Dropper - EFF
- Anatomy of the Phillips curve - CEPR - June 10th, 2025 [June 10th, 2025]
- Don't Expect Arizona To Return To Grey's Anatomy Anytime Soon After This Exciting Jessica Capshaw Update - Screen Rant - June 10th, 2025 [June 10th, 2025]
- Pacers vs. Thunder NBA Finals: Anatomy of a comeback How the Pacers once again did the unthinkable - Yahoo Sports - June 10th, 2025 [June 10th, 2025]
- Anatomy Of A Debacle: How Mayor Adams Went From Visionary to Bully on E-Bikes - Streetsblog New York City - June 10th, 2025 [June 10th, 2025]
- Anatomy of an At-Bat: How Matt Wallner Conquered Kevin Gausman - Twins Daily - June 10th, 2025 [June 10th, 2025]
- Enhancing anatomy education with virtual reality: integrating three-dimensional models for improved learning efficiency and student satisfaction -... - June 10th, 2025 [June 10th, 2025]
- Greys Anatomy Season 22 Cast Updates: Just Two Actors Confirmed After Shocking Finale, Though 7 More Stars Have Deals to Return - Just Jared - June 10th, 2025 [June 10th, 2025]
- S11E20: 5 Things You Should Know About Tactical Anatomy With Steve Moses - concealedcarry.com - June 10th, 2025 [June 10th, 2025]
- Airport security held Greys Anatomy star for an hour over snack - Yahoo - June 10th, 2025 [June 10th, 2025]
- Wine Walk: The anatomy of a wine bottle, its cork and how it is sealed - The Courier of Montgomery County - June 10th, 2025 [June 10th, 2025]
- MSc grad reflects on learning and legacy in the anatomy lab - Schulich School of Medicine & Dentistry - June 10th, 2025 [June 10th, 2025]
- Greys Anatomy star Ellen Pompeo says TSA detained her over sunflower seeds - Washington Times - June 10th, 2025 [June 10th, 2025]
- Cardiac Anatomy & Orientation of the 3D Heart Part 3 - University of Nebraska Medical Center - June 1st, 2025 [June 1st, 2025]
- Greys Anatomy Star Chris Carmack Teases Link and Jos Season 22 Storyline: Anything Can Happen - Life & Style - June 1st, 2025 [June 1st, 2025]
- Greys Anatomy Star Reveals Her Secret to Flying Under the Radar on Planes - EntertainmentNow - June 1st, 2025 [June 1st, 2025]
- None of her preserved anatomy looked like any other fossil. Scientists Realize That A Fossil Thats Millions Of Years Old Was Fossilized From The... - June 1st, 2025 [June 1st, 2025]
- Greys Anatomy star is fighting to get Denzel Washington on the show: 'Im hoping he does it' - GeekSided - June 1st, 2025 [June 1st, 2025]
- No, Sandra Oh is not watching Greys Anatomy in her free time - GeekSided - June 1st, 2025 [June 1st, 2025]
- Brigitte and Emmanuel Macron the anatomy of a slap - The Spectator World - June 1st, 2025 [June 1st, 2025]
- Sandra Oh Reveals If She Watches Grey's Anatomy Reruns 11 Years Since Cristina Yang Left The Show - Screen Rant - June 1st, 2025 [June 1st, 2025]
- Fan-Favorite Greys Anatomy Star Sandra Oh Reveals Whether She Still Watches the Show or Not - Collider - June 1st, 2025 [June 1st, 2025]
- Greys Anatomy: Why Did Sandra Oh Leave The Show? Revisiting Her Shocking Exit & Remarkable Legacy - Koimoi - June 1st, 2025 [June 1st, 2025]
- Warfare at night, deepfakes by day: The anatomy of a rumour in modern era conflicts - The Indian Express - June 1st, 2025 [June 1st, 2025]
- Greys Anatomy Hunk, 59, Turns Heads in Rare Monaco Outing With Wife - parade.com - June 1st, 2025 [June 1st, 2025]
- Grey's Anatomy season 22 confirmed to premiere in fall 2025 - GeekSided - May 21st, 2025 [May 21st, 2025]
- Greys Anatomy season 21 finale: Where to watch for free tonight - MassLive - May 21st, 2025 [May 21st, 2025]
- Greys Anatomy Showrunner Meg Marinis Confirms Your Fears After That Explosive Cliffhanger Finale - The Hollywood Reporter - May 21st, 2025 [May 21st, 2025]
- 'Grey's Anatomy' Recap: Did Firebomb Just Kill Off Lucas Adams, Teddy Altman, or Miranda Bailey? - TV Insider - May 21st, 2025 [May 21st, 2025]
- Grey's Anatomy season 22 will not introduce any major new additions: 'I have a big enough cast as it is' - GeekSided - May 21st, 2025 [May 21st, 2025]
- 8 Biggest Unanswered Questions & Mysteries After The Grey's Anatomy Season 21 Finale - Screen Rant - May 21st, 2025 [May 21st, 2025]
- Only 2 Grey's Anatomy characters are confirmed to be safe in season 22 - GeekSided - May 21st, 2025 [May 21st, 2025]
- 'Grey's Anatomy': Meredith Puts Herself in Harm's Way Once Again as a Hostage Situation Leaves Grey Sloan Reeling - People.com - May 21st, 2025 [May 21st, 2025]
- This Greys Anatomy character death still remains the shows most gut-wrenching - GeekSided - May 21st, 2025 [May 21st, 2025]
- Anatomy Of A Perfect Trip Cybercaf Across The Algarve - Quartersnacks - May 21st, 2025 [May 21st, 2025]
- Why the Greys Anatomy Hospital Is Facing Another Bomb Threat in Season 21 Finale - E! Online - May 21st, 2025 [May 21st, 2025]
- Streaming Set Another Record In April, But Greys Anatomy And The White Lotus Prove Linears Reach, Nielsen Says - Deadline - May 21st, 2025 [May 21st, 2025]
- 'Grey's Anatomy' Boss Answers the Biggest Questions From That Explosive Season Finale (Exclusive) - parade.com - May 21st, 2025 [May 21st, 2025]
- Greys Anatomy Season-Finale Recap: Explosions in the Sky - Vulture - May 21st, 2025 [May 21st, 2025]
- Greys Anatomy Boss Breaks Down That Explosive Season 21 Finale Cliffhanger, Merediths Surprising Decision - TheWrap - May 21st, 2025 [May 21st, 2025]
- Grey's Anatomy boss confirms one new star will return in season 22 - GeekSided - May 21st, 2025 [May 21st, 2025]
- Greys Anatomy Season 21 Finale Review: I Cant Believe The Show Pulled Off This Cliffhanger Reminiscent Of Its Glory Days - Screen Rant - May 21st, 2025 [May 21st, 2025]
- Grey's Anatomy Finale Preview: Chris Carmack Teases 'Be Afraid' - Us Weekly - May 21st, 2025 [May 21st, 2025]
- ABC NEWS STUDIOS ANNOUNCES HEY BEAUTIFUL: ANATOMY OF A ROMANCE SCAM BEGINS STREAMING MAY 20, ONLY ON HULU - dgepress.com - May 21st, 2025 [May 21st, 2025]
- 5 Grey's Anatomy characters who might not return for season 22 after that fiery cliffhanger - GeekSided - May 21st, 2025 [May 21st, 2025]
- Greys Anatomy Explosion & Possible Character Deaths: Showrunner Explains Why Shes Doing This to Link & Jo - Just Jared - May 21st, 2025 [May 21st, 2025]
- 'Grey's Anatomy' season 21 ending explained: Is Meredith returning to Grey Sloan for good? - Entertainment Weekly - May 21st, 2025 [May 21st, 2025]
- Grey's Anatomy Season 21 Finally Resolved Its Most Frustrating Plot In Limbo - Screen Rant - May 21st, 2025 [May 21st, 2025]
- Grey's Anatomy Season 21 Ending Explained: Amelia Survives A Near-Death Experience While Tragedy Strikes A Fan-Favorite - Screen Rant - May 21st, 2025 [May 21st, 2025]
- James Pickens Jr. Says Every Day Is an Adventure on 'Greys Anatomy' (Exclusive) - People.com - May 21st, 2025 [May 21st, 2025]
- The Doctor Is Out: Greys Anatomy Ends Season 21 With a Devastating Death - Yahoo - May 21st, 2025 [May 21st, 2025]
- Greys Anatomy Season 22 Cast: Only 2 Characters Confirmed Alive After Finale, Though 7 More Actors Have Deals to Return - Just Jared - May 21st, 2025 [May 21st, 2025]
- 'Grey's Anatomy' Interview: James Pickens Jr. Reflects on Pilot and Reveals Season 22 Hopes (Exclusive) - TV Insider - May 21st, 2025 [May 21st, 2025]
- Grey's Anatomy tells fans to "brace yourself" for season finale that's as dramatic as this iconic episode - Digital Spy - May 21st, 2025 [May 21st, 2025]
- I Can't Believe Grey's Anatomy Still Hasn't Told Us Who Adams' Mother Is - Cinemablend - May 21st, 2025 [May 21st, 2025]
- Katherine Heigl Shares Why She's Grateful Her Daughters Aren't Interested in Grey's Anatomy (Exclusive) - parade.com - May 12th, 2025 [May 12th, 2025]
- 'Grey's Anatomy' Fans Are Just Realizing This Fun Fact About the Series That Affects All but 1 Episode - People.com - May 12th, 2025 [May 12th, 2025]
- In a Nutshell: Turning anatomy education into online sensation - Ohio University - May 12th, 2025 [May 12th, 2025]
- 'Grey's Anatomy' Gets Musical Again: Link Serenades Jo With Song at the Wedding Altar - TV Insider - May 12th, 2025 [May 12th, 2025]
- Greys Anatomy Boss Unpacks Jo and Links Momentous Wedding Song, Teases Bonkers Season 21 Finale - TheWrap - May 12th, 2025 [May 12th, 2025]
- Generating cervical anatomy labels using a deep ensemble multi-class segmentation model applied to transvaginal ultrasound images - Nature - May 12th, 2025 [May 12th, 2025]
- Greys Anatomy creator Shonda Rhimes reveals the hardest death she had to write - Yahoo - May 12th, 2025 [May 12th, 2025]
- Katherine Heigl Reveals What 1 Medical Trick She Thinks She Could Still Do After Grey's Anatomy (Exclusive) - parade.com - May 12th, 2025 [May 12th, 2025]
- Greys Anatomy Season 21, Episode 17 Review: As A Long-Time Fan, I Loved This Romantic & Poignant Episode That Felt Like Classic Greys - Screen... - May 12th, 2025 [May 12th, 2025]
- As One Greys Anatomy Couple Weds, Another Breaks Up and a Third Relationship Lands on Life Support - TVLine - May 12th, 2025 [May 12th, 2025]
- Every Wedding on Greys Anatomy , Ranked - Vulture - May 12th, 2025 [May 12th, 2025]
- 'Greys Anatomy': Link Surprises Jo at Their Wedding, Owen Holds onto the Past and 1 Couple Calls It Quits - People.com - May 12th, 2025 [May 12th, 2025]
- Here comes the bride: Where to stream Greys Anatomy for FREE - PennLive.com - May 12th, 2025 [May 12th, 2025]
- Greys Anatomy Preview: Will Link and Jo I Do It Right On Their Wedding Day? Plus, [Spoiler]s Back - TVLine - May 12th, 2025 [May 12th, 2025]
- Greys Anatomy boss reveals the disappointing reason Meredith missed Jo and Links wedding - GeekSided - May 12th, 2025 [May 12th, 2025]
- Anatomy Of Startup Governance Issues, Funding Zooms & More - StartupNews.fyi - May 12th, 2025 [May 12th, 2025]
- Greys Anatomy Shock: Lucas and Simone Split Will Fans Even Miss Them? - Decatur Metro - May 12th, 2025 [May 12th, 2025]
- 9 Secrets of the Greys Anatomy Sets Superfans Need to Know - Architectural Digest - May 12th, 2025 [May 12th, 2025]
- Greys Anatomy Continues to Ignore a Key Character's Storyline (& It's Frustrating Fans) - Comic Book Resources - May 12th, 2025 [May 12th, 2025]
- Jo & Link's Unique Wedding Set-Up Is Exactly Why Their Romance Works In Grey's Anatomy - Screen Rant - May 12th, 2025 [May 12th, 2025]
- Greys Anatomy creator Shonda Rhimes reveals the hardest death she had to write - The Independent - May 12th, 2025 [May 12th, 2025]
- Grey's Anatomy fans are just realizing clever aspect of 'every episode' after 20 years - The Mirror US - May 12th, 2025 [May 12th, 2025]
- Did the Success of The Substance and Anatomy of a Fall Finally Teach Cannes a Lesson? - IndieWire - May 12th, 2025 [May 12th, 2025]
- Grey's Anatomy fans floored after spotting 'hidden message' in every episode - Irish Star - May 12th, 2025 [May 12th, 2025]
- Anatomy of an apprehension: Where are you taking the baby? - Maple Ridge-Pitt Meadows News - May 12th, 2025 [May 12th, 2025]
- Isaiah Washington Says Sandra Oh Brought Him Back on Greys Anatomy Years After Firing - E! Online - April 27th, 2025 [April 27th, 2025]