STOP ransomware commonly arrives with bad software downloads, in most cases these are cracks, game cheats, patches, keygens. So to avoid this ransomware specifically, it is best to not use illegal programs.
The best strategy to avoid ransomware having a leverage on your files is the creation of regular backups, e.g., to an external drive that is not always attached to the system.
Below is a list of general infection prevention tips for all kinds of malware:
- Keep your programs always up-to-date, including the operating system, browsers, email programmes, everything that you use to interact with the web, and also your antivirus suite.
- Use exactly one antivirus suite. Several will get in the way of each other, fight for resources, and potentially detect each other as malicious due to the way antivirus has to monitor the system.
- Use browser plugins that prevent ads (aka adblockers) and execution of scripts, e.g., NoScript.
- Be careful with email attachments and links. Those can potentially contain malware or lead to phishing sites.
- Avoid using P2P software. This software is sharing files with lots of other computers. Infected files, especially worms, thrive in this environment.
- Enable to view file extensions in file explorer, so that you can recognize double extensions. These are used by malware to trick you into executing their files, e.g. my_great_movie.mp4.exe
Do you have any remaining questions?