1

If I have to enter sensitive data like a password on a device/system I don't fully trust, because of a possible keylogger. Are there any (common) ways to trick the keylogger to don't get your sensitive data? For example an application which maps your input to your real password and enters it into a the programm/website/etc.?

Are there any exisiting application or solutions for this? Or is this technically not possible?

I am not interested in answers like: 'Then don't enter the data' ;)

6
  • I don't meant, that the "mapping tool" don't know the password.
    – Artery
    Commented Nov 14, 2016 at 19:49
  • 1
    By definition, keylogger will record all K&M inputs. So the only way to get around that is to authenticate not using K&M and/or reusable credentials. Things like tokens with rolling code will offer reasonable protection. Now in practical terms, you are likely safe using throw-away password then changing it from a trusted system once you finished with untrusted device. You are counting on the fact that 'nobody home' at the other end of keylogger. Commented Nov 14, 2016 at 19:49
  • @KirillSinitski Are there any (common) ways to do so?
    – Artery
    Commented Nov 14, 2016 at 19:52
  • It's better to not use a system you think will have a keylogger running. Any schema you can think about is a schema the keylogger maker could possibly have thought before you.
    – ThoriumBR
    Commented Nov 14, 2016 at 19:54
  • In the novel Cryptonomicon, the protagonist extracted data from PC that was suspected of being bugged by flashing Morse code on the Caps Lock LED. You could do the opposite, use the shift key as a Morse sender, as key loggers really don't record timing, only codes
    – infixed
    Commented Nov 14, 2016 at 19:55

1 Answer 1

8

Its impossible to tell without knowing which exact keylogger.

Depending on how the keylogger gets the keys, it can be tricked. For example, if the keylogger works on such a low level that it gets the keys before the operating system, then you can likely hide from it by using a virtual on-screen keyboard or other methods that don't have you touch the actual keyboard.

OTOH, if the keylogger uses a high-level OS API to get the keys, then chances are you won't be able to trick it, since whatever the OS treats as a keystroke will be seen as a keystroke by the keylogger as well.

Some programs let you specify passwords using standard input. So what might work is storing the password in a file (off-system, of course), and then piping the password into the program you want to use via shell pipes. This will almost certainly bypass keyloggers. The downside is that its limited to programs which accept input on the standard input stream, so most GUI programs are out.

Another method that should work everywhere with a clipboard is to store the sensitive info / password in a file, open it in a text editor, copy its contents into the clipboard and paste it where you need it. The keylogger will just see the copy and paste commands (if it doesn't know how to read the clipboard contents, that is). But note tha keeping sensitive info in a system clipboard is hardly secure.

1
  • +1, nicely covered but as you say - pretty tricky when the keylogger is a bit of a blackbox. Biometric identifcation may also be an option if the keylogger's not capable of capturing biometric templates.
    – user81147
    Commented Nov 15, 2016 at 9:16

Not the answer you're looking for? Browse other questions tagged .