Ensuring Data Resiliency: A Shield Against Ransomware Attacks