Les vulnérabilités du VPN vous préoccupent ? Découvrez comment profiter de notre solution de migration VPN qui inclut 60 jours de service gratuit.

Blog Zscaler

Recevez les dernières mises à jour du blog de Zscaler dans votre boîte de réception

S'abonner
Recherche sur la sécurité

And The Mice Will “Play”…: App Stores And The Illusion Of Control Part II

image
VIRAL GANDHI
juillet 15, 2014 - 8 Min de lecture
In the last blog, we began analyzing what we’ve termed the “App Dichotomy” of the App Economy – The fact that we are at least as much the consumed, as we are the consumer. Our goal was to analyze popular apps from Apple’s App Store and Google Play to determine how permissive developers have tried to be, and the security and privacy risks we accept when we download them to our smartphones. 
 
This blog will look at Android apps from the Google Play store. While Android was once the open and transparent rebel to Apple’s rigid and restrictive iPhone, it has of late taken on more the image of a questionable rogue. While the App Store has been accused of being a bit of a police state, the Play store has been accused of being too loose and lazy with its oversight. And when the cat is away…
 
Compounding concern and creating more privacy risk is the fact that Android operates in an all-or-nothing permission fashion, where users accept the entire laundry list of requested permissions or the app cannot be downloaded. This model likely has more users putting less scrutiny on permissions to achieve that instant app gratification.
 
For this analysis, Zscaler analyzed more than 75,000 apps from the Google Play store in order to determine the permissions that are commonly requested by the apps at the time of installation. As with Apple, there were many interesting and revealing findings, but in this effort, two of the most compelling findings were:
  • 68% of apps that request SMS permissions ask for the ability to send SMS messages. With most Android malware currently targeting premium SMS fraud, this is concerning, especially as users tend to indicriminately accept requested permissions without scrutinizing whether or not they’re truly needed.
  • 28% of apps with SMS permissions also request read SMS access. This is somewhat unsettling as an increasing number of apps/services send codes via SMS for mobile banking or two factor authentication.
As with the iOS analysis, I’d also like to take a moment to discuss the approach. While jailbreaking is necessary on an iOS device in order to do any kind of static analysis, this is not the case for Android apps.  It is the primary reason our analysis numbers are much higher for Android as no manual intervention is involved.
 
Now on to the analysis. Android is based on a permission system, and each permission represents a given task. Applications can request required permissions and also define new permissions. For example, an application may declare that it requires access to the Internet. As discussed, Android permissions cannot be denied or granted after installation. An Android application declares the required permissions in its AndroidManifest.xml configuration file.
 
For this analysis, we focused on some of the more dangerous permissions, which allow apps to access a user’s personal information and grant access to functionality such as SMS, the address book etc. 
 
Below is the list of the permissions which we consider to be higher risk permissions:
  • SMS related permissions
  • GPS related permissions
  • Phone call related permissions
  • Personal information related permissions
  • Address book related permissions
  • Device information related permissions
Overall permission analysis:
The following graph illustrates the prevalence of dangerous permissions for all Android apps analyzed to date.
Image
From the graph, you can see that of the 75K+ Android apps analyzed, 36% of the apps request location permissions. 46% of apps are asking for the phone's state permission, which allows apps to access your SIM card information, IMEI number etc. 7% of apps are requesting SMS permissions, 10% request access to a user’s address book and 4% request access to the calendar.
 
SMS Permissions breakdown:
SMS permissions can be further broken down into the following categories:
 
  • READ_SMS permission: This permission allows the application to read all messages
  • WRITE_SMS permission: This permission allows the application to write SMS messages 
  • RECEIVE_SMS permission: This permission allows the application to monitor incoming SMS messages to record or process them
  • SEND_SMS permission: This permission allows the application to send SMS messages
 
Image
Here we can see that, from all applications that have access to SMS, most ask for SEND_SMS permissions, which allow apps to send SMS messages from your phone. As the mobile malware market grows, most of the Android malware leverages SMS fraud. We have seen plenty of malware in the past, which abuses SMS by sending messages to premium phone numbers. Also, you can see that a quarter of applications are asking for READ_SMS permissions, which are more dangerous than WRITE_SMS permission as this can expose privacy concernssuch as intercepting two factor authentication schemes leveraging out of band SMS messages.
 
Address book permission breakdown:
Considered permissions:
 
  • WRITE_CONTACTS: This permission allows the application to write to the user’s contact data
  • READ_CONTACTS: This permission allows the application to read from the user’s contact date 
 
Image
 
Here, you can see most of the apps are asking for READ_CONTACT permissions. It is always important to watch this permission as some apps, especially social networking apps, leverage your contact information in order to grow their install base. They want to check your address book to reach out to your friends and encourage them to install the same app.    
 
Internet and network related permission analysis:
Permission considered:
 
  • ACCESS_NETWORK_STATE: This permission allows the application to access information about the networks in use
  • INTERNET: This permission allows the app to open and close the network socket in order to connect to the Internet
 
Image
 
 
Form our data, we have seen that 90% of apps are requesting Internet access and 80% of apps are requesting network discovery permissions, which allow the app to determine the user’s cellular network connectivity, such as whether the user is using 3G or 2G etc.
 
Conclusion: 
From our analysis, outside of Internet permissions, a significant number of apps request access to the phone’s state permissions, which provide apps with the ability to harvest SIM card information and IMEI number information.
 
Why is this important? Apps, and especially the advertising libraries they utilize, want to be able to track user behavior across apps. By having access to unique identifiers, such as the IMEI, the same user (or at least the same device) can be identified when accessing various content or apps. This allows advertisers to better customize the advertisements that are delivered. Some people are fine with this, but others consider it a breach of privacy. The second most common permissions sought by Android apps involve GPS and user location. GPS data can also be used by advertisers to better target ads, apps are also increasingly becoming location aware, with apps such as Uber leveraging geolocation information to deliver a given service.
 
SMS permissions provide apps with the ability to communicate, but can also be abused for monetary gain as we have seen with many premium SMS scams. Address book permissions tend to be leveraged to allow apps to grow their install base by encouraging users to promote their apps to friends. While Google does a reasonable job of weeding out malicious apps from the Google Play store, they aren’t perfect, so users should be selective when granting app permissions. This is especially true outside of official app stores such as Google Play, where app scrutiny may be limited - if it exists at all.
 
Recommendations:
Users should be aware of the permissions they grant and the impact they could have on their device and their privacy. This knowledge will allow users to make better decisions when installing applications. For example, why would a wallpaper app require device SMS permissions? This should raise a big red flag.
 
Always install apps from trusted sources such as the Google Play or Amazon app stores. The vast majority of malicious apps come from third party app stores and if you want to limit exposure to malicious apps, it’s best to avoid third party Android app stores altogether.
 
Do not use jailbroken/rooted phones as they override some of the built in security controls that the o/s provides and make it easier for malicious apps to steal data or provide access to SMS messages, the camera, etc.
 
Establish a screen lock. Use PINs and enable remote wipe on the device to protect the data in case if it get stolen
 
Example:
Application:
随身眼 手机监控 视频监控 安防 监控 视频 交通 (Portable Eye mobile surveillance video surveillance security monitoring video traffic)
Permissions asked by application:
  • android.permission.CHANGE_NETWORK_STATE
  • android.permission.ACCESS_MOCK_LOCATION
  • android.permission.READ_LOGS
  • android.permission.ACCESS_COARSE_LOCATION
  • android.permission.INTERNET
  • android.permission.ACCESS_FINE_LOCATION
  • android.permission.SEND_SMS
  • android.launcher.permission.INSTALL_SHORTCUT
  • android.permission.WRITE_SMS
  • android.permission.ACCESS_NETWORK_STATE
  • android.permission.GET_TASKS
  • android.permission.WRITE_EXTERNAL_STORAGE
  • android.permission.RECEIVE_BOOT_COMPLETED   
  • android.permission.CALL_PHONE
  • android.permission.READ_PHONE_STATE
  • android.permission.READ_SMS
  • android.permission.VIBRATE
  • android.permission.ACCESS_LOCATION_EXTRA_COMMAN
  • android.permission.ACCESS_WIFI_STATE
  • android.permission.CHANGE_WIFI_STATE
  • android.permission.RECEIVE_SMS
  • android.permission.READ_CONTACTS
 
The following permissions represent those with a higher risk to the end
user
  • android.permission.ACCESS_COARSE_LOCATION            
  • android.permission.ACCESS_FINE_LOCATION   
  • android.permission.ACCESS_MOCK_LOCATION
  • android.permission.CALL_PHONE           
  • android.permission.MODIFY_PHONE_STATE     
  • android.permission.PROCESS_OUTGOING_CALLS           
  • android.permission.READ_CALENDAR   
  • android.permission.READ_CONTACTS   
  • android.permission.READ_OWNER_DATA           
  • android.permission.READ_PHONE_STATE           
  • android.permission.READ_SMS
  • android.permission.RECEIVE_MMS        
  • android.permission.RECEIVE_SMS          
  • android.permission.SEND_SMS
  • android.permission.SET_ALWAYS_FINISH           
  • android.permission.SET_ANIMATION_SCALE    
  • android.permission.SET_DEBUG_APP   
  • android.permission.SET_PROCESS_LIMIT            
  • android.permission.SET_TIME_ZONE    
  • android.permission.SIGNAL_PERSISTENT_PROCESSES
  • android.permission.SUBSCRIBED_FEEDS_WRITE              
  • android.permission.SYSTEM_ALERT_WINDOW 
  • android.permission.USE_CREDENTIALS
  • android.permission.WAKE_LOCK             
  • android.permission.WRITE_APN_SETTINGS       
  • android.permission.WRITE_CALENDAR 
  • android.permission.WRITE_CONTACTS 
  • android.permission.WRITE_EXTERNAL_STORAGE
  • android.permission.WRITE_SMS
 
References:
http://developer.android.com/reference/android/Manifest.permission.html
form submtited
Merci d'avoir lu l'article

Cet article a-t-il été utile ?

dots pattern

Recevez les dernières mises à jour du blog de Zscaler dans votre boîte de réception

En envoyant le formulaire, vous acceptez notre politique de confidentialité.