Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
SHARE
Wireless
Security
Training
COME CHECK OUT OUR HANDS-ON
WIRELESS TRAINING!
CLICK HERE!
What's this?
http://resources.infosecinstitute.com/androidapppermissionssecurityneedknow/ 1/30
4/4/2017 AndroidAppPermissionsandSecurity:WhatYouNeedtoKnow
As of this article, Android has the greatest OS market share on both smartphones
and tablets. If you dont own an Android device, chances are that your friends, family
or co-workers do.
The security implications of Android affect many millions of people worldwide who
use their devices for personal reasons. But also, more and more corporations and
governments are either offering their employees corporately administrated Android
devices, allowing Android devices into their networks via BYOD (bring your own
device), or some combination of both. So, using Android insecurely can also
devastate corporations and governments- costing them millions or even billions.
http://resources.infosecinstitute.com/androidapppermissionssecurityneedknow/ 2/30
4/4/2017 AndroidAppPermissionsandSecurity:WhatYouNeedtoKnow
Want to learn more? The InfoSec Institute Ethical Hacking course goes in-depth into the
techniques used by malicious, black hat hackers with attention getting lectures and
hands-on lab exercises. You leave with the ability to quantitatively assess and measure
threats to information assets; and discover where your organization is most vulnerable to
TOPICS black hat hackers. Some
CONTRIBUTORS features of this course
ARCHIVE include:
CAREERS JOB BOARD
COMPANY EMAIL
*
I wrote an introductory article on Android security which covers the basics regarding
malware, privacy, password security, and physical security. This article expands on an
Android security matter which deserves a separate piece of its own: Android app
permission security. Whether you use Android devices for personal or professional
reasons, itd benet you to heed my advice.
Technically speaking, Android is a Linux distribution, because its built on the Linux
kernel. All Linux-based OSes are designed to be able to have multiple user accounts,
which can each have their own sets of permissions, with root having master admin.
In most Linux distros, which are typically run on PCs and servers, such as Ubuntu,
Red Hat, SUSE, Arch and Linux Mint, the user accounts typically represent people
who use the same OS install directly on a PC client, or remotely off of a LAN
connected server. For instance, on the Linux installs we have running off of our PC
hard disks and off of our Linux servers in our server room, my ance and I both have
INFOSEC root/admin
INSTITUTE accounts. So, we
INTENSE SCHOOL both have access
CERTIFICATION to read, write, install, uninstall,
TRACKER
http://resources.infosecinstitute.com/androidapppermissionssecurityneedknow/ 3/30
4/4/2017 AndroidAppPermissionsandSecurity:WhatYouNeedtoKnow
recongure and delete anything. When we run Linux bash commands which require
root, we can simply type sudo at the beginning of the command, enter our
passwords when prompted, and we can do whatever wed like on our Linux
TOPICS machines.
CONTRIBUTORS ARCHIVE CAREERS JOB BOARD
We set limited permissions on their accounts. They can download les from the
Internet to their own folders only. They can read, write and delete les from their
own folders only. They may not install any applications without our sudo
authorization. They may not uninstall any applications without our root passwords.
They may only view their own les in their own folders. And nally, they may not
change any OS settings or congurations.
The odd thing about Android is, instead of actual people having user accounts with
associated permissions, the applications themselves each have their own sets of
user permissions. The person using an Android device may install or uninstall
applications, save or delete les, and change OS settings. But to be able to
recongure their device beyond what the Settings app allows, and for further
admin functions, they would need to root their Android device. When an Android
device is rooted, the user has full root permissions, in the same manner as having
root in other Linux distros. Rooting an Android device involves overcoming its
bootloader, and proper rooting procedures vary according to your Android device
manufacturer and model. If youre curious about how to root your Android device,
Google its model name with the word root. XDA Developers is a particularly good
resource for information about how to root nearly every Android device out there.
So, as Ive said, in Android, instead of people having user accounts and permissions,
apps have user accounts and permissions. Each app, including Android OS
components, has its own unique user account.
Regardless of which version of Android youre using, each and every time you install
an Android app (an APK le), the Google Play Store will show you which permissions
the app asks for. Usually, you cannot pick and choose which permissions you grant
to an app. You usually can only decide whether or not to install an app, based on the
permissions it asks for.
I installed a new game on my phone a couple of days ago, Kaizin Rumble: World
Domination. These are some of the permissions the app asked for before I agreed to
install it.
http://resources.infosecinstitute.com/androidapppermissionssecurityneedknow/ 4/30
4/4/2017 AndroidAppPermissionsandSecurity:WhatYouNeedtoKnow
I decided that Im okay with the permissions that app thinks it requires. So, I tapped
on Accept. Modify or delete the contents of your USB storage makes sense,
because the game probably stores game save les and some downloadable content.
Retrieve running apps makes sense if the game uses Facebook, Twitter or Google+
OAuth for authentication, as many Android games do. That permission might also
make it easier for me to switch from the game, to another app Im using, and back
to the game again, without losing any game progress. Full network access is
needed for games which require online connectivity, which is most of them. Read
phone status and identity is necessary for if I receive a phone call while playing the
game. Read call log, read your contacts concerns me a little bit, and Ill turn that
permission off via procedures Ill describe later in this article. Add or remove
accounts, use accounts on the device is probably related to using social network
OAuth to link with my in-game account authentication.
http://resources.infosecinstitute.com/androidapppermissionssecurityneedknow/ 5/30
4/4/2017 AndroidAppPermissionsandSecurity:WhatYouNeedtoKnow
Want to learn more? The InfoSec Institute Ethical Hacking course goes in-depth into the
techniques used by malicious, black hat hackers with attention getting lectures and
hands-on lab exercises. You leave with the ability to quantitatively assess and measure
threats to information assets; and discover where your organization is most vulnerable
TOPICS toCONTRIBUTORS
black hat hackers. Some features of this course
ARCHIVE include:
CAREERS JOB BOARD
COMPANY EMAIL
*
For the purposes of this article, especially since Im including all kinds of screenshots,
its worth noting that I have a Nexus 4, which is running the latest version of Android
as of this writing, 4.4.2 KitKat.
http://resources.infosecinstitute.com/androidapppermissionssecurityneedknow/ 6/30
4/4/2017 AndroidAppPermissionsandSecurity:WhatYouNeedtoKnow
Malicious apps will probably misuse the permissions you grant it by installing it. Their
permissions may make malicious apps able to make expensive long distance phone
calls or text messages, engage in spyware activities like uploading your private data,
contacts and GPS location, stop your other apps from running properly, or stop you
from being able to change your device settings.
Do keep in mind that even apps that arent really malware, which are popular with
millions of Android users, may use the permissions you grant to track your GPS
location, read your text messages and contacts, or make device setting changes you
wont like. Examples of those include the Facebook app, Yelp, or even some App
Launchers.
You may want to install and use those applications anyway. I do. But I dont have the
Facebook app on my phone. I only use Facebook in my web browser, because I really
dont trust Zuckerberg and company very much.
When apps update, if the permissions they demand change, Google Play will
prompt you with
INFOSEC INSTITUTE
a list of the new
INTENSE SCHOOL
permissions, and let you decide accordingly
CERTIFICATION TRACKER
http://resources.infosecinstitute.com/androidapppermissionssecurityneedknow/ 7/30
4/4/2017 AndroidAppPermissionsandSecurity:WhatYouNeedtoKnow
So, Ive chosen to install many apps on my phone which may engage in some
spyware functions or do other things to my Nexus 4 that I dont like. But Ive got the
TOPICS CONTRIBUTORS ARCHIVE CAREERS JOB BOARD
upper hand, because I know how to disable some permissions from my apps. Ill
SIQ show youSIMULATOR
PHISHING how.
All versions of Android are designed so you cant change the permissions granted to
the apps youve installed without doing some degree of hacking. In Android 4.3
Jellybean, a hidden function was added called App Ops. That function allows users
to manually enable or disable app permissions. The only easy way to access App Ops
in Android 4.3 is to do one of the following. If you have a third party OS UI, otherwise
known as a Launcher, itll exist on your device as any another app. Trigger your
Launcher app to open an activity, and if you scroll all the way down the list of
available activities, youll nd App Ops. You can open the hidden function from
there. Then, you can navigate to each of your application permission settings, app by
app, and pick and choose which permissions to enable or disable. Keep in mind that
disabling some app permissions may make your apps unable to function properly.
The other way to open App Ops in Android 4.3 is to install a third party app which is
designed to launch the hidden function, such as AppOps Launcher, at
https://play.google.com/store/apps/details?id=com.pixelmonster.AppOps. AppOps
Launcher also works in Android KitKat, 4.4+.
The Electronic Frontier Foundation was very happy when App Ops appeared in 4.3,
even though its hidden. But even though third party permission control apps can
work in other versions of Android, App Ops was removed in KitKat 4.4.2. That
disappointed the EFF, and with good reason. Android device owners shouldnt have
app controls taken away from them, because that would violate their user rights.
The fact that Android users cannot turn off app permissions is a Stygian hole in the
Android security model, and a billion peoples data is being sucked through, said
the EFFs Peter Eckersley.
Nevertheless, as Ive mentioned previously, there are ways to get that control back.
You should, because even legitimate apps can spy on you or create other security
vulnerabilities.
http://resources.infosecinstitute.com/androidapppermissionssecurityneedknow/ 8/30
4/4/2017 AndroidAppPermissionsandSecurity:WhatYouNeedtoKnow
http://resources.infosecinstitute.com/androidapppermissionssecurityneedknow/ 9/30
4/4/2017 AndroidAppPermissionsandSecurity:WhatYouNeedtoKnow
http://resources.infosecinstitute.com/androidapppermissionssecurityneedknow/ 10/30
4/4/2017 AndroidAppPermissionsandSecurity:WhatYouNeedtoKnow
http://resources.infosecinstitute.com/androidapppermissionssecurityneedknow/ 11/30
4/4/2017 AndroidAppPermissionsandSecurity:WhatYouNeedtoKnow
So, if you install the free version of Permission Manager, as I did, you can see the top
ve apps on your device which have the greatest number of permissions. But if you
buy the paid Pro version, youll see a list of all of your apps and their permissions,
listed from the most permissions to the least.
http://resources.infosecinstitute.com/androidapppermissionssecurityneedknow/ 12/30
4/4/2017 AndroidAppPermissionsandSecurity:WhatYouNeedtoKnow
All of those apps are native Android components that mustnt be removed, except
perhaps for Google+. Ive decided to let those Google apps have all their default
permissions for two reasons. The rst is that Im pretty sure disabling any of their
permissions will really cripple the functioning of my device, particularly since all of
those apps, except for Google+, are vital OS components. The second is that, since I
have a Google Android device that uses Googles complete service ecosystem, if I
cant trust Google with a wide assortment of functions, I shouldnt own a Google
Android device in the rst place. Googles data mining is all a part of the game if you
choose to use any Google program or service, from Android to Gmail to Drive to
Maps to even Google Search. That applies to any Google services you use anywhere,
even outside of Android. That includes using Google Maps on your iPhone and using
Google Search in any web browser from Microsoft Windows, and so on and so forth.
Heres what you can see in Permission Manager if you launch the settings of a
particular app.
http://resources.infosecinstitute.com/androidapppermissionssecurityneedknow/ 13/30
4/4/2017 AndroidAppPermissionsandSecurity:WhatYouNeedtoKnow
Yeah, disabling any Android System UI permissions would really mess up my phone,
perhaps even irreversibly.
Since Permission Manager only works in Android 4.3 and 4.4, youll need to install
another app if you want to manage app permissions in an older version of Android.
Or, even if you use 4.3+, you might want to have easy access to the permissions of all
of your apps, without having to pay for Permission Managers Pro version. A possible
option is SnoopWall, which can be installed for free from
https://play.google.com/store/apps/details?id=com.snoopwall.android.
One of the nice things about SnoopWall is that it works in all versions of Android
from 2.3.3 Gingerbread and up. Itll also allow you to manage the permissions of all of
your apps, free of charge. What Im not crazy about, but what you might enjoy and
benet from, is that the app is designed to do a lot more than just manage app
permissions. It runs an antivirus shield and rewall thats not supposed to conict
with any antivirus shield or rewall you already have. It checks for, and blocks
eavesdropping and spying. It stops your camera, GPS, WiFi, microphone and NFC
from being used without your authorization. It even has a special security mode
designed to be used if youre doing any online banking on your phone or tablet.
http://resources.infosecinstitute.com/androidapppermissionssecurityneedknow/ 14/30
4/4/2017 AndroidAppPermissionsandSecurity:WhatYouNeedtoKnow
The following are screens youll see when launching SnoopWall (Antivirus Privacy
Firewall) for the rst time.
http://resources.infosecinstitute.com/androidapppermissionssecurityneedknow/ 15/30
4/4/2017 AndroidAppPermissionsandSecurity:WhatYouNeedtoKnow
After launching SnoopWall for the rst time and it tells you You are not secure, you
can choose a security mode.
http://resources.infosecinstitute.com/androidapppermissionssecurityneedknow/ 16/30
4/4/2017 AndroidAppPermissionsandSecurity:WhatYouNeedtoKnow
Phone Mode, Internet Mode, and Apps Mode disable a lot of functionality, which
can be very annoying. For instance, apps are blocked in Phone Mode, and Internet
access is blocked in Apps Mode. (What about most apps, which require network
connectivity?) Bank Mode is only useful if youre doing online banking, either via
INFOSEC INSTITUTE INTENSE SCHOOL CERTIFICATION TRACKER
your Web browser or a native online banking app. So, I chose Autopilot Mode.
http://resources.infosecinstitute.com/androidapppermissionssecurityneedknow/ 17/30
4/4/2017 AndroidAppPermissionsandSecurity:WhatYouNeedtoKnow
http://resources.infosecinstitute.com/androidapppermissionssecurityneedknow/ 18/30
4/4/2017 AndroidAppPermissionsandSecurity:WhatYouNeedtoKnow
Tap Control Apps (at the bottom) to manage the permissions of each and every
one of your apps. I happen to have about 250 apps in total.
Handy green icons in your app list will give you a quick overview about what kind of
permissions each app has. Tap on the blue circle next to the app name to customize
the permissions you give that particular app.
http://resources.infosecinstitute.com/androidapppermissionssecurityneedknow/ 19/30
4/4/2017 AndroidAppPermissionsandSecurity:WhatYouNeedtoKnow
Ive decided to leave Chromes permissions alone, based on the if I cant trust
Google, Im screwed by having an Android device principle.
Her are the permission settings for another one of my apps, Barcode Scanner+.
http://resources.infosecinstitute.com/androidapppermissionssecurityneedknow/ 20/30
4/4/2017 AndroidAppPermissionsandSecurity:WhatYouNeedtoKnow
Tapping on Block App doesnt necessarily block the app completely; instead it
gives you the option to selectively enable or disable its permissions.
As Barcode Scanner+ uses my phones camera to scan QR codes and UPC codes,
disabling the Camera permission would defeat the purpose of the app. Heres what I
chose to enable and disable.
http://resources.infosecinstitute.com/androidapppermissionssecurityneedknow/ 21/30
4/4/2017 AndroidAppPermissionsandSecurity:WhatYouNeedtoKnow
I cannot see why Barcode Scanner+ should be able to activate or use WiFi, but it
obviously needs my camera, and its NFC (near eld communication) and mobile
data (3G or 4G) functions could be useful, so those are risks Im willing to take.
I went through each and every one of my apps via SnoopWall, and I set their
permissions to my liking, being mindful to not disable permissions that could impair
app functions Id like to have, or would prevent my device from working properly. As
I have over 250 apps, it was a long and tedious process, but well worth it.
One thing I dont like about SnoopWall is that running the app forces Bluetooth to
be turned on. Leaving Bluetooth on when youre not using Bluetooth peripherals
with your phone or tablet can be an unnecessary drain on your battery. Bluetooth
can also be used for a third party to obtain malicious access to your device, so for
security reasons, Bluetooth should only be turned on while youre using it.
So, after I set my app permissions with SnoopWall, I went into my system app
settings (in the OS, not in SnoopWall) and disabled SnoopWall from running. Then, I
was able to turn Bluetooth off again. Based on what I know about how Android apps
work, I assume the app permission changes I made via SnoopWall are still set.
There are other third party apps that you can install on your Android device to
manage your app permissions. You may give them a try, but keep in mind that I
havent yet installed and tried them on my phone.
http://resources.infosecinstitute.com/androidapppermissionssecurityneedknow/ 22/30
4/4/2017 AndroidAppPermissionsandSecurity:WhatYouNeedtoKnow
Youll nd many other permission control apps in the Google Play store, as well. Be
conscientious about which app you choose, and how you operate it. Most
importantly, look at the user ratings of the app, and the user reviews. I wouldnt
install any app that has less than four stars.
I hope in the future that Googles Android development team decides to reverse the
decision they made for KitKat 4.4.2. I hope future versions of Android allow app
permission customization without being hidden (as in 4.3) and without requiring
root. They could always design the program so that users are warned to customize
permissions at their own risk.
Your Android device should be fully in your control, and you should be able to
customize functionality with security in mind, so that Android app developers cant
take control or security away from you.
References
http://www.makeuseof.com/tag/app-permissions-work-care-android/
http://m.androidcentral.com/look-application-permissions
http://developer.android.com/guide/topics/security/permissions.html
INFOSEC http://www.theregister.co.uk/2014/01/07/app_to_manage_android_app_permissions/
INSTITUTE INTENSE SCHOOL CERTIFICATION TRACKER
http://resources.infosecinstitute.com/androidapppermissionssecurityneedknow/ 23/30
4/4/2017 AndroidAppPermissionsandSecurity:WhatYouNeedtoKnow
http://news.cnet.com/8301-1009_3-57615607-83/kitkat-update-removes-app-
permissions-toggle/
TOPICS CONTRIBUTORS ARCHIVE CAREERS JOB BOARD
App Ops: Android 4.3s Hidden App Permission Manager, Control Permissions for
SIQ PHISHING SIMULATOR
Individual Apps!
http://www.androidpolice.com/2013/07/25/app-ops-android-4-3s-hidden-app-
permission-manager-control-permissions-for-individual-apps/
https://play.google.com/store/apps/details?id=com.appaholics.applauncher
https://play.google.com/store/apps/details?id=com.pixelmonster.AppOps
https://play.google.com/store/apps/details?id=com.snoopwall.android
https://play.google.com/store/apps/details?id=com.gmail.heagoo.pmaster
https://play.google.com/store/apps/details?id=com.stericson.permissionx
http://resources.infosecinstitute.com/androidapppermissionssecurityneedknow/ 24/30
4/4/2017 AndroidAppPermissionsandSecurity:WhatYouNeedtoKnow
Prevent the top cause of security breaches by preparing your last line
of defense with SecurityIQ.
No Thanks
Tweet
14 21 146
7
Compartir Share Like
reddit
AUTHOR
Author
Phishing Simulator
Security Awareness
http://resources.infosecinstitute.com/androidapppermissionssecurityneedknow/ 25/30
4/4/2017 AndroidAppPermissionsandSecurity:WhatYouNeedtoKnow
EDITORS CHOICE
Advanced IronWASP
IronWASP: An Introduction
http://resources.infosecinstitute.com/androidapppermissionssecurityneedknow/ 26/30
4/4/2017 AndroidAppPermissionsandSecurity:WhatYouNeedtoKnow
Information Security
TOPICS CONTRIBUTORS ARCHIVE CAREERS JOB BOARD
Security Awareness
SIQ PHISHING SIMULATOR
DoD 8140
Ethical Hacking
CCNA
PMP
Microsoft
Incident Response
Information Assurance
http://resources.infosecinstitute.com/androidapppermissionssecurityneedknow/ 27/30
4/4/2017 AndroidAppPermissionsandSecurity:WhatYouNeedtoKnow
Minotaur CTF
Extra miles
Walkthrough
Exploiting
Targeting WSUS
Protostar Stack
Server
0-3
Commentsforthisthreadarenowclosed.
Dna2yearsago
hi,
Interestingoldarticlebutjustwantedtoaddalittledetailherethatmighthelpforfuture
reference.
Itmaybegoogleandroidbutitreallydontneedtohavegoogleappstorunperfectlyfine.
Ihaverootedandcustomisedmydevicesandremovedeverythingrelatingtogoogle.
TheonlydownsidetothisisyouarenolongerabletoutilisethegoogleplaystorebutIfind
thatmostappsareavailbleviatheclearwebwithouthavingtoresorttousingapprepositories.
Bottomlineforprivcacyissimple,ifyoucandoataskviaawebpagethendontbotherwith
apps.
Casescenarios:facebook,banking,email,twitteretc...Allofthesethingscanbedonevia
webpagesandnoappsarerequiredwhichavoidstheneedsforprivacypermissions.
INFOSEC INSTITUTE INTENSE SCHOOL CERTIFICATION TRACKER
http://resources.infosecinstitute.com/androidapppermissionssecurityneedknow/ 28/30
4/4/2017 AndroidAppPermissionsandSecurity:WhatYouNeedtoKnow
Also,agoodfirewallisamustasthiscanbeusedtoblockappsfromcommunicatingfullstop.
THeycancollectasmuchdataastheylikebecauseitwillneverbetransmitted=)
cheers.
TOPICS CONTRIBUTORS ARCHIVE CAREERS JOB BOARD
Share
SIQ PHISHING SIMULATOR
Charlie3yearsago
HiKim,
Thisisagreatarticle.Onenoteonyourdissectionofpermissionsrequestedbyyourfirst
exampleapp"ReadphonestatusandidentityisnecessaryforifIreceiveaphonecallwhile
playingthegame."thatisnotthecase.Thephoneappinthebackground(egAndroidDialer)
willhandleanyincomingcallswhileyouplaythegame,thegameappwillonlywantthissoit
canseeyourphoneidentidy(phonenumber,carriercode,etc)sothatitcanuniquelyidentify
you.ThisisusuallyutilizedonthefreegamesinordertobettertrackusersforAdvertising
profiles.
YoumightbeinterestedtocheckouttheXPrivacysystem.Itisnotasimpleappyoucan
installfromthePlayStorebutaModulefortheXPosedframework,whichisavailableformost
ofthestockAndroiddevices(allNexusmodelsandafewothers).Itishugelyflexibleinthe
permissionsyoucangrantordenytoappsactuallywaytooflexibleandoverwhelmingfor
mostusersinmyopinion,myselfincludedbutitisthecurrentstateoftheartasfaras
Androidpermissionsgoes.
Thanksforthearticle.
Share
DeborahTutnauer3yearsago
IcuttheApplecordtodayandboughtaMotoX.IwasshockedwhenIwenttodownloadmy
commonsocialmediaapps,attheinabilitytochoosepermissions.Withtheiphoneitwaseasy
toturnoffmostofthemindividuallyforeachapp..mybiggestconcernsarelocationand
accesstomycontacts,callsandtexts..Iendedupwiththeappoppprotectionapp,andfixed
thepermissionsinFBandG+andthelocationinmycamera..Butthenwithoutknowing
enough,Iupgradedthesoftwarefrom4.4,to4.4.2andtheappceasedtofunction.
Iwilltrythesnoopwallappasyousuggested.Ihave14daystodecidewhethertokeepthis
phoneorgobacktotheiphone..Ilikeitsofar,butI'mverycautiousaboutprivacyandI'm
reallyappalledthatthereissolittlecontrolintheandroidworld.
Share
danti3yearsago
ThankyouKim....
verynicearticle
Share
Subscribe
INFOSEC d AddDisqustoyoursiteAddDisqusAdd
INSTITUTE INTENSE SCHOOL Privacy
CERTIFICATION TRACKER
http://resources.infosecinstitute.com/androidapppermissionssecurityneedknow/ 29/30
4/4/2017 AndroidAppPermissionsandSecurity:WhatYouNeedtoKnow
About InfoSec
SIQ PHISHING SIMULATOR Connect with us Join our newsletter
InfoSec Institute is the best Stay up to date with Get the latest news, updates &
source for high quality InfoSec Institute and offers straight to your inbox.
information security training. Intense School - at
We have been training info@infosecinstitute.com ENTER YOUR EMAILSUBSCRIBE
http://resources.infosecinstitute.com/androidapppermissionssecurityneedknow/ 30/30