Researchers unveil ransomware detection and recovery method