I was hit with a ransomware attack several years ago and lost all my files which fortunately were backed up on an external drive. It's a major worldwide problem with no single solution yet available. Upgrading to the latest hardware and software along with anti-virus protection only goes so far and doesn't provide a guarantee that this problem won't still occur. Constant vigilance and common sense regarding clicking on email links and surfing the web may be the most effective means to secure your system. Read it before you click it.