185 points · by caaqil · 4y ago · 87 comments
I don't know how Samsungs trust zone implementation works, but the Apple secure elements (Ax,Mx,and T2 coprocessor) burn fuses randomly inside the SoC on first power up. Those fuses are used to further encrypt everything down the line from that. There are APIs on macOS+iOS to create asymmetric keys where the private key is handled by the secure element and cannot ever be extracted. Encryption (or signing) using those keys is performed by the coprocessor.
This is the model you want from any "hardware wallet" you might have, and is the model you want to actually secure your data.
Google "Intel Management Engine" or "AMD PSP" or "ARM TrustZone".
The last of these could, in theory, be less bad, except no ARM licensee except Rockchip (and maybe Apple -- jury is still out there) has chosen the "be less bad" option.
The way security on modern devices with h/w support work is that a random key is generated in hardware. Subkeys are derived from that. Access to these keys (if they're ever directly exposed) is gated on the correct password, but nothing is actually protected by it.
This is what you want as it means you don't have to make a password that is maybe 50 characters long, and actually random (e.g. no word sets).
How could anyone design TA (i.e application whose whole point is security and hence it runs in the secure mode) and allow user to set IV in the API?
I mean... TLS did the same (in 1.2, it was fixed in 1.3). I co-authored a paper about it: https://www.usenix.org/conference/woot16/workshop-program/pr...
My understanding is that TLS spec did not enforce non-repeating nonce, only suggested it and left it to implementers to decide which led to the vulnerabilities you explored.
This Samsung one here is in a way similar - the TEE API had a way for users of the API to set IV which it should not, TA should make sure the IV is not repeated.
Since you have done prior research in this area, is using a counter for IV still recommended even when IV is 12 byte? I assume chances of HW random number generator (which I assume exists on most phones today) colliding for 12 byte random number generation would be pretty low.
The NSA gave up on back doors, limiting the key size, etc. because people are too stupid to manage keys correctly.
I bought good OLED and still, I had to connect pihole to block ads...
New LG's are even worse. I don't know what I do if my current TV will stop working.
I want only display, I don't want any additional features (ads, personalization etc.).
Samsung makes perfectly good hardware. They just destroy it with their software.
Probably why I don't carry one.
Real shame they are not allowed to make Android phones anymore. I genuinely believe Samsung is a bigger security and data leakage threat nowadays than Huawei was a few years ago
That’s a fairly good reference for the experience.
Which isn't any better IMO. Most recent Pixels have been a buggy mess from launch. Google doesn't see to give a damn about the quality of their devices which is especially bad considering they come at flagship prices.
On the other side, my mom's cheap Samsung A52 has been great so far.
The first Pixel was reasonably solid all around and mine lasted quite a while. The Pixel 2 XL’s terrible screen was my first hint that Google was not prepared to carry the torch of a true flagship phone.
That said: I would still often prefer the accidentally broken Pixel phones over the intentionally gimped and bloated Samsung phones. I just can’t buy one at launch, because I have no idea how Google will have fucked it up this time.
I've heard a lot of complains from Pixel 4a and 6 owners though, about bugs in the OS and drivers... Not sure if these issues are widespread or not.
To some extent I'd say User Experience is directly correlated with how valuable software engineers are in that particular society.
And let's not forget Tizen, who security researchers basically found to be a joke.
For some people that is enough.
By the way, I keep Google usage minimal. I don't need most of their services. Even YouTube works without an account and I'm using NewPipe most of the time. What I really need is Play, only to update maps, Maps mostly because of satellite images (I use OSMAnd) and Translate as a dictionary. Syncthing and KDE connect deal with backup and file transfer.
True... they're only the next closest. After fleeing the Google ecosystem, my only seriously choices were Samsung or Apple.
I do miss the Android OS, but not going back to the bloat and data-vacuums that are intertwined with it.
I could totally imagine something like Google Translate missing a critical not or similar that completely changes the meaning of a sentence. For technical documentation, that could be a huge problem.
Also, totally not relevant to the article.
Stock Android already contains energy saving mechanisms that work reasonably well. By piling potentially broken additional battery saving mechanisms on top of that, you risk breaking the phone for certain use cases. At the very least, as a user of that phone, there should be an easy way to exclude certain apps from energy saving measures. (Let's pick out Huawei again, where even if you added an app to such exclusion lists, after a few days the OS would randomly remove the app from that exclusion list again. Plus, there was some kind of "lock" that you could activate in the app switcher, but that lock wouldn't survive a reboot.)
Because some of the energy saving measures are so extreme, some manufacturers put popular apps on internal exclusion lists. These apps work fine, but apps by smaller developers don't. This is a major source of market distortion.
Huawei used to be the worst offender in this space, but it has gotten a little bit better by now. Nokia also had a phase where they had a horribly broken energy saver, but thankfully they got rid of that. Samsung has gotten worse and worse over the last years.
As DontKillMyApp notes, "the latest feedback suggests even when you remove an app from the restricted list, Samsung may re-add them later after a firmware update or when it thinks it is using too much resources". That is horrible.