Security Researcher Publishes How-To Guide To Crack Android Full Disk Encryption (thehackernews.com)
An anonymous reader writes: Google first implemented Full Disk Encryption in Android by default with Android 5.0 Lollipop in an effort to prevent criminals or government agencies from gaining unauthorized access to one's data. What it does is it encodes all the data on a user's Android device before it's ever written to disk using a user's authentication code. Once it is encrypted, it can only be decrypted if the user enters his/her password. However, security researcher Gal Beniamini has discovered issues with the full disk encryption. He published a step-by-step guide on how one can break down the encryption protections on Android devices powered by Qualcomm Snapdragon processors. The source of the exploit is posted on GitHub. Android's disk encryption on devices with Qualcomm chips is based only on your password. However, Android uses your password to create a 2048-bit RSA key (KeyMaster) derived from it instead. Qualcomm specifically runs in the Snapdragon TrustZone to protect critical functions like encryption and biometric scanning, but Beniamini discovered that it's possible to exploit a security flaw and retrieve the keys from TrustZone. Qualcomm runs a small kernel in TrustZone to offer a Trusted Execution Environment known as Qualcomm Secure Execution Environment (QSEE), which allows small apps to run inside of QSEE away from the main Android OS. Beniamini has detailed a way for attackers to exploit an Android kernel security flaw to load their own QSEE app inside this secure environment, thereby exploiting privilege escalation flaw and hijacking of the complete QSEE space, including the keys generated for full disk encryption. The researcher also said Qualcomm or OEMs can comply with government or law enforcement agencies to break the FDE: "Since the key is available to TrustZone, Qualcomm and OEMs [Original Equipment Manufacturers] could simply create and sign a TrustZone image which extracts the KeyMaster keys and flash it to the target device," Beniamini wrote. "This would allow law enforcement to easily brute force the FDE password off the device using the leaked keys."
Funny. My systemd-enabled desktop runs without any issues whatsoever. But hey, i'm positive other end users are picky about the init system used by their PCs.
From reading TFA, I conclude that you still need unlocked access to the phone? so if somebody gets hold of your turned off phone, they can't use it.
Don't use TrustZone; store the stuff as a proper LUKS volume and stop using "trusted" proprietary crap. People complain about how these hypervisor sideband processors are not open or auditable and are always dismissed as paranoid fools by naysayers (it can't POSSIBLY happen!) then this kind of thing happens and the hand-wavers desperately try to do some damage control so they won't be wrong somehow. It's the same story with Intel ME. Can we just admit already that having supervisory-processor-within-a-processor stuff is inherently insecure?
He published a step-by-step guide on how one can break down the encryption protections on Android devices powered by Qualcomm Snapdragon processors.
I do not think Qualcomm or Google will be impressed.
My advice to him: "Get a lawyer, quick!"
And exploit of the widevine DRM subsystem running in trust-zone. The second exploit is possible because you don't control the keys to the kingdom.
Snap
I read the article and it looks like this exploit merely allows offline brute forcing of the password. Now, of course, many people choose short passwords on their portable devices, but if you choose a password with sufficient entropy (at least 100 bits, or better yet, 128) you should be safe from this attack. Note: that would require a fairly long and random alphanumeric password.
If I can be modded down for being a troll, can I be modded up for being an orc, or a balrog?
Why not just uncompressed the initramfs, load a binary or other tool to siphon off the users pw on key entry?
The kernel is unencrypted as the system needs to boot from it
For devices that get regular updates the Qualcomm TrustZone bug has already been fixed. It went out in the January 2016 updates: https://source.android.com/sec.... Check the patchlevel date on your device.
Of course the other part, that someone who can compel Qualcomm to sign TrustZone software images that intentionally compromise security, is still the case, and likely will be for some time. That's a threat model that hadn't been considered important until recently, and it's one that's not easy to mitigate. That's not restricted to Qualcomm, either. In every device with a trusted execution environment, there's some organization who holds the signing keys needed to load firmware in that environment, generally (but not always) the SoC vendor.
Note to ACs: I usually delete AC replies without reading them. If you want to talk to me, log in.
The 2 holes used here have been patched, in January and May. If your phone software is older than that, well... Get on your device manufacturer's ass about not offering timely updates, or root and install an updated ROM yourself.
CVE-2015-6639: https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-6639
CVE-2016-2431: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-2431
You still haven't explained why systemd is so bad.
It's on my Linux desktops and I haven't had a problem with it.
All encryption can be eventually cracked. More at 11.
It sounds like the strength of the full-disk would be no better than the strength of the password, pin number, of whatever else is used. Anything that you could conveniently and quickly input to unlock you phone could be easily brute-forced offline.
It may be time to start keeping the disk-keys in a NFC/RFID pendant that the user wears around their neck. They could unlock their phone in a split second by just waving it past. This would be convenient, user friendly, and moderately non-trivial to get to without the user noticing (and could be easily ditched or destroyed in a hurry in case, for example, the phone found it's way into the hands of someone with subpoena powers)
The original Android implementation of dm-crypt generates a -random- key in Android 5.0, which is the key used for encryption. It then encrypts that key with the user's passphrase/PIN/whatever. This implementation is pretty secure, because other than active RAM attacks, when the phone starts up, it will ask for the decryption key for /data, and no key, no decryption.
From what I have looked at with CyanogenMod, this ROM uses the "old fashioned way". No TrustZone, no fancy footwork with keys... just a relatively simple prompt for the passphrase at the phone startup so /data can be mounted and used. From there, the VEK (volume encryption key) is in RAM, and the screen lock is used. This is simple, but effective.
Seems like the solution would be to allow users to wipe the manufacturer key and install their own. Although they probably don't want to do this with all their signed bootloaders and code.
https://www.fsf.org/associate/support_freedom
As long as the key store is protected by something as simple as a password or finger print, it shouldn't be a problem
>" The researcher also said Qualcomm or OEMs can comply with government or law enforcement agencies to break the FDE: "Since the key is available to TrustZone, Qualcomm and OEMs could simply create and sign a TrustZone image which extracts the KeyMaster keys and flash it to the target device," Beniamini wrote. "This would allow law enforcement to easily brute force the FDE password off the device using the leaked keys." "
Which also means ANYONE it was leaked to can do the same thing- criminals, spies, malware, other governments, etc. Which is why having backdoors is always bad.
this was made public knowledge before the FBI could classify it as a National Security secret.
This is why ChromeOS devices, even ARM ones, require a real TPM chip, not this second-rate arm "zone" nonsense. The arm features are meant for DRM, so they only need be good enough to convince greedy studio execs. To convince engineers who care about privacy, you need a TPM.
It is one of many ways Android is in clown-mode compared to ChromeOS.
I would like to know if the attack could generalize to iOS. I also note, Macs have no TPM.
From the article in The Hacker News, "Once getting hold of this key, an attacker could perform a brute-force attack to grab the user password, PIN or lock, cracking Android's full disk encryption."
Why not just get the user password by brute force attack to begin with since it will unlock the encrypted files for you? I know I'm missing something. If you go through this process only to wind up having to mount a brute force attack, what is gained?
You use Google, Chrome, and Facebook?
Will the real stupid fucker please stand up.
https://kat.cr/tails-1-4-1-i386-iso-multilang-tntvillage-t10922671.html
http://lsuzvpko6w6hzpnn.onion/tails-1-4-1-i386-iso-multilang-tntvillage-t10922671.html
http://i.imgur.com/QLGyQYf.jpg
Solved.