Breaking the x86 Instruction Set

  Рет қаралды 356,113

Black Hat

Black Hat

Күн бұрын

A processor is not a trusted black box for running code; on the contrary, modern x86 chips are packed full of secret instructions and hardware bugs. In this talk, we'll demonstrate how page fault analysis and some creative processor fuzzing can be used to exhaustively search the x86 instruction set and uncover the secrets buried in your chipset.
Full Abstract & Presentation Materials:
www.blackhat.com/us-17/briefi...

Пікірлер: 608
@ppp72957
@ppp72957 6 жыл бұрын
This guy is impressively good at what he does.
@Reth_Hard
@Reth_Hard 6 жыл бұрын
Most of us was suspecting processors to have some dirty instructions hidden inside them, but this is certainly not an easy task to search for them. Sincerely, hats off to this guy!
@marshalcraft
@marshalcraft 6 жыл бұрын
Not really, well known intel has entire independent risc processor for the purpose of remote monitoring, even when battery is off your intel pc can access microphone and listen to you talk.
@FlamingPhoenix40
@FlamingPhoenix40 6 жыл бұрын
marshalcraft how? If your battery is off then the microphone won’t work...
@nfcopier1
@nfcopier1 6 жыл бұрын
The battery may not be completely off. If the motherboard was designed to provide power to the microphone in the "off" state and provide enough power to the CPU to run the necessary instructions, remote monitoring may be possible. The only way to prevent it would be to remove the battery completely. However, monitoring may not be feasible. I expect the process would have to dump data to a hard drive, which would require a lot of power.
@bryede
@bryede 6 жыл бұрын
Well, we occasionally find out that "secure" products have back doors and we know that the gov't frequently approaches tech companies requesting spy features, so we shouldn't be surprised if hidden ring bypass instructions turn up one day. I'm sure Intel was well compensated for them if they exist.
@tspshilt
@tspshilt 6 жыл бұрын
The use of No Execute on memory to find instruction length made me go "oh man" out loud. Genius.
@fss1704
@fss1704 5 жыл бұрын
nop nop
@rabebonskyjoe5193
@rabebonskyjoe5193 2 жыл бұрын
and then AMD's #ud before #pf "bug" to circumvent this
@NiKi-hl4zs
@NiKi-hl4zs 6 жыл бұрын
Oh man, that page fault analysis is genius.
@NiKi-hl4zs
@NiKi-hl4zs 6 жыл бұрын
Guy Smith Intresting, it's the first time hearing it for me though. Just thought it such an creative way to test for instructions.
@joshuakuehn
@joshuakuehn 9 ай бұрын
​@@NiKi-hl4zswhy do the two of you have the same pfp
@wildwest1832
@wildwest1832 6 жыл бұрын
its kind of scary how good some of these guys are at figuring these things out
@lbgstzockt8493
@lbgstzockt8493 8 ай бұрын
And this is just "some guy". Think of what a team of people like him with an evil motive could do.
@JDManring
@JDManring 6 жыл бұрын
I am jealous. Not only is this guy much more capable of mentally processing this complex information than I am, he's also incredibly good at presenting it!
@UPsideDOWNworld321
@UPsideDOWNworld321 5 жыл бұрын
thats why he is speaking!! dum dum dum dum duummmmmmmmmmmmmmmmmmmmmmmmm
@zesjerome7189
@zesjerome7189 5 жыл бұрын
no such thing as jealoux or capabx or good or not, cepu, do, say, think any nmw anda ny be perfect
@tjij-mbai
@tjij-mbai 4 жыл бұрын
He's a Genius.
@BryanChance
@BryanChance 2 жыл бұрын
He makes it easy to understand that I though I was good. :-)
@niks660097
@niks660097 2 жыл бұрын
cause of hard work and countless hours spent hacking/reverse-engineering...
@TheOz1999
@TheOz1999 4 жыл бұрын
With Intel's ZombieLoad, PlunderVolt, Meltdown and more severe vulnerabilities these days, this video is more relevant than ever
@wiipronhi
@wiipronhi 6 жыл бұрын
they should crowdsource the undocumented instructions the same way that pass mark gets benchmarks. Everyone uploads the results and a website shows a nice breakdown of what instruction run on what.
@jan_h
@jan_h 6 жыл бұрын
I feel like already running sandsifter to be one of the first that uploads to that site when it inevitably starts existing
@JoshBeach
@JoshBeach 6 жыл бұрын
github.com/rigred/sandsifter-tests
@fss1704
@fss1704 5 жыл бұрын
+Josh Beach damn cool, i'd like to run this shit on the brazilian voting machines using cyrix..
@baileyharrison1030
@baileyharrison1030 4 жыл бұрын
wiipronhi but if they do stumble across a secret instruction there’s a good chance it will mess up the OS operation. And an emulator wouldn’t have the instructions programmed into it anyway.
@axeman2638
@axeman2638 6 жыл бұрын
I just keep thinking how poor Terry Davis has wasted all his time. He needs to make his own silicon as well as his own compiler and OS.
@fss1704
@fss1704 5 жыл бұрын
damn i'm in, atleast we got risc v
@alexwolf4604
@alexwolf4604 4 жыл бұрын
RIP
@GBGSK
@GBGSK 4 жыл бұрын
May his soul find rest and find the peace he deserves.. RIP dear Terry! ☹
@tsnp423
@tsnp423 4 жыл бұрын
And all this in his own universe :)
@GBGSK
@GBGSK 4 жыл бұрын
@@tsnp423 no not Universe.. the correct word would be *Reality*
@ShadyNetworker
@ShadyNetworker 6 жыл бұрын
Goddamn, did Intel send assassins after this guy or what?
@morwar_
@morwar_ 4 жыл бұрын
They hired him.
@AbhishekBM
@AbhishekBM 3 жыл бұрын
@@morwar_ To expose themselves?
@morwar_
@morwar_ 3 жыл бұрын
@@AbhishekBM No, my guess is that what he knows is valuable.
@sangamo38
@sangamo38 4 жыл бұрын
My god that page fault technique is so awesome. So clever
@tom7
@tom7 6 жыл бұрын
Neat talk!
@alexst-laurent5272
@alexst-laurent5272 6 жыл бұрын
Oh hey! It's Tom! Love your learnfun and playfun videos and programs, it's really fun editing the code and seeing if I can optimize the behavior, and it's also just plain hilarious to run them on hacked roms, especially speedhacked ones. Have you considered doing more work on them?
@kopuz.co.uk.
@kopuz.co.uk. 6 жыл бұрын
It's good to see Black Hat uploading videos unlike the other popular tech conference.
@meithecatte8492
@meithecatte8492 6 жыл бұрын
Mp57navy it's the name of the conference...
@torpcoms6428
@torpcoms6428 6 жыл бұрын
CCC uploads all of their videos too, as does Defcon, and FOSDEM; HOPE only keeps official audio recordings; which conference are you referring to?
@Gunth0r
@Gunth0r 6 жыл бұрын
The secret one?
@y__h
@y__h 6 жыл бұрын
Torpcoms Maybe he meant That-Conference-That-Do-Not-Upload-The-Video-Immediately
@ehsnils
@ehsnils 6 жыл бұрын
Really good. Having done some Z80 programming once upon a time I know that some undocumented instructions are merely side effects of the microcode and not necessarily intentional. But the point is to figure out the instructions that really are intentional and undocumented. Unintentional undocumented instructions could of course be fun too if you want to do some "smart" programming, but don't expect them to work in the next generation of processors.
@desmond-hawkins
@desmond-hawkins 3 жыл бұрын
It looks like the "halt and catch fire" instruction he describes starting at 38:46 was never described publicly, at least that I could find. As he explains in this talk there was no time for vendors to address the issue under responsible disclosure so he couldn't give all the details at Black Hat 2017, but I couldn't find any reference to publications in the following months as he said would happen. There's a question about it on the Reverse Engineering StackOverflow site, but no one seems to know. I'm not particularly looking for a way to execute this instruction, but I'm curious to know if any mitigation was possible for CPUs that had already shipped. If anyone knows and has a reference this would be much appreciated.
@memerichment
@memerichment 2 жыл бұрын
Thanks for following this up! I was extremely curious as well.
@javaguru7141
@javaguru7141 2 жыл бұрын
Also hoping to hear more about it eventually. It's been a while.
@BruceDuncan
@BruceDuncan 8 ай бұрын
Where are you, Domas? What did you learn?!
@bkiffter
@bkiffter 6 жыл бұрын
Maybe a stupid question, but how does the cursor keep blinking if the CPU is locked up?
@TheHuesSciTech
@TheHuesSciTech 6 жыл бұрын
The graphics card does the blinking. The cursor blinking was literally done by special circuitry back in the days of text-only computers decades ago when the CPU couldn't possible spare CPU cycles to blink a cursor. And since there's been a continuous evolution of compatible machines ever since, the graphics hardware has never been relieved of that responsibility. Of course, modern GPUs can handle that in their sleep. (If the bug was demonstrated in a Graphical UI, then it probably would freeze.)
@zesjerome7189
@zesjerome7189 5 жыл бұрын
no such thing as stupix qor not
@matheusrodrigues9653
@matheusrodrigues9653 3 жыл бұрын
@@TheHuesSciTech eu ia morrer sem saber disso
@AlexSKelly-up7lf
@AlexSKelly-up7lf 2 жыл бұрын
@Brick It really is, not only because it would have been difficult to come up with, but also because it would be easy to think something else entirely. I thought it would only stop executing instructions in a specific ring or something like that.
@Lucas_Simoni
@Lucas_Simoni Жыл бұрын
I had some glitch on nvidia drivers on ubuntu that would show up some previous image sprites that were on my windows after I restarted and dual booted into it, it was something related to dual monitor (it didn't work out of the box, I never bothered to fix it), I have no idea how possibly that could have happened, how some sort of buffer could have survived a system restart, but somehow some internal gpu buffer survived, and I never seen anyone talking about that online. It also seems like the cursor is accelerated by the the GPU too, and probably a lot more going on. Check this video out: [PS2 vector unit demonstration Using only 16K of working space; NONE of the ps2 main CPU was used: kzfaq.info/get/bejne/p9KBm6102qi9o3k.html] Also, in other video game consoles, there is a lot of GPU compute that happens independently of the main CPU, search for architectures for the gameboy advanced, nintendo ds, nes, etc.
@Donaldo
@Donaldo 6 жыл бұрын
This talk takes a while to get interesting but it's worth it
@ruthlessadmin
@ruthlessadmin 6 жыл бұрын
This is why open source is so important. I would love to see a viable open CPU alternative emerge, on the scale of Linux in the software world. It's not impossible, but it would be a much different and more challenging problem to solve.
@jastrckl
@jastrckl 6 жыл бұрын
already exists. SPARC.
@ruthlessadmin
@ruthlessadmin 6 жыл бұрын
Thanks..I was aware of SPARC but didn't realize it was open source. I'm also aware of some other open source CPUs. Still, I don't think it quite meets the mark for a genuine competitor to x86. I mean, I can go out and buy a laptop running Linux but I don't think I can go buy a laptop with a SPARC so easily....
@kunou4527
@kunou4527 6 жыл бұрын
Problem here is licensing. It can't be GNU. Would need to be BSD based to entice innovation and protection of intellectual property. Which means the option to not release certain intellectual property for free. Or rather, the freedom to not be compelled to do so at the cost of the innovator.
@y__h
@y__h 6 жыл бұрын
Kunou RISC-V is BSD-licensed ISA.
@bertdowns8186
@bertdowns8186 5 жыл бұрын
RISC V. Linus tech tips made a video on it recently...
@xoloser3
@xoloser3 6 жыл бұрын
Thanks for the talk! You used such fascinating methodology to carry out this project. Definitely learned a lot, not just about hidden instructions but also software searching techniques.
@georgetroulis
@georgetroulis 6 жыл бұрын
Incredible job done presenting this critical topic. Keep up the good work :)
@rogerflores9470
@rogerflores9470 6 жыл бұрын
A brilliant talk showing persistence and out of the box thinking. As pointed out, the time is well past for trusting the docs of closed hardware designs! I need to go now and think about working the ideas into my disasm and emulator.
@jemakrol
@jemakrol 3 жыл бұрын
This is so well done in every aspect. There are smart people and there are people like this, that goes beyond that. Well performed presentation. As of 2021 I find surprisingly little follow up info on that Halt and Catch Fire instruction - dunno if that's me sucking in searching or that the disclosure still apply.
@qualityedits3083
@qualityedits3083 Жыл бұрын
what a talk! phenomenally creative, important, and useful. i understood almost all of it despite knowing next to nothing about x86, barely anything about process/OS security schemes and how their traps/exceptions are passed around, what the rings mean, and just generally being very new to OS and hardware stuff.
@reversEngiener
@reversEngiener 6 жыл бұрын
Wow. This just shows me I need to brush up on my awful, awful assembly skills. Hats off to Christopher Domas.
@MrtinVarela
@MrtinVarela 6 жыл бұрын
*"jk i'm malicious af"*
@zesjerome7189
@zesjerome7189 5 жыл бұрын
wrr
@Baigle1
@Baigle1 6 жыл бұрын
Link to GitHub repositories! github.com/xoreaxeaxeax/sandsifter
@dirtbikersteve
@dirtbikersteve 6 жыл бұрын
THANK YOU!
@JoshBeach
@JoshBeach 6 жыл бұрын
Github test results repo github.com/rigred/sandsifter-tests
@benjaminbrady2385
@benjaminbrady2385 4 жыл бұрын
This has been fascinating!
@EdPin_
@EdPin_ 6 жыл бұрын
Information dense talk in a manner of John Carmack. Now i need time to digest. Awesome.
@347573
@347573 6 жыл бұрын
Mind blowing!! Neat and complete... bravo!! :)
@BrianTaylor-AlwaysInTao
@BrianTaylor-AlwaysInTao 6 жыл бұрын
Outstanding work
@chrisdickens4862
@chrisdickens4862 9 ай бұрын
Fascinating.
@Antagon666
@Antagon666 2 жыл бұрын
This is really well explained.
@xDR1TeK
@xDR1TeK 8 ай бұрын
Remarkable person with a unique mind.
@edmund-osborne
@edmund-osborne 5 жыл бұрын
Finally! Someone speaking at a tech event who isn't a stuttering incompetent mess onstage!
@Walter_
@Walter_ 4 жыл бұрын
You gotta realize these sorts of people are specialized hard into 1 thing.
@FamilienSoelberg
@FamilienSoelberg 6 жыл бұрын
You are my favorit! Love your stuff.
@JG-tk3cd
@JG-tk3cd 6 жыл бұрын
This guy is a genius
@kbabioch
@kbabioch 6 жыл бұрын
Great talk, nice ideas!
@notgate2624
@notgate2624 2 жыл бұрын
Incredible talk
@JOHNSMITH-ve3rq
@JOHNSMITH-ve3rq 3 жыл бұрын
absolutely incredible stuff.
@233kosta
@233kosta 2 жыл бұрын
I should imagine a lot of these undocumented instructions would be work in progress, perhaps left there for eventual future use, perhaps used to reduce the cost of prototyping, but the coordination between x86 manufacturers does raise some serious concerns. These could be anything from hyperoptimised inverse square root calculations to deliberate holes in x86 security, put in place for "the right people"... See "idiocy of back doors"... It could also be as simple as Micro$oft (or Apple?) paying them a handsome sum of money to implement a custom instruction set just for them without telling anyone.
@justabelief5119
@justabelief5119 5 жыл бұрын
When I was a kid guys like this were the rockstars and astronauts to me.
@PamirTea
@PamirTea 6 жыл бұрын
Amazing talk.
@puellanivis
@puellanivis 6 жыл бұрын
TL;DR: This tool is awesome, thanks for writing it, good thinking all the props. So, some thoughts, sometimes undocumented instructions can be implemented across multiple architectures because it is simply a logical extension of the architecture that isn’t actually documented, but putting in the logic to block those undocumented instructions is more work than it is worth. (i.e. undocumented, or “behaviour undefined” register combinations) similarly, a short-cut in implementation (pinning a behaviour-changing mux to a specific bit of the opcode, rather than actually decoding it) A good example here is the SL1 instruction on the Z80 processor. The three instructions SRA, SLL, SRL are combined in a quad-structure with a section of missing shift-left instructions. Actually executing these instructions results in a shift-left then set bottom-bit. Likely as a result of opcode bits being pinned to muxes. Additionally, there is still a worth in specifications. Specifications detail what is _expected_ behaviour, and what one can rely upon. As such, there’s a giant chasm of instructions that may work at the time, but are not guaranteed to work in the future, or even potentially after a microcode update. So, we get this horrible area, where like the 66 e9 instruction, good software should never include this instruction, because it is non-standard and “a valid implementation of undefined behaviour is to make monkeys fly out of the user’s butt”, but meanwhile, the processor still accepts these instructions, and can potentially then be malicious. At the same time, you can’t _really_ trust that only malicious code uses these instructions… so… poop.
@gnagyusa
@gnagyusa 6 жыл бұрын
Awesome. Pretty clever tricks!
@iMPRE7ed
@iMPRE7ed 6 жыл бұрын
This is actually something amazing
@qiuhaoli
@qiuhaoli 2 жыл бұрын
Bravo! Just brilliant.
@etmax1
@etmax1 Жыл бұрын
Great well explained video, thanks
@pokemon-unboxing
@pokemon-unboxing 6 жыл бұрын
The man is a genius!
@cataria3903
@cataria3903 6 жыл бұрын
great stuff! hopefully resulting in some good microcode updates and more secure cpus in the future.
@dorukayhanwastaken
@dorukayhanwastaken 4 жыл бұрын
😂
@olbluelips
@olbluelips 2 күн бұрын
Still my favourite talk
@_zproxy
@_zproxy 6 жыл бұрын
good stuff
@joemama-js6hv
@joemama-js6hv 5 жыл бұрын
ok woah.. this guy has some impressive talks here. a bright mind for sure.
@DougCube
@DougCube 6 жыл бұрын
This is awesome! This guy's very resourceful to come up with these tools. Questions tho... Why wouldn't a processor's Instruction Cache prefetch generate the page-fault much earlier than when the straddling instruction was hit?
@sapphonie
@sapphonie 2 жыл бұрын
This is incredible
@georgebolo1043
@georgebolo1043 6 жыл бұрын
nice work
@samm3417
@samm3417 2 жыл бұрын
I watched this video 𝟓 𝐓𝐈𝐌𝐄𝐒!... not because I didn't understand it but because it's just wonderful and so INTERESTING. Amazing Black Hat
@douro20
@douro20 3 жыл бұрын
8086/8088 processors had an instruction prefix interrupt bug which wasn't fixed until the 80c88 was introduced. There was also a rather critical bug in early 8086/8088 processors which would cause an interrupt immediately after a MOV SS or POP SS to push data off the stack into an incorrect memory location, causing data corruption.
@sent4dc
@sent4dc 6 жыл бұрын
Wow, that is amazing! Just curious though, any updates on that Ring3 DoS instruction that locked up his CPU?
@garethprice4223
@garethprice4223 6 жыл бұрын
superb.
@djdeluxe76
@djdeluxe76 2 жыл бұрын
10:25 when you make the processor roll over for you, you know you're next level
@slookify
@slookify 3 жыл бұрын
so much respect for those smart people
@DoRC
@DoRC 6 жыл бұрын
I totally understood all of this:) :) :)
@mohammadkaif3868
@mohammadkaif3868 5 жыл бұрын
thank yu very much yu have rightly guided me to pursue a career in reverse engineering software yu are actually a genius and open sourcing those software tools makes yu true master in your field yu can turn those software tools into million dollar startup
@snooks5607
@snooks5607 6 жыл бұрын
holyfuck. I might be high, but tell me if that wasn't the best blackhat talk yet?
@unvergebeneid
@unvergebeneid 6 жыл бұрын
Save the best for last as they say.
@fss1704
@fss1704 5 жыл бұрын
damn yeah what kind of person doesn't get excited over ring -1 stuff....
@gaydolfhitler6310
@gaydolfhitler6310 4 жыл бұрын
If you were going to make a backdoor, How would you do it? Possible with 2 or more differant instructions in tandem, creating a false page fault or it might effect something completely hidden or not monitored. There is a backdoor here somewhere but its going to be very well hidden.
@fuanka1724
@fuanka1724 6 жыл бұрын
Oh snap! This is great.
@bit2shift
@bit2shift 6 жыл бұрын
Most of those undefined opcodes could be what LAX was on 6502: opcodes without explicit microcode.
@bryede
@bryede 6 жыл бұрын
With simple processors like the 6502, you could enable parts of more than one instruction because the opcodes weren't discretely decoded. On a modern CPU, a working instruction is most likely intentional.
@bit2shift
@bit2shift 6 жыл бұрын
bryede the thing is: we don't know the exact internals of x86 like we do with 6502 because it's closed hardware and it's constantly changing with each new microarchitecture iteration.
@bryede
@bryede 6 жыл бұрын
Right, but the x86 is fully microcoded and it can even be updated in the field. This means instructions point to specific internal sequences to be executed. When you find a sequence that works without throwing an exception, it probably means there's something in the table. It doesn't mean it's top secret functionality, but it might be. On the 6502, the undocumented opcodes came from enabling more than one instruction because the sequencing ROM was optimized for size and is built out of fragments that can overlap with illegal bit combinations.
@bit2shift
@bit2shift 6 жыл бұрын
bryede several millions of undocumented instructions would require a fairly big microcode ROM, so we can speculate that there's overlap between some of the documented and some of the undocumented.
@bryede
@bryede 6 жыл бұрын
Right. Because of how the instructions are prefixed and expanded in a byte-wise fashion, you don't need a table supporting all bit combinations, but rather you move from one 256-entry table to another. I'm just saying all unused byte entries are supposed to throw an exception. Just modifying instructions with prefix bytes won't.
@rkj11107
@rkj11107 5 жыл бұрын
Epic.
@matolechat8444
@matolechat8444 6 ай бұрын
love you !
@JasonMasters
@JasonMasters 6 жыл бұрын
Undocumented instructions have been around at least since the Z80 and perhaps before then. This is an 8-bit CPU which uses a separate 16-bit address bus. The Z80 has two 16-bit index registers, IX and IY, intended solely for indirectly accessing memory, but people noticed that the binary code for accessing these registers was just one byte to say "Use IX" or "Use IY" followed by exactly the same instructions used to access the HL register pair, which are two 8-bit registers which can be used together as a 16-bit address. Since the H and L registers can be used as separate 8-bit registers, people decided to try adding the "Use IX" or "Use IY" byte in front of the 8-bit H or L register instructions and discovered that they could access IXH, IXL, IYH and IYL as 8-bit registers. Many programmers then wrote an include file which defined these undocumented instructions as macros so they could use them directly in their programs.
@panteltje
@panteltje 6 жыл бұрын
Nice to hear about the Z80, learned asm programming on that long time ago. My coding style comes from this book by professor Miller (bing will find it online); 8080-Z80AssemblyLanguage-TechniquesForImprovedProgramming.pdf Appendix J mentions those instructions.
@omgjingles
@omgjingles 6 жыл бұрын
I understood nothing, but enjoyed it.
@amaraojiji
@amaraojiji 6 жыл бұрын
respect!
@athf226
@athf226 6 жыл бұрын
I'm kind of curious what sort of similar tools the processor developers have. When I've made processors in uni we would generally brute force/cherrypick things we thought may break stuff.
@kayfranky7039
@kayfranky7039 3 жыл бұрын
GooooooooooD Job
@aorusaki
@aorusaki 4 жыл бұрын
niiice nice work
@hellterminator
@hellterminator 6 жыл бұрын
Just tried the call with 66 prefix in IDA 7 on an i7-6700K and both IDA *and* the CPU interpret it as a call with a 16 bit offset. What CPUs were you testing on?
@davivify
@davivify 6 жыл бұрын
Couldn't help but notice the venue for your seminar. Kind of puts a different slant on things, doesn't it? What a difference a couple of months can make.
@ninjabeatz905
@ninjabeatz905 6 жыл бұрын
Nice nice carry on
@analkarldervierte1759
@analkarldervierte1759 6 жыл бұрын
26:53 **Puts on tin foil hat** No seriously, that shit's scary
@damionyates1
@damionyates1 2 жыл бұрын
About 6m40s in it says #40 is a single byte instruction `inc eax`. I assumed an #40 would cause a situation where if `ax` reached #ffff it would go back to #0000 and set the carry flag, but #66 #40 should increment eax to #00010000. There are several other minor factually confusing statements throughout the video. On the whole this is a great talk and seems to be presented by an absolute expert so now I'm doubting myself.
@dtm303909
@dtm303909 6 жыл бұрын
Ok thanks for this talk. Just confirmed an old acquaintance must work for an intelligence agency. He told me this in 98 but was drunk and denied saying it after.. Lol..
@hisf1shness
@hisf1shness 6 жыл бұрын
This guy sifts.
@Diggnuts
@Diggnuts 6 жыл бұрын
The real question is whether these instructions yield some result because of the inherent physical logic-fabric and the way the op-codes are implemented or if it is a designed instruction.
@Ky0l
@Ky0l 6 жыл бұрын
Wow, this guy!
@idiomaxiom
@idiomaxiom 6 жыл бұрын
Is this separate from the custom instruction sets added for individual large customers but disabled for everyone else?
@MarioManTV
@MarioManTV 6 жыл бұрын
Not super familiar with these architectures, but isn't it feasible to have certain combinations of instructions be used to cause specific, hidden behaviors? Seems like something that this tool would miss.
@gblargg
@gblargg 4 жыл бұрын
His search scheme seems to exclude some possibilities. From what he described, if say 00 xx is a two-byte instruction, he checks 00-FF for xx. Then he goes back and checks the length of 01. If it's also two bytes as before, he then doesn't search 01 xx, assuming that the last byte won't do anything special. But what if 01 00 is a three-byte instruction, or 01 23 is a three-byte instruction? Essentially, he seems to assume that there won't be two different types of instructions of the same length, next to each other in his search order. That is, if say 00 is a two-byte instruction, 01 is a one-byte instruction, and then 02 is a two-byte instruction, he will properly search both two byte instructions' second bytes, but if instead 00 and 01 are the two-byte instructions, he won't search the second one. Later he says he has the instruction at the end of a page to use a page fault to detect instruction length. I'd be wary of trusting that mechanism, especially for hidden instructions. I'm sure I've read errata for processors where instructions near or crossing a page boundary have issues.
@niter43
@niter43 6 жыл бұрын
15:40 how that is truth? I thought we don't relay on what's said in documentation and it's sounds like a good idea to hide backdoor/hiden instructions by continuously throwing exceptions.
@7Shol
@7Shol 5 жыл бұрын
18:30 Why fuzzing only 1 random bite will not corrupt memory state? I would have assume that it would be a specific bite that we should not change.
6 жыл бұрын
Has the hardware bug been disclosed yet?
@MagicBoterham
@MagicBoterham 6 жыл бұрын
Not to me, at least.
@hjembrentkent6181
@hjembrentkent6181 6 жыл бұрын
Bump.
@y__h
@y__h 6 жыл бұрын
Dunno yet, but today some people hinted at a whole new family of Spectre-class vulnerability.
@devlogged7633
@devlogged7633 4 жыл бұрын
@@y__h This aged quite well haha
@cdoublejj
@cdoublejj 6 жыл бұрын
i wonder if AI could be used to make correlations and or do testing or variations of things/data?
@Roxor128
@Roxor128 6 жыл бұрын
I think this was 80% nifty and 20% scary. Nifty for coming up with that approach for finding undocumented opcodes. Scary for the fact that so many were found.
@fss1704
@fss1704 5 жыл бұрын
i couldn't agree more with your words, literally.
@lohphat
@lohphat 3 жыл бұрын
My guess is many undocumented opcodes just do nothing. My guess the number of really secret opcodes are few, they just treat the potential execution paths as NOPs. Complex CISC CPUs use microcode to decode instructions so just routing them to NOP is more economical. However I still am concerned that the OEMs have included opcodes which may only be used for debugging but are vectors for abuse. What’s worse, some of the vulnerabilities may require several undocumented opcodes to do something so just poking single opcodes isn’t enough to scope the problem set.
@Lazarus7000
@Lazarus7000 6 жыл бұрын
Is there anything to be learned any more through physical disassembly of the chip? I know the Soviets used to grind the chip, miniscule layer by miniscule layer, but eventually the chips became too tightly packed for this to be viable, but I wonder if technological advances have been made in the last 25 years that could re-enable the technique, even if exotic technology like electron microscopes are needed to observe the chip...
@DaViruz
@DaViruz 6 жыл бұрын
Look for talks by Chris Tarnovsky, he describes these procedures on modern chips in great depth.
@ongunkanat
@ongunkanat 4 жыл бұрын
Does anybody have a link for full disclosure?
@AndrewTheiss
@AndrewTheiss 4 жыл бұрын
This guy is pro
@thewhitefalcon8539
@thewhitefalcon8539 2 жыл бұрын
Did he release info on his f00f bug discovery?
@devrim-oguz
@devrim-oguz 4 жыл бұрын
The only true way to know is to reverse engineer the die. There might be some secret knock codes that is outside the instruction space that could enable special functionality.
@maksymiliank5135
@maksymiliank5135 2 жыл бұрын
probably not. Why would they create something like that, invest their time and money and never use it again? Idk
@majorfallacy5926
@majorfallacy5926 8 ай бұрын
@@maksymiliank5135 espionage backdoors. There's a reason china wants its own silicon so badly
@solsticeprojekt1937
@solsticeprojekt1937 4 жыл бұрын
I knew of LoadAll when I was around 10-14. I don't know why he says it's undocumented or unacknowledged, but I can guarantee that that wasn't the case in the early 90s. Very weird. The appropriate opposite is SaveAll. Doesn't work in ring3, iirc. Works in DOS, of course. Preferred it over pushA for some reason, but I don't remember.
@luisponce3580
@luisponce3580 4 жыл бұрын
This is truly disturbing. This guy was able to do this single handed (of course we can assume that a lot of people helped him, im too lazy to watch the video again to see if he said that he was not alone in this project), imagine what a group of malicious people, that literally do this all day, can actually do? I imagined these "malicious people" have literally all the backdoors in every single [Intel, Amd] hardware (processors) . If they were to find and fix a vulnerability, the "malicious people" still have the rest. But what do i know :) im just a student, and I am sorry for my english, I hope you still be able to get my concerning point.
@mrflamewars
@mrflamewars 6 жыл бұрын
Well this video is certainly a great deal more relevant. Fuck.
I built my own 16-Bit CPU in Excel
16:28
Inkbox
Рет қаралды 1,3 МЛН
McDonald’s MCNUGGET PURSE?! #shorts
00:11
Lauren Godwin
Рет қаралды 34 МЛН
Stupid man 👨😂
00:20
Nadir Show
Рет қаралды 25 МЛН
DEF CON 25 - Christopher Domas - Breaking the x86 Instruction Set
40:40
DEFCONConference
Рет қаралды 18 М.
Explaining RISC-V: An x86 & ARM Alternative
14:24
ExplainingComputers
Рет қаралды 412 М.
CPU vs GPU vs TPU vs DPU vs QPU
8:25
Fireship
Рет қаралды 1,5 МЛН
A CPU With One HUGE Core
4:54
Techquickie
Рет қаралды 787 М.
I'll Let Myself In: Tactics of Physical Pen Testers
44:56
Wild West Hackin' Fest
Рет қаралды 2,8 МЛН
Cracking the Lens: Targeting HTTP's Hidden Attack-Surface
44:06
Compiling C to printable x86, to make an executable research paper
25:41
McDonald’s MCNUGGET PURSE?! #shorts
00:11
Lauren Godwin
Рет қаралды 34 МЛН