I’m assuming we need world socialism to avoid this threat?
Yep, and high taxes on any kind of energy consumption. Plus, you must reduce your water usage by at least 25% right now. Oh, and get rid of your guns. The metal in them will amplify the destructive effects of EMP.