Podcast
Root Causes 332: Acoustic AI-based Key Logging Attack
Hosted by
Jason Soroko
Fellow
Original broadcast date
September 14, 2023
Researchers have built an AI model that can interpret keystrokes based on the sound of keyboard use over a phone or video call. Among other things, this technique can be used to steal passwords when the sound of logging in can be overheard. Join us as we learn about this new breed of credential harvesting.
Podcast transcript
Lightly edited for flow and brevity.
TCTim CallanWe have a guest today. We always love guests and today, our guest is Mark Williams. Mark Williams is Director of Product Management at Sectigo. How are you doing today, Mark?
Hi, Tim. Thanks for having me. Hi, Jason.
TCTim CallanSo, Mark, you are here to tell us about a very interesting new AI-based side channel attack. Is that right?
That's right. So there's been a buzz around the security community over this paper that came out earlier this month and I think it's as fascinating as it is alarming. Researchers have been training AI to decipher passwords from audio. This audio has been recorded on phones and Zoom calls, and they've been testing it. So picture this. Every time your finger hits one of the keys on the keyboard, right, it carries a unique audio signature that's discernible from the other keys that you hit on your keyboard.
TCTim CallanSo the AI can tell the difference between hitting G and hitting H?
That's right. It’s impacted by things like the speed of the key press, the angle, even the previous key you pressed, or whether or not the shift key is pressed. All of these things impact that audio signature, right? So from that phone recording model, these researchers were able to get the AI to decipher passwords with a 95% accuracy and that's without even the use of a language model.
TCTim CallanSo let me just play this back and make sure I'm getting it right. I'm sitting on a Zoom call with you and I type a password in for something and there could be an AI on the other end that's hearing my audio that then knows based on the sound, what password I just typed into my keyboard and now you have my password. Is that correct?
That is right.
Some training, at least a fair amount of content I think is needed for a good degree of accuracy. It’s not going to take a 10 or 12 character password typed on a keyboard out of any context whatsoever and then know what it is but with enough exposure to someone typing, they can learn those audio signatures. And with a key logger, it's very precise. You know exactly which key is being pressed but with something like this, you don't need that kind of precision anymore and it doesn't just have to be snuck onto the system to pull from the mic channel, you can just drop a smartphone on someone's desk and leave it there for a little while and train it that way.
TCTim CallanOr like Jason said, imagine if I get my malware on your computer, I could be using your local mic to listen to what you're typing, and you have no idea that's even going on. And I'm just sitting there passively recording all your keystrokes just like a keylogger does.
And even without perfect recognition of the password, hackers can simply apply an algorithm to guess the rest.
TCTim CallanRight. If there's a little bit of inaccuracy there, you can see where that's ok or if there's one digit that we miss, there's not that many combinations. If I have your entire password, except I don't know what one of the digits is, how many keys are there on your keyboard? That's the number of combos I have to try. It's just not very many. Right?
That’s right.
And it's early days. So it's just going to get more accurate. I mean, this is just starting out.
TCTim CallanLet's just take a second to just tell people if you want to find this paper, the title of it is A Practical Deep Learning Based Acoustic Side Channel on Keyboards. Authors are Joshua Harrison from Durham University, Ehsan Toreini from the University of Surrey and Maryam Mehrnezhad from the Royal Holloway, University of London. So those are the authors that put this out. It's easy to find. And you can read. It's quite detailed, and they go into a lot of it.
One of the things I found was interesting was they talked about how one of the things that the algorithm had a tougher time with, not saying that it couldn't get it, but it had a tougher time with, was detecting the release of the shift key. So one of the things they suggested was, if I go shift I and release key that's different than if I go shift I release N, right. Two capital letters in a row, or three capital letters in a row are different from one capital letter in the row and I had a harder time getting that. So one of their recommendations was to mix in more capital letters. The more caps you have, the more likely you're going to foil the algorithm. That seems fine as a recommendation but, it's not solving the problem by any stretch of the imagination.
One of the things I found was interesting was they talked about how one of the things that the algorithm had a tougher time with, not saying that it couldn't get it, but it had a tougher time with, was detecting the release of the shift key. So one of the things they suggested was, if I go shift I and release key that's different than if I go shift I release N, right. Two capital letters in a row, or three capital letters in a row are different from one capital letter in the row and I had a harder time getting that. So one of their recommendations was to mix in more capital letters. The more caps you have, the more likely you're going to foil the algorithm. That seems fine as a recommendation but, it's not solving the problem by any stretch of the imagination.
No. Some have even suggested that the OS add random noises to keystrokes to throw these things off but that's just maybe a temporary Band-Aid. There are far better ways to mitigate this.
TCTim CallanSo we obviously have talked about the idea that shared secrets are just kind of fundamentally vulnerable architecturally in their core. And I think we're seeing this again, right, Jay?
TCTim CallanVery cool. I think you and I did an episode about the Enigma machine if I could recall.
TCTim CallanAll right, well, wow. Wow. All I can say as wow. Last thing in the world I expected to read until I read it. So anything to add, gentlemen?
That’s it. Just be on the lookout.
Absolutely.
TCTim CallanBut here we are. Alright. Well, thank you very much. Thank you, Mark, for bringing this interesting news to us.