Chris Krebs, a cybersecurity official in the first Trump administration, had declared that the 2020 election was conducted securely.