67 points · by sidcool · 10y ago · 73 comments
If you turn off Android's setting to only allow app installs from the play store, then install a sketchy third-party store and download a flashlight app with a huge permission list that scrapes your email address book and sends it off to Russia, is that really a hack? It's pretty tough to prevent that without locking the phone down even harder than the iPhone. Doesn't seem worth worrying much about to me.
Android seems to be pretty safe against more dangerous stuff like visiting a website or displaying a web ad installs an app, bypassing user approval. Or worse, doing something with root permissions. At least I haven't heard of anything like that. If it's out there, presumably whoever has found such exploits keeps them under wraps for high-value targets.
The Stagefright one sounded pretty dangerous, but I haven't heard of any large-scale attacks with it in the wild. Presumably carrier-level general protections against mass MMSing and specifically against payloads for that bug were effective.
Given the difficulties the Android rooting community seems to be having, it's hard to believe that a drive-by exploit could gain persistent root.
[1] https://source.android.com/security/bulletin/2016-10-01.html [2] https://www.zerodium.com/program.html
Actually, they should constrain it even more, given the poor state of kernel exploits and how the whole security updates doesn't happen across Android devices.
One of the more interesting exploit dissections I read was of a 2013 Pwn2Own exploit of Chrome on Android[0] good enough to earn the designer $50k. Long story short, a series of vulnerabilities are exploited through Javascript of a visited webpage eventually resulting in sending that Chrome's cookies to a remote server. Impressive effort, and certainly not good, but then again, how many people have any important cookies in their mobile Chrome? And how many websites will actually allow you to do something that is interesting to an attacker after you hijack somebody's cookies? Of course those bugs are long since fixed on all Androids, since it's in Chrome. Even if they were active, I still wouldn't worry much, because you can't get much interesting info unless you can get system/root permission and read the data of all of the other apps on the device.
Actually, if I was designing that as an actual attack, I think I'd send off the autofill info too. That ought to be possible for an exploit that can read the cookie jar, and it sounds much more likely to contain credit card info, home addresses, and other stuff an attacker might be able to monetize.
[0] https://docs.google.com/document/d/1tHElG04AJR5OR2Ex-m_Jsmc8...
"Presentation on Threats and Vulnerabilities in Android OS"
https://www.youtube.com/watch?v=CZAejnPrqJc
"Android: Protecting the Kernel by Jeffrey Vander Stoep, Google"
How many devices are there in the wild that have yet to be patched against stagefright? I bet it's over 50%
Not putting device drivers written by random external engineers into the trusted part of your OS would be a good start. So would not letting any page acquire executable permissions without being signed (not sure what you do with jitted code -- if you can't effectively sandbox it, you probably don't want to run it, and yeah, that's a drag). Forbidding external processors (e.g., the radio module) from becoming physical bus masters is also a great idea. Encrypted memory (at the cache line level) has been in consoles for over a decade; it's not that expensive and it's a nice first defense against stuff like RowHammer and folks mucking with physical wires in a lab.
Consoles take this level of security seriously because it's not just about customer privacy or security or similar pesky stuff, it's about the revenue stream. (Secondarily, it's also about limiting the actions of bad actors on hardware under their control -- it's much harder to cheat on a console).
Yeah, like not issuing phones with intentionally compromised baseband processors.
In fact, any phone that has a direct connection from the mic to the baseband processor is not just "hackable" - it's designed to hack your life (hint:all of them).
Unfortunately, many schemes were baked into the standards you certify against. Good luck changing that while reaching mass market.
http://motherboard.vice.com/read/the-black-market-dealers-se...
They basically give external control to all the baseband processors functions (read mic, control signal, read gps chip etc.)
It's why snowden made: https://www.wired.com/2016/07/snowden-designs-device-warn-ip...
because if your phone is in airplane mode, it shouldn't be transmitting - and they can all be made to.
(Oh, and I have friends who served in Afghanistan, so found out about all this around 2002)
"We're going to address privacy concerns of non-free modem firmware by ensuring that the modem has access to no more data than absolutely necessary, so it won't be able to spy on anything that's not already available on carrier side. On Neo900 one can be sure that the modem is actually turned off when requested, not just pretending to be. Users will be notified in case of the modem wanting to do something without their consent. Unlike some other smartphones do, Neo900 won't share system RAM with the modem and system CPU will always have full control over the microphone signal sent to the modem. You can think of it as a USB dongle connected to the PC, with you in full control over the drivers, with a virtual LED to show any modem activity."
It might be possible to attack the phone from the USB connection to the baseband, https://news.ycombinator.com/item?id=12673735
and linfone or equivelent.
Just need a 3d printer so i can print the case. A bit of a brick. but a quite the "swiss army knife" of comms.
I also dont know how many people are aware just how sensitive the mic is on modern phones. I wrote a little app that turns android phones into bugs (broadcasts sound from the mic over wifi) a few years ago. It can pick up a whisper from 40m away, while when using it as a phone there is never any background noise.
1. A criminal to hack in to steal money
2. A state actor to routinely hack in for surveillance
3. A state actor to penetrate a system with "on the ground" resource: a black bag job, bribes, blackmail, etc.
4. A state actor to mount a heroic effort, having to invent new technologies, in order to penetrate a system.
As long as a system can protect you from 1. and 2., it's adequate. As long as you can't do pervasive surveillance, you're safe from criminals and from "casual tyranny." Preventing pervasive surveillance doesn't mean securing the first phone from surveillance. It means making it impractical to break into and tap tens of thousands of phones undetected.
In practice, it is possible to end technology-enabled pervasive surveillance. From the East German experience with the Stasi we know the limits to scaling human surveillance. Preventing that from happening isn't a technology problem.
For your application to be secure, hundreds of thousands of individuals must have never made a mistake in millions of LOC within libraries generally written in low-level C. That isn't very plausible.
If at some point, my input hits your code, your memory, and your processor, that fact alone is sufficient to know that the system is vulnerable.
[0] "Computer Recreations: Of Worms, Viruses and Core War" by A. K. Dewdney, Scientific American, March 1989
Maybe we should focus on that? Why are we writing OSes in C when more-secure alternatives have existed for decades? Why don't we consider writing our phone OSes (which don't actually require backward-compatibility to 1960s OSes) in something higher-level and more-secure?
Just today I read a paper fron the author of Concurrent Pascal to C.A.R. Hoare, written in the early 90's about industry's looming doom due to C's usage starting to take off outside UNIX.
He was right...
https://news.ycombinator.com/item?id=10906999
Just repost that any time someone claims their smartphone is secure. Ask what they did for each area and proof of its effectiveness.
Summary of OK Labs:
https://en.wikipedia.org/wiki/Open_Kernel_Labs
Current company:
https://gdmissionsystems.com/cyber/products/trusted-computin...
Others include INTEGRITY, LynxSecure, VxWorks MILS, PikeOS... many lightweight kernels have done this. Also had real-time properties in most which helps with rooting out covert, timing channels.
Of course, there may be exploits derived from kernel/"supervisor" bugs, but all apps are sandboxed by default, for better or worse.
Such a dual-device setup allows use of most mobile apps, with improved security vs a mobile phone. Still need to avoid connecting to random servers, apps, hotspots, devices and phishing emails.
If the baseband processor uses DMA and there exists no IOMMU that you can trust on the system, lots of evil things are possible if you can control what is sent to the mobile phone OTA.
A wi-fi only device is not a mobile phone, but can provide most of the functionality of a mobile phone via OTT services and VPN to a separate mobile hotspot.
As an example, a SOC for feature phones having both GSM and WiFi might be reused in a cheaper "wifi adapter" that still has GSM circuitry but not visibly. Whether if can be used against you depends on whether it's a hard or soft switch they used to disable/hide it plus whether it's reversible or one-time (eg antifuse).
If you have time, read up on the basics: http://www.erights.org/talks/promises/paper/tgc05-submitted....
This is false theoretically.
For example, a while loop code in a Turing Machine is unhackable; the state repeats forever.
Suppose you have a Turing complete machine, with network connection, programmed to respond to 1 particular message with a particular message, and ignore all other messages. It seems clear that this should be possible to make secure against attackers who cannot do physical attacks?
I am not sure what you mean.
This sounds like an attempt to combine intuitions about the pumping lemma with memory corruption vulnerabilities: that "any system" must have some inputs that are "too much" for it to interpret correctly (for many programs written in C, that could be a single input string that's "too long").
https://en.wikipedia.org/wiki/Pumping_lemma
https://en.wikipedia.org/wiki/Buffer_overflow
These intuitions are founded on good reasons because every computing system has different kinds of limitations, and some kinds of distinctions that it can't make correctly, and some kinds of failure modes if it's expected to make arbitrary distinctions.
But there are ways out:
* If we narrow the definition of the task that the system has to do, it may be possible for the system to do it perfectly, and it may even be possible to make a formal proof that the system performs that task perfectly, even though there are other more general tasks that it doesn't perform, or performs imperfectly.
* If we allow the system to "give up" or indicate that it refuses or fails to answer certain questions, then it doesn't have to be "wrong" or exhibit wrong or unpredictable behavior. It can just say "sorry, not sure", which may be annoying but isn't a mistake and isn't necessarily a security vulnerability. (Maybe this is akin to those movie robots saying "does not compute" all the time.)
Within these frameworks, a kind of perfection, or at least a kind of correctness, is possible for many computing tasks -- including some that involve Turing-completeness, either as a property of the environment they're implemented in or as a property of the machine they implement.
Just because it is Turing complete does not imply that it uses a stack.
Consider:
look_for := "some string"; n := len(look_for); send_out := "other string"; i := 0; while(true){ c=getInputChar(); if(c==None){ i=0; continue; } if(c==look_for[i]) { i+=1; continue; } if(i==n){ output(send_out); i=0; continue; } //else i=0; continue; }
(Pseudo code. No specific language intended.)
I see no reason that the above would require a stack (provided that the input and output features are hardware built ins rather than function calls. Just reading or writing from/to a pair of registers.)
I see no way that such a program could be exploited (short of flaws in the machine).
Causing the stack to dump wouldn't work, as it has no stack. It just cycles through a small number of states based on input.
Now, some other program which is much more complicated could be written for the same machine, as the machine is Turing complete, but this particular program would not be vulnerable.