WEBVTT

00:00.000 --> 00:05.920
A little bit of introduction, I've had the privilege of spending my entire career in free and open source software.

00:05.920 --> 00:08.360
And I'm a manager these days.

00:08.760 --> 00:13.300
So I do this so that my brain doesn't rot completely.

00:14.080 --> 00:19.880
And because I used to be an embedded engineer, and I find this fun.

00:20.100 --> 00:33.780
Also, I'm the co-founder of a small R&D shop in Boston, and we do stuff relating to sound and computers.

00:33.780 --> 00:38.180
So that got me into this strange topic.

00:38.680 --> 00:41.760
Now, usually I talk about hardware hacking.

00:41.760 --> 00:46.240
This is actually part of our HHV track.

00:46.580 --> 00:56.160
And usually there is a humorous obligatory disclaimer to all my talks that will most likely break some hardware while we're playing with it, and it will come out of your pocket.

00:56.160 --> 00:58.020
In this case, we're not breaking anything.

00:58.020 --> 01:06.720
The no liability disclaimer is that there is a lot of stuff here that is adjacent to classified material.

01:06.980 --> 01:10.920
None of what we will be discussing is classified.

01:10.920 --> 01:13.240
It's all coming from open sources.

01:13.540 --> 01:17.320
So that's good, I suppose.

01:19.360 --> 01:24.320
I literally don't know the part that's classified, so I cannot accidentally tell you.

01:27.640 --> 01:30.840
We have quite a bit to go through.

01:30.840 --> 01:31.940
So let's go.

01:33.840 --> 01:38.140
Now, this talk is all about abusing our beloved keyboards.

01:39.840 --> 01:45.700
Keyboards have access to the plain text of what we're so carefully encrypting.

01:45.780 --> 01:49.340
They have access to our passwords before hashing.

01:49.360 --> 01:53.640
It follows we obviously want some exploit action here.

01:53.720 --> 02:01.400
And there is some pretty wild stuff out there, mostly in research more than in active use that we can see.

02:01.400 --> 02:07.720
Of course, we don't know what countries are doing to each other, but we kind of have a sense of what's going on in the industry.

02:09.240 --> 02:18.800
So we cannot tell what the big boys in the Intel community are doing, but it seems like there is plenty of fun going on in academia.

02:19.920 --> 02:21.860
Let's start with something light.

02:22.000 --> 02:31.600
So there is this book, Eric Hasselton, interesting career, trained in neurology, then became a Disney Imagineering executive.

02:31.860 --> 02:36.760
Then he was recruited by General Hayden to run the NSA's R&D department.

02:36.760 --> 02:38.540
This was about 20 years ago.

02:39.660 --> 02:42.600
I can't remember if Clinton or Bush was president.

02:43.460 --> 02:46.980
An original career trajectory, if I ever saw one.

02:47.180 --> 02:52.380
So the first movie connection here is Disney, but the second one is coming from Hasselton's book.

02:54.980 --> 03:00.220
Great book, by the way, absolutely enjoyable to read if you are into tech and espionage.

03:00.540 --> 03:05.640
Details of the discovery of IBM's electric implants and typewriters in the U.S.

03:05.640 --> 03:09.760
Embassy in the Eastern Bloc, among other stories, very nicely written.

03:10.040 --> 03:17.840
At this point here, he's talking about Charles Gandy, the legendary NSA researcher, and how he got started in the business.

03:18.060 --> 03:20.380
Spoiler, it's the movies.

03:20.620 --> 03:23.580
So now I need to read for you.

03:26.000 --> 03:36.920
In the movie, FBI agents monitoring Nazi spies in America remotely beamed energy from a dish antenna at a room where the spies were planning their next attack.

03:37.160 --> 03:47.500
The intrepid FBI agents were able to decode voice signals in the room from reflections of a vibrating speaker in a telephone headset and to work to the attack.

03:47.520 --> 03:56.840
Eleven-year-old Gandy was in awe of FBI's advanced technology and vowed to use it to defend the United States.

03:56.840 --> 03:59.680
And then he became an NSA agent.

03:59.880 --> 04:05.860
Well, later, because this is 1940s, the NSA is not there anymore and is not there yet.

04:07.220 --> 04:10.740
Now, usually this is represented with a Tempest code word.

04:10.740 --> 04:18.180
The Tempest code word brings us the first attack vector, which colloquially we call Van Eck freaking.

04:18.580 --> 04:21.960
Somewhat of a misnomer, but that's a cool name.

04:22.640 --> 04:41.480
Dutch researcher Wim Van Eck opened Pandora's box on EM signal emissions with his 1985 paper, publishing what SIGINT professionals had known since the 40s, but kept classified.

04:41.480 --> 04:50.060
It was in the open that signal leakage existed, but it was generally assumed to require expensive equipment and expertise.

04:50.980 --> 05:04.340
In Van Eck's attack, he exploits the emanation of unshielded CRT screens containing frequency components in the UHF band, which is old over the air television for the young ones among you.

05:04.340 --> 05:15.280
Monitoring synchronization pulses are missing and have to be recreated by the attacker, and he creates some circuitry and costs him about $15 to make.

05:15.480 --> 05:22.740
And voila, he can display the resulting feed on a television from hundreds of meters away, up to one kilometer.

05:23.000 --> 05:27.300
People freak out about this once about every 20 years.

05:27.620 --> 05:31.720
I find that they forget and then the next generation does the same.

05:31.720 --> 05:37.340
And from unclassified NSA histories, we know that the Intel community did the same.

05:37.340 --> 05:39.560
The labs discovered it in 1943.

05:39.560 --> 05:42.700
The CIA rediscovered it in 1951.

05:42.820 --> 05:47.060
So looks like this keeps happening.

05:47.060 --> 05:56.680
So this is the BBC showing the exploit, mid 80s.

05:56.680 --> 05:58.400
So here's the BBC video.

05:58.400 --> 06:01.500
We don't have time for the whole thing, but it's on YouTube.

06:01.500 --> 06:06.380
Decent introduction explains what's going on and how a CRT monitor works.

06:06.460 --> 06:13.480
And then they drive around in a van with some kind of antenna down the street.

06:13.480 --> 06:20.760
And as one does, they read a letter from some unknown gentleman eight floors up on the building.

06:20.760 --> 06:25.460
Let's see if the media will work for us here.

06:25.460 --> 06:28.800
And that's a rather unwelcome birthday greeting.

06:29.060 --> 06:37.140
Well, that same hacker has now linked this terminal to the computer at Dairsbury, which is used for nuclear research.

06:37.740 --> 06:41.840
You can read all this data because it's obviously low level security.

06:41.840 --> 06:47.120
But if I try and go deeper into the computer, the data will be encoded.

06:47.120 --> 06:51.080
So all I'll get back is this sort of information, what's known as shash.

06:51.080 --> 06:55.220
To be able to read that, I'd need to have access to a decoding system.

06:56.060 --> 06:58.400
So you will get to it in a second.

06:58.400 --> 07:05.940
He drives in his van down the street and they literally read the TV on a monitor eight floors up.

07:06.220 --> 07:07.780
And this is interesting.

07:07.780 --> 07:17.480
I guess in the 1980s, it was not necessarily legal in England where they set up to read the TV of somebody who was connected with them.

07:18.340 --> 07:24.200
The phenomenon is quite simply that all electrical equipment gives off signals.

07:24.200 --> 07:34.760
If you take even a pocket calculator and you put it near to a radio which has long wave on it, you can hear the interference as I press the keys here.

07:36.440 --> 07:45.960
Well, even if a calculator radiates a signal like that, you might still be surprised to learn that a computer terminal radiates a signal that can be picked up over two miles.

07:46.560 --> 07:52.140
We're going to skip the rest because in the interest of time, since we skipped so much of it.

07:52.140 --> 07:55.280
But you can find it on YouTube.

07:55.320 --> 07:57.960
It's BBC Tempest.

07:57.980 --> 08:01.340
And you will have the slides at the end so you can pick it out a bit.

08:01.660 --> 08:08.380
So CRT monitors look like this for those of you that are less than 25.

08:10.820 --> 08:24.300
But Tempest as a code word refers for a classified protection standard for unintended signal emissions leaked through EM or other means.

08:24.700 --> 08:28.180
Most common sources were CRT monitors.

08:28.420 --> 08:33.100
Here's an exemplary from my retrocomputing research.

08:35.280 --> 08:38.980
But EM is not the only one.

08:38.980 --> 08:45.360
That much we know because the code word definition itself has been declassified in 2008.

08:45.360 --> 08:49.580
Much of it is blanked out, but a few interesting things were disclosed.

08:50.080 --> 09:00.440
Discovered in 1943 at Bell Labs, a reading and encrypting machine from across the street and rediscovered in 1951 by the CIA.

09:00.440 --> 09:07.220
Strategies for mitigation include shielding, so putting the Faraday cage around the device.

09:10.060 --> 09:18.240
Filtering, so trying to control the frequencies that get out, and masking, so creating so much noise that you don't know which noise you want to look at.

09:18.520 --> 09:41.600
Eventual resolution for the military in the 1950s after trying a bunch of filtering and shielding was that they just told anybody that had a teletype transmitting classified information to control an area 200 feet in all directions around the device so that nobody could get close enough with equipment to collect a signal.

09:42.140 --> 09:50.280
This was out of practicality because they didn't think that it was possible to control more than 200 feet in all of these stations, not out of measurement.

09:50.280 --> 09:56.620
They kind of thought 200 made sense, but the measurement numbers are still classified.

09:56.620 --> 10:02.060
We don't know what the NSA believes are the actual safe numbers.

10:02.940 --> 10:11.280
The other instruction was to operate 10 teletypes at once so masking would confuse everyone.

10:11.360 --> 10:17.620
That, we understand now, doesn't really work very well, but great for teletype vendors back then, I suppose.

10:20.280 --> 10:24.600
Another bit of the classified memo is this Peter Wright.

10:24.600 --> 10:26.260
He worked for MI5.

10:30.520 --> 10:36.000
Now, there is this bit of a story in his memoir.

10:36.140 --> 10:47.600
In the 60s, the UK government was trying to get into the EU, funny given recent news, and French President de Gaulle had a chip on his shoulder about the British, so he was stopping them.

10:47.640 --> 10:54.680
So, the foreign office, as one does, instructed MI5 to wiretap the French embassy.

10:54.840 --> 11:10.240
As they wiretapped the French embassy to discover what the French negotiating position would be, the technician discovered that aside from the encrypted signal, which they expected to see on the line, there was another much weaker signal.

11:11.020 --> 11:14.740
And once they amplified that, they discovered it was the plain text of the transmission.

11:15.300 --> 11:19.040
And the reason for this was not that the French machine was bad.

11:19.040 --> 11:20.420
The French machine was excellent.

11:20.420 --> 11:22.500
The British could not break the ciphertext.

11:23.180 --> 11:32.020
The problem was that there was a machine with encrypted data and a machine with decrypted data in two rooms that were adjacent.

11:32.280 --> 11:42.060
And the plain text that was leaking across the room, crosstalk literally, and the Brits could pick it out on the line.

11:42.880 --> 11:51.180
It didn't do them any good because de Gaulle blocked the admission into the EU until he died and the Brits could only get into the EU in the 1970s.

11:51.180 --> 11:55.240
But in a signal intelligence scenario, it was interesting.

11:56.160 --> 11:59.380
Now, of course, we know what happened in the last 10 years.

11:59.380 --> 12:01.820
So the world is strange.

12:04.700 --> 12:14.020
This, however, gave us the other bit of security directive that the NSA gives that we know about, which is red-black separation.

12:14.120 --> 12:22.020
Keep the ciphertext machines and the plain text machines separate according to certain rules.

12:22.020 --> 12:23.560
We don't know what the rules are.

12:23.560 --> 12:28.640
We just, well, we know something about the wiring that's being declassified, but we don't know.

12:28.640 --> 12:31.820
We do know that they want them strictly separated.

12:32.820 --> 12:37.560
Additionally, the declassified code word describes signal emanations in other domains.

12:37.700 --> 12:44.460
Seismic, presumably referring to vibration, but only the headliner is in the declassified thing.

12:44.460 --> 12:46.620
The rest is all blanked out, so my guess.

12:47.300 --> 12:50.140
And then acoustic is listed there.

12:50.140 --> 12:51.260
We understand that one.

12:51.260 --> 12:56.940
So the noise made by the machine, quaintly termed phenomenon number five by the NSA.

12:56.940 --> 12:58.380
I have no idea why.

12:59.700 --> 13:03.820
So here is another target of the age, electric typewriters.

13:03.820 --> 13:07.000
This one is from my IBM office in Massachusetts.

13:07.900 --> 13:16.000
Obviously, we have the EM emanation problem here, but the interesting bit is the sound emanation.

13:16.040 --> 13:18.320
These machines make a serious racket.

13:18.480 --> 13:24.220
Turns out you can figure out what is being typed by listening to a typewriter or teletype sound.

13:24.400 --> 13:32.200
And the temp test memo itself indicates this can be done from 100 feet away with a shotgun parabolic microphone.

13:32.200 --> 13:43.040
Another interesting nugget that, contrary to expectations, soundproofing a room helps the attacker as it dampens background noise better than it does the main signal.

13:43.600 --> 13:50.100
And this was something confirmed by others over 40 years of research in academia.

13:50.100 --> 13:51.340
So it's public.

13:52.460 --> 13:54.500
It's public in the open literature.

13:54.500 --> 14:01.000
And the range limits for these interceptions look, seem to be dictated by the ratio between signal and noise.

14:01.000 --> 14:02.120
That would make sense.

14:02.120 --> 14:06.680
And if you have soundproofed room, the noise is very low.

14:06.680 --> 14:11.420
So actually, it goes out farther.

14:13.040 --> 14:15.620
And reducing the noise is the wrong strategy.

14:18.220 --> 14:20.520
There is a lot out there about Tempest.

14:20.520 --> 14:22.420
Some of it is even true.

14:22.720 --> 14:24.180
But there is more.

14:24.180 --> 14:29.940
And those of you in the room who cannot tell us know what it is.

14:29.940 --> 14:32.180
So there is no point dredging gossip.

14:33.300 --> 14:36.800
You can Google yourselves what is out there.

14:37.620 --> 14:46.580
The other word beside Tempest you can search for is PEMEN, which unlike Tempest has an officially disclosed acronym.

15:06.160 --> 15:10.330
Okay, my Cyrillic needs exercise.

15:10.960 --> 15:16.360
Which translates to something like unwanted electromagnetic radiation and interference.

15:17.120 --> 15:20.860
So the Russian literature uses that instead of Tempest.

15:20.860 --> 15:26.000
And briefly around the turn of the millennium, the Russians declassified a whole bunch of documents.

15:26.000 --> 15:31.600
If you can translate them, and if you can find them, there is something interesting there about the physics of EM

15:34.640 --> 15:35.680
emissions .

15:35.680 --> 15:41.880
However, they've reclassified them since so you have to find them in places like archive.org or the like.

15:42.240 --> 15:45.860
Now let's change a little bit to go into more fun things.

15:46.200 --> 15:47.040
LEDs.

15:47.380 --> 15:51.380
I will take revenge of the caps lock for 500 Regis.

15:51.820 --> 15:57.880
I must admit, I was disappointed to find no reports of signal leakage from the keyboard LEDs.

15:57.880 --> 15:59.680
That would have been cool.

15:59.980 --> 16:03.580
But it's actually cool that at least something works the way we expect.

16:03.900 --> 16:06.040
There is unintentional leakage.

16:06.220 --> 16:19.920
There are multiple exfiltration research papers showing reasonable bandwidth in defeating air-gapped systems by blinking lights to export data from an air-gapped system.

16:21.760 --> 16:25.300
I recall one reaching 56 kilobytes.

16:25.300 --> 16:28.420
I don't know if somebody has reached higher speeds.

16:28.740 --> 16:35.520
Actually, a character in Neil Stephenson's Cryptonomicon exfiltrates data using caps lock just this way.

16:36.120 --> 16:40.880
And this is also a novel that makes massive use of Van Eck freaking.

16:40.880 --> 16:43.020
So pretty cool.

16:44.020 --> 16:45.800
And then there is this.

16:45.900 --> 16:55.840
We have an entire industry of pen testers, and the gold standard for them is a keystroke injection tool disguised as a USB drive, which I expect every single person here knows about.

16:55.840 --> 17:00.720
Unless you've been living under a rock on one of the outer planets, you know what a rubber ducky is.

17:00.720 --> 17:03.400
So I'll reclaim the time from this.

17:03.400 --> 17:07.500
But the short version is it's a USB stick.

17:07.500 --> 17:08.180
You plug it in.

17:08.180 --> 17:12.380
It is recognized by the system as a keyboard, not as a storage device.

17:12.380 --> 17:19.060
And then it fires off commands at superhuman speed as a keyboard .

17:19.060 --> 17:31.460
Now, when you have that, it has storage, but the ducky is a USB keyboard to the OS, which enables the attack, but then hampers data exfil.

17:31.460 --> 17:35.700
You cannot copy data to a keyboard until 2002, that is.

17:35.700 --> 17:38.160
And 2022, that is.

17:38.980 --> 17:52.820
To reduce the price of PC keyboards, IBM delegated the management of the cap state and lights to the host, giving us a side channel keyboards, or rather the ducky, can now use to exfiltrate data to its internal storage.

17:53.060 --> 17:55.560
Side channel, four decades in the making.

17:55.740 --> 18:02.720
Keystroke reflection relies only on caps lock, num lock and scroll lock to establish a data transfer path.

18:02.880 --> 18:06.840
This is something a rubber ducky can now do out of the box.

18:06.940 --> 18:12.900
No more need to connect to IRC servers in strange parts of the internet to export data.

18:14.760 --> 18:16.740
Unless you want to, that is.

18:16.740 --> 18:18.760
But wait, there is more.

18:19.980 --> 18:26.840
For one, this comes from Lagre and Ampers paper.

18:27.040 --> 18:28.580
What is this?

18:28.580 --> 18:36.720
The lower line is an RS-232 signal, a serial line, straight from the port itself.

18:36.720 --> 18:41.700
So it's the upper one is slightly more jagged.

18:44.860 --> 18:49.880
Is the brightness variation of a modem's TX LED.

18:49.880 --> 18:52.840
This was published in 2002.

18:54.040 --> 19:03.100
They could read the data transmission of the modem by looking at the flickering of the TX light on it.

19:03.340 --> 19:06.300
This was termed optical tempest at the time.

19:06.300 --> 19:09.880
It was quite spectacular for 2002.

19:11.600 --> 19:20.060
Modems are obviously a thing of the past, but you could read the transmission from across the room and likely across the street with some help.

19:20.920 --> 19:32.440
One bright spot of their study, because they tested other hardware, is that modems and data transmission hardware had this in a lot of cases, but at least hard disk drives did not.

19:32.440 --> 19:36.840
The hard disk lights were not leaking IO that way.

19:36.880 --> 19:39.300
But wait, there is even more.

19:39.820 --> 19:43.940
So continuing the thread of what can you do with the LEDs.

19:48.100 --> 19:56.940
The previous gentleman who's from Lockheed Martin was topped in the LED category by a team at Ben Gurion University of the Neve Gev.

19:57.400 --> 20:00.200
This was two years ago.

20:01.200 --> 20:09.200
They figured out a way to read the sound in a room by looking at the flickering on the speaker lights.

20:10.980 --> 20:27.020
So the speaker that's playing your Zoom conference has an LED light or the USB hub that's powering the speaker has a USB light.

20:27.240 --> 20:34.760
And from that flicker, they could read the voice payload of the Zoom connection.

20:35.020 --> 20:41.060
And you can see there is, I don't know if it's bright enough, but you can see this looks like a 10 inch telescope.

20:41.420 --> 20:44.040
They were doing this from 25 meters away.

20:44.740 --> 20:48.760
This is not itself a keyboard attack, but it leads us to one more.

20:50.900 --> 20:57.600
It used to be don't drink and drive, math jokes, but now it's don't Skype and type.

20:58.640 --> 21:16.000
A team led by a researcher at the University of Rome, La Sapienza, and this was also quite recent, like 2017, 2018, demonstrated that you could do the kind of keyboard acoustic attack that I described earlier over a Zoom connection.

21:16.000 --> 21:26.020
So if I'm connected in a video conference with you and I'm typing, but from a recording of that or from the other side, you could decode what is that I'm typing.

21:28.560 --> 21:44.760
This was postulated by Marcus Kuhn, who became the new avatar of this thing in the open 20 years after Van Eck, when he published a huge research tome around 2003, I think.

21:44.760 --> 21:53.300
He's at Cambridge University and his tome is entirely about CRT emissions, but people would kind of use him as a clearinghouse for information.

21:56.360 --> 21:58.700
Kuhn postulated that this would be possible.

21:58.700 --> 22:13.240
A researcher at IBM a year later proved that it would be possible with phone frequencies, because he analyzed the frequency spectrum and showed that the frequencies that were being used to identify the keys would be carried by the telephone.

22:13.240 --> 22:16.380
And now 15 years later, somebody actually has done it.

22:17.620 --> 22:19.840
This is Kuhn's report.

22:22.840 --> 22:32.440
Probably it's going to be the last most important document in this area because the next one is going to be whenever the NSA declassifies something, I suppose.

22:32.440 --> 22:34.740
Plus CRTs are no longer relevant.

22:36.600 --> 22:40.060
Now, here's where it gets really interesting.

22:40.060 --> 22:49.360
Asunor and Argawal, which are the two IBM researchers, wrote a meticulously detailed paper, I think it was 2004.

22:50.340 --> 22:57.240
In their attack, a microphone is placed near a keyboard from half a meter to 15 meters away.

22:58.040 --> 23:05.960
And sound is sampled with a standard sound card of the age, so 44.1 kilohertz, probably a sound blaster, although they don't say so.

23:06.380 --> 23:22.240
A neural network is trained on a sample of these, not gigantic neural network of the kind that we have today, something with a couple of hundred nodes, and something designed to classify, distinguish the voices of people as Federico or somebody else.

23:22.740 --> 23:26.840
And they very methodically do experiments to determine what matters.

23:26.840 --> 23:30.880
So, for example, first they want to prove, can you distinguish two letters on the keyboard?

23:30.880 --> 23:34.620
So they have a neural net trained with just two letters.

23:34.920 --> 23:38.860
And this is the result, 100% success.

23:39.380 --> 23:44.500
For 20 tries, the neural net never failed to tell which key it was.

23:44.560 --> 23:49.520
Then they ran a longer sample, and it was correct 95% of the time.

23:50.480 --> 23:58.020
But we don't know what is the neural network doing, so using their setup, they started researching core questions.

23:58.020 --> 23:59.420
Will the distance matter?

23:59.420 --> 24:03.460
They tried up to 15 meters away with no decrease in recognition quality.

24:03.520 --> 24:06.440
They placed the microphone behind the typist.

24:06.740 --> 24:22.010
In another test with 30 keys and 300 tests, the model guessed the correct key 79% of the time, and the correct key was one of the top three choices 88% of the time.

24:23.500 --> 24:26.900
So they pretty much demonstrated that you could recover the plain text.

24:29.620 --> 24:32.020
Then they tried something that didn't work.

24:32.020 --> 24:38.340
They tried the model trained on one keyboard on another model of keyboard, and that didn't work very well at all.

24:38.340 --> 24:46.320
It wasn't enough to recover the plain text, but it was enough to compromise the entropy of a password if that was desired.

24:46.320 --> 24:50.440
There was some signal there that's not good enough to get back the text.

24:52.460 --> 25:13.660
In another test, the typist applied variable force in striking the keys instead of being consistent, and the fixed force neural net couldn't decode that, but training a network with the variable force, this new network could figure out both fixed force and variable force samples equally fine,

25:13.660 --> 25:21.280
and pretty much the same result as in the fixed force test.

25:21.280 --> 25:23.000
So really good.

25:23.660 --> 25:30.960
In yet another test, they subjected the variable force model to inputs from multiple typists to see if the user would matter.

25:31.620 --> 25:39.260
They were free to type whichever way they wanted, hard, soft, little bit like a piano player, whatever they wanted.

25:39.300 --> 25:50.180
The quality of classification was adversely affected by only slightly by the variance in the typist, showing the applicability of a model trained by an attacker to a potential victim.

25:50.720 --> 26:01.300
Studying the average sound of individual keys, which is here, you can see one is the average of one letter and the other is the average of the other letter, there is a distinct difference.

26:01.300 --> 26:07.820
So they proved that there was actually a signal there that the neural net was working off of.

26:10.380 --> 26:12.780
And then they tried a few things.

26:16.560 --> 26:29.620
So they looked at keyboard units, they looked at keyboard models, typist style, the keys themselves, they moved keys around the keyboard to see is it the key cap, and it wasn't.

26:29.620 --> 26:36.380
And they determined that what mattered was the place in the keyboard where the key switch was.

26:36.680 --> 26:47.880
And then the model that they have is that essentially it's like playing drums, that it makes a different sound depending where you hit the plate of your cymbals or your drum.

26:49.320 --> 26:52.300
That seems to be the most relevant thing.

26:52.780 --> 27:00.580
Now, in 2005, a UC Berkeley team led by Li Zhuang put the final piece in place.

27:01.080 --> 27:08.160
The IBM models were supervised training, the Berkeley model was self-supervised training.

27:08.160 --> 27:11.440
The model could discover itself without training data.

27:12.660 --> 27:17.700
It couldn't discover the whole ciphertext, but it could compromise passwords successfully.

27:21.420 --> 27:33.280
It could break five character random passwords in fewer than 20 attempts, and 80% of 10 character passwords were broken in fewer than 75 attempts.

27:33.320 --> 27:40.340
So it wasn't perfect, but it was close enough that it was a successful password attack.

27:41.560 --> 27:46.140
Now, from there, sound evolved slightly in a different direction.

27:46.140 --> 27:48.640
First with sound.

27:48.720 --> 27:59.460
In 2023, a team, I think these were British researchers, demonstrated 95% accuracy without use of language model constraints whatsoever.

27:59.460 --> 28:02.300
Usually you use some knowledge of the language.

28:02.300 --> 28:03.940
You go and say,

28:07.120 --> 28:11.820
this is English, so these combination of letters have certain probabilities.

28:14.350 --> 28:16.530
They didn't use any of that.

28:16.530 --> 28:24.230
They just did pure matching of the sound of the key, and they got 95%, which is the highest result yet.

28:25.590 --> 28:32.390
Using the microphone of... you put down your phone before typing, that's the scenario.

28:32.710 --> 28:38.590
The phone can read what you're typing entirely without doing any strange tricks.

28:39.730 --> 28:44.310
And they achieved 93% while doing this over Zoom.

28:45.030 --> 28:53.390
So again, I'm going to spare you the jokes about all your keyboards, but...

28:54.310 --> 28:58.270
Now, if I haven't completely crushed your soul yet, I have one more.

28:59.490 --> 29:01.530
And this is the spy phone attack.

29:01.530 --> 29:03.590
This one is a Georgia Tech team.

29:03.950 --> 29:11.490
They did the same thing, but instead of using the microphone of the phone, they used the accelerometer.

29:12.110 --> 29:15.310
So they could get the vibration of the table.

29:16.370 --> 29:20.410
And the thing that's cool here is that to get the microphone on the other phone, you needed permission.

29:20.410 --> 29:25.370
You needed to hack the phone or somehow convince the user, give me permission to the microphone.

29:25.470 --> 29:32.130
Here, you just need a Trojan horse app, because the accelerometer is not privileged.

29:32.790 --> 29:40.590
So you can do this without compromising the phone, which is obviously easier.

29:42.110 --> 29:45.390
Now, don't forget our friend VanEck.

29:45.610 --> 29:47.830
This one actually surprised even me.

29:47.830 --> 29:59.970
I put him in the abstract because he's a cool fellow and I needed him to explain all of these data exfil things, but I didn't think we could do EM out of a keyboard.

29:59.970 --> 30:02.910
I thought the voltages will be too low and I was wrong.

30:03.910 --> 30:08.890
First of all, I should have known because keyboards were PS2, so serial.

30:09.250 --> 30:11.810
That's not super low voltage.

30:11.950 --> 30:13.690
I should have seen that coming.

30:13.690 --> 30:23.990
But so, in 2008, a team in Switzerland extracted the entire signal of both PS2 and USB keyboards.

30:24.250 --> 30:28.910
This is done over GNU Radio, an old version of GNU Radio at that.

30:29.370 --> 30:33.190
They couldn't afford the classified equipment, so they did it on the cheap.

30:33.350 --> 30:40.390
And this is at five meters, but they demonstrated it at up to 20 meters.

30:40.390 --> 30:49.890
And the thing that was interesting of their result besides this is that they demonstrated that they could fingerprint different keyboards in the same room.

30:49.890 --> 30:54.590
So, if you had the 10 teletype scenario or 10 keyboards in the same room, it didn't matter.

30:54.590 --> 30:58.530
They could distinguish the 10 keyboards and follow the signals independently.

30:59.810 --> 31:10.370
So, this is also an interesting paper if you want to learn something about GNU Radio without first getting a degree in EE, which most of us just can't.

31:12.990 --> 31:20.530
Now that I've convinced you that the world is full of uber-smart adversaries and there is really no hope, let's bring us down a little bit.

31:21.590 --> 31:24.330
Let's look at good old-fashioned screw-up.

31:25.090 --> 31:29.710
There was wireless keyboards with no encryption whatsoever about 20 years ago.

31:29.710 --> 31:32.450
That's just plain stupid, so let's not go there.

31:35.030 --> 31:41.890
But then there was this one, which was right on my desk while I was researching this for a year.

31:43.510 --> 31:52.890
And a couple of days ago, while I'm looking at the Bastille security mouse jack exploit, I read the list and I thought that they were all Logitech mice.

31:52.890 --> 31:55.890
And then I see this thing right in front of me.

31:56.110 --> 31:57.530
I'm like, oh, yes.

31:57.530 --> 31:58.370
Okay.

31:58.870 --> 31:59.770
Pwned.

32:01.710 --> 32:05.750
So, I believe that the advisory affected only Logitech.

32:05.750 --> 32:06.470
I was wrong.

32:06.470 --> 32:07.970
The chips are affected.

32:07.970 --> 32:14.090
And for brevity, what mouse jack does is that connection here, it's a Bluetooth connection.

32:14.090 --> 32:20.810
It secured one dongle, mouse, and keyboard to reduce the proliferation of dongles.

32:20.810 --> 32:26.630
Logitech or some VAR-made chip for Logitech has this thing where you can connect things.

32:27.910 --> 32:30.410
The keyboard connection is encrypted.

32:30.410 --> 32:35.090
Mouse connection, probably for speed, this was developed 10 years ago, is not encrypted.

32:35.590 --> 32:40.210
So, if somebody wanted to move my cursor, but who cares, I guess, was the logic.

32:40.850 --> 32:53.430
Researchers discovered that they could create a fake mouse, connect it in, and then once they were connected, this mouse could call the keyboard API in plain text.

32:53.430 --> 32:58.930
So, they could inject commands in plain text and bypass the whole thing.

32:59.050 --> 33:03.590
It was a big issue for Logitech because they were singled out and I thought they were the only ones.

33:03.590 --> 33:06.230
But as you can see, that's not a Logitech mouse.

33:07.270 --> 33:09.410
There were plenty of others.

33:10.910 --> 33:22.350
No, I had funny images of hotel staff being weirded out by things they see at DEF CON over the years.

33:22.350 --> 33:30.190
And I was picturing this happening in my hotel room and they wondering, first, what kind of boring hacker has 20 keyboards in there?

33:30.190 --> 33:34.310
And secondly, what kind of sociopath has all clacky keyboards?

33:34.330 --> 33:37.270
His colleagues must absolutely hate him.

33:39.430 --> 33:41.310
We don't have the time to do this live.

33:41.310 --> 33:45.250
I was going to demonstrate this.

33:46.930 --> 33:50.610
They've been challenging because of the noise, but I wanted to see if we could do it.

33:51.130 --> 33:53.170
But this is how it works.

33:54.890 --> 34:03.270
Gennady Gerganov has posted this Hoping project, which is essentially trying to do this in a very low-tech fashion.

34:03.270 --> 34:08.610
He doesn't use the neural network, which would be an advantage in figuring out what part of the signal is interesting.

34:08.750 --> 34:11.170
But his WebAssembly code is very lightweight.

34:13.530 --> 34:18.150
He does some things like the multiple symbol matching.

34:18.150 --> 34:21.630
So, your input text must be valid English and so on.

34:22.270 --> 34:24.350
But it's very, very lightweight.

34:24.410 --> 34:29.050
And you essentially train it by typing a few sentences.

34:29.050 --> 34:32.590
I think he wants between 100 and 300 characters of valid English.

34:32.590 --> 34:36.330
You cannot make typos, you cannot use backspace, all sorts of constraints.

34:36.710 --> 34:41.470
And then it trains a little pattern matching model, not a neural net.

34:41.470 --> 34:43.150
And then it makes predictions.

34:43.150 --> 34:47.550
And when the prediction, the thing that's cool about this code is that it's visualized this way.

34:48.470 --> 34:55.670
And here, I don't know if you can see at this scale, but it's what you would have seen if I managed to demonstrate.

34:55.670 --> 34:57.930
These are the top three guesses.

34:58.270 --> 35:03.450
So, this was an Annie Pro keyboard, which is very clacky if you don't know what it is.

35:03.450 --> 35:06.250
It's a white keyboard with red bezels.

35:09.110 --> 35:16.690
And after training, I kept addressing the letter H, I believe.

35:17.250 --> 35:24.770
And you can see third guess, H, H, second guess, H, third guess, H, first guess, H.

35:24.850 --> 35:27.930
There are a lot of Hs in this sample.

35:27.930 --> 35:33.790
It's not perfect, but it's in the top three more than 50% of the time.

35:33.850 --> 35:35.210
This is a rookie's code.

35:35.210 --> 35:36.570
He's doing it as a hobby.

35:36.610 --> 35:40.170
So, it certainly demonstrates the thing.

35:40.170 --> 35:43.270
And it's fun to play with if you want to have a shot.

35:43.270 --> 35:50.190
Now, if we had managed to do this here, it would have looked like this, because I wanted to stack the deck in our favor with a good microphone.

35:50.310 --> 35:51.330
But, oh, well.

35:55.670 --> 36:13.850
In closing, so the threat, it's realistically possible for a sophisticated, semi-sophisticated adversary with some resources to read whatever is going on on your keyboard if they can get within, let's say, 30 to 40 feet.

36:14.630 --> 36:17.110
Now, the tools to do this are not in the public domain.

36:17.110 --> 36:25.510
So, you probably have to expect the government to be able to do this, but not a random hacker unless they have some serious time on their hand to finish up the tools.

36:27.270 --> 36:36.830
As I like to point out, until successful security becomes commonplace at the network layer, why would I hack you locally if I can hack you remotely?

36:36.830 --> 36:42.810
So, this is probably not the highest priority, but it's there.

36:43.570 --> 36:47.690
Plus, if you're a pen tester, you can show off big time doing something like this.

36:49.350 --> 36:52.750
I'm going to skip this and just stop there.

36:52.950 --> 36:54.610
You have my contact info.

36:54.610 --> 36:56.310
The slides will be posted.

36:57.710 --> 37:06.810
If you have ideas, feedback, commentary, remember that speakers are Pavlovian devices, let us know what we liked, what we didn't like.

37:08.470 --> 37:20.050
If you are a three-letter agency sponsor or know of one that may be interested in funding a small business looking into this further, I would like to have the conversation.

37:20.770 --> 37:25.110
And, well, you will see from the slides the little bits that I skipped.

