Mobile Malware Analysis Part 6 – Xenomorph

Application Detail

Name: Chrome

Package: com.givemountaintnk

SHA-256 Hash: a610ed6f7e7257d7abd396cc8906d35dccde0bd7a205a90a95b2de52df3efc1f

Introduction

Welcome to the sixth installment of our Mobile Malware Series, dedicated to dissecting the latest threats and fortifying your cybersecurity defenses. In this edition, we turn our attention to the recent version of Xenomorph malware. This article navigates the complexities of handling obfuscated code, providing insights into uncovering the original malware payload loaded dynamically through our in-depth analysis.

Additionally, we explore the crucial task of identifying the malware’s overlay page—a pivotal element employed for phishing purposes.

Analysis

Here is the initial analysis check by VirusTotal

VirusTotal Check

Now, let’s open this sample in JADX and start analyzing its Manifest file to learn more about its permissions and components.

Android Manifest.xml

When we go through the Permission tags, we can see the standard permissions like android.permission.READ_SMS , android.permission.WAKE_LOCK , android.permission.SEND_SMS and much more. Things get more interesting when we look at the components.

The reason why it is interesting is that literally every component defined in the Manifest file is not present in the disk (or APK) which probably means they are getting dynamically loaded.

But luckily we have an Application Subclass that is present in the APK for us to start our analysis.

Now, some people might ask why the application subclass is important, and we are starting the analysis from this class. Starting the analysis from the Application subclass is crucial because it serves as the entry point and central hub of an application, influencing its overall structure and behavior.

So let’s start our analysis from the Application class itself.

Class:`com/great/sail/RIdTkEzPiQsTqYiZwGcRgIjXzKeJbJoSoAeUkOe`

This doesn’t look good, as the variables and the strings are hidden/obfuscated by the malware authors. Particularly if we look at the function definition, we could see that most of the lines are dead code. To counter this, let’s use a deobfuscation tool called Simplify. Simplify works by virtually executing an app and then trying to optimize the code so that it behaves identically but is easier for a human to understand. Simplify can be used to:

  • Decrypt strings
  • Remove reflection
  • Rename methods and classes
  • Remove unused code
  • Simplify complex code

After setting up this tool, we can use the tool on this class.

Here is the command,

				
					java -jar simplify-1.3.0.jar -it 'com/great/sail/RIdTkEzPiQsTqYiZwGcRgIjXzKeJbJoSoAeUkOe' ChromeBrowser.apk
				
			

It takes around 5-6 minutes to finish its process. After the process is over, we will get a new APK named ChromeBrowser_simple.apk. The APK will now have the strings in an unobfuscated and readable format.

Now that we have cleared this obstacle, let’s start our analysis from attachBaseContext(). While attachBaseContext() is typically handled internally by the Android framework, developers can override this method for specific purposes. For example, overriding attachBaseContext() allows developers to customize the context hierarchy or perform custom initialization tasks before the component is fully initialized.

Now that we have cleared this obstacle, let’s start our analysis from attachBaseContext().

RIdTkEzPiQsTqYiZwGcRgIjXzKeJbJoSoAeUkOe.attachBaseContext()

We could see a lot of dead code. But, amongst these dead codes, we could see functions like getAbsolutePath(), new File(), and if we check the stocktrim() function we could see the following code base.

RIdTkEzPiQsTqYiZwGcRgIjXzKeJbJoSoAeUkOe.stocktrim()

A file from the assets directory is getting copied in the location specified byszPathSrcApk variable. So if we check for the references for the variable PHmBeUkOoMpLlWqLoKrQbSfJfWeTrBsMbJfKzXpTaRoImBjFrKs we can see it specifies a file named plMHAd.json. This could be the DEX File that contains code for the other components.

But unfortunately, that file has nothing inside of it.

Since we weren’t able to find any information regarding DEX Loading via static way, let’s try it using Medusa. Medusa is an open-source binary instrumentation framework based on Frida that facilitates the dynamic analysis of Android and iOS applications. It is designed to automate various processes and techniques commonly employed during mobile application security testing, enabling security researchers and developers to efficiently assess the security posture of their applications.

Haa Yess!! We found our DEX file in the name of clknyuynpsrmkt in the cache directory of this app in our emulator, and also we could see calls being made to classes like p095k, p071e which are the missing components from this sample. Let’s pull it up and analyze it.

But there is still a question that is yet to be answered – What code is responsible for the DEX file being created in our device, since there is no DexClassLoader function call in our APK? That’s when our attention turned toward the native/JNI Code.

So we opened the library in Ghidra and took our time to decompile the strings. After some time, the strings started looking like this,

So we could see the file name (clknyuynpsrmkt) which is actually located in the res/raw directory. Going deep into this native library, we could see strings like ClassLoader, and FileInputStream being passed to CallObjectMethod.

Now that we cleared our doubt, let’s continue analyzing the clknyuynpsrmkt DEX file.

So let’s start from the Main Activity (p068r.java)

If we check Cfor.ifdf, we can see its value is set by Cbreak.fddo("f4e1bcad72fdddbe26") . Let’s open up our IDE and decode this.

Here is the link to the code: JDoodle

Now we could say Cbreak.fddo("f4e1bcad72fdddbe26") decodes as pittsep12 .

Tip: Its always better to rename variables and functions to something which we can relate. Like in this case, we could rename Cfor.ifdf as mw_str_pittsep12. This also signifies that we have analyzed that particular variable or function.

Similarly,

Cthrow.m163this and Cthrow.m158case perform write and read operations on a shared preference, respectively.

But a thing to note is the function Cgoto.sartjsrtfjsrfjtsrtjgfhe registers a receiver p031d.

Looking into function y, it in turn called function z which contains the following code.

fddo.Cgoto.z()

If we skip the initial try-catch and if-else block, we could see a function call to method t (since !p048b.ifdf will always be true),

fddo.Cgoto.t()

Here we could see that the class (i.e. Service p048b) passed as the parameter to this function is started as a service. So let’s analyze the service.

Before beginning our analysis on Service p048b, we look at line 1181 in function z

				
					((AlarmManager) context.getSystemService("alarm")).setRepeating(0, System.currentTimeMillis(), 60000L, PendingIntent.getBroadcast(context, 0, new Intent(context, p071e.class), 0));
				
			

The purpose of this line is to use the AlarmManager class to run a code after a certain time. In this case is class p071e.

com.givemountaintnk.p071e

As I expected, they are calling function z again which we just now analyzed, which means Service p048b is really important to this malware sample.

Class `com.givemountaintnk.p048b`

Tip: Always begin analyzing a Foreground Service from the function onStartCommand

p048b.OnStartCommand()

Since the intent doesn’t have any extras and ifdf is false, let’s move to the else part.

Lets check Cgoto.dfhaefdhadfhdfherh()

fddo.Cgoto.dfhaefdhadfhdfherh()

Haa yes, We could see that the sample is checking whether it has accessibility settings have been enabled or not. If the accessibility settings haven’t been enabled, then in m25import(),

				
					//com.givemountaintnk.p048b.m25import
private void m25import(Context context) {
  p044l.fddo(context, this);
  p044l.m17for(context);
  f16for = true;
}
				
			

Looking into function fddo,

				
					//com.givemountaintnk.p044l.fddo()
public static void fddo(Context context, Service service) {
	service.startForeground(2777, (Cgoto.ifdf >= Cgoto.f64case ? new Notification.Builder(context, Cgoto.ifdf >= Cgoto.f64case ? ifdf(context, Cbreak.fddo("f7edbaaf68fbc8"), Cbreak.fddo("e7e0a9b76ffdc1")) : "") : new Notification.Builder(context)).setOngoing(true).setSmallIcon(context.getResources().getIdentifier("icon", "drawable", context.getPackageName())).setPriority(-2).setCategory("service").build());
}
				
			

In essence, a notification is being produced. By linking all of the previously discussed functions, it can be established that this application will generate a notification until accessibility settings are permitted. Let’s validate this by installing this sample in an emulator.

Yes indeed, we get a notification to enable accessibility settings.

Let’s come back to finish analyzing the remaining code in the MainActivity (p068r)

In line 41 we could see an if-else block and if the condition is successful, activity p039b will start.

Class com.givemountaintnk.p039b

On checking the onCreate method, we could see that there are a couple of checks for intents and extras. Also, 2 functions are repeatedly used, and they are Cclass.m57else() and Cgoto.dgjaertjardthjdgu().

In method m57else(),

Class `com.givemountaintnk.p039b`

On checking the onCreate method, we could see that there are a couple of checks for intents and extras. Also, 2 functions are repeatedly used, and they are Cclass.m57else() and Cgoto.dgjaertjardthjdgu().

In method m57else(),

Seeing strings like inj_acsband HTML gives a feel we could be seeing a malicious HTML script used by the attackers. We wouldn’t be able to view the contents of the variable (probably because it’s too much big). So let’s get the value by decompiling the APK.

Here is the script to decode the huge Base64 encrypted data.

				
					import java.io.UnsupportedEncodingException;
import java.util.Base64;

public class MyClass{
    public static final String[] f60else = {"PHNjcmlwdD4NCiAgICB2YXIgbGFuZyA9ICclTEFORyUnIC8vIERldmljZSBsYW5ndWFnZSAoZW4sIGRlLCBlcykNCiAgICB2YXIgYXBwX3RpdGxlID0gJyVBUFBfVElUTEUlJyAvLyBib3QgdGVtcGxhdGUgdGl0bGUgKCdBbmRyb2lkIFVwZGF0ZScpDQogICAgdmFyIGlzX3hpYW9taSA9ICgnJUlTX1hJQU9NSSUnID09ICd0cnVlJykgLy8gQWNzYiBTZXR0aW5ncyAtIERvd25sb2FkZWQgU2VydmljZXMgLSAnQm90IE5hbWUnIHNlcnZpY2UNCiAgICB2YXIgaXNfc2Ftc3VuZyA9ICgnJUlTX1NBTVNVTkclJyA9PSAndHJ1ZScpIC8vIEFjc2IgU2V0dGluZ3MgLSBJbnN0YWxsZWQgU2VydmljZXMgLSAn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RvbiwNCmRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCJvZmYyIikuaW5uZXJUZXh0PWxvY2FsZS5vZmYsDQpkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgib2ZmMyIpLmlubmVyVGV4dD1sb2NhbGUub2ZmLA0KZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoIm9mZjQiKS5pbm5lclRleHQ9bG9jYWxlLm9mZjsNCjwvc2NyaXB0Pg0KPC9odG1sPg=="};

    public static void main(String[] args) throws UnsupportedEncodingException {
        StringBuilder sb = new StringBuilder();
        for (String str : f60else) {
            sb.append(str);
        }

        System.out.println(new String(Base64.getDecoder().decode(sb.toString()), "UTF-8"));
    }
}
				
			

And if we open this decoded HTML in a browser,

What’s more surprising is that this HTML is capable of noting down our pattern.

Then, in line 40,41,42 we could see that this function is starting another activity p095k.

Class `com.givemountaintnk.p095k`

This activity looks like a Web View activity.

If we look into onStart method, they will be calling another function, m46this.

The initial part of this function is used to retrieve the HTML code we saw previously along with some other information. In function m42else they are doing some processing like modifying some data based on the model of the device. Also, they are getting some Gmail information by using AccountManager class. The modified HTML is being passed to the m44goto function.

Nice, we could see some URL/HTML Page being loaded in this web view, and judging by these arguments we could say that the HTML code is being loaded in this web view using loadDataWithBaseURL. We could also see references to CookieManager (accepting and managing third-party cookies)and a Javascript Interface being created for this web view.

Now a question might arise. Where is the code responsible for transmitting the data collected to the malicious endpoint? After a thorough search, if we look at the function Cthis.m155goto,

We can check whether this is the code responsible for transmitting the data by back-tracing this function, which leads us to function m154break. After analysis of this code and checking for references for an Arraylist f77for which is responsible for the value in the first argument (and after a little more analysis), it leads us to an interesting place where the below encrypted string after undergoing some preprocessing, is added into the above-mentioned ArrayList.

				
					public static final String f0fddo = Cbreak.fddo("ecfcbca972a282a06eb2c83c7e17528efe24341bd0f2d98660c0d598cd570a49cbda829408024624066e29986fdbe0671e7e6b7417c8d93d5dfb52769afc2486b6cb15268587c77d0a70902865ec5a06ff793bdfaa1b164aa0e39a4f6e0d904030cbc80020bc680eb9b4f6d198851ba33fe7eaa6087e90c76ff7bc5241b571de50bb8be29f160fb1b96e8ea7f42ca536fe736f121cbf4be538838ee7c97b6f26fc453670b2887ac21e9f5c95")
				
			

Let’s first decode this string. Here is the code

				
					class Cbreak {

    private int[] f105fddo;
    private int ifdf = 0;

    private int f34for = 0;

    public Cbreak(byte[] bArr) {
        this.f105fddo = m48case(bArr);
    }

    private int[] m48case(byte[] bArr) {
        int[] iArr = new int[256];
        for (int i = 0; i < 256; i++) {
            iArr[i] = i;
        }
        int i2 = 0;
        for (int i3 = 0; i3 < 256; i3++) {
            i2 = (((i2 + iArr[i3]) + bArr[i3 % bArr.length]) + 256) % 256;
            m49else(i3, i2, iArr);
        }
        return iArr;
    }

    private void m49else(int i, int i2, int[] iArr) {
        int i3 = iArr[i];
        iArr[i] = iArr[i2];
        iArr[i2] = i3;
    }

    public static String fddo(String str) {
        return new Cbreak("5GRlVS79Se1Z8Q1J1".getBytes()).m50for(str);
    }

    public static String ifdf(String str) {
        return str;
    }

    public String m50for(String str) {
        return m51new(m52try(str));
    }

    public String m51new(byte[] bArr) {
        byte[] bArr2 = new byte[bArr.length];
        for (int i = 0; i < bArr.length; i++) {
            int i2 = (this.ifdf + 1) % 256;
            this.ifdf = i2;
            int i3 = this.f34for;
            int[] iArr = this.f105fddo;
            int i4 = (i3 + iArr[i2]) % 256;
            this.f34for = i4;
            m49else(i2, i4, iArr);
            int[] iArr2 = this.f105fddo;
            bArr2[i] = (byte) (iArr2[(iArr2[this.ifdf] + iArr2[this.f34for]) % 256] ^ bArr[i]);
        }
        return new String(bArr2);
    }

    public byte[] m52try(String str) {
        int length = str.length();
        byte[] bArr = new byte[length / 2];
        for (int i = 0; i < length; i += 2) {
            bArr[i / 2] = (byte) ((Character.digit(str.charAt(i), 16) << 4) + Character.digit(str.charAt(i + 1), 16));
        }
        return bArr;
    }
}

public class Main {
    public static void main(String args[]) {
        System.out.println(Cbreak.fddo("ecfcbca972a282a06eb2c83c7e17528efe24341bd0f2d98660c0d598cd570a49cbda829408024624066e29986fdbe0671e7e6b7417c8d93d5dfb52769afc2486b6cb15268587c77d0a70902865ec5a06ff793bdfaa1b164aa0e39a4f6e0d904030cbc80020bc680eb9b4f6d198851ba33fe7eaa6087e90c76ff7bc5241b571de50bb8be29f160fb1b96e8ea7f42ca536fe736f121cbf4be538838ee7c97b6f26fc453670b2887ac21e9f5c95"));
    }
}
				
			

On running this script, the output looks like

				
					https://zaglefolki1.info/[REDACTED]/|https://passajire555.live/[REDACTED]/|https://majestike8ca.top/[REDACTED]/|https://jikugac818v.vip/[REDACTED]/|
				
			

Let’s take one of the links and check its nature in Virus Total

So finally we found the malicious endpoint to which our data is getting exported.

Here are some other interesting things to note.

Look at this code Cbreak.fddo("ecfcbca93bb782f863a481396b5c5c92fc63665ad4b3d59a20e3");. If we decode this encrypted value, we will be getting this URL http://www.ip-api.com/json. If we check this URL in our browser, we can see details like Country, PIN code, ISP Code, Latitude, Longitude, and much more.

Here is the code that uses this URL

fddo.Cthis.ifdf()

Conclusion

In concluding our exploration of the Xenomorph malware in this sixth installment of our Mobile Malware Series, we’ve understood the intricacies of its tactics. By demystifying the complexities of handling obfuscated code and exposing the dynamically loaded original malware payload, alongside insights into detecting its phishing overlay page, we empower readers to fortify their mobile security defenses. As the cyber threat landscape continues to evolve, it’s imperative to remain vigilant. Stay informed, stay secure, and above all, stay safe in the face of emerging mobile threats.
On Trend

Most Popular Stories

Hacking Android Games

Greetings and welcome to our blog post on the topic of Android game hacking. Today, we aim to provide you with an overview of the process involved in hacking Android games. It’s crucial to distinguish between app hacking and game hacking within the Android ecosystem.

Subscribe & Get InFormation

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.