3 ms·
Naive question about getting “dumps of microcode” Getting a dump means getting access to a memory controller of sorts and asking it to read you back the conten
by Waterluvian 4y ago
Naive question about getting “dumps of microcode”
Getting a dump means getting access to a memory controller of sorts and asking it to read you back the contents of addresses, right?
But you’re really getting what the memory controller decides to give you. There could be more indirection or sneakiness, right? Ie. I could design a memory controller with landmines, as in “if you ask for 0x1234 I will go into a mode where I send back garbage for all future reads until power is cycled.”
Is this a thing?
- sabas123 4y agoThis is a thing and was used in this fantastic piece: https://www.youtube.com/watch?v=lR0nh-TdpVg https://www.youtube.com/watch?v=lR0nh-TdpVg However the way they obtained these dumps is by going deep into debugger mode of the cpu which makes me doubt anything spooky would be going on.
- tambourine_man 4y agoI’m usually not into security research but this is fascinating, thank you. Someone screwing some C code and creating a vulnerability isn’t that interesting to me, but going on such low level and fundamental stuff makes me giddily, if not a bit scared. Last time something like this caught my eye was that iMessage[1] NSO thing, not because they managed to escaped the sandbox, but because of the insanely clever way they did it. [1] https://googleprojectzero.blogspot.com/2021/12/a-deep-dive-into-nso-zero-click.html?m=1 https://googleprojectzero.blogspot.com/2021/12/a-deep-dive-i...
- sizzle 4y agoSame and also the state sponsored centrifuge destroying 0 day that was written up a while ago, super mind bending read
- tambourine_man 4y agoYes! That one too.
- genewitch 4y agoAhh, I knew someone would post a reference or video of xorxorxorxor, or Mr. Domas. I was so excited to try out sandsifter I spent an entire night shift compiling everything on a raspberry pi or rockchip. Sandsifter is an x86 instruction dumper. Sometimes I wonder if the head injuries I took as a teen affected me in a subtle way, because I did watch the entire sandsifter presentation where he repeatedly says x86. He also has a cool presentation about ring -1, -2, and beyond, of which the reader for that stuff was what I figured was used to find the actual OP.
- avianes 4y ago> But you’re really getting what the memory controller decides to give you. Yes, here the memory is read through a debug bus. > I could design a memory controller with landmines, as in “if you ask for 0x1234 I will go into a mode where I send back garbage for all future reads until power is cycled.” Yes, it basically looks like a backdoor, and you can do it the other way around: The memory read through the debug bus is exactly the content of the ROM, but the memory controller is made so that when the processor reads a specific address or data it doesn't return the value in memory but something else. This way even a person who would use a visual or an intrusive memory extraction method would not notice the backdoor. The only way to discover it is to do a full inspection of the logic, which probably nobody will do. > Is this a thing? Yes, sometimes some addresses in a memory system are effectively not readable (write only). As for example with some memory-mapped configuration registers, a 0-value may be returned instead of the register contents. But your question sounds to me more about mechanisms to hide a backdoor. Regarding hardware backdoors, they are always theoretically and practically possible, and almost always undetectable. Since nothing prevents the designer from introducing logic that has malicious behaviour and it's nearly non-observable. This is the problem with theories about backdoors in modern processors. Without evidence, these theories fall into the realm of conspiracy theories. But it's almost impossible to have evidence and no-one can say that it doesn't exist.
- chii 4y ago> But it's almost impossible to have evidence and no-one can say that it doesn't exist. except for intel, if they publish how their hardware and microcode works internally? aka, opensourcing their internal design? Of course, they can't since it will allow competitors to copy it, but would that work theoretically?
- ohazi 4y agoNo, this would not work. Even if they released absolutely everything, there's no way to verify that the chips they actually make and sell conform to a design that they release without inspecting the actual chip. If you're really paranoid, you'd have to inspect every chip, and that's usually a destructive operation.
- jeffrallen 4y agoYes, see page 96 of Bunnie Huang's "Hacking the Xbox" where he tells the story of what happens when the machine seems to boot something else than the ROM.