6 ms·
I really don't get the security model for smartphones. It seems horribly brittle. I mean, the fundamental protection is using apps from trusted sources, basical
by mirimir 9y ago
I really don't get the security model for smartphones. It seems horribly brittle. I mean, the fundamental protection is using apps from trusted sources, basically Google or Apple. Anything not trusted can't install, unless you've rooted the phone. And so old-school Windows-style malware is blocked.
However, when trusted apps are installed, they often demand all sorts of privileged access. And if they're malicious, there's no way to protect against them. Except that they get reported to Google/Apple and become unavailable. But that doesn't help people who already got pwned.
What am I missing?
- raise_throw 9y agoA variant of the 'single non-root user' problem on Unix systems. A non-root user (hopefully) can't root the system or rm -rf /root. But everything interesting is stored in that user's home folder with implicit RW permissions anyway. On Android apps just request everything. I imagine (without explicit knowledge) that an app given permissions could rewrite, erase, or pull down over the network contacts / photos / etc in the background.
- hoppa_liza 9y ago> On Android apps just request everything That was true up to Marshmallow (Android 6), when finer grained permissions were added.
- duxup 9y agoI remember learning Unix on my school's big Unix system. Lots of talk about how important root was. I understood it from a system standpoint sure. Yet I was confused, because as a user all I cared about was my stuff that was ... right there in a non root account. As you say all the stuff I was concerned about was right there, but nobody talked about how important that was.
- mikeryan 9y agoOn a large multi user system there’s a big difference between “your stuff” and “everyone’s stuff” on a single user system like a phone - not so much.
- c22 9y agoAlthough you can leverage multiuser capable systems for more security by, say, using different user accounts for playing games and banking, or whatever.
- dredmorbius 9y agoThe point is that your trust envelope extends to the authors of software, which are frequently not acting in the best interests of the user, and have their own goals and incentives (including competing goals with other software authors). On my Linux systems, particularly under Debian, there's some assurance provided through the Debian Project, its guiding documents (social contract, constitution, policy), and debian developers. The project explicitly serves the users. This doesn't prevent bugs and occasional malice, but tends to tremendously reduce incentives for it. Smartphones ... are a mess, and Android rather particularly so. I've suggested entirely rethinking how app development is performed, particularly for basic utilities, closer to the Debian model. I have little hope of this occurring.
- michaelt 9y ago"If someone steals my laptop while I'm logged in, they can read my e-mail, take my money, and impersonate me to my friends... but at least they can't install drivers without my permission" https://xkcd.com/1200/ https://xkcd.com/1200/
- mirimir 9y agoOK, but doesn't AppArmor protect against that? And it looks like it's been ported to Android and iOS. But it's not default, I guess. But neither is AppArmor in Linux. So why haven't we heard about apps stealing stuff from /home/user/? Is it just that distros do a better job of policing their repos? Or that the userbase is too small to attract malicious app developers?
- Larrikin 9y agoHow many years after Android permissions changed for the better will users who have never owned an Android phone complain about a problem that no longer exist.
- pjmlp 9y agoWell, because there is this thing called lack of updates. On German consumer shops, most "deal of the day" are still a mix of 4.4 and 5.1.
- saagarjha 9y agoUntil Google finally matches the permission model that iOS has had for years, and until the changes roll out to the majority of users instead of the few that own Pixel phones?
- KozmoNau7 9y agoIt has been there since Android 6.0.
- pjmlp 9y agoOnly available to around 60% of Android users.
- microtheo 9y agoIt doesn't change the fact that it is there. :D
- jackson1way 9y agoIt is NOT there for at least 40% of android users.
- spease 9y ago> rm -rf /root I don’t think this will do much besides blow away the root user's home directory, which probably doesn't have much in it anyway. But I get what you mean.
- MayeulC 9y agoI learned quite recently that Android was using one user ID per installed app, effectively isolating them one from another. However, I am not sure I understood what you meant by > On Android apps just request everything Well, this is as true as with any other operating system, isn't it? Nowadays, I try to use F-droid as much as I can, applications there ask for reasonable permissions, and are open source, which makes it easier to trust them.
- sandov 9y ago>trusted sources, basically Google or Apple. I'd say open source apps are more trustworthy that Google or Apple.
- Someone1234 9y agoOnly if you inspect the source, understand the source, and build it yourself. Most people just check if an app is OSS and then install the binary version from the app store. I've installed plenty of OSS apps but I've never built them myself and while I've looked at the source code, I have no way of knowing if what was in the repository was what got delivered.
- mirimir 9y agoI guess that the argument is that: 1) sources are available, so anyone can look at them; and 2) that if sources and binaries are in a distro's repo, someone knowledgeable must have looked at them. Also, some repos (Debian and ?) are signed, so you know that you're getting authentic binaries. But even with that, it's taken years to find some serious bugs.
- noobiemcfoob 9y agoThe viability of OSS is based on presumably someone within the community has or will check that connection. The risk of that highly encourages OSS owners to tell the truth in what they're doing.
- c22 9y agoRealistically though no one is checking, especially on smaller projects. You may be putting yourself at even higher risk since open source contributors are often not vetted as deeply as random employees.
- kingofhdds 9y agoQuite a lot of people do look into sources, actually. Quality of those checks, and how much do they cover in the end - that is the question. But it is better than nothing, and absolute majority of closed source apps offers you exactly nothing in this regard. Surely, opensourced code is not inherently safe, but with time passing, while userbase is big enough, it gets some attention, which means advantage on a scale of probabilities.
- mrb 9y ago«Anything not trusted can't install, unless you've rooted the phone» Not true on Android. Apps can be installed from third party sources, without having to root the phone.
- Ajedi32 9y agoThe main line of defense is the permissions system. If an app wants to access the user's camera, contacts, etc, it needs to come up with a good excuse for why or risk the user just tapping "deny". This seriously limits the damage a malicious app can do. Aside from making the permissions system even _more_ fine-grained, I don't know how you'd make the situation much better than it already is.
- saagarjha 9y ago> If an app wants to access the user's camera, contacts, etc, it needs to come up with a good excuse for why or risk the user just tapping "deny". This isn't how many users use apps. For them any of these prompts are getting in the way of using the app, so they tap the button that would let them use the app quicker, without reading what the message said.
- Ajedi32 9y ago"Deny" will (usually) let you use the app just as quickly as "Accept". Permissions on iOS and Android are just-in-time and optional.
- saagarjha 9y agoHow exactly does tapping "Deny" on Snapchat's request to access the camera let you use the app?
- Ajedi32 9y agoThat'd be silly, since it's obvious why Snapchat would want camera access. If you don't want to grant it access to your camera though, you _should_ be able to click "Deny" and still use the app to read messages.
- ecnahc515 9y agoPresumably you can still view things sent to you and look at the sponsored Snapchat stories.
- cm2187 9y agoAnd on iOS, apps can restrict what permissions you can give them. Uber for instance allows only “no location” or “location all the time”, and does not allow “location while using the app”.
- samb1729 9y agoThe Uber app now allows the "While using the app" option, fortunately. No longer need to remember to toggle it off.
- atomwaffel 9y agoOr, more accurately, iOS forced apps to support "Location while using", precisely because apps like Uber abused their permissions: https://www.engadget.com/2017/09/21/ios-11-uber-always-on-location-tracking/ https://www.engadget.com/2017/09/21/ios-11-uber-always-on-lo...
- amelius 9y agoYes. I'm still hoping that I can one day run Linux on my phone, and iOS/Android apps in a sandbox.
- willstrafach 9y agoiOS apps run in a sandbox
- vbezhenar 9y agoThere are many layers of protection. For example with iOS every application runs in a restricted sandbox. It should be impossible for malicious application to access data from another application. There's old UNIX permissions system in place, so you can't replace iOS kernel with something else. Firmware checks kernel signature, so even if you've found a bug, you'll still have a hard time replacing a kernel. Very sensitive data is protected by a secure hardware chips. So even if you think that you got pwned, it doesn't mean the end of the world.
- willstrafach 9y agoMalware persistence methods are also being cut off on iOS, so even with a 0-day, it is still a challenge to survive reboot.