Breaking the x86 Instruction Set

Channel:Black Hat · Length:44:29 · Published:2017-08-31 · Views:381556

Watch on YouTube

Summary

Christopher Domas presents at Black Hat 2017 how page fault analysis and processor fuzzing can exhaustively search the x86 instruction set. The talk uncovers undocumented instructions and hardware bugs and shows limits of disassemblers.

Why HN recommends it

HN recommends it as a clever, entertaining and easy-to-follow talk on finding hidden x86 instructions with the Sandsifter tool.

I found it easy to follow and pretty entertaining. — HN, 2018

Security & hacking · Computer architecture & CPUs

Subtitles (excerpt)

all right good evening everyone I'm here to talk to you about breaking the x86 instruction set architecture I think it should be a pretty fun conclusion to a really cool black hat first off my name is Christopher Domus I'm a cybersecurity researcher at a place called the Battelle Memorial Institute I really really like working here I get a chance to encounter a lot of really difficult problems but what I think I like the most is that with the problems and people I work with on a day to day basis I actually get a lot of really neat ideas on fringe areas of cybersecurity that I can sort of explore in my free time so that's what I want to talk to you about today is a little side project I've been working on on and off for the last few months called sand sifter so this whole thing comes down to an issue of trust and I'm going to start out with a really obvious observation we don't trust software and that's a really good thing software's horrible so we audit software to make sure that it's working the way we expect it to work we reverse engineer software to make sure there's no secret functionality in it we want to make sure minesweeper is not dialing out some Russian website right we break software we try to find

On Hacker News

I watched a super interesting Black Hat video on youtube that talked about discovering secret instructions on CPUs by iterating over each bit of opcodes until you get an illegal instruction, and thereby discovering if an opcode is valid or not. He set up a room full of PCs running his code and had hardware to auto-reset them when they crashed. [VIDEO] — brokenmachine, 2021-07
How about undocumented instructions? Sandsifter[1] is an interesting project and the video from BlackHat[2] is a good watch. There's also a previous discussion of it on HN[3]. [1] [LINK] [2] [VIDEO] [3] [LINK] — gbrown_, 2021-04
There was an interesting black hat talk about automatically finding undocumented instructions. [0] Interesting comment on twitter to the instruction of the original post[1] [0] [VIDEO] [1] [LINK] — BlackLotus89, 2021-03
"I thought you were saying that the use of microcode would complicate verification of the hardware." I do think that microcode opens up the possibility of subtle injections to follow code/hardware paths you might not easily predict. A really good talk on reverse engineering an ISA implementation: [VIDEO] — tyingq, 2020-11
There was a really good Blackhat talk a year or two ago in a sort of similar vein: they developed an approach to iterate and find undocumented opcodes. [VIDEO] The software they developed is called Sandsifter. — jchw, 2019-04

Related videos