28 ms·
PSPTool Is a Swiss Army Knife for the Firmware of the AMD Secure Processor
- AdmiralAsshat 7y agoSo does it actually let us neutralize the PSP like the me_cleaner tool, or just poke at it?
- snvzz 7y agoIt looks like a tool to analyze the psp firmware, which is a necessary step in this process. Necessary only because AMD isn't being cooperative, that is. It'd be as easy as providing a shim so that the machine can boot without enabling the psp.
- StudentStuff 7y agoThe PSP is licensed from ARM, meaning AMD owns none of the IP of the PSP. If they were to cooperate in this effort, ARM would likely sue them for breaking their licensing agreement. Same reason the recently mainlined Mali drivers (another ARM IP block) got no assistance in development from any of the chip vendors. Touching those projects would break their licensing agreements with ARM and risk having to stop producing their chips that integrate Mali (aka most ARM based chips).
- nfriedly 7y agoThat all makes sense for the vendors.. but what does ARM get out of it? A false sense of security?
- d33 7y agoThe good feeling of cooperating with the agencies.
- ggg2 7y agothats the billion dollar question! not having the clear answer even in public traded companies is a travesty.
- walterbell 7y agoAn excuse for AMD to switch to a secure enclave based on RISC-V.
- m-p-3 7y agoI wish..
- wmf 7y agoThis doesn't sound right. The PSP is an ARM core, but the firmware running on it is likely mostly written by AMD. Also, license agreements can be negotiated.
- p_l 7y agoMajor parts of the firmware were licensed, I assume for time-to-market reasons. Some of the license issues are also AFAIK due to how, somehow, we let entertainment industry strangle hold us - both ME and PSP now have code involved in setting up "protected av path" which is queried by streaming services et al - and if it's not found, you don't get to play 4k media (at least, afaik, with Netflix, it's 4k). AMD could release a friendlier version but it would not be able to do what majoroty of the market expects it to do. n.b. there are license-built cpus that have alternative firmware in PSP, but it's also closed and they are not really available on open market.
- StudentStuff 7y agoAMD doesn't have the code nor the documentation from ARM to release a minimal PSP, and any attempt by them to do so will end with an injunction against AMD selling processors with TrustZone embedded, meaning they will have a yearlong gap before they can retool and start shipping any PSP-less processors (lead times on silicon changes are loooong). Had AMD not been broke prior to the launch of Zen, they would have likely built their PSP in house, but they were so desperate to stay alive that they sold the 1st gen Zen CPU designs to a Chinese joint venture for $200 million (which kept AMD from bankruptcy).
- deleted 7y ago[deleted]
- StudentStuff 7y agoAMD states that the PSP is "ARM TrustZone ... An Industry Standard Approach" right on their website: https://www.amd.com/en/technologies/security https://www.amd.com/en/technologies/security Wrt renegotiating with ARM, there is no leverage for AMD. TrustZone is already baked into their chips for the next 2 to 3 years, and if the negotiations go badly then ARM could block AMD from selling any processors for at least a year. AMD did hire a security consultant (due to the Change.org petition) that told them TrustZone was vulnerable, but this means they need to implement their own PSP which is something that will take 3 years or more (silicon has a very elongated development cycle). Had AMD not been on death's doorstep for the years preceding the new Zen architecture, they likely would have built their own PSP. Being financially insolvent and desperate to meet the requirements of their OEM partners forced them to license a pre-built PSP.
- shmerl 7y agoSounds like a good reason to ditch ARM, and roll out their own solution for it. In regards to Mali, why can't ARM support open source driver effort? Qualcomm for example are not against Freedreno, to the point that Google wants to make it the primary supported driver now. And Qualcomm are quite nasty in general, when it comes to patents and stuff. So why not the same thing with Mali?
- cwerling 7y agoPSPTool author here. Since all PSP firmware must be signed by AMD, something like a psp_cleaner would be possible given that a bug in the firmware allows to inject arbitrary code. This was shown by CTS-Labs earlier. [1] [1] https://msrnd-cdn-stor.azureedge.net/bluehat/bluehatil/2019/assets/doc/The%20AMDFlaws%20Story%20Technical%20Deep%20Dive.pdf https://msrnd-cdn-stor.azureedge.net/bluehat/bluehatil/2019/...
- ebcode 7y agothanks for posting the link. looking forward to the day when we can run post-2012 cpus knowing we'll be able to lock the backdoor.
- StudentStuff 7y agoWow, only the header is signed (for the Ryzenfall-1 bug)? That is a pretty big oversight, did AMD attempt to patch these bugs?
- zanny 7y agoIf there is anything these secret proprietary built in hardware backdoors are its that they are very poorly thought out.
- fwip 7y agoIt does seem to be a pattern. I can think of a few reasons off the top of my head: 1. Incompetence - The engineers try to get it right, but fail due to skill, budget or time constraints. 2. Malice - This allows bad actors to compromise the PSP for evil 3. Benevolence - This allows hardware owners to alter the PSP for their own protection. I think the smart money is on #1, but they're all interesting to think about.
- StudentStuff 7y agoARM is the designer of the PSP, if its incompetence then they're the ones at fault. AMD states that the PSP is "ARM TrustZone ... Industry standard" https://www.amd.com/en/technologies/security https://www.amd.com/en/technologies/security
- pSjl3na7fBVvBxs 7y agoYou can find the PSP firmware linked from the https://developer.amd.com/sev/ https://developer.amd.com/sev/ site. https://developer.amd.com/wp-content/resources/amd_sev_fam17h_model0xh_0.17b22.zip https://developer.amd.com/wp-content/resources/amd_sev_fam17...
- pgeorgi 7y agoThe PSP is responsible for memory training and re-enabling after wake-up. So neutralizing might work (given that signatures can be tricked), but you have to be very careful to keep a sizable set of modules alive.
- mehrdadn 7y agoWhat is "memory training"?
- vardump 7y agoIt's related to correcting DDR memory signal timing / clock skew.
- agapon 7y agoAre you sure? I thought that that was what AGESA code is doing.
- pgeorgi 7y agoBefore Zen, yes. Since Zen, that's in PSP, presumably for the PSP's various other features.
- pixelbath 7y agoHaving done a bit of homebrew and other things with my Sony PSP, this post was a little confusing until I hit the readme (Sony PSP uses MIPS instead of AMD). Especially since a tool of this name already exists: https://gbatemp.net/download/psp-tool.7590/ https://gbatemp.net/download/psp-tool.7590/
- jackalo 7y agoYou are not alone. I had the same confusion at first glance.
- craftyguy 7y ago> PSPTool Is a Swiss Army Knife for the Firmware of the AMD Secure Processor Do people stop reading titles after the first word now?
- 3martron 7y agoMany tools and programs have started life as a niche hacking tool. For example, XBMC. I also had to pause and wonder if this tied into the PSP somehow.
- craftyguy 7y ago> Many tools and programs have started life as a niche hacking tool. For example, XBMC Your little story is relevant.. how? The rest of the title literally has nothing to do with the Sony PSP... If you open the article, you'll see it has even less to do with the Sony PSP. It's not hard, folks, even for "Hacker" "News".
- SmellyGeekBoy 7y agoIt's not hard to be civil either.
- 3martron 7y agoWell, you replied to someone making a comment about first glances, and I too, at first glance, had a brief moment of confusion. That's how it's relevant. I'm sorry that you have trouble understanding that.
- josteink 7y agoNot really useful for me at this stage of development, but I will up-vote any baby-step towards getting less proprietary magic firmware in my Ryzen rig. I certainly hope this is useful to the firmware-hacking community and helps spur interest for more AMD-oriented libre firmware efforts.
- mehrdadn 7y ago> I will up-vote any baby-step towards getting less proprietary magic firmware in my Ryzen rig. This has definitely got to be the most compelling motivation I've ever seen on HN!
- shmerl 7y agoWhat are the practical applications? Are there FOSS replacements for PSP? Can you disable it, and what happens if you do?