About a decade ago, a researcher demonstrated a worm that could be implanted in one machine, that over the course of months would spread to a large number of machines as election workers did routine maintenance. Since physical protection of the machines was typically weak, the initial compromise wouldn't have been that difficult for anyone able to pick a lock.