How Keyboard Sounds Can Expose Passwords to AI
Researchers trained an AI model called CoAtNet to identify keystrokes from their sound, reporting accuracy of up to 95 percent in one setup. Muting microphones while typing and using a password manager can reduce the amount of sensitive information captured this way.
Typing can reveal more than the words on a screen. Researchers showed that an AI model called CoAtNet can use the sounds of keystrokes to infer letters and potentially recover passwords, messages, and other sensitive information.
“The story describes AI being used to infer keystrokes and potentially expose passwords and other sensitive information.”Why it scores Terminator
How keystrokes become predictions
The approach relies on the distinct acoustic signal produced by each keyboard key. A microphone records the sounds, and the model analyzes them to predict which keys were pressed.
To train the system, the researchers recorded 36 keys on a MacBook Pro keyboard with an M1 chip and a 16-inch screen. Each key was pressed 25 times. They converted the recordings into waveforms and spectrograms, visual formats that let the model learn differences between keystrokes.
CoAtNet is an image model, so the researchers used those visual representations of the sound as training data. In a test setup, an iPhone 13 Mini placed next to the MacBook Pro recorded typing, and the system achieved up to 95 percent accuracy.
Videoconferencing can carry the sound
The researchers also tested whether keystrokes could be identified through videoconferencing platforms. Their method worked with Zoom and Skype, with reported accuracy of 93 and 91.7 percent, respectively.
Those results show that a nearby microphone is not the only possible route for capturing keystroke sounds. Audio transmitted during a call may also contain useful information, even when the person typing is not deliberately sharing what they enter.
The figures describe the reported experiments, rather than a guarantee that every recording or keyboard will produce the same results. Still, they illustrate why ordinary typing can become a security concern when audio is being recorded or transmitted.
What the risk could expose
An acoustic attack could put passwords, messages, and other sensitive information at risk. If an attacker can connect recorded sounds to individual keys, the resulting predictions may reveal what someone typed.
The article notes that previous similar studies have found this type of attack can also work on laptops and keyboards from other manufacturers. That means the issue is not necessarily confined to the particular MacBook Pro used in the researchers’ setup.
For individuals and organizations, the practical concern is the overlap between typing and open microphones. A person may be entering a password while a call is active, or typing a private message close to a device that is capturing audio.
Steps that reduce exposure
Zoom recommends muting the microphone by default, or at least while typing. Background noise suppression can also be beneficial, according to the source article.
The researchers suggest switching to ten-finger typing, which significantly reduces the acoustic detection rate of individual keys. Password managers can also help by removing the need to type passwords, cutting down the opportunity for keystroke sounds to reveal them.
These steps address different parts of the risk: muting limits what a microphone records, noise suppression can reduce the clarity of captured keystrokes, and a password manager avoids typing credentials altogether. Together, they offer practical ways to make acoustic password detection harder.
Read next