Surviving space weather: How a coronal mass ejection could k