Good afternoon, everybody, at DEF CON. Thank you for coming. I'd like to take this time to introduce myself really quick. My name is Christopher Donofsky. I was the principal at Flylogic. However, as of yesterday, it was announced that Flylogic has now been acquired by IOactive. Thus, we will become Flyoactive. So anyway, with all that said, you can expect to see lots of good stuff coming from us as a team. Going to have some people working with me now. Won't just be myself. Make things a lot easier, more productive, which benefits the customer, which is maybe you guys. So what I'm going to do today is basically walk through basically a look into my world, the way I see things, so to speak, compared to the way many of you might see it in regards to chips. And so in 2010, February, I reverse engineered the Infineon 66PE TPM. As anybody knows, it's a chip. It's a chip that works really well. Are anyone familiar with this? Okay. So now I started to reverse engineer STMicroelectronics version of their PE ‑‑ I'm sorry, their TPM. I speak really, really fast and I'm really wound up today. I have a lot of friends in the audience. So if I speak too quick or you have a question, raise your hand, get my attention, and we'll pause and I'll take your question. Otherwise, I'll just continue and never stop. So these chips are put into your motherboards. They're built into your computer. They're built into your motherboards or your computers, depending what kind of motherboard you have. You're supposed to trust them, put all your key material in there and everything. Windows can use it in BitLocker and so forth. But these chips are not really that secure. And I'm baffled and cannot understand how Infineon and ST and AppMail as well can take the same processor families that they use for their smart cards and then just put some Band-Aids onto it and sell it to you, you know, as a trusted platform module. Remember, this chip's going to sit in your motherboard for years. So, you know, this legacy ‑‑ you're only as strong as your legacy products were. And they're not that strong in most cases. So who here is familiar with ST smart cards? Okay. So let's go back in time a little bit. Because I want to make sure that everybody understands today the principles. This is all about the principles. You can shrink to 90 nanometers, for example, the ST23 today. And you can get your EAL 6 plus rating for common criteria. But honestly, it doesn't mean anything if you take the time, polish down the chips, do your imaging, what I'd call your due diligence, and you find out that it's really not that complicated when you break it down into simple terms. So everything that ST makes today in their smart card field that is 6805 variant, it's all based on their past. That's why I always like to say you're only as strong as your past. Because the first thing that I'm going to do is go look at your past, then look at newer and then slowly advance up to today. Not much has changed. In 1998 they came out with the first 19 series. And it was a 600 nanometer process. And it had three metal layers of aluminum. It had an 8‑bit bus internally for the core. And the ‑‑ everything basically was 8‑bits. The ROM, the RAM, the E‑Prom. It was a micro‑coded based design. So they had some tables of ones and zeros that represented how to dispatch the instructions and so forth. And it was based on an even older version of their smart card families known as the ST16. So then in about 2001, ST starts to come out with this X series platform. So the X, there was an XL series. There was an XT series. These now went smaller in feature size. They went from a 600 nanometer, three metal. They went to a 350 nanometer, four metal, still aluminum process. The ROM and all the other output buses of memories except the E‑Prom, it's an 8‑bit internal bus still. The micro‑code tables got removed. And basically it became this nest of glue logic. Who here does, anybody do layout in here? No? Okay, good, good, good. So we'll get into that. That will be the last thing we get into. So we're going to go through all my slides and then I'm going to put you into Photoshop and we'll have some fun in Photoshop. So they added some additional instructions as well. So then they came out with what they call the W series, which is what my target is, my WP18. 18 means 18 kilobytes of WEPROM. So now they shrunk from 300, so 600, 350, now they're down to a 180 process and it still has four metal layers. The ROM bus output became 16 bits, but then what happens, it goes through a little block of logic and it gets deduced to the actual true 8-bit value that this chip speaks internally. So it was a shrink and it was like I'm seeing here, a typical, it was just band-aided together on top of the old stuff. They add a little bit of new stuff and then, uh-oh, we ran out of room. So we have to, we have to get rid of the active shielding in an area to fit our changes into place. Because of what they did on this TPM chip, they actually made it weaker than any other ST-19 that I've ever seen because the mesh does not consistently cover the entire surface anymore. In this hole that I'll show you, there's, I found three or four different clock signals that I can use to eavesdrop the data bus. Because these chips run on their own internal clock. They can switch to the outside world if software allows, but they power up on the internal clock and they may never switch to the outside world. For example, XM satellite radio. They used a 19AFO8. It never ran on the outside world clock. So this makes the WP18 weaker than the Infineon TPM by far. And I've never seen the 19WP18 in the field in use. I've found them on the surplus markets. So start to take a look at this just so everybody can understand. I did a real quick cross section into the WP18 just to kind of give everybody an understanding of what we're going, what I'm trying to talk about today. Because you'll hear me talk about M1, M2, M3, M4, which really means metal 1, metal 2, metal 3, metal 4. Or you might hear me talk about the poly. And so you can see here in the picture. I milled away a staircase into the chip and then tilted it and imaged it. And you can see there's some metal ‑‑ two big fat chunks of metal 4. Okay. My mouse. Then I drew these blue lines for a show. But then you can see metal 3 was under there. And then we can see there's a via right here and there's a via right there. There's one more via here that I didn't put an arrow to. And then there's your metal 2. And then finally metal 1. I did a little bit longer cross section. And then you can see the poly where they designed their transistor down in the bottom a little bit. Anybody have questions yet? Okay. ST, like all these other manufacturers, they like to put little pictures on their chips sometimes or little code names. So they've code named this particular device Longhorn. I have no idea why. But I just thought it was interesting. There's a lot of people who interesting to show you. So before we even ‑‑ there's an active shield over the whole entire ‑‑ 99% of this entire surface area there's an active shielding that they place down. If you have fingers of ground and then you have going at 45 degrees and then you have a single serpentine wire going in between them, if you break this line or ground it out in any way, it will pull down the ground if you cut it. If it ever sees zero, the chip will bulk erase its EPROM and it will ‑‑ it's a sanity check on power up that it will never boot again. What I have to do to polish these chips down, I have to ‑‑ well, I could polish off this layer with a lapping machine, but it's very time consuming. So I tend to cheat. Use the quickest way possible to get the task accomplished. So here, this image you can see, I've removed the shield by dipping it in hydrofluoric acid for about two minutes. As soon as it came off, I rinsed it, cleaned it, and now you can still see the oxide residue of where the shield used to live. Can everybody see the ripples in the ‑‑ like the orange area? So it looks pretty ugly, though. So do you see ‑‑ you can't really see anything down deep. It just looks like a fog layer on top of it. Now, once we start to polish the chip, now it can ‑‑ it completely changes it and that's what we end up with once that oxide layer has been polished off. So this is the TPM chip with its active shield stripped off and polished until it was nice and shiny for ‑‑ and then a quick image was made. You can see here we've got 8 ‑‑ we've got a ROM right here. This is ‑‑ uh‑oh, hold on. Okay. This is the ROM. And this is the RAM. And the read only memory. This is where the CPU will always boot up first. You've got 18 kilobytes of EPROM in here. You've got ‑‑ I don't recall, I think this is 4 kilobytes of static RAM down here. You have two tables up in this upper ‑‑ the upper right quadrant, if you can see my mouse here, which are firewall access rules, where are you coming from, where do you want to go to, can you read, can you write from there and so forth, execute. You've got under the word metal, there's a 2K RAM right there. They talk about this in the product quick spec that you can find online. And then if you look to the ‑‑ below my mouse is to the left of the M in metal 3, there's a little black spot, there's a little black box. Can everybody see that black box? That black box is where metal 4 had to be used to finish their modeling of their additional logic that they added into this. The CPU in this chip is ‑‑ all contained to the left of the RAM near this metal 4 area that I continue to refer to. Everything else pretty much is something to do with cryptography, hardware crypto units, SHA-1, RSA, triple DES and so forth. When I'm polishing a chip, I don't polish one chip, I'll polish four or five of them. So here's one chip, I'll take them all to metal 3, let's say, and then whoever is the best stays at metal 3. Then I'll take the rest and I'll go to metal 2. Whoever is the best, he stays at metal 2. And I don't need the chip to be perfectly smooth. I need the chip to be perfectly smooth in the area of my interest. So it's very normal for me to not have it 100% even in planner. I'm polishing these chips with my finger and a silica solution, .05 micron, like a sandpaper, liquid sandpaper. So here's the metal 2. So you can see metal ‑‑ there's the metal 3. Go back to metal 2. There's 2. Go back to metal 2. Go back to metal 2. Go back to metal 2. Go back to metal 2. Go back to metal 1. You can see it's slowly ‑‑ things are starting to ‑‑ it's getting less and less dense as you ‑‑ as you ‑‑ as I polish down to the bottom. Then we've got metal 1. So you've got metal 3, metal 2, metal 1. Metal 4 we don't care about because that was the mesh, the shielding. The only reason I would care about metal 4 is for that unprotected area where I was talking about that they left ‑‑ that they had to ‑‑ where there's tracks being ‑‑ there's routing there. So metal 1 is where you're going to have all your gates created, metal 2, metal 1. Metal 2, 3, and in this case part of 4, it's all routing. It's all routing to get your NAND to your OR, to your OR, to your MUX, you know, to your flip flop, whatever, to make the state machine run. That small section you can see in this picture from the FIB. So I went in on, does everybody know what a focused ion beam workstation is? So it's a machine that will basically ‑‑ it's a nuclear weapon to a terrorist, kind of. So this machine is going to let me deposit metals, deposit insulator, mill away material and so forth. So I can totally change the behavior of circuits. And here I was having some fun. I was going to do some ‑‑ this is where I did the cross section that you saw earlier. And so I've sputter coat with some tungsten to make the area visible. Otherwise you would see black everywhere because it's insulated by the oxide layer on the surface. So, again, I ‑‑ this is unacceptable. For a device that's EAL5 certified. And I have no clue who certifies these chips. But common criteria doesn't mean anything to someone like myself, you know, if it's a target. So here's just ‑‑ in that logic zone on metal four, here's a random shot I took in the FIB again at 15,000 magnification. The FIB can go up to about 800,000. It can go up to 800,000. I've only ever been as high as 200,000 mag, though. So I'm not going to go into that much detail. So I'm not going to go into that. It just depends how small the device was to begin with. So here you can see another shot of the ‑‑ of the shield ‑‑ the active shield to the left is ending. And to the right, you can see the metal four routing that they placed. This is such a big boo boo. Because you know in this area, I guarantee you the data bus is in there. There's eight lines that will have the data going back and forth on it. It's going to be mangled. It will be encrypted with an XOR. But X exclusive OR on data, it's going to be mangled. It's going to be encrypted with an XOR. So you can see the data is when you know what the data should have been in the clear isn't hard to figure out. And then ‑‑ and there, of course, there will be a clock in here. So what do I need as an attacker? I need the data bus or maybe the instruction registers. That way I can induce glitches to change the behavior of an instruction being executed. And I need a clock because I have to synchronize with the chip's internal operations. So here, that same area, I started playing around milling. And I just milled it. I just milled it out. There was an open space in that cavity right there. And so I milled until I hit metal three. Excuse me. And it's nothing significant in the picture. Just a show. The ROM on this super, super trustable chip that you would put your secrets in isn't even encrypted very hard because you can see these spots. You can see the checkerboard pattern. Do you see the checkerboard pattern? This is giving away the key. You can see the checkerboard pattern. This is giving away the key that they're using the XOR, the ROM material with. So where we see these XOR patterns, it's clearly FFs right there or zeros. And it's ‑‑ but it's been encrypted ‑‑ it's been, I'd like to say mangled or scrambled with an XOR. And the XOR is based on a mix of high and low address. Just going to stay on that image for one second. The scariest thing about this whole thing is that this is the metal one layer of where they laid their mask ROM. That's only a 20X objective that I took this picture with. And you can make out little things. Just imagine that you don't even have to have high‑tech equipment to image this ROM. And I think the best example of this in real life are the people who hacked NAGRA vision in satellite TV. Because these guys study optically read this ROM out for NAGRA 2 and were able to figure it out, deduce everything and glitch into it. Every chip that ST has ever made has been broken. Just for the record. And the next thing I'm going to show you, here's the same ROM bits, metal one again, but now I've zoomed in to the max I can go optically. So the maximum my ZEISS can do optically is 1500 power. And so it just gives you ‑‑ I mean, that's a beautiful shot. You can see the bits clear as day. And I mean, it's not game over because the ROM is like this, but you can clearly see that the ROM is not encrypted at all. It's some type of very weak scrambling. So ST likes to play this game. They like to have a bunch of different areas of memory. And everybody basically, if you're not driving the bus, you're tri‑stated. They don't believe ‑‑ this is kind of like a 1980s mux in my opinion. So rather than using a true multiplexer, they basically have these tri‑statable drivers everywhere around the chip. And this explains why they're only capable of about 15 megahertz compared to an Infineon running at 33. They do it right. And ST, I think they have a lot to learn. This is ‑‑ in this picture you can see the metal one layer, which makes the actual ‑‑ it completes these gates. There's two gates here. You've got a buffer ‑‑ I'm sorry, a driver, a high output driver, and then you've got the tri‑statable area to the left. It almost acts like a 74126, where everybody does electronics. You can see the polysilicon below that. So the WP18, here we go again. Same exact tri‑state driver, just it's a shrink. This was the 350 nanometer design of the driver. This is the 180 nanometer design of the driver. Same crap, different day. I mean, it's ‑‑ I don't understand. They just shrink. That's it. Size doesn't matter, either, because this is from their latest generation, ST23. That's a 90 nanometer process that I did in the SEM. So you can see clearly here, there again is your poly, and then above it, that's actually there's two tri-stateable drivers in this image. So you have one on the left, one on the right. And those had been overlaid, and then I cropped it and I separated them and put them into the slide deck. Does anybody have any questions? Because I'm moving really fast. No? Okay. Yes? . That's a very good question. That's what I was saying. This is like a 1980s design, you know, where if you're not on, you're tri-stated, you're off. I don't know why. Every other manufacturer I've ever looked at uses a true MUX. A multiplexer. I can't hear you. Move on? Okay. So we can learn a lot by studying their past. So the WP's, it's fairly small. It's 180 nano. You're pushing the optic limits almost. 140, you're really at your optical limits for seeing, you know, the metal one and the poly area. But going back to their past, which I've shown two different chips above, you can learn a lot. So these are two 350 nanometer versions of their chips. But remember what I just said five minutes ago. There's nothing different about the 23 or the W series or the N series. They still ‑‑ the only differences are the ROM outputs, they fetch 16 bits wide or they fetch 34 bits. You know, 32 plus 2‑bit parity. But as soon as they're done with their little cipher block, you end up with an 8‑bit bus again internally with the tri‑states. Looking at the 350 nanometer chip, I did some extensive work on this a few months ago. You can see here in the middle of the CPU, which we'll get to that after the slide deck is finished. You can see that metal one. Metal two ‑‑ sorry, metal three, metal two, metal one, you can see that the three ‑‑ these have been overlaid on top of each other. And then I separated them and put them into the picture. Those are the eight driver, tri‑stateable drivers for the ROM output, the decrypted ROM fetch. So this is a FIB picture where from my reference, excuse me, my reference point, I went over on the X axis 1925 miles per second. And then I milled a little arrow into the chip ‑‑ well, I deposited an arrow with platinum down here in the bottom, but you can barely see it because of the slide show. So in summary, this chip really doesn't come as a shocker to me. There are a lot of exposed and unprotected areas in that block on metal four that I was showing you. The signals are present. I have to finish all my tracing and I'm not done imaging on my imaging of the lower layers of the WP. But so far from what I found, it's ‑‑ they're on the same road as the other chips, as their other variants have been for failure. You know, it's ‑‑ again, it's based on the same ‑‑ it's the same device as the past, except it shrunk and they added some extra things to it. So who wants to go into Photoshop? Okay. So thank you. So this is the end of my slide deck. So be sure and fill out the DEF CON card, please, if they have one. Does anybody know how to make the Photoshop screen show up on there? Okay. Any Mac guys here that knows how to make my screen become active here? Okay. Okay. Okay. Okay. Okay. It's not showing me ‑‑ mirror. No, it's not going. Okay. Okay. So now ‑‑ Can everybody see it? I can't tell from here. Okay. So this is actually a nice spot wherever we are. I have no clue where we are. Because it's all offset now. Everything's changed on my side, too. So ST likes to do a lot of funny things. A lot of weird things. A lot of things that I have no idea why because I don't work with them. One thing that they like to do is they like to drop in what I call dead gates. And I don't know why they do it. It's almost as if they think that they'll scare you off if you're going to try to polish them down or something. So they leave these gates that are actually strapped off. And they're going to try to get you out of the state of the art. And they try to do this in the shape of a boomerang. And you can see the chip is tied to the ground fingers of the mesh that's now been removed. So in theory, if you're an attacker, I suppose, and you don't know anything, you'll think, uh oh, you know, the chip can never run like this because there was a signal tied to the mesh's ground finger. And I've just cut this finger off. But it's not true. It's not true at all. It's completely bogus. So let's see. So in this picture, in the middle of the view right here where my mouse is, this, that is an example of a bogus gate. This gate has no purpose in life whatsoever. I don't even know what it is. Let's look and see what it is. So we can see like there was one ‑‑ this right here used to come to the surface to the finger of ground. That little black dot is what's left of the via that had been there before I polished. So this has been polished until the aluminum became nice and white. This way I don't have to sputter coat it if I put it in a SEM. You should sputter coat, but I'm lazy. So I didn't. But I could have. Anyhow. And I should have. So, okay. This work has all been hobby. It's not a job. So that's why I'm saying I'm lazy about it. But if this had been a job, I'd do it from steps A to Z and be done. So now we can see that that had gone to here. And then it went down. They like to play these games with their routing, too. Some of it is auto placed and routed and some of it is not. Some of it you can certainly tell has been manually put in. And so then it went to this. And then it went to this. And then it went to this. And then you guys are like, what's that? But look right here. This is one of the power rails. Now, knowing ST, this is ground. It has to be ground. Because they're not going to tie one input to ground and the other input to a one, to VDD. You know, VDD being whatever their internal core voltage is. They're not going to do that. They're going to strap the gates off, which is grounding them. Strap them the same, I should say. So I know that this connects to there. It can't go anywhere else. And so we turn back on the other side of the metal, too. And it did. Now, the picture is slightly out of alignment right here. But it's such a large chip, you can get away with it being out of alignment. I don't have to have it perfectly aligned. But if I had taken some more time, I could have aligned it. It's all rotational alignment. So this gate, we just ‑‑ here we can see here, this is A, hypothetically. And then this is B. And then this would have been Y. But it doesn't ‑‑ it doesn't ‑‑ it doesn't work. It's not ‑‑ there's no via nothing. It's just completing the gate. So ‑‑ and they're not spares. These are not like spare NANDs or NORs. Let's see what it is, though, because I don't know what it is. So given that this was our ground rail right here, given that this is our ground rail here, oops, well, it's a little big. But you get the point. Well, let me kill that, though. So if ground went across here ‑‑ wait, wrong color. Okay. So ground went across here. A and B are in series with each other. Who can tell me what this gate is? You have two NFETs to ground in series. Anybody? Thank you. It's a NAND. It's a dead NAND. So why they do it, I have no clue. You can see a lot of other gates to the right that are really functional. The pictures don't lie. That's what I always tell everybody. You can see a lot of other gates to the left. That's what I always tell everybody. If you do your due diligence, you do all your polishing, you can ‑‑ the chip is right in front of you, whatever you need. When we first came into the chip, it looked pretty scary. Let me zoom out. So you look at the chip, and also does everybody notice that I didn't image the whole chip. This is at 1,000 power optically. But I didn't image the whole chip. I only imaged my region of interest. I don't need to image the whole chip. Because you know that by design, there's no way you're going to be able to do that. There's no way that these guys would have the decrypted op code, you know, the instruction that they're about to execute in the middle of this nest of logic. And then where is it going to decode to? It's going to fan out all around in a 360? No, it's not. It's going to be somewhere towards the side, and then it'll fan out to the right or to the left or up or down. But it's not going to be in the center of this whole nest. I suppose it could be. But I've never seen one. I can show you app malls and everything. Infineon. I've never seen one. I've never seen one. And the instruction registers are always somewhere near the edge. So in this case, we've got in the middle of here with all my drawings, we have a whole bunch of little blocks and things that I highlighted. You can see here in this image. So these are those drivers that we were talking about. So how did I get here? Who has an idea? How do I find this in the middle of all this logic? How do I find this? How do I find this in the middle of all this logic? How do I find this? Anybody? Where did the chip power up first? Powered up in its ROM. If these chips have any type of ROM on them, it has to power up there because it's the only place where the CPU knows that it's got static code set. Same with anything. You know, you're always going to power up a phone. Take your baseband processor in a phone. It has a boot ROM inside. The boot ROM powers up, does some checks, determines is the flash loaded, et cetera. What mode are we in, this type of thing. Same with a smart card or any other type of device that fits this mold. And so by following the ROM, which was to our left, the ROM was to the left in this image. Here, let me ‑‑ the ROM was over here. Now I've cropped this image. So because this image got cropped, and you can see here, I didn't even image this spot right here. It's missing. This is one of the math coprocessor. So this chip has math coprocessor, it can do SHA1, it can do RSA, DES, and a bunch of things. I don't even know what some of the functions it has besides those. So I knew I didn't need that very bottom area. And I took it ‑‑ I actually went in more than I needed to in the left section. So if we look here, you can see I've been drawing here. If I turn off all the layers for a second ‑‑ It's really slow. One second. So now you can see the ROM bits ‑‑ so the ROM's output drivers were to our left. They're out of view. We don't need them. Just trust me, they were there. If I went back in my slide deck, one of those two chips that I had shown you about the past was this chip. And so they again, they're going to play games, they're going to play a lot of games, and they're going to ‑‑ they're going to weave their way through memory. And so you really do need to image. You need to image from the ROM and then figure out which way did it go. And then some of them went up. So they play this game, you know, he went up and she went over this way, but they all meet again, you know, a few hundred micrometers to the right. They all meet right there. And let's take it there right now. Anybody ‑‑ is everybody following? Okay. So we ‑‑ just following the wires without turning on metal three. Metal three, it's not so easy to see it. We can see ‑‑ boom. And then I even have some notes here still. So ST has this little thing they're doing. And it's funny because Dr. Carson and I have a bet going right now to see who's right. I say that XOR1 ‑‑ Okay. ‑‑ is decrypting the ROM fetch and XOR2 is reencrypting the decrypted ROM fetch before it goes out on the open data bus. This way if you eavesdrop the open data bus, you'll see scrambled data, basically. But this is yet to be proven. So I haven't finished probing right now. I'm in the middle of it, but, again, this has been a hobby. It's a side project. It's not work. So if we take a given bit, number four, ROM trace number four, it came ‑‑ it came ‑‑ I don't know if you can see it. I don't know if you can see it. It came in on middle three. Here, let's see. You can see right here if it paints. One second. It will not paint. Okay. So ‑‑ so can everybody see ROM trace with the little arrow? I drew a little arrow. Okay. So this came in on middle three. So now it Vs down. So now we undo that. And now we look. And then again it Vs down very shortly after. And then, boom, in it goes. And then, you know, we have this weird looking gate here. And so as I said before, the images don't lie. So metal one, as you can see here, and the poly, we can see clearly that this is an exclusive OR. So it's ‑‑ I'm not going to get into how you make an XOR and an AND and an AND, but there's many, many of you in here, it sounds like, that know ‑‑ that understand this. So ‑‑ does anybody have questions? Okay. So the output of XOR one feeds into what I call XOR two. These both of XOR one and XOR two could be turned off if they wanted to. ST could turn it off depending on what's going on in the system. I don't know why they would, but they could in theory. Okay. Maybe in the factory they don't want to scramble that main central core. Or maybe when certain operations are happening to the crypto unit or something, maybe it's turned off for there. I'll be able to answer these ‑‑ I'll actually blog about this in a few weeks once I finish these tests. I have found the instruction registers, though, which is even more important. So I can probe later. So the output of XOR two came over and it plugged into ‑‑ into this here. I have it labeled number four, where my mouse is, this box. And I can turn the boxes off, but I think they actually help. Is it easier with the boxes lit up or with them off? Okay. I'll leave them on. So when we shrink down ‑‑ actually, I'll turn them off, because you can't see now. So the decrypted value ‑‑ with the ‑‑ with the decrypted value, the decrypted value, the decrypted again feeds into this tristate that I labeled number four. And I don't know if this is truly bit four or not, but I have to label them. I've got to label them in some order that I can tell the difference for now. And then here's that game I was talking about. So look at the plate on number four right here. Number four's plate, it's getting a little fuzzy. I'm too zoomed in. But you can see there was a via where my mouse is here that went up. And then there was a via here. And then it went down. And so if we follow this blue wire right here, and I don't want to turn the layers on and off, because it gets confusing to everybody, but the blue wire is following where the routing had gone. And then, boom, look at that. It connects into another one. So this is what I was saying before. Now you've seen two different tristatable output drivers for bit four, my pseudo bit four, to be determined. I found 14. I found 14. I found 14. I found 14. I found 14. I found 14. I found 14. I found 14. I found 14. I found 14. I found 14. And again, it via'd. It via'd right to the right where my point and where my hand is. There's another via right there. So that tristate keeps going. It's really a strange idea. The ST23 is still following this procedure in a 90 nanometer shrink. And the ST19WP is doing the same things. So you can see here's eight more. more. So here's, you know, 2, 4, 6, 8. And then I change the color and this is coming from EEPROM. The EEPROM comes down and it gets latched into these next set of red boxes. And they're all happily coupled together, you know, tri-statable. Only ones ever on, of course. The NANDs can ‑‑ so when the NANDs turn off the ‑‑ or the ANs ‑‑ the ANs are NANDs. I forget which one they were. But when they ‑‑ in order to turn off the XOR, they basically output zero. And then, you know, one XOR zero is a one. So you know that XOR gate and you simply make a propagation delay. So following these lines led me over here to these beautiful blue boxes. These beautiful blue blocks ‑‑ blue boxes, there's only two spots in this whole chip, just stepping back for a second, that were ‑‑ where these lines went to inputs. Every other place these lines went to were tri‑statable. So out of 16 places I traced it to, two were inputs and one ‑‑ and 14 were output ‑‑ were only output, you know, capable. So this is ‑‑ you know, because this is a unidirectional bus. This is basically the TX side, let's say, and the RX side, I don't care about it. Because, you know, I want to care about change ‑‑ latching an instruction into the CPU core and making it walk through time forever. Will I listen with my needles? So this is the only side that could possibly be the instruction registers. We have 24 flip flops. They're daisy chained, you know, eight that can feed again into eight that can feed again into eight, which makes sense, because anybody who knows the ST 19 architecture knows that there are three levels of instructions. There's a few instructions that are three op codes long to dispatch like another set of 256 possibly. And so this would make perfect sense of why it should be the instruction register. Also, these are sets of eight flip flops that are all the same type of flip flop. They're not different types of flip flops. The other set ‑‑ the other input, they didn't all go to the same kind of flip flops and they didn't all go to flip flops, actually. So that would make more sense to me that that would be where the operand is being latched ‑‑ not latched, but being looked at and analyzed, potentially latched. It just depends how they interpret. Is everybody lost? You're here, I see. Anybody have any questions? No? I have nine minutes. Okay. Sorry? How many other chips have you looked at? Oh, I've looked at everybody. Renaissance, ST, Infineon, Atmel, I have some cool pictures from Atmel. They just happen to be on my desktop. Atmel, another company that's lost, they've Atmel likes to use a specific kind of flip-flop for their instruction registers. But here's an Atmel, this is a secure VR from an Atmel, it's an older one. I was going to use it as a training tool. So it's a 350 nanometer chip as well. And so you can see it polishes very nicely. So I can see here's a flip-flop and you can even see like this, here's a clock to a flip-flop. It's chained to this flip-flop. I have no idea what area this is. These were random tiles that I pulled to show somebody. But I also have the Atmel stuff polished, overlaid, same thing. It's always the same thing no matter who the manufacturer is. And that's what I was trying to explain before. It looks like, you know, ooh, it looks real scary, you know, when you look at it from a distance. But once you really get in close, polish it down, take all your images, you start to realize there's not much to it. Like look at there. Follow your output. Follow your ROM. Or this Atmel here, for example, it only has flash. So follow your flash data bus outputs. What you'll find is it goes through some combinatorial logic and then it latches into a flip-flop. You cannot latch something into a flip-flop to like hold it for being decrypted and then latch again. Because now you've created a two-clock penalty. So that means that the CPU would be crawling on its knees to execute. So you know, from the output stage of the ROM or the flash, wherever it boots from, it's going to trickle through some combinatorial logic, propagate down, and then the first flip-flop you hit, it's either a key holding register of something for maybe like a cipher feedback chaining or like a cipher block chaining type thing, or it's the instruction register. But it cannot be anything else. And then you have the fun part of figuring out the order. That's always ‑‑ on Atmel AVRs, there's 16 bits. It's a pain in the butt. Anybody else have questions? Yes. AUDIENCE MEMBER 2. Do you think that XR2 is in place? No. No. But that is why I believe XR2 is in place. There are more things I could have shown you on that layout that I just had open. Because they do some wild things with what I call XR3 and XR4. And they have the same key bit material coming into them. And they're individually selectable to be turned off. And I believe that that's for DPA. So that main common bus is ‑‑ every reset, it's randomized. Yes. AUDIENCE MEMBER 3. Do you have a question? The Infineon TPMs? Yes. AUDIENCE MEMBER 4. Can you repeat the question? Oh, okay. Thank you. He asked if I've successfully recovered the key material from this particular chip. Not ‑‑ I've successfully recovered the Infineon TPMs, which was much stronger than this one. I'm not finished with this work. So this is ‑‑ that's why I said it's a look into it. I'm still ‑‑ it's ‑‑ I'm probably three months if I keep it as a hobby project to actually put needles on the WP. AUDIENCE MEMBER 5. To get ‑‑ to get to the ‑‑ so to follow the ROM, to get into that, where I showed you those tristates, it took an hour and a half. Yes, sir. AUDIENCE MEMBER 6. Can you hear me? AUDIENCE MEMBER 7. I can't hear you, sir. AUDIENCE MEMBER 8. Is there any special software? AUDIENCE MEMBER 9. No. I've wrote some tools on my own, and I use Panaview image assembler to stitch my images together. He asked me if there's any special software. I'm sorry. The only special software really is my probing board that I stimulate the chips with. It's an FPGA‑based design, and it's all my custom logic. Anyone else? Yes. AUDIENCE MEMBER 7. Ultimately, what will be a time for our work team? AUDIENCE MEMBER 8. This TPM, if I really worked on it, I could have it finished in about two weeks. If it was ‑‑ AUDIENCE MEMBER 9. Give it a ‑‑ give it a ‑‑ . AUDIENCE MEMBER 10. I can barely ‑‑ AUDIENCE MEMBER 11. Can you finish this attack? Can someone give me a new TPM? AUDIENCE MEMBER 12. Okay. So the ‑‑ so once I'm finished and I've extracted an image, which is the eProm area of a particular chip. The gentleman wants to know how much ‑‑ what's the time to do another one, to kind of repeat the process. On the Infineon chips, it took me six hours. On the ST, it would be significantly less because of their mesh concept. Their shielding is the weakest in the market. Then it's even worse on their newest ‑‑ their 90 nanometer stuff is even worse. They have a one micrometer spacing on their new stuff between mesh tracks, which is absurd. I mean, I can put ‑‑ I love Millen 40 by .4. By .4 holes, and that's large. And so one micron space is ‑‑ it's sad. But remember, the fingers, I can turn off the finger, and it's dead metal, and then I can use it as ‑‑ I can actually use it as a conductor if I wanted to. Or I can mill it completely away. And the mesh main active mesh signal, I just have to mill down to VDD and then strap it, and then I can cut it. I also ‑‑ I can do selective wet etching on the ST chips. I can't do that on the Infineons. Selective wet etching. You can see my video from Wired where I use nail polish to make a mask, and then I use hydrofluoric acid, very selective time detches. So the ST chip would be maybe an hour and a half prep and then put needles on it. Anyone else? Yes. The layout of the chip was very standard. Sorry? The layout of the chip was very standard. The layout of the chip was very standard, yes. And it almost always ‑‑ . It would have been harder, but it's not that hard to identify where the actual core is. Because there's so many crypto blocks inside, and you see a lot of register logic, a lot of chain register logic and shift networks and stuff like this. So if you isolate all of that out of the picture, which is what I did on that one Photoshop image that you saw, it's pretty much game over. You can start line tracing and things. It's more of how ‑‑ the smaller you are and the more layers you have, the harder you would make my life. In a nutshell. Yes? . There are a lot of things they could have done to make ‑‑ to obfuscate the surface and make it a little bit harder, but they didn't do it, and I'm not going to voluntarily give them, you know, ways of slowing me down. Yes? . 45 nanometer. Yes? . Once I've done my ‑‑ I have over 400 samples of this chip. They were, like, 20 cents on Hong Kong inventory surplus. So once I burn through whatever I need to do my initial analysis, my success rate is going to be 100%. Unless something catastrophic happened, like I wasn't, I wasn't eucentrically level in the fib and I stick the needle in and it's, oops, it wasn't. It wasn't 100 microns above the surface and I scratch it. Otherwise it's almost zero risk. Because remember, if I break ‑‑ if I damage it in any way, it would be like maybe I sever a track with my needle. But on the ST chip, I can drop platinum everywhere because of its ‑‑ the mesh is inferior to most of the stuff I'm up against today. One more question, please? Anybody? No? Okay. Thank you very much. . Thank you very much. . Thank you. .