News for hackers. Stuff that matters.
Re:AMD PSB Vendor Locks EPYC CPUs for Enhanced Security at a... by jlawer on Tuesday September 08, 2020 @10:18PM (#24416135)
Its not really vendor locking by design. It locks to a signing key. That key COULD be shared between vendors or even a single vendor could have multiple incompatible keys.

It provides a mechanism to prove the entire boot process hasn't been tampered with, but I wish AMD provided a way to run these fused processors in a generic way without the security chain, with it just reporting that there isn't a secure root of trust. However I assume they are afraid of that allowing malicious code to fool deeper parts of the system without the system administrator knowing.

So good for security, but bad for e-waste and second hand sales.

Re:AMD PSB Vendor Locks EPYC CPUs for Enhanced Security at a... by Abishek_Muthian on Tuesday September 08, 2020 @11:13PM (#24416606)
>So good for security, but bad for e-waste and second hand sales

I concur, but it's true for even consumer devices like smartphones. Once the software updates stop, if security is the key then the devices are e-waste. Many times, I wish there was an International law which forces manufacturers to unlock their device when they stop pushing software updates to their device, so that alternate firmware can be installed. Of course this is just a wishful thinking, even those who abandoned their smartphone segment entirely(MS) didn't do this, So why would those who run profitable business out of planned obsolescence do it?

Re:AMD PSB Vendor Locks EPYC CPUs for Enhanced Security at a... by ornornor on Wednesday September 09, 2020 @01:22AM (#24417441)
The law doesn’t need to be international, only one large enough market needs to do it. The market has to matter enough that the manufacturers won’t just say “screw them” and pull out of it. Then the mechanics are there and everyone benefits even those who live where there is no such law.
Re:AMD PSB Vendor Locks EPYC CPUs for Enhanced Security at a... by saagarjha on Wednesday September 09, 2020 @01:24AM (#24417453)
Manufacturers already sell unlockable/non-unlockable devices per-market. Not having this be international means they’ll just lock the device where they can.
Re:AMD PSB Vendor Locks EPYC CPUs for Enhanced Security at a... by xwdv on Wednesday September 09, 2020 @01:17AM (#24417407)
It almost seems that a law like that would be something out of a sci-fi or cyberpunk universe.
Re:AMD PSB Vendor Locks EPYC CPUs for Enhanced Security at a... by ajuc on Wednesday September 09, 2020 @02:32AM (#24417919)
We live in a cyberpunk universe. The only think it got wrong was aesthetic.
Re:AMD PSB Vendor Locks EPYC CPUs for Enhanced Security at a... by swiley on Wednesday September 09, 2020 @03:06AM (#24418140)
Instead of grunge everything is covered in RGB LEDs. Literally almost everyone my age has RGB LEDs everywhere. All over their rooms and not to mention keyboards.
Re:AMD PSB Vendor Locks EPYC CPUs for Enhanced Security at a... by theandrewbailey on Wednesday September 09, 2020 @08:38AM (#24420317)
Bright neon-colored lighting is a big part of the cyberpunk aesthetic.
Re:AMD PSB Vendor Locks EPYC CPUs for Enhanced Security at a... by Abishek_Muthian on Wednesday September 09, 2020 @01:24AM (#24417450)
Marginalised people living among e-waste in every Cyberpunk universe is already true anyways.
Re:AMD PSB Vendor Locks EPYC CPUs for Enhanced Security at a... by g_p on Wednesday September 09, 2020 @04:27AM (#24418695)
The UK is currently taking steps towards this - the plans aren't perfect, but will require "security updates until" dates, no default or symmetrically derived passwords, and a vulnerability disclosure programme to be available.

It doesn't go as far as to force unlocking, but requiring transparent disclosure of a committment to security update longevity (like Chromebooks and pixel phones have) is probably the first step along the road to that.

Re:AMD PSB Vendor Locks EPYC CPUs for Enhanced Security at a... by Dylan16807 on Wednesday September 09, 2020 @05:49AM (#24419233)
You can get a pretty good idea of how long security updates will be provided already, so does that help almost ever? Like, great, now Motorola has an official promise to do security updates for for 15 months post-launch. If they decide to release a permanently locked phone, the consumer's still getting screwed just as much.

Basically, "doesn't go as far as" sounds like a massive understatement.

Re:AMD PSB Vendor Locks EPYC CPUs for Enhanced Security at a... by bubblethink on Wednesday September 09, 2020 @04:34AM (#24418735)
>So good for security

This is entirely debatable. This is essentially bootguard for socketed CPUs similar to how most laptops behave. For one, it makes fixing the crap that Dell and their contractors write impossible. You cannot replace the bios with coreboot.

For all these features that require blessings, I really liked apple's use of the term notarised. Everyone should call these notarisation features rather than security ones. It's as boring and useless as going to a notary, if you have ever done that.

Re:AMD PSB Vendor Locks EPYC CPUs for Enhanced Security at a... by josh2600 on Wednesday September 09, 2020 @05:32AM (#24419117)
Notarization is good. Intel calls enclave signing “attestation”, which is clear to me.
Re:AMD PSB Vendor Locks EPYC CPUs for Enhanced Security at a... by shawnz on Tuesday September 08, 2020 @10:58PM (#24416491)
Why couldn't they have put the key in user-resettable memory which erases the disk encryption key when cleared, like with TPMs for example? It was a poor design to even allow it to be used this way.
Re:AMD PSB Vendor Locks EPYC CPUs for Enhanced Security at a... by sterlind on Wednesday September 09, 2020 @01:22AM (#24417438)
Booting from disk is the BIOS's job. The whole point is to guard against a compromised motherboard.
Re:AMD PSB Vendor Locks EPYC CPUs for Enhanced Security at a... by shawnz on Wednesday September 09, 2020 @08:05AM (#24420084)
If the CPU prevents the disk from ever being unlocked, there's nothing to compromise by controlling the motherboard
Re:AMD PSB Vendor Locks EPYC CPUs for Enhanced Security at a... by clinta on Wednesday September 09, 2020 @08:17AM (#24420176)
This method prevents the user from trying to recover with a backed up encryption key, or booting live media. Instead it makes it clear that this motherboard is compromised and cannot be safely used.
Re:AMD PSB Vendor Locks EPYC CPUs for Enhanced Security at a... by shawnz on Wednesday September 09, 2020 @08:41AM (#24420341)
And in the current model, what prevents the user from assuming the processor is dead and replacing it with an unlocked one (which will then presumably become permanently locked to the compromised motherboard)?

If you care about this specific attack scenario then make sure you check the keys with a management tool or something. It's not necessary to make the chip unusable for almost every aftermarket user just to make it a little bit clearer that a compromise has happened in that rare case.

Re:AMD PSB Vendor Locks EPYC CPUs for Enhanced Security at a... by clinta on Wednesday September 09, 2020 @10:52AM (#24421651)
Fair point. Though in many large environments the number of people with access to the IPMI console is greater than the number of people with physical access who can swap out a CPU.

I'm just trying to speculate what might be driving demand for this type of feature, since TPMs already exist.

Re:AMD PSB Vendor Locks EPYC CPUs for Enhanced Security at a... by segfaultbuserr on Wednesday September 09, 2020 @01:00AM (#24417298)
> Its not really vendor locking by design. It locks to a signing key.

I see, so it's basically AMD's implementation of Intel Boot Guard, but on servers instead of laptops. On boot, the CPU verifies the BIOS's signature from its OTP memory and refuses to boot if verification fails.

Theoretically, if you move CPUs between different laptops, you'll find the CPUs are locked to its platform as well, but we don't feel it since they are not replaceable, the only visible effect is that the firmware has been locked and you cannot run coreboot.

And now the same thing is coming to servers and it has a bigger visible effect...

Re:AMD PSB Vendor Locks EPYC CPUs for Enhanced Security at a... by throwaway2048 on Wednesday September 09, 2020 @03:08AM (#24418150)
It is designed to destroy the secondhand market, the fact it can be hand waved away as "security" is just the smokescreen.

It could be implemented in a way that preserves the ability to reuse CPUs, but it wont be.

Re:AMD PSB Vendor Locks EPYC CPUs for Enhanced Security at a... by rocqua on Wednesday September 09, 2020 @05:23AM (#24419054)
What would such an alternative implementation be?
Re:AMD PSB Vendor Locks EPYC CPUs for Enhanced Security at a... by tyingq on Wednesday September 09, 2020 @09:29AM (#24420774)
I guess they could provide a key that works with all the fuses blown, and a utility to blow all of them.
Re:AMD PSB Vendor Locks EPYC CPUs for Enhanced Security at a... by Sebb767 on Wednesday September 09, 2020 @10:01AM (#24421047)
In which case you could easily blow all fuses, sign your malicious firmware with the all-fuses key and you're good to go.
Re:AMD PSB Vendor Locks EPYC CPUs for Enhanced Security at a... by R0b0t1 on Wednesday September 09, 2020 @10:11AM (#24421148)
No, this won't work if the user is checking the attestation ability of the firmware or system. A similar exploit already exists by just modifying the firmware and expecting the user the just replace the CPU without checking the BIOS.
Re:AMD PSB Vendor Locks EPYC CPUs for Enhanced Security at a... by 3np on Tuesday September 08, 2020 @10:31PM (#24416246)
Wouldn’t it make more sense to blow the motherboard rather than the CPU? A compromised CPU without anything connected is pretty useless at boot. The motherboard is what’s connected to all the good stuff.
Re:AMD PSB Vendor Locks EPYC CPUs for Enhanced Security at a... by 0zymandiass on Tuesday September 08, 2020 @10:50PM (#24416420)
The CPU isn't what's compromised - this is protecting against a compromised motherboard
Re:AMD PSB Vendor Locks EPYC CPUs for Enhanced Security at a... by soneil on Tuesday September 08, 2020 @10:53PM (#24416451)
I think that’s the chicken & egg. If the motherboard was responsible for this, you’re trusting the firmware to validate itself. So this moves the validation a level lower.

It’s an interesting problem. The solution is valid, but it’s unfortunately permanent.

Re:AMD PSB Vendor Locks EPYC CPUs for Enhanced Security at a... by im3w1l on Wednesday September 09, 2020 @05:30AM (#24419100)
You could have a small rom firmware validating a larger ugradable firmware.
Re:AMD PSB Vendor Locks EPYC CPUs for Enhanced Security at a... by bayindirh on Wednesday September 09, 2020 @02:08AM (#24417752)
However, the root of trust is embedded to the CPU. So, you can't hammer the CPU on another board for keys.

Also, we sometimes lose the CPU rather than the board. As the CPUs become more complex, their probability to fail has risen.

Re:AMD PSB Vendor Locks EPYC CPUs for Enhanced Security at a... by 3np on Wednesday September 09, 2020 @06:35AM (#24419544)
> However, the root of trust is embedded to the CPU. So, you can't hammer the CPU on another board for keys.

I guess that's the key point here.

Re:AMD PSB Vendor Locks EPYC CPUs for Enhanced Security at a... by crdrost on Tuesday September 08, 2020 @10:41PM (#24416335)
Would be interesting to know whether Dell will use the signing key to unlock the CPU if you ship it to them, or if it's like old motherboards where there is a physical procedure (it was typically to powercycle with a jumper between two pins that shouldn't normally be joined) to reset it, built into the hardware. Seems strange to be able to "brick" a CPU like that.
Re:AMD PSB Vendor Locks EPYC CPUs for Enhanced Security at a... by soneil on Tuesday September 08, 2020 @10:50PM (#24416419)
The article describes the mechanism as programmable fuses; so there is a near-certain chance these are one-time-programmable and can’t be reset. Ever.

(This is fairly normal in cpus. Picture 8 regular fuses. If you read across them, you’ll get 0xff. Now blow the first four fuses and read again. You’ll get 0xf0. Here’s the catch. You can’t “unblow” them. With real fuses, you’d replace them. If they’re inside the cpu, you replace the cpu.)

Fun trivia. The boot loader signing in the raspberry pi works the same way.

Re:AMD PSB Vendor Locks EPYC CPUs for Enhanced Security at a... by walrus01 on Wednesday September 09, 2020 @12:17AM (#24417077)
> (This is fairly normal in cpus. Picture 8 regular fuses. If you read across them, you’ll get 0xff. Now blow the first four fuses and read again. You’ll get 0xf0. Here’s the catch. You can’t “unblow” them. With real fuses, you’d replace them. If they’re inside the cpu, you replace the cpu.)

this made me think of the pencil trick from the earliest days of socketed athlons. not exactly the same I know.

Re:AMD PSB Vendor Locks EPYC CPUs for Enhanced Security at a... by NegativeLatency on Wednesday September 09, 2020 @01:56AM (#24417686)
I’d never heard of the pencil trick before but it’s quite interesting: http://www.ocmelbourne.com/tutorials/PencilTrick/PencilTrick...
Re:AMD PSB Vendor Locks EPYC CPUs for Enhanced Security at a... by mywittyname on Tuesday September 08, 2020 @10:56PM (#24416472)
The XBox 360 used the same technique for patches to keep you from downgrading the system.
Re:AMD PSB Vendor Locks EPYC CPUs for Enhanced Security at a... by vii on Tuesday September 08, 2020 @11:31PM (#24416746)
Same for the Nintendo Switch.

Older firmware has exploits, which allow installing Ubuntu, etc. To prevent exploiting, old firmware refuses to boot if the new firmware has ever booted. This is marked by blowing fuses.

Note - there is even a fuse that when blown, prevents other fuses from being blown!

https://docs.nvidia.com/jetson/archives/l4t-archived/l4t-323...

Re:AMD PSB Vendor Locks EPYC CPUs for Enhanced Security at a... by saagarjha on Wednesday September 09, 2020 @01:26AM (#24417468)
This is what distinguishes a normal iPhone from one that Apple engineers use, as well. If the fuse is blown, as it is in a production device, you can no longer control the boot chain.
Re:AMD PSB Vendor Locks EPYC CPUs for Enhanced Security at a... by strombofulous on Wednesday September 09, 2020 @12:32AM (#24417151)
Is there a downside to blowing that anti-blow fuse? Can its state be read?
Re:AMD PSB Vendor Locks EPYC CPUs for Enhanced Security at a... by numpad0 on Wednesday September 09, 2020 @04:51AM (#24418852)
It’s like an EEPROM that holds major version numbers and debug configurations. If fuse says “major version:20 allow debug: no, allow unsigned: no” and updater is for version 17->18, the user is trying to force a downgrade on a production board. Usually the updater refuses to continue and kernel do the same upon boot. Updater itself is signed and verified so checks are supposed impossible to bypass.

I believe Xbox 360 one was rewritable while Switch one is not. They also require higher voltages than rest of CPU to write. So modders used to modify PCB to block writes or tried to write old values. For Switch they had unrelated nonupdatable boot exploits to bypass signature checks for early batches.

Re:AMD PSB Vendor Locks EPYC CPUs for Enhanced Security at a... by Dylan16807 on Wednesday September 09, 2020 @05:55AM (#24419273)
Right, but they weren't asking about those normal fuses, they were asking about the special fuse that disables fuse-blowing.

And the simplest answer is that code could check if the fuses are reading out too early a version and abort. Which you could try to patch around but it won't be easy.

Re:AMD PSB Vendor Locks EPYC CPUs for Enhanced Security at a... by donmcronald on Tuesday September 08, 2020 @10:52PM (#24416441)
Is it even possible to unlock it with the signing key? Saying it's fused implies it's a one time thing, doesn't it?

I had the same initial reaction though. It seems like something that makes more sense as a jumper or something that can be reset by jumper so physical access becomes the requirement.

The only reason I can think of to do it as described is to kill the secondary market or, even worse, to maintain a lifetime licensing requirement on the system. If the signing keys can expire like signing certificates I expect step 2 will be custom signed firmware via a cloud portal where no license means no signing. I hope I'm wrong, but that's likely the endgame here.

TLDR; If the signature on the BIOS can expire, it's more nefarious than it sounds IMO.

Re:AMD PSB Vendor Locks EPYC CPUs for Enhanced Security at a... by extrapickles on Tuesday September 08, 2020 @11:58PM (#24416939)
You have to use on-die fuses to get most of the security benefit vs someone in customs who has a few hours alone with your server, as jumpers can be trivially modified to look like they are set/unset when they are not.

The header pins can be varnished (or other techniques) so they do not conduct, but they still look normal. To set a pin, 36GA wire between the plastic of the header and the PCB would do the trick. If the adversary had a particularly high budget, they could fabricate and install a header that would even pass inspection by a multi-meter's continuity check by making the outer part of the pins be electrically isolated from the inner, except where it contacts the PCB, where the attackers choice of conductivity is made.

I don't think anyone has come up with a good way to downgrade the CPU from secure operation to insecure without also creating a way to bypass it for an attacker. The only way I can think of is if there was a revocation of secure mode that put the CPU serial number on a public list, then after a week, the CPU blew a fuse allowing it to boot in insecure mode. It will allow enterprises to be assured that the computers they are sending all over the globe are untampered, but still allow people who don't care to get them second hand and not be stuck with the rest of the computer. The hard part is making sure the CPU can only blow that fuse after it gets an ack that its been a week. Ideally, there would be some way for the CPU to attest which mode its running in so secondary audits of the CPU's state can be performed.

Re:AMD PSB Vendor Locks EPYC CPUs for Enhanced Security at a... by caf on Wednesday September 09, 2020 @03:52AM (#24418453)
I don't think this is supposed to secure against someone with physical access.

If they have physical access and are replacing the BIOS, they could just replace the CPU at the same time with a fresh unlocked one that will lock itself to the replacement's signing key on first boot.

Re:AMD PSB Vendor Locks EPYC CPUs for Enhanced Security at a... by mcosta on Wednesday September 09, 2020 @08:16AM (#24420170)
Can these CPUs sign with its key from software? If they can, then that system can not sign with the original key, and it is trivial to catch it.
Re:AMD PSB Vendor Locks EPYC CPUs for Enhanced Security at a... by caf on Wednesday September 09, 2020 @08:31PM (#24427630)
The key in question is a public key, it's not a secret. The CPU uses it to verify the BIOS, not the other way around.
Re:AMD PSB Vendor Locks EPYC CPUs for Enhanced Security at a... by donmcronald on Wednesday September 09, 2020 @01:29AM (#24417505)
That makes a lot of sense. I was really only considering things like persistent malware that flashes the BIOS. I still think it'll get abused eventually to devalue the second hand market, but I can see the appeal security wise.
Re:AMD PSB Vendor Locks EPYC CPUs for Enhanced Security at a... by tyingq on Tuesday September 08, 2020 @10:34PM (#24416281)
Is there any guarantee each vendor will only ever use one signing key? Or might we have problems swapping from one Dell to another Dell, for example?
Re:AMD PSB Vendor Locks EPYC CPUs for Enhanced Security at a... by necovek on Thursday September 10, 2020 @02:59AM (#24429654)
I would imagine they'd have to use new ones every once in a while.

What I am most worried about is vendor's key becoming compromised (whether cracked or stolen), which means that a revocation mechanism is missing.

Even with revocation implemented, such equipment would be rendered useless (I imagine vendor would have to cover for replacements).

Re:AMD PSB Vendor Locks EPYC CPUs for Enhanced Security at a... by Patrick-STH on Tuesday September 08, 2020 @10:51PM (#24416431)
Discussed later in the video. But this is possible which adds another layer of complexity if one tries to track pulls.