The connectors have rubber gaskets that seal them from the elements. The PCM itself is protected with rubber seals against water intrusion (as I found when i took one apart).
Mine sat open in my engine bay for a couple years. Now its in the WizAired box which offers some protection, but not a whole lot and it's still fine.