You should read article 2 section 1 of the constitution. Congress and the vp have to sign off on the electoral votes.
Back in 2018, there was another hoopla about dom voting machines, as a security measure, trump passed the foriegn interference and fraudulent vote protection act. You can read that here
https://www.whitehouse.gov/presidential-actions/executive-order-imposing-certain-sanctions-event-foreign-interference-united-states-election/