The first step in protecting against any ransomware attack is to invest in anti-malware/antivirus protection, preferably one that offers real-time protection designed to thwart advanced malware attacks such as ransomware. You should also look out for features that will both shield vulnerable programs from threats (an anti-exploit technology), as well as block ransomware from holding files hostage (an anti-ransomware component). Some anti-malware solutions offer rollback technology, especially designed to counter the effects of ransomware.
Malwarebytes blocks Ransom.Ryuk
Malwarebytes blocks Ransom.Ryuk