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