USB password stealer is a USB flash disk or hard disk with scripts and tools used to collect password from the victim’s computer once connected. they use autorun.inf files to automate running the stealing tools, so to protect your computer you have to block running autorun.inf
Steps to avoid password stealers
The following lines will show how to protect your computer from these password stealers without any software by disabling autorun.inf
1. Open windows command prompt (CMD)
Use the Run window, to launch this window is to press the Win + R keys on your keyboard. Then, type cmd or cmd.exe and press Enter
2. Execute the following command to stop password stealers
REG ADD “HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\IniFileMapping\Autorun.inf” /ve /d “@SYS:DoesNotExist”
This command tells Windows “whenever you handle autorun.inf, don’t use the values in the file but instead use the values at “HKEY_LOCAL_MACHINE\SOFTWARE\DoesNotExist” and because this key doesn’t exist, it’s as if autorun.inf is empty. So nothing is added to the explorer double-click action.