2019-01-01 US Maryland Audits Ballot Images That University of Michigan Researchers Tampered With on 62,400 Oregon Ballots, Undetected

Michigan researchers J. Alex Halderman and Matthew Bernhard built software that moved 62,400 real Oregon voters' marks to a different choice on scanned ballot images, with no visible trace. Maryland's State Board of Elections audits its results by tabulating ballot images taken from its own voting system, so altered images pass the check meant to catch the alteration. The authors inspected 1,000 altered images and found no noticeable evidence of manipulation.
TLDR
- Michigan's Halderman and Bernhard built software that moves voters' marks on scanned ballot images to a different choice.
- It altered 62,400 of 181,541 real Clackamas County, Oregon ballot images without visible anomalies.
- Maryland audits its results by tabulating ballot images from its own voting system.
- The attack ran as a malicious scanner driver on an Election Assistance Commission certified scanner.
- Only physical examination of paper ballots defeats it, the authors conclude.
The Findings
- J. Alex Halderman, Matthew Bernhard, Kartikeya Kandula and Jeremy Wink of the University of Michigan built UnclearBallot, software that finds a contest on a scanned ballot image and moves the voter's mark to the attacker's preferred candidate: "We show that image audits can be reliably defeated by an attacker who can run malicious code on the voting machines or election management system."
- Run on 181,541 real ballots from the November 6, 2018 General Election in Clackamas County, Oregon, the software altered the target contest on 62,400 of the ballot images, 34 percent. It skipped 20,117 (11 percent) it could not read, and left alone marks it was not confident it could move unnoticed.
- Two of the authors independently inspected a random sample of 1,000 altered ballot images: "None of the altered ballots we inspected contained noticeable evidence of manipulation."
- Maryland's State Board of Elections runs an independent automated tabulation audit with Clear Ballot's ClearAudit software, which "performs the independent automated post-election tabulation audit using ballot images from our voting system." The Board contracted Clear Ballot again for the 2026 elections.
- The Board states that using ballot images "removes the need for election officials to physically handle or count voted ballots unless a petition for recount or other judicial challenge is granted."
- The attack was delivered as a malicious Windows scanner driver, 398 lines of C++ and Python, tested on a Fujitsu fi-7180 scanner that is federally certified for use in U.S. elections as part of Clear Ballot's ClearVote system.
- The software took an average of 279 milliseconds per ballot. Hart's fastest central scanner takes one ballot per 352 milliseconds, so the alteration keeps pace with scanning.
- The authors' own conclusion: image audits "should not be viewed as a security tool", and only physical examination of paper ballots can provide the necessary level of mitigation.
Everything below documents those findings.
What the Software Does to a Ballot
A scanner turns a paper ballot into a digital image, and software on the workstation finds the dark marks and reads them as votes. UnclearBallot sits between the scanner and the election management software. It finds the contest by template matching, moves the filled mark from one candidate's oval to the attacker's preferred candidate's oval in the image, and preserves the voter's own marking style so the moved mark matches the other marks on the page. At each step it tests for ballots where the change would leave an artifact, and skips them.
The attacker does not need every ballot. The authors state the point directly: an attacker seeking to alter election results only has to change enough ballots to swing the result. The software keeps a running tally of the actual ballot results while ballots are scanned and changes ballot images on the fly to reach the desired outcome.
The audit compares ballot images with the voting system's record of each ballot, and both come from the same scan. A reviewer looking at the manipulated image sees a ballot that agrees with the altered tally.
What the Oregon Test Found
The test used ballot images from Clackamas County, which votes by mail and counts centrally on optical scanners, made available by Election Integrity Oregon. All were Hart Verity-style ballots. The authors targeted a ballot measure that appeared on every ballot. Measure 102 passed by a margin of 5 percent, a margin the 34 percent of alterable ballots is large enough to overturn.
A separate set of tests marked ballots by hand in six widely used ballot styles, covering the four largest election vendors in the United States, plus older Hart and Diebold styles, using an established taxonomy of voter marks.
What Maryland Audits
Ballot images are digital scans made by optical-scan voting machines, and vendors sell audit products that review them. Clear Ballot pioneered the software, called ClearAudit, and other vendors have adopted it. Maryland's 2018 law, Chapter 523 (House Bill 1278), required the State Board of Elections to complete an automated software audit of the electronic images of all ballots cast after each statewide election, and a manual audit of paper records after each statewide general election. The Board's audit plan has Clear Ballot tabulate ballot images sent by the local boards and compare the result with the voting system's tabulation, with a variance threshold of 0.5 percent. These audits compare images with images and never examine the physical paper trail of ballots, which the attack exploits.
Maryland's 2025 law, Chapter 320 (Senate Bill 313), approved May 6, 2025, requires a risk-limiting audit after each statewide election that manually examines randomly chosen voter-verifiable paper records, and makes the automated software audit of ballot images optional. That is the physical examination the authors conclude is necessary.
Ballots Affected
| Problem Type | Ballot Count |
|---|---|
| Real Oregon ballot images altered by the software | 62,400 |
| Real Oregon ballot images skipped as unreadable | 20,117 |
| Total Summation | 62,400 |
Who Is Who
- J. Alex Halderman, Matthew Bernhard, Kartikeya Kandula and Jeremy Wink: University of Michigan computer scientists who built and tested the software.
- Maryland State Board of Elections: the state agency that audits its results by tabulating ballot images.
- Clear Ballot: the vendor of ClearAudit, the image audit product Maryland uses, and of the ClearVote system the tested scanner is certified for.
- U.S. Election Assistance Commission: the federal body that certified the scanner used in the test.
Conclusion
J. Alex Halderman and Matthew Bernhard of the University of Michigan, with Kartikeya Kandula and Jeremy Wink, built software that altered 62,400 of 181,541 real Clackamas County, Oregon ballot images and left no noticeable evidence of manipulation in the 1,000 they inspected. The software ran as a malicious scanner driver on a scanner certified by the U.S. Election Assistance Commission and kept pace with the scanning speed of Hart's fastest central scanner. Maryland's State Board of Elections audits its results by tabulating ballot images from its own voting system with Clear Ballot's ClearAudit, which is exactly the kind of image the software alters. The authors' conclusion is that a ballot image audit cannot be a security tool: a manipulated image passes the audit, and only counting the physical paper ballots finds the change.