1 00:00:10,980 --> 00:00:11,240 Transcription by CastingWords 2 00:00:30,440 --> 00:00:33,240 This is Increasing the Security of Your Election by Fixing It, 3 00:00:33,820 --> 00:00:36,780 which, if any of you have ever read Weed C. Venema, 4 00:00:36,920 --> 00:00:40,500 wrote a paper increasing the security of your systems by breaking into them. 5 00:00:41,160 --> 00:00:42,660 So it's a bit in homage to that. 6 00:00:46,200 --> 00:00:51,400 Just briefly, what this all came out of was the Florida elections of 2000, 7 00:00:51,620 --> 00:00:52,880 which hopefully you're familiar with. 8 00:00:54,020 --> 00:00:56,340 Depending upon who you ask, 9 00:00:56,500 --> 00:00:59,540 some people were very troubled by the events of the Florida election. 10 00:01:00,280 --> 00:01:02,780 Others were troubled by the results thereof, 11 00:01:02,860 --> 00:01:06,260 but it did highlight that there's a serious problem 12 00:01:06,260 --> 00:01:07,960 with the voting systems we have in this country. 13 00:01:12,100 --> 00:01:14,040 And in response to this, 14 00:01:14,140 --> 00:01:17,340 a number of the commercial voting vendors responded by saying, 15 00:01:17,460 --> 00:01:19,900 oh, well, the solution to this is electronic voting. 16 00:01:20,060 --> 00:01:24,280 And these are the four major commercial voting vendors. 17 00:01:27,840 --> 00:01:29,340 Some of you who... 18 00:01:30,000 --> 00:01:33,040 followed security might recognize some of these promises. 19 00:01:33,420 --> 00:01:34,820 We've seen this before. 20 00:01:36,280 --> 00:01:39,520 These just kind of pie-in-the-sky statements that are just, 21 00:01:39,560 --> 00:01:40,760 of course it's secure. 22 00:01:40,940 --> 00:01:43,400 Things like world-class encryption techniques 23 00:01:43,400 --> 00:01:44,760 utilized to store election results. 24 00:01:45,460 --> 00:01:46,940 And, of course, my favorite, 25 00:01:47,020 --> 00:01:50,320 proprietary firmware-enclosed system prevents hacker access. 26 00:01:53,120 --> 00:01:54,400 So what's the message here? 27 00:01:54,620 --> 00:01:55,440 Trust us. 28 00:01:55,540 --> 00:01:56,680 We know what we're doing. 29 00:01:58,260 --> 00:01:59,660 We have seen this. 30 00:01:59,660 --> 00:02:00,100 We've seen this before. 31 00:02:03,540 --> 00:02:07,880 But of course, you know, really, these worries, no big deal. 32 00:02:07,980 --> 00:02:08,340 The end. 33 00:02:08,660 --> 00:02:10,740 Democracy is safe from hackerdom. 34 00:02:12,580 --> 00:02:13,260 Or not. 35 00:02:22,180 --> 00:02:25,280 Those of you who saw the full disclosure movement arise, 36 00:02:25,640 --> 00:02:27,280 this came out for a reason. 37 00:02:27,360 --> 00:02:27,900 It's because 38 00:02:28,580 --> 00:02:29,640 people were fighting for it. 39 00:02:29,640 --> 00:02:40,120 They were finding bugs in closed software, and the vendors weren't fixing them. 40 00:02:40,520 --> 00:02:46,220 And the vendors could deny that these bugs existed because no one could get a look at the code. 41 00:02:50,640 --> 00:02:57,300 So, really what this comes down to is verifying that you have a computer that's doing what it claims to be doing. 42 00:02:58,460 --> 00:03:00,440 So, what's the first thing you do after you read a box? 43 00:03:02,000 --> 00:03:02,760 Hide your presence. 44 00:03:03,780 --> 00:03:09,860 And the second thing, you patch the hole you came in through so no one else can use it, and so no one else knows the hole's there. 45 00:03:12,280 --> 00:03:14,200 So, how do you tell someone to read your box? 46 00:03:15,620 --> 00:03:16,320 Good question. 47 00:03:17,780 --> 00:03:21,740 Forensic analysis is hard, and that's under the best circumstances possible. 48 00:03:22,180 --> 00:03:27,040 If you know the system very well, and you have access to it, and you set it up, and you know how it runs, 49 00:03:27,300 --> 00:03:29,180 forensic analysis is still hard. 50 00:03:30,880 --> 00:03:34,980 So, how do you tell if someone's tampering with your electronic voting machine? 51 00:03:35,740 --> 00:03:36,660 You don't. 52 00:03:37,360 --> 00:03:44,000 And that's because doing forensic analysis on a black box is almost impossible. 53 00:03:44,480 --> 00:03:47,260 The fundamental problem here is that we don't have a paper trail. 54 00:03:48,080 --> 00:03:51,180 None of the major commercial systems are producing a paper trail. 55 00:03:51,800 --> 00:03:55,260 And without that trail, there's no way to detect tampering. 56 00:03:57,500 --> 00:04:03,960 So, actually, just one other thing I should point out, David Dill, who is a professor at Stanford, 57 00:04:04,700 --> 00:04:10,180 jumped on this issue very early on and has been pushing for what he calls a voter-verifiable receipt. 58 00:04:10,380 --> 00:04:19,780 And that is a piece of paper that shows what you voted for, who you voted for, and that is the record you rely on. 59 00:04:19,940 --> 00:04:24,780 So, if the computer record is in dispute with the paper record, you go with the paper record. 60 00:04:24,960 --> 00:04:27,280 And this is actually something that a lot of people... 61 00:04:27,280 --> 00:04:32,180 A lot of people don't find all that intuitive because they're used to thinking of computers as these sort of magical boxes. 62 00:04:33,300 --> 00:04:37,840 Data goes in, you get results out, and, of course, the computer doesn't make mistakes. 63 00:04:38,180 --> 00:04:39,500 But people do. 64 00:04:41,360 --> 00:04:43,980 The problem here is too many secrets. 65 00:04:44,440 --> 00:04:46,320 All of the commercial systems are closed. 66 00:04:46,820 --> 00:04:50,160 Members of the security community at large cannot scrutinize these systems. 67 00:04:50,480 --> 00:04:52,660 And so, we just have to trust the vendors. 68 00:04:53,600 --> 00:04:56,220 But, as I've said, we've seen this before. 69 00:04:56,400 --> 00:04:57,180 It doesn't. 70 00:04:57,280 --> 00:04:57,400 Work. 71 00:04:57,700 --> 00:04:58,740 Look at Microsoft. 72 00:04:59,860 --> 00:05:01,880 Compare Apache to IIS. 73 00:05:03,700 --> 00:05:07,920 Apache has had maybe one major exploit in the last two years. 74 00:05:08,260 --> 00:05:10,900 IIS, I can't really count them. 75 00:05:10,980 --> 00:05:11,780 There's a lot. 76 00:05:11,860 --> 00:05:12,800 Follow NT bug track. 77 00:05:14,800 --> 00:05:20,200 The other major problem we have is that we don't really have any data on how these systems work in practice. 78 00:05:20,680 --> 00:05:24,360 And it's very difficult to get a realistic test. 79 00:05:24,640 --> 00:05:27,260 And, first of all, it's because it's expensive. 80 00:05:28,060 --> 00:05:32,200 Seeing that, you know, actually staging an election is very difficult. 81 00:05:32,620 --> 00:05:34,380 Second of all, it's very easy to cheat. 82 00:05:34,540 --> 00:05:41,700 It's very easy to put in a system that works for your practice election and does something entirely different under the hood in a real system. 83 00:05:43,520 --> 00:05:48,760 And, finally, independent third parties can't verify the operations of these systems. 84 00:05:48,860 --> 00:05:50,120 And that's because they are closed. 85 00:05:50,380 --> 00:05:55,040 The commercial vendors will not allow people to view them without signing nondisclosure agreements. 86 00:05:55,320 --> 00:05:57,260 So, even if we have to do that, we can't do it. 87 00:05:57,260 --> 00:06:00,540 And good security folks looking at these systems, they can't publish their results. 88 00:06:00,780 --> 00:06:02,440 So, it's basically worthless. 89 00:06:04,620 --> 00:06:11,040 What this really comes down to is that electronic voting systems are arguably worse than paper voting systems. 90 00:06:11,360 --> 00:06:16,260 And that's because we understand how you cheat in a paper election. 91 00:06:17,740 --> 00:06:19,540 We've been doing it for several hundred years. 92 00:06:19,700 --> 00:06:22,620 We know how you can stuff a ballot box and you can make votes disappear. 93 00:06:22,960 --> 00:06:25,760 We don't understand how you can cheat in a computer election. 94 00:06:25,940 --> 00:06:27,220 Because, really, it's only... 95 00:06:27,260 --> 00:06:35,700 It's only limited by the folks at this convention's imagination, which, hopefully, is very good, but, unfortunately, is very good. 96 00:06:38,800 --> 00:06:49,000 The big thing here is that we don't fully understand the issues for electronic voting because it's a fairly unique application, at the very least, because of the non-area requirements. 97 00:06:49,940 --> 00:06:55,280 And if we don't understand these, this could leave U.S. federal and state elections open to massive fraud. 98 00:06:57,880 --> 00:07:08,020 So, we were really, really happy when we got to see a real election system used that was open that we could look at and we could look for holes. 99 00:07:08,180 --> 00:07:17,740 So, we could see how something performs in the wild and, hopefully, draw some conclusions about what happens with the closed systems. 100 00:07:17,860 --> 00:07:26,560 Because it's very likely that an open system is going to be developed under similar processes to the closed system and you're going to see similar bugs come into light when you test it. 101 00:07:27,260 --> 00:07:33,600 And this was one of the great cavalry quotes by one of the people who was behind the open system used at Berkeley. 102 00:07:33,800 --> 00:07:44,560 If paramilitary rebels were to take over a voting kiosk and force computer scientists to work day and night, they would still not be able to lodge a single false ballot or affect the outcome. 103 00:07:45,520 --> 00:07:53,300 As you will see, we didn't need paramilitary rebels and we didn't really need a team of computer scientists. 104 00:07:53,360 --> 00:07:55,560 It was three Berkeley undergraduates. 105 00:07:58,000 --> 00:08:01,160 So, the Berkeley system is called the online election system. 106 00:08:01,540 --> 00:08:07,340 And what's great about it is that we get to see a real election system used in a real-scale election. 107 00:08:08,580 --> 00:08:11,060 This was used to elect the Berkeley student government. 108 00:08:11,260 --> 00:08:17,680 And you should not say, oh, it's just some silly student council election because Berkeley has 30,000 students. 109 00:08:17,920 --> 00:08:19,400 We had 10,000 voters. 110 00:08:19,840 --> 00:08:25,400 The student government of Berkeley has a budget that is in the several million dollars range. 111 00:08:25,540 --> 00:08:27,160 So, there's a lot of money here. 112 00:08:27,780 --> 00:08:30,780 It's worth trying to cheat this. 113 00:08:31,880 --> 00:08:35,800 So, we got to see this in April 2003, which was the first time it was deployed. 114 00:08:36,340 --> 00:08:38,580 And it consists of three pieces. 115 00:08:38,780 --> 00:08:43,420 There is the ballot server, which is the actual election piece. 116 00:08:44,220 --> 00:08:53,960 There's the authentication layer, which relies on some other technologies deployed at Berkeley, which is basically Cal's Kerberos authentication system. 117 00:08:54,120 --> 00:08:56,020 And the polling stations. 118 00:08:58,540 --> 00:09:00,820 The ballot server was a web application. 119 00:09:01,440 --> 00:09:05,720 It was basically three simple pieces. 120 00:09:06,220 --> 00:09:09,160 If needed, redirect the user to CalNet for authentication. 121 00:09:09,680 --> 00:09:10,780 Send a check to votes. 122 00:09:11,060 --> 00:09:12,700 Make sure the user hasn't voted already. 123 00:09:12,960 --> 00:09:14,540 Make sure they haven't over or under voted. 124 00:09:14,740 --> 00:09:16,240 And record the user's vote. 125 00:09:16,920 --> 00:09:18,880 This was running on Red Hat 8. 126 00:09:19,080 --> 00:09:25,140 And it was implemented using Macromedia Cold Fusion MX and Apache and MySQL. 127 00:09:26,520 --> 00:09:29,700 The authentication layer is CalNet. 128 00:09:29,860 --> 00:09:35,800 It's Berkeley's Kerberos authentication system, which is implanted via Microsoft Active Directory. 129 00:09:37,600 --> 00:09:41,440 The polling station clients authenticate via Kerberos Web Proxy. 130 00:09:41,600 --> 00:09:45,060 And once they authenticate, they get a signed authentication token. 131 00:09:47,340 --> 00:09:50,600 This graphic is probably a bit hard to see from here. 132 00:09:50,720 --> 00:09:53,720 But basically what this shows is the path from hitting... 133 00:09:53,720 --> 00:09:59,280 Hitting the ballot server, authenticating, returning to the ballot server, and casting a vote. 134 00:09:59,380 --> 00:10:00,480 It is on the CD. 135 00:10:00,560 --> 00:10:03,880 So if you'd like to take a look at it after the talk, I recommend doing so. 136 00:10:05,380 --> 00:10:09,660 The polling stations were just cheap PCs behind a NAT box. 137 00:10:10,580 --> 00:10:16,460 And what happened was originally they planned to borrow PCs from students. 138 00:10:18,900 --> 00:10:22,400 We suggested this might be a bad idea. 139 00:10:22,400 --> 00:10:25,820 And instead, they rented a number of Apple iBooks. 140 00:10:26,380 --> 00:10:30,700 And the gateways are just your standard cheap home router gateways. 141 00:10:30,780 --> 00:10:32,980 You can buy them for $50 at Fry's. 142 00:10:33,420 --> 00:10:36,320 I think they use the Linksys ones in practice. 143 00:10:38,800 --> 00:10:46,700 So one of the major assumptions is that the traffic between the clients and the ballot server and the authentication server is secure. 144 00:10:47,420 --> 00:10:49,380 It's sent over SSL. 145 00:10:49,480 --> 00:10:52,240 So in principle, you shouldn't be able to see it. 146 00:10:52,400 --> 00:10:53,420 You shouldn't be able to alter it. 147 00:10:54,960 --> 00:10:59,000 But one of the key insights to this was that security of the whole system hinges on CalNet. 148 00:11:02,740 --> 00:11:05,960 They really emphasized physical security for the ballot server. 149 00:11:06,440 --> 00:11:09,280 They had it locked away in a room under cameras. 150 00:11:09,680 --> 00:11:15,420 And I think that's because the folks running the selection were used to people trying to steal boxes full of ballots. 151 00:11:15,480 --> 00:11:18,060 And they expected someone was going to try and steal the machine. 152 00:11:18,460 --> 00:11:20,360 I don't know what they've accomplished. 153 00:11:21,700 --> 00:11:22,180 But... 154 00:11:22,400 --> 00:11:25,220 They missed some really simple aspects of network security. 155 00:11:25,940 --> 00:11:30,060 So when we first looked at it, the database was listening to outside world. 156 00:11:30,220 --> 00:11:30,860 We're like, hmm. 157 00:11:32,580 --> 00:11:37,740 And the other piece was that because there are a fixed set of polling stations, 158 00:11:37,900 --> 00:11:40,580 they could have very easily limited access to just those stations. 159 00:11:40,880 --> 00:11:44,260 And basically dropped all traffic from anywhere else. 160 00:11:44,300 --> 00:11:45,800 Initially, they weren't doing this. 161 00:11:48,420 --> 00:11:52,280 So first off, it's absolutely trivial to tamper with the ballot server. 162 00:11:52,400 --> 00:11:53,240 If you have physical access. 163 00:11:53,500 --> 00:11:59,240 And we basically walked in and said, here are five really obvious security holes. 164 00:11:59,340 --> 00:12:00,040 And you should fix them. 165 00:12:00,160 --> 00:12:01,720 And they said, oh, would you do that for us? 166 00:12:02,920 --> 00:12:07,060 So you really need to defend social engineering as your first problem. 167 00:12:07,120 --> 00:12:11,740 And in fact, that's probably the biggest problem you have with an election, electronic or otherwise. 168 00:12:13,400 --> 00:12:21,680 So, of course, all the physical security and cameras and lasers and alarms don't do a damn thing if you can just walk in with a screwdriver. 169 00:12:21,680 --> 00:12:23,080 And tinker with the machine. 170 00:12:24,600 --> 00:12:30,200 And then the next thing we said was, ah, well, you have your database listening to the outside world. 171 00:12:30,360 --> 00:12:31,960 And this is exploitable. 172 00:12:32,120 --> 00:12:34,280 We have seen exploits from ISP on the wild. 173 00:12:36,520 --> 00:12:39,340 So we fixed the obvious problems. 174 00:12:40,560 --> 00:12:45,640 And what this raised the bar to is that now you have to have your exploit prepared in advance. 175 00:12:45,760 --> 00:12:51,340 You have to be able to have it on a removal medium, drop it onto a polling station, and execute it. 176 00:12:51,680 --> 00:12:55,120 Which is a considerable raising of the bar. 177 00:12:56,780 --> 00:12:58,820 The next piece we looked at was CalNet. 178 00:12:59,060 --> 00:13:07,840 And we were a little bit wary of tampering with CalNet, being that it is the central authentication system for Berkeley. 179 00:13:08,740 --> 00:13:10,420 Kerberos is fairly well understood. 180 00:13:10,580 --> 00:13:16,900 And we imagine that the Berkeley officials would not have liked if we started trying to break their central Kerberos server. 181 00:13:18,320 --> 00:13:21,560 But the important and obvious observation we had was that we didn't. 182 00:13:21,680 --> 00:13:37,400 We didn't need to break CalNet to break the system because it was done through a web proxy and we could use the authentication tokens, which are time stamped, but it doesn't matter, because if we can grab them in the middle, we have all the time in the world we need to do nasty things. 183 00:13:39,800 --> 00:13:45,620 So the big observation was that we could get authentication tokens without compromising CalNet. 184 00:13:47,840 --> 00:13:49,620 And then there were the polling stations. 185 00:13:49,780 --> 00:13:51,660 So as I said, originally, they put a lot of effort into it. 186 00:13:51,680 --> 00:13:54,680 We didn't plan to use PCs, which were rented from students. 187 00:13:54,820 --> 00:13:55,880 We suggested against this. 188 00:13:56,600 --> 00:13:58,760 Some basic cautions were taken. 189 00:13:58,920 --> 00:14:03,400 So the iBooks were locked down and the default passwords on the router gateways were changed. 190 00:14:06,020 --> 00:14:13,280 So the key observation here is that if you can attack the polling stations, you can break this whole system. 191 00:14:15,100 --> 00:14:20,840 But the users have physical access and because they're voting and they're supposed to be able to vote in secret. 192 00:14:20,840 --> 00:14:23,100 They got a fair amount of leeway for camping. 193 00:14:26,360 --> 00:14:40,240 What this really highlights is that you need a way to basically authenticate that the polling station is running the polling station software properly, and that the ballot server is running the ballot software properly and neither has been tampered with. 194 00:14:40,520 --> 00:14:47,220 This is a trusted endpoint problem but it's hard to implement with conventional hardware because it's not designed to be tamper proof. 195 00:14:47,460 --> 00:14:50,620 It's very hard to prove that the code you claim to have loaded. 196 00:14:50,640 --> 00:14:50,820 It's very hard to prove that the code you claim to have loaded is not tampered with. 197 00:14:50,820 --> 00:14:52,020 is the code that's actually running. 198 00:14:53,360 --> 00:14:54,760 But there's another problem here, 199 00:14:54,860 --> 00:14:57,340 which is that if we have 70 polling stations, 200 00:14:57,560 --> 00:14:59,600 that's a lot of polling stations to tamper with. 201 00:14:59,900 --> 00:15:04,280 So even though you can go and sit in your voting booth, 202 00:15:04,400 --> 00:15:05,540 it's going to look fairly obvious 203 00:15:05,540 --> 00:15:08,420 if you go through 15 stations at once and say, oh, 204 00:15:08,460 --> 00:15:09,100 this one's broken. 205 00:15:09,300 --> 00:15:10,360 Oh, this one's broken. 206 00:15:10,600 --> 00:15:12,720 And somewhere around the fifth or sixth machine, 207 00:15:12,840 --> 00:15:14,780 they're probably going to get a little bit curious about what 208 00:15:14,780 --> 00:15:16,580 you're doing, which leads to observation. 209 00:15:16,760 --> 00:15:19,020 Can we hit an entire polling station in one fell swoop? 210 00:15:19,020 --> 00:15:21,320 And that's what we hit upon, which 211 00:15:21,320 --> 00:15:22,500 was a man-in-the-middle attack. 212 00:15:22,800 --> 00:15:24,860 And I will pass it off to Damon for that. 213 00:15:36,480 --> 00:15:40,400 So I'm the second half of this spiel on the ASUC election. 214 00:15:40,620 --> 00:15:43,440 And I'm going to be covering the actual man-in-the-middle attack 215 00:15:43,440 --> 00:15:47,200 implementation and what we would recommend 216 00:15:47,200 --> 00:15:48,520 doing to fix that afterwards. 217 00:15:50,860 --> 00:15:53,720 Something important to note is that our actual man-in-the-middle 218 00:15:53,720 --> 00:15:57,060 attack is a very old attack, with some customizations 219 00:15:57,060 --> 00:16:01,320 to make it work in our particular instance here. 220 00:16:02,480 --> 00:16:05,660 And so it's not so much interesting attack-wise 221 00:16:05,660 --> 00:16:12,200 as it is just lost what I was going to say. 222 00:16:14,820 --> 00:16:15,480 Oh, well. 223 00:16:17,880 --> 00:16:19,000 The possibility of having a man-in-the-middle attack, 224 00:16:19,000 --> 00:16:19,220 we're not going to be doing that. 225 00:16:19,220 --> 00:16:20,140 that this suggests. 226 00:16:21,580 --> 00:16:23,300 Countries like India, for instance, 227 00:16:23,440 --> 00:16:27,020 have just recently gone to entirely electronic-based voting 228 00:16:27,020 --> 00:16:27,440 systems. 229 00:16:28,180 --> 00:16:31,680 And for the 2004 election, our country 230 00:16:31,680 --> 00:16:36,520 is looking at having everybody actually authenticate online 231 00:16:36,520 --> 00:16:42,160 and verify that they are not a felon or are actually a citizen 232 00:16:42,160 --> 00:16:42,780 allowed to vote. 233 00:16:43,280 --> 00:16:45,080 So this is something that's actually coming up 234 00:16:45,080 --> 00:16:46,020 that needs to be looked at. 235 00:16:48,120 --> 00:16:51,920 So the summary for our attack is that we 236 00:16:51,920 --> 00:16:56,300 want to acquire CalNet tokens so we can replay them to the ballot server 237 00:16:56,300 --> 00:16:59,280 and then cast fraudulent votes. 238 00:16:59,840 --> 00:17:02,860 And that will allow us to pretend that the user is actually 239 00:17:02,860 --> 00:17:03,660 casting these votes. 240 00:17:04,540 --> 00:17:07,840 It's not possible to sniff these tokens because they're done over SSL. 241 00:17:09,100 --> 00:17:12,140 But we can trick a client into giving us ballot tokens. 242 00:17:12,140 --> 00:17:14,000 By making it believe that our man in the middle 243 00:17:14,000 --> 00:17:15,440 is the actual ballot server. 244 00:17:16,020 --> 00:17:17,120 This is how we did that. 245 00:17:18,800 --> 00:17:21,400 We make this man-in-the-middle box that hereafter I 246 00:17:21,400 --> 00:17:22,300 will call fake ballot. 247 00:17:22,700 --> 00:17:27,880 It's a drop-in replacement for each of the router gateways 248 00:17:27,880 --> 00:17:28,560 that perform NAT. 249 00:17:30,660 --> 00:17:35,140 So we had an HP Vectra that we set up and just plopped in. 250 00:17:35,800 --> 00:17:38,600 To do this attack, here's the following recipe. 251 00:17:39,100 --> 00:17:40,560 You need an x86 PC. 252 00:17:40,560 --> 00:17:43,020 Two network interface cards. 253 00:17:44,480 --> 00:17:45,500 One Linux distribution. 254 00:17:46,420 --> 00:17:47,500 One DNS server. 255 00:17:48,680 --> 00:17:49,820 One DHCP server. 256 00:17:51,160 --> 00:17:52,820 One website with SSL support. 257 00:17:54,600 --> 00:17:58,000 One SSL certificate featuring the fully qualified domain name 258 00:17:58,000 --> 00:18:01,180 of the ballot server signed with a bogus certificate authority. 259 00:18:01,540 --> 00:18:05,940 In this case, VeriSign space inc instead of VeriSign comma space inc. 260 00:18:10,960 --> 00:18:13,260 So the NAT and DHCP work as follows. 261 00:18:13,900 --> 00:18:16,020 The Linux box does NAT. 262 00:18:16,200 --> 00:18:18,880 It's a really simple IP tables one line thing. 263 00:18:20,220 --> 00:18:24,240 The internal IP of fake ballot is the only IP seen 264 00:18:24,240 --> 00:18:25,660 by the true ballot server. 265 00:18:27,140 --> 00:18:30,960 And since we compromised it, it does all the traffic for us. 266 00:18:31,560 --> 00:18:35,900 The internal IP of fake ballot is the typical 192.168.1.1. 267 00:18:35,920 --> 00:18:39,620 Network and it offers IPs on that . заг para las 30ミه 268 00:18:39,620 --> 00:18:40,540 slash 25 intelectual!!!!! 269 00:18:40,560 --> 00:18:43,380 24 to all the polling stations. 270 00:18:45,020 --> 00:18:47,740 Fake Ballot runs a DHCP server that 271 00:18:47,740 --> 00:18:51,140 provides itself as the only name server for all polling 272 00:18:51,140 --> 00:18:51,520 stations. 273 00:18:53,580 --> 00:18:55,840 That DNS server is only listening 274 00:18:55,840 --> 00:18:57,960 to the internal network for requests, 275 00:18:58,160 --> 00:19:01,100 so any requests to it from outside the 192.168 276 00:19:01,480 --> 00:19:03,000 will not be responded to. 277 00:19:04,960 --> 00:19:08,720 The way DNS is configured is that for all host names, 278 00:19:08,720 --> 00:19:10,560 it responds normally, except when 279 00:19:10,560 --> 00:19:13,160 it receives a request for the actual ballot server, 280 00:19:13,400 --> 00:19:14,860 it says, hey, that's me. 281 00:19:19,440 --> 00:19:22,740 Configuring Apache was pretty simple as well. 282 00:19:23,040 --> 00:19:25,040 It listens on Fake Ballot's internal IP. 283 00:19:25,840 --> 00:19:27,480 There's a small Perl script. 284 00:19:27,660 --> 00:19:28,200 It's a proxy. 285 00:19:28,640 --> 00:19:32,400 You can find it on the convention CD-ROM. 286 00:19:33,420 --> 00:19:37,040 And all it does is forward requests to the real ballot 287 00:19:37,040 --> 00:19:37,340 server. 288 00:19:37,340 --> 00:19:38,940 Or to CalNet. 289 00:19:39,180 --> 00:19:41,180 And then send them back to the client. 290 00:19:41,580 --> 00:19:45,320 Unless that request happens to be a vote, in which case 291 00:19:45,320 --> 00:19:47,860 it says, oh, you didn't vote for these people. 292 00:19:47,960 --> 00:19:49,280 You voted for these people. 293 00:19:50,060 --> 00:19:52,540 And then our fraudulent vote is cast. 294 00:19:52,960 --> 00:19:54,980 The way this works is that everything 295 00:19:56,760 --> 00:19:59,040 after the CalNet authentication takes place, 296 00:19:59,500 --> 00:20:03,480 a authentication token is passed around as a parameter. 297 00:20:04,940 --> 00:20:07,320 And so we just pick that up and hold off. 298 00:20:07,320 --> 00:20:09,260 And then we hold onto it and tack it onto the fake vote 299 00:20:09,260 --> 00:20:10,160 and send it back. 300 00:20:13,540 --> 00:20:16,160 This diagram right here represents the actual layout 301 00:20:16,160 --> 00:20:18,220 of how Fake Ballot would redirect traffic. 302 00:20:18,940 --> 00:20:21,600 Step one is the red arrow across the top. 303 00:20:21,740 --> 00:20:23,400 And that's just the typical request for ballot. 304 00:20:25,220 --> 00:20:29,500 And then what happens is, let's see, the lower diagonal arrow 305 00:20:29,500 --> 00:20:30,320 is step two. 306 00:20:30,660 --> 00:20:33,360 Fake Ballot redirects the polling station user to CalNet. 307 00:20:33,700 --> 00:20:37,300 And then step three and four is that the polling station user is 308 00:20:38,340 --> 00:20:40,900 authenticated to CalNet and CalNet sends back the token. 309 00:20:41,200 --> 00:20:42,600 The important thing to notice here 310 00:20:42,600 --> 00:20:44,340 is that the token bounces through Fake Ballot. 311 00:20:45,500 --> 00:20:50,860 Step five is that the user goes through the actual web page 312 00:20:50,860 --> 00:20:54,160 representing the ballot, selects his choices for candidates, 313 00:20:54,720 --> 00:20:57,080 submits it, and that also goes through Fake Ballot. 314 00:20:58,360 --> 00:21:01,400 Finally, Fake Ballot jumbles that up and sends it 315 00:21:01,400 --> 00:21:02,240 to the real ballot server. 316 00:21:03,700 --> 00:21:06,060 Something we actually had to worry about initially 317 00:21:06,060 --> 00:21:07,000 in designing the attack. 318 00:21:07,000 --> 00:21:10,380 Was that part of the OES system was going to be a receipt system. 319 00:21:10,680 --> 00:21:14,820 So that users could, one, see immediately after casting their vote 320 00:21:14,820 --> 00:21:15,860 who they voted for. 321 00:21:16,100 --> 00:21:20,600 And two, later on, request an email from the ballot server 322 00:21:21,060 --> 00:21:23,820 asking to make sure who they voted for was who they voted for. 323 00:21:25,080 --> 00:21:27,700 It turned out we didn't have to actually pay any attention 324 00:21:27,700 --> 00:21:30,280 to this whatsoever because they didn't get it working in time. 325 00:21:35,780 --> 00:21:36,980 But the great thing is, 326 00:21:37,000 --> 00:21:38,120 the great thing about the receipt system, 327 00:21:38,300 --> 00:21:41,300 and this highlights why trusting computers is bad, 328 00:21:42,040 --> 00:21:45,620 was that they'd assume that the receipt was correct. 329 00:21:46,200 --> 00:21:49,620 So our legitimately placed bogus votes 330 00:21:50,020 --> 00:21:53,260 would have a cryptographically signed receipt that said, 331 00:21:53,360 --> 00:21:55,260 that's what the person voted for. 332 00:21:55,740 --> 00:21:57,880 And that was what they were going to trust. 333 00:22:01,660 --> 00:22:04,900 Moreover, on that topic, we thought a great deal 334 00:22:04,900 --> 00:22:06,720 about the receipt system and came up with one 335 00:22:06,720 --> 00:22:09,020 of the good ways to foil it in the end would just 336 00:22:09,020 --> 00:22:11,820 be to send back as many receipts as you wanted to, 337 00:22:11,960 --> 00:22:16,240 saying as many possible votes as you wanted to. 338 00:22:16,420 --> 00:22:18,320 And that way, you just flood the user's email. 339 00:22:18,500 --> 00:22:21,640 And he gets receipts saying he voted for all sorts of people. 340 00:22:21,800 --> 00:22:23,200 Clearly, the receipt system's broken. 341 00:22:23,800 --> 00:22:26,660 Nobody in the ASUC is going to know enough, technically, 342 00:22:26,880 --> 00:22:28,260 to be able to say what's wrong with it. 343 00:22:34,020 --> 00:22:35,700 So what about the whole SSL deal? 344 00:22:35,920 --> 00:22:36,700 They have these certificates. 345 00:22:36,700 --> 00:22:39,180 They guarantee they are who they say they are. 346 00:22:39,700 --> 00:22:43,200 Well, this is what happens when you go to ballot.berkeley.edu 347 00:22:43,760 --> 00:22:46,160 and Fake Ballot says, hey, that's me. 348 00:22:46,440 --> 00:22:48,160 You get this little window that pops up. 349 00:22:48,320 --> 00:22:49,960 And it says, do you trust this host? 350 00:22:50,480 --> 00:22:52,860 And somebody says, yes, I trust this host. 351 00:22:53,180 --> 00:22:55,340 And that's it, because the browser's only 352 00:22:55,340 --> 00:22:57,040 meant to run for one user, pretty much. 353 00:22:57,360 --> 00:22:59,100 And after that one user says yes, 354 00:22:59,660 --> 00:23:01,120 it's fine for everybody else. 355 00:23:01,360 --> 00:23:03,620 So anybody that comes up after that initial user 356 00:23:03,620 --> 00:23:06,680 clicked Continue, they're all just, you know, 357 00:23:06,700 --> 00:23:07,380 SOL. 358 00:23:15,300 --> 00:23:18,740 Another additional part to that was the ASUC poll workers 359 00:23:19,360 --> 00:23:21,700 were additionally easily socially engineered. 360 00:23:22,940 --> 00:23:26,280 They didn't have much technical know-how in the first place. 361 00:23:26,400 --> 00:23:31,040 But additionally, they weren't supposed 362 00:23:31,040 --> 00:23:33,800 to look over your shoulder while you were casting the votes. 363 00:23:33,860 --> 00:23:34,600 It's an anonymous ballot. 364 00:23:34,880 --> 00:23:36,680 So there's not much they can do. 365 00:23:36,680 --> 00:23:38,780 While you're sitting there, clicking Continue, 366 00:23:39,040 --> 00:23:40,600 and accepting bogus certificates. 367 00:23:44,080 --> 00:23:45,180 One other point. 368 00:23:45,320 --> 00:23:47,780 I mean, the easy way to get around all of this 369 00:23:47,780 --> 00:23:51,940 is to just install your evil VeriSign Space Ink Certificate 370 00:23:51,940 --> 00:23:55,520 Authority as a trusted authority on the polling stations, which, 371 00:23:55,620 --> 00:23:59,220 again, because the poll workers aren't that technically savvy, 372 00:23:59,790 --> 00:24:02,620 come in, oh, we need to do some work on the polling stations. 373 00:24:02,980 --> 00:24:05,520 Go, update each one with their certificate authority. 374 00:24:05,800 --> 00:24:06,640 Problem solved. 375 00:24:06,680 --> 00:24:10,860 But the other piece in terms of the assume the user will click OK 376 00:24:10,860 --> 00:24:13,840 is that there is some good research that says that's 377 00:24:13,840 --> 00:24:15,060 exactly what users do. 378 00:24:15,260 --> 00:24:18,060 There was a great paper called Why Johnny Can't Encrypt, 379 00:24:18,540 --> 00:24:24,040 where they studied users trying to use PGP on Mac OS, which 380 00:24:24,040 --> 00:24:27,320 is one of the better PGP GUI interfaces. 381 00:24:27,660 --> 00:24:30,960 And consistently, they found something like 80% 382 00:24:30,960 --> 00:24:34,800 of the users would accidentally send email unencrypted, 383 00:24:34,940 --> 00:24:36,660 would send email encrypted with 3D. 384 00:24:36,660 --> 00:24:37,140 That's the wrong key. 385 00:24:37,680 --> 00:24:41,880 Unfortunately, security software sucks not because the security model is bad, 386 00:24:42,080 --> 00:24:46,460 but because we still can't make security software that normal people can use. 387 00:24:47,400 --> 00:24:54,280 So the SSL error we have there on the Macintosh is actually the scariest error 388 00:24:54,280 --> 00:24:54,740 you'll see. 389 00:24:54,840 --> 00:24:57,760 If you look at the equivalent error on Mozilla or IE, 390 00:24:58,480 --> 00:25:01,740 it is a pretty wishy-washy error message. 391 00:25:01,840 --> 00:25:05,460 And if you examine the certificate, you'll see this certificate is issued 392 00:25:05,460 --> 00:25:06,640 by VeriSign Incorporated. 393 00:25:06,660 --> 00:25:07,680 It looks legitimate. 394 00:25:07,980 --> 00:25:09,900 And that's all we need to do. 395 00:25:10,020 --> 00:25:14,200 We just need to look legitimate enough for one user to click OK. 396 00:25:19,080 --> 00:25:23,860 So the final part of our actual talk is the lessons learned. 397 00:25:26,720 --> 00:25:29,900 Critical vulnerabilities in OES that we discovered were as follows. 398 00:25:31,420 --> 00:25:32,900 It was easy to find and exploit. 399 00:25:33,220 --> 00:25:34,780 There were common beginner blunders. 400 00:25:35,480 --> 00:25:36,640 One of the first things we found was that there was a lot of error. 401 00:25:36,640 --> 00:25:39,440 The first thing we stumbled across when reviewing the code was a race condition. 402 00:25:39,900 --> 00:25:46,440 They were writing users' votes to a text file and then uploading that text 403 00:25:46,440 --> 00:25:48,420 or the information in the text file into the database. 404 00:25:49,300 --> 00:25:51,040 But they weren't appending to the file. 405 00:25:51,560 --> 00:25:55,680 And so you could just get garbled votes one after another. 406 00:25:56,080 --> 00:25:59,580 And lots of people wouldn't have actually been voting if that were the case. 407 00:26:01,220 --> 00:26:04,860 We didn't do a complete and thorough review of the code and look at all of it. 408 00:26:04,860 --> 00:26:10,320 So that leaves us curious if there were more such subtle holes yet to be found. 409 00:26:13,280 --> 00:26:14,920 OES versus commercial systems. 410 00:26:16,540 --> 00:26:21,660 OES is greatly different from most commercial systems because primarily it's open source. 411 00:26:21,840 --> 00:26:24,300 We got to sit down and go through it from day one. 412 00:26:27,700 --> 00:26:32,520 Additionally, commercial electronic voting systems don't actually connect to the Internet or shouldn't. 413 00:26:35,120 --> 00:26:38,880 The one system that has had some of its codes exposed is the Diebold system. 414 00:26:39,160 --> 00:26:43,340 And it does connect to the Net under certain circumstances. 415 00:26:44,040 --> 00:26:48,180 It also does things like dialing into the central balloting server. 416 00:26:48,420 --> 00:26:52,380 And as many of you know, the phone network is not secure. 417 00:26:52,980 --> 00:26:58,260 It looks like a man in the middle is a very viable way to attack at least one of the commercial systems. 418 00:26:58,320 --> 00:27:03,920 And it's reasonable to believe that it's probably going to work on many of the other systems. 419 00:27:09,200 --> 00:27:17,520 Another good point to make is that the lifetime of an open source system in terms of review and evolution is much shorter. 420 00:27:18,740 --> 00:27:22,860 OES is probably only going to be around until a better alternative is found for Berkeley election systems. 421 00:27:23,960 --> 00:27:26,640 Commercial systems are going to be hard to replace. 422 00:27:26,940 --> 00:27:34,540 I mean, it takes a long time to decide to use one, let alone get it working and get it in place and get people used to it. 423 00:27:34,540 --> 00:27:38,200 And it's going to be a lot longer before somebody comes along and says, hey, we should change this. 424 00:27:44,060 --> 00:27:49,600 So in light of OES's flaws, existence of similar bugs in commercial systems are plausible, 425 00:27:51,380 --> 00:27:53,660 primarily because commercial systems are closed. 426 00:27:54,900 --> 00:27:57,800 This results in amplified damage from a security breach. 427 00:27:58,380 --> 00:28:04,440 If something goes wrong and whoever finds it doesn't say anything about it, it's going to be going wrong. 428 00:28:04,540 --> 00:28:05,160 It's going to be going wrong for a long time. 429 00:28:08,480 --> 00:28:13,040 Additionally, these vendors appear very, very new to the computer security world. 430 00:28:14,310 --> 00:28:16,340 That means mistakes are very likely to happen. 431 00:28:18,280 --> 00:28:22,700 Finally, there's much, much higher stakes involved when you're electing the president of the United States 432 00:28:23,250 --> 00:28:32,580 or prime minister of Great Britain than when you're electing some senators for Berkeley who, well, who knows what they do. 433 00:28:36,240 --> 00:28:43,720 So what can you, as concerned people out there, do about what's gone wrong with the electronic voting system so far? 434 00:28:44,060 --> 00:28:48,500 The first is verifiedvoting.org's resolution on electronic voting. 435 00:28:49,140 --> 00:28:53,900 This is the piece that Dan talked about earlier, David Dill. 436 00:28:54,020 --> 00:29:01,700 He's pushing for a paper trail to follow the electronic voting system, and the paper trail will be the trusted part of that system. 437 00:29:02,800 --> 00:29:04,520 Additionally, you can write to Congress. 438 00:29:05,460 --> 00:29:08,640 And emphasize the need for the voter-verified paper ballot. 439 00:29:10,840 --> 00:29:14,420 And for personal preference, encourage the use of open-source voting systems. 440 00:29:15,280 --> 00:29:18,540 Finally, at the lowest rung of the government, you can talk to local officials. 441 00:29:20,960 --> 00:29:25,300 And tell them that purchasing decisions for voting hardware are often made at the county level. 442 00:29:25,480 --> 00:29:30,280 So they should get their act together and push for what should be secure. 443 00:29:32,840 --> 00:29:34,500 Lastly, here's a list of our resources. 444 00:29:34,520 --> 00:29:34,880 References. 445 00:29:36,340 --> 00:29:39,500 These are on the CONCD, so feel free to look them up there. 446 00:29:40,040 --> 00:29:42,820 There's a lot of really good work in this area. 447 00:29:42,920 --> 00:29:48,880 The two names that come to me to mind are David Dill, who's doing the verified voting work. 448 00:29:49,260 --> 00:30:01,000 And I apologize, I'm blanking on the other name. 449 00:30:01,140 --> 00:30:04,180 But I will be glad to give it to folks after this talk is over. 450 00:30:05,040 --> 00:30:11,060 The other thing which has been really recent news that's very interesting to look at is that Dan Wallach, 451 00:30:11,180 --> 00:30:18,200 who's over at Rice University, and Avi Rubin did an analysis of the leaked Dbold code. 452 00:30:18,460 --> 00:30:24,480 And it's not guaranteed or clear that the Dbold code is even Dbold's code. 453 00:30:25,460 --> 00:30:28,700 It's not clear that that is the code that's running on their systems, 454 00:30:28,820 --> 00:30:31,860 which I've already mentioned is one of the major problems with these systems. 455 00:30:31,880 --> 00:30:34,500 Proving that the code you just reviewed is the code we're using. 456 00:30:34,500 --> 00:30:36,240 Running on the system is a hard problem. 457 00:30:37,500 --> 00:30:40,800 But they did a fantastic write of it, which highlights many of these problems. 458 00:30:40,980 --> 00:30:43,920 And it's interesting to see that some of the predictions we made here, 459 00:30:44,080 --> 00:30:47,340 when our work was done before they reviewed Dbold code, were borne out. 460 00:30:47,980 --> 00:30:52,460 The man-in-the-middle attack we predicted is very valuable on the Dbold code. 461 00:30:53,180 --> 00:30:57,700 And you see many of the sort of beginner's mistakes that are made by programmers 462 00:30:57,700 --> 00:31:02,540 who may be perfectly competent, but do not have a history of writing secure software. 463 00:31:02,540 --> 00:31:05,320 And so that is basically it. 464 00:31:05,400 --> 00:31:06,580 So thank you very much. 465 00:31:06,700 --> 00:31:08,900 And if there's any questions, I'd be glad to take them. 466 00:31:16,660 --> 00:31:20,920 When we originally did this, we were hoping there would be a write-in candidate, 467 00:31:21,060 --> 00:31:23,280 and we could elect a fake candidate. 468 00:31:23,440 --> 00:31:29,080 But one of the difficulties with this is that if you scam an election, they have to rerun it. 469 00:31:29,320 --> 00:31:32,380 And one of the things we went into this without realizing was that, 470 00:31:32,540 --> 00:31:34,500 elections are expensive to run. 471 00:31:35,280 --> 00:31:40,940 So we very quickly realized that if we elected a fake candidate or cheated the election, 472 00:31:41,180 --> 00:31:43,740 we could be liable for a lot of damages, 473 00:31:43,760 --> 00:31:47,460 not to mention having angered the entire political science community at Berkeley, 474 00:31:47,600 --> 00:31:48,460 which may be a good thing. 475 00:32:04,460 --> 00:32:05,860 . 476 00:32:05,860 --> 00:32:06,300 . 477 00:32:11,380 --> 00:32:12,780 . 478 00:32:15,900 --> 00:32:15,980 . 479 00:32:29,520 --> 00:32:29,600 . 480 00:32:30,120 --> 00:32:30,200 . 481 00:32:30,840 --> 00:32:30,920 . 482 00:32:30,920 --> 00:32:30,940 . 483 00:32:30,940 --> 00:32:30,980 . 484 00:32:30,980 --> 00:32:31,020 . 485 00:32:31,020 --> 00:32:31,040 . 486 00:32:31,040 --> 00:32:31,060 . 487 00:32:31,060 --> 00:32:31,080 . 488 00:32:32,400 --> 00:32:32,480 . 489 00:32:35,120 --> 00:33:00,880 The head of elections of Washoe County, Nevada claims that the electronic touchscreen voting system used in Washoe County, Nevada is extremely safe because it stays locked in a vault 362 days a year and only comes out of the vault on primary day and election day when they have elections. 490 00:33:00,880 --> 00:33:04,420 And then the votes are tabulated and then everything is safe. 491 00:33:04,620 --> 00:33:16,380 So if you were on a debate panel with this election official, how would you address his don't worry, everything is just fine response? 492 00:33:17,400 --> 00:33:25,720 You have to send the votes in sometime, and it appears that the Diebold votes in many cases are sent either over the telephone network or over the Internet. 493 00:33:26,360 --> 00:33:30,860 The moment you connect these systems to an external network, you have a various response. 494 00:33:31,420 --> 00:33:32,080 So you have to make sure that the data is safe. 495 00:33:32,080 --> 00:33:36,780 Also, there's the fact that there's still the problem with internal tampering. 496 00:33:37,160 --> 00:33:46,300 One of the great things that the Rubin and Wallet paper covered was that the Diebold systems use smart cards in a completely brain-dead way. 497 00:33:46,500 --> 00:33:53,540 For those of you who are not familiar, smart cards are similar to credit cards, but they also have a small processor on them so they can do cryptographic operations. 498 00:33:54,920 --> 00:33:56,800 They use smart cards like credit cards. 499 00:33:56,900 --> 00:33:58,320 They give each one a unique ID number. 500 00:33:58,460 --> 00:34:00,860 You need a card with an unseen ID number. 501 00:34:02,060 --> 00:34:03,860 That's fairly easy to tamper with. 502 00:34:03,940 --> 00:34:05,780 You can purchase those cards inexpensively. 503 00:34:05,800 --> 00:34:08,680 They're available through vendors. 504 00:34:08,920 --> 00:34:16,220 So there's many avenues for tampering, and the fact that it's locked in a vault for 362 days a year doesn't do a damn thing. 505 00:34:18,640 --> 00:34:19,600 Thank you. 506 00:34:30,980 --> 00:34:44,340 So I'm having a hard time understanding how we can have paper receipts of our votes and still remain in a situation where you can't sell your vote. 507 00:34:44,680 --> 00:34:46,140 I'm sorry, can you repeat that, please? 508 00:34:46,300 --> 00:34:56,380 I'm having difficulty trying to figure out how we can have paper receipts, verifiable paper receipts of our votes, and yet not end up in a situation where I can sell my vote. 509 00:34:56,440 --> 00:34:59,880 Because if I can come back and prove to somebody that this is how I voted, 510 00:35:00,260 --> 00:35:04,280 then I can collect money for having cast my ballot. 511 00:35:04,420 --> 00:35:11,480 In the Berkeley system, there was a non-anonymous piece, but they weren't worried too much about selling votes. 512 00:35:11,620 --> 00:35:15,840 This is entirely true, and you need that anonymity to prevent selling of votes. 513 00:35:15,960 --> 00:35:21,120 So one of the subtleties with the voter verifiable receipt is that the voter doesn't get to keep that. 514 00:35:21,480 --> 00:35:28,800 The voter should see a piece of paper behind a pane of plastic or glass that shows their votes. 515 00:35:28,800 --> 00:35:33,620 If they say, yes, these are my votes, that paper should get whisked into the ballot box, 516 00:35:33,800 --> 00:35:37,620 and that box should be locked up the way you'd normally handle a paper ballot box. 517 00:35:37,880 --> 00:35:42,120 If the voter says, no, these are not my votes, that paper should be destroyed. 518 00:35:42,840 --> 00:35:46,400 And this is, check out verifiedvoting.org. 519 00:35:46,560 --> 00:35:48,820 They cover this fairly extensively. 520 00:35:50,840 --> 00:35:52,880 I've got the mic over here, sir. 521 00:35:56,240 --> 00:35:58,620 I'm just wondering, since you guys did study the code, 522 00:35:58,800 --> 00:36:01,380 what was the mechanism for verifying that a voter didn't vote twice? 523 00:36:01,800 --> 00:36:02,640 User ID? 524 00:36:03,660 --> 00:36:12,040 CalNet has a, it's an LDAP system, basically, that keeps all the students' information in it. 525 00:36:12,140 --> 00:36:14,780 And each one has a unique student ID. 526 00:36:15,340 --> 00:36:18,200 They call it a UCVCPD ID, I believe. 527 00:36:18,380 --> 00:36:22,180 And that was checked at CalNet authentication. 528 00:36:23,080 --> 00:36:27,560 And then, or, once the student authenticates, that's sent back. 529 00:36:27,780 --> 00:36:28,780 That's part of it. 530 00:36:29,680 --> 00:36:30,980 That's part of the token, part of the parameters. 531 00:36:31,320 --> 00:36:35,420 And then that's checked in the system via a LDAP lookup call. 532 00:36:35,500 --> 00:36:39,700 Does that feel non-changeable, like my user ID, if, for instance, I'm female, get married, 533 00:36:39,800 --> 00:36:41,540 my name changes, does my user ID change? 534 00:36:42,180 --> 00:36:45,140 No, those IDs are similar to social security numbers. 535 00:36:45,220 --> 00:36:45,840 They never change. 536 00:36:46,200 --> 00:36:48,000 The bigger problem here is one of anonymity. 537 00:36:48,340 --> 00:36:53,420 And in this case, you basically just have to trust the system that it's going to separate your ID from your votes. 538 00:36:53,680 --> 00:36:58,420 And this is a hard problem with a purely electronic voting system. 539 00:36:58,800 --> 00:37:03,200 Even though the commercial electronic voting systems are not relying on the systems themselves 540 00:37:03,200 --> 00:37:08,600 to check that the individual is a registered voter, that's handled at the precincts. 541 00:37:08,600 --> 00:37:10,860 And that tends to be a pencil and paper process. 542 00:37:11,860 --> 00:37:12,840 You guys pick. 543 00:37:13,940 --> 00:37:14,540 Okay. 544 00:37:15,320 --> 00:37:15,920 Okay. 545 00:37:24,620 --> 00:37:28,240 Are you guys familiar with cases of suspected, 546 00:37:28,240 --> 00:37:31,980 suspected abuse in the systems that are in place already? 547 00:37:32,200 --> 00:37:37,880 Because I know I've read several places that there was a senator elected in the northwest 548 00:37:37,880 --> 00:37:42,380 who was a long shot in the primary, a long shot in the general election, 549 00:37:42,900 --> 00:37:47,540 won by a landslide in both, who happened to be CEO of the company making the voting machines. 550 00:37:49,940 --> 00:37:56,820 I suspect, though, since I don't want to get sued, I am absolutely not talking specifically, 551 00:37:57,040 --> 00:37:58,000 but I believe... 552 00:37:58,240 --> 00:38:00,020 I believe you're talking about election systems and software. 553 00:38:01,380 --> 00:38:02,800 I don't know the specifics of that. 554 00:38:02,900 --> 00:38:08,560 I have read some of the circumstances of it, and it certainly raises an eyebrow. 555 00:38:08,780 --> 00:38:13,960 But again, without a paper audit trail, you have no way to tell. 556 00:38:14,280 --> 00:38:21,360 So as I said, forensic analysis is hard, and forensic analysis on a black box is damn near impossible. 557 00:38:28,880 --> 00:38:30,720 It was Chuck Hagel in Nebraska. 558 00:38:31,340 --> 00:38:33,620 I just wanted to emphasize one thing. 559 00:38:33,680 --> 00:38:37,720 I'm Cindy Cohn with the EFF, and we support both of the recommendations here. 560 00:38:38,080 --> 00:38:43,340 The last point about going to your local officials is really, I think, the most important one. 561 00:38:43,420 --> 00:38:46,900 Representative Holt from New Jersey has a great bill, and you should support it. 562 00:38:47,140 --> 00:38:51,520 But buying of election machines happens by local county officials. 563 00:38:51,620 --> 00:38:54,580 It's the local registrar of voters who's making the decisions. 564 00:38:55,060 --> 00:38:58,020 And they're not hearing from anybody except the snake. 565 00:38:58,040 --> 00:38:58,220 Okay. 566 00:38:58,240 --> 00:38:58,840 And they're not hearing from the oil salesman. 567 00:38:59,000 --> 00:39:03,200 And you need to go talk to them, and don't geek out on them. 568 00:39:03,280 --> 00:39:08,420 Be really straight with them, and convince them about the dangers here, because they're not hearing that sign. 569 00:39:08,760 --> 00:39:13,040 What they're hearing from is the disabled community and the people who don't speak English, 570 00:39:13,260 --> 00:39:16,620 who love electronic voting because it will enable more voters. 571 00:39:16,760 --> 00:39:17,980 And they're an important... 572 00:39:18,800 --> 00:39:19,840 They're important people. 573 00:39:19,960 --> 00:39:20,980 We need to listen to them. 574 00:39:21,160 --> 00:39:25,720 But the security community needs to really sit down with the local people 575 00:39:25,720 --> 00:39:28,020 and talk about the risks of just... 576 00:39:28,020 --> 00:39:34,080 of just embracing one of these systems because of the good it might do because there are lots of dangers as well. 577 00:39:34,360 --> 00:39:36,360 Yeah, this is a very important point. 578 00:39:36,500 --> 00:39:41,060 Something to understand is that voting machines are purchased typically at the county level. 579 00:39:41,580 --> 00:39:44,000 This is an entirely local function. 580 00:39:44,940 --> 00:39:51,400 And you have an unfortunate problem where you have your county official who is very well-meaning and is trying to do their homework, 581 00:39:51,600 --> 00:39:58,000 but doesn't necessarily have the best information because most of the information they are getting is coming from the voting system. 582 00:39:58,000 --> 00:40:05,280 They're vendors, and they plunk down $30 million to replace all of the county's voting machines. 583 00:40:06,020 --> 00:40:10,420 To have some smarmy academic or some punk hacker come and say, 584 00:40:10,880 --> 00:40:15,780 oh, you just blew $30 million on insecure machines, doesn't make them very happy. 585 00:40:16,100 --> 00:40:18,600 So first, you need to talk to them sooner than later. 586 00:40:18,740 --> 00:40:21,540 And second, how you phrase this is very important. 587 00:40:28,740 --> 00:40:31,840 As a follow-up to the earlier discussion of the paper trail, 588 00:40:33,160 --> 00:40:37,240 I'm not sure if you can actually answer this, but do you know how the commercial vendors 589 00:40:38,200 --> 00:40:44,940 guarantee that the vote that appears on the paper is the same vote that got sent over the wire or is actually submitted? 590 00:40:46,140 --> 00:40:50,780 Well, this is the whole point of the paper trail, is that if there is any dispute, 591 00:40:50,920 --> 00:40:53,860 you look at the paper trail and you trust the paper trail. 592 00:40:59,780 --> 00:41:06,060 In the case of the Berkeley election, was there any attempt made to authenticate the voters, 593 00:41:06,120 --> 00:41:10,020 that is to see that the people who were voting were in fact who they said they were, 594 00:41:11,120 --> 00:41:17,820 to prevent the use of people as ringers, using other people's IDs, you know, that kind of election fraud? 595 00:41:18,060 --> 00:41:24,080 So actually, this is one area where the electronic system at Berkeley is better, 596 00:41:24,200 --> 00:41:27,780 because exactly what you're suggesting, which is stealing someone's ID, 597 00:41:28,000 --> 00:41:31,200 or using it to vote, was a serious problem with paper elections. 598 00:41:31,740 --> 00:41:35,620 The electronic system requires authenticating through CalNet, 599 00:41:35,700 --> 00:41:39,080 which requires knowledge of your student ID, which is public knowledge, 600 00:41:39,260 --> 00:41:43,080 but it also requires basically an individual passphrase, which is private knowledge 601 00:41:43,080 --> 00:41:46,080 and should be kept secret, because if you know someone's passphrase, 602 00:41:46,120 --> 00:41:48,640 then you can do things like unenroll them. 603 00:41:49,960 --> 00:41:52,600 So it's actually a fairly good system in that regard. 604 00:41:53,360 --> 00:41:57,740 However, while the requirements on the password are very secure, they're like, you know, 605 00:41:58,000 --> 00:42:00,940 a couple uppercase letters, a couple symbols, a couple lowercase letters. 606 00:42:02,320 --> 00:42:03,660 So they're strong passwords. 607 00:42:04,120 --> 00:42:07,400 There are still people that harvest CalNet passwords. 608 00:42:07,800 --> 00:42:10,000 There is a website out there that lists them. 609 00:42:10,400 --> 00:42:14,040 It doesn't pass a strong two-factor authentication test, though. 610 00:42:15,760 --> 00:42:20,020 I agree, but it's still an improvement over the old system. 611 00:42:20,940 --> 00:42:25,820 Passwords are well understood, and yes, there are many ways you can improve on it, 612 00:42:25,820 --> 00:42:30,820 but in this particular case, the tradeoff for a strong authentication mechanism 613 00:42:30,820 --> 00:42:36,340 versus more people voting and using the system was a better engineering tradeoff. 614 00:42:40,360 --> 00:42:45,580 Did you see anything with counterfeiting of tokens similar to the Dbold study 615 00:42:45,580 --> 00:42:47,220 where they did the homebrew smart cards? 616 00:42:47,860 --> 00:42:48,560 No. 617 00:42:48,620 --> 00:42:54,500 Actually, the tokens used by CalNet are Kevros tokens, and current research says 618 00:42:54,500 --> 00:42:59,660 they are cryptographically secure and are very hard to forge with the current Kevros protocol. 619 00:42:59,940 --> 00:43:01,220 So, no. 620 00:43:01,420 --> 00:43:04,640 And if someone was counterfeiting tokens, it would be a much more interesting talk 621 00:43:04,640 --> 00:43:07,920 because someone would have made some very interesting advances in cryptography. 622 00:43:12,280 --> 00:43:16,620 Yeah, to get back to talking about the receipts, essentially, 623 00:43:17,920 --> 00:43:22,880 letting them look at it raises another issue, which is that, to use the Florida example, 624 00:43:22,880 --> 00:43:28,940 if I'm a person who thought I voted for Buchanan, that lets me fix that problem. 625 00:43:29,300 --> 00:43:33,020 But if I'm also someone who voted for Nader, I might think to myself, 626 00:43:33,180 --> 00:43:36,080 well, God, if I knew it was going to be that close, I would have voted for Gore. 627 00:43:36,720 --> 00:43:44,680 Is there an effort in the receipts to try to provide non-reputability as well, 628 00:43:44,760 --> 00:43:45,980 or does that get in the way of anonymity? 629 00:43:46,480 --> 00:43:49,980 The Berkeley system most certainly did not provide non-reputability, 630 00:43:50,840 --> 00:43:52,860 but it actually opens one of my eyes. 631 00:43:52,880 --> 00:43:57,500 One of my favorite DOS attacks, which is that you're part of the evil party, 632 00:43:57,620 --> 00:44:00,760 and you're a little bit worried about how the election might go. 633 00:44:00,960 --> 00:44:07,200 So you get a statistically significant but non-majority number of your party members, 634 00:44:07,440 --> 00:44:12,020 i.e., the people running, to vote for people in some other party. 635 00:44:12,360 --> 00:44:16,920 And then when the results come out, you have all these people conveniently look at their receipts 636 00:44:16,920 --> 00:44:20,720 and say, oh, my goodness, I didn't vote for anyone in the evil party. 637 00:44:20,920 --> 00:44:22,580 Like, the system must be broken. 638 00:44:22,880 --> 00:44:23,960 You have to throw the election out. 639 00:44:30,880 --> 00:44:34,680 I was wondering if you had any information as far as trending some of these vendors, 640 00:44:34,760 --> 00:44:39,140 if it's kind of like the whole Microsoft thing where everybody's using it, so we'll use it too. 641 00:44:39,960 --> 00:44:45,400 It seems to be that most government agencies tend to look at what other government agencies purchased, 642 00:44:45,500 --> 00:44:46,800 and they purchase the same thing. 643 00:44:46,920 --> 00:44:51,560 So are we looking at a dominant vendor in these systems? 644 00:44:52,880 --> 00:44:56,000 As far as I know, there's no one vendor that is reigning. 645 00:44:56,120 --> 00:45:00,860 I believe election systems and software has the lead in the market. 646 00:45:01,080 --> 00:45:03,500 But you're actually seeing good competition in the marketplace. 647 00:45:04,080 --> 00:45:09,420 The only problem is that it's vaguely like the music industry where everything being sold sucks. 648 00:45:12,360 --> 00:45:18,360 So it's not as bad as the Microsoft situation, but all of the vendors are toying to the same line. 649 00:45:18,480 --> 00:45:19,560 They're not opening their code. 650 00:45:19,660 --> 00:45:21,780 They're not allowing security professionals to review them. 651 00:45:22,880 --> 00:45:24,080 You're still kind of stuck. 652 00:45:24,220 --> 00:45:28,700 You're not seeing government following each other because no path has been set yet. 653 00:45:30,400 --> 00:45:35,480 Yes, you mentioned that there are vendors now working on the paper receipt system. 654 00:45:35,640 --> 00:45:37,100 I mean, is that looking good? 655 00:45:37,220 --> 00:45:39,080 Could you talk more about that, I guess? 656 00:45:39,460 --> 00:45:40,980 What have we seen so far? 657 00:45:41,220 --> 00:45:44,600 So I would say check out verifiedvoting.org. 658 00:45:44,720 --> 00:45:46,860 They will have the most up-to-date information on this. 659 00:45:47,000 --> 00:45:52,040 I believe that ES&S demoed a prototype of a printer 660 00:45:52,040 --> 00:45:57,320 that handles the voter-verified receipt with the proper protocol 661 00:45:57,320 --> 00:46:01,400 where the voter does not walk out so he can sell his vote with that receipt in hand. 662 00:46:01,560 --> 00:46:02,680 And it's tucked away. 663 00:46:02,860 --> 00:46:05,760 Paper is treated as the hard copy. 664 00:46:06,680 --> 00:46:09,040 One of the interesting things I've heard about this, though, 665 00:46:09,080 --> 00:46:14,240 is that one of the first complaints the commercial voting vendors raised 666 00:46:14,240 --> 00:46:19,100 was that in some states producing a paper trail may be illegal. 667 00:46:21,040 --> 00:46:22,020 Whether this is true or not, I don't know. 668 00:46:22,020 --> 00:46:25,680 Whether this is a case of well-meaning lawmakers making bad laws, 669 00:46:25,880 --> 00:46:27,140 not the first time it's happened, 670 00:46:27,300 --> 00:46:30,740 or just the commercial system is trying to stall 671 00:46:30,740 --> 00:46:35,700 because developing a paper receipt system is going to cost them money isn't entirely clear. 672 00:46:36,160 --> 00:46:39,840 I think we have just a couple minutes left, so I think we'll take one last question. 673 00:46:44,740 --> 00:46:51,900 If we were to go to our county officials and ask them to reconsider buying electronic voting, 674 00:46:52,020 --> 00:46:57,240 what alternatives do we tell them are better than the depots that are out there? 675 00:46:58,060 --> 00:47:00,140 So there's good news and bad news here. 676 00:47:00,240 --> 00:47:06,380 The bad news is that the four major commercial vendors are pretty much the big ones in the market 677 00:47:06,380 --> 00:47:08,040 and they're probably going to buy a product from them. 678 00:47:08,300 --> 00:47:14,260 The good news is that they make lots of products that aren't shiny direct recording electronic systems. 679 00:47:14,620 --> 00:47:16,500 For example, they have Scantron systems, 680 00:47:17,300 --> 00:47:21,520 which are a market improvement over your paper chat systems. 681 00:47:24,520 --> 00:47:28,940 And definitely better than a computerized system without an audit trail. 682 00:47:33,120 --> 00:47:34,140 Thank you very much.