GSM hacking, access point stuff, but today he's going to talk about smart cards. So I'm going to hand the mic over to him. Take it away. Thanks a lot, Carlos. I'm not sure how this is going to work because this cable barely reaches over to this laptop, and I have to switch between all these, so if there's like big pauses where things just fall apart randomly, please forgive me. My name is David Holton, and I'm giving a talk on smart cards today. I'm a researcher with Doc Bowden Labs, just a small little group in San Diego, and I'm the chairman of TourCon, in case any of you have been there or heard of it. Hello. Hello. Just as a disclaimer before we get started, this is educational purposes only, all that crap, curiosity, not fraud, all those ideals, and full disclosure, all the information here I'm planning on releasing in a frack article, like in the next frack, because I've got most of it done. If anybody wants a copy of it, just let me know, and I'll give it to you later on or something like that, but yeah, all this information will be posted later, and this talk will be covered, give you a basic introduction to smart cards, basic technical knowledge of how smart cards work, how to analyze proprietary cards, reverse engineer the protocols that they use for both asynchronous and synchronous cards, and we're going to give an example with GSM SIM cards and parking meter cards, and finally show you methods on how to break it or, you know, do naughty stuff. So, what do we know about smart cards? There's a thing called the iCard. It's an ISO 7816 standard that defines what a smart card is, and it's a very loose standard. It basically just has durability requirements, pin layouts, and defines a little bit of the asynchronous protocols. For the durability requirements, it's really basic crap, like UV light protection and electrical resistance and magnetic field resistance and stuff like that, and really boring stuff. The pin layout, though, tells you exactly where all the pins should be. And so, it just makes it so, you know, like all the smart cards have the right pin outs and all the readers have the right pin outs and stuff like that. And we're mainly going to be focusing on the reset pin, the clock, and the I.O., and those are the main ones that you want to know about. VCC is where all of your power comes into the card, and then there's, you know, the ground for zero voltage, and there's a couple of reserved pins that they don't really define. So, for asynchronous cards... What, how they work is there's a couple of different protocols that they use, but mainly it's just, it acts as a serial device, and so you create a 9600 baud connection to the device, and then you can do challenge response sort of stuff. And it's very common with processor cards. With synchronous cards, they're mainly used for memory cards, and so it's really simple logic. The cards don't even have, like, their own internal clock, and so it's all supplied by the reader. So, first I'm going to talk about the process. I'm going to talk about asynchronous cards. Asynchronous cards are usually any type of processor card, so GSM SIM cards, bank cards, PKI token cards, Java cards, ones that are a little bit more complex and actually have challenge response to them. And synchronous protocol, yeah, just use I.O. pin to create a 9600 baud connection, and when the reset is set to high, it tells it to reset the card, and then you can just send simple commands. With APDU commands, you just have four bytes for your command on there, and one byte for the length, and then you can throw in arguments to whatever command you're sending to it. And then you receive a standard response back. So, how SIM cards work in phones is, we're mainly going to be looking at the KI on the cards, like the ESN, basically the key on your SIM card that identifies you on the network. And how this whole thing works is, let's say you want your phone to connect up to a GSM base station. You say, hey, base station, can I connect to you? This is my identifier. And then the base station's like, oh, well, here's a challenge. If you are actually who you say you are, you can provide me with the right response. And so what it does is it relays this challenge onto comp 128 on the SIM card, and whatever response it gets, it sends back to the base station, basically. And actually, comp 128 is also used for seeding, like, all the data encryption, the voice communication encryption, stuff like that. So they really try really hard to protect KI and make sure people can't get that. Different attacks on comp 128. There's a narrow pipe collision attack that Ian Goldberg, David Wagner, and Mark Borsano found out. And there's also a side channel attack that uses DPA to try and... Find KI. And if you can actually get the KI on the SIM card, what does it get you? You can clone phones, eavesdrop on calls, defund stuff like that. And the only downside is it attacks the SIM card, so you actually have to have the person's physical SIM card to perform this attack. And there's a possibility of killing the card. So there's some risks involved. In this presentation, I'm going to be doing a bunch of demonstrations and showing you how to use tools to interface with the cards. So in this demonstration, I'm using a Taui Toko chip drive, micro 130. It's just a USB smart card reader. You can buy them for about, like, 50 bucks online. And I just like it because there's really good software for it, and it works for virtually all the types of memory cards and stuff. And how you can interface with SIM cards is you just use standard APDU interfaces. There are... With the libraries that they provide, you can easily write software to interface with it really well. I just wrote a really simple command line app that, you know, is really easy to interface with it. And I'm going to be demonstrating that in a couple of minutes. You can also use a dumb mouse. It's really... Lots of people use this. All it does is it just ties your serial port over to the card, and so you can just create a serial connection and talk to it directly that way. And there's really good software for it that you can grab from FTL.com. It's http.ccc.de.gsm. And not too many people know about it, but there's lots of really good resources in there. And also, you could use a season, which is basically the same thing as a dumb mouse. And you can use it for tapping as well. And you can get schematics on that from FRAC 62.15. So, in this demonstration, I'm just going to connect to the card by inserting the card. And then I'm going to select the GSM directory on the card. I'll think about it later. And then I'm going to authenticate with the PIN and run Comp 128. So... Just a minute. Ah, it partially works. You can get a holder for your SIM card that allows you to put it in a smart card reader. And you can buy these for like two bucks online or something like that. Does Bodo have them? Oh, Bodo sells readers. Actually, for people that have really good questions at the end, Bodo gave me some smart card readers that I'm going to give away. So stick around. Okay, so first I'm going to reset the card. Just typing an R. And hopefully this will work. I'm going to issue a command to select the GSM directory. And so then I get this response back from the card and it's supposed to mean it's okay. How do you know what directories are on it? There's been a bunch of stuff published. Like if you read the Frack article, the guy published a bunch of the different directories that are on there. Yeah, yeah, like all the SIM cards have this one. And then there's different directories you can use for pulling down contact info, you know, contacts and SMS stuff or whatever else is stored on there. So yeah, read Frack 62. It has all the info on there. And so now this command tells it to pull down 19 bytes from the result. And so this is info from the GSM directory. But now that we're in there, I'm going to authenticate with the PIN. This is exactly what your phone does whenever you power it on and ask for the PIN. And this is actually Carlos' old SIM card. So if you look at this enough, you can find out what his PIN is. He probably uses it on his current cell phone, too. And so if you look closely on there, it says 38393839 and then a bunch of Fs. And that means that if you look at it in ASCII, then you'll know what his PIN is. So we're authenticated, and now I'm going to run Comp 128 on the card. 00000. And I'm just going to feed it a bunch of zeros. Just for an example. So there's 12 bytes of response. I'm going to grab that. And there's a response from Comp 128. And so that's how you can use to pull Comp 128 on the card. So now that we have an interface, thanks to getting at Comp 128, I'm going to show you how Comp 128 works. By the way, thanks to CCC and Ender for providing lots of info about the G-SIM SIM cards. So there's the administration. And if you happen to not know the protocol, that the things we're using, you can always make your own by reading FRAC 62 or by a season, which you can grab from SDLogic. And they're actually, they've actually been involved in lawsuits with Prime Star and DirecTV, as you might have heard from the talk earlier. So if you buy something from there, then just be aware that they might try and sue you or something. But you can use that to log the connection and figure out the protocol. Now, I'm just going to cover the narrow pipe collision attack. How do you perform this attack? Ian Goldberg found that there's a narrow pipe in Comp 128, and he attacks the second round. Collisions in Comp 128 responses reveal key information. And you can crack Comp 128 using his method and about 115,000 queries, according to his article. Unfortunately, new SIM cards will die after some time. It's 65,000 queries. It's a new feature that they added in. And so most people won't be able to get to 115,000 and actually crack it. So I've been working on optimizations to speed this up to make it a little bit faster. This is what Comp 128 looks like. It's all like pseudocode and stuff. So I don't expect you to read it or understand it. But the cool thing is that at the very end, they all padded 10 bits at the end. And they think that it's because of the NSA just added in their own little feature to Comp 128. But it essentially reduces your voice security with your cell phone by 10 bits. So thanks, NSA. . Just the algorithms used in the U.S. Does that counter, the 65k counter, does that get reset? Or is that, like, the life of the card? It's for the life of the card. So, like, every time you power on your phone, associate with the base station and stuff like that, it uses, you know, text on the counter once. And so they assume that you aren't going to be using it 65,000 times and you'll upgrade in, like, a couple years or something like that. So, Comp 128 for dummies. What happens is, you know how I showed you feeding a challenge to Comp 128 when we interface with it? What happens is there's this X array in the Comp 128 function that loads the secret key into, into the first 16 bytes. And then it takes the challenge and stuffs it in the next 16 bytes. And then it goes through this bit reduction routine I'm going to cover right now. So, for example, if you have a key that's all zeros and a challenge that's all zeros, what happens is, in this bit reduction, it ends up performing operations on, like, the zero bit, or zero byte and the 16th byte and uses both of those as inputs and then spits out results into those. And so it just performs operations on those and goes along until it's gone through every one, you know, at offset 16 for round one. Then in round two, it uses an offset of eight and does the same thing, only it reduces by seven bits and it uses lookup tables and all that kind of stuff. So if you want to learn more, just look into it, but I'm just kind of skimming through this. So in round two, it goes through and performs operations on all those. And it reduces them down to seven bits for each byte. In round three, it does the same thing with offset four. It reduces them down to six bits. Round four does it with offset two, reduces them to five bits. And then in round five, it reduces them down to four all the way through. And essentially what Comp 128 does is it's just like a checksum. It basically makes all the bytes dependent on each other. So if any byte changes, the result is supposed to change. And then it takes all those four-bit values, shifts them over, puts them at the end of x, and then feeds ki back into the beginning and then repeats it seven times, and so it iterates quite a lot. Then it reduces bytes, null pads the ten bits, and returns. So how this baseline attack works is if we look for different challenges, it ends up giving us the same response. And just kind of drill it down in the algorithm. In this example, I'm using this ki, which is one, two, three, four, five, six, seven, eight, nine, and so on. And if you look at a challenge where it's 23, a bunch of zeros, and then five, five, a bunch of zeros, and zero, d, a bunch of zeros, and e, seven, a bunch of zeros, in round one, you'll notice that of course there's going to be different values when it performs operations on the first byte. But all these other ones end up being the same. Because it's virtually the same function that's going on there. And then it goes on, and you'll notice that all of these are the same except for ones that offset zero and ones that offset eight. In the second round, look at that. It just happens to swap them with the exact same values. And so now we have all the same values in the very top row, and then it goes through to the bottom row and swaps them with the same values down there. And so once we get to that point, it'll end up having the exact same response. The cool thing about this property is that now we know that if we run comp 128 with a challenge of 23, a bunch of zeros, and five, five, a bunch of zeros, it ends up with the same result as zero, d, a bunch of zeros, e, seven, a bunch of zeros. And we know that the keys in the byte are zero, one, and something, and then fe and something. And so we've just retrieved two bytes of the key. Then you can just repeat it eight times, and you have the whole key. So I was looking at trying to speed this up a little bit, and I tried brute-forcing all the different collisions and finding the collisions that happen the most often and then just choosing those first and optimizing it that way. And it makes it a bit faster, but it still isn't fast enough. So one thing that you can do is you can attack the third round, and because you already have some pieces of the puzzle for the third round, you can find certain collisions that reveal single bytes. And so instead of attacking two bytes at a time and brute-forcing 16 bits, you can virtually brute-force one byte at a time. And so it reduces the complexity a lot. The only problem is that you have to pre-compute everything, and it takes a lot of pre-computation. So you can do that with the third round to retrieve two bytes. Then in the fourth round, you can retrieve four more, and in the fifth round, you can retrieve the rest of them. And it's owned in less than 20,000 tries. So this works with most GSM carriers in the US, like T-Mobile, Singular, etc. And the new attack takes around 15 minutes with a pre-computed dictionary. So I haven't totally computed what the full dictionary is going to be, but it shouldn't be that bad. And once you have KI, you can emulate SIM card really easily with a PIC. There's all kinds of code out there for doing it. Gold wafer cards, stuff like that. And I'm going to release some open source tools pretty shortly. You can also download SIM scan, which implements this. And I think he's had it out for a little while. So check that out. Any questions so far on the GSM stuff? Can I have my card back? No. I think that Boost Mobile uses something totally different. I'm pretty sure they don't use GSM SIM cards. Yeah, yeah. So I don't think it'll work with Boost. Any other quick questions? Have you tried this on a card in a non-US GSM card? No, I haven't. They have three different types of encryption types you can use for it. There's one which is no encryption, which is really useful. There's another one that's, you know, like US, and then there's one they use in Europe, I think. There might be another one. I'm not sure, but... Anything else? Does this only work on GSM cards or does it work on all other ones, like SIM cards? Oh, no. It's just for GSM. Just GSM SIM cards. Anything else? Oh, yeah. Yeah, I played a round of the collision attacks and tested it. Uh-huh. And I found that some files didn't work with each other's byte pairs. Did you have that same result? Uh, yeah, yeah. It's actually kind of weird, because they end up shaving off a lot of stuff when they, like, when they put together the response at the end. Because it's only 12 bytes of response, and, you know, you're feeding a lot of input to it. So, I don't know. Yeah, I found that there's some collisions that end up doing that. And so, yeah, I... What I ended up doing was I just go through the algorithm and basically, like, find a right equation that makes it line up. And so, it's more kind of, like, making it line up in the second round than actually running it through and brute-forcing everything. And so, it's a little more accurate if you do it that way. I don't know. We can talk later or something. Anything else? What was that again? What was that? I said there is a fourth one. Oh, okay. . Ah, okay. Yeah, he said that there was a fourth one that nobody can crack, and so that's why nobody uses it. Yeah, there's some really good candidates for the new GSM encryption algorithms. So... Is that it? Yeah, we'll have more time for questions later. So, moving on to parking meters. What the fuck is a parking meter? Basic intro to parking meters. These are the types of parking meters we have in San Diego. There is a coin input, a coin output, which is very useful, and an input for a smart card. And if you look at the smart card, I have a couple right here. They're just real simple SIM cards. Yeah, smart cards. And what they say on the back is, parking meter debit card. Insert debit card into meter in direction shown by arrow. The meter will increment in six-minute segments. And actually, it's down to four-minute segments because they just raised the prices in San Diego. When desired time is displayed, remove card. Did you buy too much time? To obtain extra time, refund. Insert the same debit card that was used to purchase time in the meter. Four six-minute increments will be credited to the card. Increments of less than six minutes. Six minutes will be lost. And so there is a way to refund credits onto the card. And that's one important piece of information to know. These cards are synchronous smart cards, and they're just like memory cards, just like Kinko's cards, Internet Cafe cards, cash cards. And synchronous protocol is very, very simple. The clock sets the transfer speed. And so the reader just kind of moves the clock up and down from five volts to zero, and uses that to create the clock for the actual card. And if the reader wants to start reading information, it just sets the reset high to tell the card to reset, and then starts ticking the clock. And for each time that the clock goes high, the card will see that the clock's high, and so it'll set the data line to whatever the bit is. And so, like, for the first time the clock goes high, the card will set, you know, like, set the I-O line to whatever bit zero is. And then the second time it goes high, it'll set the I-O line to whatever bit one is. And just keep on going until the whole card is dumped. Parking meter cards are very similar to, like, European telecom cards that are actually covered in FRAC 48. And I have one here. And so you can use these in Europe to, like, pay for pay phones and stuff. And how these work is they implement a two-way counter. And basically what happens is in the factory they set exactly how many credits the card is supposed to have. So let's say the card's only supposed to have, like, $50 on it. They set that amount of bits on the card, and then they blow a fuse. And then from then on the bits can only go from one to zero. And so that's supposed to provide security that you don't, you know, put bits back onto the card somehow or reprogram them. And I'm just going to do a quick demonstration of reading some cards so you can kind of see what it looks like on them. There's this really nice tool that comes with Taui Toko Reader for reading stuff. It's kind of hard to find now because I think they took it off the website. But you can find it on the German site. No, no. Okay, so this is a European telecom card. And they actually use – they're actually able to round the bit deductions or something like that. So there's a lot less stuff on here. But that's all the data on there. If you look at parking meter card – you get a lot more info on here. And so there's all these kind of like empty spaces and full spaces of bits and stuff. So I'll be covering that a little bit later. But you can just drop in any memory card that you have. Like this is a Kinko Express Pay card. I haven't looked at these too much. So if anybody looks into these much, it's kind of interesting. There's like – it says cash customer down here. And I don't know, different things. And these types of cards actually use a pin for rewriting to them. And so if you can figure out the pin, then you can rewrite stuff on the cards or you can just get your own or whatever, emulate your own. But if you guys have any interesting cards, let me know later on because I always like to look at new stuff. Okay, so from a parking meter card memory dump, we get something like this. Through trial and error, I kind of figured out on most memory cards, the first four bytes is an ATR, answer to reset. And it's just kind of like a serial number. And then there's another four bytes of another type of serial number. And what I found out is that if you look at the green portion over there, that's actually the area for credit bits. And so for every bit that's set in there, it means 10 cents on the card. And if you look at the blue portion, that's the refund bits area. Because they can only go from one bits to zero bits, they decided to have a separate section just for refunds. So for every bit that's set to zero in that area, you get a refund on the card. And how it works is like, let's say you have a bunch of refunds, but you use up all your credit bits. What do you do then? They have this refund buffer area that's only for about maybe $5. And so you can really only refund $5 and actually use it. So it seems kind of pointless to refund a bunch of credits when you can only use like five extra dollars. So on this particular card, there's six bits for credits plus seven bits for refunds, so it ends up being like $1.30. Now, if you want to figure out how they increment credits and deduct credits, you have to somehow reverse engineer the protocol by tapping it or guessing or something like that. So the basic method is to somehow tap the connection, log the data, and decode the protocol. Now, you can buy lots of tappers for asynchronous cards, like I have this one right here that Prime Star can sue you for having. And these things are great. They just have a serial interface. You can listen to communication. But I can't find anything that's made for synchronous stuff. And so I don't know anything about electronics, but with a friend of mine, we ended up developing this thing. It's attached onto the back of this laptop. It's really ghetto. They made like a fake smart card. I'm not sure if you can see this, but it's actually a Pete's Coffee card that I put copper tape on, and it's soldered onto a ripped-up floppy drive cable. And it's run over to this smart card socket that I ripped off of an old smart card reader that I had laying around. And that goes back to... And then I end up using one of these floppy drive cable thingies. It has vampire clips on it to tap the connection. And that runs back to 10K resistors. It goes to a buffer. It goes to the parallel port, so you can monitor the lines. And in the FRAC article, I have lots of cool ASCII art. So... This is like the basic schematics for it if you want to make your own. And with logging the data, you just pull the parallel port I.O., and you can find all kinds of information on dealing with the parallel port online. And if the I.O. lines change, just log it to memory, and then once you're done, just save it to a file. I had the really bad idea of just printing it out, and this stuff goes so fast that I was just losing bits left and right, so a lot of trial and error getting that to work. But it's really simple code for doing that. And decoding the protocol. I just wrote this really simple program for decoding bytes from the stream that you get, and then also doing time graph analysis. So here's a quick demonstration of that. I'll show you. Damn, the pin's burnt. . Okay, better. . . Present for the DEF CON staff. There we go. Woo-hoo! Okay, so... I'm just gonna... What's the password? . Thank God. Okay, there it goes. Okay, so I'm gonna tap the connection between this parking meter card and my smart card reader over here. I wasn't able to bring a real parking meter out here. I'm sorry, guys, but it's just too heavy. What's that? . Oh. Okay, so I'm gonna... I just inserted my fake card into the reader, and so it's doing its thing. And I'm gonna pull it out. Cancel it. Oops. Spacebar doesn't work at all. So I just logged the bits to the file, and it's not too pleasant to deal with this stuff. So... We can pipe it through here. . And here's some of the data that's pulling down. It does all kinds of crazy stuff. But it kind of gives you an idea for... for what sort of information it's getting. The coolest stuff, though, is doing time graph analysis, because that's when you can really figure out the protocols a little bit better. And I got this on the other machine. . And... So you can feed it into a script that we put together that just graphs it out. So you can kind of see, okay, here's some bits that have been going along. The clock is on the bottom. The reset is actually inverted, and it's kind of weird on here. But the reset's up on the top. Second to top. And then the I-line's at the very top. So you can see there's some data there. And it just stays high. And it goes low for all of our credit bits. And it goes high again. And... It goes along, goes along. And then it resets and reads it again. It does this a lot. It reads it, like, maybe about half a dozen times or so. And... Actually, like, this area right here is where it actually writes to the card and deducts or increments credits and stuff. And I kind of have it explained a little bit better in slides. But... In memory dump, you kind of see, you know, like, the I-line going up and down and stuff. And then with the write to the card, it does this weird sequence. And so it's just, like, how the protocol works. But for deduct, it ends up having this sort of pattern to it. And it resets a couple times. And it actually uses one of the reserved lines to do this. So you have to account for that when you're emulating it or whatever. Or tapping it. And for a refund, it ends up doing something like this. And so you can do the same thing to the card to refund a bunch of bits if you want. But... But what I've been working on is emulating the Park-O-Meter cards. So, you know, you can just walk up with a card and insert it with $50 or whatever and it deducts some amount. And I just don't like dealing with EEPROM and stuff that saves to the card. So I just make it forget the credits and go back to $50 the next time you insert it. And so that'll probably... The code for that will be... I'll release it pretty soon. I'm just... It's been hard to test it out here without a Park-O-Meter. Yeah, look for a FRAC... Look at FRAC 4811 for hints. I'm using a 16F84A. Those are pretty popular right now. And just make sure you supply a clock. And a good tip is to tie the clock line to interrupt. Yeah, so I'll have full code and semantics pretty soon. Send me for details if you want any sneak peeks or anything. And brute force. This is a really cool thing that I found out. When I was messing with them. And I was struggling on this stuff for a couple months. And then I just tried this thing out out of accident. And you just fold a business card in half, stick it in. It's not a valid smart card, so it goes out of order. And if you fold a business card in half, it's the perfect size where it's hard to pull out. And people barely even notice that it's in there. And so if it's out of order, you can just park there forever until they figure it out. But... Yeah, and then just use a credit card or something to pull it out later. And other memory cards, like I said, with the pins and stuff. A lot of this stuff is just security through obscurity. They figure that if they make a weird protocol, nobody's going to figure it out. So... Like, I have this friend in Holland that was auditing some university soda machines. Because lots of universities use cards for credits for students and stuff. And it turned out that every card had a different pin for enabling read-write on it. And what they ended up doing was they thought, oh, well, we'll have a different pin on each card. So if somebody gets one card, then they can't unlock all of them. And so what they did was they just had a bunch of garbage data on the card. And they'd do something like... Byte 6 plus byte 8 minus, like, byte 42 divided by some other byte equals, you know, whatever the pin is. And so the soda machine would know this sort of algorithm. It would read the card data and then figure out the pin and then use that to unlock it to rewrite the credits on the card. And so, I mean, like, you can easily defeat this stuff. Michael Stegen actually ended up coding a pic to just emulate the card. And then when it receives the pin, it just saves it to another portion of memory on there. And so, you know, you stick it in the machine and it unlocks the card and thinks that everything's fine, deducts the credits. And then you just take the card, stick it in your machine, and you can see what the pin is because it just writes it right there. And there's all kinds of ways of getting around it. And it's just security through obscurity. But most of the time, it seems that people just use the same pin on every card. So if you can tap the connection, you can figure out the pin. And then just, you know, have fun rewriting all their cards. So, yeah, conclusions. That's how you can reach me if you want to email me anything and ask me any questions. And some references. Really great stuff. Shameful plugs. Come to TorCon, please, if you're able to make it out. And I'm going to be at ShmooCon, so if you want to go there. And I think Layer 1 is going on. Again, next year or so. Some good conferences. I'd like to support the small ones. And questions, suggestions? Who wants a free smart card reader? Wow. You guys didn't respond too well to the question suggestions, but, I mean. What's that? Oh, okay. All right. Do you have any questions? Are you going to give me the cards? Are those smart cards? Oh, like a mag stripe? Oh, okay. What's that? What's that? I don't know. It's probably a processor card or something. What? Oh, a BART card? No, I don't have a mag stripe reader. What's that? Huh. I'd like to take a look. Oh, yeah. It doesn't have... Does it have the pinouts on it? Like... Yeah, it's true. Like how it has some gold on the top? Yeah. No? It's something like this. It actually does that. Yeah, yeah. You have a question? . Oh. . . . . . . . . . . . . . . . . . . It's not worth anything yet. In fact... Yeah. I've heard about this. He was saying how credit card companies are starting to distribute smart card readers and stuff. I think they use it for like authentication with their websites and things like that and so... Yeah, totally. You could try and tap the connection and figure out how they talk to each other and try some attacks on there, but I haven't looked at them personally. What's that? Yeah, yeah. Yeah, so there's plenty of drivers out there for Gem Plus readers, but I couldn't find anything for these, so good luck. But you can have one if you want. I'll just leave it here for you or something. Anybody else? What's that? Oh, okay, yeah, yeah, you deserve one. What's that? I'm not quite sure. I think it might be for timing reasons or something like that. They were just kind of lazy and they, you know, when you stick the card into the meter, it ends up flashing, you know, the credits on the card. And then it starts slowly counting it down and stuff. And so it might have been some sort of timing weird thing or maybe they just wanted to verify that, you know, the data was there and there wasn't any corruption in the line or something like that. That's my only guess. Somebody over here? You've been talking about using the actual interface to read the data off of the card. Is there any work on physically tapping into the flash on the card, bypassing the interface? Yeah, I know some people. He was saying that... He was wondering if any cards, any people have been actually disassembling the cards to read directly from the flash. And I know that some people were using, like, electron microscopes and stuff like that, using acid to burn away the plastic and stuff. But, you know, it's just, it takes a lot of equipment and it's really difficult. So, but, yeah, people have been working on that. So, yeah, you can have one of these and you can have one of these if you want. Yeah? What about timing? Timing? Timing attacks? Yeah, for attacking GSM, the side channel attack actually analyzes the amount of power it's sucking. And so, what it uses, it turns out that when it's computing stuff, there's a table in there that's actually 512 bytes. And it can only do 8 bits at a time. And so they split it up into two tables and there's a noticeable power drain when it reads from one table to another. And so they use something like that to do it. I'm not totally sure about timing attacks, but people are definitely working on, like, side channel attacks like that. Yeah, go ahead. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. Yeah. That is definitely a lack of organization for cave-happybbieottle ви. How did they reprogram or ... ? Oh, how did they reprogram them for stuff like that? I... Oh, I don't know. I'm thinking that they might interface with some sort of smart card or... I have no idea. I'm not sure. But I'm guessing that if everybody's... Everybody ends up making these cards that get you free parking, they'll end up having to upgrade all of them or something like that. So, we can find out then. What's that? There was a game. Oh, are they? Oh, okay. What, before or after? That's fine. I talked to them about taking control here. Okay. Yeah, you. Here with the Java cards, the military cards, what they're using in things like departmental and security and all these things there. Yeah. And I was wondering if you're able to actually pull down some of their little programs that they install on them or be able to manipulate those, or even a couple of new programs that would fool other type of, when they put their card back in, just put a Trojan horse on their card. Right. I guess you could manipulate the data. Yeah, he was saying that a lot of places are using, like, Java cards and stuff like that, and so you might be able to reprogram them. And, yeah, like, the stuff that I've been dealing with, you can't reprogram them. It's all, like, hard-coded in the chip. But I know that, like, Bruce Potter and... some other people have been working on the Java card stuff, and there's definitely, like, all kinds of cool attacks you can do with those. Do you say that the military IDs use Java cards? Oh, okay. And also, the government stuff is also going to come up with Java cards. TSA and all this stuff, you can use Java cards. Oh, okay. Yeah, it'd be interesting to look at. Yeah, go ahead. I just want to know, is there any work getting generated on a personal account? Oh, the PUK for SIM cards? Yeah, I don't know. I don't know how you'd get that, because, yeah, I haven't looked at any of the attacks when getting the pins or the PUK. Yeah, yeah. Yeah, you can emulate the card once you have the key, so you don't have to worry about that stuff once you get there. But, yeah, it'd be interesting if somebody found some attacks on getting that. Yeah, go ahead. Would these... Would these... Yeah, I don't know. I noticed that all of them have serial numbers and stuff like that, and so there might be some sort of algorithm for verifying that it's, like, a valid card. Like a recent code. Yeah, they might have something like that. And so, in that case, then, if you use, you know, like, an emulator or something like that, you just have to reprogram that. And I would think that it would work. I noticed that there's just a couple parking meter manufacturers that are doing this kind of stuff, and so it's probably really similar between the different cities. Go ahead. Yeah. I don't know. It seems like smart cards are pretty popular right now, and it seems like RFIDs are, too. But I... I don't know. There's definitely a lot of stuff people are doing with smart cards nowadays, and, like, with Java cards, and making things a lot more secure, like with PKI and stuff like that, so... And it seems like RFIDs are pretty new, and so there isn't a whole lot of security in them yet. So I don't know. It really depends. I like the manufacturing costs and stuff like that, I guess. I don't know. Yeah, way back there. Yeah. You said the parking meters are kind of kind of right here. Well, one... No, I... No, I don't, but I live in downtown San Diego, so it's, like, right out my door. What's the question? Oh, he was asking if I actually own a parking meter or possess one. I guess I can't use the hacks all late at night. Yeah, we were thinking of using our friend's Hummer and tying it to the back or something. Oh, okay. Yeah, just... Yeah, just... A couple more questions. Jaya? Yeah. Yeah. Oh, to the GSM attacks? I don't know. Somebody from Europe, like, emailed me the other day asking about it, and I think that they're definitely doing a lot of stuff to roll out new algorithms. Like, I know Qualcomm has just published Silver 128. That's supposed to be, like, the new candidate, for new GSM stuff. There seems like there's all kinds of open-source candidates out there, so I don't think they're too concerned about stuff right now, but they're definitely using a lot of planning to just fix things and start over properly, and so... Yeah, one more. So, you're saying that the GSM supercard does a lot of processing, but the parking meter card seems to pretty much just work with the storage. Could you get a generic show? Yeah, I tried that, but you actually need that extra reserved pin that I was talking about. If it doesn't have the right logic on that pin, then it just doesn't work, and there aren't really any of the memory cards that use any of those pins. And so, yeah, I definitely tried that, because I have a couple different blank cards here that I was using, and they definitely are able to distinguish between the correct ones and, you know, like, ones you're copying. Okay. I guess that's it for today. Thanks a lot. If you have any other questions, feel free to walk up to me later. Thank you. Thank you.