News for hackers. Stuff that matters.
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.