Ransomware attacks can happen with or without any action from your side. The most common methods used are Phishing and Malvertising. Therefore, always be careful not to open unverified emails and fake online ads. Make sure to secure and back up all your data and files in the system.