Why a near-miss cyberattack put US officials and the tech in