That's definitely a transformer. It should be plugging into a GFI outlet or GFI protected circuit.

I'd replace it with new equipment and make sure the GFCI outlet or breaker is in good working order. Otherwise, that should be replace too.