Use programs to check and filter the content of the mail server
Using the program to check and filter the content of the mail server is a reliable way to protect against ransomware thrones.
These programs reduce the likelihood of spam containing malware or malware infected attachments or links getting into your inbox.
Do not use other people's USB devices.
Never insert unknown USB sticks or other removable storage devices into your computer.
Perhaps cybercriminals pre-infected this device with a ransomware program and specially left it in a public place, based on your curiosity.
Regularly update the software and operating system on your devices
Regular software and operating system updates help protect you from malware. The latest security updates make it very difficult for cybercriminals to exploit vulnerabilities in your software.
preventing ransomware attacks
More info @ preventing ransomware attacks