News for hackers. Stuff that matters.
Re:Fixing the TPM: Hardware Security Modules Done Right by JohnFen on Friday August 18, 2023 @04:26PM (#37181621)
Hmmmm...

I could not care less about Microsoft's problem, but could this approach fix the major problem that I have with TPM?

TPM allows software to leverage my machine against me. If DICE allows me to revoke keys that have been stored for other applications (or, even better, to prevent the HSM from being used by anything without my overt permission), that might go a long way toward reducing that issue.

Re:Fixing the TPM: Hardware Security Modules Done Right by DistractionRect on Friday August 18, 2023 @05:41PM (#37182522)
Similar sentiments, I'm already seeing this with Android and custom roms.

Right now you get away with spoofing basic integrity checks, but custom roms cannot pass hardware attestation. It's not a hard requirement right now in order to maintain backwards compatibility required to target 90%+ of android devices, but give it a few generations and it will be. At that piont I expect a majority of apps will simply be unusable on custom roms, and we'll have no choice but to embrace planned obsolescence.

Re:Fixing the TPM: Hardware Security Modules Done Right by JohnFen on Friday August 18, 2023 @05:57PM (#37182701)
That issue with Android is what made me decide to give up smartphones. I cannot adequately secure a phone without installing a custom ROM (and even then, it's iffier than ever), and the integrity/attestation checks make custom ROMs very problematic.

So, once my smartphone dies, I'll be switching to a dumbphone.

Re:Fixing the TPM: Hardware Security Modules Done Right by mrd3v0 on Friday August 18, 2023 @06:14PM (#37182851)
You should take a look at GNU/Linux mobile operating systems every once in a while. They're making great strides and both popular GUIs KDE and GNOME have been working on making mobile a target in their ecosystems.

Fairphone comes with a five-year guarantee for repairs and parts, so none of that early planned obsolescence, and it works with all the Linux mobile distributions I have had my eyes on.

Re:Fixing the TPM: Hardware Security Modules Done Right by toastal on Saturday August 19, 2023 @02:57AM (#37186257)
No planned obsolescence but they removed the headphone jack & started selling the earbuds which are one of the kings of e-waste compared to getting a nice pair of headphones or IEMs that will last a decade or more.
Re:Fixing the TPM: Hardware Security Modules Done Right by fsflover on Saturday August 19, 2023 @05:16AM (#37186968)
Try GNU/Linux phones, Librem 5 or Pinephone. They're repairable, with the headphone jack and lifetime updates.
Re:Fixing the TPM: Hardware Security Modules Done Right by toastal on Saturday August 19, 2023 @01:38PM (#37191139)
Sorry boo, but the telephony is generally pretty garbage on all the Linux options & a phone still needs to be a phone. A lot of those important apps won’t be supported as well as they only cater to the Android/iOS duopoly.
Re:Fixing the TPM: Hardware Security Modules Done Right by fsflover on Saturday August 19, 2023 @04:00PM (#37192538)
Calls work fine for me on Librem 5. There are many posts on their forum with similar experiences, e.g., https://forums.puri.sm/t/librem-5-phone-review/21085
Re:Fixing the TPM: Hardware Security Modules Done Right by toastal on Monday August 21, 2023 @07:25AM (#37208036)
That’s one phone with overpriced features unfortunately. I understand you’re paying for a small batch, niche device (that some users have had a lot of issues getting the thing shipped) to get a slow CPU, measly RAM/storage, meh camera, & an IPS panel. I’d rather go the route of postmarketOS with BYOD that with better specs (even a 4–5 year old phone can easily outcompete) & an OLED panel, but much of the effort is not in telephony (I understand it’s all volunteer hackers, but it’s an unfortunate effect). The PinePhones have the same spec issues even with a better sticker price. It’s just too hard to justify. I flashed postmarketOS & Ubuntu Touch on an old OnePlus 1 which has similar specs & it’s gruelingly slow. Phones in the last 3 years are now all ‘good enough’ (hence sales across the board plummeting as upgrades have meant a lot less finally), so until the specs can get there, it’s gonna be a pass.
Re:Fixing the TPM: Hardware Security Modules Done Right by euniceee3 on Friday August 18, 2023 @06:20PM (#37182896)
Even then you are yellow booting and that is another security issue.

What dumbphones you looking at? Everything retail I am seeing is a stripped down version of Android.

Re:Fixing the TPM: Hardware Security Modules Done Right by lll-o-lll on Friday August 18, 2023 @07:08PM (#37183307)
Re:Fixing the TPM: Hardware Security Modules Done Right by qingcharles on Wednesday August 23, 2023 @12:24PM (#37238415)
I don't know of any dumbphones on the market. I help people out who are on parole and they are not allowed to own smartphones. The best we can do is try to trick the parole agents by buying them flip phones, but even the most basic stupid flip-phones for Grandma still have Alexa built in and have some form of Internet access.
Re:Fixing the TPM: Hardware Security Modules Done Right by mindslight on Saturday August 19, 2023 @12:43AM (#37185587)
But remote attestation doesn't completely prevent you from running custom ROMs. Rather the problem is if you want to use various proprietary crapps/websites that insist on performing attestation. So there doesn't seem to be a point into choosing a "dumb phone" besides as some sort of protest. Rather for each of your devices you'll choose having a libre user-representing (ie secure) OS, or a locked down web TV equivalent. I'd personally choose my pocket device to be running secure libre software, and then use any proprietary crapps on a tablet that stays at home. If remote attestation gets so bad that I can't even do things like access store apps on a libre/secure device, then I'll carry two, with the libre/secure device supplying wifi AP to the other.

(this comment is most certainly not meant as any sort of defense of remote attestation)

Re:Fixing the TPM: Hardware Security Modules Done Right by xg15 on Saturday August 19, 2023 @05:38AM (#37187065)
The problem is, that's where the network effect bites you in the butt. With functioning remote attestation, platforms can lock down their APIs, so there often will not be a libre alternative. I.e. if your friends are on signal or whatsapp or twitter or whatever, you'll have to use a second phone to contact them, which will probably soon become your primary phone.
Re:Fixing the TPM: Hardware Security Modules Done Right by mindslight on Saturday August 19, 2023 @10:54AM (#37189409)
Sure, if things get really bad and I couldn't convince friends to use libre apps and/or texting no longer works, then I'd have to choose my main pocket device to be locked down. I'd probably still try to carry the libre device as a secondary one to have access to trustable apps while out, but I can see that being too inconvenient and giving up on it.

But my point was that still doesn't indicate moving to a "dumb" phone. A dumb phone is just a locked down device with even fewer capabilities.

Re:Fixing the TPM: Hardware Security Modules Done Right by jeroenhd on Friday August 18, 2023 @06:10PM (#37182822)
A device that can't watch Netflix in HD isn't "unusable". If your bank complains about custom ROMs for wireless payments, the exact same feature can work perfectly fine with your bank card (better even, in some cases).

I'm quite annoyed that I can't watch HD movies on my phone but it's not as if I should toss it into the bin now.

Re:Fixing the TPM: Hardware Security Modules Done Right by DistractionRect on Friday August 18, 2023 @07:28PM (#37183507)
The issue is that it likely won't stop at Netflix and banking. McDonald's won't let you use their app with an unlocked bootloader [0].

My comment was suggesting that the majority of apps, not just banking/Netflix will likely adopt and require hardware attestation when 90%+ of Androids in use support it. Things like Uber/Lyft, Metro, food ordering, email, social media, etc are just as likely to pick it up and that's my point. No, it won't be a brick, but you'll likely lose quite a few apps.

[0] https://forum.xda-developers.com/t/mcdonalds-app.4067887/

Re:Fixing the TPM: Hardware Security Modules Done Right by AnthonyMouse on Friday August 18, 2023 @06:19PM (#37182893)
> custom roms cannot pass hardware attestation.

So this is going to be the interesting question, because obviously they can, they just have to extract the keys from something first. Devices are made by all kinds of vendors and it only takes one vulnerability before you have a market for keys. There are <$200 phones, those cheap phones are more likely to have a vulnerability, and when one of them gets a cracked screen the market value drops to near-zero which makes it cheap to buy one to extract the key.

Which is also why remote attestation is totally worthless. An attacker can do the same thing, so relying on the attestation is completely insecure because in practice anyone with a couple bucks will be able to spoof it.

But if extracting a key is mildly inconvenient or legally questionable, it will be enough to deter honest casual users but not profit-motivated attackers, and you get the worst of both worlds.

So we need to do everything to make sure that doesn't happen. One way is to make extracting keys as easy as possible, of course.

Another is to make sure that everybody understands the perversity of this nonsense. It's snake oil the likes of export-grade encryption or EV certificates. Anyone caught using it should be mocked mercilessly and added to a list of disfavored vendors with uninformed security staff. Anything in a position to do so should warn if anything attempts to use it, or disable it to make it more difficult for anything else to rely on its availability. Warnings should emphasize that using it is a security risk that can enable hard to detect malware and is an indication of malice or incompetence.

It needs to go away.

Re:Fixing the TPM: Hardware Security Modules Done Right by lostmsu on Friday August 18, 2023 @06:25PM (#37182947)
The keys would just be revoked and the cheap phones you got the keys from would no longer pass attestation either.
Re:Fixing the TPM: Hardware Security Modules Done Right by AnthonyMouse on Friday August 18, 2023 @06:29PM (#37182986)
You don't tell them which keys you extracted. If they have to revoke every phone of that model then lots of normal users have them and vendors can't rely on people having phones that support it anymore, so good.

And the attacker doesn't care if the key gets revoked after they've stolen your money.

Re:Fixing the TPM: Hardware Security Modules Done Right by blibble on Friday August 18, 2023 @07:49PM (#37183702)
> But if extracting a key is mildly inconvenient or legally questionable, it will be enough to deter honest casual users but not profit-motivated attackers, and you get the worst of both worlds.

it will also create a market for people selling and buying keys

it'll be like buying a grey market software key, you hop onto aliexpress, pay $5 and you'll have an iphone 11 attestation key

remote attestation as a process sows the seeds of its own destruction

Re:Fixing the TPM: Hardware Security Modules Done Right by DistractionRect on Friday August 18, 2023 @07:50PM (#37183714)
$200 dollar phones likely aren't rolling their own HSMs. It'll probably be one of a few made big Co.s like Google, Samsung, Qualcomm, etc. I expect it'll be about as hard as getting them off $2000 dollar phones.

Even if it's possible, that too will be a cat and mouse game which won't work for long. Hardware DRM has been an evolving industry, and now with the commonality of TPMs and HSMs it's here to stay.

Re:Fixing the TPM: Hardware Security Modules Done Right by AnthonyMouse on Friday August 18, 2023 @08:11PM (#37183928)
> $200 dollar phones likely aren't rolling their own HSMs. It'll probably be one of a few made big Co.s like Google, Samsung, Qualcomm, etc. I expect it'll be about as hard as getting them off $2000 dollar phones.

HSMs often misbehave or leak data when operated out of spec, as when the OEM's cheap logic board has voltage drop. Moreover, using the same piece of hardware across a hundred million devices is its own vulnerability, because then that's the one everyone is focused on breaking, and when anyone succeeds now they can extract the keys from a hundred million devices.

> Even if it's possible, that too will be a cat and mouse game which won't work for long.

The nature of it is to be physical hardware, so vulnerabilities commonly require the hardware to be replaced. Now you've got an active vulnerability for the lifetime of that hardware, which is typically at least 3 years. Meanwhile they find new ones every year.

Preventing this may not even be physically possible. The key has to be inside the device and the attacker has physical control over the device. Even if the equipment needed to extract it is expensive, the device itself can't be if you expect everyone to have one, so someone with that equipment makes a business out of extracting keys and selling them over the internet.

> now with the commonality of TPMs and HSMs it's here to stay.

Nothing lasts forever. Especially if you make a good show of burning it to the ground.

Re:Fixing the TPM: Hardware Security Modules Done Right by 10000truths on Monday August 21, 2023 @12:47PM (#37212112)
Aren't HSMs built to fail closed? Surely the designers would have added some protection mechanism that shuts down/resets the module when it encounters anomalous voltage inputs. Or is the attack surface simply too wide for that to be feasible?
Re:Fixing the TPM: Hardware Security Modules Done Right by matheusmoreira on Friday August 18, 2023 @10:21PM (#37184836)
Yeah. We used to have complete control over our android devices and the apps that ran on them. This hardware attestation business is gonna destroy all that. Right now I can't even launch my bank's app if I have developer mode enabled. They say it's only gonna be for the apps that "really need it" but that's just Google boiling the frog slowly.

Might as well buy an iPhone if that's how it's going to be.

Re:Fixing the TPM: Hardware Security Modules Done Right by toastal on Saturday August 19, 2023 @02:55AM (#37186242)
That’s a sad jump. I’d say support/embrace Linux mobile, but we know the app makers won’t support it (and shitty apps like Signal require a primary device running one of the mobile duopoly OSs) & we we know Google with its Web Integrity wants to lock down our web browsing sanctuary that runs on any platform. Yeah, we might be forced into it… or be prepared to go low-tech like going to the bank & calling.

For me this will be really bad if I’m traveling abroad since the website requires 2FA & SMS is the only option which will be roaming & even the annual number swap I do when I get a new SIM requires paperwork & waiting a week for processing. But maybe owning a phone is more of a burden due to lack of device control & privacy concerns.

Re:Fixing the TPM: Hardware Security Modules Done Right by jeroenhd on Friday August 18, 2023 @06:07PM (#37182787)
> to prevent the HSM from being used by anything without my overt permission

That sounds quite doable? Basic sandboxing (flatpak/snap/whatever) and not assigning the tss group to system daemons will do that for you.

Re:Fixing the TPM: Hardware Security Modules Done Right by EMIRELADERO on Friday August 18, 2023 @06:10PM (#37182814)
How does that solve the issue, exactly? Apps could simply refuse to run, and platforms refuse to provide you with service, if you don't accept their keys in your TPM.
Re:Fixing the TPM: Hardware Security Modules Done Right by matheusmoreira on Friday August 18, 2023 @10:11PM (#37184778)
At this point it seems like only regulation could stop this. They should be required to interoperate by law. Refusing service because the user has "unauthorized" software should be literally illegal. Without this, all useful services will exclude us.
Re:Fixing the TPM: Hardware Security Modules Done Right by A1kmm on Saturday August 19, 2023 @04:07AM (#37186622)
I think the better regulation would be that it is illegal to sell hardware that includes embedded keys without making the secret key (or the private key if the embedded key is a public key) available to the legitimate owner, with no strings attached.

Hardware vendors could chose to, for example, make the keys available in printed form in an envelope with difficult to open without breaking vendor-branded seals that are expensive to manufacture in small quantities, and warn consumers not to open them if they don't know what they're doing.

This would prevent its use to lock consumers out from installing their own software on their own hardware, while still making it useful for legitimate applications. Consumers could chose to securely destroy the key if they wanted (with the caveat they could then not on-sell the device).

Re:Fixing the TPM: Hardware Security Modules Done Right by matheusmoreira on Saturday August 19, 2023 @09:32AM (#37188613)
Installing our own software is not the problem. Their ability to even know what software we're running is the problem. Web services should be required to work with anything that speaks their network protocol, not just a cryptographically blessed official app. That way we can adversarially interoperate with them.
Re:Fixing the TPM: Hardware Security Modules Done Right by loup-vaillant on Friday August 18, 2023 @06:45PM (#37183101)
Sorry, a DICE-enhanced TPM would be just as evil as a regular TPM I'm afraid. You can think of DICE as giving you a gazillion TPMs for the price of one actual TPM, one per program you care to load. What would happen is, your bootloader would just inject the standard Treacherous Computing™ firmware into the TPM, and since its keys is tied to it being what it is, in the end you end up with a regular Treacherous Platform Module, same as today.

I would _love_ to stop programs from using my TPM against me, but I'm afraid DICE isn't it.

Re:Fixing the TPM: Hardware Security Modules Done Right by nyanpasu64 on Friday August 18, 2023 @08:03PM (#37183843)
> Their motivation however was different: they wanted to better protect the device secret. Many devices store their secret in a fuse bank, and changing it is often impossible. Leaking it is especially bad, because it can render the entire device forever unusable: no one wants an HSM with a leaked secret, or a remote IoT device that can be impersonated.

A computer I cannot choose what software I run and what state I expose to the software, and allow the software to impersonate the original software, is a SafetyNet locked-down device controlled by the owner of the TPM keys and programs running on it.

Re:Fixing the TPM: Hardware Security Modules Done Right by loup-vaillant on Friday August 18, 2023 @08:34PM (#37184106)
I’m sorry, did you reply to the wrong comment? Or did you quote the wrong quote? I genuinely can’t make link your response with either my previous comment or what you just quoted.

Taken in isolation your sentence is correct, I agree 100% with it: of course I want control over what runs on my computer. Of course the TPM is often used to steal that control away from me. Of course that is bad.

What made you think I don’t think that?

Re:Fixing the TPM: Hardware Security Modules Done Right by nyanpasu64 on Friday August 18, 2023 @10:28PM (#37184892)
I'm not upset at you, I'm agreeing with the comment you wrote. But since I found out you're the author of the article, I find it odd you're now upset about the idea of TPMs and remote attestation, when your article praises an alternative TPM architecture fully capable of remote attestations and disobeying the user.
Re:Fixing the TPM: Hardware Security Modules Done Right by loup-vaillant on Saturday August 19, 2023 @04:48AM (#37186827)
I see, I may have separated those two subjects a bit too much. The TPM is two things: evil, and bloated. This post focused on the "bloated" part, with only the slightest recognition of the evil at the very end of my post. I understand it therefore looks like I'm approving the evils of the TPM.

The evil part would need its own post, but frankly, other people have addressed this part much better than I ever could. Cory Doctorow's talk on The Coming War on General Computation is as relevant as ever.

Even then, TPM-like hardware can still be useful to me as a user, even if my computer is 100% Free Software. It is a shame though that its main use is stripping me of my freedoms instead.

Re:Fixing the TPM: Hardware Security Modules Done Right by zauguin on Friday August 18, 2023 @09:14PM (#37184390)
> or, even better, to prevent the HSM from being used by anything without my overt permission

Can't you already do that with an existing TPM? You just set an owner authentication password and an endorsement authentication password and no application can use it anymore unless you provide the password.

Technically it would still be possible to use it as a very slow cryptographic coprocessor I guess, but that benign and useless. It does still provide access to some platform measurements, but they can't be signed by a authenticated (or even safely stored) key, so they are easy to fake.

In addition to that the OS of course can be used to completely block access to it if needed.

The problem is not that people can't stop applications from using it, it is just that in practice people don't care.

Re:Fixing the TPM: Hardware Security Modules Done Right by vladvasiliu on Saturday August 19, 2023 @04:04AM (#37186609)
> Can't you already do that with an existing TPM? You just set an owner authentication password and an endorsement authentication password and no application can use it anymore unless you provide the password.

How would one go about doing that?

Re:Fixing the TPM: Hardware Security Modules Done Right by zauguin on Monday August 21, 2023 @01:35PM (#37212763)
On Linux with tpm2-tools installed you can run

To set the owner password (mainly for Storage) ``` tpm2_changeauth -c owner file:- ```

To set the endorsement password (e.g. to verify that the TPM is authentic): ``` tpm2_changeauth -c endorsement file:- ```

To set the lockout password (to recover the system without requiring a full reset): ``` tpm2_changeauth -c endorsement file:- ```

Re:Fixing the TPM: Hardware Security Modules Done Right by nicce on Saturday August 19, 2023 @09:46AM (#37188739)
If you can do that, doesn't that mean that you won't be able to even boot Windows after that?
Re:Fixing the TPM: Hardware Security Modules Done Right by zauguin on Monday August 21, 2023 @01:40PM (#37212826)
Potentially. Last I tried to boot Windows was a Windows 10 which could deal with this, it just disabled some functionalities relying in the TPM (aka. Windows Hello(?)). It might be that Windows 11 will not like it that much.

Then again, if you want to control what runs on your system, you probably don't run Windows in the first place.

Also if you want to stop Windows from booting, it's much more reliable to change the Secure Boot keys (and of course not adding the Microsoft keys afterwards). Then your system is guaranteed Windows free.