I noticed that multiple password-locker applications recommend that you use the drag-and-drop feature to transfer passwords to login forms instead of copying the passwords to the clipboard or having the password locker type the password for you using simulated key presses. The basic argument its fairly easy for a keylogger to record key presses or to peek inside the contents of the clipboard.

I know that nothing can totally protect your data if your computer has been compromised but is it true that its harder for spyware to get the password if its transferred using drag-and-drop?


1 Answer 1


Though it's better in the sense that communication is automatically between two windows (and you can hope the object disappears after it's transferred), I'm voting no¹ because:

The only protection I saw was at the process level: you can't DnD from a non-elevated process to an elevated one (prevents shatter attacks).

¹ I don't have a Windows system to test on so I'm just referencing things that seem to disprove it.

  • Wait, we vote now? Jun 29, 2022 at 17:51
  • I do think there's a lot of attacks that target clipboard contents these days... post-bitcoin world. From that perspective (# of exploits in the wild) I think drag/drop is safer.
    – pcalkins
    Jun 29, 2022 at 22:33

You must log in to answer this question.

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