A ransomware attack on Foster City, California, triggered a state of emergency to access additional resources to keep systems up and running.