start	end	text
700	4120	Presentation, we have Unclear Ballot, Automated Ballot Image
4120	8480	Manipulation with Carl Candula. Is that correct?
8480	12200	CART. Oh, sorry. CART Candula, graduate student at the University
12200	16080	of Michigan. CART Candula received his B.S.C. degree in
16080	19740	Computer Science Engineering from the University of Michigan in 2019
20240	24360	and is currently pursuing an M.S.C. in the same area. He conducts
24360	28580	research in the U.M. Security Lab under the supervision of Professor J. Alex Halderman.
28580	32640	Currently, his research interest lies in problems affecting society and
32640	36460	public policy, specifically election security. He has held
36460	40600	internships at Microsoft and J.P. Morgan in the past and also Jeremy
40600	43000	Wink, undergraduate student at the University of Michigan.
45600	48480	Jeremy Wink is an undergraduate student at the University of Michigan
48480	52480	currently pursuing a B.S.C. in Computer Science. He has taken multiple
52480	56200	security courses and spent time researching topics surrounding election
56200	58900	cybersecurity, also under J. Alex Halderman.
58900	63880	Thank you so much. So Jeremy's going to get us started.
64580	68620	All right. Hey, everyone. Thanks for coming. I'm Jeremy Wink.
68620	72420	And my name's CART Candula. We're undergraduates from the University
72420	76180	of Michigan, and we're presenting Unclear Ballot, which is an attack
76180	80200	based on automated ballot image manipulation, which we developed jointly with
80200	84660	Matt Bernard and Professor Alex Halderman from the University of Michigan.
85180	88520	So to first give some background on our attack,
88520	92600	post-election audits are one of the most important factors in guaranteeing the
92600	96700	integrity of election results. If an attacker is somehow able to breach
96700	100920	an election system in order to manipulate the outcome of the election,
100920	104600	post-election audits should serve as a strong layer of defense in order to allow
104600	108680	us to detect these breaches. There are several types of post-election
108680	112540	audits, including risk-limiting audits, in which a small random sample
112540	116620	of paper ballots are inspected in order to give us statistically significant
116620	121240	results. Another type of post-election audit is an image audit.
121460	125020	In this case, an audit is conducted not on physical paper ballots,
125020	128620	but instead on images of the ballots, which are
128620	132560	taken when the ballots are originally scanned. This tends to be quicker
132560	136640	and a lot more convenient than actually looking through the paper ballots, so this type
136640	140680	of audit has been gaining a lot of popularity in recent years, and was actually
140680	144920	used by the state of Maryland following the 2016 presidential election.
145520	148720	This is pretty scary, because it turns out this type of
148720	152300	audit actually does not hold up under adversarial conditions.
152300	156760	If an attacker is able to breach an election system in order to manipulate the results of
156760	160540	an election, they could just as easily get access to these digital
160540	164560	images of the ballots. If they were then able to manipulate these ballot
164560	168140	images in order to change the apparent votes within them, then
168140	173100	image audits would offer zero security whatsoever and would effectively be useless.
174320	177060	To demonstrate this vulnerability,
177060	180340	we've developed an attack which focuses on automatically altering
180340	183420	ballot images to change the votes within them.
183960	188300	This attack targets tabulation machines, which have been shown in the past to not be the
188300	192260	most secure devices. In fact, numerous vulnerabilities have been documented
192260	196460	in the past, demonstrating how an attacker could potentially infiltrate
196460	198140	these voting machines.
200220	204700	The strategy of our attack is simple. Alter the votes within a
204700	208700	ballot image in a way that is both undetectable and also
208700	212520	consistent with the voter's original markings. In order to do this,
212520	216640	we leveraged a variety of computer vision techniques operating under the assumption
216640	220800	that the attacker knows what the ballot looks like in advance.
220800	224080	This is a pretty reasonable assumption to make, considering many jurisdictions
224080	228060	publish sample ballots well ahead of the actual elections.
230100	231880	The first step in our attack
231880	236020	is to extract bounding boxes around the individual races
236020	240240	within the ballot. This can be done by using a template match with a blank copy
240240	241840	of the original ballot.
243840	248200	The next step in the attack is to extract bounding boxes around the individual
248200	252040	names and vote bubbles of each candidate. This is typically
252040	255500	done with a huff line transform, which you can picture here in the slides.
258980	262300	For some ballot styles, the title of the race needs
262300	266420	to be separated from the top candidate's name in order to prevent the title of the race
266420	270340	from interfering with the rest of the attack. This can be done by running a vertical sweep
270340	274200	on the image and using pixel intensities to find an area of white space above the
274200	278220	candidate's name. It's also worth noting here that the exact algorithm used
278220	282380	in this attack varies slightly from ballot style to ballot style, but these same
282380	285100	techniques are used pretty consistently across the board.
286220	290420	The final step in the attack is to extract bounding boxes around the
290420	294520	actual vote bubbles corresponding to each candidate. This is done by
294520	298360	using a series of linear sweeps across the image, once again using pixel
298360	301440	intensities to determine the boundaries of the vote bubbles.
303980	308320	Once we've extracted bounding boxes around the vote bubbles of every candidate,
308320	312040	all we need to do to alter the votes within the image is simply swap the pixels
312040	314540	between bounding boxes.
315980	320160	So here are a couple examples of votes that we've swapped using this
320160	324240	attack. We've also recorded
324760	328480	a video demo to better illustrate our attack in action.
328700	332240	Before I show this, I just want to clarify that this demo was recorded
332240	336380	solely for visualization purposes. The actual attack happens much faster
336380	339620	and also has no visual components to it whatsoever.
346080	347200	So here
347200	350680	we have our target ballot. We first
350680	354940	use a template match to extract the individual races within the ballot.
358510	360690	Once we've done this, we use a Huffline transform
360690	364970	to separate the individual candidates. We now crop
364970	368450	out the title of the race from the top candidate's window.
380220	383420	Once we've done this, we can extract the bounding boxes around each
383420	386700	candidate's vote bubble by using a series of linear swoops.
391500	395320	Once we've done this, we simply swap the pixels inside of these boxes
395320	405160	and we've altered the votes. So,
405160	408400	I'll now be passing it off to Card to talk further about our attack.
408400	413120	Thank you, Jeremy. So, Unclear Ballot is our
413120	417440	POC implementation of this attack, which we did in C++
417440	420900	and we packaged this as a window scanner driver.
420900	424920	We also tested this on the Fujitsu FI-7180
424920	427900	scanner, which is an EAC certified
427900	432520	which is certified by the EAC for use in elections
432520	436740	as part of ClearBallot's ClearVote system. So, our malicious microdriver
436740	440480	wraps around the original driver for the Fujitsu scanner
440480	445020	and serves as an interface between the actual scanner and the
445020	449400	election administration software
449400	452300	as shown in the image at the bottom of the slide.
454140	457420	So, to ensure the versatility of our attack, we tested it
457420	461300	across six different ballot styles. Four of these are in use by
461300	465780	the largest election vendors in the U.S. These are ES&S, Heart,
465780	469300	Dominion, and also ClearBallot. We also used two
469300	472900	older styles of ballot from Heart and Diebold.
473080	477080	So, you can see all six of those styles on the slide.
479320	481060	So, to test our
481060	484680	attack, we prepared 720 marked contests using the
484680	489080	botchy systemization. 120 per each of the ballot styles shown in the
489080	493280	slide previously. So, for each of these 120,
493280	496460	60 of these would be what botchy would consider filled ballots
496940	500800	and we would have 10 of each of the marginal marks shown on the bottom
500800	505080	and also 10 empty ones, which ends up giving us
505080	511490	120. So, one key insight behind
511490	515290	our attack is that an attacker would not have to alter a significant
515290	519070	fraction of the votes in order to change the results of most elections
519070	523470	because this gives us a lot of leeway with our attack because
523470	527310	if we're not confident that we can move a marking without
527310	531290	leaving trace artifacts that could be visible upon
531290	535570	inspection, we can just skip over this ballot and move on to the next one.
535570	539550	So, at the bottom of the slide, you can see an image of
539910	543410	a ballot that we would not attempt to alter. As you can see,
543410	547350	it's an overfilled ballot. And if we were to attempt to create a bounding box
547350	551590	around this marking, it would overlap with the candidate's
551590	554930	name. So, because of this, if we were to attempt to
555410	559510	swap it with another candidate, vote to another candidate, we would be taking
559510	563630	part of the candidate's name along with the ballot. And this would be very apparent
563630	566190	upon visible inspection.
567890	571570	So, shown here is the performance of unclear ballot upon
571570	574990	each of the six different ballot styles that we used.
575710	579730	So, as can be seen, for the 60 ballot
579730	583930	marks for each of the ballot styles, we were able to move at least 50%
583930	588030	of the marks except for the case of hard e-scan.
590310	591810	And across invalid
591810	595010	and valid marks for each of the ballot styles, we were able to move
595650	599510	at least 18% of ballot marks. If we were to
599510	603770	watch this attack, and at this rate, we would have been able to swap the results
603770	607810	in 48 out of 51 of the districts in the 2016 U.S.
607810	611710	presidential election. The only red districts that we could not have turned
611710	615670	blue are Wyoming and West Virginia. Wyoming was won by Donald Trump,
615670	619870	68 to 22. And West Virginia was won by Trump, 68 to
619870	623810	26. And on the other hand, D.C. is the only blue
623810	627890	district that we could not have turned, as it was won by Hillary Clinton, 91 to 4.
630670	631390	However,
631390	635250	even if we were to be able to alter Wyoming's
635810	639790	results, this would not be realistic, as it would not be believed by
639790	643870	the public. However, in a close election,
643870	647690	it is very possible that we would be able to change the results to either one
647690	649030	of the candidates.
651210	655450	Along with the 720 marked ballots that we tested on, we were able to obtain
655750	659470	a corpus of around 181,000 ballots from the
659470	664150	November 6, 2018 general election in Clackamas County, Oregon.
664330	667750	These votes were of the Hart-Varady style, and the votes
667750	671510	were centrally counted with an optical scanner. Because they were centrally
671510	675570	counted, this would have been an ideal target for our described
675570	679550	attack, as an attacker would only have to inject a malware onto
679550	682350	devices in one location.
683610	687690	Shown on this slide are the results of our testing on the
687690	691450	ballots from Clackamas County. Our program rejected
691450	695690	around 20,000 of these ballots, which amounts to about 11%, which
696310	699390	when we inspected a subset of these
699390	703690	20,000, and on many of these ballots, we noticed that there were scanning glitches.
703690	707710	For example, on many of these, we noticed pixelated lines that ran
707710	711730	through the length of the ballot image, which messed up
711730	715690	our Huff line transform. We wanted to emulate the
715690	719710	behavior of a real attacker, and a real attacker would want to ensure
719710	723670	that they would not be leaving any trace artifacts upon
723670	727770	swapping. So we used pretty conservative parameters with this attack, and
727770	731070	even with these conservative parameters, we were able to alter around
731070	735330	62,000 votes, which amounts to 34% of the ballots.
735350	739110	We sampled 1,000 of these ballots randomly that had
739110	743090	been altered, and there were no visible artifacts that
744030	747050	we could, just by looking at them, we were not able to determine
747050	750230	any visible artifacts. The alteration time for this was
750910	755150	279 milliseconds per ballot, while the fastest hard scan time
755150	759070	was 352 milliseconds per ballot, which puts us
759070	763150	well below the threshold we need to be at to conduct this attack. However, it should
763150	767390	also be noted that we did not conduct any optimization on our algorithm,
767390	771230	and if we had done so, we'd further be able to bring down our alteration time.
774380	777120	So do image audits serve any use
777120	780900	if they can't be used to detect attacks? It turns out they're
780900	785260	very good at certain things, such as catching non-adversarial error.
785300	789260	So two examples of this are in Maryland in 2016,
789260	793120	2,000 ballots were discovered with the help of image audits,
793120	796980	and a flaw was discovered in the ES&S DS850
796980	801180	high-speed scanner, where ballots were sticking together and being scanned
801180	805300	in at the same time. So if there were two ballots that stick together and only one of them
805300	808340	would be counted. However, these
809180	812080	image audits cannot be relied upon in adversarial
813200	817520	environments. What about image detection?
817520	821600	Is it possible that vendors can implement detection into their systems in order
821600	825680	to discover if alterations have occurred? It turns out that image detection
825680	829400	ends up becoming an arms race at best, because as detection
829400	833820	algorithms improve, so do the manipulation algorithms to counteract them.
834000	837540	So it's very likely that an attacker would be able to
837540	841380	get their hands on detection code if it were implemented into a system,
841380	845580	and with this detection code, they would be able to improve their manipulation algorithms
845580	849640	to defeat this. Another thing that an attacker could do to defeat a detection
849640	853400	algorithm is they could use it as part of their mark-moving algorithm.
853400	857520	Let's say our attacker has a ballot, and they alter
857520	861520	the ballot with their algorithm. They would then run the altered ballot
861520	865600	through the detection algorithm, and if the detection algorithm detects that it's been
865600	868140	altered, they would skip the ballot and just move on.
870860	873740	Regardless of any of this, to our knowledge, no election
873740	877800	vendor in the U.S. has even minimal image detection in their systems
877800	881860	today. So how can we
881860	885800	protect against this? The best solution is to use risk-limiting audits
885800	888640	where people are looking at physical ballots.
889880	893800	With these risk-limiting audits, you ensure that the process is
893800	897940	fully software-independent and cannot be manipulated at any point.
898100	901660	These risk-limiting audits ensure that there's a high probability of
901660	905600	detecting errors, there's a high probability of detecting fraud, and also
905600	909500	of error. And even if every single machine in the voting system
909500	911540	is infected, you will still be able to
913420	916760	determine whether an alteration has occurred.
918480	921500	So what do we take away from this? These image audits
922820	925540	can... so image audits involve
925540	929640	checking digital photos of ballots rather than the actual physical ballots.
929640	933460	However, as we have shown, an attacker can use computer vision methods
933460	937660	to automatically alter and manipulate these images and
937660	941840	change the results to their desired candidates. We implemented
941840	945920	this with an EAC-certified scanner, the Fujitsu F5-7180
945920	949520	scanner. And this scanner is part of
950740	953700	ClearBallot's ClearVote system. And we showed
953700	957640	that our attack works across all the ballot files from
957640	961640	all major vendors in the U.S. The best defense against this
961640	965100	is for people to audit the ballots physically.
966600	969660	So the work that we presented today, we
969660	973740	compiled into a research paper, and this will be presented at eVoteID
973740	977580	and also known as the International Joint Conference of
977580	981840	Electronic Voting. And we're releasing it to the public
981840	984720	today on these two links.
985560	988740	So if you go to those links right now, you can access the full
988740	992840	papers. So we'll now be opening
992840	994460	up for any questions.
995540	996700	Yeah.
1001860	1003880	I'll go ahead.
1003880	1007840	Yes, having actually hacked voting machines,
1007840	1010920	one of the things that I'd like to ask you is, if you took
1012300	1014880	the images in comparison
1015500	1019540	to the actual ballot, you'd find the attack, wouldn't you?
1019680	1022620	Yeah, you would. If you compared to the physical ballot.
1022620	1026720	The same thing that we found in the Hari attack,
1026720	1030720	basically, it only worked if you didn't examine the actual
1030720	1034100	paper at all. If you examined a portion
1034620	1038600	of the ballots against the images using
1038600	1041340	the clear ballot, this attack would fail, wouldn't it?
1043300	1046660	Which is why, at some point, you need to go back to the
1046660	1048760	physical ballots. That is correct.
1048760	1051100	Great work.
1067520	1074800	So there is logic in place to normalize the size
1074800	1079120	between all of the bounding boxes for an individual race.
1083240	1084880	Oh, yeah.
1112530	1113430	...
1116530	1117370	...
1124810	1126210	...
1127850	1128550	...
1129250	1129330	...
1129330	1129630	...
1136210	1137610	...
1137610	1138010	...
1141410	1145610	We're not going to be making it available just to...
1146750	1147290	...
1148270	1149210	...
1150870	1151810	...
1151810	1153630	...
1154650	1155590	...
1156970	1157430	...
1163670	1164130	...
1168530	1168990	...
1171830	1173110	What was that?
1173510	1173970	...
1183540	1185860	Yeah, that's correct. It's on the back end.
1187220	1187680	...
1189400	1190800	...
1192800	1194200	...
1199320	1200720	...
1200720	1203320	...
1203320	1203760	...
1203760	1203780	...
1203780	1204080	...
1204080	1206040	...
1209160	1210560	...
1210560	1211880	...
1211880	1214120	...
1214120	1214160	...
1214160	1215580	...
1215580	1215800	...
1215800	1217480	...
1217480	1219980	...
1219980	1221860	...
1221860	1221900	...
1221900	1222720	...
1222720	1223060	...
1223060	1223600	...
1223600	1224300	...
1226240	1227640	...
1234660	1235360	...
1235360	1236880	...
1236880	1237120	...
1237120	1237280	...
1237280	1237720	...
1237720	1239520	...
1239520	1242180	...
1249280	1250160	...
1250160	1250660	...
1250660	1252840	...
1252840	1254900	...
1265000	1265880	...
1265880	1268080	...
1270980	1272380	...
1274240	1275640	...
1275640	1276160	...
1276160	1276420	...
1276420	1278140	...
1278140	1280500	There's a stream of bitmap data.
1280500	1280940	...
1288020	1291720	I can get to you after.
1294980	1295780	...
1298340	1299140	...
1299140	1300620	...
1301780	1302580	...
1302580	1304140	...
1306680	1308080	...
1310920	1312320	...
1316500	1317900	...
1318580	1320020	...
1320020	1320740	...
1320740	1321120	...
1321120	1321980	...
1325880	1327280	...
1330920	1332320	...
1335220	1336620	...
1336620	1336780	...
1336780	1337720	...
1347450	1351550	You mentioned a hash. For the hash
1351550	1355730	to be secured, you'd have to ensure that the key that's being
1355730	1359270	used with the hash is also secured, that what it's being hashed with is
1360590	1363710	also not publicly available, and it's possible that
1363710	1367330	an attacker would be able to get that and recreate a hash for
1367330	1371730	the manipulated ballot. There are end-to-end systems
1371730	1374730	such as Kintegrity and Predivoter that
1375290	1379490	this attack would fail with, and it would be very hard to make this work with
1379490	1383790	those type of systems. So those are some systems similar to what you said.
1384230	1387230	For example, Predivoter, the candidate order is
1387230	1391530	randomized, and when you cast a ballot, you rip
1391530	1395590	off the actual markings from the candidate list, so
1395590	1399510	you cannot tell... so the ballot markings
1399510	1403570	are tied with a key, and so you cannot tell just from
1403570	1407530	looking at the ballot who someone voted for because that order is randomized and it's removed from the
1407530	1408530	candidate list.
1414120	1418220	That's true, but with such a system, you could create a public bulletin
1418220	1422040	for users to verify their votes. However,
1422040	1425260	then you run into issues of selling votes.
1427260	1429940	Not with Predivoter? Okay.
1430060	1434400	My apologies. Professor Bernal definitely knows better.
1434420	1437300	So that would not be an issue, actually.
1437300	1439380	Yes?
1474930	1475510	...
1497080	1506820	So, that's correct.
1506820	1508860	That case is when the tabulation occurs
1510080	1514040	with different scans from the actual scans used with the image audit.
1514040	1518040	However, with something like that, you would have to attack
1518040	1521980	both the systems and somehow coordinate it to ensure that you're
1521980	1526100	getting the same results with the attack. That would be a more complicated
1526100	1530140	scenario. However, our attack focus is on if the tabulation...
1530140	1533840	if the scan for the tabulation and the image audit occurs
1533840	1535260	at the same time.
1535260	1535520	...
1559990	1561390	...
1563570	1564270	...
1580540	1581940	...
1581940	1584240	...
1591140	1592540	...
1592540	1593380	...
1593380	1594860	...
1594860	1595420	...
1598780	1599660	...
1603720	1604600	...
1608060	1614210	Any other questions?
1614210	1620200	Oh yeah, we have time.
1621140	1622020	...
1634960	1638100	That's correct. So I think that's how the scan
1638100	1642180	integrity system works, if I'm correct. So that would be more difficult.
1642180	1646100	However, we could adapt our attack to that. So instead
1646100	1650400	of actually moving the... like swap... completely swapping the ballot boxes,
1650400	1654220	we could, for example, have a data file of marks that we
1654220	1656820	could insert and remove.
1657800	1658660	Yes?
1667980	1672080	No, we have not done that. That would be a good step.
1672080	1674740	I think we have time for one more question.
1686870	1688610	To attack the voting machine?
1691010	1694610	It's a post-exploitation tool. So we're assuming that someone has
1695110	1698890	hacked the machine, which is very possible. There's
1699110	1703250	a lot of publications regarding that. I think that's all we have
1703250	1704970	time for. Thank you everyone for coming.
