News for hackers. Stuff that matters.
Re:Extracting Qualcomm's KeyMaster Keys – Breaking Android F... by koolba on Thursday June 30, 2016 @12:31PM (#12009678)
Full disk encryption (FDE) is a UX issue, not a technical one. You don't need a secure cryptographic processor, but the UX sucks without one.

A simple, working, FDE setup would be something like LUKS running at boot:

    1. Turn on phone
    2. Phone loads up initial bootstrap OS
    3. Phone prompts user for master key
    4. Master key is used to unlock volume
    5. Regular OS boot continues
If the master key has enough entropy, brute forcing it becomes impossible. The phone won't "disable" as there's no self-destructing component (i.e. "secure crypto chip") but that doesn't mean it can be cracked. Boil as many oceans as you'd like, you're not going to brute force 256 bits of entropy.

The UX problem is that the master key is a PITA to enter if it's long enough to be cryptographically secure. That's what a crypto chip is supposed to solve. A limited number of attempts with a shorter passphrase.

Re:Extracting Qualcomm's KeyMaster Keys – Breaking Android F... by Dylan16807 on Thursday June 30, 2016 @12:48PM (#12009840)
On the other hand, phones do not need to be rebooted often. And if I'm upgrading my OS the stupid thing is going to make me wait 20 minutes while it precompiles every app, so screw it I don't care if I have to spend 40 seconds inputting a password.
Re:Extracting Qualcomm's KeyMaster Keys – Breaking Android F... by kyrra on Thursday June 30, 2016 @12:55PM (#12009889)
For what it's worth, the "optimizing apps" thing is going away in Android N.

https://developer.android.com/preview/api-overview.html#jit_...

Re:Extracting Qualcomm's KeyMaster Keys – Breaking Android F... by haikuginger on Thursday June 30, 2016 @01:14PM (#12010045)
I do find it somewhat amusing that Android went from Dalvik precompiled to Dalvik JIT, to ART precompiled, to ART JIT.
Re:Extracting Qualcomm's KeyMaster Keys – Breaking Android F... by mjevans on Thursday June 30, 2016 @04:14PM (#12011311)
It's actually a rather logical set of steps, it follows the same pattern as elsewhere probably for the same underlying reasons.

Compiled once is easier to develop, prove correct and validate functionality. Just in time offers convenience in deferring compilation, but increases storage requirements and can decrease the initial runtime performance due to compiling the code. If you have spare cores this starts to make more sense. If you have a mechanism of profiling and automatically tuning the optimization of frequently used codepaths / infrequently used ones then JIT also starts to have payoffs (this is where human hours making a smarter compiler pay off across many applications that don't warrant the human hours optimizing directly).

Re:Extracting Qualcomm's KeyMaster Keys – Breaking Android F... by Zigurd on Thursday June 30, 2016 @07:54PM (#12012834)
Another interesting aspect of the evolution of the Dalvik and ART runtimes is that they are runtimes for (mostly) battery-powered devices. A JIT compiler was an obvious next step but less obvious is that it had to be battery conscious. It was designed to JIT as little code as possible to attain the greatest gain in performance as possible. That's not how you would design a JIT compiler for server Java!
Re:Extracting Qualcomm's KeyMaster Keys – Breaking Android F... by Zigurd on Thursday June 30, 2016 @06:19PM (#12012285)
Dalvik interpreted was the first step. You could sort of call it "precompiled" if you call dex a precompiler.
Re:Extracting Qualcomm's KeyMaster Keys – Breaking Android F... by modeless on Thursday June 30, 2016 @02:33PM (#12010688)
Also, the system update install process will happen while the phone is in use, and only require a reboot after installation is finished. The whole process will be much faster.

Not only that, but Android N will be able to boot all the way to the lock screen before asking for the password, and even support functionality like phone calls, limited notifications, or alarms (so if your phone reboots in the night you'll still get woken up in the morning).

Re:Extracting Qualcomm's KeyMaster Keys – Breaking Android F... by mavhc on Thursday June 30, 2016 @12:59PM (#12009923)
Only for new devices that support it
Re:Extracting Qualcomm's KeyMaster Keys – Breaking Android F... by herge on Thursday June 30, 2016 @12:52PM (#12009868)
Right, but it may reboot at the most inopportune moments, like after the battery runs out, and where you may not have access to the 20 character long master password which is impossible to remember.
Re:Extracting Qualcomm's KeyMaster Keys – Breaking Android F... by ashitlerferad on Friday July 01, 2016 @02:51AM (#12014301)
Use Diceware and you will have no problem remembering a secure passphrase.

https://en.wikipedia.org/wiki/Diceware

Re:Extracting Qualcomm's KeyMaster Keys – Breaking Android F... by koolba on Thursday June 30, 2016 @12:58PM (#12009914)
How about a QR code on a business card kept in your wallet? Scan the QR code (with you phone's camera) to input the long passphrase (or even better just random bits).

There could still be a short pin/passphrase in addition to that. Keepass allows for something similar by having a local file + passphrase to unlock a password vault.

Backups of the QR code could be as easy as photocopying it!

Re:Extracting Qualcomm's KeyMaster Keys – Breaking Android F... by Dylan16807 on Thursday June 30, 2016 @01:00PM (#12009931)
If you're putting it in your wallet, just use plaintext.
Re:Extracting Qualcomm's KeyMaster Keys – Breaking Android F... by koolba on Thursday June 30, 2016 @01:03PM (#12009962)
> If you're putting it in your wallet, just use plaintext.

That has the same issue of not being able to input it into the phone. The QR code can be easily scanned.

Sure OCR of plain text is possible but some more standardized like a QR Code would be better.

Re:Extracting Qualcomm's KeyMaster Keys – Breaking Android F... by Dylan16807 on Thursday June 30, 2016 @01:10PM (#12010015)
I'd rather just type than fuss with getting a QR code to scan in possibly-bad lighting. I just tested a password of 30 random lowercase letters, which is total overkill for security, and it took less than 30 seconds to type into my phone. Doing that perhaps once a month, or once you find a charger after your battery dies, is no problem.
Re:Extracting Qualcomm's KeyMaster Keys – Breaking Android F... by koolba on Thursday June 30, 2016 @01:20PM (#12010103)
> I'd rather just type than fuss with getting a QR code to scan in possibly-bad lighting.

Nothing says you can't do either, or even both[1]. The idea of using a QR Code is so that mom/dad/grandpa/grandma can use a long password to unlock their phone without having to type it in.

Bonus points if the QR Code itself is in the shape of a key!

[1]: Which would be "something you have" + "something you know".

Re:Extracting Qualcomm's KeyMaster Keys – Breaking Android F... by Pxtl on Thursday June 30, 2016 @01:21PM (#12010113)
A ring or bracelet with an NFC tag in it. Well, a ring is probably too small for a proper NFC tag, but either way: NFC jewellery.
Re:Extracting Qualcomm's KeyMaster Keys – Breaking Android F... by wyldfire on Thursday June 30, 2016 @04:09PM (#12011283)
They absolutely make rings w/NFC tags. At least men's rings, I assume they may do it for women's too.
Re:Extracting Qualcomm's KeyMaster Keys – Breaking Android F... by athenot on Thursday June 30, 2016 @07:54PM (#12012841)
Really? That is something I dreamed about for a long time. A small object on the finger is the least obstructive form factor and becomes part of self. But unlike a fingerprint, a ring can be replaced if somehow compromised.
Re:Extracting Qualcomm's KeyMaster Keys – Breaking Android F... by wyldfire on Friday July 01, 2016 @12:59AM (#12013974)
e.g. http://amzn.com/B00UTEHH8K claims "Lock and Unlock Your Smart Phone or Tablet Quickly, Hide the App When You Leave Your Smart Phone Alone"
Re:Extracting Qualcomm's KeyMaster Keys – Breaking Android F... by Pxtl on Thursday June 30, 2016 @04:39PM (#12011469)
Neat. Does android support NFC for the bootup FDE decrypt?
Re:Extracting Qualcomm's KeyMaster Keys – Breaking Android F... by wyldfire on Friday July 01, 2016 @01:00AM (#12013979)
I doubt it. But you might not prefer it to, depending on the threats you want to secure against. If you had extremely valuable secrets, someone could just execute you and use your NFC jewelry to unlock those secrets.
Re:Extracting Qualcomm's KeyMaster Keys – Breaking Android F... by desiderantes on Friday July 01, 2016 @12:00PM (#12017225)
Or rip off your fingers if you use your fingerprints to unlock, or just drug you with scopolamine to unlock it.
Re:Extracting Qualcomm's KeyMaster Keys – Breaking Android F... by Pxtl on Friday July 01, 2016 @02:30PM (#12018548)
I'm looking for normal corporate security here, not fighting the KGB.
Re:Extracting Qualcomm's KeyMaster Keys – Breaking Android F... by superuser2 on Thursday June 30, 2016 @02:34PM (#12010697)
Phones spend most of their lives powered on. You need to be required to enter a similarly good password to unlock it while the phone is running, or disk encryption has accomplished nothing at all.
Re:Extracting Qualcomm's KeyMaster Keys – Breaking Android F... by Dylan16807 on Thursday June 30, 2016 @02:50PM (#12010802)
Not true at all. Any attack against the encrypted data itself will be stopped. Any attack that requires restarting the phone to load different software will be stopped. Having a secure boot password and also a software-enforced pin to unlock accomplishes a great deal. And as a bonus, when a security measure is not grossly inconvenient you get more people using it.
Re:Extracting Qualcomm's KeyMaster Keys – Breaking Android F... by superuser2 on Thursday June 30, 2016 @02:56PM (#12010852)
The key is in memory. How many attackers are prepared to read the flash chip but not the RAM?
Re:Extracting Qualcomm's KeyMaster Keys – Breaking Android F... by Dylan16807 on Thursday June 30, 2016 @03:11PM (#12010928)
In theory it should be easy to keep the key from leaving the CPU's cache.
Re:Extracting Qualcomm's KeyMaster Keys – Breaking Android F... by soheil on Thursday June 30, 2016 @04:22PM (#12011363)
Sometimes collection agencies rotate their phone numbers when they call you so you can't block them, the only way to turn off the phone.
Re:Extracting Qualcomm's KeyMaster Keys – Breaking Android F... by shawnz on Thursday June 30, 2016 @04:25PM (#12011387)
You could turn off notifications, or use airplane mode.
Re:Extracting Qualcomm's KeyMaster Keys – Breaking Android F... by cbsmith on Thursday June 30, 2016 @08:02PM (#12012893)
The other UX problem is you need to make sure that someone doesn't replace the initial bootstrap OS with something else that captures the master key.

So, that's where you need the secure cryptographic processor and the trusted environment, etc.

Re:Extracting Qualcomm's KeyMaster Keys – Breaking Android F... by williamscales on Thursday June 30, 2016 @12:44PM (#12009798)
Wait, Android doesn't use LUKS?

Argh. Just give me a stinkin' smartphone that runs Linux. These are solved problems, people.

Re:Extracting Qualcomm's KeyMaster Keys – Breaking Android F... by josteink on Thursday June 30, 2016 @01:58PM (#12010426)
Last I checked, it does. I'm pretty sure for instance the Nexus 5X relies on standard LUKS for FDE.

What may be protected through other means is the key used to encrypt that filesystem. The user enters a pin or a pattern to unlock said key on boot, and that key is used to initiate LUKS.

Maybe that's what they have cracked here?

Re:Extracting Qualcomm's KeyMaster Keys – Breaking Android F... by Sarkie on Thursday June 30, 2016 @02:19PM (#12010593)
Isn't Android running a really old Linux because they can't rebase? So they have to cherry pick... or has that stopped now?
Re:Extracting Qualcomm's KeyMaster Keys – Breaking Android F... by kllrnohj on Thursday June 30, 2016 @06:41PM (#12012409)
No, but they tend to stick to the LTS releases and the kernel tends to not get a version update for the life of the device.

So it doesn't track the latest, but it's also not "really old" in that upstream Linux still considers it a supported version.

Re:Extracting Qualcomm's KeyMaster Keys – Breaking Android F... by josteink on Friday July 01, 2016 @06:03AM (#12014880)
No it's actually very old. This is from my Nexus 5X, running Android N preview build:

    $ uname -a
    Linux localhost 3.10.73-gef93fe9 #1 SMP PREEMPT Fri May 20 20:48:13 UTC 2016 aarch64 Android
There was a technical reason for pinning it at this version (also known the "Android kernel"), but I don't remember what that specific reason was.
Re:Extracting Qualcomm's KeyMaster Keys – Breaking Android F... by halviti on Thursday June 30, 2016 @01:35PM (#12010232)
Jolla / Sailfish ?
Re:Extracting Qualcomm's KeyMaster Keys – Breaking Android F... by dlitz on Thursday June 30, 2016 @02:54PM (#12010835)
You also want the passphrase to be easily changed, separately from the master key (because changing the master key is slow and resource-intensive).

Even if you have a strong passphrase, there's some probability of leaking some number of bits of it via side-channels every time it's entered (e.g. surveillance cameras, fingerprints on the screen, shoulder surfing, vulnerable code, TEMPEST, etc). Plus, people often keep a backup copy of their passphrases (unique, strong passphrases are hard to remember), so there's also a cumulative risk of the backup leaking over time, as well.

Long-term confidentiality is just surprisingly hard in the real world.

Re:Extracting Qualcomm's KeyMaster Keys – Breaking Android F... by ComodoHacker on Thursday June 30, 2016 @04:30PM (#12011421)
>Full disk encryption (FDE) is a UX issue, not a technical one.

Most of the secutity is pretty much a UX issue. Otherwise century-old one-time pad would fit all.

Re:Extracting Qualcomm's KeyMaster Keys – Breaking Android F... by hiermtt on Thursday June 30, 2016 @04:08PM (#12011272)
And with a crypto chip it's much easier to share the device. Think of family or classroom/work devices.
Re:Extracting Qualcomm's KeyMaster Keys – Breaking Android F... by DenisM on Thursday June 30, 2016 @07:19PM (#12012650)
QR code maybe? I think that might work...