AutoRun and the companion feature AutoPlay are components of the Microsoft Windows operating system that dictate what actions the system takes when a drive is mounted.
AutoRun functionality has been used as a malware vector for some time. Prior to Windows Vista, the default action with a CD-ROM drive type was to follow any autorun.inf file instructions without prompts or warnings. This makes rogue CD-ROMs one possible infection vector.
With a standard flash drive, social engineering attacks can be employed to entice a user to click on the appropriate item in the AutoPlay dialog
Heres another safety measure on how to protect your PC from virus that is usually transmitted by a USB flash disk, you can simply prevent this by initially disabling autorun.
- To do this, you need to go to “services.msc“
- And look for “Shell Hardware Detection“
- Now you can disable this service by selecting “disabled” from the selection below, and click “Apply”
Note: whenever you insert the flash drive to your computer, it will not run automatically, I’m using this setting to stop the virus to execute itself by using autorun.