Legislation would stiffen penalties for ransomware attacks