WEBVTT

00:00.700 --> 00:07.400
Presentation, we have Unclear Ballot, Automated Ballot Image Manipulation with Carl Candula.

00:07.400 --> 00:08.480
Is that correct?

00:08.480 --> 00:09.080
CART.

00:09.260 --> 00:10.160
Oh, sorry.

00:10.160 --> 00:13.280
CART Candula, graduate student at the University of Michigan.

00:13.380 --> 00:15.620
CART Candula received his B.S.C.

00:15.620 --> 00:22.100
degree in Computer Science Engineering from the University of Michigan in 2019 and is currently pursuing an M.S.C.

00:22.100 --> 00:23.500
in the same area.

00:23.540 --> 00:25.280
He conducts research in the U.M.

00:25.280 --> 00:27.680
Security Lab under the supervision of Professor J.

00:27.680 --> 00:28.580
Alex Halderman.

00:28.580 --> 00:35.740
Currently, his research interest lies in problems affecting society and public policy, specifically election security.

00:35.740 --> 00:38.240
He has held internships at Microsoft and J.P.

00:38.240 --> 00:43.000
Morgan in the past and also Jeremy Wink, undergraduate student at the University of Michigan.

00:45.600 --> 00:50.020
Jeremy Wink is an undergraduate student at the University of Michigan currently pursuing a B.S.C.

00:50.020 --> 00:51.740
in Computer Science.

00:51.740 --> 00:57.740
He has taken multiple security courses and spent time researching topics surrounding election cybersecurity, also under J.

00:57.740 --> 00:58.900
Alex Halderman.

00:58.900 --> 01:01.920
Thank you so much.

01:01.940 --> 01:03.880
So Jeremy's going to get us started.

01:04.580 --> 01:05.580
All right.

01:05.580 --> 01:06.260
Hey, everyone.

01:06.260 --> 01:07.240
Thanks for coming.

01:07.240 --> 01:08.620
I'm Jeremy Wink.

01:08.620 --> 01:10.680
And my name's CART Candula.

01:10.680 --> 01:24.660
We're undergraduates from the University of Michigan, and we're presenting Unclear Ballot, which is an attack based on automated ballot image manipulation, which we developed jointly with Matt Bernard and Professor Alex Halderman from the University of Michigan.

01:25.180 --> 01:34.540
So to first give some background on our attack, post-election audits are one of the most important factors in guaranteeing the integrity of election results.

01:34.540 --> 01:46.340
If an attacker is somehow able to breach an election system in order to manipulate the outcome of the election, post-election audits should serve as a strong layer of defense in order to allow us to detect these breaches.

01:46.940 --> 01:57.600
There are several types of post-election audits, including risk-limiting audits, in which a small random sample of paper ballots are inspected in order to give us statistically significant results.

01:58.180 --> 02:01.240
Another type of post-election audit is an image audit.

02:01.460 --> 02:10.940
In this case, an audit is conducted not on physical paper ballots, but instead on images of the ballots, which are taken when the ballots are originally scanned.

02:11.240 --> 02:24.920
This tends to be quicker and a lot more convenient than actually looking through the paper ballots, so this type of audit has been gaining a lot of popularity in recent years, and was actually used by the state of Maryland following the 2016 presidential election.

02:25.520 --> 02:32.300
This is pretty scary, because it turns out this type of audit actually does not hold up under adversarial conditions.

02:32.300 --> 02:42.220
If an attacker is able to breach an election system in order to manipulate the results of an election, they could just as easily get access to these digital images of the ballots.

02:42.340 --> 02:53.100
If they were then able to manipulate these ballot images in order to change the apparent votes within them, then image audits would offer zero security whatsoever and would effectively be useless.

02:54.320 --> 03:03.420
To demonstrate this vulnerability, we've developed an attack which focuses on automatically altering ballot images to change the votes within them.

03:03.960 --> 03:09.800
This attack targets tabulation machines, which have been shown in the past to not be the most secure devices.

03:09.840 --> 03:18.140
In fact, numerous vulnerabilities have been documented in the past, demonstrating how an attacker could potentially infiltrate these voting machines.

03:20.220 --> 03:22.460
The strategy of our attack is simple.

03:22.840 --> 03:30.880
Alter the votes within a ballot image in a way that is both undetectable and also consistent with the voter's original markings.

03:31.400 --> 03:40.540
In order to do this, we leveraged a variety of computer vision techniques operating under the assumption that the attacker knows what the ballot looks like in advance.

03:40.580 --> 03:48.060
This is a pretty reasonable assumption to make, considering many jurisdictions publish sample ballots well ahead of the actual elections.

03:50.100 --> 03:57.400
The first step in our attack is to extract bounding boxes around the individual races within the ballot.

03:57.400 --> 04:01.840
This can be done by using a template match with a blank copy of the original ballot.

04:03.840 --> 04:11.120
The next step in the attack is to extract bounding boxes around the individual names and vote bubbles of each candidate.

04:11.400 --> 04:15.500
This is typically done with a huff line transform, which you can picture here in the slides.

04:18.980 --> 04:28.480
For some ballot styles, the title of the race needs to be separated from the top candidate's name in order to prevent the title of the race from interfering with the rest of the attack.

04:28.540 --> 04:35.260
This can be done by running a vertical sweep on the image and using pixel intensities to find an area of white space above the candidate's name.

04:35.480 --> 04:45.100
It's also worth noting here that the exact algorithm used in this attack varies slightly from ballot style to ballot style, but these same techniques are used pretty consistently across the board.

04:46.220 --> 04:53.380
The final step in the attack is to extract bounding boxes around the actual vote bubbles corresponding to each candidate.

04:53.680 --> 05:01.440
This is done by using a series of linear sweeps across the image, once again using pixel intensities to determine the boundaries of the vote bubbles.

05:03.980 --> 05:14.540
Once we've extracted bounding boxes around the vote bubbles of every candidate, all we need to do to alter the votes within the image is simply swap the pixels between bounding boxes.

05:15.980 --> 05:21.120
So here are a couple examples of votes that we've swapped using this attack.

05:22.980 --> 05:28.480
We've also recorded a video demo to better illustrate our attack in action.

05:28.700 --> 05:34.420
Before I show this, I just want to clarify that this demo was recorded solely for visualization purposes.

05:34.420 --> 05:39.620
The actual attack happens much faster and also has no visual components to it whatsoever.

05:46.080 --> 05:48.880
So here we have our target ballot.

05:49.820 --> 05:54.940
We first use a template match to extract the individual races within the ballot.

05:58.510 --> 06:03.810
Once we've done this, we use a Huffline transform to separate the individual candidates.

06:04.270 --> 06:08.450
We now crop out the title of the race from the top candidate's window.

06:20.220 --> 06:26.700
Once we've done this, we can extract the bounding boxes around each candidate's vote bubble by using a series of linear swoops.

06:31.500 --> 06:37.520
Once we've done this, we simply swap the pixels inside of these boxes and we've altered the votes.

06:44.480 --> 06:48.400
So, I'll now be passing it off to Card to talk further about our attack.

06:48.400 --> 06:49.940
Thank you, Jeremy.

06:51.020 --> 07:00.900
So, Unclear Ballot is our POC implementation of this attack, which we did in C++ and we packaged this as a window scanner driver.

07:00.900 --> 07:15.140
We also tested this on the Fujitsu FI-7180 scanner, which is an EAC certified which is certified by the EAC for use in elections as part of ClearBallot's ClearVote system.

07:15.140 --> 07:32.300
So, our malicious microdriver wraps around the original driver for the Fujitsu scanner and serves as an interface between the actual scanner and the election administration software as shown in the image at the bottom of the slide.

07:34.140 --> 07:39.760
So, to ensure the versatility of our attack, we tested it across six different ballot styles.

07:39.800 --> 07:43.440
Four of these are in use by the largest election vendors in the U.S.

07:43.440 --> 07:48.260
These are ES&S, Heart, Dominion, and also ClearBallot.

07:48.260 --> 07:52.900
We also used two older styles of ballot from Heart and Diebold.

07:53.080 --> 07:57.080
So, you can see all six of those styles on the slide.

07:59.320 --> 08:06.140
So, to test our attack, we prepared 720 marked contests using the botchy systemization.

08:06.180 --> 08:10.460
120 per each of the ballot styles shown in the slide previously.

08:10.740 --> 08:26.040
So, for each of these 120, 60 of these would be what botchy would consider filled ballots and we would have 10 of each of the marginal marks shown on the bottom and also 10 empty ones, which ends up giving us 120.

08:29.490 --> 08:51.950
So, one key insight behind our attack is that an attacker would not have to alter a significant fraction of the votes in order to change the results of most elections because this gives us a lot of leeway with our attack because if we're not confident that we can move a marking without leaving trace artifacts that could be visible upon inspection,

08:51.950 --> 08:55.570
we can just skip over this ballot and move on to the next one.

08:55.570 --> 09:02.390
So, at the bottom of the slide, you can see an image of a ballot that we would not attempt to alter.

09:02.390 --> 09:05.170
As you can see, it's an overfilled ballot.

09:05.190 --> 09:12.350
And if we were to attempt to create a bounding box around this marking, it would overlap with the candidate's name.

09:12.450 --> 09:22.150
So, because of this, if we were to attempt to swap it with another candidate, vote to another candidate, we would be taking part of the candidate's name along with the ballot.

09:22.150 --> 09:26.190
And this would be very apparent upon visible inspection.

09:27.890 --> 09:34.990
So, shown here is the performance of unclear ballot upon each of the six different ballot styles that we used.

09:35.710 --> 09:48.030
So, as can be seen, for the 60 ballot marks for each of the ballot styles, we were able to move at least 50% of the marks except for the case of hard e-scan.

09:50.310 --> 09:58.190
And across invalid and valid marks for each of the ballot styles, we were able to move at least 18% of ballot marks.

09:58.430 --> 10:07.810
If we were to watch this attack, and at this rate, we would have been able to swap the results in 48 out of 51 of the districts in the 2016 U.S.

10:07.810 --> 10:09.150
presidential election.

10:09.350 --> 10:13.970
The only red districts that we could not have turned blue are Wyoming and West Virginia.

10:13.970 --> 10:17.070
Wyoming was won by Donald Trump, 68 to 22.

10:17.070 --> 10:20.750
And West Virginia was won by Trump, 68 to 26.

10:21.230 --> 10:22.970
And on the other hand, D.C.

10:22.970 --> 10:27.890
is the only blue district that we could not have turned, as it was won by Hillary Clinton, 91 to 4.

10:30.670 --> 10:40.890
However, even if we were to be able to alter Wyoming's results, this would not be realistic, as it would not be believed by the public.

10:41.970 --> 10:49.030
However, in a close election, it is very possible that we would be able to change the results to either one of the candidates.

10:51.210 --> 11:04.150
Along with the 720 marked ballots that we tested on, we were able to obtain a corpus of around 181,000 ballots from the November 6, 2018 general election in Clackamas County, Oregon.

11:04.330 --> 11:10.410
These votes were of the Hart-Varady style, and the votes were centrally counted with an optical scanner.

11:10.410 --> 11:22.350
Because they were centrally counted, this would have been an ideal target for our described attack, as an attacker would only have to inject a malware onto devices in one location.

11:23.610 --> 11:29.850
Shown on this slide are the results of our testing on the ballots from Clackamas County.

11:30.050 --> 11:43.690
Our program rejected around 20,000 of these ballots, which amounts to about 11%, which when we inspected a subset of these 20,000, and on many of these ballots, we noticed that there were scanning glitches.

11:43.690 --> 11:53.650
For example, on many of these, we noticed pixelated lines that ran through the length of the ballot image, which messed up our Huff line transform.

11:54.250 --> 12:04.530
We wanted to emulate the behavior of a real attacker, and a real attacker would want to ensure that they would not be leaving any trace artifacts upon swapping.

12:04.530 --> 12:15.330
So we used pretty conservative parameters with this attack, and even with these conservative parameters, we were able to alter around 62,000 votes, which amounts to 34% of the ballots.

12:15.350 --> 12:28.590
We sampled 1,000 of these ballots randomly that had been altered, and there were no visible artifacts that we could, just by looking at them, we were not able to determine any visible artifacts.

12:28.610 --> 12:42.350
The alteration time for this was 279 milliseconds per ballot, while the fastest hard scan time was 352 milliseconds per ballot, which puts us well below the threshold we need to be at to conduct this attack.

12:42.390 --> 12:51.230
However, it should also be noted that we did not conduct any optimization on our algorithm, and if we had done so, we'd further be able to bring down our alteration time.

12:54.380 --> 13:00.180
So do image audits serve any use if they can't be used to detect attacks?

13:00.180 --> 13:05.260
It turns out they're very good at certain things, such as catching non-adversarial error.

13:05.300 --> 13:22.580
So two examples of this are in Maryland in 2016, 2,000 ballots were discovered with the help of image audits, and a flaw was discovered in the ES&S DS850 high-speed scanner, where ballots were sticking together and being scanned in at the same time.

13:22.580 --> 13:26.400
So if there were two ballots that stick together and only one of them would be counted.

13:26.880 --> 13:34.320
However, these image audits cannot be relied upon in adversarial environments.

13:36.040 --> 13:37.520
What about image detection?

13:37.520 --> 13:44.240
Is it possible that vendors can implement detection into their systems in order to discover if alterations have occurred?

13:44.240 --> 13:53.820
It turns out that image detection ends up becoming an arms race at best, because as detection algorithms improve, so do the manipulation algorithms to counteract them.

13:54.000 --> 14:06.820
So it's very likely that an attacker would be able to get their hands on detection code if it were implemented into a system, and with this detection code, they would be able to improve their manipulation algorithms to defeat this.

14:06.880 --> 14:13.400
Another thing that an attacker could do to defeat a detection algorithm is they could use it as part of their mark-moving algorithm.

14:13.400 --> 14:18.980
Let's say our attacker has a ballot, and they alter the ballot with their algorithm.

14:18.980 --> 14:28.140
They would then run the altered ballot through the detection algorithm, and if the detection algorithm detects that it's been altered, they would skip the ballot and just move on.

14:30.860 --> 14:34.600
Regardless of any of this, to our knowledge, no election vendor in the U.S.

14:34.600 --> 14:38.780
has even minimal image detection in their systems today.

14:40.680 --> 14:43.220
So how can we protect against this?

14:43.220 --> 14:48.640
The best solution is to use risk-limiting audits where people are looking at physical ballots.

14:49.880 --> 14:57.940
With these risk-limiting audits, you ensure that the process is fully software-independent and cannot be manipulated at any point.

14:58.100 --> 15:06.620
These risk-limiting audits ensure that there's a high probability of detecting errors, there's a high probability of detecting fraud, and also of error.

15:06.620 --> 15:16.760
And even if every single machine in the voting system is infected, you will still be able to determine whether an alteration has occurred.

15:18.480 --> 15:20.720
So what do we take away from this?

15:20.720 --> 15:29.640
These image audits can... so image audits involve checking digital photos of ballots rather than the actual physical ballots.

15:29.640 --> 15:41.160
However, as we have shown, an attacker can use computer vision methods to automatically alter and manipulate these images and change the results to their desired candidates.

15:41.180 --> 15:47.060
We implemented this with an EAC-certified scanner, the Fujitsu F5-7180 scanner.

15:47.180 --> 15:52.920
And this scanner is part of ClearBallot's ClearVote system.

15:52.920 --> 15:59.520
And we showed that our attack works across all the ballot files from all major vendors in the U.S.

15:59.520 --> 16:05.100
The best defense against this is for people to audit the ballots physically.

16:06.600 --> 16:19.080
So the work that we presented today, we compiled into a research paper, and this will be presented at eVoteID and also known as the International Joint Conference of Electronic Voting.

16:19.100 --> 16:24.720
And we're releasing it to the public today on these two links.

16:25.560 --> 16:29.500
So if you go to those links right now, you can access the full papers.

16:31.720 --> 16:34.460
So we'll now be opening up for any questions.

16:35.540 --> 16:36.700
Yeah.

16:41.860 --> 16:43.880
I'll go ahead.

16:43.880 --> 16:59.540
Yes, having actually hacked voting machines, one of the things that I'd like to ask you is, if you took the images in comparison to the actual ballot, you'd find the attack, wouldn't you?

16:59.680 --> 17:00.700
Yeah, you would.

17:00.700 --> 17:02.620
If you compared to the physical ballot.

17:02.620 --> 17:11.980
The same thing that we found in the Hari attack, basically, it only worked if you didn't examine the actual paper at all.

17:12.200 --> 17:21.340
If you examined a portion of the ballots against the images using the clear ballot, this attack would fail, wouldn't it?

17:23.300 --> 17:27.680
Which is why, at some point, you need to go back to the physical ballots.

17:27.680 --> 17:28.760
That is correct.

17:28.760 --> 17:31.100
Great work.

17:47.520 --> 17:59.120
So there is logic in place to normalize the size between all of the bounding boxes for an individual race.

18:03.240 --> 18:04.880
Oh, yeah.

18:32.530 --> 18:33.430
...

18:36.530 --> 18:37.370
...

18:44.810 --> 18:46.210
...

18:47.850 --> 18:48.550
...

18:49.250 --> 18:49.330
...

18:49.330 --> 18:49.630
...

18:56.210 --> 18:57.610
...

18:57.610 --> 18:58.010
...

19:01.410 --> 19:05.610
We're not going to be making it available just to...

19:06.750 --> 19:07.290
...

19:08.270 --> 19:09.210
...

19:10.870 --> 19:11.810
...

19:11.810 --> 19:13.630
...

19:14.650 --> 19:15.590
...

19:16.970 --> 19:17.430
...

19:23.670 --> 19:24.130
...

19:28.530 --> 19:28.990
...

19:31.830 --> 19:33.110
What was that?

19:33.510 --> 19:33.970
...

19:43.540 --> 19:44.620
Yeah, that's correct.

19:44.620 --> 19:45.860
It's on the back end.

19:47.220 --> 19:47.680
...

19:49.400 --> 19:50.800
...

19:52.800 --> 19:54.200
...

19:59.320 --> 20:00.720
...

20:00.720 --> 20:03.320
...

20:03.320 --> 20:03.760
...

20:03.760 --> 20:03.780
...

20:03.780 --> 20:04.080
...

20:04.080 --> 20:06.040
...

20:09.160 --> 20:10.560
...

20:10.560 --> 20:11.880
...

20:11.880 --> 20:14.120
...

20:14.120 --> 20:14.160
...

20:14.160 --> 20:15.580
...

20:15.580 --> 20:15.800
...

20:15.800 --> 20:17.480
...

20:17.480 --> 20:19.980
...

20:19.980 --> 20:21.860
...

20:21.860 --> 20:21.900
...

20:21.900 --> 20:22.720
...

20:22.720 --> 20:23.060
...

20:23.060 --> 20:23.600
...

20:23.600 --> 20:24.300
...

20:26.240 --> 20:27.640
...

20:34.660 --> 20:35.360
...

20:35.360 --> 20:36.880
...

20:36.880 --> 20:37.120
...

20:37.120 --> 20:37.280
...

20:37.280 --> 20:37.720
...

20:37.720 --> 20:39.520
...

20:39.520 --> 20:42.180
...

20:49.280 --> 20:50.160
...

20:50.160 --> 20:50.660
...

20:50.660 --> 20:52.840
...

20:52.840 --> 20:54.900
...

21:05.000 --> 21:05.880
...

21:05.880 --> 21:08.080
...

21:10.980 --> 21:12.380
...

21:14.240 --> 21:15.640
...

21:15.640 --> 21:16.160
...

21:16.160 --> 21:16.420
...

21:16.420 --> 21:18.140
...

21:18.140 --> 21:20.500
There's a stream of bitmap data.

21:20.500 --> 21:20.940
...

21:28.020 --> 21:31.720
I can get to you after.

21:34.980 --> 21:35.780
...

21:38.340 --> 21:39.140
...

21:39.140 --> 21:40.620
...

21:41.780 --> 21:42.580
...

21:42.580 --> 21:44.140
...

21:46.680 --> 21:48.080
...

21:50.920 --> 21:52.320
...

21:56.500 --> 21:57.900
...

21:58.580 --> 22:00.020
...

22:00.020 --> 22:00.740
...

22:00.740 --> 22:01.120
...

22:01.120 --> 22:01.980
...

22:05.880 --> 22:07.280
...

22:10.920 --> 22:12.320
...

22:15.220 --> 22:16.620
...

22:16.620 --> 22:16.780
...

22:16.780 --> 22:17.720
...

22:27.450 --> 22:30.590
You mentioned a hash.

22:30.590 --> 22:49.110
For the hash to be secured, you'd have to ensure that the key that's being used with the hash is also secured, that what it's being hashed with is also not publicly available, and it's possible that an attacker would be able to get that and recreate a hash for the manipulated ballot.

22:49.110 --> 23:00.930
There are end-to-end systems such as Kintegrity and Predivoter that this attack would fail with, and it would be very hard to make this work with those type of systems.

23:00.930 --> 23:03.790
So those are some systems similar to what you said.

23:04.230 --> 23:28.530
For example, Predivoter, the candidate order is randomized, and when you cast a ballot, you rip off the actual markings from the candidate list, so you cannot tell... so the ballot markings are tied with a key, and so you cannot tell just from looking at the ballot who someone voted for because that order is randomized and it's removed from the candidate list.

23:34.120 --> 23:41.600
That's true, but with such a system, you could create a public bulletin for users to verify their votes.

23:41.600 --> 23:45.260
However, then you run into issues of selling votes.

23:47.260 --> 23:49.020
Not with Predivoter?

23:49.020 --> 23:49.940
Okay.

23:50.060 --> 23:51.140
My apologies.

23:51.500 --> 23:54.400
Professor Bernal definitely knows better.

23:54.420 --> 23:57.300
So that would not be an issue, actually.

23:57.300 --> 23:59.380
Yes?

24:34.930 --> 24:35.510
...

24:57.080 --> 25:06.820
So, that's correct.

25:06.820 --> 25:14.040
That case is when the tabulation occurs with different scans from the actual scans used with the image audit.

25:14.040 --> 25:23.860
However, with something like that, you would have to attack both the systems and somehow coordinate it to ensure that you're getting the same results with the attack.

25:23.860 --> 25:26.960
That would be a more complicated scenario.

25:26.960 --> 25:30.140
However, our attack focus is on if the tabulation...

25:30.140 --> 25:35.260
if the scan for the tabulation and the image audit occurs at the same time.

25:35.260 --> 25:35.520
...

25:59.990 --> 26:01.390
...

26:03.570 --> 26:04.270
...

26:20.540 --> 26:21.940
...

26:21.940 --> 26:24.240
...

26:31.140 --> 26:32.540
...

26:32.540 --> 26:33.380
...

26:33.380 --> 26:34.860
...

26:34.860 --> 26:35.420
...

26:38.780 --> 26:39.660
...

26:43.720 --> 26:44.600
...

26:48.060 --> 26:48.940
Any

26:52.330 --> 26:54.210
other questions?

26:54.210 --> 27:00.200
Oh yeah, we have time.

27:01.140 --> 27:02.020
...

27:14.960 --> 27:16.240
That's correct.

27:16.240 --> 27:20.620
So I think that's how the scan integrity system works, if I'm correct.

27:20.620 --> 27:22.180
So that would be more difficult.

27:22.180 --> 27:25.500
However, we could adapt our attack to that.

27:25.500 --> 27:36.820
So instead of actually moving the... like swap... completely swapping the ballot boxes, we could, for example, have a data file of marks that we could insert and remove.

27:37.800 --> 27:38.660
Yes?

27:47.980 --> 27:49.940
No, we have not done that.

27:50.280 --> 27:52.080
That would be a good step.

27:52.080 --> 27:54.740
I think we have time for one more question.

28:06.870 --> 28:08.610
To attack the voting machine?

28:11.010 --> 28:12.650
It's a post-exploitation tool.

28:12.650 --> 28:18.710
So we're assuming that someone has hacked the machine, which is very possible.

28:18.710 --> 28:21.250
There's a lot of publications regarding that.

28:22.210 --> 28:23.730
I think that's all we have time for.

28:23.730 --> 28:24.970
Thank you everyone for coming.

