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
- 19 Most Memorable (and Heart-Wrenching!) 'Grey's Anatomy' Episodes of All Time - PEOPLE - March 30th, 2025 [March 30th, 2025]
- 16 stars you forgot were on Grey's Anatomy before their big break (including future Oscar nominees) - Entertainment Weekly News - March 30th, 2025 [March 30th, 2025]
- "I Cried When He Died": Shonda Rhimes Is Still Deeply Impacted By Killing One Grey's Anatomy Character - Screen Rant - March 30th, 2025 [March 30th, 2025]
- See the Best Greys Anatomy Behind-the-Scenes Photos to Celebrate 20 Years of the Medical Drama - PEOPLE - March 30th, 2025 [March 30th, 2025]
- Katherine Heigl, Jeffrey Dean Morgan reunite to talk Grey's Anatomy , from Denny's death to ghost sex - Entertainment Weekly News - March 30th, 2025 [March 30th, 2025]
- Sandra Oh Is Changing Her Tune on a Potential Return to 'Grey's Anatomy' - PEOPLE - March 30th, 2025 [March 30th, 2025]
- The Scrapped Grey's Anatomy Spin-Off Would Have Ruined The Show's Best Characters - SlashFilm - March 30th, 2025 [March 30th, 2025]
- Anatomy of a flood: The Derna tragedys lessons for Libyan governance - Brookings Institution - March 30th, 2025 [March 30th, 2025]
- 19 Years Later, Shonda Rhimes Still Isnt Over This Greys Anatomy Death (and Neither Are We) - Collider - March 30th, 2025 [March 30th, 2025]
- The perfect palliative balm of Greys Anatomy - Financial Times - March 30th, 2025 [March 30th, 2025]
- 15 Behind-the-Scenes Facts You Didn't Know About Grey's Anatomy, 20 Years After It Premiered - MSN - March 30th, 2025 [March 30th, 2025]
- I Have Zero Endings: Shonda Rhimes Has No Idea How (or When) Greys Anatomy Will End - Collider - March 30th, 2025 [March 30th, 2025]
- My Only Allegiance Is to the Story: Shonda Rhimes Explains Why Shes Killed So Many Beloved Greys Anatomy Characters - Collider - March 30th, 2025 [March 30th, 2025]
- 'Grey's Anatomy' star Ellen Pompeo says $20 million salary brings 'true independence': 'I don't have to do anything I don't want to do' - CNBC - March 30th, 2025 [March 30th, 2025]
- 'I love your song from "Grey's Anatomy"': How the ABC medical drama's soundtrack changed these artists' musical careers - Yahoo... - March 30th, 2025 [March 30th, 2025]
- Shonda Rhimes On The 'Grey's Anatomy' & 'Scandal' Spinoffs That Never Materialized: "We Thought About A Lot Of Things" - Deadline - March 30th, 2025 [March 30th, 2025]
- Shades of Gray in Twenty Years of Greys Anatomy - Books, Health and History - March 30th, 2025 [March 30th, 2025]
- Linda Lowy talks casting Shondaland, from Grey's Anatomy to the best audition she's ever seen - Entertainment Weekly News - March 30th, 2025 [March 30th, 2025]
- Shonda Rhimes is 'forever bitter' about having to fight for 'Grey's Anatomy' musical episode - Entertainment Weekly News - March 30th, 2025 [March 30th, 2025]
- Greys Anatomy: Is It Finally Time for Owen & Teddy to Call it Quits? (POLL) - TV Insider - March 30th, 2025 [March 30th, 2025]
- After 18 Years, Meredith Finally Proves Ellis' Most Hurtful Criticism Wrong In Grey's Anatomy Season 21 - Screen Rant - March 30th, 2025 [March 30th, 2025]
- Arte France Boards Movistar Plus+s The Anatomy of a Moment, From The Plagues Alberto Rodrguez - Variety - March 30th, 2025 [March 30th, 2025]
- Makes Me Just Go, Hmm: Christinas Potential Greys Anatomy Return Addressed By Sandra Oh, Who Admits Her Stance Has Softened After Years Of Hard No -... - March 30th, 2025 [March 30th, 2025]
- Shonda Rhimes Reveals "A Bunch" Of Never Made Grey's Anatomy Spinoffs, Including One Based On The Shepherd Family - Screen Rant - March 30th, 2025 [March 30th, 2025]
- Anatomy of a Massacre - by Theo Padnos - Persuasion - Persuasion | Yascha Mounk - March 30th, 2025 [March 30th, 2025]
- We Thought About a Lot of Things: Shonda Rhimes Discusses Greys Anatomy Spin-Offs That Never Were - Collider - March 30th, 2025 [March 30th, 2025]
- 'Grey's Anatomy' Redefined the Medical Drama on TV - Collider - March 30th, 2025 [March 30th, 2025]
- Greys Anatomy turns 20: How Katherine Heigl pulled off her Emmy upset and remains the only series regular to win - Gold Derby - March 30th, 2025 [March 30th, 2025]
- Why Shonda Rhimes Scrapped Spinoffs of Greys Anatomy and Scandal - TheWrap - March 30th, 2025 [March 30th, 2025]
- Greys Anatomy at 20: From their pretty exciting first day to their linchpin episodes, Chandra Wilson and James Pickens Jr. look back - Gold Derby - March 30th, 2025 [March 30th, 2025]
- 'Grey's Anatomy': Deceit Rocks Grey Sloan, Link and Jo Make a Big Decision and Meredith Faces the Wrath of Richard - PEOPLE - March 15th, 2025 [March 15th, 2025]
- Ellen Pompeo won't let 10-year-old watch Grey's Anatomy , isn't ready for her to see her in her underwear on TV - Entertainment Weekly News - March 15th, 2025 [March 15th, 2025]
- Ellen Pompeo Reveals Why She Doesn't Want Her 10-Year-Old Daughter Sienna to Watch Grey's Anatomy - PEOPLE - March 15th, 2025 [March 15th, 2025]
- How to watch Greys Anatomy' online for FREE without cable - PennLive - March 15th, 2025 [March 15th, 2025]
- Forget Marry Me Chicken: Links Insane Greys Anatomy Breakfast Sandwich Is the Real Deal-Closer - TVLine - March 15th, 2025 [March 15th, 2025]
- Original Grey's Anatomy Cast in Photos: Then and Now - Good Housekeeping - March 15th, 2025 [March 15th, 2025]
- Why Ellen Pompeo Wont Let Her 10-year-old Daughter Watch Greys Anatomy - Hollywood Reporter - March 15th, 2025 [March 15th, 2025]
- Ellen Pompeo's Good American Family Promos Airing During ABC's Grey's Anatomy Night Is Kind Of Trippy, But Her New Hulu Show Has Me Intrigued -... - March 15th, 2025 [March 15th, 2025]
- Ellen Pompeo explains why she doesnt want her 10-year-old daughter watching Greys Anatomy - New York Post - March 15th, 2025 [March 15th, 2025]
- Grey's Anatomy Season 21 Episode 10 Review: I'm So Glad Meredith Is Back In A Refreshing Return To Form For The ABC Show - Screen Rant - March 15th, 2025 [March 15th, 2025]
- Grey's Anatomy Showrunner Weighs In On The Pitt's Success & The Competition In Medical Drama - Screen Rant - March 15th, 2025 [March 15th, 2025]
- Ellen Pompeo on Stepping Back From 'Grey's Anatomy' to Take on Natalia Grace's Story (Exclusive) - Entertainment Tonight - March 15th, 2025 [March 15th, 2025]
- Ellen Pompeo Reveals Hilarious Reason She Wont Let Her Daughter Watch Greys Anatomy - E! Online - E! NEWS - March 15th, 2025 [March 15th, 2025]
- 10 of the Biggest Feuds in Greys Anatomy History - Shondaland.com - March 15th, 2025 [March 15th, 2025]
- Anatomy of a Recession Update: Consumer confidence | Franklin Templeton - Beyond Bulls & Bears - March 15th, 2025 [March 15th, 2025]
- Ellen Pompeo Says 'Grey's Anatomy' Fans Will Be Shocked By Her Role as Natalia Grace's Adoptive Mom - Access Hollywood - March 15th, 2025 [March 15th, 2025]
- A Guide to Security Investments: The Anatomy of a Cyberattack - SecurityWeek - March 15th, 2025 [March 15th, 2025]
- Noah Wyle Says His Kids Have Watched More Greys Anatomy Than ER : Its a Point of Contention (Exclusive) - PEOPLE - March 15th, 2025 [March 15th, 2025]
- Welcome from Head of Department of Anatomy and Neuroscience - News | University College Cork - March 15th, 2025 [March 15th, 2025]
- Greys Anatomy Showrunner Reveals Whether Ellen Pompeo Will Return for Season 22 - Collider - March 15th, 2025 [March 15th, 2025]
- Grey's Anatomy Season 21 Sneakily Continues A Key Station 19 Story A Year After ABC Canceled The Spinoff - Screen Rant - March 15th, 2025 [March 15th, 2025]
- Anatomy of the average American paycheck - Floyd Chronicle & Times - March 15th, 2025 [March 15th, 2025]
- Grey's Anatomy Showrunner Addresses Whether There Could Be A Future Without Any Meredith Grey - Screen Rant - March 15th, 2025 [March 15th, 2025]
- Greys Anatomy Actor Jason George Explains What Its Like Filming Amidst Schmitt And Yasudas Departure - CinemaBlend - March 15th, 2025 [March 15th, 2025]
- The Magic Behind 'Grey's Anatomy': CGI, Medical Expertise, and Hollywood Tricks - Collider - March 5th, 2025 [March 5th, 2025]
- Canadians and Wayne Gretzky: Anatomy of a Relationship on Thin Ice - The New York Times - March 5th, 2025 [March 5th, 2025]
- Spits & Suds: The Anatomy of how trade deadline deals get done in the NHL - 105.3 The Fan - March 5th, 2025 [March 5th, 2025]
- 'Grey's Anatomy' Star Kate Walsh Shares Healthy Habits for Cancer Prevention - Healthline - March 5th, 2025 [March 5th, 2025]
- The Anatomy of Fear: Tips on Scoring a Body Horror Movie - No Film School - March 5th, 2025 [March 5th, 2025]
- Go-to anatomy atlas featuring corpses of Nazi victims revamped by UCLA cardiologist - The Times of Israel - March 5th, 2025 [March 5th, 2025]
- Ellen Pompeo Reveals Which Viral Scene from Greys Anatomy Made Her Oldest Daughter Cry (Exclusive) - PEOPLE - March 5th, 2025 [March 5th, 2025]
- In Karnataka, the anatomy of three riot-like situations - The Hindu - March 5th, 2025 [March 5th, 2025]
- Ellen Pompeo Reveals The Grey's Anatomy's Episode That Made Her Oldest Daughter Cry - Screen Rant - March 5th, 2025 [March 5th, 2025]
- Heres Whats New on TV This Week Including Grey's Anatomy American Idol, The Righteous Gemstones, and More - Collider - March 5th, 2025 [March 5th, 2025]
- Greys Anatomy cast members who have spoken out about their own serious health conditions - Tyla - March 5th, 2025 [March 5th, 2025]
- Greys Anatomy Returns: Everything You Need to Know Ahead of the Midseason Premiere - TVLine - March 5th, 2025 [March 5th, 2025]
- All the Lingering Questions We Need Answered When Greys Anatomy Comes Back - Shondaland.com - March 5th, 2025 [March 5th, 2025]
- Greys Anatomy star Kate Walsh shares important message after being diagnosed with brain tumour - Tyla - March 5th, 2025 [March 5th, 2025]
- 'I Couldn't Hold It Together': Ellen Pompeo Recalls Grey's Anatomy Moment That Brought Her and Her Daughter to Tears - CBR - March 5th, 2025 [March 5th, 2025]
- Greys Anatomy star Kate Walsh reveals very subtle warning sign ahead of brain tumour diagnosis - Tyla - March 5th, 2025 [March 5th, 2025]
- Grey's Anatomy season 21 part 1 recap: All to remember before part 2 arrives - Sportskeeda - March 5th, 2025 [March 5th, 2025]
- Grey's Anatomy Season 21 Episode 9: Release date & time, what to expect, and more - Sportskeeda - March 5th, 2025 [March 5th, 2025]
- The Splendour of Life, Starring Anatomy of a Fall Actor Camille Rutherford, Picked Up by H264 (EXCLUSIVE) - Variety - February 25th, 2025 [February 25th, 2025]
- Greys Anatomy Sneak Peek: Its Tears for Fears in Your First Look at the Midseason Premiere - TVLine - February 25th, 2025 [February 25th, 2025]
- Can a Longtime Greys Anatomy Stan Learn to Love the Grim Medical Reality of The Pitt? - Vogue - February 25th, 2025 [February 25th, 2025]
- Greys Anatomy Is Coming Back Next MonthHeres What We Know About That Cliff-Hanger - Glamour - February 25th, 2025 [February 25th, 2025]
- New Extremity Box Set Collects 'High Tension,' 'Anatomy of Hell,' 'Frontier(s),' 'Martyrs' on Blu-ray - Bloody Disgusting - February 25th, 2025 [February 25th, 2025]
- When Does 'Grey's Anatomy' Return With New Episodes? - TV Insider - February 25th, 2025 [February 25th, 2025]
- Books of Discovery Expands Access to Premier Anatomy and Physiology Textbooks for Educators and Students - EIN News - February 25th, 2025 [February 25th, 2025]
- 10 Scenes That Made Grey's Anatomy Fans Quit the Show (& Never Look Back) - CBR - February 25th, 2025 [February 25th, 2025]