Good evening, everybody. My name is Christopher Kronofsky, and I'm with FlyLogic Engineering, and glad to see a big turnout for the last track of the day. So this track is going to basically consist of a very deep analysis of an older microcontroller from Infineon. At Black Hat, we decided we'd do the Infineon 44 series, used in some smart cards from Scilink. Anybody ever heard of Scilink data security? You know, link encryptors, things like this, trust your data with them on your laptop, so forth. Who uses smart cards here? Anybody? Awesome. You guys probably use much newer ones. The problem with the newer ones is the principles you're going to hear today all apply to tomorrow as well, but you have newer challenges as everything starts to shrink. The average smart card today is about 180 nanometers. What we'll play on? This afternoon, this evening is going to be about 1,000 nanometers. The average smart card today is getting meshed now with active meshing to keep this type of stuff from getting direct access to the bus lines or the memory outputs, things like this. I'd like to go through a quick, quick overview of what I talked about at Black Hat, and then get as much time as possible probing with you guys, and we'll actually sit on the bus with this chip. We'll eavesdrop it, and I'll explain some points, because some of you will probably... You'll be thinking, well, we run encrypted busing, encrypted address fetching, scrambling, who knows what, and honestly, that's good, but these principles apply to everything, because there's always another way to skin a cat. Who uses the 6805 or the 8051? Excellent. Now, do you guys know Assembler? Most? Excellent. You guys count clock cycles? Good, because we're going to count some clock cycles. So this chip is, again, it's pretty old, but if you can grasp what we're going to talk about, you can do it to anything, but you've got some challenges, obviously, ahead of you. So, momentary fault, what is it? Basically, it's opening up the chip to get to the substrate and temporarily changing the behavior of this state machine that's running, because that's really what a microcontroller is. It's a complex state machine. With specific behaviors and dynamic behaviors. So the change is always going to be precisely calculated. It's guaranteed as soon as you do your homework and do your calculations of where to apply it. Most of the time, the fault lasts no more than a few clock cycles. I had wanted to do a demonstration with a stack overflow. However, it took a little too much time, given the probe setup the way it is. So I'm going to show you, basically, a destruction of a loop that reads bytes out of the E-square. Normally, we'll get 16 out, and with one glitch, with a needle, I'll make it spill 256. And I could keep repeating this loop as well. This particular glitch is going to last one clock cycle period inside the core of the 44-series Infineon part. Sometimes, though, I may hold the fault forever. Maybe I want to freeze the instruction latches and make the chip latch, or maybe I want a two-byte fetched instruction of some kind, with an instruction and an operand. Something like this is very, very favorable to a hacker. And most of the smart cards today still don't have any defenses against this. Well, I take that back. They have defenses, the meshing, the size, and such. But once someone overcomes these, there's no defenses for allowing me to read out all of memory, mess with the MMU, change memory mapping if it's over 64K, things like this. So there are always going to be challenges. But what you're going to see today applies to it. It's just you may need to think a little bit outside the box to get it to work. Just for the slide up, I should have asked you guys. You want to sit on the bus. Does anybody do reverse engineering here? Okay. I mean, substrate reverse engineering with microscopes, needles, and things? Anybody? Okay. This chip, any chip, is no different than... than a PCB if you lay out PCBs. Anybody do PCB board design, things like this? Okay, excellent. So the only difference is instead of doing a scan on a PCB, on like a scanner to look at the tracks if you're trying to trace out wires, or using an ohmmeter, you need to use a microscope. And to touch these wires, they're much weaker than we are on the outside world. We need to use like a very low capacitance buffer or an op-amp, for example, something very light so the wire doesn't sink down and the slew runs. The slew rates don't get destroyed for the transition between a zero to a one and one to a zero. The driver needs to be capable. And for our purposes of this talk, an op-amp won't work, because an op-amp is only going to take the signal out, amplify it, and bring it to you. That's just listening. We're not going to just listen. We're going to listen, and then we're going to momentarily induce a fault that we've chosen at what point in time to do it. So we know their clock counts. We know where they are at what precise point in time, and we're going to physically change the value of the signal and put it on the bus at that moment. The driver needs to be low capacitance. It needs to be capable of driving a one or a zero, because this way it gives you the flexibility. If it's a one, you can make it a zero. If it's a zero, you can make it a one. If it's 180 nanometer technology or smaller, maybe the voltage, you can't make a one, let's say. You don't have a driver that supports like 1.65 volts, maybe. Maybe find then an instruction that you want to, instead, drive to a zero, because it's very easy to force a line to ground through a driver that's running at 2.5 volts or 3.3 volts or 5 volts even, just as long as you don't drive 5 or 3.3 or whatever into it. So these chips are getting smaller. We're getting lower voltage. There's new challenges, but all of these techniques today will apply to anything tomorrow. So why do we do it? Why do we do it? We do it because maybe we want to overwrite the stack pointer, make this loop, as you'll see soon, repeat as many times as we'd like. I've only prepared it to do it once. It's not really useful to do it more than once, because the high side of the data pointer is not getting incremented, so we're stuck in a page of 256 anyway. But maybe this is not a microcontroller, because this is not just smart cards. This is also any type of silicon device that you've got, any digital circuit we can apply these techniques to. Maybe it's a cryptographic ASIC of some kind, so we can falsify a MAC or an HMAC or a cryptogram of some type. This technique can apply again. It just takes a little bit of effort on your part, on the attacker's part. So to put the fault into the chip, we're going to need to physically touch the substrate, so we've got to open it up with some assets. None of this is being discussed today. You can see the video on Wired. Has anybody seen the video on Wired? Okay. I was very tired, but I'm good. Did you understand most of what you saw? Good. Even better. Good. So you take that and you, again, apply it to today. There are some new challenges, but it's still the principle of what I did in that video, that with a little bit of thought, you can do it. Infineon 6688s have a mesh, 220 nanometer technology, five metal layers with the mesh. So use a FIB, bridge the in to the out, and then use my wet chemical techniques and blow a hole right through it and get right down to the core of the 66P. Okay. So this is a Thompson 19 series processor. I don't remember which one, but something I took a long time ago, and it's very interesting. So you can see the yellow track is the data bus of D0. The blue line is a trigger, some trigger that I had. The green line is the clock. And, again, just going back to this chip versus that chip, this chip happened to run on an internal clock. So this green clock you see actually had to get plucked out of the chip. It's a CPU with a needle. So this was many needles, I think five needles on the substrate. But for this point and purpose, we care about D0 and the fact that we're in sync with their internal clock. The purple line is reset. So this is literally like five or six instructions on the D0 bus line. D0 is the LSB of the instruction fetch or the data bus. It's also the bit that flips the most. You make a 0110, change 24 to 25, you know, anything. In Motorola, like 2021, 2223, they're all the complements of each other. In 8051, it's a little harder because it's like 20 or 30, jump if not bit, jump if bit. But you move the needle to bit four instead then. I prefer to use D0, though, as much as possible. So you can see here we're just listening. My blue line is some type of a trigger point. It's probably the trigger point that tells the driver to fire. Fire meaning I've already prepared my higher low-level glitch. So I've set that side of the 126 that I'm using to cock the gun, you know, cock the chamber. And that trigger is basically the trigger. So here in the next picture, we changed it. We physically induced a 0 when it should have been a 1. And so you can see, I changed the entire instruction processing afterwards. Now, we're only sitting on D0. So we can clearly see that what came afterwards is some of our other fetches. And some of them, the 1 was on high a lot of periods and then down low and on high again. The instruction cycle period here is pretty quick. It's like 10 or 12 megahertz for a smart card. Anyway, so this is the theory. This is the whole theory. Before we do a glitch, you don't just randomly throw, you know, you don't put a needle on the bus and just start jamming it down to ground or jamming it high and stuff. You're just going to go nowhere. So the first thing to do is for us to take what I call the running code. So it means that we basically put a needle on D0. We come out of reset. So we turn on VCC. We have the reset line low. We just start the clock. And then we release reset. And we just basically, we take, say, 32 kilobits of samples on D0. Then we save it in our, in the software. And then we move the needle to D1. And then we do D1. And we can put down two or three needles if we want and do them in batches of two or four, et cetera. It's quicker for me to use one needle and walk the bus, so to speak, to do this running along than it is to manipulate two each time. How many needles do you think it takes to dump one of these smart cards? You guys think it takes a SEM to dump one of these smart cards? Anybody know what a SEM is? Scanning an electron beam microscope? Does anybody use a SEM? Or do SEM prepping? It's a pain in the butt. And I don't use a SEM. I don't even use a FIB for half the chips out there today. And you'll hear all these rumors that a FIB and a SEM at university level is needed. It's never been needed. And it's only now needed since, say, 2002-ish, when they started to get below 350 nanometers. Anything above 350 is typically only three metals. It's really easy to get to metal three or two. If it's below 350, typically it's going to be a four metal layer. It could even go up to five. And plus a mesh, maybe. The Microsoft licensing device, 8-pin SOIC in every one of your wired or wireless controllers used on an Xbox 360, it's got a little Infineon chip inside. Infineon's so paranoid that you're going to get to their logic underneath that they laid a triple mesh. So they got two active meshes with a ground plane in the middle. Infineon kept that practice and took it to the SLE-88. Does anybody use the 88 series SLE? No? 32-bit RISC from Infineon? 66, single mesh, very easy. So we're going to study a running code on this chip. None of these principles about meshing and things apply. The chip's very opened up. We're going to look at the code, see where it went, and we're going to pick an instruction that we want to change. And the instruction's going to give us something that we want it to do and not what it should have done, such as keeping a loop that, if it fetches a byte and transmits the byte to the outside world, keep it going. So if a DJNZ is 1, what happens? It loops one more time. But when that goes to 0, it's decrement jump if not 0. Your jump stops and you fall through to the next piece of code. So what if when it goes to execute that instruction, I change, in this instance here, that 1 being read out to go into the ALU to decrement it? Because that's exactly what happens in this 85-bit. You see the program counter low on the bus. You see the opcode fetch. You then see on the DJNZ of R or whatever, you'll see the value come out of the register into the ALU. You'll see it get decremented and stored back again. So if it comes out with a 1 and I hold it to 0, it goes in as a 0. It underflows, becomes FF. FF's 255. We get 255 more bytes back from the loop. So be very careful when you do, like, move X at A at the data pointer, increment data pointer, you know, that type of thing in a loop. We don't always play with the data bus, although we will today. The data bus could be encrypted. It could be in the clear. It honestly doesn't matter. You can kind of tell what's going on with behaviors of CPUs, typically, unless there's some wacky, zany, crazy, you know, no one knows the instructions of that CPU. 8051 is 0 to 255 possibility for what the instruction really was that got fetched if you are encrypting it. 6805, same boat. AVRs, things like this are a little wider of an instruction. It changes the rules, but, again, these principles apply in theory. Address bus, though, can change, you know, location 0. I can make you go to location 1 instead. You don't know. But whatever came out is going to be, you know, is going to be used by whatever is being done at that behavior at that state of time. Address bus faults, typically, I'm only going to play with them on cryptographic memory type devices. Atmo crypto memory, Dallas one-wire type parts, things like this. Things where I don't really have control. I can read out public areas of memory, but I can't read out private areas where you hide your key material or secrets, seeds, things like this. So it knows if it gets to 80 that it needs to, it throws a mux, and you can't read out. So it sends you zeros or FFs. It depends who does it, you know. Everybody's got their own way to do things. So what if we tell it to read 0, but I force bit 7 high on the address bus? What's that become? I just org something into the bus. It becomes 80. So let's say 80 is protected, but I gave you address 0 to read from. So I told the chip's logic with the firewall area of the chip is saying, oh, it's 0, it's okay, let it go. But I'm oring in bit 7 later on behind the address bus driver, well, behind the logic where it can back feed. And it works beautifully. So 0 becomes 80, 1 becomes 81, and so forth. Does anybody have any questions? If you do, stand up, please, and just ask. I want this to be very interactive, and I want you guys to come up on stage and put a needle down, too. Anybody want to play with the needle? Okay, cool, cool. Excellent. Anybody have questions right now? Am I going too fast? Because I'm trying to cram this in. You, sir. . . Absolutely. Two needles. Five needles is easy, too. You start to go above five needles, it starts to get really hard. The more needles people that I talk to that don't really appear, you know, that maybe are telling little lies and stuff, they typically tend to exaggerate the needle count on how many it would take to extract the code from a processor or something. But if I can make behavior repeat, if I can make a fault repeat, I can maybe do it in two needles. But with this technique, I can do it in one needle. Let's say you're doing software. And, you know, you may say, oh, well, we do software randomizations, or we do hardware randomization, you know. So you're randomizing things in hardware, like the core is randomizing things with dummy buses. You're randomizing cycles and stuff. That's fine. Then I'll put down another needle, and I'll eavesdrop the internal latches of where the instruction's coming in. And now the only time that I would need to clock in data is when those latches open and close. But I would miss some of the bytes, too. I would miss operands, because the latches will not open and close on there. So generally, honestly, one to two needles, I'm done. Two needles, I'll do it quick. One needle, I'll build a script. Let me rephrase this. With two needles, I can not care about what's in the code, and I can simply freeze an instruction in the code and basically walk the bus and read out memory in most cases. Or I can let something run, freeze it, and then let something else run, this type of thing. Maybe skip over signature check. You could do anything by freezing instructional latches. But it's also very beneficial for a 64K memory map to do a readout, like on the older 6805s from Thompson, Motorola, this stuff. The newer stuff has MMUs, a memory management unit. So you have more than 64K of physical memory. So you've got to kind of let the processor work for you, and then when you get that page mapped into memory, then do your attack. Things like this. But two needles, one needle, pretty much, you're good. Does that answer your question, sir? Yes, sir? Somebody had a question over here. Yes. Where do you find, how do you guys identify the architecture, and where on the chip you're actually running the probe? How do you know what the platform is like? We'll go there in about five minutes. So you mean structure-wise, how do I know what I'm looking at? Yeah, we'll go there in a few minutes. And I think that's kind of something you kind of learn with experience if you've got the time to play. But you can pretty much tell who laid it out as you open up devices. Because maybe they won't mark Infineon on a smart card, although they do typically. Or ST, they do. The cell library is going to look just like it does on the off-the-shelf stuff of that feature size, of that geometry. And for example, today, Intel's down at 45 nanometers. That's pretty small. But I don't need to probe the actual logic. I need to get to the wires. And that's where we're going to go there in one minute. Anybody else have any questions before we continue? Yes? How often is it that there is some sort of protection on specific ranges of addresses? Let's say you're dealing with a well-documented microphone. You have a controller that has a debug port that you know works, but it's only meant to read out RAM variables, but you know that if you ask for an address that won't give it to you, you haven't been able to successfully get a consistent number. What's the chip? It's a Super-H chip by Renaissance. Hitachi or Renaissance. I'd have to see it and read the spec. The spec's going to tell you a lot. They don't really tell you. You're not supposed to use the alarm output. I'll give you a good example. This badge has a 9SO8 on the back of it. Anybody use the 9SO8? Anybody use the Freescale Motorola? I call them Motorola still. The Motorola Freescale 908s, like the JB12, things like this, the 908 was more secure than the 9SO8. The 9SO8 got shrunk. It's a TSMC process. It's a 250 nanometer, four metal layer. The irony here is they tried to make you believe that it's super, super secure now. They tell you if the last address in memory has to be a complemented 1-0 combination on two bits, on bits 0 and 1. They tell you when you do a bulky... The only way to clear this is through a bulk erase. Blah, blah, blah. That's great, but what if I tell it to bulk erase? One second. Then they warn you, once you bulk erase it, you need to make sure that you set those bits back to 1-0 because they become FF, all ones. You need to set those bits back to 1-0 before the next reset. What's that tell you? That tells you that in logic, they just execute a bulk erase, and then in these actual bits that would normally load that address and store that, am I locked or not, they clear those for you. What if I cut the VPP line? Does anybody know what happens if I cut the VPP line and then tell it to bulk erase? It doesn't do anything except clear those two bits. Then I read your chip out. Just food for thought, there's a lot of ways to get into these backdoor monitors and such that run. A lot of these chips are being fabbed by TSMC, like Freescale. I'm trying to think here, who else? I see it a lot. You see it a lot, though. There's a databiz.wiz or something out of like Irvine. They're making a smart card. It's got like 10K of Static RAM on it, 32-bit ALU, 16-bit opcode pitch. It's a TSMC, same exact memory model. Once I learn the memory model on the off-the-shelf Freescale parts, I can just buy their smart cards at $10 apiece, and I can whack them. I know exactly where the data bus outputs are, clocks, address structure. Be careful. Data bus faults are all we're going to focus on today. It's the most probable choice. It's very easy to spot the data bus. This is what your question was about before. It's got to come out of the memory, and it may come out of the memory encrypted, but that doesn't mean that you can't understand, at least you can understand when it loops. Because if it's encrypted, if a 20, let's say it's a 20FE, it's the wrong chip, but that's a 6805 branch to yourself. Let's say it's an 80FE, a short jump to yourself in 8051. Either of those two. Let's say they're encrypted, and they're coming out as 1055. Who knows? You're going to see on the bus, you're going to see 1055, 1055. You're going to see this come out constantly. You don't know really what it is, but you can tell it's a branch to itself, and it's sitting there forever in an endless loop. You just figured out two instructions from that address point, what they decoded to. But you may not even need to know that. You can see encrypted code running in loops. Let's say I know that 66 is non-ISO reset. Does anybody know what non-ISO reset is in an Infineon 6644? It's when you hold the IO line low, and you release it out of reset, and then for about 400 clock cycles, and then you release it back to a pulled up state, to a one. It then identifies you its chip lot, and things like this. This is what we're going to exploit today. If it's encrypted code, I can see the loop where I can see encrypted code that says basically do a fetch from wherever the data pointer points, transmit the byte, and then you can see the decrement, whichever register it is, go back up and do it again if it's not done. You can see it, you just don't understand it, but you can make heads and tails out of it quickly if you're focused enough. So be careful if you run encrypted data buses, and these techniques are still going to apply. Anyway, cryptographic data, we can make key spills as I explained before. Execution steps, same thing. Determine when to induce it. We may want to repeat the fault. We can if we want to, just you need to precisely time things. I want to get to more of log traces that I've done, and take some with you guys at this time, and show you some code snippets from this Cypress chip, which is like defunct over 10 years old, and show you what I see on the bus, and show you where we're going to do our attack, and then we'll demo. You can basically watch exactly what I'll do, but in my lab it's much quicker because this is the wrong equipment, but this is something you guys could build yourself to. This was built purely for like a show and tell. Otherwise, the probe station is over 300 pounds. Okay. So I mean, technology, it's improving, and it's getting good. It gets great, and the whole theory here is how much money is it going to take, how long is it going to take the person to do it, to be successful, and then will they get the reward back? And that's really what you need to focus on, and I think a lot of these companies are on the right track to do it, but there's still a lot of room for improvement, and there always will be. Every smart card to date that's ever been made by these manufacturers, except possibly the 88 series of Infineon, has been broken by pirates, if it's been used in an area where they can sell counterfeit things. And it's not just like conditional access for television. It could be satellite radio, for example, XM satellite radio. They're using a Thompson 19. I don't know why they're using it. It's not secure. Scientific Atlanta, they're hiding a Thompson 16 and 19 in their set-top box. Why? It's obscurity, and obscurity is not security. It's a layer. If it's made by a human, it could be taken apart by a human. So I'm going to get out of this, and I'm going to try to kind of work with you here a little more dynamically and interactively. So this is, does anybody like ROM bits and things like that? You've heard people talking about doping ROMs to read them back out. That's probably the most useful technique of today. And the reason for that is because most likely if you're not encrypting the address, you're scrambling it, they're scrambling it, and it needs to be decoded. So that means not only do you have to study the, put the bits all back together the way they went, and you may make a mistake optically, you need to understand the address decoding logic as well. It's a lot of work and effort, and this, the method we're about to get into, is a lot easier. But if you did want to study the ROM, you could play around like this. This is the actual instruction dispatcher table of this 44 that we're going to play with. This is a 500 magnification view of the ROM stripped down to its poly diffusion area. And so now you can kind of see I didn't finish this. And you guys are welcome to all these pictures and such. I just didn't want to post them on a public link. But if anybody would like them, I'll have business cards at the end, or my email's on the presentation. Email me and just ask for it, and I'll give you a link off my server. And you can download the whole archive. It's going to be about 800 megabytes. Yes? This is a photograph through an optical microscope? This is a photograph through an optical microscope, Zeiss Axiortron II with confocal scanning. It's a 500, it's a 50x objective with a 10x mag, so it's basically a 500x magnification of the area. Again, this is a 1,000 nanometer process. It's pretty big. I mean, anything under 130, I need UV. I need to use ultraviolet camera, and I have to make mosaics to study the logic. But again, the wires, I can see them. I just can't see the actual gate structures. But you can make out, based off of the way things come into metal one, what the circuit might be doing. And then if you can put a needle on it, you can just deduce the behavior immediately. So you can see here I drew little lines. It's a 36 across. This is common 44, Infineon 44 series instruction dispatch table. It's a 2x. It's 256x9, you know, 256 elements with nine bits across, if you want to look at it as a table. In bit form, though, it's 36 across and 64 down. So you can see that right from here to here, there's 32 plus four more, and that gives you 36. And then each one of these rows, there's 64 rows. So this has been chemically wet etched with buffered hydrofluoric acid before this image could be seen like this. I then took a dark field, reflected light image of the area. It's four or five images. It's four or six images, excuse me, tiles stitched together as one. And basically you can see everywhere. I mean, I didn't finish, but if you guys wanted to play with this in Photoshop like I started, anywhere you see right here, for example, I would put a dot there, put a dot there. Wherever the blue and the red lines cross, if you see the glasses connected, the poly or the right here, put a dot there. And then it's either, then you can, every, so this would be a, this would be a bit, this would be a bit, this would be a bit, and so forth. Every first one for, let's say, address zero. It may not be decoded that way though, but that's just a hypothetical example. And then you may have it backwards. The dot may be a one or it may be a zero. It all depends on the remainder of the logic, how they've laid it. But we're not going to go any deeper, but you can have the pictures. All right. So we're going to go into this chip. It's got a mathematical coprocessor in it. Again, it's doing RSA internally. Does anybody know what RSA is? The cryptographic algorithm? Okay. I don't think it's any larger than a 512-bit RSA type mathematical setup. However, you can see it, you can tell this is a crypto block. It's isolated by itself. It's actually been like an extension to this chip. They took their normal 44C80 and they added this math block to it. And it's basically a ton of RAM and some shift registers and demodular multiply, whatever you need to do, square. But this is really where we care about. We don't care about this area. So we'll forget about this area and we'll go right into here. Does anybody know what this area is right here? This is the non-volatile EEPROM. It's only 8K and it's a pretty large element. Your static RAM is going to be your smallest size element but largest area consumed for the amount of cells that they're giving you. So you've got some static RAM here. You've got ROM here, I believe 32K, and you've got 8K of EEPROM. So you know that there's busing structures that are going to tie into here. Then we can see there's some type of a ROM here and some type of a ROM here. Here's the ground. Here's the IO line. Here's VCC, reset, and clock. ISO 7816. Most of you guys know what this is. Do I have to explain it? Half duplex, smart card. After reset, it sends out an answer to reset. It tells you about itself. So this is a 5X mosaic, a 50X mag. It's too small for us to try to look. We can't see anything. We're looking. We see there's some busing structures. We see the static RAM is right here. It's connecting. We can count the lines. I mean, this is 1,000 nanometers, so a 50X mag is good for a general blowup of what are our goals, what are our challenges, what do we see to kind of plan your attack. We see some lines coming out. We see some lines here coming up. They kind of meet in the middle area. So something's telling me that this is going to be a pretty good area to kind of sit on and sit in. We know that the 8051 has a multiplex data bus, so we know that the low address of things are going to be present on it, and static RAM is connected to it. As well as the E-square and the ROM. There's no MMU because we know it's within 64K of a physical, of a virtual memory map. So we take this. We already located where we want to be. We want to look in here. We're very curious. So we image it at a higher mag in that area only. This is about, this is two rows of 10 each. So this is not just two pictures here. Ironically, the older chips do not look as pretty as the newer ones do. The newer ones have a lot of different colors in them and stuff. So we look at this and we start to see some bits, some, these lines that we saw at the 50x mag, at the 500x mag. Now we can see, we can see a little bit better where their vias are, how they're plugged down, things like this. So we see one, two, three. Hey, look at that. This one's plugged into that same track, and it goes up towards that static RAM. So we're on the right sheet of music, or we're heading in the direction. Then we got another one here. There's another plug, another one, another one, another one. And it keeps going. So this looks like it could be a good candidate to be the data bus of this chip. It is the data bus of the chip, to cut to the chase. So it's pretty easy to find the data bus a lot of times because you know the RAM is connected to it. That's the moral of the story here. It's not the case in all smart cards and such because they try to isolate things nowadays and throw them through muxes, what area of memory are you in, things like this. But you can always go to the edge of the ROM because you know the chip powers up out of its ROM. So you know it's running right. And the data bus drivers are always pretty straightforward of what they'll look like. You can see here that there's... Actually, you can't see here because I didn't go enough. But you can see down here, if I zoom in more, you can see this is repetitive logic here. Does anybody have any idea? Anybody do logic that has an idea what these are? What do you think they are? Yeah, they're latches. They're the instruction latches. So there's two ways we could suck the code out of this chip. We could induce a bunch of faults. We could study the behavior of the running code. Which we'll do. And we could then look at what was happening on this bus and we can change the instructions as they're happening to force an overflow of the stack, possibly. It takes a long time. It takes me maybe a whole morning to do this, to get this trojan to work. But when I'm done, I just put a single needle down and press a key. And it executes like clockwork on any of these. And so that's the easy way. That's the hard way to do it. But the payoff is... The reward is tenfold when I'm done. Yes? What is the point of trying to overflow the stack? No, that's a very good question, actually. And I didn't even talk about that in the intro. The point is to do maybe... Maybe you want to know the RSA key of this chip. Maybe you know how RSA works. You know that you send in whatever and it processes it with its secret key and it returns a result. Maybe you want to make a clone of this card or... I don't know why you'd want to do it. But if you're in satellite TV pirate, you'd want to make a physical change to this to turn on all the services, for example. Or maybe it's a crypto memory that you can't write unless you know the secret. So you have to sign something to get it in. Things like this is why you'd want to get the code out or make a change to it. I don't understand. I understand what you can do with that. You've got the code out, but how does an actual stack overflow get you to do it? Oh, you do it. Well, you need to do it. So basically, you need to look and see how... Okay, I'm sorry. He's asking, like, how do you make a stack overflow work? And it's no different than... If you guys are Windows hackers or something, or these guys are writing these Windows exploits, it's the same theory. You basically write further into memory than you should be allowed to because we changed the instruction to make it continue in its loop, receiving data and storing it indirectly. So an indirect pointer basically is writing in memory. The stack has to reside in a memory somewhere. It would be nice if it was in its own private area, such as a PIC microcontroller has its stack privatized. But in most cases, it doesn't. It's right there as well. So we find some locations in memory that are of use. We already have seen a lot by looking at the running code. So we can pick addresses to jump to off the stack. So we're basically just going to reload the stack, adjust any type of loop pointers to make it stop, and hope it hits a return soon to execute the sequences that we've pushed into place, kind of. But these pushes should never have happened. They're happening because we executed this physical glitch with a needle. Or, you know... So you would have to already have inserted your own, you know, your own arbitrary code into RAM before... If it's a 6805, beautiful, beautiful, yes. So he's asking about executing RAM, code from RAM. That's even better on the 6805. You can. You can instead load your worm into the RAM and then tell the stack now jump to 100 or wherever your code went. And you know where it's getting stored because you've already analyzed the running code of the chip. The goal is to put the key somewhere out where you can see... The goal or... Yeah, the goal is either... The goal is to get the secrets out, get the key material out, or maybe do a permanent modification to the chip to where now you have free write access to it. Most of these chips do not let you write to the E-square or anything useful. So the only way you're going to do it is to kind of invasively or through voltage glitching, you might have heard of on loopers, things like this, make it skip an instruction or in our case modify an instruction to abuse something and do it. Once it's done though, you have complete control. Okay. So we're going to look at some logs. Actual logs taken today. I'll show you a couple logs actually. There's too many chips to get into. I tried... I wanted to get into the 66 on a Gem Plus. Does anybody here work for Gem Plus? Really? You're going to love me. So I have like some 6805 chips. I have 5 Gem Plus cards here and from the IBM smart card secure way. Does anybody use this to secure their laptops or files and stuff? No? Okay. How about GemSafe? Does anybody use GemSafe? Has anybody ever seen this little orange card? They're on eBay. Actually, both of these cards are on eBay for like pennies. And that's where these came from. You just buy 100, 200 of them for pennies. And then you can do all your R&D to hack them that you want to. Leapfrog. Has anybody ever heard of Leapfrog? They went out of business. This is again... This is the same processor as this without the crypto. Okay. GSM? SIM card? Anybody? Clone your GSM SIM card? That's exactly why we're here. Except today they use a lot of Atmol AVRs and such. And Infineon 66Ps. Things that are hard to get to. But they did use easier chips 8 years ago. I mean, I've had A3A8 or A3... Yeah. You know, the precomp 128 whatever dash 1 algorithm out for 6, 7 years now. Because they put it in an 8051. They put it in the 6805. They put it in chips that were never really that secure. They got, you know, CC certified. Common criteria certified. FIPS. Whatever the FIPS is. 180 or 140 certified. And so forth. So here we go. I'm looking for the better log. I have a commented log more than that one. Okay. So basically, what you're about to see is basically the dumped code that came out. Some snippets. So we can kind of line up. Just so you can understand that what we're seeing with the needles is actually... It's the same as what you'd write in assembler. It's just you kind of have to... You don't see the... Clock 1, clock 2, clock 3. You have to kind of parse it apart. And I do this manually by hand typically. Although I do have tools to automate it. So... Bear with me one second. Bear with me one second. So this is the dumped code. Yeah. This is actually... I want to show it to you. But I'm just looking... I have one. I'm trying to find it that's heavily documented on a lot of the instructions to kind of show you. Otherwise, it's kind of really the lowest level that you can get inside of here. Unless you really want to start tearing the poly apart and, you know, see the gates and everything. And that's something... I mean, I do it. I do it. Karsten Noll does it. There's a lot of people. Bunny Wang. We all do it. But this is much easier than starting to tear apart logic and decode it and put things back together. Okay. I think... Okay. This is fine. This will work perfect. Okay. So this is a log I made a while back. So the chip powers up. The manual barely even tells you what clock cycle it really starts running at. This particular chip takes a while to fire up. They clear FF2 down to F8 in RAM to a zero. And so you can see it here. You see on clock cycle zero, clock cycle one. So this is basically what period of time the processor was on when I took the sample. But I didn't just take the sample once. I had to repeat this eight times. So I put one needle down and walked across the bus eight times. Just let the code run. If you've got randomizers, I'll see it because all of a sudden the code that looks normal will go to... Will become garbage, basically. And so I'll just look in front of what happened before that went to garbage. And I'll just whack that and stop it. That'll be glitch one. You know. So, no, I'm very serious. I see a lot of chips with, like, an e-square has a seed value that then seeds software randomization. And it's great. You guys should be randomizing things and trying to take time between the ATR first byte and the second byte coming out and things like this. You've got to get the first byte out fast. So they send it out fast and then they try and randomly change the delay between the second byte and that first byte. And, I mean, I guess it's good. But there's other things that they should be worried about. But everything... You can never not do enough. That's really... Don't forget that. So we sit here. Boom. Finally. At clock 3F hex, this chip fires up. Can everybody see this? I don't know. Let me see if I can zoom in. Oh. Is that better? Okay. I have no idea what it does. It's like a function icon on my laptop. Okay. So... But it works. You know. Okay. So at clock 3F, we've got a zero on the bus. Guess what? It's the problem. The program counter. The low side of the program counter. Remember I told you the 8051 is a multiplex data bus. It means you're going to see... It makes it take more time, too, because that's a wasted clock cycle right there. So you wonder why that move of an immediate value into a register on this 8051 took, I believe, 10 clock cycles. It's because three of them were address sets of the low side. So with PCL gets set to a zero, boom, all of a sudden a 75 is sitting on the bus on the next clock cycle sample. And then, again, there's a 75 on the next clock cycle sample. And then we see a PCL of 1 come onto the bus. And then we see the operand. Then we see a 2. Then we see the operand. And here's the end. This would be the end. So this is the complete... This is exactly what's on the bus of an Infineon 44 series 8051 during a move of an immediate value of 80 into register D8, which I have no idea what it does, because I don't have the datasheet. Does anybody have any questions now? No. Okay. Are you guys bored? No. Okay. Good. Good. I'll go all night. But we've got to put some needles down too, so don't forget. Okay. So then, boom, here we go with a program counter low of 3. And it just continues and continues. So I'm flowing the code on every clock cycle I see what's going on. I mean, now we can go, let me shrink this. Let me shrink this. And let's put these two next to each other. And I run Linux, by the way, as well. I got some... There were some comments online that, oh, it's Windows. Yeah, most of my tools are Windows. It's so easy. But my server's Linux, so, you know. Quad core, eight ways Xeon. It's good. So here we got... We've got that same listing. I'm just trying to get synchronized here. So... Now it's too small. Is it too small for you guys? Or can you see it? Okay. So originally on this chip, I had... I had something like this. I sat on the bus and read it. And then I just decided it was taking too much time. So I tried the instruction latch approach. That worked. But I was missing... For some reason, this particular chip gave me some trouble with this. It doesn't always work like you'd hope it would. And so I went back to the invasive single needle glitches. And the problem with that is the time, as I said. The nice thing about this was I realized that Infineon on Power Up all of a sudden has this, like, take some bytes from the outside world and stuff them into memory indirectly. And, you know, decrement register and loop. Well, it's beautiful because the stack is at seven or eight still, wherever it powers up to. And the loop should be, like, ten bytes. And we just... We whack the R3 and we can overwrite the whole stack, load our program in, and go wherever we want. But to load the program in, we needed to first do a lot of running logs. Maybe send a five-byte ISO header into it. See what it wants. Can we overwrite the stack through the ISO header? We probably can. In most cases, they loop that, too. Or they loop some of the bytes coming out of the ATR to... If you want... If you want to read out the entire memory space or E-square, let's say. So we see here... Here's the initial Power Up code. We see there's that move into D8 that... This is the clock count right here. This is the line of code it was on. These are the oper... Whatever number of instruction and operands are present. A clear A takes three clock cycles. It's an E3. Where is it? There it is right there. So, boom. Program counter low comes out. E4 instruct... E4 instruction. It clears the accumulator. What's next? And it just continues and continues and continues. And so, basically, there's some strange behavior that nobody would know unless you're at this level. And this is something that we were examining earlier when we wrote the script that you'll see get executed. And things like R1 touches of increments, it starts it and then it finishes it during the next instruction's dispatch. It's just the weirdest behavior. But, I mean, they can do it as long as they get both things done sequentially. So, if we go back to this line of code, we see that there's this, like, thing in power up right here. It says jump. And, by the way, guys, this code is pretty much static across any 44 series. If I show you it from the 66, it's going to be static in the P or the S with some variety to it sometimes. But pretty much all the S's would be the same. All the P's would be the same. All the 44 series are the same. Every Infineon, 44, 66 is going to do this thing that we're going to abuse. So, if the IO line is high, execute the ROM code that you wrote in or the designers wrote. But if it's low, they go into this, what I call CMS hello, which is like the hello of the Infineon part, give you the lot number, things like this. It's very cool, though. They start the data pointer at 8,000 and then they read out 10 bytes or it could be 11 bytes. It depends on which series. This is for practical. For our hands. For our hands-on, it's not really a loop that's easily abused because the high side of the data pointer is not getting incremented. So, we're stuck in the page of 256 of where they set it. And if you look up above, they had set it to 80. So, because they set this to 80, we're only going to be able to glitch and get out 8,000 to 8,000 FF in the memory map. But it's E-square and there's a lot of secrets a lot of times in these people's codes up in the front. And then they put all of their code later in time. I was just going to get into that. So, with a little more effort, I can start playing around and I can start exactly make it 81, make it 82, make it 83. But it's a pain. It really is. So, I would find a better loop if I really wanted to do this. And there is a better loop because the stack pointer abuse is in here, too. So, but for today, quick demo. I did it on the machine in my room this afternoon. We're going to basically bring it into this. And notice it says move in a 10 into R2. So, that means basically R2 is going to become their counter. And it's going to think it's going to send out 16 bytes of the EPROM to us. Well, it's going to send out 256 when we're done. So, there's a little delay here. They pull a value from E-square. So, this is a special instruction from these guys. And we'll abuse it. But notice only R1 gets incremented. So, since R1 is the only thing getting incremented. It's not going to get us too far. But maybe there is something we do need like a secret backdoor key. Or maybe the only key that you need is in the clear right there at that point of memory. Or it's encrypted but you know how to decrypt it. Things like this. So, hypothetically, this will be fun. When it's done, it does some things. We don't care about this. It's going to end up freezing because the chip is not in Infineon's test mode any longer. If we did want to read it out, we wouldn't have come here. We would have followed this jump. To 45. Right here. We'd let all this stuff. We'd do it. We'd actually. We would glitch this. Or we would glitch this. It's a check that they do. Because Infineon claims that you can never get back into test mode. They're liars. But they're nice ones. Because, I mean, you really normally can't get back in. But I can get back in. You know. So, we make. We can change the address of this fetch. Or we can change the data fetch from the address. There's a bunch of ways to skin the cat. But I prefer to keep the line. To keep one needle only down. And never move it. So, it's much easier. If you don't have a laser cutter. You don't want to be moving. Trying to open up two different tracks. And so, here. You can open the track with like a sewing needle. And a 45 degree angle. Kind of stab the silicon. And you can pop the glass off the top. This will work for you. But down to about 350 nanometers. If the wires are spaced apart. If they're too close together. You'll probably short two wires together. Two tracks. And it may still run though. So, you may still be okay. Okay. So, we're going to glitch this. If we wanted to overwrite that stack we were talking about before. We'd continue. We would be changing the behavior. So, instead of going towards normal power up. It goes towards getting back into their test mode. It's behavior they're trying desperately to keep us out of. So, this is just one check of several checks that you'd have to get through. We'd have to change this one. Then we'd have to change this A call. If this A call comes out the way it's written. It'll freeze on this next instruction. So, yes. What's the 4 byte password? I don't remember. Oh, the 4 byte. I know. The 4 byte password is something they set in memory. It needs to be like. It's a 4 byte Infineon password that says. Yeah, you're in test mode still. Type thing. And when you're done. It's an OTP value. I think it's 99. It's like. It's. Actually, the A9 is one of the bytes. If I remember correctly. And the 33 shouldn't be 33 yet. So, those two are two of them. But when they're done. The 8000 byte becomes the 33. They took away some of the other bits. And the A9. I believe they destroy that to something else. And then they write the lock code in on all the good stuff. So, it's a 4 byte password. But we destroy that A call. And that's. See. So, what am I saying here? I'm saying 51 A4. So. Oh, do you see what I did? So, this used to be 51 B5. So. So. Oh, I'm sorry. No, no, no. This is here. I destroyed this A call with it. So, instead of being A5. I make it A4. By grounding out the bit 0 of that fetch. So, we've done some glitches to get past like this 4 byte password and things like this. And now we'll do a glitch here to make sure that this jump if not carry is. Goes in a good way and not a bad way. Or it's going to freeze us right there. But again. If it freezes us right there. We could do something to change that too. It's just probably not going to sit on D0 anymore. They've got some weird thing here. I thought it was maybe an erase. Bulk erase. Because you're trying to get back into their test mode of the. So, sometimes they try to bulk erase memories. But it's not. I have no idea what it does. They do some silly things that we don't care about. And then they call this routine at C5. And this I've never seen in any of the other 44s that I worked on that were used by my old employer. But on the commercial ones in GSM. That's the leapfrog. The leapfrog card. The silent card. Every commercial over the shelf 48 otherwise has this in it. And I don't know why. So, when I'm done building the script to overwrite the stack. It will work on pretty much all of these popular 44 public chips. So, C5 says receive a byte. Store it in wherever R1 is pointing. Increment the pointer. Decrement R3. If it's not zero. Continue fetching bytes. One squash of that R3. And we can overwrite the stack. And we're done. It's, I mean, you've got to prepare everything. And make sure it's the right stacking of the, you know, whatever you're going to do. And it will work fine. So, today. How many people want to put a needle actually down? Do you want to see me walk the bus and build? I can. Should I walk the bus? I mean, I want your input here. Should I walk the bus and build this script like you see here? Similar to that in front of you? So, you can see exactly how it's being built. And you can see how. If I had things wrong. And the data bus wasn't right. They're always laying their data buses in like a sequential ordering of zero to seven. Seven to zero. Even today. The latest Infineon 66 claims all this address bus scrambling. That's great. But I'm not going to sit out there on the ROM. I'm going to go right to the heart. The core. And it's right in sequential ordering again. Some people never learn. You know, Thompson. Same thing. Anybody use ST Thompson products? Yes or no? I didn't see any hands. ST. ST. Yeah. So, like the whole Smart Card 19 series line is on microcode. Infineon 66 runs on microcode. These are no-no's for today. Because these point me right to the instruction latches of these architectures. 220 nanometer. 180 nanometer. They can't be any smaller than 150 or they'd be copper. And they're not copper processes. Or they'd turn gangrene a day later. So, these chips are getting smaller. But they're still running on old school techniques. They've got the room to lay pure logic implementation like an AVR has. AVR has no microcode or PLA in it whatsoever. Freescale likes to do it. Thompson. ST. A lot of them. They're a hacker's dream, you know, to go backwards through the maze kind of. So, I need about two minutes to set up. I think it'd be great if you guys want, like, come up and hang out. I think if you, you know, maybe that's easier. I'll try to talk into the mic. And we'll build the log. In fact, if you guys want, one of you guys can hit the key for me. To, like, take the samples. And then when we're done, you guys can try to put the needle down. Which is very hard. So, basically, this is a used Carl Seuss PH150 micropositioner. These things are about $6,000 new. You can get them for under $1,000 used on the surplus market. When you get them used, they don't come with the little arms. The nice little arms that, I'll show you a picture on the screen. . So, basically, it's hard to see. So, I'll show you here. That's a probe needle right there. You can see the little needle. It's going into an out-and-out AVR. This is used in some type of power device or something. Back when I was with my old employer. You know, get the code out of anything, one needle can get it out. So, with one needle, I can turn off a lock bit on a locked microcontroller. And it's funny because I build these libraries of chips that I've whacked. Thompson 19, five needles, the code's out. I've got it down to four needles now. So, you can see I've got like one, two, three, four, five micropositioners laid around this die. This little wire that you see going over here, it's going to a different board. I build these little boards out of CD carriers and then Radio Shack parts. And then you can see there's a smart card slot that I put a hole in. I don't know if everybody can see it, but I tried to get a camera hooked up here, but I couldn't do it. So, there's a little hole there. The smart card goes in. And if the smart card's been opened, one of these is opened, you'll see it through the hole. And the needle can touch it. We're going to work with one that I've rebonded down. So, I've actually thrown it completely into acid. Actually, here's the smart card. So, it's a whole other, it'd be a whole day to show you guys like opening these chips and stuff. The best thing would be to see the wired video. So, this, I mean, I'll just pass it around. It'll probably never come back. That's fine. I actually got a bunch of swag to give away later, so. But this is what an open smart card looks like. It's still alive. All the bond wires are attached to it. I'll use. I'll typically use like another smart card and kind of take an exacto knife and just chop out. Chop out the module and kind of clean up the area where it lived. And I'll tape it back into place with some scotch tape to make sure I don't obviously isolate, you know, any of the contacts that I need, like ground VCC and so forth. So, these are actually really handy to be a carrier as well. And there's only a few different module types of where they sit in their positioning to make the contact when it slips. But a smart card, again, it's just a microcontroller that's been upgraded as, you know, meshing is added to it, things like this today. But it basically, the fundamental of it was some type of off-the-shelf chip before. The needles, you can't really see them, but I'll pass this one around, too. Just a, if you touch the end, you'll damage the tip. And the tip is shaved to a very, it's under a mic, don't quote me on this. I think it's under .10 microns. They shave it with a mechanical, chemical-mechanical product. It's a very, very simple process. And so there's a little cat whisker at the end of this. Some people choose to buy, to buy PicoPro, like, model 12C. Has anybody ever heard of that? It's, basically, it's an active buffered, like a needle holder tip to hold the needle on. And you have to buy their $30 needles, and it's very expensive. These needles are $5 each. And then I believe in making my own buffers with the lowest capacitance possible. And I succeed up to about 40 megahertz, which no smart card has ever gotten to today. And if it did, I can slow it down by finding the ring oscillator and just jamming a new signal into it. You know? So, and if I, if I, Thompson 19, good example. They left a big, fat test pad right on the ring oscillator. So if I insert, if I inject, my little FPGA board here can, can do 24 megahertz down to, divide it down to 3, 1.5 if you wanted to. Typically, I run 3 megahertz. So I just, on the 19 series, I used to inject. 3 megahertz signal into the oscillator. It would slow it down to about 150 kilohertz. And the, the sensors and everything are all, like, based off of this. So all this low frequency, high frequency detection, it just went out the window. So I'm literally single stepping this processor with the mesh. It's got a mesh over it and such. And, and it was the, it was not in the wired video. But I'd be glad to show you pictures of the break, of the breaches in the mesh if you want to see them. So this is a needle. I'll pass it around. Just don't touch the chip. But maybe look at it in that light and change the angle. And you'll see there's a little whisker at the end of it. Just like in, in the picture. What do you guys work with typically? Like, what kind of chips? DVR. You use that in Oliver? Which one? Just the stuff, like, 80, the, the tiny stuff. Okay. Just the off the shelf. I don't, this is not, most of my pictures are on another, another drive. I have, like, 60 gig in pictures that, you know, some of these pictures are 300, 400 megabytes and things like this. And so I have, like, all these pictures and not enough space to store them on my laptop drive. So I had to, like, delete some of them. And I wanted to, I had, like, MSP430 for Travis Goodspeed's talk and things like this. But, so here's Mega 647. Anybody use it? No? No. No. They're either hard to get, or not. So this is the, so this is just an overall of the die. It's got a little dirt on it, but, honestly, it, you know, it's for, you're not supposed to really be seeing this, it's for me. But, but it gives me an overall of where things live. So you can, you know, this is a three metal layer, 350 nanometer process. I actually don't know where the RAM is. It's buried in here somewhere. You'd have to strip off top metal to see more underneath because the wires are hiding things. But here's the flash. And then, here's the E square. and then the fuses should be over here on this particular one I think actually here so what then what I did after I found them is I make a little nice little photo like this and basically if there's a fuses they were on the edge it's just there's so many varieties of where they live on AVRs it's tough and so you put down two needles on these two wires they're highlighted in red you hold them low and you read the chip back out like it was never locked and then you wonder why your code got stolen or you know or whatever happened to it you know people hijack everybody's IP all the time and unfortunately it's it's hard to protect against it what's the FPGA board for so this FPGA board used to be a custom microcontroller design board that I did when I was in NDS is actually the first PGA board I ever made and it has a lot of flaws on it believe it or not it's like eight eight eight layers nine layers something like this but it was our first PGA based design and so we didn't bring enough test pads out and there's a bunch of patches and then then you know USB serial came out and so I tied it into a FTDI 232 hi Steve and there was a lot of cuts drilling to this to fix shorts so but um we got our act together and we did another a new version of this board and the new version of the board I just can't get the instruction set agreed on and I call it the wasp and I don't remember what it stood for because I did it in 2005 but it has a 16 meg of 16 megabyte megabytes by eight of static ram and then it has eight actually here I think I have an image of the no maybe I don't have the set anyway it had I actually have the I have it in my room but so it has eight individual like eight needles could come into it or drive things like this it can voltage adjust from 1.65 volts up to 5.5 digitally through a digital potentiometer or a digital kind of dial or a digital controller and it's designed with individual regulators there's actually nine of them but eight of them are meant for needles so there's like little five there's an eight five pin header rose because I basically need I need I need I need five can I need five wires on my little homemade drivers that I make I need I need VCC ground I need the sense I always want to sense what I'm seeing on the needle and I need do the draw overdrive or Hi-Z which of course too Do I want to listen, or do I want to actually make a change? And then if I do make a change, what's the value going to be? That's yellow. So yellow is what's the value. Green is hit it or don't hit it type thing. And orange is always returning the value. So this is basically the original design that I tried a long time ago. And this works up to about 12 megahertz. But after that, I have a better one than this. That's a Philips 126 with only two drivers, and it's good down to 1.65 volts. And it's what I'm normally using, but I didn't want to take this apart. And I figured leave good good. Anybody else have questions? I didn't finish the FPGA, though, actually. Can you try something like this in FPGA? Well, the FPGA, okay, I'll get the code out, let's say. It's just going to be a bit stream, and I can clone you like this. But you're trying like a Vertex 4, Vertex 5 type thing? Something smaller, like the lighter weight ones. Like how about Altair Max 7? Yeah, the 1000 series. Yeah, so let's say you were running a Cool Runner, or you're running a Xilinx. I've hit a lot of this stuff. When I say hit, I mean I've analyzed it, and I've studied it, and just kind of got an idea. But the attacker, if he does get your code out, it's pretty expensive probably. And when he's done, he won't know what you did. He'll just know how to copy it, you know, and write the same bitstream in. So you take like an Altair 7064. Maybe my next class should just be like... Showing you guys pictures the whole time, you know? But so Altair 1996 die. These guys really had their act together. Does anybody work for Altair? No? Well, if anybody knows anybody in Altair, this is really nice, because this is 1996. They had some good techniques, and it got better and better. And of course, today, they're 65 nanometer FPGAs. So it took me like three weeks to find what you're seeing in five minutes. They have test pads laying around the die. So these are test pads, like this guy. And this guy, this guy, this guy. The designers thought they might need to come back later and look at it. And so they lay these big, fat, huge pads that I can come down and touch with a needle very easily. Touching this pad compared to touching this wire, for the average Joe, it's pretty hard. Unfortunately, with some practice, you can get it really quick. But these pads tell an attacker not only like, you know, it's... Well, I should rephrase that. These pads make things easy for the attacker. But they also make him... And say, hey, why did you leave that pad there? There's a reason you left the pad there if you were the designer. So I'm going to find out why. So the first thing he may do is open up every one of these pads, put down a needle, and say, locked, what's it look like? Unlocked, what's it look like? Or just read it back and drive it. Or don't, you know, drive a zero, drive a one. Drive the inverse of the state. Things like this. None of these pads did any good. The fuse was actually... It was buried under this, like... Well, like, here we go again. It's buried under this pseudo-mesh. So this is not... It's not really active, so to say. But it works. Because what Altera did was they routed every conductor from the left side of this picture, way, like, hundreds of micrometers to the left. They routed them completely across the die. And they're all pretty much equal length, covering every one of the logic cells that stores the configuration. So now you... To get... You know, the fuse is in there somewhere. Where is it? It's a single cell of non-volatile double EPROM. So it can be erased or set. And they claim that it will only get cleared once you do a... Bulk erase of the chip. It's not always the case. So be careful. You know, sometimes you can start the erase, kill the power, and it erases the lock bit first, and then does the bulk erase instead of the other way. So you can see, like, this was before I learned how to use Photoshop. So my lines aren't straight. Got little dots on it because it's just too hard to keep it straight. And, you know, there's a will, there's a way. So pull out the book and dig, and you figure out, you know, what shift does and things like this. So... But they made one mistake on this design. UV set. Set the fuse. So ultraviolet light, after 45 minutes to an hour, set an unlocked part to a locked state. So guess what I did? I opened about 10 of these things and put nail polish masks down all over. Here we go again with the nail polish from the video. Start laying nail polish. Nail polish blocks UV and HF. HF, though, for the record, it will only block it for about 30 to 45 seconds. Then it starts to kind of, like, you know, make it, like, moist enough to kind of saturate through and get down. But you're going to rinse in 15. Okay. So you follow it down to here. Okay. Okay. So this is from metal 2. It goes down to metal 1, and then it goes across. And you can barely see what's underneath here. This is not a planarized die, which means they didn't polish it smooth at all on the underlayer, so you can see the ripples of where wires are underneath. Like, you can kind of see tracks in these pictures going up and down versus across as well. So the fuse was buried under here, and a lot of work and effort showed me that this line right here was the magic line to make it unlock itself. You guys use an AVR? There's an 89 series Atmels. They're very secure against UV light attacks because they actually set their fuse under UV instead of clearing the fuse. We're, like, a Cypress USB controller. Does anybody use Cypress? The 63, I don't know what they are, but they're, like, the most popular USB controllers for dongles, security dongles. Aladdin eToken Pro 60 uses a combination of a smart card chip and one of those controllers. Not sure what you'd find in something. It's like this, but some of these dongles just have that with an eSquare. It's very insecure. UV light, nail polish, UV light, boom. You got the code out in five minutes. Okay, so let's go do some needles. I was going to get into this, but there's no way in heck we'll ever get into this. I talked about it at Black Hat if you guys were there, but this is Thompson 16 CF54, and this had a mesh over the top of it. It was a very old-school mesh, but, again, the principles, they apply today. Like they did yesterday. So here's the remainder of the mesh after I hit it with HF with a mask, and then here's the data bus right in the middle of the chip. And you can see, I mean, it's just beautiful. It's one metal layer with poly, and this is just like a test hit with a laser, and then there's your eight tracks. And it's either zero to seven or seven to zero. I don't remember which way it went. So here's a good question. Here's some microcode. You've got, again, you've got these ROM tables. Let me open it. I've got a different picture here to show you, actually. What do you do with these? The data bus isn't exposed to the bottom layer. It's always exposed somewhere. Where is it exposed, or is it routed correctly, or together is the question. But it's always going to be exposed in coming out of the memory, for example. Here, I'll go to a newer chip. This is kind of an older device, and if we go to something newer. Let's see what we have here. This is what you'll deal with a lot today. This is an active mesh on a 66P. So it's four conductors. You can see them. Basically, what this is is like where it comes in and out of the bottom of the chip to check security. It's basically like four circuits that come in and out. The problem with Infineon's design is the in and the out are about not even 50 micrometers away from each other. So to get through this beautiful 220 nanometer substrate, to get underneath this, I just need a focus time beam workstation. And to do four, eight cuts, basically open the in and the out of each of the four circuits, and then deposit metal across the two to shorten them together. There's no chip to date that I've seen that's ever had any type of analog meshing. Where with an analog mesh, I'd have to open it, cut it, measure what I'm about to patch around, and then lay a certain resistance in metal. And then I'd have to deposit. I prefer to deposit with tungsten, but some prefer platinum. So it's pretty easy. I use a focus time beam workstation. So it's like a five nanometer precision ion beam that fires down onto your chip. I might have some pictures of when I've been done with it on here. And it can basically mill or it can deposit. You can deposit silicon dioxide, like an insulator, or you can deposit metal. And the metal choice would be tungsten or platinum. And basically any fib can do either, but they'll tell you at camp what they can, and it's just a temperature change and tell the system platinum or tungsten is inside. But then you want to eat holes, too. But the fib won't eat through this mesh as nice as wet chemicals will, because you'll get uneven etching. You'll get where the fib will leave the metal tracks, but all the oxide's been removed. And it's a big problem, and that's the reason that there's actually probably a space between the lines. But wet chemicals is a whole different ballgame. So you can mix wet chemicals from the wired video with those techniques with the fibbing techniques. So maybe I don't know where the data bus was. I think you asked that. It's not always in order, but here we are in the core of a 66P. This thing's still produced today. I mean, it's the flagship 8-bit 8051 processor they're producing. Does anybody here work for Infineon, or did I ask that? Yes. I asked it. Okay. Does anybody work for any of these major chip companies? Xilinx. Xilinx. What's that? Xilinx. I'll get to you in one second. Okay. Okay. So Xilinx is the same way. Xilinx is actually a reverse, kind of, almost like a reverse Polish notation calculator. Altera set their lock bits with UV. You guys clear them. It's bad, bad, bad, no, no. So in your case, all I need to do is mask where the bit stream's been stored in, like, say, an XC95. Okay. And then I'm going to do a dot, dot, dot, dot, you know, CPLD. Or a cool runner. A cool runner I haven't spent much time on, but I have some images of them. Just, I need a reason. And when I was in NDS, I didn't care. I had all the time in the world to do this kind of stuff. But now I kind of have to take jobs. Companies come to me and say, hey, we want to know how strong is this chip really. Because the vendor is always going to tell you how strong it is, so to speak. And the data sheet's going to tell you, like, obscured bussing and all this, like the 66 right here. But this is not obscured. This is physically in order. This is ordered from zero to seven. Now, if you can get to this area, good luck. Because you do need a FIB. So you need a FIB to do the bridge and the mesh. And it needs to remain. You need to then use wet chemicals to open up. And then there's another ground plane over this area. So you've got to kind of FIB twice. But once you're through and you've prepped all this, you're good to go. It's only running at about 10 megahertz. And if you drop VDD down to under, like, 3.3 volts versus 5 volts, the chips all tend to slow down a little bit. Because propagation is slow. Okay. And delays grow as the voltage level drops. So let's see. We'll go to Xilinx. And I better get rolling here or you guys are going to miss the parties. No? Okay. I don't know where the parties are. My wife and I are wondering. So if you guys know, that would be great. Where? How do I get in? Okay. We'll talk later. Okay. Cool. We're going to the station. No. So, okay. So, I mean, basically, I don't know. Anybody work for HP? Thanks. I actually don't have Xilinx with me. I have it with me, but it's in my room. It's on that other drive. I ran out of space, as I was saying. So, basically, let's go back to the task at hand here and let's get rocking. Yeah, exactly. See, the guy says let's probe something. And we shall. Okay. So we're going to focus our whole area in here. I'm going to keep it up on the screen. Actually, I can't keep it up on the screen. I'm going to do my best to keep it on the screen. So here's what we're looking at. This is all we care about on this chip. We care about this area. I'm going to rotate it. This is how it's going to look for us under the microscope. So, basically, this is data bus bit zero. This is data bus bit one, two, three, four, five, six, and seven. What we'll do first, we'll do a running code. We'll pull the running code of each. So we'll sample each of these lines first. We'll say 32,000 clock samples, see what was on the bus and stuff. You're going to get basically the same log file that I had showed you earlier. Then we can look at that. Actually, it'll be a different log file because we're going to go into that non-ISO reset mode instead of normal power up. So after we do that, I'll show you the location that we're going to squash. I'll show you how Brooke Hill and I timed it earlier up in my room. And we'll do the same. We'll basically repeat those steps over again. And then you can kind of be in my world of how I would do it. But, again, this is just kind of proof of concept to you because it's not that useful because it's only 256 bytes, 100 hex. All right. So the FPGA board that was asked about before, it's basically today it's – I wrote a little like a risk processor into it. It's only 8-bit fetch. And it's because the way I like to write little scripts, it's a pain to kind of stuff 36 or 32 bits across. The new one that I came out with that I can't agree on the instruction set on is a very long instruction word, 36-bit fetch, using a synchronous statogram. But, again, the problem is I don't like the way – like here I say like, you know, I can say like, you know, on one line, buff. I'm filling a buffer and then I just ship it down to the board. And then the board begins executing at 24 megahertz each line, so to speak. And doing certain things. I can tell it what clock cycle – I can tell it, you know, divide the clock by whatever our clock is here, 24 megahertz. Divide it by 8. That's typically what I do do. Run the smart card nice and slow. They all accept 3 megahertz. If it's running on its own internal clock, that really doesn't do anything for me except to talk to it. That's the only thing. I'm going to have to pluck their clock out. I can tell the board, though, give them a clock but take their clock from a needle and you run on that clock instead. And so external clock. I can also tell it which edge to clock the data in on, positive or negative edge of that clock signal coming in. I had thought to try to run it through a PLL, but then I realized some of these chips like the Infineon 66, they run an asymmetric clock cycle. So it's like 100 nanoseconds and 200 nanoseconds, hypothetically. It's not 100 and 100 in a nice square wave. So PLL goes crazy and doesn't come out with the right multiplied frequency. So we can also tell it if it is running on our clock such as the chip we'll work on. We can tell it I want to be on, for example, I can oversample if I want to, but there's no reason to. So we're just going to take one sample per clock cycle. There's no reason to take two per clock cycle because I only have, I think, inside the Xilinx, 256,000 by 2 bits wide of memory space. It's an 812 EM extended memory. So we can tell it take a sample. And where in that window we want it to be in an eighth. So we can tell it walk into the, when the clock fires, wait two eighths and then sample. Or wait one eighth and then sample. Or wait eight eighths, but I don't know why you'd wait that long. You know, that's honestly not going to work. So it's pretty wild what you can do with the board. And I'm always adding things to it. So now what I've done is I've froze the design. It's frozen. It was done in Leonardo Spectrum in Verilog. And it's just. I write in precision synthesis in Verilog now instead. So I don't even want to mess with the design to convert it or anything. I just want to leave it frozen and just get the new one working. But it's a lot. It's a lot of time. Does anybody read my blog? The FlyLogic blog? Yeah. Yeah. Carson Knowles is going to start writing for me to help me out. I have no time to write, guys. I have a 4004 that I need to post. The Intel 4004 from MIT. MIT told me that it's the highest resolution pictures they've ever seen of the 4004. It's 1971 November I think it came out. And that's the thing. The internet masks back then or the mask set, the quality that the image looks like is ancient. So the optical resolution at 200 mag that I did on it is just phenomenal. It really lights up. And there's poly layer and there's the metal layer. I think it's an NMOS or it might be PMOS. I forget. It's fun though to trace out the circuitry. So that will get posted soon. And I'm always answering emails. Just the blog is kind of. It's the last thing I can do. That means I'm busy. So this script is like. Basically turn off the over driver. If we are going to run the over drive. I can do. I have two over drive circuits here versus eight on the new one. Let's just drop talking about the new one. Then we'll focus on this one. So we have two over drivers that we can do. We only have one needle right now though. I have a second but it doesn't want to stay down. So we're going to work with one. We have limited space on this little thing. And it's really flimsy. And it's going to be a challenge to put the needle down. Because everything is moving. And this is fixed. The base is fixed. And normally the base you can move the base. Normally I'll kind of nudge a needle into position. I'll get it right around it. And I'll kind of nudge a little bit on the base with the micro positioner. And kind of just. And it goes in. And here we can't. So it's going to be a challenge. But I've done it. And you guys are going to do it. So we'll be glitching low when we do finally glitch. This is some stuff. I have a FIFO in here that can receive data and store it. And just hold it in a FIFO. Or I can block read the bytes in. To stay in a precise sync timing if I need to. The board can. If you were randomizing your software. And I don't feel like figuring out where the call was. Or how it works. Or I can't destroy the call. What I can do is. I can take a sample. And then I can take two needles. And I can bring them both in. And I can say. I want you to sample up to 64 bits. Like a logic analyzer basically. Don't start sampling until the 64th transition. The pattern I just gave you comes in. And so now your randomizer just went down the tubes. Because you're eventually going to. I'm going to pick up a location that is out after it. And so. My board is going to wait until it sees a pattern. And its depth is up to 64 bits. So basically. They're just little commands that we write. Little nano commands. Do this. Do that. Make the IO pull up. Turn on the receiver FIFO. Do a delay. Fire. And then this is the kicker right here. It's going to be to fire the overdrive line. To basically drive that zero. So. Earlier. Before we let the chip come out of reset. We told it to. We prepared it to say. Drive a low. So this instruction. Put a low on our little yellow line. That I talked about earlier. So we're ready to drive. And when we do drive. It'll be a low signal. A low pulse. Sometimes you do. Do multiple glitches though. So. I mean. I didn't have to do that. It's just convenient. To kind of lay it in. Up in the front. So basically. We're going to fire the overdrive. We're going to leave the overdrive on. Momentarily. For about 10 clock cycles. This is going to. This is a 24 bit delay. That I wrote into the logic. So it's. It sees this. This little command. And then. It takes three values. Three operand values. It's another reason. Why 36 bits. Is. Would make it. A better. A better execution. Than fetching. Four bytes. Or three bytes. So we do. We hold the overdrive on. After. A specific count. Cycle count. Clock. Clock. Cycle count. We hold it on. And we do this small. 24. You know. It's a little bit. In timing. The delay. Well basically. So we're going to. Momentarily. Overdrive. That. Signal. Down to ground. Which is going to. Squash. The decrement. Jump if not zero. Of R3. But what it's going to squash. Is. The one. Coming out on the bus. To become a zero. And so basically. What this instruction says. In logic is. Decrement the value. If it's. Not zero. Stay in the loop. Branch relative. So. We don't want to kill. Anything else. We just want to kill. That one. Coming out. And we. But we. Remember. The one. Coming out. Forces a zero. Means. It goes. Into the LU. As a zero. As a zero. Now. It then. Under. Under. Flows. And becomes an FF. Because there's only. Eight bits. If we're. Too long. It would become. Like. Fe. It would come out. As an F. E. Because we'd still be. Driving low. So we're only. Going to drive. For ten times. The reciprocal. Of 24 megahertz. Whatever. That is. For nanoseconds. It's. Going to be. Like. 16. Maybe. 16. What's. 50. 20. You guys. Can figure it out. I. Use. A calculator. Too much. So. We. Turn it. Off. And then. We just. Kind of. Wait. Some. Time. Because. Now. We. Need. To. Time. To. Let. The. Yard. Fetch. The. Remainder. Of. These. Bites. That. Are. Going. To. Sample. So. There's. A. Bunch. Of. Parallel. Blocks. Of. Logic. In. Here. That. Are. Doing. Different. Tasks. And. That's. About. It. But. That's. Only. One. Part. Of. This. Program. But. I. To. Take. The. Mag. Off. Because. I. Can't. See. So. I. To. Undo. What. Brooke. And. I. Did. In. The. Room. Earlier. Or. It's. To. Glitch. The. Card. Right. Away. When. We. Want. Actually. Just. Sample. The. Card. At. First. So. I'm. Going. To. Comment. Comment. Out. For. Us. I'm. Going. To. Put. Down. Okay. So. Basically. We. Want. To. Get. Honestly. You. Know. I'm. Going. To. Comment. More. Than. This. Out. A. Bunch. Of. This. Basically. We. Just. Basically. Want. To. Up. The. Chip. And. Let. It. Run. And. Just. Listen. Okay. One. More. Second. This. Should. Be. Good. So. Basically. When. This. Sniff. Off. Statement. It'll. Turn. Off. Sniffing. The. Sniffer. To. Because. If. It. Sniffs. Too. Much. It's. To. Around. And. It's. Going. To. Overwrite. Samples. I. Originally. Took. In. The. Beginning. So. We'll. Delay. Some. Sample. Some. Clock. Period. Of. Time. It's. Something. Some. Value. I. Pick. I. Think. It's. Like. One. A. Hex. Cycle. Will. Delay. And. That's. Just. Enough. To. Get. The. Entire. Reset. Out. Of. The. Chip. Okay. I. Do. I. Yeah. But. The. Pumps. Starting. To. Seize. Up. On. Me. Can. Everybody. Hear. Me. Off. The. Mic. Okay. So. The. Pump. Started. To. Seize. Up. On. Me. Today. So. I'm. Going. To. Actually. Don't. Laugh. At. This. But. This. Is. Crazy. You. Know. You. Shouldn't. Be. Able. To. Do. This. But. You. Can. You. Know. And. So. Because. We. Can. You. Guys. Can. Play. To. So. That's. That's. Point. Here. So. I. Actually. Have. To. The. Needle. To. Is. That. Needle. Good. Did. You. Guys. Touch. It. No. I. I. Use. It. Still. If. It. Didn't. Get. Then. If. It's. It's. Either. Better. It's. Not. Yeah. Okay. Awesome. Awesome. Hey. I. Sometimes. I. Burn. Through. These. Things. So. Well. That's. The. If. It's. The. Pico. Pro. I. Have. Pico. Pro. 12. C's. And. I. Have. A. Of. Needles. Form. And. Stuff. And. They're. Good. But. You. Have. To. You. To. Adjust. Capacity. You're. Loading. On. Them. And. Stuff. And. It's. Unique. Per. Device. Typically. And. And. The. Needles. Are. Too. Expensive. I. Mean. They. Really. Okay. So. So. We're. On. This. Ship. This. Is. That. This. Is. The. Silent. Chip. Wherever. They. Went. So. This. Ship. Is. In. Here. And. If. We. A. Razor. Blade. Which. We. Could. But. It's. Buried. Under. There. And. We. We. Cut. Out. This. Area. You. Could. Actually. See. It. Underneath. The. You. Know. When. Look. At. It. Through. The. Microscope. Objective. So. I'm. Going. To. Kind. Set. This. Up. And. If. Anybody. Has. Questions. Please. Ask. This. Whole. Station. Is. Basically. A. Velcro. Set. Up. This. Is. Something. Bunny. Bunny. Wang. And. I. Built. For. Torcon. 9. Lester. If. Guys. Ever. Go. To. Torcon. We'll. Probably. Do. Something. Like. Again. It's. A. Lot. Of. Fun. You. Know. Everybody. Can. Get. Some. Time. To. Play. And. Have. The. Day. To. Do. It. We. Actually. Did. A. We. Did. Two. Part. Lecture. Kind. Of. In. Hands. On. On. The. Infineon. S. S. L. E. 4442. Which. Is. Kinkos. Anybody. Know. The. Kinkos. Yeah. It's. That. Processor. That's. Actually. Not. Why. We. Did. That. We. Did. It. Was. A. Old. Ship. That. I. Didn't. Care. About. And. I. It. Be. A. Experience. And. It. Was. Fun. Is. Actually. A. Of. Fun. So. This. Year. Will. Something. Better. Maybe. More. Logic. You. Know. And. Stuff. So. Bunny. Went. Over. Principles. For. Like. First. Principles. And. Then. We. Into. Second. Principles. Which. More. The. Way. I. Work. I. Really. Study. Logic. Unless. I. Have. To. But. If. I. Work. Yeah. Sure. Want. To. See. It. I. Have. It. On. Here. I've. Torn. Everything. Apart. And. It's. You. Know. I. Mean. Just. To. See. What. Is. It. How. It. You. Know. Is. It. Really. That. Secure. And. The. Chance. To. Play. With. The. Any. Of. The. Capium. Network. Strips. Never. Seen. Them. Now. But. It's. More. More. Larger. Scale. Than. What. Would. Mess. With. The. SLA. 44. 44. 28. Oh. No. What. Is. It. What. Is. It. Exactly. It's. 44. 42. Base. Or. Something. Because. The. 44. No. It's. It's. Different. It's. Because. This. A. 44. 28. Telephone. Cards. Oh. I've. Seen. It. I've. Seen. It. I've. Seen. It. Yeah. And. I've. Also. Seen. The. S. T. So. It's. Basically. The. Family. Members. This. One. I. You. Said. The. 28. Which. Is. What. This. Is. A. 28. And. The. 28. I. Couldn't. Get. The. Thing. To. Stitch. Stitching. These. Chips. When. It's. Repetitive. Memory. Areas. And. Things. Like. This. It's. Because. There. Are. Always. Many. Many. Pictures. Wide. This. Another. Old. Ship. Though. From. Them. And. Stuff. And. But. This. Is. A. See. That's. Not. The. Part. Number. What. I'm. Highlighting. The. Mouse. It. End. 1265. Blah. Blah. Blah. That's. Really. A. 4428. That's. What. It. Is. So. You. To. Build. A. Library. 4442. Is. Maybe. Close. To. What. You're. Talking. At. It. It's. Going. To. Something. Like. This. If. It's. A. 44 series. It's. This. Era. Of. A. Technology. I. Believe. This. Was. And. Moss. But. It. May. Think. Three. Tries. But. What. If. On. The. Data. Bus. Guess. What. I. See. I. The. Password. Come. Right. Out. You. Brought. Up. A. Good. Point. Is. The. Mucks. That. Throws. The. Mucks. Up. Did. You. Supply. The. P.S.C. The. P.S.C. The. They. Call. A. P.S.C. No. Questions. 5542. Like. Here's. The. Bussing. To. Like. 0246. And. Then. There. It. Is. Again. Leave. A. Comments. About. The. Buss. You. Can. See. the plugs, this is a very old chip but these chips are great to learn on and this duck actually controls if it lets you read back the password or not I mean it's so weird the duck's pointing at the secrets so like if you take this test pad and you drive it low it's either this test pad or this test pad and you can see it, if you know the PSC and you write it in, you'll watch that line on one of those two signals the line goes low when it's finally been given valid, so if that line is low it lets you read out the PSC if the line is high, it throws a mux and the mux says set to zero instead is it encrypted though? well, no, it's not encrypted just like Strom Carlson did, you just sniff the traffic and the average Joe just sniffs the traffic and he knows the password so now Kinko's, the company that makes Kinko's smart cards randomizes the password and has like a few bytes that can tell it how to generate what the password is so they run it through some type of hash or something and the result is what the password would be so now you've got to steal the machine but this is their latest stuff and if you read about this they're telling you stuff like highly secure 1.2 micron CMOS process and I'm thinking 1.2 micron, that's 1200 nanometer process now you went up instead of down but I mean honestly I talk about these chips and I make jokes about them I love to work on Infineon Thompson I love to work on Dallas Maxim Microchip Atmel AVRs I love all these chips and I mean it's the reason I have all the libraries the ones I can't stand are like Renaissance all these weird architectural ones that are large and I don't know I just get more thrill from these guys Scilabs it's a TSMC production I forgot to that's the other brand I was thinking to mention earlier which Scilabs? no no no which Scilabs chip? oh so Scilabs I thought I had see this is my bad image directory it's not up to date because I ran out of space but Scilabs I have I have a whole ton of Scilabs parts done it's the same thing it's basically do a bulk erase tell it you bulk erased it but don't but don't don't let the bulk erase happen and that the register lock bits get cleared because they assume it happened when it really didn't and you read memory out or you can do an address bus attack we talked about that earlier that's another reason that I didn't think of to do an address bus attack you know they fetch from the very last address in memory they read that byte out and then bits of that byte represent I'm locked or I'm unlocked etc it's a bad way to implement security because we A. I know how to make that flash return FFs so if you're doing a password where oh it's a 32 byte password you know I don't even know how many bits it is that would be but you know they give you these large bit numbers and they tell you this and that 8 byte password on free scale JB8, JB16, JB12 that's great so I short this one track down to ground and I get zeros for the password short another track down to ground I get FFs for the password and you can do your own tests on this because you can take a part that you bought from DigiKey and you can open it up and you can load it and just read from the memory and play around and just induce a fault into the memory and see what's the result I grounded this line out momentarily or I forced it high as long as it's not like a direct VCC or ground connection you're fine anything else and you'll probably blow your driver or you know if it's a VCC or ground you'll probably blow your driver out and you can tell because you won't see any waveforms anymore or you may see like noise but it won't work it won't give you any type of toggling like it should everything you're saying really begs the question which is in your opinion what is the best security for this? to talk to somebody like myself that takes them all apart I mean no that's I mean that's honestly my business model is to work with you know companies to help them make sure their products are strong well I mean security is layered it's not going to come overnight and so Infineon learns and that's that's always going to happen obviously but a lot of these companies making the chips are very arrogant and they believe that that they know what's best and that's that's not true because if it was then you wouldn't see revisions of the die come out and marked or unmarked and I wouldn't get into the next one or you know things like this happen and so I mean they don't they design the chip but they don't really they don't have they know what they did and they kind of the blinders come on and they're not in a black box to reverse engineer it and it's ironic that you say that because when I do do an analysis for some of these big companies I give them I don't tell them what to do I give them suggestive solutions of what to do what I would recommend maybe trying to do but don't tell me what you did and then my hope is that you'll then implement your own way of doing things and send it back to me and say analyze it now and it's difficult for me because they tend to say we're going to take this and do it on every chip now this will become the baseline and you know thanks FlyLogic you know you got 12,000 or 15,000 or some low amount of money and we're going to make our whole platform secure now so that part of my business model is kind of broken but they're so stingy they don't care otherwise so it's like I'm trying to find that win-win here how best to help everybody you know and so but anyway then they'll come and say sabotage or something you know so I wouldn't want to do that and you know I don't know but I mean that's partially the blog too the blog is like a teaser but the blog kind of shows them that I'm not Joe Blow off the street I really do tear your chips apart I know what they're doing and I know how to unlock these chips and stuff like this and I think I do believe it's helped and I mean today I'm working with a lot of the major companies of microcontrollers I would love to work with Infineon or ST these guys I don't know I know Infineon knows what I'm doing though because they're got scared and I heard through the grapevine that they're very well known and they're very worried but I'm not a bad guy so okay let's keep going here so I've got the chip mounted down here it's mounted in the socket everybody can see it and if you can't see it you'll see it shortly because you can come up and look through the eyepieces and stuff I'm very dehydrated just FYI thank you so I don't know it's going to get hot I don't know it's cool now you may feel like you're in an air condition you may feel like give it five minutes so basically you can come up and look through it and so forth that's a dead package chip and what do you use to get to like what tools or machines do you use to do that there is there is a machine to do that thank you I removed it I told you guys we have all night all right let's see so basically I use a K&S wire bonder it's a 4524 and this is basically what the machine does what the machine looks like and so you take this machine you have this little mouse over here and I run one mil most of the guys that do failure analysis at this type of a level because really that's what I'm doing I'm doing security risk analysis so it falls into kind of the subcategory of failure analysis so they'll use like a one mil wire anything smaller than one mil like the chip really used like 0.7 is really hard for the average just Joe Blow to work with it breaks a lot it's very brittle and the chip the wire's not very strong because we need it floating in the air we don't really have the epoxy shell to hold it in place and so one mil is the better wire for like the how's that wire you know a person like us to use yeah so basically the machine has this little needle it's got the little mouse right here and the average person's gonna leave it in like manual Z mode and not semi-auto semi-auto is another mode it can be in where you you know the height and how much force to put down and the time and you know and you're gonna bond 50 of the same package so you know if I was gonna do 50 of these I'd put it in semi-auto and it kind of helps to automate the process but when I do a 1Z, 2Z or five of them I leave it in manual Z and basically I manually the more I push this little black button on the mouse right here this little black button the more I push it the lower the lower this little needle goes down that you can kind of not you can almost see it it's a little white thing so that's called the capillary and so the capillary is a needle that's hollow in the middle and so the capillary and the gold wire comes I think I have another photo that you can see it you can see the capillary kind of there so the wire's coming down through here it's got solenoids and such ultrasonic solenoids are keeping it the tension proper and then it goes right through the middle of this little white thing and it uses like a high voltage to like make the ball the little ball it's a little ball on the bottom of it so that's why it's called a ball bonder so there's two types of bonders there's wedge bonders and ball bonders wedge bonders are typically aluminum and they don't need heat although they can be heated and a ball bonder always will be heated although you don't really need that much heat I keep it at I think 30 degrees Celsius I may keep it at 50 degrees Celsius because I use I use super glue to keep the chips glued down because conductive epoxy I have to bake it it's a pain in the butt just like somebody said why don't you use photo resist the type that will wash away after I've hit it with UV patches for making masks against nail polish because that works as well to block hydrofluoric and things and I said because I have to cook it it has to be baked on it's a pain it's more easier to just take some nail polish in like a red color drop the drop and spread it so anyway this thing makes a little ball connects and then you use the mouse to let go of the black button and you move it over to the landing pad where you want to place it you press it once more all the way and then it comes down and it automatically cuts it and makes a new ball with the high voltage and the connection is done the gold is nice though it's very convenient because I can drop a ball I can go A to B to C to D if I needed to sometimes on like MSP430s I take does anybody use an MSP430? so you blow the JTAG fuse on a lot of these I just come over if it's like a 2000 series or a lot of these a lot of the newer dive rips from 2005 and on from TX the JTAG fuse is visible from top metal and the junction that they blew open that they created an open on is actually on top metal so point A needs to get to point B but it's been severed so point A is actually that test pin you know pin 1 for example on some of these 20 pin SOICs so I take my laser cutter and I blow a big hole on the B side and then I come down with this wire burner and I just slap a big ball right over that hole that I made and then I take it right to pin 1 and then I come down and so the JTAG fuse without even putting a needle down now has just been repaired permanently forever it's pretty it's okay so these actually make connections internally is what you're saying no no no in some cases so like let's say you have a big VCC plane for your internal core voltage and I want it for some reason believe it or not I have in the past I'm from my own they'll be at the same exact logic level with my drivers I'll take your one of your thick VCC planes do the same thing open a big hole if it's not big enough open several big holes and then you know the more metal I expose the better oh no we didn't even probe yet can we have one more hour? that's funny can we have like 20 minutes? I don't think so oh crap is there some can we take it to the skybox? where's is Joe Grant here? Joe Grant wanted me to or that's even easier can everybody help take something? Joe Grant wanted to bring this up to the skybox the hardware hacking thing or something so yeah let's take the table that'd be great if we could just take the table that'd be actually excellent the other hardware guy can you give me the screen I'll tell you no no no the screen oh you're can we stay here? I don't know if y'all I'll just say thank you and if you give me a clap then we can do that yeah yeah yeah yeah yeah yeah yeah yeah yeah yeah