start	end	text
0	5920	A little bit of introduction, I've had the privilege of spending my entire career in free and open source software.
5920	8360	And I'm a manager these days.
8760	13300	So I do this so that my brain doesn't rot completely.
14080	19880	And because I used to be an embedded engineer, and I find this fun.
20100	33780	Also, I'm the co-founder of a small R&D shop in Boston, and we do stuff relating to sound and computers.
33780	38180	So that got me into this strange topic.
38680	41760	Now, usually I talk about hardware hacking.
41760	46240	This is actually part of our HHV track.
46580	56160	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.
56160	58020	In this case, we're not breaking anything.
58020	66720	The no liability disclaimer is that there is a lot of stuff here that is adjacent to classified material.
66980	70920	None of what we will be discussing is classified.
70920	73240	It's all coming from open sources.
73540	77320	So that's good, I suppose.
79360	84320	I literally don't know the part that's classified, so I cannot accidentally tell you.
87640	90840	We have quite a bit to go through.
90840	91940	So let's go.
93840	98140	Now, this talk is all about abusing our beloved keyboards.
99840	105700	Keyboards have access to the plain text of what we're so carefully encrypting.
105780	109340	They have access to our passwords before hashing.
109360	113640	It follows we obviously want some exploit action here.
113720	121400	And there is some pretty wild stuff out there, mostly in research more than in active use that we can see.
121400	127720	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.
129240	138800	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.
139920	141860	Let's start with something light.
142000	151600	So there is this book, Eric Hasselton, interesting career, trained in neurology, then became a Disney Imagineering executive.
151860	156760	Then he was recruited by General Hayden to run the NSA's R&D department.
156760	158540	This was about 20 years ago.
159660	162600	I can't remember if Clinton or Bush was president.
163460	166980	An original career trajectory, if I ever saw one.
167180	172380	So the first movie connection here is Disney, but the second one is coming from Hasselton's book.
174980	180220	Great book, by the way, absolutely enjoyable to read if you are into tech and espionage.
180540	185640	Details of the discovery of IBM's electric implants and typewriters in the U.S.
185640	189760	Embassy in the Eastern Bloc, among other stories, very nicely written.
190040	197840	At this point here, he's talking about Charles Gandy, the legendary NSA researcher, and how he got started in the business.
198060	200380	Spoiler, it's the movies.
200620	203580	So now I need to read for you.
206000	216920	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.
217160	227500	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.
227520	236840	Eleven-year-old Gandy was in awe of FBI's advanced technology and vowed to use it to defend the United States.
236840	239680	And then he became an NSA agent.
239880	245860	Well, later, because this is 1940s, the NSA is not there anymore and is not there yet.
247220	250740	Now, usually this is represented with a Tempest code word.
250740	258180	The Tempest code word brings us the first attack vector, which colloquially we call Van Eck freaking.
258580	261960	Somewhat of a misnomer, but that's a cool name.
262640	281480	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.
281480	290060	It was in the open that signal leakage existed, but it was generally assumed to require expensive equipment and expertise.
290980	304340	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.
304340	315280	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.
315480	322740	And voila, he can display the resulting feed on a television from hundreds of meters away, up to one kilometer.
323000	327300	People freak out about this once about every 20 years.
327620	331720	I find that they forget and then the next generation does the same.
331720	337340	And from unclassified NSA histories, we know that the Intel community did the same.
337340	339560	The labs discovered it in 1943.
339560	342700	The CIA rediscovered it in 1951.
342820	347060	So looks like this keeps happening.
347060	356680	So this is the BBC showing the exploit, mid 80s.
356680	358400	So here's the BBC video.
358400	361500	We don't have time for the whole thing, but it's on YouTube.
361500	366380	Decent introduction explains what's going on and how a CRT monitor works.
366460	373480	And then they drive around in a van with some kind of antenna down the street.
373480	380760	And as one does, they read a letter from some unknown gentleman eight floors up on the building.
380760	385460	Let's see if the media will work for us here.
385460	388800	And that's a rather unwelcome birthday greeting.
389060	397140	Well, that same hacker has now linked this terminal to the computer at Dairsbury, which is used for nuclear research.
397740	401840	You can read all this data because it's obviously low level security.
401840	407120	But if I try and go deeper into the computer, the data will be encoded.
407120	411080	So all I'll get back is this sort of information, what's known as shash.
411080	415220	To be able to read that, I'd need to have access to a decoding system.
416060	418400	So you will get to it in a second.
418400	425940	He drives in his van down the street and they literally read the TV on a monitor eight floors up.
426220	427780	And this is interesting.
427780	437480	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.
438340	444200	The phenomenon is quite simply that all electrical equipment gives off signals.
444200	454760	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.
456440	465960	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.
466560	472140	We're going to skip the rest because in the interest of time, since we skipped so much of it.
472140	475280	But you can find it on YouTube.
475320	477960	It's BBC Tempest.
477980	481340	And you will have the slides at the end so you can pick it out a bit.
481660	488380	So CRT monitors look like this for those of you that are less than 25.
490820	504300	But Tempest as a code word refers for a classified protection standard for unintended signal emissions leaked through EM or other means.
504700	508180	Most common sources were CRT monitors.
508420	513100	Here's an exemplary from my retrocomputing research.
515280	518980	But EM is not the only one.
518980	525360	That much we know because the code word definition itself has been declassified in 2008.
525360	529580	Much of it is blanked out, but a few interesting things were disclosed.
530080	540440	Discovered in 1943 at Bell Labs, a reading and encrypting machine from across the street and rediscovered in 1951 by the CIA.
540440	547220	Strategies for mitigation include shielding, so putting the Faraday cage around the device.
550060	558240	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.
558520	581600	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.
582140	590280	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.
590280	596620	They kind of thought 200 made sense, but the measurement numbers are still classified.
596620	602060	We don't know what the NSA believes are the actual safe numbers.
602940	611280	The other instruction was to operate 10 teletypes at once so masking would confuse everyone.
611360	617620	That, we understand now, doesn't really work very well, but great for teletype vendors back then, I suppose.
620280	624600	Another bit of the classified memo is this Peter Wright.
624600	626260	He worked for MI5.
630520	636000	Now, there is this bit of a story in his memoir.
636140	647600	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.
647640	654680	So, the foreign office, as one does, instructed MI5 to wiretap the French embassy.
654840	670240	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.
671020	674740	And once they amplified that, they discovered it was the plain text of the transmission.
675300	679040	And the reason for this was not that the French machine was bad.
679040	680420	The French machine was excellent.
680420	682500	The British could not break the ciphertext.
683180	692020	The problem was that there was a machine with encrypted data and a machine with decrypted data in two rooms that were adjacent.
692280	702060	And the plain text that was leaking across the room, crosstalk literally, and the Brits could pick it out on the line.
702880	711180	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.
711180	715240	But in a signal intelligence scenario, it was interesting.
716160	719380	Now, of course, we know what happened in the last 10 years.
719380	721820	So the world is strange.
724700	734020	This, however, gave us the other bit of security directive that the NSA gives that we know about, which is red-black separation.
734120	742020	Keep the ciphertext machines and the plain text machines separate according to certain rules.
742020	743560	We don't know what the rules are.
743560	748640	We just, well, we know something about the wiring that's being declassified, but we don't know.
748640	751820	We do know that they want them strictly separated.
752820	757560	Additionally, the declassified code word describes signal emanations in other domains.
757700	764460	Seismic, presumably referring to vibration, but only the headliner is in the declassified thing.
764460	766620	The rest is all blanked out, so my guess.
767300	770140	And then acoustic is listed there.
770140	771260	We understand that one.
771260	776940	So the noise made by the machine, quaintly termed phenomenon number five by the NSA.
776940	778380	I have no idea why.
779700	783820	So here is another target of the age, electric typewriters.
783820	787000	This one is from my IBM office in Massachusetts.
787900	796000	Obviously, we have the EM emanation problem here, but the interesting bit is the sound emanation.
796040	798320	These machines make a serious racket.
798480	804220	Turns out you can figure out what is being typed by listening to a typewriter or teletype sound.
804400	812200	And the temp test memo itself indicates this can be done from 100 feet away with a shotgun parabolic microphone.
812200	823040	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.
823600	830100	And this was something confirmed by others over 40 years of research in academia.
830100	831340	So it's public.
832460	834500	It's public in the open literature.
834500	841000	And the range limits for these interceptions look, seem to be dictated by the ratio between signal and noise.
841000	842120	That would make sense.
842120	846680	And if you have soundproofed room, the noise is very low.
846680	851420	So actually, it goes out farther.
853040	855620	And reducing the noise is the wrong strategy.
858220	860520	There is a lot out there about Tempest.
860520	862420	Some of it is even true.
862720	864180	But there is more.
864180	869940	And those of you in the room who cannot tell us know what it is.
869940	872180	So there is no point dredging gossip.
873300	876800	You can Google yourselves what is out there.
877620	886580	The other word beside Tempest you can search for is PEMEN, which unlike Tempest has an officially disclosed acronym.
906160	910330	Okay, my Cyrillic needs exercise.
910960	916360	Which translates to something like unwanted electromagnetic radiation and interference.
917120	920860	So the Russian literature uses that instead of Tempest.
920860	926000	And briefly around the turn of the millennium, the Russians declassified a whole bunch of documents.
926000	931600	If you can translate them, and if you can find them, there is something interesting there about the physics of EM
934640	935680	emissions .
935680	941880	However, they've reclassified them since so you have to find them in places like archive.org or the like.
942240	945860	Now let's change a little bit to go into more fun things.
946200	947040	LEDs.
947380	951380	I will take revenge of the caps lock for 500 Regis.
951820	957880	I must admit, I was disappointed to find no reports of signal leakage from the keyboard LEDs.
957880	959680	That would have been cool.
959980	963580	But it's actually cool that at least something works the way we expect.
963900	966040	There is unintentional leakage.
966220	979920	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.
981760	985300	I recall one reaching 56 kilobytes.
985300	988420	I don't know if somebody has reached higher speeds.
988740	995520	Actually, a character in Neil Stephenson's Cryptonomicon exfiltrates data using caps lock just this way.
996120	1000880	And this is also a novel that makes massive use of Van Eck freaking.
1000880	1003020	So pretty cool.
1004020	1005800	And then there is this.
1005900	1015840	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.
1015840	1020720	Unless you've been living under a rock on one of the outer planets, you know what a rubber ducky is.
1020720	1023400	So I'll reclaim the time from this.
1023400	1027500	But the short version is it's a USB stick.
1027500	1028180	You plug it in.
1028180	1032380	It is recognized by the system as a keyboard, not as a storage device.
1032380	1039060	And then it fires off commands at superhuman speed as a keyboard .
1039060	1051460	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.
1051460	1055700	You cannot copy data to a keyboard until 2002, that is.
1055700	1058160	And 2022, that is.
1058980	1072820	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.
1073060	1075560	Side channel, four decades in the making.
1075740	1082720	Keystroke reflection relies only on caps lock, num lock and scroll lock to establish a data transfer path.
1082880	1086840	This is something a rubber ducky can now do out of the box.
1086940	1092900	No more need to connect to IRC servers in strange parts of the internet to export data.
1094760	1096740	Unless you want to, that is.
1096740	1098760	But wait, there is more.
1099980	1106840	For one, this comes from Lagre and Ampers paper.
1107040	1108580	What is this?
1108580	1116720	The lower line is an RS-232 signal, a serial line, straight from the port itself.
1116720	1121700	So it's the upper one is slightly more jagged.
1124860	1129880	Is the brightness variation of a modem's TX LED.
1129880	1132840	This was published in 2002.
1134040	1143100	They could read the data transmission of the modem by looking at the flickering of the TX light on it.
1143340	1146300	This was termed optical tempest at the time.
1146300	1149880	It was quite spectacular for 2002.
1151600	1160060	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.
1160920	1172440	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.
1172440	1176840	The hard disk lights were not leaking IO that way.
1176880	1179300	But wait, there is even more.
1179820	1183940	So continuing the thread of what can you do with the LEDs.
1188100	1196940	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.
1197400	1200200	This was two years ago.
1201200	1209200	They figured out a way to read the sound in a room by looking at the flickering on the speaker lights.
1210980	1227020	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.
1227240	1234760	And from that flicker, they could read the voice payload of the Zoom connection.
1235020	1241060	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.
1241420	1244040	They were doing this from 25 meters away.
1244740	1248760	This is not itself a keyboard attack, but it leads us to one more.
1250900	1257600	It used to be don't drink and drive, math jokes, but now it's don't Skype and type.
1258640	1276000	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.
1276000	1286020	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.
1288560	1304760	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.
1304760	1313300	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.
1316360	1318700	Kuhn postulated that this would be possible.
1318700	1333240	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.
1333240	1336380	And now 15 years later, somebody actually has done it.
1337620	1339840	This is Kuhn's report.
1342840	1352440	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.
1352440	1354740	Plus CRTs are no longer relevant.
1356600	1360060	Now, here's where it gets really interesting.
1360060	1369360	Asunor and Argawal, which are the two IBM researchers, wrote a meticulously detailed paper, I think it was 2004.
1370340	1377240	In their attack, a microphone is placed near a keyboard from half a meter to 15 meters away.
1378040	1385960	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.
1386380	1402240	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.
1402740	1406840	And they very methodically do experiments to determine what matters.
1406840	1410880	So, for example, first they want to prove, can you distinguish two letters on the keyboard?
1410880	1414620	So they have a neural net trained with just two letters.
1414920	1418860	And this is the result, 100% success.
1419380	1424500	For 20 tries, the neural net never failed to tell which key it was.
1424560	1429520	Then they ran a longer sample, and it was correct 95% of the time.
1430480	1438020	But we don't know what is the neural network doing, so using their setup, they started researching core questions.
1438020	1439420	Will the distance matter?
1439420	1443460	They tried up to 15 meters away with no decrease in recognition quality.
1443520	1446440	They placed the microphone behind the typist.
1446740	1462010	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.
1463500	1466900	So they pretty much demonstrated that you could recover the plain text.
1469620	1472020	Then they tried something that didn't work.
1472020	1478340	They tried the model trained on one keyboard on another model of keyboard, and that didn't work very well at all.
1478340	1486320	It wasn't enough to recover the plain text, but it was enough to compromise the entropy of a password if that was desired.
1486320	1490440	There was some signal there that's not good enough to get back the text.
1492460	1513660	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,
1513660	1521280	and pretty much the same result as in the fixed force test.
1521280	1523000	So really good.
1523660	1530960	In yet another test, they subjected the variable force model to inputs from multiple typists to see if the user would matter.
1531620	1539260	They were free to type whichever way they wanted, hard, soft, little bit like a piano player, whatever they wanted.
1539300	1550180	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.
1550720	1561300	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.
1561300	1567820	So they proved that there was actually a signal there that the neural net was working off of.
1570380	1572780	And then they tried a few things.
1576560	1589620	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.
1589620	1596380	And they determined that what mattered was the place in the keyboard where the key switch was.
1596680	1607880	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.
1609320	1612300	That seems to be the most relevant thing.
1612780	1620580	Now, in 2005, a UC Berkeley team led by Li Zhuang put the final piece in place.
1621080	1628160	The IBM models were supervised training, the Berkeley model was self-supervised training.
1628160	1631440	The model could discover itself without training data.
1632660	1637700	It couldn't discover the whole ciphertext, but it could compromise passwords successfully.
1641420	1653280	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.
1653320	1660340	So it wasn't perfect, but it was close enough that it was a successful password attack.
1661560	1666140	Now, from there, sound evolved slightly in a different direction.
1666140	1668640	First with sound.
1668720	1679460	In 2023, a team, I think these were British researchers, demonstrated 95% accuracy without use of language model constraints whatsoever.
1679460	1682300	Usually you use some knowledge of the language.
1682300	1683940	You go and say,
1687120	1691820	this is English, so these combination of letters have certain probabilities.
1694350	1696530	They didn't use any of that.
1696530	1704230	They just did pure matching of the sound of the key, and they got 95%, which is the highest result yet.
1705590	1712390	Using the microphone of... you put down your phone before typing, that's the scenario.
1712710	1718590	The phone can read what you're typing entirely without doing any strange tricks.
1719730	1724310	And they achieved 93% while doing this over Zoom.
1725030	1733390	So again, I'm going to spare you the jokes about all your keyboards, but...
1734310	1738270	Now, if I haven't completely crushed your soul yet, I have one more.
1739490	1741530	And this is the spy phone attack.
1741530	1743590	This one is a Georgia Tech team.
1743950	1751490	They did the same thing, but instead of using the microphone of the phone, they used the accelerometer.
1752110	1755310	So they could get the vibration of the table.
1756370	1760410	And the thing that's cool here is that to get the microphone on the other phone, you needed permission.
1760410	1765370	You needed to hack the phone or somehow convince the user, give me permission to the microphone.
1765470	1772130	Here, you just need a Trojan horse app, because the accelerometer is not privileged.
1772790	1780590	So you can do this without compromising the phone, which is obviously easier.
1782110	1785390	Now, don't forget our friend VanEck.
1785610	1787830	This one actually surprised even me.
1787830	1799970	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.
1799970	1802910	I thought the voltages will be too low and I was wrong.
1803910	1808890	First of all, I should have known because keyboards were PS2, so serial.
1809250	1811810	That's not super low voltage.
1811950	1813690	I should have seen that coming.
1813690	1823990	But so, in 2008, a team in Switzerland extracted the entire signal of both PS2 and USB keyboards.
1824250	1828910	This is done over GNU Radio, an old version of GNU Radio at that.
1829370	1833190	They couldn't afford the classified equipment, so they did it on the cheap.
1833350	1840390	And this is at five meters, but they demonstrated it at up to 20 meters.
1840390	1849890	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.
1849890	1854590	So, if you had the 10 teletype scenario or 10 keyboards in the same room, it didn't matter.
1854590	1858530	They could distinguish the 10 keyboards and follow the signals independently.
1859810	1870370	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.
1872990	1880530	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.
1881590	1884330	Let's look at good old-fashioned screw-up.
1885090	1889710	There was wireless keyboards with no encryption whatsoever about 20 years ago.
1889710	1892450	That's just plain stupid, so let's not go there.
1895030	1901890	But then there was this one, which was right on my desk while I was researching this for a year.
1903510	1912890	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.
1912890	1915890	And then I see this thing right in front of me.
1916110	1917530	I'm like, oh, yes.
1917530	1918370	Okay.
1918870	1919770	Pwned.
1921710	1925750	So, I believe that the advisory affected only Logitech.
1925750	1926470	I was wrong.
1926470	1927970	The chips are affected.
1927970	1934090	And for brevity, what mouse jack does is that connection here, it's a Bluetooth connection.
1934090	1940810	It secured one dongle, mouse, and keyboard to reduce the proliferation of dongles.
1940810	1946630	Logitech or some VAR-made chip for Logitech has this thing where you can connect things.
1947910	1950410	The keyboard connection is encrypted.
1950410	1955090	Mouse connection, probably for speed, this was developed 10 years ago, is not encrypted.
1955590	1960210	So, if somebody wanted to move my cursor, but who cares, I guess, was the logic.
1960850	1973430	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.
1973430	1978930	So, they could inject commands in plain text and bypass the whole thing.
1979050	1983590	It was a big issue for Logitech because they were singled out and I thought they were the only ones.
1983590	1986230	But as you can see, that's not a Logitech mouse.
1987270	1989410	There were plenty of others.
1990910	2002350	No, I had funny images of hotel staff being weirded out by things they see at DEF CON over the years.
2002350	2010190	And I was picturing this happening in my hotel room and they wondering, first, what kind of boring hacker has 20 keyboards in there?
2010190	2014310	And secondly, what kind of sociopath has all clacky keyboards?
2014330	2017270	His colleagues must absolutely hate him.
2019430	2021310	We don't have the time to do this live.
2021310	2025250	I was going to demonstrate this.
2026930	2030610	They've been challenging because of the noise, but I wanted to see if we could do it.
2031130	2033170	But this is how it works.
2034890	2043270	Gennady Gerganov has posted this Hoping project, which is essentially trying to do this in a very low-tech fashion.
2043270	2048610	He doesn't use the neural network, which would be an advantage in figuring out what part of the signal is interesting.
2048750	2051170	But his WebAssembly code is very lightweight.
2053530	2058150	He does some things like the multiple symbol matching.
2058150	2061630	So, your input text must be valid English and so on.
2062270	2064350	But it's very, very lightweight.
2064410	2069050	And you essentially train it by typing a few sentences.
2069050	2072590	I think he wants between 100 and 300 characters of valid English.
2072590	2076330	You cannot make typos, you cannot use backspace, all sorts of constraints.
2076710	2081470	And then it trains a little pattern matching model, not a neural net.
2081470	2083150	And then it makes predictions.
2083150	2087550	And when the prediction, the thing that's cool about this code is that it's visualized this way.
2088470	2095670	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.
2095670	2097930	These are the top three guesses.
2098270	2103450	So, this was an Annie Pro keyboard, which is very clacky if you don't know what it is.
2103450	2106250	It's a white keyboard with red bezels.
2109110	2116690	And after training, I kept addressing the letter H, I believe.
2117250	2124770	And you can see third guess, H, H, second guess, H, third guess, H, first guess, H.
2124850	2127930	There are a lot of Hs in this sample.
2127930	2133790	It's not perfect, but it's in the top three more than 50% of the time.
2133850	2135210	This is a rookie's code.
2135210	2136570	He's doing it as a hobby.
2136610	2140170	So, it certainly demonstrates the thing.
2140170	2143270	And it's fun to play with if you want to have a shot.
2143270	2150190	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.
2150310	2151330	But, oh, well.
2155670	2173850	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.
2174630	2177110	Now, the tools to do this are not in the public domain.
2177110	2185510	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.
2187270	2196830	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?
2196830	2202810	So, this is probably not the highest priority, but it's there.
2203570	2207690	Plus, if you're a pen tester, you can show off big time doing something like this.
2209350	2212750	I'm going to skip this and just stop there.
2212950	2214610	You have my contact info.
2214610	2216310	The slides will be posted.
2217710	2226810	If you have ideas, feedback, commentary, remember that speakers are Pavlovian devices, let us know what we liked, what we didn't like.
2228470	2240050	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.
2240770	2245110	And, well, you will see from the slides the little bits that I skipped.
