Recently I've watched a movie "Blackhat" where just by inserting a USB flashdrive he could infect a host PC with some malicious program. Is it true that it's not safe to share USB flashdrives just like that? If yes, how come a "virus" can initiate itself in a host machine without being executed by a user? In other words, doesn't it need to be clicked on first?
Using these techniques you can run commands and install mallware on a computer without the user ever pressing a button or opening a file. So yes, using a untrusted USB (storage) device can be dangerous.
Sharing a USB is always a risk. We never know what new ransomware or malware that pendrive contains. Its always advised to scan the USB before opening the files in your system.
Also how would you know by seeing if a file is corrupted,malware etc?
Ever came across autorun malware in windows? You dont need to click on the file for it to run