Cryptanalysis of Symmetric Primitives over Rings and a Key Recovery Attack on Rubato