1 00:00:00,000 --> 00:00:03,220 So our first speaker, Tyler Kelley. 2 00:00:03,220 --> 00:00:03,980 Welcome. 3 00:00:03,980 --> 00:00:06,020 And give a big round of applause. 4 00:00:10,080 --> 00:00:12,060 All right, everybody. 5 00:00:12,260 --> 00:00:14,660 Hi, so my name is Tyler. 6 00:00:14,660 --> 00:00:17,440 I work at Cornell Tech in New York City. 7 00:00:17,680 --> 00:00:26,400 I hope everyone's hangovers aren't too bad and thanks for braving the hard heat to come up here in the morning. 8 00:00:26,880 --> 00:00:34,240 This presentation represents some joint work with some very smart people who are all also at Cornell. 9 00:00:35,240 --> 00:00:44,920 So today we're going to talk about tools to improve anonymity on the internet and specifically I'm going to cover an anonymity tool called dining cryptographer networks. 10 00:00:45,220 --> 00:00:53,440 Some academic research in that area and then our open source project that we call Howl, which is a dining cryptographer protocol. 11 00:00:54,200 --> 00:01:01,880 I'm hoping that you leave this talk with a rough intuition of how DC nets work and some excitement about our project and so, yeah. 12 00:01:02,140 --> 00:01:04,140 Let's, uh, let's jump in. 13 00:01:05,880 --> 00:01:10,340 So let's talk about every cryptographer's favorite topic, which is, of course, cryptocurrency. 14 00:01:11,200 --> 00:01:16,860 How many times do you guys think the word privacy occurs in the white paper for Facebook's new crypto coin? 15 00:01:17,000 --> 00:01:18,840 Okay, I'm seeing some zero in some hands. 16 00:01:18,840 --> 00:01:19,400 Anyone else? 17 00:01:19,400 --> 00:01:20,400 Also zero. 18 00:01:20,540 --> 00:01:21,440 A lot of zero. 19 00:01:21,440 --> 00:01:21,860 Okay. 20 00:01:21,860 --> 00:01:22,120 All right. 21 00:01:22,120 --> 00:01:25,080 Well, the actual answer is one. 22 00:01:25,560 --> 00:01:27,500 Um, and this quote is golden. 23 00:01:27,500 --> 00:01:33,120 It's like, we're not even going to try and do anything about privacy, but we'll like think about it and see what other people do. 24 00:01:33,560 --> 00:01:34,440 Yeah. 25 00:01:34,720 --> 00:01:36,060 It's pretty great. 26 00:01:37,180 --> 00:01:46,540 So it's become pretty clear that the digital revolution has in many ways eroded privacy and enabled surveillance on a grand scale that was never before possible. 27 00:01:46,540 --> 00:01:48,120 I think that's pretty well understood. 28 00:01:48,760 --> 00:01:54,780 Um, so we have this problem today, which is that for all intents and purposes, digitally speaking, privacy is dead, right? 29 00:01:54,780 --> 00:02:03,680 Like you are tracked online at every step by everyone from your ISP to Facebook at the application layer to MasterCard at the payment layer, et cetera, et cetera, et cetera. 30 00:02:05,360 --> 00:02:11,800 And anonymity is a subset of privacy and you need anonymity in some sense to preserve privacy because you need a crowd to hide in. 31 00:02:11,800 --> 00:02:20,900 So, you know, privacy tools like Tor and I2P exist, but they're not necessarily widely used, um, and often have pitfalls for users. 32 00:02:21,020 --> 00:02:26,040 So we'd like to improve the state of, you know, existence right now. 33 00:02:26,100 --> 00:02:41,020 Um, so we need privacy enhancing tools on the internet, um, not just for activists like those in Hong Kong during the protests like the umbrella protests, um, but also for whistleblowers or for applications where treating all parties the same is important like anonymous voting. 34 00:02:41,800 --> 00:02:47,960 So we understand that being anonymous is hard, so where could we find a solution? 35 00:02:48,580 --> 00:02:51,040 How about back in the 1980s? 36 00:02:51,040 --> 00:02:53,580 And who's going to be our mad scientist? 37 00:02:55,080 --> 00:02:56,760 Well, David Chom. 38 00:02:56,760 --> 00:03:09,260 So there are a variety of anonymity techniques that exist, but one of the most thorough and strong privacy preserving techniques that we have today is called dining cryptographer networks, and this idea has been around since the late 80s. 39 00:03:09,580 --> 00:03:24,020 So let's say, hypothetically, not that this could possibly have happened, but, you know, last night maybe a group of you went to a bar in Valleys and shared a round of drinks, and at some point the bartender informs you that some person who wishes to stay anonymous, 40 00:03:24,020 --> 00:03:26,600 um, has purchased you all the next round of drinks. 41 00:03:28,340 --> 00:03:38,180 But being in this audience, you are sophisticated cryptographers, so you're concerned that maybe the NSA is trying to bribe you by buying you a round of drinks, and that wouldn't be good. 42 00:03:38,520 --> 00:03:47,080 So, but at the same time, it's possible that someone sitting at the bar bought the round of drinks, and if it was someone at the bar, you respect their, like, wishes for privacy. 43 00:03:47,080 --> 00:03:48,320 So what can you do? 44 00:03:50,240 --> 00:03:54,440 Well, we have this DC net thing, so let's talk about how it works with an example. 45 00:03:54,500 --> 00:03:57,300 So we have our familiar friends Alice, Bob, and Charlie. 46 00:03:59,760 --> 00:04:04,820 And the first thing that they do, um, is they agree on a shared secret setup. 47 00:04:04,820 --> 00:04:08,640 So for this example, we're going to just anonymize one bit of information . 48 00:04:08,640 --> 00:04:10,380 I'm trying to make this as simple as possible. 49 00:04:11,020 --> 00:04:20,680 Um, so, you know, Alice goes to Bob and agrees on a shared secret, and they agree on the shared secret one, and Bob, you know, goes to Charlie, and they talk, and they're like, all right, we're going to agree on zero. 50 00:04:20,720 --> 00:04:24,500 So everybody does this, and, uh, so on and so forth. 51 00:04:27,000 --> 00:04:41,660 Then, when it comes time to reveal who paid, each person takes the information about whether they paid, in this case represented by the bit one or zero, um, and they XOR this information with the combination of shared secrets that they have with all of the other parties in the system. 52 00:04:41,760 --> 00:04:47,240 So what this does is it obfuscates the information you want to broadcast with the shared secrets. 53 00:04:47,540 --> 00:04:51,380 Um, so Alice here paid, so she broadcasts a one. 54 00:04:52,840 --> 00:04:59,440 And Bob didn't pay, so he broadcasts a zero with a one and a zero , because those were his shared secrets. 55 00:04:59,640 --> 00:05:04,180 And Charlie does, you know, he does the same thing , and he outputs a one as well. 56 00:05:05,380 --> 00:05:14,700 So now that we've broadcasted our encrypted values, we can take the XOR of all of these values together, and you will have one XOR, one XOR one, which equals one. 57 00:05:14,720 --> 00:05:26,120 All of the participants in the system compute this output separately at the same time, and since the output is one, um, everybody knows that somebody paid, but they don't necessarily know who paid. 58 00:05:26,480 --> 00:05:30,280 But I want to break this down a little more obviously, so it's, it's very clear. 59 00:05:30,500 --> 00:05:37,120 Um, all of the shared secrets cancel out, um, when you XOR the shared secrets together in the final output. 60 00:05:37,320 --> 00:05:44,580 Um, this is because you have two of each shared secret that gets rolled into the final broadcasted value, uh, that comes from each of the people. 61 00:05:44,580 --> 00:05:53,300 So that shared secret, when you XOR them together, because of the truth table for XOR, which is over there, you can see that they'll cancel out. 62 00:05:54,080 --> 00:06:05,240 So hopefully that provides some intuition about how you can broadcast some information through this protocol, and how like nobody can know what other people are broadcasting, uh, without actually knowing other people's shared secrets. 63 00:06:05,240 --> 00:06:08,680 So that's like a very quick primer on DCNets. 64 00:06:11,220 --> 00:06:13,280 So DCNets have some problems. 65 00:06:13,420 --> 00:06:16,440 Um, for one, only one person can broadcast at a time. 66 00:06:16,440 --> 00:06:17,860 That's a, kind of an issue. 67 00:06:18,000 --> 00:06:24,720 Um, and second, if someone doesn't respond in a timely manner, they can slow down the system, because everyone has to wait for everyone else. 68 00:06:25,080 --> 00:06:28,920 And parties could lie, like there's, there's no reason why anyone has to be honest. 69 00:06:28,920 --> 00:06:35,500 And, um, and then lastly, this DCNet has exponential communication complexity in the number of participants in the system. 70 00:06:35,500 --> 00:06:39,200 So it, it becomes very, very gossipy. 71 00:06:41,600 --> 00:06:43,780 We can solve some of these problems. 72 00:06:44,000 --> 00:06:49,040 Um, for instance, the collision problem can be solved with a good scheduling algorithm for who can talk when. 73 00:06:49,360 --> 00:07:00,040 So instead of transmitting one bit at a time, you do the XOR across a bit vector of known length, where each person has a slot, and then they just transmit their message in their slot. 74 00:07:00,040 --> 00:07:04,800 So Alice would transmit in the first slot, maybe Bob could do his in the second, etc., etc. 75 00:07:04,980 --> 00:07:16,540 And as long as everyone's honest, there are ways to choose who goes in what slot, by essentially broadcasting the slot position as a message, uh, that you encrypt through the DCNet. 76 00:07:17,180 --> 00:07:24,380 There's a paper, uh, called Footprint Scheduling that goes into this topic, specifically scheduling, uh, in more detail. 77 00:07:24,380 --> 00:07:26,680 And, uh, you can see it at the bottom. 78 00:07:28,960 --> 00:07:36,480 So one of the most successful DCNets, um, was a DCNet that was, uh, designed at Yale by Gibbs and, uh, Ford. 79 00:07:36,680 --> 00:07:49,660 Um, you can imagine it as a client server protocol for DCNets, where clients, uh, share secrets with all of the servers in the system, and then the servers will perform the actual XOR operation amongst themselves. 80 00:07:49,860 --> 00:07:55,220 So this has the advantage that, um, it minimizes the need for uptime in the clients. 81 00:07:55,220 --> 00:07:57,360 Clients can sort of come and go as they please. 82 00:07:57,460 --> 00:08:01,380 Um, and as long as the servers don't go down, the system is still robust. 83 00:08:01,480 --> 00:08:03,860 But you do have uptime requirements on the servers. 84 00:08:04,060 --> 00:08:05,700 So they have two papers about this topic. 85 00:08:05,700 --> 00:08:11,600 The OSDI 2012 paper is the more useful one if you want to see implementation details. 86 00:08:12,920 --> 00:08:15,340 Um, but dissent is not flawless either. 87 00:08:15,560 --> 00:08:19,860 Specifically, there's two problems that we want to iterate on and improve on. 88 00:08:19,860 --> 00:08:23,700 And those two are the denial of service problem and the performance problem. 89 00:08:23,780 --> 00:08:30,620 So prior work essentially requires a traitor tracing protocol, um, to punish actors that don't act as honest parties. 90 00:08:31,500 --> 00:08:34,360 Um, and this protocol is pretty expensive and complicated. 91 00:08:34,360 --> 00:08:36,760 And if we can get rid of it, that would be pretty good. 92 00:08:37,460 --> 00:08:46,420 And then if we can increase the performance, that would also be good for real world adoption because we want to make real world tools that actually affect people's lives and leave academia. 93 00:08:49,340 --> 00:08:52,320 So we're developing our own system that we call Howl. 94 00:08:52,320 --> 00:08:59,660 Um, this stands upon the shoulders of giants and it, we're trying to make a DC net that would be real world practical and usable today. 95 00:09:00,340 --> 00:09:05,520 The way that we do this is by separating the concept of a DC net into three components. 96 00:09:05,760 --> 00:09:15,600 So authorship of messages, aggregation of messages for XORing and the actual anonymization slash encryption of messages, i.e., do XOR to it. 97 00:09:17,340 --> 00:09:24,200 So we have three types of nodes and each type of node corresponds directly to one of the required components on the previous slide. 98 00:09:24,620 --> 00:09:28,540 Clients will author messages and then they will send them to aggregators. 99 00:09:28,540 --> 00:09:31,520 These are people who want to broadcast anonymous messages, obviously. 100 00:09:31,940 --> 00:09:45,300 Aggregators exist to help the performance of the network and what they do is they reduce bandwidth load on the root nodes so that the root nodes don't have to receive a flood of traffic from literally every client in the system. 101 00:09:45,880 --> 00:09:52,300 And then additionally by organizing aggregators in a hierarchical structure, we can add like very primitive fault tolerance. 102 00:09:52,300 --> 00:10:02,880 So if your aggregator sort of tries to censor you or is not being responsive, you can just switch to another aggregator in the chain and it will still send the message through the system. 103 00:10:03,340 --> 00:10:10,540 And then root nodes will perform the final XOR, which does the whole do XOR to it and computes the plain text of each round in the protocol. 104 00:10:11,280 --> 00:10:14,180 These XOR nodes will always need to be online. 105 00:10:15,620 --> 00:10:19,320 So here's a diagram that shows roughly what it would look like. 106 00:10:22,700 --> 00:10:32,300 So the other new contribution we bring to the table is the idea of putting the DC net inside of a trusted execution environment, in this case Intel's SGX, secure guard extensions. 107 00:10:33,260 --> 00:10:44,520 So in the last few years, Intel has been baking in this meta operating system into its processors that operates at a higher privilege level than the OS and is completely opaque to the OS. 108 00:10:44,760 --> 00:11:05,760 One of the side effects of this new development is that they've also included a trusted execution environment that they call SGX that essentially allows you to run instructions on the CPU in this reverse sandbox where all of the code and RAM associated with this enclave is protected from access from the operating system. 109 00:11:09,340 --> 00:11:10,840 I just like memes. 110 00:11:13,590 --> 00:11:17,050 So they also bake private keys into the hardware. 111 00:11:17,210 --> 00:11:26,810 And so the environment can cryptographically attest to an outside party that it's running inside of an enclave and that the code is running some specific desired code and only that code. 112 00:11:29,970 --> 00:11:47,390 So by using Intel's SGX, we can write some DC net code that acts honestly and always follows the rules of the protocol and then we can use the attestation features on our network and participants in the DC net can check these attestation signatures to ignore anyone not acting honestly and running in the correct environment. 113 00:11:47,630 --> 00:11:53,090 All of the trader tracing protocols that were necessary in prior work can just be gotten rid of with this one step. 114 00:11:55,250 --> 00:12:01,610 So I want to briefly head off all of the paranoid folks in the audience, which I know that there will be, especially here. 115 00:12:01,870 --> 00:12:05,050 I want to address the what about trusting Intel problem. 116 00:12:05,070 --> 00:12:11,550 So it's important to note here that we're only trusting Intel for preventing denial of service. 117 00:12:11,830 --> 00:12:16,910 The privacy component is completely and totally independent of SGX. 118 00:12:16,910 --> 00:12:19,510 Like, if we removed SGX, there would still be private. 119 00:12:19,530 --> 00:12:23,330 So the worst case scenario is where SGX is completely broken. 120 00:12:23,570 --> 00:12:29,850 In that scenario, the only thing that happens is the network collapses and no longer broadcast messages. 121 00:12:29,890 --> 00:12:33,650 In this context, I think that's preferable than trying to keep availability up. 122 00:12:36,710 --> 00:12:41,910 Also, in the future, Hawaii or Siemens might come out with their own competing product. 123 00:12:41,910 --> 00:12:52,730 Well, then the network can add separate different trusted execution environments and you can sort of spread the trust out across multiple nation states and manufacturers to sort of have them check against each other. 124 00:12:53,230 --> 00:12:56,850 Also, the last bullet is one of my points. 125 00:12:58,590 --> 00:13:07,230 So we have this anonymous broadcast channel where people can essentially shout things into the ether and hide within a crowd of participants in the DC net. 126 00:13:07,970 --> 00:13:13,710 I like to think of it as something akin to UDP where you can send messages in one direction but not another. 127 00:13:14,790 --> 00:13:24,710 I don't think this would be a good replacement for Tor, for example, because you'd have to build a lot of infrastructure on top of the DC net to make stateful connections and sort of like HTTP work. 128 00:13:27,870 --> 00:13:35,210 But I think it's interesting that you can build TCP out of UDP and that you can build Tor out of this kind of analogous. 129 00:13:35,730 --> 00:13:39,850 There are some potential use cases that we've come up with that we think this would be great for. 130 00:13:39,950 --> 00:13:44,830 One is social media where you're broadcasting public statements unidirectionally. 131 00:13:44,830 --> 00:13:46,790 So this is like Twitter, for example. 132 00:13:46,930 --> 00:13:55,070 So with the proper API jig built, we could have a relay bot that listens to the DC net for input and posts anonymous tweets from the DC net. 133 00:13:55,750 --> 00:14:06,410 The other big use case which I am personally more excited about is anonymizing IP layer metadata from cryptocurrency transactions to try to achieve the goal of anonymous digital cash. 134 00:14:06,750 --> 00:14:13,990 So in the transition of monetary instruments to the digital era, we've lost an element of anonymity that existed in cash transactions. 135 00:14:14,470 --> 00:14:16,570 So that doesn't exist with credit cards. 136 00:14:16,570 --> 00:14:21,310 When you buy booze and cigarettes at Bally's tonight, MasterCard knows that you did that. 137 00:14:21,950 --> 00:14:25,570 And by extension, everyone they sell data to and the government also knows that. 138 00:14:25,850 --> 00:14:27,570 And that's not really any other business. 139 00:14:27,570 --> 00:14:31,650 So we don't really need to be sharing data with third parties all the time. 140 00:14:31,650 --> 00:14:34,210 But in the digital world, that's sort of the norm. 141 00:14:35,190 --> 00:14:52,290 So the idea here would be that instead of broadcasting a transaction from a node directly to a cryptocurrency network, which is the status quo right now, you would broadcast it through the DC net and then a relay bot would forward all of the transactions it sees in the DC net to the protocol. 142 00:14:52,290 --> 00:14:55,330 Sort of like pushing it through a proxy almost. 143 00:14:57,670 --> 00:15:03,790 And that essentially obfuscates the IP address data that is leaked when you broadcast a transaction from a node. 144 00:15:05,410 --> 00:15:12,730 So when you buy that booze tonight, imagine if that transaction were privately sent through Z cash and anonymized at both the IP layer and the application layer. 145 00:15:13,330 --> 00:15:14,490 So that would be nice. 146 00:15:14,830 --> 00:15:25,370 This use case also has the nice property that tying this technology into a cryptocurrency lets us financially incentivize people to participate in the DC net so you can pay people to anonymize your transactions. 147 00:15:26,610 --> 00:15:28,550 And also provide cover traffic. 148 00:15:29,170 --> 00:15:31,590 So there might be other use cases that we haven't even thought of. 149 00:15:31,590 --> 00:15:32,990 And if you've got one, I'd love to hear it. 150 00:15:32,990 --> 00:15:35,590 Feel free to email me or DM me on Twitter, obviously. 151 00:15:37,230 --> 00:15:42,330 So this is the slide where I would have performance metrics to show you that our network is fast and you should use it. 152 00:15:42,610 --> 00:15:44,710 But unfortunately the code is still in progress. 153 00:15:44,930 --> 00:15:46,570 So we're working on the code. 154 00:15:47,450 --> 00:15:48,710 I want to do this right. 155 00:15:48,710 --> 00:15:52,450 So if it means doing it a little slower, I'm okay with that. 156 00:15:53,030 --> 00:15:55,810 Hopefully we'll have something out in the next few months. 157 00:15:56,070 --> 00:15:58,210 And we are releasing as open source, obviously. 158 00:15:58,210 --> 00:16:02,890 So check our website and follow me on Twitter for news updates about when that might happen. 159 00:16:04,070 --> 00:16:06,810 And with that, that's Howl. 160 00:16:06,810 --> 00:16:08,810 I hope you guys found this talk interesting. 161 00:16:08,810 --> 00:16:11,490 Feel free to contact me and keep an eye out for the project. 162 00:16:11,670 --> 00:16:15,410 And hopefully we can bring digital privacy tools into the mainstream. 163 00:16:15,670 --> 00:16:16,730 So thanks. 164 00:16:22,220 --> 00:16:23,040 All right. 165 00:16:23,040 --> 00:16:25,620 We're opening the floor for questions. 166 00:16:25,620 --> 00:16:29,800 If you have questions, just line up over here at the middle center, please. 167 00:16:38,810 --> 00:16:39,430 Hi. 168 00:16:39,430 --> 00:16:51,910 Have you found that there's a minimum number of participants that makes it effective and once you sort of reach below that threshold, that all of a sudden it becomes easy to attack and sort of, you know, deobfuscate what's going on? 169 00:16:52,990 --> 00:16:58,710 Off the top of my head, I don't know of any specific studies that have shown that. 170 00:16:58,890 --> 00:17:01,590 But that is definitely something that's the case, right? 171 00:17:01,590 --> 00:17:06,990 Like you want to have a certain number of minimum K out of N anonymity set to hide in. 172 00:17:07,930 --> 00:17:10,370 I want this to be run by, like, everybody. 173 00:17:10,370 --> 00:17:11,330 That would be fantastic. 174 00:17:11,330 --> 00:17:13,050 But I'm not in control of other people. 175 00:17:13,050 --> 00:17:18,810 So I don't know off the top of my head how many participants you would need to be secure. 176 00:17:18,810 --> 00:17:30,330 But the idea is that if we have it open source and if the community likes it, it will grow organically and so the more people that run it, obviously, the more crowd there is to hide in. 177 00:17:30,330 --> 00:17:30,990 Yeah. 178 00:17:33,050 --> 00:17:43,610 The scheduling broadcast, does that help to protect against kind of timing attacks or any kind of correlation that may be possible? 179 00:17:43,610 --> 00:17:49,030 So the problem that scheduling solves is this problem where you can only have one person broadcast at a time. 180 00:17:49,210 --> 00:17:52,210 So let me go back to this. 181 00:17:52,430 --> 00:17:59,790 So in this sort of example, toy example I showed, we have Alice broadcasting the bit one to indicate that she paid. 182 00:18:00,010 --> 00:18:02,770 And this was only, like, a one bit system that I was describing. 183 00:18:02,810 --> 00:18:07,610 When you want to do more than one, you basically just have a bit vector and so you just encrypt the entire bit vector. 184 00:18:07,910 --> 00:18:19,530 But the problem is that one person can only talk at a time because everyone else needs X or zero with that encrypted ‑‑ with that secret value so that the, like, zeroes cancel out at the end. 185 00:18:20,050 --> 00:18:27,270 So the problem that scheduling solves is, like, how can we talk with multiple people at the same time? 186 00:18:27,270 --> 00:18:33,930 So you take this bit vector and you have, like, slots where people just sit and put their message in and the entire bit vector becomes the secret. 187 00:18:33,950 --> 00:18:34,810 Does that make sense? 188 00:18:35,910 --> 00:18:48,090 So that's ‑‑ every participant has a slot available whether or not they use it or not is ‑‑ Yeah, and in some cases you want participants to have more than one slot. 189 00:18:48,530 --> 00:18:51,810 But the paper is there and it's a good paper. 190 00:18:51,810 --> 00:18:52,730 It's pretty readable. 191 00:18:53,390 --> 00:18:53,890 All right. 192 00:18:53,890 --> 00:18:56,350 The floor is open to questions. 193 00:19:00,400 --> 00:19:02,100 I don't bite, I promise. 194 00:19:07,420 --> 00:19:11,490 All right. 195 00:19:11,730 --> 00:19:12,770 Thanks, guys. 196 00:19:12,770 --> 00:19:13,450 Appreciate it.