The National Security Agency and other military cyber units have long assisted with monitoring election infrastructure and defending it against possible hacking attempts. Election systems were designated as “critical infrastructure” in 2017, paving the way for greater federal cybersecurity support.