Original topic:

Bringing Starchild Down to Earth: Soraka SDK

(Topic created on: 02-26-2020 03:03 PM)
407 Views
GabyThe911Operator
Active Level 9
Options
Galaxy S

The White Ops Threat Intelligence team recently identified 100+ malicious apps, with more than 4.6 million downloads, performing ad fraud. All of the apps use a common code package White Ops has dubbed “Soraka” (com.android.sorakalibrary.*😞

Figure 1 Soraka Package

In addition to the Soraka code package, we also discovered, in some of the apps, a variant with similar functionality which we dubbed “Sogo” (com.android.sogolibrary.*😞

Figure 2 Sogo Package
 

Best Fortune Explorer App

One example of the Soraka package was the “Best Fortune Explorer” app by the publisher JavierGentry80. This app was released on September 9, 2019 and is the only app published by JavierGentry80. Best Fortune Explorer is, as of this writing, available on the Google Play Store and has no Anti-Virus (AV) detections on VirusTotal. This app has more than 170,000 downloads.

Table 1 Best Fortune App Details

 

Figure 3 Best Fortune Google Play

Fraud Activity Filters

The apps are using a framework called AppsFlyer for mobile attribution and marketing analytics. The app displays fraudulent ads only if AppsFlyers determines the installation is NOT organic, meaning the install was attributed to a promotional effort by the fraudsters. There are several filters the code checks before a fraudulent ad is shown to the user:

  • Screen On
  • TopActivity
  • Interval since installation
  • Trigger on/off switches
  • Ad Network daily count limit
  • Trigger time interval (to space out the ad rendering for each trigger)

The filtering is likely a mechanism to avoid detection from automated analysis and other services that would install the app ad-hoc and then, most likely, be considered as organic by AppsFlyer.

This mechanism also allows fine-grain control of who (or what) receives the ad fraud, using the controls of ad serving platforms. The apps render out-of-context ads when the filter conditions are appropriate.

Figure 4 Soraka HomeTask Trigger

The Soraka package can be found in com.android.sorakalibrary, and utilizes several triggers to make the determination of what to run. As an example, int[ ] b( ) returns an integer array of filters this trigger (pressing the Home button) needs to check before running. The method public String c( ) in HomeTask returns the name of the trigger. All of the trigger classes implement this method, each returning its name. To further obfuscate the code and make analysis more difficult, HomeTask creates a class named with the Cyrillic character Ӝ, which is part of the Udmurt language. The class Ӝ goes to a Mopub method ah where the onAdloaded function is called to start the ad rendering process.

Figure 5 Soraka Ad Loading Function
 

Ad Fraud

White Ops Threat Intelligence identified the following ways the app rendered ad fraud:

  • Upon unlocking the device, the app code removes the background notification service that halts all fraud activity while the phone screen is off.
  • The first Out-of-Context (OOC) ad (shown below) is rendered a couple seconds after the device is unlocked.
10 Comments
Pupusik
Active Level 7
Galaxy S
How about an app from Samsung that we can run to help detect fraudulent apps and advise or just uninstall the bad app ?
Galaxy S
For this question, we will waiting a answers from a Expert members, because I don't have the right answers
CHMultimedia
Expert Level 5
Galaxy S
Just don't install unknown, obscure and useless apps. All those malware-ridden Play Store apps are junk apps made by obscure developers.
Pupusik
Active Level 7
Galaxy S
Now I am showing my ignorance. I really had thought that any and all apps are vett'd
Tested. So that crap apps would not be propagated.
Hey, I like the term CRAP-Apps 🤪
Really
This should not be happening.😖😖😖😖😖
CHMultimedia
Expert Level 5
Galaxy S
Play Store apps are far from vetted. Google has a strict "Quantity>Quality" policy
Pupusik
Active Level 7
Galaxy S
Question. Does Apple have the same issue ?
0 Likes
CHMultimedia
Expert Level 5
Galaxy S
No
0 Likes
alainlafond
Active Level 5
Galaxy S
Yes Apple phones have the problems. But they are very good at hiding the truth.
0 Likes
alainlafond
Active Level 5
Galaxy S
And they have an army of I-Sheep denying any wrong doing. No wonder why US is the biggest market per capita for this **bleep**@t...
0 Likes