How Earth Narrowly Escaped an Invasion from Space