Our government has a cyber security capability that is amazing. We simply do not use it. We could easily know who made the attacks and kill them, nut we let our citizens suffer instead.
There is no simple answer; security is based on layers.
Ransomware is a VERY SERIOUS problem because even state actors like North Korea are getting into the action.