There's a great scene in Le chant du Loup (The Wolf's Call) a French 2019 submarine flick (at one point on Netflix) where the sonar guy hears a password typed and reconstructs it from the sound of each keystroke.
https://youtu.be/a9Gz7Bg07u8
This attack is about as realistic as the film: a parallel universe where million to one chances happen nine times out of ten.