News for hackers. Stuff that matters.
Re:Qualcomm’s Chain of Trust by JoshuaAshton on Friday September 21, 2018 @03:17AM (#18037759)
I mean, why can't they just have a regular bootloader like a PC? It's a lot of effort for what is essentially 0 gain if you just have full device encryption.

The phone should at least always be unlockable by a single switch in the developer settings - none of this "oh go to our website and generate an unlock code/pay us money for an unlock code/phone us" which is a HUGE pain in the butt.

I swap between roms a lot, and the whole idea of a system partition and data partition etc is just stupid. They always are the wrong size for what they need to be and then I try to install gapps and its like "oh your system partition is too small my dude," so why separate these and just have everything like a regular linux OS.

Maybe I'm missing something stupid? But I kinda just want a phone that just starts a linux based operating system like a PC, and lets me do everything I can on my linux PC in a touch-centric way.

Re:Qualcomm’s Chain of Trust by exDM69 on Friday September 21, 2018 @03:32AM (#18037840)
These secure boot systems exist because of DRM protection to media that is mandated by the content companies. Their point is to verify that the whole OS from kernel to userspace can't be modified by 3rd parties (such as you, the owner of the device).

It boils down to "no secure boot, no DRM, no Netflix 4k for you".

At least this was the case when I was still working with consumer electronics a few years ago.

Re:Qualcomm’s Chain of Trust by 01100011 on Friday September 21, 2018 @02:51PM (#18041814)
This. Embedded guy formerly involved with media devices here, and this is 100% correct. The secrecy involved in content protection is far beyond anything I've seen while working as a military contractor. At some shops, developers don't even get unlocked bootloaders. You get a device with a bootloader which must be cryptographically unlocked and allowed to boot a limited number of times before needing to be unlocked again. You also have to sign your life away if you ever divulge any confidential details. Chances are though, that you won't even be exposed to the juiciest details because only a select group of senior devs get to see that stuff. Working with content protection companies like NDS or Nagravision is frankly maddening. I know a guy who has his design rejected(because they review your entire system design before certification) and they couldn't even tell him why they rejected his design.
Re:Qualcomm’s Chain of Trust by JoshuaAshton on Friday September 21, 2018 @07:05AM (#18038770)
DRM restrictions like this are always a joke - HDCP was a great one. Also, I doubt many people are going to be getting their Netflix captures/dumps from an Android device anyway so its a useless restriction, they'll be doing it on a PC where this cannot be enforced.

There are also things such as Google Pay/Banking Apps that don't like it if you are using a custom ROM (although this is root based) it can be bypassed easily using Magisk.

There will always be away round frivolous DRM attempts, even Denuvo and it really just hurts consumer choice and device freedom.

Re:Qualcomm’s Chain of Trust by gruez on Friday September 21, 2018 @09:07AM (#18039381)
>Also, I doubt many people are going to be getting their Netflix captures/dumps from an Android device anyway so its a useless restriction, they'll be doing it on a PC where this cannot be enforced

Not for Netflix 4K, which requires SGX capable CPUs to play.

Re:Qualcomm’s Chain of Trust by maxyme on Friday September 21, 2018 @09:53AM (#18039677)
And windows 10 anniversary update, Microsoft Edge, Direct Play 2.0 support (which can only be found on recent graphics cards or 7th gen Intel integrated and only works over certain video outputs). For example I have a 7th gen Intel cpu, I can boot into windows and use Edge, download the media extensions, update my graphic drivers, but I still can't get 4k Netflix because my GPU is a year or so older than AMF supports for Direct Play 2.0 and additionally I have my 4k 10bit color monitor using Display port for the higher bandwidth. From what I've read at this time Display port isn't even supported with Direct Play 2.0 by AMD.

Basically it's such a pain in the ass, you aren't going to have 4k Netflix on PC, possibly even if you try...

Re:Qualcomm’s Chain of Trust by SSLy on Friday September 21, 2018 @10:52AM (#18040104)
Yet there are 4K rips sourced from Netflix being shared on pirate sites.
Re:Qualcomm’s Chain of Trust by Quekid5 on Friday September 21, 2018 @12:08PM (#18040688)
It's a really bizarre situation that BitTorrent is actually the most convenient consumption mechanism if you want a lot of diverse, specific or old content. All you have to do is be behind the "new releases" by a month or two and wait a few minutes for the downloads to complete, but that's a minor issue.

I think it ultimately is caused by: a) content is not fungible, and b) content-delivery platforms (Netflix, HBO, whatever) cannot seem to agree on cross-licensing the content. This means that they simply cannot deliver the convenience of torrented content. For some reason this translates to "we must protect our content with even 'stronger' DRM" in the business-peoples' minds, but piracy isn't the root of the problem.

Re:Qualcomm’s Chain of Trust by SSLy on Friday September 21, 2018 @01:08PM (#18041099)
>All you have to do is be behind the "new releases" by a month or two and wait a few minutes for the downloads to complete, but that's a minor issue.

Well, even that can be a non-issue if you have access to the better indexers, be it P2P or Usenet.

Re:Qualcomm’s Chain of Trust by close04 on Friday September 21, 2018 @01:52PM (#18041423)
I pay subscriptions to services like Netflix and Amazon Prime and still end up downloading lots of the same stuff from... alternative sources simply due to the convenience that confers.

Anything bad that happens to the companies or entities that are responsible for shoving this crap down customers' throats is their doing alone.

Re:Qualcomm’s Chain of Trust by confounded on Friday September 21, 2018 @11:27AM (#18040383)
And you can play them on anything! :)
Re:Qualcomm’s Chain of Trust by ddingus on Friday September 21, 2018 @04:11PM (#18042322)
Maybe they are attacking the display.
Re:Qualcomm’s Chain of Trust by thedailymail on Friday September 21, 2018 @10:15AM (#18039823)
Just wait. Human-made designs are susceptible to human-made hacks.
Re:Qualcomm’s Chain of Trust by Mindwipe on Friday September 21, 2018 @09:27AM (#18039494)
PC's get lower quality streams precisely because they're more open to recording.

Almost all high end release scene attacks on DRMed content services target Android or Tizen.

Re:Qualcomm’s Chain of Trust by DenisM on Friday September 21, 2018 @09:36AM (#18039554)
XBox DRM is no joke.
Re:Qualcomm’s Chain of Trust by minipci1321 on Friday September 21, 2018 @04:28AM (#18038079)
> These secure boot systems exist because of DRM protection to media that is mandated by the content companies.

That statement sounds too simplified. How about non-approved images pumping power upstream above regulatory limit on RF? Or overclocking the CPU? Or reporting all keystrokes to a place of your choice? Would you, as a manufacturer of the device, like to make that easily possible?

> Their point is to verify that the whole OS from kernel to userspace can't be modified by 3rd parties (such as you, the owner of the device).

What makes it impossible is not the secure boot but the fact that the _unauthorized_ 3rd parties don't have the keys for signing stages of the images. Some owners of some secure-boot devices, do have keys and sign their images. One example: a telecom operator, owner of its park of the set-top box decoders, does that. Secure boot can be made to allow several/many authorized keys.

Re:Qualcomm’s Chain of Trust by exDM69 on Friday September 21, 2018 @06:36AM (#18038639)
My statement above is simplified, thanks for your additions.

> How about non-approved images pumping power upstream above regulatory limit on RF?

This is possible through other means (you can buy RF chips and wreck havoc on the frequencies). And it's illegal to do so anyway.

>Or overclocking the CPU? Or reporting all keystrokes to a place of your choice?

I, the owner of the device, might want to do this and these are sometimes completely reasonable things to do (if you're a developer, for instance).

> Would you, as a manufacturer of the device, like to make that easily possible?

Probably not, but that goes against the interests of the customer. ("but most of them won't care anyways")

> What makes it impossible is not the secure boot but the fact that the _unauthorized_ 3rd parties don't have the keys for signing stages of the images.

I am completely fine with this if, and only if, I can add my own secure boot keys and sign my own firmwares/OS images which allow.

I, the owner of the device, should be an "authorized" party when it comes to my device.

I am willing to accept that I do not get 8k service from YouFlix Inc if I add my own keys.

I have no problem with secure boot (the technology) but I do take issue when it is used to limit the rights of the owner to their own device.

Re:Qualcomm’s Chain of Trust by minipci1321 on Friday September 21, 2018 @10:56AM (#18040137)
I actually replied for the sake of technical discussion (secure boot is ~1/10 of what a decent DRM should be, and adding the remaining 9/10 is a huge cost for the manufacturer).

But since you say:

> I, the owner of the device, ...

I am tempted to ask -- how much would you agree to pay for a phone that is working but will never be able to connect to the network (no 4G and no WiFi)?

Re:Qualcomm’s Chain of Trust by estebank on Friday September 21, 2018 @02:33PM (#18041688)
That... is not a phone? It's a pocket computer, isn't it? I could absolutely see a value for such a device, although I don't see why "no WiFi".
Re:Qualcomm’s Chain of Trust by minipci1321 on Friday September 21, 2018 @03:23PM (#18042020)
Then -- back to my question -- would you agree to pay $600 for an iPad of the size of the iPhone, with no network capability?
Re:Qualcomm’s Chain of Trust by exDM69 on Saturday September 22, 2018 @06:25AM (#18045388)
> ... phone that is working but will never be able to connect to the network ...

If you're implying that devices without locked bootloaders can't connect to RF networks, that's just incorrect. There are lots of devices that aren't locked, and it wasn't a common practice a decade ago.

Re:Qualcomm’s Chain of Trust by gdfasfklshg4 on Monday September 24, 2018 @05:50AM (#18056291)
Why no WiFi? This makes absolutely no sense at all.

4G is also a pointless restriction. It is illegal to connect a device with the wrong specification to 4G networks already. This does not need to be enforced by DRM it is already enforced by law.

Re:Qualcomm’s Chain of Trust by dcow on Friday September 21, 2018 @05:00AM (#18038222)
If I don't own the device then why am I paying for it?
Re:Qualcomm’s Chain of Trust by minipci1321 on Friday September 21, 2018 @05:42AM (#18038412)
Unclear what you had in mind. I'll assume you were speaking about your own secure-booting mobile phone that you paid full price and now would like to be able to reflash?

I am not sure what to tell you. The situation pre-dates the secure boot. If I recall correctly, Iiyama monitors were known to be unrepairable because the manufacturer always refused to release schematics. It did not prevent their extreme popularity.

As an end-consumer, I support very much the freedom to change any products I own, the way I want. I once replaced ball bearings in the drum of my washing machine -- you get the idea.

As a person authorizing a product that can potentially emit unhealthy or unsafe levels of RF, or a parent of teenagers using social media, or a developer of medical applications intended for mobile phone... I am none of that, but I guess I would have a very different opinion.

Re:Qualcomm’s Chain of Trust by TeMPOraL on Friday September 21, 2018 @08:00AM (#18039031)
> As a person authorizing a product that can potentially emit unhealthy or unsafe levels of RF,

This used to be, can be, and should continue to be limited on a hardware level. You can't flash a phone to emit "unhealthy or unsafe levels of RF" if the circuit itself won't let such amounts of power to flow to the radio. Of course, someone could still mess with the hardware itself, but that doesn't scale and (in case of breaking RF limits) is illegal.

> or a parent of teenagers using social media,

This is interesting because, in a way, it's telling me that you the maker of the device are my parent. The argument sounds like, "to prevent your child from flashing your device, we'll prevent you from flashing your device". How about giving me the tools to limit my child's access, if I desire to do so, while not limiting my access?

> or a developer of medical applications intended for mobile phone...

This is a large topic, but to a first approximation, I don't believe a software that cannot be modified by the end-user for health reasons should be allowed on the phone. I also don't believe most medical apps in the smartphone spaces are of this category. The way I see it currently: either accept that some users (like myself) want to have full read & write access to their data on their phones, or make your solution a separate, tamper-proof, black-box device (and get a regulator to rule that for me to open it is illegal).

Re:Qualcomm’s Chain of Trust by jacobush on Friday September 21, 2018 @09:30AM (#18039520)
Maybe not unsafe per se from an emissions perspective, but there are spectrum considerations and other things, and with more and more done in software and less with discrete components, the trend is clear.

Safety is complex - what if the phone starts emitting on bands allocated to emergency services.

Re:Qualcomm’s Chain of Trust by CogitoCogito on Friday September 21, 2018 @06:34AM (#18038631)
> As a person authorizing a product that can potentially emit unhealthy or unsafe levels of RF, or a parent of teenagers using social media, or a developer of medical applications intended for mobile phone... I am none of that, but I guess I would have a very different opinion.

Let's be honest and accept it's just about money and control to the makers of these devices. They will bring reasons such as these in their defense, but really they just want to keep the user from being in control of their device and e.g. making tracking them more difficult. I mean there have probably been tens of thousands of roms flashed on different devices. How many of them have emitted unhealthy levels of RF? And parents could retain the ability to flash their devices without giving that ability to their children. The reasons really just don't hold any water imo.

Re:Qualcomm’s Chain of Trust by minipci1321 on Friday September 21, 2018 @08:18AM (#18039128)
It is not like precedents are not known:

https://null-byte.wonderhowto.com/how-to/set-your-wi-fi-card...

> Let's be honest and accept it's just about money and control to the makers of these devices.

Agree. My point is that less control for manufacturers over the image presumably will lead to lesser profits. My illustrations might be more or less relevant, depending on the standpoint.

Re:Qualcomm’s Chain of Trust by class4behavior on Friday September 21, 2018 @08:22AM (#18039149)
>I am not sure what to tell you. The situation pre-dates the secure boot.

That's an invalid argument. It doesn't matter how long this has been the case.

>As a person authorizing a product that can potentially emit unhealthy or unsafe levels of RF, or a parent of teenagers using social media, or a developer of medical applications intended for mobile phone...

You're presuming this is the only and the correct way of handling this. That is, you're arguing it is the manufacturer's affair and right to restrict one's basic rights to enforce lawful handling of their product.

I'd rather argue that in reality the manufacturer's main interests lie in reducing support costs and the enforcement of their patents and copyrights.

Re:Qualcomm’s Chain of Trust by minipci1321 on Friday September 21, 2018 @08:44AM (#18039257)
> You're presuming this is the only and the correct way of handling this. That is, you're arguing it is the manufacturer's affair and right to restrict one's basic rights to enforce lawful handling of their product.

This is not really what I said (somehow people focus on the second part), but I do believe that offering this freedom (to install any image) will lead to lesser profits for the manufacturers. Quite possibly because other potential customers might find this feature unacceptable (my illustrations may be good or bad). That is, your personal freedom runs into someone else's. Then the market should decide, right?

> I'd rather argue that in reality the manufacturer's main interests lie in reducing support costs and the enforcement of their patents and copyrights.

Yes. Add there loss of face in case of hostile hacking. Etc. Since when this is condemnable?

Re:Qualcomm’s Chain of Trust by class4behavior on Friday September 21, 2018 @03:50PM (#18042173)
>Since when this is condemnable?

Do not confuse the tools businesses are provided by the law with the interest to profit. For instance, 10 to 80 years long copyright terms after death are not your inherent rights as a creator but tools the current legal infrastructure offers. Hence it is not the only solution.

>This is not really what I said (somehow people focus on the second part)

No, you did, and the market decides only a share because it is already affects by numerous direct and indirect regulatory measures, e.g., patents. In the past explicit enforcement of the right to repair was rarely an issue for consumers just as net neutrality had not been a serious issue. This has obviously changed.

Re:Qualcomm’s Chain of Trust by iofiiiiiiiii on Sunday September 23, 2018 @06:52AM (#18050451)
> That statement sounds too simplified.

Having worked with DRM for 10 years, I can confirm that while very simple, that statement is entirely correct. He says this is the reason the secure boot process exists, not that this is the only benefit.

> How about X, Y, Z

Those scenarios certainly benefit from a secure chain of trust but they are not what brought it about. The whole secure boot chain exists because of companies that require DRM to access their content.

Samsung wants Netflix to play the best content on their devices. That's the only motivation that has ever mattered to device manufacturers.

Re:Qualcomm’s Chain of Trust by gcb0 on Friday September 21, 2018 @11:44AM (#18040522)
this point is moot.

didn't iphone 3g did that? it was alwas a few W over what the spec and regulations called for to steal better reception than other devices around it. nobody was punished and it actually become the norm.

Re:Qualcomm’s Chain of Trust by wyldfire on Friday September 21, 2018 @07:12AM (#18038808)
> These secure boot systems exist because of DRM protection to media that is mandated by the content companies

That might be an effect but I doubt it's the cause. Signed bootloader's have been around longer than Android and longer than the Netflix app. They were originally introduced to do things like -- protect the device subsidy lock, prevent customers from flashing their phone with invalid or buggy firmware, prevent modification of radio functions (maybe required for FCC license?).

Nowadays they're useful for more than just DRM too. I'd guess that since the owner unlocks the phone functionality, they are a big disincentive to thefts.

Re:Qualcomm’s Chain of Trust by zeta0134 on Friday September 21, 2018 @03:40AM (#18037887)
At least in the mobile space, I get the feeling that theft of the device factors in here. A lot of carriers advertise some sort of remote lock + wipe mechanism, which isn't guaranteed to work if the device's bootloader is unlocked, allowing an attacker to bypass the feature before it has a chance to run.

I have no idea if that's actually the case (I only worked tangential to a retail store's mobile department) so take that with a grain of salt, that's just what I observed the carriers making a big fuss about on the regular. I don't think that excuses the practice either; I'll always be in favor of being in full control of any hardware I'm supposed to trust with my data, but ofc I realize I'm in the minority there.

Re:Qualcomm’s Chain of Trust by drbawb on Friday September 21, 2018 @01:33PM (#18041281)
I'm totally fine w/ there being a disclaimer on bootloader unlocking, e.g: "Warning! Some security features of your device may not work properly w/ secure boot disabled. Visit foo.com/secure-boot to learn more." To a lesser extent I'm OK w/ bootloader unlocks voiding my warranty, esp. since many of these devices ship w/ permanent fuses whereby writing to the wrong MSRs may brick your device. After all that's how my Moto X (2013) worked: I needed a code from Motorola to unlock the bootloader, which in turn required agreeing to a warranty waiver.

What's not OK is having a permanently locked bootloader that guarantees my device will be useless after the carrier decides to stop delivering OTA updates in a year or two.

Re:Qualcomm’s Chain of Trust by paulie_a on Friday September 21, 2018 @10:43AM (#18040038)
> no DRM, no Netflix 4k for you".

No drm is a feature, and fine I'll just pirate it, it's easier anyways.

Re:Qualcomm’s Chain of Trust by thaumasiotes on Friday September 21, 2018 @03:51AM (#18037940)
> It boils down to "no secure boot, no DRM, no Netflix 4k for you".

I really can't say I'm worried about the theoretical inability to stream 4k video to a 5" screen. At that size, 4k is just wasting bandwidth.

Re:Qualcomm’s Chain of Trust by mjones72 on Friday September 21, 2018 @03:56AM (#18037966)
Netflix streams are usually so compressed that there is a noticeable improvement if you use 4K over 1080p. What you're actually comparing is "blurry 4K" to "blurry 1080p".
Re:Qualcomm’s Chain of Trust by pedrocr on Friday September 21, 2018 @04:03AM (#18037988)
And that's if they give you 1080p. I cancelled Netflix because they rolled out price hikes and yet even dominant platforms like Chrome on Windows only get blurry 720p which is completely unacceptable these days:

https://help.netflix.com/en/node/23742

Re:Qualcomm’s Chain of Trust by izacus on Friday September 21, 2018 @04:54AM (#18038191)
You maybe aren't, but manufacturers of that hardware will get negative PR if their Netflix only runs at 480p - so they comply to limitations.

Is it really that hard to think a bit farther than yourself?

Re:Qualcomm’s Chain of Trust by dpwm on Friday September 21, 2018 @05:30AM (#18038369)
I'm not so sure as many will notice it on a device with a 5" screen.

By my calculations, assuming an angular resolution of the eye of about 1 arcminute[0] and holding the device at 300mm, I get about 700 lines as the upper limit of the human eye. [1] So really there should be no benefit for anything above 720p.

There may be other factors relating to scaling and compression that might make higher resolutions on small devices look better, but it's definitely of diminishing returns.

[0] https://en.wikipedia.org/wiki/Naked_eye

[1] https://gist.github.com/dpwm/af467dff758d6f0c5810a2cf902bbf8...

Re:Qualcomm’s Chain of Trust by stordoff on Friday September 21, 2018 @08:50AM (#18039288)
Allowing for variable angular resolution, and holding the device closer than 300mm, seems to allow plenty of room where you _would_ notice the different. Further, 1080p scaled to 720p is probably going to look better than bit-starved 720p, even if the resolution isn't directly a factor.
Re:Qualcomm’s Chain of Trust by ddingus on Friday September 21, 2018 @04:30PM (#18042446)
Depends on the eye.

I just happen to have some objects from my early childhood, and late teens. I now keep them just for an aging reference.

Until about age 20, I could focus right up to roughly an inch away from my eyes. However, at moderate distances, comparable to some phone viewing, there are features on those objects I know well and could resolve then which take a lens now.

Used to judge quality of LCD displays by the ratio of pixel to space between with naked eye into my early 30s.

Hard to do today. And for me specifically, because of those references, I know about how much harder, or if impossible without a lens.

My point here is I believe many younger people will appreciate 720p plus on modern phone displays. I know I would have.

Re:Qualcomm’s Chain of Trust by izacus on Friday September 21, 2018 @07:56AM (#18039012)
You're still approaching this in a completely wrong way. Noone CARES if you can actually see the difference.

It's a marketing issue - "Galaxy S9 can do Netflix in HD and OnePlus can't" news article is something people will change their purchasing behaviour on.

Not to mention other media providers which will fully refuse to allow video streaming to non-DRMed platforms. Don't get hung up on this one example case.

Re:Qualcomm’s Chain of Trust by dpwm on Friday September 21, 2018 @08:16AM (#18039121)
To be fair you're probably right given the way the capitalist system being developed defecates all over its own foundations, but I wonder how Netflix might feel about their trademark being used for marketing purposes in a way that makes it sound like they are deficient in the devices they support.
Re:Qualcomm’s Chain of Trust by vardump on Friday September 21, 2018 @07:58AM (#18039021)
Don't you need at least 1400 (well, 1399) pixels to distinguish 700 lines? Otherwise they won't be lines anymore.
Re:Qualcomm’s Chain of Trust by dpwm on Friday September 21, 2018 @08:08AM (#18039070)
Or even 1401 if it's black on white. I was being a bit sloppy in my language. Lines was historically a common term for vertical resolution back when it would have been scan lines.
Re:Qualcomm’s Chain of Trust by vardump on Friday September 21, 2018 @08:36AM (#18039216)
Resolution is historically and otherwise commonly expressed as line pairs, so I assumed you used "line" as shorthand for that.
Re:Qualcomm’s Chain of Trust by dpwm on Friday September 21, 2018 @08:42AM (#18039240)
Thanks for that clarification. Nice to learn something new :)

I was incorrect in my usage of the term.

EDIT: Actually, if I was referring to TV lines then I guess I wasn't wrong, but "lines" is ambiguous to the point of confusion if n lines can mean a vertical resolution of both n and 2n.

[0] https://en.wikipedia.org/wiki/Television_lines

Re:Qualcomm’s Chain of Trust by dcow on Friday September 21, 2018 @05:02AM (#18038235)
They're more worried about people ripping the content, not pumping 4k streams to your smartphone.
Re:Qualcomm’s Chain of Trust by mfukar on Friday September 21, 2018 @04:24AM (#18038068)
> Their point is to verify that the whole OS from kernel to userspace can't be modified by 3rd parties (such as you, the owner of the device).

Or, _perhaps_, someone who doesn't own the device.

Re:Qualcomm’s Chain of Trust by pjmlp on Friday September 21, 2018 @03:27AM (#18037812)
The PC was an accident, which IBM repented themselves quite heavily, tried to regain with PS2 and failed to do so.

If the current trend of UEFI and laptops without any expansion options is any indication, that open PC of yore will fade into a very tiny niche, as computers become appliances.

Re:Qualcomm’s Chain of Trust by snaky on Friday September 21, 2018 @04:32AM (#18038100)
The previous accident of that kind was UNIX. That's acute, considering an open-source is mainstream today - a couple of accidents is enough to change the world.
Re:Qualcomm’s Chain of Trust by pjmlp on Friday September 21, 2018 @04:39AM (#18038125)
Yes, had Bell Labs not been forbidden to sell it, thus going to the market with a closed source OS, selling it the same price range as VMS, OS/360 and similar systems, the history outcome would have been quite different.

Still anyone that has had the pleasure to write portable UNIX code knows that portability is relative.

Re:Qualcomm’s Chain of Trust by snaky on Friday September 21, 2018 @04:49AM (#18038170)
Maybe UNIX and PC wouldn't be enough actually, without at least four points (half-accidents at least) of that history - RMS, BSD, Sun and Linus. That's quite a fragile chain of events.
Re:Qualcomm’s Chain of Trust by pjmlp on Friday September 21, 2018 @05:01AM (#18038232)
Agreed.
Re:Qualcomm’s Chain of Trust by phh on Friday September 21, 2018 @05:43AM (#18038418)
PC bootloader is totally insecure. And no, full-device encryption doesn't protect you much in my opinion.

First, full-device encryption is much weaker if you can do offline bruteforce. With a secure boot trust of chain, it is online, and is rate-limited by the TEE (and could be made to destroy after too many tries) Even better, per Android documentation, full-device encryption key is tied to boot public key. So if someone flashes another OS, even if you enter the passphrase, noone will access your data.

Also, with a PC, if someone replaces your PC, and changes the OS to simply ask for your passcode and send it back to that someone, you won't notice it. With a proper boot chain of trust (which PCs don't have, except for Librem BIOS), it is evident that the OS has been changed, so you know not to give this device your passcode.

Also, boot chain of trust makes it harder to do cold-boot attacks.

So globally, having a chain of trust, is much more secure for full-device encryption, because it forces online bruteforce. Considering that usually passwords used on smartphones are much more weaker (many people have 6 digits for their smartphone, vs 10 characters on their computers), the added security seem necessary to me.

Re:Qualcomm’s Chain of Trust by JoshuaAshton on Friday September 21, 2018 @07:37AM (#18038912)
Okay, but if my password is complex enough and there is no known data inside the encrypted data then I do not see how bruteforcing would be a viable option.

Even with a chain of trust, what is to stop someone desoldering the storage chip off my device and reading the data and bruteforcing that way?

I had a long think while writing this reply about different ways of stopping the issue you described of "change[ing] the OS to simply ask for your passcode and send it back to that someone, you won't notice it", and I couldn't think of one that would be entirely secure (eg. encrypting system, extra checks for this part of the OS) so I agree there - however:

- There are 100s of millions (billions?) of PCs that start and do not have a chain of trust or SecureBoot that store much more confidential information than who my mother last called.

- Lots of servers that store confidential information do not have a chain of trust or SecureBoot.

- SecureBoot is vulnerable.

- Users who get a little popup when starting their phone would likely just ignore it. (if you disagree with this then you severely overestimate the average phone user)

- The chain of trust becomes completely worthless after I decide to put a new operating system on my device. This limits my choice and freedoms as a user of a device.

Re:Qualcomm’s Chain of Trust by wepple on Friday September 21, 2018 @10:00AM (#18039741)
“if my password is complex enough” - fine for you, the average consumer chooses weak passwords, especially on mobile platforms.

“what is to stop someone desoldering the storage chip off my device and reading the data and bruteforcing that way?” - the key will be 128-bit, not bruteforcable in the next hundred years. The TEE contains that key, and can only be unlocked by giving it your user password, online.

The remainder of your arguments seem to be “well it’s not perfect, so why bother?” Servers don’t get left on the subway or stolen. Modern PCs mostly do have forms of secure boot. I can’t speak for Android ecosystem, but users won’t get a popup on iPhone, a modded firmware will just not let the phone boot.

Re:Qualcomm’s Chain of Trust by JoshuaAshton on Friday September 21, 2018 @12:02PM (#18040653)
I agree, weak passwords are a big issue.

I see your point about bruteforcing that key, however I was more talking about bruteforcing the password.

Servers have been stolen in the past, and I am not just talking about a big rack server here.

In Android, all you tend to get is an unlock symbol on the bootloader logo, or a warning triangle.

Re:Qualcomm’s Chain of Trust by wepple on Friday September 21, 2018 @01:44PM (#18041362)
I may be a bit confused. I apologize in advance if I misunderstood.

With the desoldering the chip to read the data off, you’ll get an encrypted blob which is encrypted with a securely random 128-bit key, so it’s impossible to crack. the Key and the users password are embedded inside the TEE and cannot be read out - the TEE only provides an interface where you can supply a candidate password, and if you get it correct it’ll provide you the 128-bit key to decrypt your data. It has an internal delay and counter, and will destroy the key if you get the password wrong X number of times.

So I’m not sure how you might go about being able to brute force the password, given you can only brute-force online, which is slow and will only give you a small number of attacks.

Re:Qualcomm’s Chain of Trust by phh on Friday September 21, 2018 @12:52PM (#18040999)
Well, I understand your opinion, though I don't agree with you.

> - The chain of trust becomes completely worthless after I decide to put a new operating system on my device. This limits my choice and freedoms as a user of a device.

Actually, no. If you just want to replace the operating system, you're good to go. Modern android phones display the public key of the kernel when booting a non-OEM ROM and bootloader has been re-locked. (granted, pretty much noone does that)

Re:Qualcomm’s Chain of Trust by georgyo on Friday September 21, 2018 @07:57AM (#18039016)
I don't disagree with it limiting choice and freedom, but you are much more insecure.

It doesn't matter how good your encryption or password is if I can change your bootloader to have a program steal that password or read the encryption key out of memory.

See some of the thunderstrike attacks for examples of what a compromised bootloader can do.

Re:Qualcomm’s Chain of Trust by bloak on Friday September 21, 2018 @09:27AM (#18039491)
With a PC it's easy for an attacker to modify the hardware, for example by inserting a recording device in the keyboard connector, so preventing an attacker from modifying the bootloader wouldn't add much security. Even with a typical laptop it's fairly quick and easy to replace or insert components.

In general, it's funny how security bods sometimes worry about attackers modifying the hardware when the attacker could achieve the same thing more easily by completely replacing the hardware.

(Is that really your phone that you just entered your passcode into, or is it an identical phone modified so as to transmit the passcode to the thief who just substituted one for the other?)

Re:Qualcomm’s Chain of Trust by userbinator on Friday September 21, 2018 @08:06AM (#18039059)
PC bootloader is totally insecure.

A good thing, IMHO.

"Insecurity is freedom."

"Those who give up freedom for security deserve neither."

Re:Qualcomm’s Chain of Trust by wepple on Friday September 21, 2018 @11:40AM (#18040472)
Aren’t these quotes contextual?

I’m sure most people are prepared to give up the freedom of easy access to their house in order to require access with a key, as a fair trade off of security.

Re:Qualcomm’s Chain of Trust by userbinator on Friday September 21, 2018 @10:02PM (#18044060)
If you bought a house, you own the keys.

That isn't the case with these locked-down systems.

Re:Qualcomm’s Chain of Trust by snaky on Friday September 21, 2018 @06:19AM (#18038566)
Using offline bruteforce at one hundred trillion guesses per second, https://www.grc.com/haystack.htm says you would need a 15 thousand centuries to crack the password '7jk_nhAYTasd76'.
Re:Qualcomm’s Chain of Trust by shittyadmin on Friday September 21, 2018 @11:17AM (#18040317)
Yeah, if you can pick a secure password and the device is always on your person like a smartphone usually is, evil maid attacks are out as are most other blackbag techniques. The big problem is that entering a password like that is a real pain on mobile, especially on device unlock. You could potentially set a different password on boot vs on unlock - that's a tad trickier than the average user is likely to want to deal with, but entirely plausible for the paranoid power user.
Re:Qualcomm’s Chain of Trust by Forbo on Friday September 21, 2018 @01:36PM (#18041301)
That's exactly how fingerprint locks work on the Pixel. First unlock after boot requires a password, after that fingerprint can be used. It requires password entry about once a day or so as well for additional security.
Re:Qualcomm’s Chain of Trust by snaky on Friday September 21, 2018 @04:30PM (#18042449)
For false additional security. More than that, it makes the password effectively useless, considering how easy is to peep when user is entering it, especially when it happened at random so the probability the user happened to be at some public place at that time is high.
Re:Qualcomm’s Chain of Trust by pdsouza on Friday September 21, 2018 @03:47PM (#18042159)
> But I kinda just want a phone that just starts a linux based operating system like a PC, and lets me do everything I can on my linux PC in a touch-centric way.

I wanted almost the same thing so I built Maru: https://maruos.com

Maru runs Linux in a container alongside Android so you can have the best of both worlds. Hook up to an external monitor with a BT keyboard and mouse and you have a full Debian-based desktop at your disposal.

Maru only supports older hardware (Nexus 5, Nexus 7) at the moment, but newer devices (Nexus 5X/6P, HTC 10, Moto Z2 Force, Galaxy S9) have working ports on our forum and should have official images available soon: https://groups.google.com/forum/#!forum/maru-os-dev

We're an open-source project too, so you can even attempt your own port if you own an unsupported device: https://github.com/maruos/maruos

Re:Qualcomm’s Chain of Trust by fghtr on Friday September 21, 2018 @03:51AM (#18037936)
>But I kinda just want a phone that just starts a linux based operating system like a PC, and lets me do everything I can on my linux PC in a touch-centric way.

Here you go: https://puri.sm/shop/librem-5/

(alternatively, https://neo900.org/)

Re:Qualcomm’s Chain of Trust by bubblethink on Friday September 21, 2018 @08:04AM (#18039047)
>I mean, why can't they just have a regular bootloader like a PC?

Because there are several limitations with the PC boot process. See the heads project for what a reasonably secure PC boot would look like.

>The phone should at least always be unlockable by a single switch in the developer settings

True. That's a business thing. Not technical. Buy pixels in general for fewer hassles. Also, not just unlockable, but also re-lockable with custom keys. Again, only pixels support this.

>the whole idea of a system partition and data partition etc is just stupid

It's not. System is readonly. It reduces the attack vector significantly. Also makes block based updates simpler, and allows other security features like dm-verity. If anything, traditional desktop OSes are trying to move towards this direction. Look at Fedora's atomic workstation/silverblue.

Re:Qualcomm’s Chain of Trust by floatboth on Friday September 21, 2018 @03:34AM (#18037854)
> unlockable by a single switch in the developer settings

Nexuses/Pixels, OnePlus, Xiaomi's Android One line (Mi A1/A2) do not require unlock codes.

Re:Qualcomm’s Chain of Trust by JoshuaAshton on Friday September 21, 2018 @07:01AM (#18038755)
Yeah I know quite a lot of Android phones do support this, which is why I mentioned it, however some phones still don't have this functionality or require me to mess on with some online/call service to receive and unlock code.
Re:Qualcomm’s Chain of Trust by jstanley on Friday September 21, 2018 @07:41AM (#18038937)
So just buy one that does support it.
Re:Qualcomm’s Chain of Trust by shittyadmin on Friday September 21, 2018 @10:53AM (#18040114)
Yup, I outright refuse to buy a device which doesn't support trivial firmware unlocking. Google's official "fastboot oem unlock" and a forced wipe of the device seems like the best compromise between freedom and security around.

OnePlus and Google still honor warranties on unlocked devices so I've been sticking with them, but may hop over to Xiaomi due to the high prices of newer OnePlus and Google devices next time - if only they had one with a 3.5mm jack and NFC this would be a no-brainer. Still running my OnePlus one nearly 4 years in...

Re:Qualcomm’s Chain of Trust by igor47 on Friday September 21, 2018 @12:48PM (#18040964)
I am still using my Nexus 5 for this reason. I bought a Huawei phone last week, and discovered that they stopped releasing bootloader unlock codes a month prior. So I returned it and got a Sony XA2 ! Sony is surprisingly good in this domain with an online unlock app and even raw AOSP builds from the manufacturer! I had my new phone running lineage within a few hours.
Re:Qualcomm’s Chain of Trust by snaky on Friday September 21, 2018 @04:19AM (#18038050)
You can unlock the bootloader on almost any smartphone nowadays, but every one of them requires original firmware installed to lock it back.
Re:Qualcomm’s Chain of Trust by veeti on Friday September 21, 2018 @04:35AM (#18038111)
Google Pixel (and Nexus before it) can be locked with custom signing keys.
Re:Qualcomm’s Chain of Trust by snaky on Friday September 21, 2018 @04:41AM (#18038130)
If you are talking about this https://mjg59.dreamwidth.org/31765.html does it still work on recent Pixel devices?
Re:Qualcomm’s Chain of Trust by bubblethink on Friday September 21, 2018 @06:30AM (#18038612)
Self signing is one of the main reasons to buy a pixel. CopperheadOS (now dead) used that. For aosp builds with self signing, look at rattlesnakeos on github.
Re:Qualcomm’s Chain of Trust by kevin_b_er on Friday September 21, 2018 @10:15AM (#18039820)
The goal is control and to deny you ownership. The device is not meant to be yours. It is owned and takes its orders from its true owners. It is not to obey you, the physical owner.
Re:Qualcomm’s Chain of Trust by userbinator on Friday September 21, 2018 @08:10AM (#18039075)
I don't know about now, but for a long time MediaTek was the go-to for Android devices without locked bootloaders. My buying decision was almost entirely based on that (and the surprising availability of leaked documentation for the SoC on Chinese sites.)
Re:Qualcomm’s Chain of Trust by solarkraft on Friday September 21, 2018 @08:13AM (#18039101)
Huh, could you elaborate? From what I know MediaTek has a terrible reputation for not publishing information about their chips.
Re:Qualcomm’s Chain of Trust by userbinator on Friday September 21, 2018 @10:01PM (#18044054)
They don't, yet Linux sources from them show up with good frequency on GitHub and other sites; and if you search hard enough you could find the full (thousands of pages) documentation, reference designs, schematics, etc. for their SoCs.

I've had far less (as in, zero) luck with Qualcomm and Broadcom; they publish sources, but there is basically no documentation beyond that.

Re:Qualcomm’s Chain of Trust by snaky on Friday September 21, 2018 @04:45PM (#18042545)
There is a difference between 'published' and 'available', especially in China.
Re:Qualcomm’s Chain of Trust by m-p-3 on Friday September 21, 2018 @08:32AM (#18039193)
Xiaomi had to switch to such a system (delayed unlock request) because many of their phone were altered to contain malware/spyware from resellers.

Not saying that I agree with the method, but I see why they're doing it.

Re:Qualcomm’s Chain of Trust by voltagex_ on Friday September 21, 2018 @10:11AM (#18039802)
What happens to all those locked devices when the server/company goes away?
Re:Qualcomm’s Chain of Trust by Mediterraneo10 on Friday September 21, 2018 @11:52AM (#18040570)
Most consumers treat smartphones as disposable products that get replaced at least every couple of years or, so if the company goes away, it isn’t a big hassle. Unlike PCs or wifi routers, smartphones are not viewed as something people want to hang on to and use for years and years. (Plus, in Xiaomi's case, the build quality is so poor your phone might not last long anyway.)