The social media firm will now require all political and influential accounts to update their security to avoid a potentially drastic rerun of July’s unprecedented hack.