A massive solar flare hitting us directly would have the exact-same effect as an EMP attack from North Korea, Russia or whatever “axis of the evil” by the way.
Our electrical grid is subject to cyberattack on a daily basis. Hackers make focused attacks on our grid, attempting to take over control of our electric power.