Ransomware accounted for 10% of all cyberattacks in 2021.