News for hackers. Stuff that matters.
Re:To hack an Android phone, just type in a really long pass... by mehrdada on Monday September 21, 2015 @04:36AM (#10251064)
This can happen only because of a design flaw in the security architecture of Android (L). Unlike iOS and like traditional PCs, the disk encryption key is always in memory when the device is booted and nothing is really protected if you get a device in that state. It's an all-or-nothing proposition. On iOS, there are different encryption keys that are used to protect different classes of information. Specifically, when an iOS device is locked, the operating system loses a key that can decrypt files that are of a certain protection class that are not supposed to be readable when the device is locked. Only by entering the password when unlocking the device (or reloading it from Touch ID memory), that key can be derived again. The effect is, for example, all your mail can be protected and rendered unreadable while the device is locked.

With this security architecture, no bug in the password "gatekeeper UI" can lead to you being able to read the protected information if the device gets locked successfully.

Re:To hack an Android phone, just type in a really long pass... by ctz on Monday September 21, 2015 @04:53AM (#10251114)
iOS has had the same class of bug a few times in the past. Example: http://www.cnet.com/news/apple-promises-fix-for-ios-6-passco...

Android has a similar architecture with the 'keystore' service (for keys rather than files though). Crashing SystemUI will 'unlock' the phone, but none of the keys in the keystore will be usable. Unfortunately, no apps use the keystore in practice because it's unusably badly designed. You're vanishingly unlikely to notice if you're using a phone with a locked keystore.

Re:To hack an Android phone, just type in a really long pass... by mehrdada on Monday September 21, 2015 @04:58AM (#10251128)
I quote from the link you posted: "...opens up access to the phone application to listen to a user's voice mails, place calls, and view contact information. Attempting to go beyond that sends users back to the passcode screen."

That's the point: what you can access is not encrypted, but lots of stuff are on iOS9: photos, mail, etc. I'd say the difference in what you can access is staggering.

Re:To hack an Android phone, just type in a really long pass... by soisses on Monday September 21, 2015 @07:56AM (#10251615)
Seems photos are accessible with a new iOS9 flaw: http://www.idownloadblog.com/2015/09/20/ios-9-access-photos-...

How can this be, if they are encrypted while the phone is locked?

Re:To hack an Android phone, just type in a really long pass... by daxelrod on Monday September 21, 2015 @10:46AM (#10252613)
My guess is that contacts and photos remain in the class of things that do not require the phone unlock key.

Contacts need to be accessed to display a caller's name when the phone is ringing.

Since it's possible to take a photo with the phone locked, the whole photo database may be accessible.

Re:To hack an Android phone, just type in a really long pass... by giovannibajo1 on Monday September 21, 2015 @03:23PM (#10254540)
Yes. If you reboot an iOS phone, and then call it without ever entering the passcode before, it will display the phone number but not look it up, because contacts are encrypted. The encryption class here is "locked until first unlock", so they stay unlocked afterwards not to disrupt basic expected user functionality. The whole security design is still much better as many other things stay completely locked.
Re:To hack an Android phone, just type in a really long pass... by mehrdada on Monday September 21, 2015 @10:58AM (#10252717)
I stand corrected then. Photos are probably still encrypted under "accessible after first unlock" class. Sigh. Sorry for this mistake.

The idea of having a security architecture with different classes of data still remains, so a third party app can quite easily leverage this, for instance. Unfortunately there doesn't seem to be a comprehensive list of protection classes that each app uses for its files.

[dead]
Re:To hack an Android phone, just type in a really long pass... by dang on Monday September 21, 2015 @02:37PM (#10254245)
Accusations of astroturfing and shillage without evidence are not allowed on HN, so please don't do this here.
Re:To hack an Android phone, just type in a really long pass... by bilbo0s on Monday September 21, 2015 @08:01AM (#10251628)
Please pardon my ignorance. I'm not a security expert.

Is there any reason this can't be fixed by just copying iOS in this regard ??? I guess the question I'm asking is, this bug is entirely fixable right ???

Not trying to diminish the seriousness of it. It sounds pretty horrible. Just saying that if Android's architecture will allow you to do something like iOS does, but it's simply unimplemented currently, that's one thing. It would be quite another thing if Android's architecture would NOT allow you to do something like iOS does. As I said... I'm not a security expert... but it SOUNDS like you can implement a fix that would mirror the protections provided in iOS ???

Is that true ???

Re:To hack an Android phone, just type in a really long pass... by mehrdada on Monday September 21, 2015 @11:06AM (#10252768)
Yes. It requires serious engineering across the OS stack though. Also, it is generally harder and less effective to this retroactively; existing third party apps may not switch to leverage the new APIs when it is done retroactively. This makes it hard for PC operating systems to effectively adopt it, though I really hope they do it soon.

Right now it seems the low hanging fruit for Android would be to encrypt devices _at all_ (by default). Different classes of encryption is a luxury.

Re:To hack an Android phone, just type in a really long pass... by crazysim on Monday September 21, 2015 @12:52PM (#10253517)
I did hear they did encrypt by default on the Nexus 6. Unfortunately, it seriously affected performance and was then turned off. I guess this may be due not having a fast hardware encryption path to and from the flash memory.

iOS encrypts, even if you don't set a passphrase or something and their security white paper does mention having dedicated hardware to make it seamless.

Re:To hack an Android phone, just type in a really long pass... by andrewpi on Monday September 21, 2015 @01:34PM (#10253804)
I believe a later software update for the Nexus 6 sped up encryption considerably.
Re:To hack an Android phone, just type in a really long pass... by Glide on Monday September 21, 2015 @02:30PM (#10254206)
How do I check if encryption is turned on for a Nexus 6?
Re:To hack an Android phone, just type in a really long pass... by azernik on Monday September 21, 2015 @04:37PM (#10254966)
If an Android device has encrypted storage, it has to ask you for the decryption password before it will boot (ie BEFORE you get to a lock screen). If it doesn't, then it's not encrypted.
Re:To hack an Android phone, just type in a really long pass... by misnome on Monday September 21, 2015 @08:16AM (#10251664)
> I guess the question I'm asking is, this bug is entirely fixable right ???

Of course. The problem android has had in the past, though, is that actually getting security updates to users could be incredibly convoluted - with every vendor and network having their own, slightly tweaked (and heavily branded) versions of android.

Re:To hack an Android phone, just type in a really long pass... by ignoramous on Monday September 21, 2015 @05:50AM (#10251270)
You're right, but the KeyStore API isn't even exposed to 3P apps. AOSP, however, does use it. May be the Framework could use the state of the KeyStore (which would be set to "locked") to detect a breach?
Re:To hack an Android phone, just type in a really long pass... by JoshTriplett on Monday September 21, 2015 @10:07AM (#10252335)
There are a few ways that can and should be fixed to "fail closed". For instance, "locked" status should get stored somewhere outside the memory of any one process, so that if the system UI crashes, when it comes back up, before it displays any application, it should notice that it was previously in the locked state and go back to the locked state.
Re:To hack an Android phone, just type in a really long pass... by mtgx on Monday September 21, 2015 @05:06AM (#10251155)
Jesus, why do Android engineers keep getting security so wrong so often? And they even bragged so much about how L is (finally) getting storage encryption by default, which they promptly killed after the Nexus 6 launch (because apparently they are stupid and launched the device without hardware accelerated encryption, even though the chip supported...ugh).

We still haven't heard anything about it being re-enabled in Android M again (or ever). Also, I remember reading about Android <4.4 (optional) storage crypto being seriously broken as well.

It's unfortunate because many people probably still believe they are getting default storage encryption. Heck, all the new stories on encryption and the FBI still (falsely) mention how Android is encrypting the storage by default. It reminds of media sites saying Skype is P2P and secure against eavesdropping years after Microsoft announced it changed its infrastructure to a centralized wiretap-friendly model, just like everyone else.

The gap between iOS and Android in terms of security (and privacy, too) seems to only be increasing every year. If they keep this up I may finally switch to an iPhone after years of being an Android-only user.

https://medium.com/@FredericJacobs/apple-ios-9-security-priv...

And that's even without mentioning the horrible update problem that Android has. I've just learned to live with that by installing custom ROMs after my phone stops being supported a year into its life-cycle, which is obviously not ideal in terms of security nor is it something I should have to do to get better security.

Re:To hack an Android phone, just type in a really long pass... by jerf on Monday September 21, 2015 @08:13AM (#10251656)
"Jesus, why do Android engineers keep getting security so wrong so often?"

Security is hard. Really profoundly hard, not just superficially hard.

And despite the fact that nominally I'd expect to get upvotes for stating what you'd think would be the groupthink consensus, my observation is that in the field, even engineers explicitly tasked with security still often think it's really easy and they're really good at it, so there's no great need for them to budget lots of time for it. This turns out poorly. I do not toss this around lightly because it's become cliche to just fling it around without much care, but there's a lot of real, no-foolin' Dunning-Kruger effect operative in this area.

(Your test for Dunning-Kruger on this matter is: If you're told you need to secure something and you're going to be personally responsible for its security, do you A: Say "Oh, that's easy, I'll 'just'..." followed by pretty much any series of words, or B: get the cold flop sweats, regardless of how easy it may superficially seem?)

Re:To hack an Android phone, just type in a really long pass... by ajross on Monday September 21, 2015 @11:45AM (#10253030)
> Security is hard. Really profoundly hard, not just superficially hard.

Indeed. There is an army of naked celebrities dancing around the internet today because of an "iOS" hole that didn't even involve the device OS at all.

Picking on specific features to announce "Apple is more secure" is very much missing the point.

That said, yeah: I'm not a big fan of Android's security architecture either, though it has been improving rapidly.

Re:To hack an Android phone, just type in a really long pass... by jtriangle on Monday September 21, 2015 @02:34PM (#10254236)
> though it has been improving rapidly.

This is an important factor, and maybe the fatal flaw in android's carrier relationships. Google is always very fast to push a fix out, but the carriers always drag their feet in getting the fix to the actual devices.

Re:To hack an Android phone, just type in a really long pass... by ajross on Monday September 21, 2015 @03:19PM (#10254518)
It's really not. We're talking about security architecture here (which rolls out only with OS releases) and not security bugs (which get rapid patches on all but the most negligent of OEM devices).

Having a better security architecture works (to stretch the metaphor) like immunization: past a certain adoption level you reach a "herd immunity" state where the marginal benefit to an attacker of a specific flaw drops rapidly to zero even though there are still "old" devices out there in the market in small numbers.

Basically, the market refresh cycle is still at something like 18 months, so even given that OEMs are slow new Android releases are reaching the public in large numbers fairly promptly.

Re:To hack an Android phone, just type in a really long pass... by jtriangle on Monday September 21, 2015 @09:22PM (#10256146)
That is actually a great point, hardware refresh is such that updates get performed regularly. Also, this exploit requires hardware access to the phone, which is generally considered game over in any respect.

It would be beneficial if carriers could come up with updates faster however. I've seen Verizon drag its feet on more than one occasion, especially with phones that are a generation or two behind.

Re:To hack an Android phone, just type in a really long pass... by alanh on Monday September 21, 2015 @05:40PM (#10255320)
> There is an army of naked celebrities dancing around the internet today because of an "iOS" hole that didn't even involve the device OS at all.

Are you referring to the year-ago iCloud “hacks” or is there a really surprising twist to the whole XCode Ghost thing that I haven’t heard about? :)

Re:To hack an Android phone, just type in a really long pass... by fyolnish on Monday September 21, 2015 @08:40AM (#10251763)
His point was that iOS is more secure. I don't see how security being hard is a counterpoint to that.
Re:To hack an Android phone, just type in a really long pass... by jerf on Monday September 21, 2015 @08:50AM (#10251816)
It's actually a bizarre thing when anybody gets security right the first time. If Apple happened to do something well, that's a huge credit to Apple. Heck, even Android's experience here is above the baseline for our industry.
Re:To hack an Android phone, just type in a really long pass... by blinkingled on Monday September 21, 2015 @10:20AM (#10252428)
Complexity is the bane of Security. Android has to work on a ton of devices with a ton of variation and it has its upsides and downsides. In this case many OEMs ship their own lock screens that update via Play Store and so for example none of my dozen Android devices have this issue - the stock ones are already patched and non stock ones didn't have it in first place. The downside is that the code has to cater to far more variations than something simpleton and that means more probability of security issues.

Given the scale and complexity I would say Google's done an acceptable job at Android security, but I do think they need to be even more serious about it. And it's not like iOS (remember lock screen bugs) or Mac OS X (remember password less logins succeeding?) haven't had their fair share of issues.

Re:To hack an Android phone, just type in a really long pass... by cnvogel on Monday September 21, 2015 @10:20AM (#10252427)
> and you're going to be personally responsible for its security

Well... but Android is a year long (8 years since the first beta) effort backed by Google (55k employees) and companies like Samsung (490k employees). They might spare a few people coming up with a scheme for data encryption that works?

And really, I don't claim it's easy, and I don't claim that I personally could come up with something even halfway resembling Apple's solution. But Android seems, unfortunately, to not even be trying.

Re:To hack an Android phone, just type in a really long pass... by m45t3r on Monday September 21, 2015 @09:47AM (#10252205)
No, encryption in Android 5.0 works really well, really. It is really well designed, not state-of-art like the one in iOS however it is still leaps ahead from any other encryption implementation currently in the industry. Perfomance wise, it's great too. I have a Moto X with Android 5.1, running encryption from day one, and didn't even notice any slowdown (and it uses soft encryption, no support for hardaware).

Android users seems to care more about benchmarks them security. The fact that Google removed the encryption by default was after all the bitching that people made after some releases showed that Nexus 6 was faster without encryption. However, there is no proof that this had any significant impact on performance, and I think Google put this restriction after a careful study that encryption by default, even on pure software implementation, did not impact usability on devices. OEMs do like benchmarks and likes to be lazy ("no encryption by default means I don't need to create a module implementing encryption that my hardware already supports! less money to spend, more profit!") because this makes people buy more phones, so they probably pressured Google to remove default encryption because encryption "makes performance looks worse" (on paper, not in real life).

If I was part of the midia, I would do a blind test running Nexus 6 with both encryption enabled and disabled. This would show if the performance impact was significant. But the majority of midia prefers the easier way using benchmarks, so we had all these Android users crying rivers that they lost performance. Serious, wtf.

Re:To hack an Android phone, just type in a really long pass... by cnvogel on Monday September 21, 2015 @10:07AM (#10252332)
Compared to "no encryption", a S4 mini (Dual-core 1.7 GHz. 1.5 GB RAM) is almost unusable (~30 seconds to switch to an app that's stale, i.e. not one of the last few apps used) under Cyanogenmod 12.1 with full disk encryption on. Without encryption is was ~"ok" to use, not fast, but bearable.
Re:To hack an Android phone, just type in a really long pass... by bad_user on Monday September 21, 2015 @10:28AM (#10252481)
When speaking of disk encryption the bottleneck is the CPU. In order for encryption to work without a noticeable performance hit you need a microprocessor with hardware acceleration for AES. For example the latest Intel and AMD processors have the AES-NI instruction set. Ditto for the latest Qualcomm Snapdragon SoC.

I'm not sure if hardware acceleration is enabled in Nexus 6, but the hardware is certainly capable of acceleration. I now have an encrypted Nexus 6 and the performance is fine. My previous Nexus 4 was also encrypted and after encryption the performance hit was noticeable when booting up, but after boot it performs fine.

30 seconds to switch an app that's stale sounds like there's something really wrong either with your device or with the Cyanogenmod version you've got installed, judging by those specs at least.

Re:To hack an Android phone, just type in a really long pass... by m45t3r on Monday September 21, 2015 @11:05AM (#10252764)
In modern processors the bottleneck generally is the IO. While it is not the same think (desktop vs phone processors), this author benchmarks OpenSSL in an algorithm similar that Android uses, with and without AES-NI (Intel HW encryption): https://mjanja.ch/2013/11/disabling-aes-ni-on-linux-openssl/.

Even without AES-NI, this processor is doing more than 100MB/s of encryption. Mobile storage is a lot worse than this (like less than 50MB/s in sustained sequential writes), and you have to remember this would be the worst case (since the majority of writes for common users is small files instead of big files).

Just to put in perspective: my Moto X can write around ~20MB/s when transferring files by USB 2.0. And it can still write the same ~20MB/s with encryption on.

Re:To hack an Android phone, just type in a really long pass... by madeofpalk on Monday September 21, 2015 @10:13AM (#10252377)
> not state-of-art like the one in iOS however it is still leaps ahead from any other encryption implementation currently in the industry.

Considering the industry Android is in is essentially only iOS and Android, that makes them the worst in the industry...

Re:To hack an Android phone, just type in a really long pass... by m45t3r on Monday September 21, 2015 @10:49AM (#10252640)
There is Windows Phone if you only consider "industry" mobile phones, however I was considering the whole personal computing industry. In this case, includes Mac OS X, Windows, Linux and you get the idea.

Or you only encrypt your phone and leaves your notebook unecrypted? This would be silly.

Re:To hack an Android phone, just type in a really long pass... by drzaiusapelord on Monday September 21, 2015 @02:14PM (#10254099)
Everything about Android is a rushed project. Rubin's team was running scared of OpenMoko hype, Blackberry success in enterprise, and Windows Mobile everywhere else. Then Google snatch it up and ran scared of Apple. And now here we are.

Android needs an 18-24 "gap" period of re-engineering everything they rushed, but at that point you might as well just write a new OS. I suspect there is a secret 2nd version of Android that isn't virtual machine based, doesn't use Java, but has whatever backwards compatibility needed to work with the existing applications. If things get too hot from Oracle, then that will be the next version of Android. Switching to ART seems to suggest that Google has some portability chops here. Incremental updates like they're doing now is the path of least resistance, but considering how much more polished iOS is, I really doubt Android will ever be on that level. Its always going to be a little quick and dirty and I think if you buy an Android product you have to accept that.

I switched to the Nexus products from my 3GS. I knew Android was a step down in a lot of ways, but I wanted the hardware flexibility it offered. Now that I can get a big Apple phone with a swype keyboard AND it works with Android smartwatches, it seems the Android value proposition keeps getting weaker and weaker.

Re:To hack an Android phone, just type in a really long pass... by personjerry on Monday September 21, 2015 @07:14AM (#10251495)
Maybe Blackberry's security-oriented design isn't so lackluster after all
Re:To hack an Android phone, just type in a really long pass... by blinkingled on Monday September 21, 2015 @10:23AM (#10252440)
Given their track record - it was quite great actually.
Re:To hack an Android phone, just type in a really long pass... by raverbashing on Monday September 21, 2015 @06:45AM (#10251412)
I have to agree

Add to that forgetting a month in a calendar and an Alarm that rings for one second and stops

Almost justifies the extra price for the iPhone

Re:To hack an Android phone, just type in a really long pass... by TwoBit on Monday September 21, 2015 @12:20PM (#10253269)
IOS had a security flaw only a few months ago that let a hacker get past anybody password by rebooting the device after a failed attempt.
Re:To hack an Android phone, just type in a really long pass... by enraged_camel on Monday September 21, 2015 @12:33PM (#10253382)
>>Jesus, why do Android engineers keep getting security so wrong so often?

What can you expect from a company that names its version releases after chocolates, candy and ice cream? That's literally the level of maturity with which they view their own product. So no wonder security is an afterthought.

Re:To hack an Android phone, just type in a really long pass... by icebraining on Monday September 21, 2015 @06:59AM (#10251454)
Even with the Android/PC architecture, you can have a much better design.

For example, jwz's XScreenSaver separates the graphical process (more complex and bug-prone) from the daemon. If you manage to crash the password input screen (or the screensaver itself), the daemon will just restart it.

Re:To hack an Android phone, just type in a really long pass... by kelnos on Monday September 21, 2015 @04:02PM (#10254782)
Not true, actually. See https://www.jwz.org/xscreensaver/toolkits.html ... (I'm assuming this hasn't changed, of course, as this was written over 10 years ago... but the fundamental reasons why he was unable to write the dialog as a separate process should still remain, since they're fairly well-known and not-particuarly-surmountable issues with X.)

The password input screen uses only low-level X11 calls (and not a higher-level GUI toolkit) in an attempt to reduce the library dependency list and therefore the possibility of crasher bugs. But if you do indeed manage to find a crash bug in libX11 (or a dep) that you can trigger from xscreensaver's password entry box, that will indeed unlock the screen.

Now, the xscreensaver configuration panel is written using GTK, which is indeed a separate process, and a crash in the config panel won't affect the screen locker.

Re:To hack an Android phone, just type in a really long pass... by icebraining on Monday September 21, 2015 @05:59PM (#10255409)
Oh, I don't remember that page, I must have missed it.

Still, Android doesn't run X, and since they control the whole OS, it shouldn't be too hard to avoid having input "pass through" the lock screen.

Re:To hack an Android phone, just type in a really long pass... by cnvogel on Monday September 21, 2015 @06:58AM (#10251451)
That's one of the things that I find inexcusably and also rather sad: Given the amount of customization that Android systems require to run on a particular vendors hardware, they don't seem to make use of the multitude of security features present in modern processors, or just the ability to solder on a dedicated TPM/security processor.

But I'm genuinely curious, maybe someone here on HN knows: Which of the other mobile phone systems (Windows Phone; Firefox OS; Ubuntu for Mobile; Tizen; Blackberry; ...) have a halfway decent security architecture, similar to iOS?

Re:To hack an Android phone, just type in a really long pass... by pjmlp on Monday September 21, 2015 @12:04PM (#10253163)
I would add Symbian to your list. It was there first.
Re:To hack an Android phone, just type in a really long pass... by alanh on Monday September 21, 2015 @05:38PM (#10255313)
I can't tell if you are implying Symbian had a good security story, or if you are merely reminding us that it is basically the original smartphone OS.
Re:To hack an Android phone, just type in a really long pass... by pjmlp on Monday September 21, 2015 @06:04PM (#10255435)
It had a good security history.

The whole point of Symbian OS S60 3rd Edition (aka Symbian OS 9.1) release was to introduce DRM support and a security model based on certificates for API sets.

Many, included myself, were disappointed that they didn't took the opportunity of such breaking change in the programming model, to throw the Symbian C++ dialect out of the window.

Re:To hack an Android phone, just type in a really long pass... by devit on Monday September 21, 2015 @04:52AM (#10251112)
You can do that on PC by hibernating instead of locking the screen (assuming it works on the OS and hardware being used) and then rebooting instead of shutting down after hibernation.
Re:To hack an Android phone, just type in a really long pass... by mehrdada on Monday September 21, 2015 @04:55AM (#10251118)
If you do that, you'll lose 100% of your PC's functionality, whereas iOS is quite useful in locked mode. With some neat tricks, it even fetches new mail for you, for instance: basically it encrypts new messages by encrypting them with a public key whose private key is encrypted and the key is not available while the device is locked[+]. A hibernated PC cannot do this and lots more.

[+]: technically, it generates a new AES key, encrypts the message under it, encrypts that key under a key derived from ECDH over Curve25519 with the system public key (whose private key is encrypted and inaccessible while locked) and saves the encrypted file and the wrapped key somewhere to be decrypted when it gets unlocked and gets rid of the AES key.

Re:To hack an Android phone, just type in a really long pass... by devit on Monday September 21, 2015 @05:47AM (#10251265)
That's not as secure as hibernation, because someone who can break into the running device can at least read all your new mail and if they aren't using an ad-hoc e-mail protocol or implemented it carelessly also read all mail and probably get the e-mail username and password too.

This also only really works for software specifically designed for this mode.

EDIT: it can actually be mostly secure if the client public key is sent before locking and then the encryption is done by the server: the attacker would only learn the number and timing of new messages and their size (assuming an ad-hoc protocol and very carefully implemented software).

It's also sort of possible to do it with generic software by simply dumping HTTPS TCP traffic to disk and decoding it once the system is unlocked (although it allows a MITM to fill up your disk unless the ciphersuite allows authentication with a key that doesn't allow decryption).