Welcome. Thank you for coming. So it turns out these are our presentation screens or whatever. This is a pretty graphically heavy talk. So if you want to actually see what we're talking about, you might want to move up. If you don't want to get too close to us, that's okay. This is being recorded. It's being live streamed. Also, hello, internet. But a lot of we're showing some code and we're showing some stuff on there, and it's basically going to be impossible. I don't even know what we're going to see on here. So anyway, thank you for coming. Yeah, move up. Move up. Come on. I feel like I'm like a rock star. It's like, come on, move up. Come on. Close the pit. Yeah. Cool. Oh, is this? Okay. This is actually water. So DEF CON is not going to poison me. Are we doing this now? Like while? Is this recording? Yeah, this better be. No, it's all. Is this recording? Yeah. Okay. Can we do it anyway? Okay. Not allowed to drink on camera or something. Okay. Here, you do your thing. I haven't done it. Okay. So you don't want to explain the whole like. So DEF CON has a history of new people doing speakers and doing a shot when they do that. So this is a new speaker. So we're going to do a shot. Yes. Shots. We can we can turn that down too. Yeah. So this is water, by the way. So you don't have to be pressured into actually drinking whatever that is. So it's actually all water. Oh, I mean, it's all water. Right. So this is Bruno's first talk at DEF CON, which is awesome. And I think it's, I don't know, my 21st talk, but I've never gotten to do this. So very cool. Cheers. Refreshing. All right. Now we can start. Yeah. So thank you for coming to the talk. My name is Joe Grand and I am a hardware hacker and I like hacking on things. And yeah, I love going to DEF CON. So that's me. Yeah. And I'm Bruno. I'm from Germany. Was the first time to went to DEF CON two years ago. And now I'm first time on the stage, as you have seen. And yeah, really excited about it. Yeah. So this this presentation is about a project that we did together to reverse engineer the Roboform password generator. And we'll get into all of the details. But the the presentation is is about hacking time. And this is not a sensational talk. We don't have a name for our discovery. But it really kind of shows the problems that we face. I guess the the advantages that we face if we're hackers. But kind of the problems of systems and security flaws and how they are going to kind of persist even if things have been fixed. So we're not the first to hack time, even though we would like to think that we are. So we have some examples. I don't even remember. Which one is this? Oh, yeah, the time machine. Has anyone read this? I know DeathVeggie has probably read the time machine. Yes, okay. Has anybody else read this? Yeah, it was sort of like the first mention, right, of like traveling back in time to change something else. Of course, there are so many things of people hacking time. I chose a couple. I probably missed some. Anybody guess what? Is that even playing? I can't I can't see from here. Oh, it's playing now. Anybody guess what it is before the words come up? Did did you cheat? Is it already? Oh, no, it's already up there. Okay, Doctor Who, yeah. So, um, Time Lords, of course. Put this one in for for LeapBunny of the hardware hacking village. So back to the future, of course, right? Hacking time. And my personal favorite, which is why I'm wearing the T-shirt, is Hacker Man. Has anybody seen Kung Fury? Woo, yeah, like ten people. Yeah, awesome. Oh, there's Jesse back there. Um, yes, Kung Fury, Hacker Man is the star of the show. So, hacking time to go back and do all sorts of stuff that needed to be properly completed. Um, what have I missed? Am I like are we grossly misrepresenting hacking time? Is there any other? What was it? The what? The tenant? The tenant. Okay. Star Trek? Star Wars? I don't know. Nobody's? No Star Wars? Star Trek is, yeah. So, okay, so there's a lot of hacking time, right? We're not the first. Um, this thing that we found is kind of related to random number generators. Pseudo random number generators were also not the first people to discover a poorly seeded pseudo random number generator. Um, we've known about this as a security problem for a long time. But it still persists over and over again. And we'll explain if you're not familiar with different types of random number generators, we'll explain that and then sort of go into the details of why this is a problem in this particular situation. Yeah, so the generating random numbers is a complex problem for programmers. And to really generate true random numbers, you will need some type of entropy source. So, for example, from the environment, people using lever lamps, for example, or some diodes, which are creating noise to then really create this random stream of data. And on the opposite of that, there's these pseudo random number generators. And even they work with a seed. So with the seed in place, you will always generate the same sequence of random bytes with the same seed. And this is exactly where we can attack if we know the same seed at some point, as it was used in the past, and we can also generate the same randomness today. Yeah, and I guess this is a known kind of issue with security and cryptography and generating random numbers being hard. It hasn't really been solved, besides using some of those entropy sources that are better. But that's not really a practical thing. So this is even like a CWE, you know, a commonly known vulnerability. If you're designing systems that have some sort of secure element, you would probably want to study some of this stuff, right? So it's sort of, I feel like everybody in the security community probably knows these things, but maybe not. But if you're selling a piece of software that is sold as a secure thing, you would probably want to know these things. So here is like with CWE, this is one of many about pseudorandom number generators being these deterministic generators, right? Like what Bruno said, if you know what's coming in, you know all the numbers coming out, which maybe isn't always a problem depending on how it's implemented. So here, I can't even see it on here. So yeah, it's just sort of highlighting the main things about pseudorandom number generators being deterministic. We recommend maybe like, don't use time as a seed, because time is a known value. And if you're able to know what time is, even if you don't know exactly the time of how the random number generator is being seeded, you know a range of the numbers that are going to come out of the random number generator. And that's what we can take advantage of as we're hacking on things. So even though many programmers know it's a really bad thing to do, it still happens. And here are some examples like where it happens. One is the Netscape Navigator, which I think I used the time and then the process ID plus the process ID of the parent process. So really reducing the entropy so you can easily guess the seed. Same with the router from D-Link. This one actually used just the time and then generated the VWPS pin via time, which basically would allow you if you listen to the network and wait for some VWPS to exactly know what pin it will be. Then there's QTPath. I think it's the default Unix password manager. And this one was actually really bad because it not even used the time but the milliseconds. So in the end, it came down to 1000 possible seeds, which were then used to generate these passwords. Another example, the Kaspersky password manager also using the time. Telnod Compass X is actually a German company which is doing alert systems and they had the management software to write to this FID chips, which you can then unlock doors and everything and to generate the AES key, they also just use time. So you could go to the door and then brute force the key just in a couple of seconds. And Milksat, I think this one was also... there was a fallback for some operating systems which also use time. And then this one was used to generate private keys for Bitcoin, Bitcoin privacy keys. And then, yeah, they got generated and I think swiped the wallets like two years ago or one year ago. So yeah, really, really bad. And yeah, then there's RoboForm, where we talk about today. Yeah, and this is just a sampling, but you can see the years go back to 1995. And it's not just software, it's not hardware, it's web stuff. And that's what's really interesting about this. So this particular project where we're picking on RoboForm, and I mentioned I'm traditionally a hardware hacker, I normally hack on, you know, embedded systems and electronics. And that's sort of what I love to do. But I also in that same time, have dabbled in reverse engineering software, usually firmware related to hardware. But it was fun to do a project like this, where we're looking purely at hardware and seeing these implementation problems. RoboForm is a password generator and password manager. It's claimed, they claim to be the first, so maybe around 2002, not only to generate random passwords, random passwords, but also to store them, you know, so you can go back to them. And there's a lot of different password generators that are out there now. I'm just quoting directly from their website. Because I didn't want to say anything that was incorrect and get in trouble. So used by millions of people worldwide, individual users and small businesses to government agencies and leading fortune 500 companies made by a company called cyber systems, I think in Virginia, Washington, DC. So yeah, one type of password generator. And the reason that we started looking at this is Bruno and I had been working on some projects of recovering cryptocurrency for people in various ways, hardware and software stuff. And somebody had contacted us and said, Hey, I have a lot of Bitcoin locked. And I had used the RoboForm password generator to generate my passwords that I then encrypted. Or did they encrypt the private key with? Yes. They had a truecrypt container and there they saved the password for the wallet. That they had used with RoboForm, right. So they generated the RoboForm password, saved it in a text file, encrypted it with truecrypt. That partition got corrupted. So he lost his password to the wallet. So that's sort of how we got into this. And at first, when he emailed, it was like, what are we going to brute force a 20 character? He thought it was 20 character special characters, numbers, letters, like computationally infeasible to brute force, right? We're just not going to do that. So I remember turning them down. And then Bruno was like, well, wait a second. Like it was a year later, I think he contacted us again. And Bruno was like, well, I had worked on this other project. Maybe we should take a look at it. Do you want to tell that? Yeah. So it was a password generator, not very popular. It was called Wireless Key Generator. And like the name suggested, it was to create a password for your Wi-Fi. And we had a customer before who used exactly that one and also encrypted his wallet with it. So we had a look back then and it just looked so crappy that I thought, OK, this can't be secure. And it turned out it wasn't. So it was, I think, using Visual Basic 6. And this was like the worst randomness I ever saw in a coding language because it was not even like that you need to guess the seed, but it was the way they implemented it. You have just an array of two million values that are pre-computed random. And then the seed only defines like the start position of that list. So it will just, after two million generations, no matter what seed, you will always have the generated all possible values. So this one was really, really bad. Yeah. And this, and this, even though like we got into this because of cryptocurrency, like this is by no means a cryptocurrency singular problem. Anybody that has used this version of RoboForm and prior versions of RoboForm are susceptible to this type of attack. Actually, how many of you have even heard of RoboForm? Okay. Like maybe a quarter. How many of you actually use RoboForm? One, two, three, four, five. That's pretty good. Okay. Um, did you use it in 2015 or earlier? Now we're like really good. One. Okay. Have you changed your passwords? Okay. Yeah. Cool. I guess maybe you will after the talk, but yeah, cool. Okay. Um, right. So it really is, it's something where you could pre-compute, you know, every possible password that had been generated and that's what we're going to show you. So we started getting into this project and, um, Bruno started digging through the changelog where, where this is a closed source piece of software. So all we have really is the changelog, anything that the vendor decides to make public changelog and, and the binaries. Um, but Bruno had noticed this change here. Yeah. So we looked at the time and then said, okay, it needs to be version, I think 7.9 or something. And then, um, we saw after that version, um, there was an entry which says increase randomness of generated passwords, which is pretty weird. That's pretty weird for a password generator to say, wouldn't you imagine all of them would be, but that was the clue. So we basically knew from the person we were dealing with, Michael, uh, when his last access to the wallet was, which was like 2013, I think. So we kind of looked and seen like, okay, what did anything change? And that's when we saw this increased randomness of generated password. We go, wait, are all of the prior versions doing something that is not random or less random or weaker? And it just happened that the version that we were looking at fell into that. So this applies to everything up to this version. Uh, and then we'll talk about sort of what has happened since this version, which we don't actually know is the TLDR of that. Um, okay. So let's get into the process of what we did. Um, Bruno lives in Germany. I live in Portland, Oregon. Uh, and we did a lot of remote work, which was super fun. And for those who know me, like I don't normally work with a lot of people at one time. I like to sort of hole up and just hack on stuff alone. So it's like finding people to work with is really cool. Um, and it was a lot of fun, like these late night zoom sessions, sharing screens, like hacking on stuff. We did end up doing some stuff together in person at a conference. Um, it was like, I don't know, 24 or 30 hours straight or something. And then I got on the airplane and fell asleep the entire time. So it was really like a fun example of like true hacking together. It was really cool. So the we basically started with some memory analysis and we'll explain each of these steps. Uh, memory analysis first, static analysis, uh, dynamic analysis, and then we built some custom wrapper to handle all of that. So if you're from the software world, you're probably like, oh, this is like a totally normal thing to do. But from a hardware world, it's like it, it, it was interesting to be able to do it in like a full process. Kind of go through everything instead of just dabbling with like, you know, one, one tool or the other. So that's, you know, we kind of go through this process and then, um, hopefully we profit. Okay. So let's go into the demo of things. Um, we were going to do live demos, but Defcon really was like, you should just record your demos. And we know the demo gods, blah, blah, blah. But I like to live on the edge. Um, but I finally gave in and said, okay, we're just recording these. So these are videos, um, and you can play along at home, you know, afterwards and, and see that we're not lying or anything. So Bruno is going to talk about Cheat Engine and we'll go into all the other steps. Yeah. So first we used Cheat Engine and it's originally made for games. I personally use it as a kit for, um, cheating my favorite single player game. So I didn't have to grind hundreds of hours to get my gear and you can actually also use it for hacking. So, um, I hope the video is playing now. Is it playing? We can't see that it's playing. So yes. Okay. Dean is going to be our video, our video thumbs upper for every video. Is that okay? Perfect. Okay. Dean says, okay. So what we did here is a very simple. So with Cheat Engine, you can scan, edit, um, even you can freeze some parts of the memory so it can't be modified by the program anymore. And here we just searched for the generated password and we found it. And which means that, um, other password generators, for example, try to decrypt it in some way that you can't extract it from the memory or, um, try to hide it or remove it after a certain amount of time. Um, because there's a risk involved if you have plain text passwords in the memory, but, um, RoboForm doesn't. And that's already good. And you can actually see that it's, um, found twice. That's one time for the GUI. So what is displayed and one time is, um, the, in the memory of the internal logic, um, we found it. Yeah. And right when we saw that, we're like, oh wait, it's in the clear. Perfect. And then I think we were even, there was a couple of different, there was like a DLL and an executable and we're trying to figure out which piece of the code was plopping that into memory. But knowing that was there, we're like, all right, now it's in memory. Let's try to find out what routine is actually putting it in the memory and then kind of working backwards. So we could then figure out where the actual password generator routine was happening within this entire blob of stuff. Because RoboForm, again, does not just generate passwords. There's all this other stuff that we had to kind of dig through to find the right thing. So we use Ghidra. Thank you NSA. I'll continue to thank the NSA for that. One of the few things I'll thank them for. Or maybe the only thing, actually. Um, so this is, uh, kind of, it's going to show, let's see, I can't see it again, but this is like, this should be a time lapse. Okay. Dean says, yeah. So there's, you know, we're not going to show the whole process, but we basically started with this giant binary and we dug down little by little, starting to, to label things of what we thought it was, of, oh, that looks like this. And we would change parameters and look again. And like, uh, oh, sorry, with Ghidra, we didn't, we were just looking at the, at the static, static side. So things weren't changing. Um, but we basically narrowed it down to a point and Bruno found this first of like, that called a system time, right? It was like, get time. I think it's time 64. And, um, that was like, wait, this piece of code is calling time and then it's doing some stuff and then it's calling SRand. So seeding the, the pseudorandom number generator. That was a pretty big giveaway. And there was a couple other places where there was the pseudorandom number generator being seeded, but there was no other call to time. And we basically figured out that this section was the section that we were actually interested in. Of this whole piece of code, like these couple lines where it's calling the system time, manipulating it, which basically what it was doing, because you can press the, every time you press the generate password button, it hits this code. If you press the button more than one time a second, if there was no manipulation of that time, the time wouldn't increase because this call system time is just returning time and Unix time since 1970, January 1st, 1970 in seconds. So if you hit the button multiple times, they basically added some additional manipulation in there. So you can press the button multiple times within a second and not get the same password. And they basically are just adding a fixed constant or are they subtracting? Are they subtracting a subtraction? Yeah, something like that. Yeah, they were subtracting. No, they were, it was something that messed us up and we'll actually talk about that, but they're doing a manipulation and it basically is just jumping either ahead or backwards in time. So you can still generate the password if you know all of the time. It was just so they couldn't, you know, duplicate the same time in that same button press. So a pretty weak type of manipulation. Then it calls SRAND and then it goes into the actual password generation routine. I guess what we could have done and what we were originally thinking is like, oh, we can just pull out that password generating block, put it into our own code and then just sort of build the wrapper around it. Um, but it was so complicated when we started digging into the function that gets called after that was just ridiculous. And we didn't really want to go through that process. So we eventually thought like, okay, if we could confirm this, we'll just build some, a wrapper that will go and touch those values and then just let the rest of the code that's in the DLL do its thing. So once we could identify the, the static portion of code where we knew that that pseudorandom generator was being seeded with time, then we went to X64 debug and we were actually using X32 debug. Uh, and this is our dynamic analysis to be able to debug the system as it's running in real time and see what was happening with the registers and with other low level CPU stuff. So then we could see if we could manipulate it. And this is going to be interesting because again, I can't see stuff here. So, we're going to start it. And I'm pretty sure what I'm showing first is, uh, there's a bunch of break points that we set. So we can actually, you know, run the code and then it's going to hit the break point at certain times when certain pieces of code are run. We basically set the break point that we care about at that same spot that I just showed. So when the system time is being called. And then I'm probably running the, running the, the, the debugger. Eventually the password generator is going to start. The GUI is going to start. And even when you first start the GUI, there's already one password that's in there. So it actually already runs the password generator once. Uh, so that, that manipulation has already happened once. Which for us, threw us off again a little bit. And I think it's eventually going to stop. But I'm generating passwords and if you look, which you probably can't see, the EAX register is directly correlated to the system time. Plus, like, whatever manipulation maybe there was from the, from the call before. And has it stopped yet? Is it just sitting still? Still going. Okay. So, um, I'm going to generate a couple passwords and then at one point I'm going to write down, there was one value that I don't have on this slide, it's on the next slide, I think it's like 66 CF 6550 in hex for EAX corresponds to one particular password. And that's the one that we're going to end up redoing once we let the system generate some more. Has it stopped? Okay. So this is what we care about out of all of that. The two arrows. There's one arrow pointing to EAX and then there's one arrow pointing to the password that's been generated. So those two things are completely intertwined. Anytime we enter the EAX value of that particular time, manipulated time value, it's going to generate that particular password. So let's continue on with that part of the demo and now I'm going to generate another password just to show again that EAX continues to increment because time is incrementing. And then once we get it sort of cleared the EAX value with the new one, then we'll go back and replace it with one we know to show that we can, you know, regenerate passwords that have already been generated from the past. I'm just going to watch your reactions so I'll know when it actually happens. When it does go ooh or something. The tension. Ooh, right? So now we have regenerated a password. In theory with a properly, you know, computationally cryptographically secure system, that shouldn't happen. But this proved to us with the debugger of like, nice, now we can basically feed in whatever EAX value we want for time and the manipulation doesn't really matter because that just changes kind of the date range a little bit. But we could precompute everything if we were able to tap right into that part, hook into that part of the DLL, add our wrapper code around it to get to that part. And this was, this was pretty cool. Oh and this is the hacking time, right? So now do you get it? Right? We're hacking time to change that. So that was, yeah. Um, okay so then the wrapper code, this was something just to put it all together, give us a way that we could precompute all the passwords that we wanted to for the date range that mattered for us. And we did it in I think just, what was it? Visual, I don't even remember. It was in Visual Studio, yeah Visual Studio. And we did it in C, which I know is like taboo now, can't use C, but I use C. And I use assembly language. And it actually was, it was cool because we had to tap into some of the, we had to do some assembly language to, to move some things around to get it properly executing in the DLL. Um, and seeing assembly language really for sort of hardware hackers, that's like, that's what you want to see. Um, because that's the type of level that we work with. So here's the wrapper code. Um, I have a couple slides sort of scrolling through the code. This is all open source by the way, it's on my website, there's a link in the slides and these slides will be up on the Defcon server after the session, whenever Defcon puts them up. Uh, they're also on my website which is grandideastudio.com. I put them on my, that's like my formal website. But everything is there so you could um, already work with it and somebody already has, which we'll talk about. So yeah, this code basically is um, let's see. The video's kind of showing different sections but this first section we're just setting the time values that we want, the time range that matters. And then it should be scrolling down a little bit but kind of showing some functions as we're, as we're getting ready. We're basically, we need to have code that's gonna hook into the DLL so it has to search through the DLL. This is not an exported function. Is that the right terminology? It's not a function that you're normally supposed to access from the outside world, right? I see nodding. Okay, so it's something where we know the code is there but it's not given to the, you know, to the other executable to normally be able to, to work with. So we had to search for a known signature string that we found just by looking in the debugger. Uh, to say okay, let's just look for these kind of op codes and uh, and hope that's the right section in the DLL. So we're kind of searching through for that. And let's see, what else? We're gonna look for the, yeah, so these are all the functions and set system time. I think here's the real code. So yeah, this code here where, you know, we're calling system time and we're basically setting our computer at whatever system time we want. And then, oh, there's also, there's some other constants I'll get into. There's like a bunch of weird stuff that we had to end up doing to make it work. It seems, it seemed easy in theory of like, oh, let's just hook into this DLL and like call the code. But things have to be prepared before that to actually make it work. So where we are in here, is it still scrolling or can you, still scrolling and now it stopped? Okay. So yeah, this is the part that should be searching through the DLL, finding that portion, finding the address of the DLL with the, that, those op codes that we want. And that's the exact same stuff that we saw um, in x64 debug and in Ghidra. Uh, the upper memory is gonna change though, right? Because we don't know where the DLL is gonna be loaded in memory, so we kinda know. But being able to search through it, uh, automatically seemed to make sense. Then there's a whole bunch of different parameters. I don't know if you noticed on that RoboForm screen, but there's one for, do you want to use uppercase, lowercase? Do you want to use letters? Do you want to use numbers? Do you want special characters? Those are all individual settings that get fed into that password generator routine after the pseudorandom number is generated. So we had to figure out how those parameters were configured before we could actually call the, the function that was generating the password. And that took a lot of trial and error and a lot of debugging and um, as it should be, right? If it was too easy, it wouldn't be that much fun. Um, but it was really interesting to kind of see that a lot of those values were, had to be placed in certain memory locations and specific things and that's what that array at the beginning was of like, we just happened to see that oh, this setting was in this one and then we have a couple bytes that we don't care about and then we add another one. And then we get to the cool stuff. Which we're basically looping and we're calling system time, setting all the values the right way and then we get into the assembly language which is my favorite part and I don't really know, I think it's maybe this part that shows the rest of it. But we're moving the parameters into the right spot, we're moving everything into the right spot and normally what was happening is we were getting crashes for days, right? Or over and over again and then finally it's like we're going to try another thing, try another thing. And then it finally worked and we generated a password, we're like holy crap. Um, then we built the loop around it so we're just doing this over and over again, setting the time, calling the DLL, you know, getting the password out. Because the password gets set into some register that, you know, that's where it was that we saw in cheat engine, then we push that into a variable in C and then we print that out. And uh, turns out it wasn't the most efficient way to do it but it definitely like was enough to generate the passwords. So we had all of our passwords, is this, is this actually showing the password generator? Oh it is. Okay, right. So we actually got it working. Um, this is generating all of the passwords starting from whatever 2013 date range we wanted. Uh, at about a hundred passwords per second. Which for us was fine because we only had, it was like a couple months worth so it wasn't a huge amount and it took, on my machine I think it took like 20 hours or something but yours was like super long. Yeah, I think you had the M2 SSD so Windows really limits the, the amount of time. Yeah, there was like disk access, right? Yeah. So I, I needed like three or four days. Yeah, to do the list, right? And that got really frustrating when it's like we tried different password lists that we were generating, plopped them into the password cracker, you know, tried, tried to unlock this, this Bitcoin wallet and um, we kept failing. And we're like, oh my God, is this like, is this our coding problem? Are the parameters wrong? Are the dates wrong? Uh, we kept calling this guy, Michael and um... Yeah. And he was getting like pretty annoyed. I was talking to him and he was like, in the end he was like, oh no, not again, this guy. Yeah, he's like, oh, they're bugging us again. And like he, and then at one point he was like, I'm going to see if I can remember it through hypnosis. Uh, and we're like, oh boy, now we're in trouble. Um, but it turned out, so he had sent us a list of passwords that he had used for other things and all of them except one were 20 characters with specials or without, I think. I think some... He told us he used specials as his original password, but there were some which didn't use specials. Which didn't, right. So he was so sure it had special characters, but it turns out there was a couple that didn't. So we're like, let's just regenerate without special characters because that changes the entire password that comes out. So we finally did that. And Bruno sends me a message like maybe like 20 minutes after we started running that list. Yeah. It's very exciting. Yeah. I also didn't thought it would happen because he was so sure. He said like, nah, it was special characters, like 99%. And then we got it. And then we got it. Yeah. So here we had to block out all this. Thank you. We had to block out all of the transaction history because I know that some of you, if not all of you would go and try to track it down and now like, you know, see what this guy's doing and spy on the blockchain and whatever else hackers do these days. But we can see the password is actually generated May 15th, 2013. And that was actually a little earlier than we thought also based on the transaction history. But it could also be that he pressed the button twice, right? Yeah, right. He could have pressed the button enough to like change where that manipulation was happening. Because like how they did it, they, I think increased then the time by a fixed amount, which was like around eight or nine days. Yes. And it right. So it was subtracting a negative number and that's what threw us off. We thought it was adding or we thought it was just subtracting the number, but it was subtracting a negative number, which is adding. So we were going the wrong way in time to try to create our list, but ultimately it ended up working. But it was pretty dark for a while. There was a couple of days when it was like, we just went through all this reverse engineering work. We can generate all these passwords. And it was like, is all of this work going to go wasted? Uh, I mean, I guess it wouldn't be wasted anyway because other people could use it. But like from our perspective, it would have been a bummer. Um, as part of this process, uh, sometimes I make YouTube videos and this was a project where we were like, this would be super fun to film this process and make a fun video out of it to kind of show, you know, the story and the drama. Um, so how many of you have seen our, our video on this? Oh wow. That's like, that's impressive. That gets like a quarter maybe. That's good. Um, everyone else, hopefully you watch it. And uh, these are just some behind the scenes of what it takes to film videos like without just using your, you know, iPhone. Um, but this particular project, the, the customer who had this wallet is from Germany, but he was in Barcelona on vacation and Bruno's in Germany. So we started kind of our, our process in the video in Germany. We did interviews, um, and then flew. Oh, here's our film crew by the way. And then we flew over to Barcelona and Michael, the, this guy thought that we were just going to ask him more questions and interview him again. Like he didn't know that by that point we had done it. Um, so he was like, Oh God, now they're just going to ask more things. Um, so it was actually pretty funny. We're not going to reveal like the full thing cause that's why you should watch the video. It's way more exciting when you watch it there instead of on a tiny screen here. Um, but we basically set up this whole environment like, um, you know, publishers clearing house style kind of reveal, uh, which was totally ridiculous and yeah, very, very fun. Um, and that's part of it is like being able to share this information and, and, you know, share some technological stuff is super fun and being able to make videos and like get creative with things that we're doing otherwise equally as fun. So this stuff is really cool. And also you can see how, you know, safety third, um, for those who actually can see the picture, there's two guys holding a gigantic ladder as one guy's like fiddling with some lamps and electrical stuff. Uh, I probably shouldn't have documented that, but definitely not safe. So yeah, um, once we found this issue and we solved our problem, we're like, awesome. Okay. Michael's taken care of. We recovered his Bitcoin. Yay. But part of the process of hacking, in my opinion, is sharing that information with other people so they can learn from it and use it. And that's equally as important as that's equally as important as the success of the project, right? If you just hoard all your information and not share it with anybody else, what's the point of hacking? I think that's, that's something I feel very strongly about and something that, that has been sort of ingrained in me since my younger days of being a hacker. So we solved this problem and we're like, all right, how are we going to disclose this? You know, there's responsible disclosure, um, which I don't really like that term because it implies that not doing that is irresponsible. Um, and there's all sorts of things. Like when I was at the loft back in a long time ago, uh, we would kind of tell the vendor like, Hey, we're going to release this in a week or whatever and really force them to fix things. And now there's a little more kind of ethical dilemma about like how much time do you give a vendor? Do you tell the vendor? We looked up and, and went to the RoboForm website, looked around online, looked at different bug bounty platforms and couldn't find any indication that this company had worked with hackers before or worked with good faith researchers. So we got really worried because in this day and age you sort of expect software companies will have a security at whatever contact or something, right? Like it was scary to not see that. So we couldn't find it. We start discussing like what's the, what's the reality of the situation? Are we going to get sued? We know from DEF CON history there was even a talk actually, I think was it supposed to be today, that received a cease and desist letter. And now they're working with lawyers and maybe they're going to be able to give the talk on Sunday. Like it's a real risk for, for researchers. And nobody wants to get sued, especially when it's a company that has lots of lawyers and we're like individual people that don't want to deal with that. Um, but if it came down to it, we would. Uh, and I remember also talking to my wife about this of like, should we release this information? Like I really want to talk about it at DEF CON and do something with Bruno like on stage. And she's like, like hell of course. Like you're a hacker. Like you need to go against these companies and do it. And if you get sued, at least you'll have given the talk first. Which I agree with. So that, that's my little rant. So um, we reached out to, to Kim Zetter who is a fantastic journalist with cyber security. Um, and has really been pushing, you know, the good of what hackers can do. And also has written some books about some like wild state sponsored adversary type of stuff. Um, and she wants to write about the story. So we're like, great. She can reach out to the company and kind of get a sense of how litigious they are, like what's going on. So she wrote the story, reached out to them to get some comment about our work. And they basically were like, oh we fixed the problem, not a big deal. And then she wrote back and was like, well how did you fix the problem? Nothing. Crickets. Um, and I thought that was a really, also another kind of indicative thing. Right? Of like, okay, if they're not responding, like, it should be very clear if you may, if you fix a security problem, first of all you should notify all your customers if you make a, a significant change like that. Um, which didn't happen. But you would also want to be very proud of your changes and say, this is what we did to fix it so you can trust our software that you're running. None of that. This is, it almost feels like I'm in the 90s again, talking about this stuff. Um, so she didn't get any, any meaningful comment. Article came out, no, no comment. You know, a lot of journalists reached out, nothing. Um, maybe this is, maybe this is more typical than I think. But I was really surprised of not getting any sort of feedback. Uh, and then we decided, okay, article came out, same time, let's release the video and then let's do our Defcon talk. And I think it's, you know, it's, it's, it's a concern. I guess I also want to ask, how many of you have been in the same situation of like finding some vulnerability and being worried about talking to the vendor and, and getting sued? That's a lot of people. That's probably 25, 30 people just in this room. Um, multiply that by the number of people at Defcon, multiply that by the number of people outside who are also hacking. Like, is this a significant enough problem? And vendors know that. Um, but it is, it is a real thing. So anyway, yeah, we released all of the information and uh, and I think that's the important way to go and, and hopefully, hopefully I, I don't, uh, make my next video from jail or something like that. Um, so some future work, right? So we don't know how they fixed the problem. Maybe future versions, you know, they say they increased the randomness of generated passwords. Maybe they did. We searched through the code, we couldn't find any direct calls to system time. It could have been obfuscated, we don't know. Maybe that's future work. Maybe, maybe not for us, maybe for one of you who go, ooh, let's go dig into this, right? And see what they fixed. Um, already since we released our code, uh, my friend, our friend Dean Pierce from Portland, whoo, 503, um, has already taken our code and optimized it to be over 600 times faster. Almost probably a thousand times faster depending on the machine where we were generating a hundred passwords a second. Dean was generating 68,000 passwords a second. Uh, per core. So he made it multi-core and he removed the need to directly set system time, which requires administrator access, by getting rid of that whole call to system time and just putting a value into that register. So you don't have to call system time, you just plop whatever Unix time you want into there. And then what else did you do? You did one other thing, um, oh, you don't need to, uh, to call the DLL each time, which in our code we're calling the DLL because it's like resetting some things that we're not exactly sure about, which takes a lot of time. You're just reseeding the random number generator directly. Oh, okay, so it's knopping out part of, so you're patching a different part of the DLL, knopping out some parts that's reseeding something so you don't have to keep calling the, the DLL, which is a huge time savings. Um, and then he made a command line. Our code you had to like change the parameters, recompile it, run it. His is now command line, you put in your start time, your end time, your parameters, and you let it run and now you can create your rainbow, you know, rainbow tables of all of your passwords with the RoboForm password generator, uh, that have been computed prior to apparently their fix in, uh, in 2015 for 7.9.14. And maybe, maybe other stuff. Who knows what's going to come out of this? Uh, and a couple of resources. Again, this, these slides will be available. These are clickable links, um, but all the code is available. All of Dean's code is also available, um, on GitHub and also linked to from the website and then the original Wired article and then the video, uh, that is, um, is on YouTube. So that's our story about hacking RoboForm. Any last words? I mean, this should also really put in the perspective that, uh, I showed you the examples of the, um, poor seeded random number generators and there was like you standard Unix password manager and Kaspersky. So it is probably in many things we haven't checked yet just because we thought, okay, this must be secure. So yes, widespread, right? This is not the only thing it's still happening. Go out there and, and find random number generators and you too can also hack time. So thank you for coming.