Hackers use USB drives if they can get physically close to a target computer. USBs can be used to pass viruses onto a computer and also a special type of fake input device, which is called a rubber ducky. This emulates a keyboard and a mouse to send keystrokes and mouse clicks to a computer and make it seem as though a user is performing those actions.