WEBVTT

00:00.000 --> 00:00.580
Welcome.

00:00.580 --> 00:01.580
Thank you for coming.

00:01.640 --> 00:07.320
So it turns out these are our presentation screens or whatever.

00:07.760 --> 00:10.300
This is a pretty graphically heavy talk.

00:10.300 --> 00:13.740
So if you want to actually see what we're talking about, you might want to move up.

00:14.020 --> 00:16.160
If you don't want to get too close to us, that's okay.

00:16.160 --> 00:17.260
This is being recorded.

00:17.260 --> 00:18.300
It's being live streamed.

00:18.300 --> 00:19.480
Also, hello, internet.

00:20.580 --> 00:25.720
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.

00:26.060 --> 00:28.680
I don't even know what we're going to see on here.

00:28.680 --> 00:29.980
So anyway, thank you for coming.

00:30.000 --> 00:31.060
Yeah, move up.

00:31.060 --> 00:31.380
Move up.

00:31.380 --> 00:31.700
Come on.

00:31.700 --> 00:33.480
I feel like I'm like a rock star.

00:33.480 --> 00:34.720
It's like, come on, move up.

00:34.720 --> 00:35.480
Come on.

00:35.640 --> 00:36.820
Close the pit.

00:38.080 --> 00:38.700
Yeah.

00:39.100 --> 00:39.600
Cool.

00:39.600 --> 00:40.640
Oh, is this?

00:40.660 --> 00:40.880
Okay.

00:40.880 --> 00:41.780
This is actually water.

00:41.780 --> 00:43.620
So DEF CON is not going to poison me.

00:44.200 --> 00:45.460
Are we doing this now?

00:45.460 --> 00:46.300
Like while?

00:47.460 --> 00:48.420
Is this recording?

00:48.420 --> 00:50.220
Yeah, this better be.

00:51.100 --> 00:51.800
No, it's all.

00:51.800 --> 00:52.760
Is this recording?

00:53.580 --> 00:54.020
Yeah.

00:54.020 --> 00:54.620
Okay.

00:54.660 --> 00:55.720
Can we do it anyway?

00:56.180 --> 00:56.820
Okay.

00:56.820 --> 00:59.160
Not allowed to drink on camera or something.

00:59.160 --> 00:59.500
Okay.

00:59.500 --> 01:00.920
Here, you do your thing.

01:02.380 --> 01:03.520
I haven't done it.

01:04.000 --> 01:04.580
Okay.

01:04.580 --> 01:07.620
So you don't want to explain the whole like.

01:07.900 --> 01:14.680
So DEF CON has a history of new people doing speakers and doing a shot when they do that.

01:14.960 --> 01:16.080
So this is a new speaker.

01:16.080 --> 01:17.140
So we're going to do a shot.

01:17.460 --> 01:18.220
Yes.

01:18.860 --> 01:19.660
Shots.

01:19.880 --> 01:21.560
We can we can turn that down too.

01:21.560 --> 01:22.120
Yeah.

01:22.180 --> 01:24.520
So this is water, by the way.

01:24.520 --> 01:27.740
So you don't have to be pressured into actually drinking whatever that is.

01:27.740 --> 01:29.260
So it's actually all water.

01:29.260 --> 01:30.300
Oh, I mean, it's all water.

01:30.300 --> 01:30.540
Right.

01:30.540 --> 01:33.280
So this is Bruno's first talk at DEF CON, which is awesome.

01:33.280 --> 01:36.780
And I think it's, I don't know, my 21st talk, but I've never gotten to do this.

01:36.780 --> 01:37.740
So very cool.

01:37.820 --> 01:38.320
Cheers.

01:44.870 --> 01:45.510
Refreshing.

01:45.850 --> 01:46.390
All right.

01:46.390 --> 01:47.550
Now we can start.

01:48.170 --> 01:48.570
Yeah.

01:48.570 --> 01:50.150
So thank you for coming to the talk.

01:50.150 --> 01:57.490
My name is Joe Grand and I am a hardware hacker and I like hacking on things.

01:57.610 --> 02:01.170
And yeah, I love going to DEF CON.

02:01.170 --> 02:03.930
So that's me.

02:04.210 --> 02:04.750
Yeah.

02:04.750 --> 02:05.510
And I'm Bruno.

02:05.510 --> 02:07.090
I'm from Germany.

02:07.270 --> 02:11.030
Was the first time to went to DEF CON two years ago.

02:11.190 --> 02:14.590
And now I'm first time on the stage, as you have seen.

02:14.590 --> 02:16.990
And yeah, really excited about it.

02:17.190 --> 02:17.730
Yeah.

02:17.730 --> 02:24.070
So this this presentation is about a project that we did together to reverse engineer the Roboform password generator.

02:24.070 --> 02:25.850
And we'll get into all of the details.

02:25.850 --> 02:28.690
But the the presentation is is about hacking time.

02:28.830 --> 02:31.350
And this is not a sensational talk.

02:31.350 --> 02:33.510
We don't have a name for our discovery.

02:33.730 --> 02:38.710
But it really kind of shows the problems that we face.

02:38.710 --> 02:41.470
I guess the the advantages that we face if we're hackers.

02:41.690 --> 02:48.630
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.

02:48.690 --> 02:53.950
So we're not the first to hack time, even though we would like to think that we are.

02:54.210 --> 02:55.510
So we have some examples.

02:55.510 --> 02:56.390
I don't even remember.

02:56.390 --> 02:57.190
Which one is this?

02:57.190 --> 02:58.050
Oh, yeah, the time machine.

02:58.050 --> 02:58.830
Has anyone read this?

02:58.830 --> 03:01.110
I know DeathVeggie has probably read the time machine.

03:01.290 --> 03:02.550
Yes, okay.

03:02.550 --> 03:03.890
Has anybody else read this?

03:04.170 --> 03:09.510
Yeah, it was sort of like the first mention, right, of like traveling back in time to change something else.

03:10.070 --> 03:13.290
Of course, there are so many things of people hacking time.

03:13.290 --> 03:14.390
I chose a couple.

03:14.430 --> 03:15.630
I probably missed some.

03:15.890 --> 03:17.430
Anybody guess what?

03:17.890 --> 03:19.250
Is that even playing?

03:19.390 --> 03:20.950
I can't I can't see from here.

03:21.230 --> 03:22.370
Oh, it's playing now.

03:22.370 --> 03:24.470
Anybody guess what it is before the words come up?

03:25.330 --> 03:26.110
Did did you cheat?

03:26.110 --> 03:26.870
Is it already?

03:27.990 --> 03:29.010
Oh, no, it's already up there.

03:29.010 --> 03:29.950
Okay, Doctor Who, yeah.

03:29.950 --> 03:32.490
So, um, Time Lords, of course.

03:33.250 --> 03:36.610
Put this one in for for LeapBunny of the hardware hacking village.

03:36.690 --> 03:38.430
So back to the future, of course, right?

03:38.430 --> 03:39.150
Hacking time.

03:39.270 --> 03:43.130
And my personal favorite, which is why I'm wearing the T-shirt, is Hacker Man.

03:43.130 --> 03:44.810
Has anybody seen Kung Fury?

03:45.050 --> 03:47.570
Woo, yeah, like ten people.

03:47.570 --> 03:48.130
Yeah, awesome.

03:48.130 --> 03:49.610
Oh, there's Jesse back there.

03:49.610 --> 03:53.570
Um, yes, Kung Fury, Hacker Man is the star of the show.

03:53.570 --> 03:58.870
So, hacking time to go back and do all sorts of stuff that needed to be properly completed.

03:59.630 --> 04:01.190
Um, what have I missed?

04:01.690 --> 04:04.810
Am I like are we grossly misrepresenting hacking time?

04:04.810 --> 04:05.770
Is there any other?

04:07.230 --> 04:08.430
What was it?

04:08.890 --> 04:09.830
The what?

04:10.610 --> 04:11.750
The tenant?

04:11.970 --> 04:13.050
The tenant.

04:13.830 --> 04:14.130
Okay.

04:14.150 --> 04:15.390
Star Trek?

04:15.390 --> 04:15.910
Star Wars?

04:15.910 --> 04:16.470
I don't know.

04:16.470 --> 04:17.290
Nobody's?

04:17.410 --> 04:18.330
No Star Wars?

04:18.330 --> 04:19.430
Star Trek is, yeah.

04:19.430 --> 04:21.190
So, okay, so there's a lot of hacking time, right?

04:21.190 --> 04:22.150
We're not the first.

04:22.250 --> 04:27.530
Um, this thing that we found is kind of related to random number generators.

04:27.530 --> 04:32.710
Pseudo random number generators were also not the first people to discover a poorly seeded pseudo random number generator.

04:32.790 --> 04:36.670
Um, we've known about this as a security problem for a long time.

04:37.110 --> 04:39.770
But it still persists over and over again.

04:39.770 --> 04:49.690
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.

04:50.270 --> 04:57.410
Yeah, so the generating random numbers is a complex problem for programmers.

04:57.410 --> 05:05.250
And to really generate true random numbers, you will need some type of entropy source.

05:05.390 --> 05:17.010
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.

05:17.730 --> 05:23.010
And on the opposite of that, there's these pseudo random number generators.

05:23.010 --> 05:27.530
And even they work with a seed.

05:27.530 --> 05:37.590
So with the seed in place, you will always generate the same sequence of random bytes with the same seed.

05:37.910 --> 05:52.390
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.

05:53.710 --> 06:02.490
Yeah, and I guess this is a known kind of issue with security and cryptography and generating random numbers being hard.

06:03.270 --> 06:08.350
It hasn't really been solved, besides using some of those entropy sources that are better.

06:08.350 --> 06:09.750
But that's not really a practical thing.

06:09.750 --> 06:13.710
So this is even like a CWE, you know, a commonly known vulnerability.

06:13.710 --> 06:19.830
If you're designing systems that have some sort of secure element, you would probably want to study some of this stuff, right?

06:19.830 --> 06:25.170
So it's sort of, I feel like everybody in the security community probably knows these things, but maybe not.

06:26.210 --> 06:33.010
But if you're selling a piece of software that is sold as a secure thing, you would probably want to know these things.

06:33.470 --> 06:40.350
So here is like with CWE, this is one of many about pseudorandom number generators being these deterministic generators, right?

06:40.350 --> 06:46.570
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.

06:47.210 --> 06:49.410
So here, I can't even see it on here.

06:49.410 --> 06:53.610
So yeah, it's just sort of highlighting the main things about pseudorandom number generators being deterministic.

06:54.110 --> 07:00.810
We recommend maybe like, don't use time as a seed, because time is a known value.

07:00.810 --> 07:10.650
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.

07:10.650 --> 07:13.390
And that's what we can take advantage of as we're hacking on things.

07:16.610 --> 07:22.030
So even though many programmers know it's a really bad thing to do, it still happens.

07:22.030 --> 07:26.410
And here are some examples like where it happens.

07:26.470 --> 07:39.190
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.

07:39.190 --> 07:45.450
So really reducing the entropy so you can easily guess the seed.

07:45.550 --> 07:49.030
Same with the router from D-Link.

07:49.030 --> 08:10.010
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.

08:10.390 --> 08:12.130
Then there's QTPath.

08:12.130 --> 08:16.470
I think it's the default Unix password manager.

08:16.590 --> 08:23.530
And this one was actually really bad because it not even used the time but the milliseconds.

08:23.650 --> 08:31.010
So in the end, it came down to 1000 possible seeds, which were then used to generate these passwords.

08:32.350 --> 08:37.270
Another example, the Kaspersky password manager also using the time.

08:37.270 --> 08:56.830
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.

08:56.830 --> 09:03.190
So you could go to the door and then brute force the key just in a couple of seconds.

09:04.130 --> 09:09.150
And Milksat, I think this one was also...

09:10.490 --> 09:15.450
there was a fallback for some operating systems which also use time.

09:15.450 --> 09:22.030
And then this one was used to generate private keys for Bitcoin, Bitcoin privacy keys.

09:22.170 --> 09:30.350
And then, yeah, they got generated and I think swiped the wallets like two years ago or one year ago.

09:30.350 --> 09:33.130
So yeah, really, really bad.

09:33.130 --> 09:38.330
And yeah, then there's RoboForm, where we talk about today.

09:38.330 --> 09:42.310
Yeah, and this is just a sampling, but you can see the years go back to 1995.

09:42.370 --> 09:46.170
And it's not just software, it's not hardware, it's web stuff.

09:46.170 --> 09:48.290
And that's what's really interesting about this.

09:48.290 --> 09:58.490
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.

09:58.490 --> 09:59.630
And that's sort of what I love to do.

09:59.630 --> 10:05.770
But I also in that same time, have dabbled in reverse engineering software, usually firmware related to hardware.

10:05.770 --> 10:11.750
But it was fun to do a project like this, where we're looking purely at hardware and seeing these implementation problems.

10:11.870 --> 10:15.810
RoboForm is a password generator and password manager.

10:15.990 --> 10:26.890
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.

10:26.890 --> 10:29.490
And there's a lot of different password generators that are out there now.

10:29.570 --> 10:32.050
I'm just quoting directly from their website.

10:32.150 --> 10:35.250
Because I didn't want to say anything that was incorrect and get in trouble.

10:35.330 --> 10:48.370
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.

10:48.370 --> 10:50.550
So yeah, one type of password generator.

10:50.950 --> 10:59.970
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.

11:00.030 --> 11:05.750
And somebody had contacted us and said, Hey, I have a lot of Bitcoin locked.

11:05.750 --> 11:10.890
And I had used the RoboForm password generator to generate my passwords that I then encrypted.

11:11.570 --> 11:14.990
Or did they encrypt the private key with?

11:14.990 --> 11:15.610
Yes.

11:15.610 --> 11:20.490
They had a truecrypt container and there they saved the password for the wallet.

11:20.490 --> 11:21.870
That they had used with RoboForm, right.

11:21.870 --> 11:26.030
So they generated the RoboForm password, saved it in a text file, encrypted it with truecrypt.

11:26.030 --> 11:27.770
That partition got corrupted.

11:27.770 --> 11:30.890
So he lost his password to the wallet.

11:30.890 --> 11:32.810
So that's sort of how we got into this.

11:32.990 --> 11:39.730
And at first, when he emailed, it was like, what are we going to brute force a 20 character?

11:39.730 --> 11:46.210
He thought it was 20 character special characters, numbers, letters, like computationally infeasible to brute force, right?

11:46.210 --> 11:47.530
We're just not going to do that.

11:47.870 --> 11:49.450
So I remember turning them down.

11:49.650 --> 11:51.670
And then Bruno was like, well, wait a second.

11:51.670 --> 11:53.830
Like it was a year later, I think he contacted us again.

11:53.830 --> 11:56.890
And Bruno was like, well, I had worked on this other project.

11:56.890 --> 11:58.710
Maybe we should take a look at it.

11:58.710 --> 11:59.770
Do you want to tell that?

11:59.970 --> 12:00.290
Yeah.

12:00.290 --> 12:03.350
So it was a password generator, not very popular.

12:03.350 --> 12:05.350
It was called Wireless Key Generator.

12:05.350 --> 12:09.350
And like the name suggested, it was to create a password for your Wi-Fi.

12:09.910 --> 12:15.370
And we had a customer before who used exactly that one and also encrypted his wallet with it.

12:15.370 --> 12:21.570
So we had a look back then and it just looked so crappy that I thought, OK, this can't be secure.

12:22.170 --> 12:24.470
And it turned out it wasn't.

12:24.470 --> 12:27.570
So it was, I think, using Visual Basic 6.

12:27.570 --> 12:38.930
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.

12:38.930 --> 12:43.890
You have just an array of two million values that are pre-computed random.

12:43.890 --> 12:50.950
And then the seed only defines like the start position of that list.

12:50.990 --> 12:59.810
So it will just, after two million generations, no matter what seed, you will always have the generated all possible values.

12:59.810 --> 13:02.250
So this one was really, really bad.

13:02.410 --> 13:02.970
Yeah.

13:02.970 --> 13:10.350
And this, and this, even though like we got into this because of cryptocurrency, like this is by no means a cryptocurrency singular problem.

13:10.350 --> 13:16.450
Anybody that has used this version of RoboForm and prior versions of RoboForm are susceptible to this type of attack.

13:16.450 --> 13:19.810
Actually, how many of you have even heard of RoboForm?

13:20.670 --> 13:21.290
Okay.

13:21.290 --> 13:23.390
Like maybe a quarter.

13:23.390 --> 13:25.730
How many of you actually use RoboForm?

13:27.010 --> 13:30.730
One, two, three, four, five.

13:30.730 --> 13:31.530
That's pretty good.

13:31.530 --> 13:32.210
Okay.

13:32.210 --> 13:35.250
Um, did you use it in 2015 or earlier?

13:35.670 --> 13:37.110
Now we're like really good.

13:37.110 --> 13:37.890
One.

13:38.090 --> 13:38.590
Okay.

13:38.590 --> 13:40.190
Have you changed your passwords?

13:40.410 --> 13:40.910
Okay.

13:40.910 --> 13:41.090
Yeah.

13:41.090 --> 13:41.690
Cool.

13:41.690 --> 13:43.930
I guess maybe you will after the talk, but yeah, cool.

13:43.930 --> 13:44.450
Okay.

13:44.450 --> 13:45.150
Um, right.

13:45.150 --> 13:52.410
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.

13:53.150 --> 14:02.090
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.

14:02.950 --> 14:08.950
So all we have really is the changelog, anything that the vendor decides to make public changelog and, and the binaries.

14:08.950 --> 14:11.930
Um, but Bruno had noticed this change here.

14:13.390 --> 14:13.930
Yeah.

14:13.930 --> 14:20.270
So we looked at the time and then said, okay, it needs to be version, I think 7.9 or something.

14:20.490 --> 14:31.150
And then, um, we saw after that version, um, there was an entry which says increase randomness of generated passwords, which is pretty weird.

14:31.150 --> 14:36.570
That's pretty weird for a password generator to say, wouldn't you imagine all of them would be, but that was the clue.

14:36.570 --> 14:47.250
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.

14:47.250 --> 14:49.910
So we kind of looked and seen like, okay, what did anything change?

14:49.910 --> 14:52.550
And that's when we saw this increased randomness of generated password.

14:52.550 --> 14:58.730
We go, wait, are all of the prior versions doing something that is not random or less random or weaker?

14:58.750 --> 15:02.210
And it just happened that the version that we were looking at fell into that.

15:02.210 --> 15:05.150
So this applies to everything up to this version.

15:05.450 --> 15:13.030
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.

15:13.870 --> 15:14.550
Um, okay.

15:14.550 --> 15:16.710
So let's get into the process of what we did.

15:16.730 --> 15:18.910
Um, Bruno lives in Germany.

15:18.910 --> 15:20.690
I live in Portland, Oregon.

15:20.910 --> 15:24.590
Uh, and we did a lot of remote work, which was super fun.

15:24.950 --> 15:29.510
And for those who know me, like I don't normally work with a lot of people at one time.

15:29.510 --> 15:31.990
I like to sort of hole up and just hack on stuff alone.

15:31.990 --> 15:34.770
So it's like finding people to work with is really cool.

15:34.830 --> 15:40.230
Um, and it was a lot of fun, like these late night zoom sessions, sharing screens, like hacking on stuff.

15:40.230 --> 15:43.650
We did end up doing some stuff together in person at a conference.

15:43.710 --> 15:47.610
Um, it was like, I don't know, 24 or 30 hours straight or something.

15:47.610 --> 15:50.350
And then I got on the airplane and fell asleep the entire time.

15:50.350 --> 15:55.550
So it was really like a fun example of like true hacking together.

15:55.550 --> 15:56.250
It was really cool.

15:56.250 --> 16:00.710
So the we basically started with some memory analysis and we'll explain each of these steps.

16:00.810 --> 16:07.930
Uh, memory analysis first, static analysis, uh, dynamic analysis, and then we built some custom wrapper to handle all of that.

16:07.930 --> 16:11.790
So if you're from the software world, you're probably like, oh, this is like a totally normal thing to do.

16:11.790 --> 16:17.930
But from a hardware world, it's like it, it, it was interesting to be able to do it in like a full process.

16:17.930 --> 16:21.730
Kind of go through everything instead of just dabbling with like, you know, one, one tool or the other.

16:21.770 --> 16:26.690
So that's, you know, we kind of go through this process and then, um, hopefully we profit.

16:27.810 --> 16:28.230
Okay.

16:28.230 --> 16:30.310
So let's go into the demo of things.

16:30.310 --> 16:34.990
Um, we were going to do live demos, but Defcon really was like, you should just record your demos.

16:34.990 --> 16:36.890
And we know the demo gods, blah, blah, blah.

16:36.890 --> 16:38.490
But I like to live on the edge.

16:38.550 --> 16:42.010
Um, but I finally gave in and said, okay, we're just recording these.

16:42.010 --> 16:48.630
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.

16:48.650 --> 16:52.190
So Bruno is going to talk about Cheat Engine and we'll go into all the other steps.

16:52.390 --> 16:52.710
Yeah.

16:52.710 --> 16:58.110
So first we used Cheat Engine and it's originally made for games.

16:58.370 --> 17:02.910
I personally use it as a kit for, um, cheating my favorite single player game.

17:02.910 --> 17:09.890
So I didn't have to grind hundreds of hours to get my gear and you can actually also use it for hacking.

17:10.090 --> 17:13.910
So, um, I hope the video is playing now.

17:15.650 --> 17:16.590
Is it playing?

17:16.590 --> 17:17.930
We can't see that it's playing.

17:17.930 --> 17:18.310
So yes.

17:18.310 --> 17:18.530
Okay.

17:18.530 --> 17:22.590
Dean is going to be our video, our video thumbs upper for every video.

17:22.590 --> 17:23.450
Is that okay?

17:23.450 --> 17:23.970
Perfect.

17:23.970 --> 17:24.230
Okay.

17:24.230 --> 17:25.050
Dean says, okay.

17:25.050 --> 17:27.210
So what we did here is a very simple.

17:27.210 --> 17:35.170
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.

17:35.730 --> 17:41.050
And here we just searched for the generated password and we found it.

17:41.610 --> 17:55.710
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.

17:55.710 --> 18:02.230
Um, because there's a risk involved if you have plain text passwords in the memory, but, um, RoboForm doesn't.

18:02.490 --> 18:04.450
And that's already good.

18:04.450 --> 18:07.630
And you can actually see that it's, um, found twice.

18:07.710 --> 18:10.770
That's one time for the GUI.

18:10.770 --> 18:18.170
So what is displayed and one time is, um, the, in the memory of the internal logic, um, we found it.

18:18.330 --> 18:18.750
Yeah.

18:18.750 --> 18:21.470
And right when we saw that, we're like, oh wait, it's in the clear.

18:21.570 --> 18:22.110
Perfect.

18:22.110 --> 18:29.670
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.

18:29.710 --> 18:32.670
But knowing that was there, we're like, all right, now it's in memory.

18:33.530 --> 18:38.050
Let's try to find out what routine is actually putting it in the memory and then kind of working backwards.

18:38.050 --> 18:45.570
So we could then figure out where the actual password generator routine was happening within this entire blob of stuff.

18:45.570 --> 18:48.490
Because RoboForm, again, does not just generate passwords.

18:48.490 --> 18:51.910
There's all this other stuff that we had to kind of dig through to find the right thing.

18:52.130 --> 18:53.390
So we use Ghidra.

18:53.390 --> 18:54.370
Thank you NSA.

18:54.370 --> 18:56.490
I'll continue to thank the NSA for that.

18:56.550 --> 18:58.710
One of the few things I'll thank them for.

18:58.710 --> 19:00.350
Or maybe the only thing, actually.

19:00.770 --> 19:08.570
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.

19:08.570 --> 19:08.770
Okay.

19:08.770 --> 19:09.250
Dean says, yeah.

19:09.250 --> 19:20.050
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.

19:20.050 --> 19:22.630
And we would change parameters and look again.

19:22.630 --> 19:27.030
And like, uh, oh, sorry, with Ghidra, we didn't, we were just looking at the, at the static, static side.

19:27.030 --> 19:28.110
So things weren't changing.

19:28.170 --> 19:34.830
Um, but we basically narrowed it down to a point and Bruno found this first of like, that called a system time, right?

19:34.830 --> 19:35.590
It was like, get time.

19:35.590 --> 19:36.870
I think it's time 64.

19:37.110 --> 19:43.930
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.

19:43.930 --> 19:45.930
So seeding the, the pseudorandom number generator.

19:45.950 --> 19:47.630
That was a pretty big giveaway.

19:47.630 --> 19:54.610
And there was a couple other places where there was the pseudorandom number generator being seeded, but there was no other call to time.

19:54.610 --> 20:00.690
And we basically figured out that this section was the section that we were actually interested in.

20:00.690 --> 20:12.790
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.

20:12.790 --> 20:26.570
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.

20:26.570 --> 20:31.070
So if you hit the button multiple times, they basically added some additional manipulation in there.

20:31.070 --> 20:34.450
So you can press the button multiple times within a second and not get the same password.

20:35.330 --> 20:39.870
And they basically are just adding a fixed constant or are they subtracting?

20:39.870 --> 20:42.510
Are they subtracting a subtraction?

20:42.510 --> 20:43.890
Yeah, something like that.

20:43.930 --> 20:44.890
Yeah, they were subtracting.

20:44.890 --> 20:53.130
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.

20:53.350 --> 20:57.190
So you can still generate the password if you know all of the time.

20:57.190 --> 21:01.090
It was just so they couldn't, you know, duplicate the same time in that same button press.

21:01.090 --> 21:03.350
So a pretty weak type of manipulation.

21:03.350 --> 21:08.150
Then it calls SRAND and then it goes into the actual password generation routine.

21:08.310 --> 21:17.670
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.

21:17.670 --> 21:23.970
Um, but it was so complicated when we started digging into the function that gets called after that was just ridiculous.

21:23.970 --> 21:25.730
And we didn't really want to go through that process.

21:26.150 --> 21:35.830
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.

21:37.790 --> 21:49.570
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.

21:49.770 --> 21:59.610
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.

21:59.610 --> 22:01.970
So then we could see if we could manipulate it.

22:02.610 --> 22:05.830
And this is going to be interesting because again, I can't see stuff here.

22:05.830 --> 22:07.810
So, we're going to start it.

22:09.290 --> 22:15.690
And I'm pretty sure what I'm showing first is, uh, there's a bunch of break points that we set.

22:15.690 --> 22:21.630
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.

22:21.630 --> 22:26.650
We basically set the break point that we care about at that same spot that I just showed.

22:26.650 --> 22:28.450
So when the system time is being called.

22:31.160 --> 22:35.820
And then I'm probably running the, running the, the, the debugger.

22:35.820 --> 22:38.420
Eventually the password generator is going to start.

22:38.420 --> 22:39.460
The GUI is going to start.

22:39.740 --> 22:43.340
And even when you first start the GUI, there's already one password that's in there.

22:43.340 --> 22:46.180
So it actually already runs the password generator once.

22:46.300 --> 22:49.000
Uh, so that, that manipulation has already happened once.

22:49.000 --> 22:51.380
Which for us, threw us off again a little bit.

22:52.640 --> 22:54.900
And I think it's eventually going to stop.

22:54.900 --> 23:02.440
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.

23:03.060 --> 23:08.140
Plus, like, whatever manipulation maybe there was from the, from the call before.

23:08.980 --> 23:10.980
And has it stopped yet?

23:10.980 --> 23:12.300
Is it just sitting still?

23:13.140 --> 23:14.320
Still going.

23:14.420 --> 23:14.940
Okay.

23:14.940 --> 23:30.860
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.

23:30.880 --> 23:36.500
And that's the one that we're going to end up redoing once we let the system generate some more.

23:36.940 --> 23:38.040
Has it stopped?

23:38.680 --> 23:39.400
Okay.

23:39.780 --> 23:41.920
So this is what we care about out of all of that.

23:41.920 --> 23:42.680
The two arrows.

23:42.680 --> 23:47.760
There's one arrow pointing to EAX and then there's one arrow pointing to the password that's been generated.

23:47.760 --> 23:50.780
So those two things are completely intertwined.

23:50.780 --> 23:57.620
Anytime we enter the EAX value of that particular time, manipulated time value, it's going to generate that particular password.

24:00.400 --> 24:09.180
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.

24:09.700 --> 24:21.300
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.

24:21.780 --> 24:25.260
I'm just going to watch your reactions so I'll know when it actually happens.

24:26.460 --> 24:29.560
When it does go ooh or something.

24:39.520 --> 24:40.940
The tension.

24:42.180 --> 24:43.280
Ooh, right?

24:43.280 --> 24:47.460
So now we have regenerated a password.

24:47.460 --> 24:54.320
In theory with a properly, you know, computationally cryptographically secure system, that shouldn't happen.

24:54.320 --> 25:04.540
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.

25:04.560 --> 25:13.440
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.

25:14.540 --> 25:16.040
And this was, this was pretty cool.

25:16.040 --> 25:17.800
Oh and this is the hacking time, right?

25:17.800 --> 25:18.700
So now do you get it?

25:18.700 --> 25:18.880
Right?

25:18.880 --> 25:20.320
We're hacking time to change that.

25:20.320 --> 25:21.600
So that was, yeah.

25:22.500 --> 25:30.540
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.

25:30.780 --> 25:33.680
And we did it in I think just, what was it?

25:33.680 --> 25:34.980
Visual, I don't even remember.

25:34.980 --> 25:37.840
It was in Visual Studio, yeah Visual Studio.

25:37.840 --> 25:42.380
And we did it in C, which I know is like taboo now, can't use C, but I use C.

25:42.380 --> 25:43.680
And I use assembly language.

25:43.680 --> 25:52.700
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.

25:52.820 --> 25:57.940
Um, and seeing assembly language really for sort of hardware hackers, that's like, that's what you want to see.

25:57.940 --> 26:00.720
Um, because that's the type of level that we work with.

26:01.060 --> 26:02.600
So here's the wrapper code.

26:02.720 --> 26:06.060
Um, I have a couple slides sort of scrolling through the code.

26:06.060 --> 26:15.400
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.

26:15.440 --> 26:20.080
Uh, they're also on my website which is grandideastudio.com.

26:20.080 --> 26:22.960
I put them on my, that's like my formal website.

26:22.960 --> 26:28.280
But everything is there so you could um, already work with it and somebody already has, which we'll talk about.

26:28.280 --> 26:31.940
So yeah, this code basically is um, let's see.

26:32.280 --> 26:37.720
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.

26:39.320 --> 26:43.680
And then it should be scrolling down a little bit but kind of showing some functions as we're, as we're getting ready.

26:43.680 --> 26:49.180
We're basically, we need to have code that's gonna hook into the DLL so it has to search through the DLL.

26:49.260 --> 26:51.980
This is not an exported function.

26:52.800 --> 26:54.140
Is that the right terminology?

26:54.140 --> 26:57.620
It's not a function that you're normally supposed to access from the outside world, right?

26:57.620 --> 26:58.280
I see nodding.

26:58.280 --> 27:04.760
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.

27:04.760 --> 27:09.140
So we had to search for a known signature string that we found just by looking in the debugger.

27:09.440 --> 27:15.220
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.

27:15.220 --> 27:17.420
So we're kind of searching through for that.

27:20.280 --> 27:21.380
And let's see, what else?

27:21.380 --> 27:24.840
We're gonna look for the, yeah, so these are all the functions and set system time.

27:24.840 --> 27:26.200
I think here's the real code.

27:26.660 --> 27:33.560
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.

27:38.910 --> 27:42.550
And then, oh, there's also, there's some other constants I'll get into.

27:42.550 --> 27:44.970
There's like a bunch of weird stuff that we had to end up doing to make it work.

27:44.970 --> 27:49.850
It seems, it seemed easy in theory of like, oh, let's just hook into this DLL and like call the code.

27:49.870 --> 27:53.450
But things have to be prepared before that to actually make it work.

27:55.810 --> 28:00.510
So where we are in here, is it still scrolling or can you, still scrolling and now it stopped?

28:01.570 --> 28:02.190
Okay.

28:02.190 --> 28:11.370
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.

28:11.370 --> 28:16.350
And that's the exact same stuff that we saw um, in x64 debug and in Ghidra.

28:16.350 --> 28:18.830
Uh, the upper memory is gonna change though, right?

28:18.830 --> 28:22.030
Because we don't know where the DLL is gonna be loaded in memory, so we kinda know.

28:22.030 --> 28:25.310
But being able to search through it, uh, automatically seemed to make sense.

28:25.530 --> 28:27.370
Then there's a whole bunch of different parameters.

28:27.370 --> 28:31.650
I don't know if you noticed on that RoboForm screen, but there's one for, do you want to use uppercase, lowercase?

28:31.650 --> 28:33.230
Do you want to use letters?

28:33.310 --> 28:34.490
Do you want to use numbers?

28:34.490 --> 28:35.530
Do you want special characters?

28:35.530 --> 28:42.050
Those are all individual settings that get fed into that password generator routine after the pseudorandom number is generated.

28:42.050 --> 28:48.490
So we had to figure out how those parameters were configured before we could actually call the, the function that was generating the password.

28:48.550 --> 28:53.170
And that took a lot of trial and error and a lot of debugging and um, as it should be, right?

28:53.170 --> 28:55.310
If it was too easy, it wouldn't be that much fun.

28:55.350 --> 29:10.050
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.

29:11.270 --> 29:13.170
And then we get to the cool stuff.

29:13.530 --> 29:25.910
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.

29:25.910 --> 29:33.510
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?

29:33.510 --> 29:37.770
Or over and over again and then finally it's like we're going to try another thing, try another thing.

29:37.770 --> 29:40.510
And then it finally worked and we generated a password, we're like holy crap.

29:40.670 --> 29:47.770
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.

29:47.770 --> 29:55.810
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.

29:55.970 --> 30:01.850
And uh, turns out it wasn't the most efficient way to do it but it definitely like was enough to generate the passwords.

30:02.810 --> 30:07.130
So we had all of our passwords, is this, is this actually showing the password generator?

30:07.130 --> 30:07.510
Oh it is.

30:07.510 --> 30:07.990
Okay, right.

30:07.990 --> 30:09.410
So we actually got it working.

30:09.510 --> 30:14.710
Um, this is generating all of the passwords starting from whatever 2013 date range we wanted.

30:14.930 --> 30:17.790
Uh, at about a hundred passwords per second.

30:17.870 --> 30:28.030
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.

30:28.030 --> 30:34.210
Yeah, I think you had the M2 SSD so Windows really limits the, the amount of time.

30:34.210 --> 30:35.690
Yeah, there was like disk access, right?

30:35.690 --> 30:36.390
Yeah.

30:36.390 --> 30:39.290
So I, I needed like three or four days.

30:39.290 --> 30:40.350
Yeah, to do the list, right?

30:40.350 --> 30:52.230
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.

30:52.490 --> 30:55.610
And we're like, oh my God, is this like, is this our coding problem?

30:55.610 --> 30:56.850
Are the parameters wrong?

30:56.850 --> 30:58.010
Are the dates wrong?

30:58.010 --> 31:01.270
Uh, we kept calling this guy, Michael and um...

31:01.270 --> 31:01.690
Yeah.

31:01.690 --> 31:03.590
And he was getting like pretty annoyed.

31:03.730 --> 31:09.570
I was talking to him and he was like, in the end he was like, oh no, not again, this guy.

31:09.570 --> 31:11.550
Yeah, he's like, oh, they're bugging us again.

31:11.550 --> 31:15.790
And like he, and then at one point he was like, I'm going to see if I can remember it through hypnosis.

31:16.330 --> 31:18.550
Uh, and we're like, oh boy, now we're in trouble.

31:18.810 --> 31:30.530
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.

31:30.970 --> 31:32.130
I think some...

31:32.130 --> 31:36.990
He told us he used specials as his original password, but there were some which didn't use specials.

31:36.990 --> 31:37.410
Which didn't, right.

31:37.410 --> 31:40.490
So he was so sure it had special characters, but it turns out there was a couple that didn't.

31:40.490 --> 31:47.350
So we're like, let's just regenerate without special characters because that changes the entire password that comes out.

31:47.390 --> 31:49.090
So we finally did that.

31:49.090 --> 31:54.950
And Bruno sends me a message like maybe like 20 minutes after we started running that list.

31:54.950 --> 31:55.390
Yeah.

31:55.410 --> 31:57.470
It's very exciting.

31:57.470 --> 31:57.850
Yeah.

31:57.850 --> 32:01.410
I also didn't thought it would happen because he was so sure.

32:01.410 --> 32:05.370
He said like, nah, it was special characters, like 99%.

32:05.370 --> 32:07.670
And then we got it.

32:07.670 --> 32:08.270
And then we got it.

32:08.270 --> 32:08.450
Yeah.

32:08.450 --> 32:10.750
So here we had to block out all this.

32:10.790 --> 32:11.510
Thank you.

32:17.340 --> 32:30.580
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.

32:30.740 --> 32:35.680
But we can see the password is actually generated May 15th, 2013.

32:35.680 --> 32:40.600
And that was actually a little earlier than we thought also based on the transaction history.

32:40.600 --> 32:44.740
But it could also be that he pressed the button twice, right?

32:44.740 --> 32:45.180
Yeah, right.

32:45.180 --> 32:49.700
He could have pressed the button enough to like change where that manipulation was happening.

32:49.700 --> 32:57.680
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.

32:57.800 --> 32:58.120
Yes.

32:58.120 --> 32:58.580
And it right.

32:58.580 --> 33:01.660
So it was subtracting a negative number and that's what threw us off.

33:01.660 --> 33:09.420
We thought it was adding or we thought it was just subtracting the number, but it was subtracting a negative number, which is adding.

33:09.700 --> 33:13.980
So we were going the wrong way in time to try to create our list, but ultimately it ended up working.

33:13.980 --> 33:15.320
But it was pretty dark for a while.

33:15.320 --> 33:18.520
There was a couple of days when it was like, we just went through all this reverse engineering work.

33:18.520 --> 33:19.640
We can generate all these passwords.

33:19.940 --> 33:22.700
And it was like, is all of this work going to go wasted?

33:23.280 --> 33:25.920
Uh, I mean, I guess it wouldn't be wasted anyway because other people could use it.

33:25.920 --> 33:28.560
But like from our perspective, it would have been a bummer.

33:29.160 --> 33:44.620
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.

33:44.900 --> 33:48.000
Um, so how many of you have seen our, our video on this?

33:48.360 --> 33:49.180
Oh wow.

33:49.180 --> 33:50.980
That's like, that's impressive.

33:50.980 --> 33:52.200
That gets like a quarter maybe.

33:52.200 --> 33:52.920
That's good.

33:52.920 --> 33:55.100
Um, everyone else, hopefully you watch it.

33:55.140 --> 34:03.800
And uh, these are just some behind the scenes of what it takes to film videos like without just using your, you know, iPhone.

34:03.860 --> 34:13.920
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.

34:13.920 --> 34:17.400
So we started kind of our, our process in the video in Germany.

34:17.400 --> 34:21.780
We did interviews, um, and then flew.

34:21.780 --> 34:23.220
Oh, here's our film crew by the way.

34:23.220 --> 34:33.160
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.

34:33.160 --> 34:36.380
Like he didn't know that by that point we had done it.

34:36.380 --> 34:39.620
Um, so he was like, Oh God, now they're just going to ask more things.

34:39.840 --> 34:41.480
Um, so it was actually pretty funny.

34:41.480 --> 34:44.740
We're not going to reveal like the full thing cause that's why you should watch the video.

34:44.740 --> 34:48.620
It's way more exciting when you watch it there instead of on a tiny screen here.

34:48.780 --> 34:59.520
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.

34:59.660 --> 35:12.360
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.

35:12.360 --> 35:13.360
So this stuff is really cool.

35:13.360 --> 35:23.640
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.

35:23.660 --> 35:28.460
Uh, I probably shouldn't have documented that, but definitely not safe.

35:32.080 --> 35:39.800
So yeah, um, once we found this issue and we solved our problem, we're like, awesome.

35:39.800 --> 35:39.980
Okay.

35:39.980 --> 35:41.040
Michael's taken care of.

35:41.040 --> 35:42.020
We recovered his Bitcoin.

35:42.020 --> 35:42.680
Yay.

35:42.700 --> 35:50.580
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.

35:50.580 --> 35:56.160
And that's equally as important as that's equally as important as the success of the project, right?

35:56.160 --> 36:01.300
If you just hoard all your information and not share it with anybody else, what's the point of hacking?

36:01.300 --> 36:10.640
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.

36:10.780 --> 36:14.340
So we solved this problem and we're like, all right, how are we going to disclose this?

36:14.500 --> 36:21.840
You know, there's responsible disclosure, um, which I don't really like that term because it implies that not doing that is irresponsible.

36:22.300 --> 36:23.980
Um, and there's all sorts of things.

36:23.980 --> 36:35.840
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.

36:35.840 --> 36:39.980
And now there's a little more kind of ethical dilemma about like how much time do you give a vendor?

36:40.520 --> 36:42.000
Do you tell the vendor?

36:42.120 --> 36:53.940
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.

36:53.940 --> 37:02.840
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?

37:02.840 --> 37:06.000
Like it was scary to not see that.

37:06.280 --> 37:08.020
So we couldn't find it.

37:08.020 --> 37:11.580
We start discussing like what's the, what's the reality of the situation?

37:11.580 --> 37:12.580
Are we going to get sued?

37:12.580 --> 37:19.880
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.

37:20.120 --> 37:24.040
And now they're working with lawyers and maybe they're going to be able to give the talk on Sunday.

37:24.040 --> 37:26.400
Like it's a real risk for, for researchers.

37:26.400 --> 37:32.920
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.

37:33.260 --> 37:35.220
Um, but if it came down to it, we would.

37:35.600 --> 37:39.900
Uh, and I remember also talking to my wife about this of like, should we release this information?

37:39.900 --> 37:43.220
Like I really want to talk about it at DEF CON and do something with Bruno like on stage.

37:43.220 --> 37:45.580
And she's like, like hell of course.

37:45.580 --> 37:46.380
Like you're a hacker.

37:46.380 --> 37:48.900
Like you need to go against these companies and do it.

37:48.900 --> 37:51.800
And if you get sued, at least you'll have given the talk first.

37:53.060 --> 37:55.000
Which I agree with.

37:59.360 --> 38:01.000
So that, that's my little rant.

38:01.060 --> 38:06.740
So um, we reached out to, to Kim Zetter who is a fantastic journalist with cyber security.

38:06.800 --> 38:10.200
Um, and has really been pushing, you know, the good of what hackers can do.

38:10.200 --> 38:15.440
And also has written some books about some like wild state sponsored adversary type of stuff.

38:15.600 --> 38:17.580
Um, and she wants to write about the story.

38:17.580 --> 38:18.460
So we're like, great.

38:18.460 --> 38:23.760
She can reach out to the company and kind of get a sense of how litigious they are, like what's going on.

38:23.800 --> 38:27.500
So she wrote the story, reached out to them to get some comment about our work.

38:27.500 --> 38:30.400
And they basically were like, oh we fixed the problem, not a big deal.

38:30.600 --> 38:33.780
And then she wrote back and was like, well how did you fix the problem?

38:35.500 --> 38:36.220
Nothing.

38:36.420 --> 38:37.140
Crickets.

38:37.460 --> 38:42.360
Um, and I thought that was a really, also another kind of indicative thing.

38:42.360 --> 38:42.500
Right?

38:42.500 --> 38:51.100
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.

38:51.300 --> 38:52.740
Um, which didn't happen.

38:52.740 --> 38:59.640
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.

38:59.900 --> 39:01.000
None of that.

39:01.020 --> 39:04.880
This is, it almost feels like I'm in the 90s again, talking about this stuff.

39:05.100 --> 39:08.240
Um, so she didn't get any, any meaningful comment.

39:08.240 --> 39:10.880
Article came out, no, no comment.

39:10.880 --> 39:12.960
You know, a lot of journalists reached out, nothing.

39:13.080 --> 39:15.800
Um, maybe this is, maybe this is more typical than I think.

39:15.800 --> 39:19.460
But I was really surprised of not getting any sort of feedback.

39:19.720 --> 39:25.260
Uh, and then we decided, okay, article came out, same time, let's release the video and then let's do our Defcon talk.

39:25.260 --> 39:29.240
And I think it's, you know, it's, it's, it's a concern.

39:29.240 --> 39:37.280
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?

39:38.160 --> 39:39.300
That's a lot of people.

39:39.300 --> 39:43.500
That's probably 25, 30 people just in this room.

39:43.520 --> 39:50.380
Um, multiply that by the number of people at Defcon, multiply that by the number of people outside who are also hacking.

39:50.380 --> 39:52.680
Like, is this a significant enough problem?

39:52.680 --> 39:53.760
And vendors know that.

39:53.960 --> 39:56.420
Um, but it is, it is a real thing.

39:57.520 --> 40:08.620
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.

40:10.020 --> 40:11.760
Um, so some future work, right?

40:11.760 --> 40:13.180
So we don't know how they fixed the problem.

40:13.180 --> 40:18.060
Maybe future versions, you know, they say they increased the randomness of generated passwords.

40:18.180 --> 40:19.280
Maybe they did.

40:19.280 --> 40:24.160
We searched through the code, we couldn't find any direct calls to system time.

40:24.160 --> 40:26.140
It could have been obfuscated, we don't know.

40:26.140 --> 40:27.160
Maybe that's future work.

40:27.160 --> 40:31.260
Maybe, maybe not for us, maybe for one of you who go, ooh, let's go dig into this, right?

40:31.260 --> 40:32.920
And see what they fixed.

40:33.120 --> 40:46.480
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.

40:46.480 --> 40:52.560
Almost probably a thousand times faster depending on the machine where we were generating a hundred passwords a second.

40:52.960 --> 40:55.900
Dean was generating 68,000 passwords a second.

40:56.260 --> 40:57.960
Uh, per core.

40:57.960 --> 41:10.960
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.

41:10.960 --> 41:14.800
So you don't have to call system time, you just plop whatever Unix time you want into there.

41:14.960 --> 41:16.020
And then what else did you do?

41:16.020 --> 41:26.380
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.

41:26.720 --> 41:30.640
You're just reseeding the random number generator directly.

41:36.900 --> 41:47.160
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.

41:47.160 --> 41:48.760
Um, and then he made a command line.

41:48.980 --> 41:52.140
Our code you had to like change the parameters, recompile it, run it.

41:52.140 --> 42:07.840
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,

42:07.840 --> 42:10.660
uh, in 2015 for 7.9.14.

42:10.820 --> 42:12.300
And maybe, maybe other stuff.

42:12.300 --> 42:13.920
Who knows what's going to come out of this?

42:17.050 --> 42:18.670
Uh, and a couple of resources.

42:18.670 --> 42:20.090
Again, this, these slides will be available.

42:20.090 --> 42:22.930
These are clickable links, um, but all the code is available.

42:22.930 --> 42:33.070
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.

42:33.070 --> 42:36.790
So that's our story about hacking RoboForm.

42:36.790 --> 42:38.210
Any last words?

42:39.430 --> 42:55.710
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.

42:55.710 --> 43:02.390
So it is probably in many things we haven't checked yet just because we thought, okay, this must be secure.

43:02.390 --> 43:04.650
So yes, widespread, right?

43:04.650 --> 43:06.510
This is not the only thing it's still happening.

43:06.570 --> 43:12.350
Go out there and, and find random number generators and you too can also hack time.

43:12.350 --> 43:13.810
So thank you for coming.

