[00:00.000 --> 00:06.020] So our first speaker, Tyler Kelley. Welcome. And give a big round of applause. [00:10.080 --> 00:18.120] All right, everybody. Hi, so my name is Tyler. I work at Cornell Tech in New York City. I [00:18.120 --> 00:25.140] hope everyone's hangovers aren't too bad and thanks for braving the hard heat to come up here [00:25.140 --> 00:31.980] in the morning. This presentation represents some joint work with some very smart people who [00:31.980 --> 00:38.320] are all also at Cornell. So today we're going to talk about tools to improve anonymity on [00:38.320 --> 00:43.820] the internet and specifically I'm going to cover an anonymity tool called dining cryptographer [00:43.820 --> 00:49.620] networks. Some academic research in that area and then our open source project that we [00:49.620 --> 00:55.920] call Howl, which is a dining cryptographer protocol. I'm hoping that you leave this talk [00:55.920 --> 01:01.340] with a rough intuition of how DC nets work and some excitement about our project and so, [01:01.340 --> 01:08.700] yeah. Let's, uh, let's jump in. So let's talk about every cryptographer's favorite topic, [01:08.700 --> 01:13.580] which is, of course, cryptocurrency. How many times do you guys think the word privacy [01:13.580 --> 01:18.400] occurs in the white paper for Facebook's new crypto coin? Okay, I'm seeing some zero in some [01:18.400 --> 01:24.140] hands. Anyone else? Also zero. A lot of zero. Okay. All right. Well, the actual answer is [01:24.140 --> 01:29.840] one. Um, and this quote is golden. It's like, we're not even going to try and do anything [01:29.840 --> 01:35.320] about privacy, but we'll like think about it and see what other people do. Yeah. It's pretty [01:35.320 --> 01:42.600] great. So it's become pretty clear that the digital revolution has in many ways eroded privacy [01:42.600 --> 01:47.040] and enabled surveillance on a grand scale that was never before possible. I think that's [01:47.040 --> 01:51.680] pretty well understood. Um, so we have this problem today, which is that for all intents [01:51.680 --> 01:56.140] and purposes, digitally speaking, privacy is dead, right? Like you are tracked online at [01:56.140 --> 02:01.180] every step by everyone from your ISP to Facebook at the application layer to MasterCard at [02:01.180 --> 02:07.160] the payment layer, et cetera, et cetera, et cetera. And anonymity is a subset of privacy [02:07.160 --> 02:11.800] and you need anonymity in some sense to preserve privacy because you need a crowd to hide in. [02:11.800 --> 02:18.240] So, you know, privacy tools like Tor and I2P exist, but they're not necessarily widely used, [02:18.240 --> 02:24.540] um, and often have pitfalls for users. So we'd like to improve the state of, you know, [02:24.540 --> 02:30.400] existence right now. Um, so we need privacy enhancing tools on the internet, um, not just [02:30.400 --> 02:34.920] for activists like those in Hong Kong during the protests like the umbrella protests, um, but [02:34.920 --> 02:39.320] also for whistleblowers or for applications where treating all parties the same is important [02:39.320 --> 02:46.620] like anonymous voting. So we understand that being anonymous is hard, so where could we [02:46.620 --> 02:55.980] find a solution? How about back in the 1980s? And who's going to be our mad scientist? Well, [02:55.980 --> 03:01.000] David Chom. So there are a variety of anonymity techniques that exist, but one of the [03:01.000 --> 03:05.100] most thorough and strong privacy preserving techniques that we have today is called [03:05.100 --> 03:10.280] dining cryptographer networks, and this idea has been around since the late 80s. So let's [03:10.280 --> 03:14.380] say, hypothetically, not that this could possibly have happened, but, you know, last [03:14.380 --> 03:19.440] night maybe a group of you went to a bar in Valleys and shared a round of drinks, and at [03:19.440 --> 03:24.760] some point the bartender informs you that some person who wishes to stay anonymous, um, has [03:24.760 --> 03:30.280] purchased you all the next round of drinks. But being in this audience, you are [03:30.280 --> 03:35.380] sophisticated cryptographers, so you're concerned that maybe the NSA is trying to bribe you by [03:35.380 --> 03:40.140] buying you a round of drinks, and that wouldn't be good. So, but at the same time, it's [03:40.140 --> 03:44.340] possible that someone sitting at the bar bought the round of drinks, and if it was someone at [03:44.340 --> 03:51.020] the bar, you respect their, like, wishes for privacy. So what can you do? Well, we have this [03:51.020 --> 03:55.540] DC net thing, so let's talk about how it works with an example. So we have our familiar [03:55.540 --> 04:04.060] friends Alice, Bob, and Charlie. And the first thing that they do, um, is they agree on a [04:04.060 --> 04:08.500] shared secret setup. So for this example, we're going to just anonymize one bit of [04:08.500 --> 04:13.400] information. I'm trying to make this as simple as possible. Um, so, you know, Alice goes to [04:13.400 --> 04:17.840] Bob and agrees on a shared secret, and they agree on the shared secret one, and Bob, you know, [04:17.840 --> 04:20.960] goes to Charlie, and they talk, and they're like, all right, we're going to agree on zero. So [04:20.960 --> 04:29.080] everybody does this, and, uh, so on and so forth. Then, when it comes time to reveal who [04:29.080 --> 04:33.720] paid, each person takes the information about whether they paid, in this case represented by [04:33.720 --> 04:38.960] the bit one or zero, um, and they XOR this information with the combination of shared [04:38.960 --> 04:43.040] secrets that they have with all of the other parties in the system. So what this does is it [04:43.040 --> 04:48.560] obfuscates the information you want to broadcast with the shared secrets. Um, so Alice here [04:48.560 --> 04:57.640] paid, so she broadcasts a one. And Bob didn't pay, so he broadcasts a zero with a one and a [04:57.640 --> 05:01.580] zero, because those were his shared secrets. And Charlie does, you know, he does the same [05:01.580 --> 05:08.320] thing, and he outputs a one as well. So now that we've broadcasted our encrypted values, we [05:08.320 --> 05:13.600] can take the XOR of all of these values together, and you will have one XOR, one XOR one, [05:13.600 --> 05:18.460] which equals one. All of the participants in the system compute this output separately at the [05:18.460 --> 05:24.060] same time, and since the output is one, um, everybody knows that somebody paid, but they [05:24.060 --> 05:28.920] don't necessarily know who paid. But I want to break this down a little more obviously, so [05:28.920 --> 05:34.540] it's, it's very clear. Um, all of the shared secrets cancel out, um, when you XOR the [05:34.540 --> 05:39.160] shared secrets together in the final output. Um, this is because you have two of each shared [05:39.160 --> 05:43.900] secret that gets rolled into the final broadcasted value, uh, that comes from each of the [05:43.900 --> 05:49.800] people. So that shared secret, when you XOR them together, because of the truth table for [05:49.800 --> 05:55.800] XOR, which is over there, you can see that they'll cancel out. So hopefully that provides [05:55.800 --> 05:59.880] some intuition about how you can broadcast some information through this protocol, and how [05:59.880 --> 06:04.060] like nobody can know what other people are broadcasting, uh, without actually knowing [06:04.060 --> 06:12.320] other people's shared secrets. So that's like a very quick primer on DCNets. So DCNets have [06:12.320 --> 06:17.260] some problems. Um, for one, only one person can broadcast at a time. That's a, kind of an [06:17.260 --> 06:22.040] issue. Um, and second, if someone doesn't respond in a timely manner, they can slow down [06:22.040 --> 06:26.620] the system, because everyone has to wait for everyone else. And parties could lie, like [06:26.620 --> 06:31.120] there's, there's no reason why anyone has to be honest. And, um, and then lastly, this [06:31.120 --> 06:35.500] DCNet has exponential communication complexity in the number of participants in the system. [06:35.500 --> 06:44.840] So it, it becomes very, very gossipy. We can solve some of these problems. Um, for instance, [06:44.840 --> 06:48.620] the collision problem can be solved with a good scheduling algorithm for who can talk [06:48.620 --> 06:54.940] when. So instead of transmitting one bit at a time, you do the XOR across a bit vector [06:54.940 --> 06:59.300] of known length, where each person has a slot, and then they just transmit their message [06:59.300 --> 07:03.560] in their slot. So Alice would transmit in the first slot, maybe Bob could do his in [07:03.560 --> 07:09.060] the second, etc., etc. And as long as everyone's honest, there are ways to choose who goes [07:09.060 --> 07:14.920] in what slot, by essentially broadcasting the slot position as a message, uh, that you [07:14.920 --> 07:20.320] encrypt through the DCNet. There's a paper, uh, called Footprint Scheduling that goes [07:20.320 --> 07:25.740] into this topic, specifically scheduling, uh, in more detail. And, uh, you can see it [07:25.740 --> 07:33.540] at the bottom. So one of the most successful DCNets, um, was a DCNet that was, uh, designed [07:33.560 --> 07:40.240] at Yale by Gibbs and, uh, Ford. Um, you can imagine it as a client server protocol for [07:40.240 --> 07:46.320] DCNets, where clients, uh, share secrets with all of the servers in the system, and then [07:46.320 --> 07:50.760] the servers will perform the actual XOR operation amongst themselves. So this has the [07:50.760 --> 07:56.000] advantage that, um, it minimizes the need for uptime in the clients. Clients can sort of come [07:56.000 --> 08:00.500] and go as they please. Um, and as long as the servers don't go down, the system is still [08:00.500 --> 08:05.040] robust. But you do have uptime requirements on the servers. So they have two papers about [08:05.040 --> 08:10.460] this topic. The OSDI 2012 paper is the more useful one if you want to see implementation [08:10.460 --> 08:17.900] details. Um, but dissent is not flawless either. Specifically, there's two problems that we [08:17.900 --> 08:22.500] want to iterate on and improve on. And those two are the denial of service problem and the [08:22.500 --> 08:28.060] performance problem. So prior work essentially requires a traitor tracing protocol, um, to [08:28.060 --> 08:33.580] punish actors that don't act as honest parties. Um, and this protocol is pretty expensive and [08:33.580 --> 08:38.680] complicated. And if we can get rid of it, that would be pretty good. And then if we can [08:38.680 --> 08:42.220] increase the performance, that would also be good for real world adoption because we want to [08:42.220 --> 08:49.940] make real world tools that actually affect people's lives and leave academia. So we're [08:49.940 --> 08:54.780] developing our own system that we call Howl. Um, this stands upon the shoulders of giants [08:54.780 --> 09:00.540] and it, we're trying to make a DC net that would be real world practical and usable today. The [09:00.540 --> 09:05.920] way that we do this is by separating the concept of a DC net into three components. So [09:05.920 --> 09:12.080] authorship of messages, aggregation of messages for XORing and the actual anonymization slash [09:12.080 --> 09:20.040] encryption of messages, i.e., do XOR to it. So we have three types of nodes and each type of [09:20.040 --> 09:24.960] node corresponds directly to one of the required components on the previous slide. Clients [09:24.960 --> 09:29.220] will author messages and then they will send them to aggregators. These are people who want [09:29.220 --> 09:33.700] to broadcast anonymous messages, obviously. Aggregators exist to help the performance of [09:33.700 --> 09:38.720] the network and what they do is they reduce bandwidth load on the root nodes so that the [09:38.720 --> 09:44.540] root nodes don't have to receive a flood of traffic from literally every client in the [09:44.540 --> 09:49.740] system. And then additionally by organizing aggregators in a hierarchical structure, we [09:49.740 --> 09:54.800] can add like very primitive fault tolerance. So if your aggregator sort of tries to [09:54.800 --> 09:58.800] censor you or is not being responsive, you can just switch to another aggregator in the [09:58.800 --> 10:04.220] chain and it will still send the message through the system. And then root nodes will [10:04.220 --> 10:09.220] perform the final XOR, which does the whole do XOR to it and computes the plain text of [10:09.220 --> 10:16.500] each round in the protocol. These XOR nodes will always need to be online. So here's a [10:16.500 --> 10:24.200] diagram that shows roughly what it would look like. So the other new contribution we bring [10:24.200 --> 10:28.220] to the table is the idea of putting the DC net inside of a trusted execution environment, [10:28.220 --> 10:35.680] in this case Intel's SGX, secure guard extensions. So in the last few years, Intel has been [10:35.680 --> 10:40.040] baking in this meta operating system into its processors that operates at a higher [10:40.040 --> 10:46.100] privilege level than the OS and is completely opaque to the OS. One of the side effects of [10:46.100 --> 10:50.660] this new development is that they've also included a trusted execution environment that [10:50.660 --> 10:57.860] they call SGX that essentially allows you to run instructions on the CPU in this reverse [10:57.860 --> 11:03.740] sandbox where all of the code and RAM associated with this enclave is protected from access [11:03.740 --> 11:16.230] from the operating system. I just like memes. So they also bake private keys into the [11:16.230 --> 11:21.330] hardware. And so the environment can cryptographically attest to an outside party that [11:21.330 --> 11:25.170] it's running inside of an enclave and that the code is running some specific desired code [11:25.170 --> 11:34.190] and only that code. So by using Intel's SGX, we can write some DC net code that acts [11:34.190 --> 11:38.550] honestly and always follows the rules of the protocol and then we can use the attestation [11:38.550 --> 11:42.330] features on our network and participants in the DC net can check these attestation [11:42.330 --> 11:47.990] signatures to ignore anyone not acting honestly and running in the correct environment. All [11:47.990 --> 11:51.650] of the trader tracing protocols that were necessary in prior work can just be gotten rid [11:51.650 --> 11:58.590] of with this one step. So I want to briefly head off all of the paranoid folks in the [11:58.590 --> 12:03.450] audience, which I know that there will be, especially here. I want to address the what [12:03.450 --> 12:07.970] about trusting Intel problem. So it's important to note here that we're only trusting Intel [12:07.970 --> 12:14.990] for preventing denial of service. The privacy component is completely and totally independent [12:14.990 --> 12:21.450] of SGX. Like, if we removed SGX, there would still be private. So the worst case scenario is [12:21.450 --> 12:26.690] where SGX is completely broken. In that scenario, the only thing that happens is the network [12:26.690 --> 12:31.610] collapses and no longer broadcast messages. In this context, I think that's preferable [12:31.610 --> 12:40.290] than trying to keep availability up. Also, in the future, Hawaii or Siemens might come out [12:40.290 --> 12:44.390] with their own competing product. Well, then the network can add separate different trusted [12:44.390 --> 12:48.810] execution environments and you can sort of spread the trust out across multiple nation [12:48.810 --> 12:54.510] states and manufacturers to sort of have them check against each other. Also, the last [12:54.510 --> 13:02.090] bullet is one of my points. So we have this anonymous broadcast channel where people can [13:02.090 --> 13:06.550] essentially shout things into the ether and hide within a crowd of participants in the DC [13:06.550 --> 13:12.230] net. I like to think of it as something akin to UDP where you can send messages in one [13:12.230 --> 13:17.190] direction but not another. I don't think this would be a good replacement for Tor, for [13:17.190 --> 13:21.230] example, because you'd have to build a lot of infrastructure on top of the DC net to make [13:21.770 --> 13:29.350] stateful connections and sort of like HTTP work. But I think it's interesting that you can [13:29.350 --> 13:36.330] build TCP out of UDP and that you can build Tor out of this kind of analogous. There are [13:36.330 --> 13:40.330] some potential use cases that we've come up with that we think this would be great for. One [13:40.330 --> 13:45.370] is social media where you're broadcasting public statements unidirectionally. So this is [13:45.370 --> 13:50.470] like Twitter, for example. So with the proper API jig built, we could have a relay bot that [13:50.470 --> 13:56.530] listens to the DC net for input and posts anonymous tweets from the DC net. The other big [13:56.530 --> 14:01.330] use case which I am personally more excited about is anonymizing IP layer metadata from [14:01.330 --> 14:07.030] cryptocurrency transactions to try to achieve the goal of anonymous digital cash. So in [14:07.030 --> 14:11.770] the transition of monetary instruments to the digital era, we've lost an element of [14:11.770 --> 14:16.750] anonymity that existed in cash transactions. So that doesn't exist with credit cards. When [14:16.750 --> 14:22.110] you buy booze and cigarettes at Bally's tonight, MasterCard knows that you did that. And [14:22.110 --> 14:26.450] by extension, everyone they sell data to and the government also knows that. And that's not [14:26.450 --> 14:31.170] really any other business. So we don't really need to be sharing data with third parties all [14:31.170 --> 14:36.870] the time. But in the digital world, that's sort of the norm. So the idea here would be that [14:36.870 --> 14:41.690] instead of broadcasting a transaction from a node directly to a cryptocurrency network, [14:41.690 --> 14:47.310] which is the status quo right now, you would broadcast it through the DC net and then a [14:47.310 --> 14:52.770] relay bot would forward all of the transactions it sees in the DC net to the protocol. Sort of [14:52.770 --> 15:00.490] like pushing it through a proxy almost. And that essentially obfuscates the IP address data [15:00.490 --> 15:06.430] that is leaked when you broadcast a transaction from a node. So when you buy that booze [15:06.430 --> 15:09.890] tonight, imagine if that transaction were privately sent through Z cash and anonymized at [15:09.890 --> 15:16.290] both the IP layer and the application layer. So that would be nice. This use case also has [15:16.290 --> 15:20.490] the nice property that tying this technology into a cryptocurrency lets us financially [15:20.490 --> 15:24.590] incentivize people to participate in the DC net so you can pay people to anonymize your [15:24.590 --> 15:30.610] transactions. And also provide cover traffic. So there might be other use cases that we [15:30.610 --> 15:33.930] haven't even thought of. And if you've got one, I'd love to hear it. Feel free to email me [15:33.930 --> 15:39.490] or DM me on Twitter, obviously. So this is the slide where I would have performance [15:39.490 --> 15:43.530] metrics to show you that our network is fast and you should use it. But unfortunately the [15:43.530 --> 15:50.090] code is still in progress. So we're working on the code. I want to do this right. So if it [15:50.090 --> 15:54.570] means doing it a little slower, I'm okay with that. Hopefully we'll have something out [15:54.570 --> 15:58.690] in the next few months. And we are releasing as open source, obviously. So check our [15:58.690 --> 16:04.770] website and follow me on Twitter for news updates about when that might happen. And with [16:04.770 --> 16:10.110] that, that's Howl. I hope you guys found this talk interesting. Feel free to contact me and [16:10.110 --> 16:14.690] keep an eye out for the project. And hopefully we can bring digital privacy tools into the [16:14.690 --> 16:25.920] mainstream. So thanks. All right. We're opening the floor for questions. If you have [16:25.920 --> 16:40.370] questions, just line up over here at the middle center, please. Hi. Have you found that [16:40.370 --> 16:44.390] there's a minimum number of participants that makes it effective and once you sort of reach [16:44.390 --> 16:50.150] below that threshold, that all of a sudden it becomes easy to attack and sort of, you know, [16:50.150 --> 16:57.030] deobfuscate what's going on? Off the top of my head, I don't know of any specific studies [16:57.030 --> 17:01.870] that have shown that. But that is definitely something that's the case, right? Like you [17:01.870 --> 17:08.890] want to have a certain number of minimum K out of N anonymity set to hide in. I want this to [17:08.890 --> 17:12.610] be run by, like, everybody. That would be fantastic. But I'm not in control of other [17:12.610 --> 17:18.130] people. So I don't know off the top of my head how many participants you would need to be [17:18.130 --> 17:23.670] secure. But the idea is that if we have it open source and if the community likes it, it will [17:23.670 --> 17:29.650] grow organically and so the more people that run it, obviously, the more crowd there is to [17:29.650 --> 17:39.290] hide in. Yeah. The scheduling broadcast, does that help to protect against kind of timing [17:39.290 --> 17:44.950] attacks or any kind of correlation that may be possible? So the problem that scheduling [17:44.950 --> 17:50.990] solves is this problem where you can only have one person broadcast at a time. So let me go [17:50.990 --> 17:57.750] back to this. So in this sort of example, toy example I showed, we have Alice broadcasting the [17:57.750 --> 18:01.990] bit one to indicate that she paid. And this was only, like, a one bit system that I was [18:01.990 --> 18:05.910] describing. When you want to do more than one, you basically just have a bit vector and so [18:05.910 --> 18:11.390] you just encrypt the entire bit vector. But the problem is that one person can only talk at a [18:11.390 --> 18:16.350] time because everyone else needs X or zero with that encrypted ‑‑ with that secret [18:16.350 --> 18:21.710] value so that the, like, zeroes cancel out at the end. So the problem that scheduling [18:23.390 --> 18:27.730] solves is, like, how can we talk with multiple people at the same time? So you take this [18:27.730 --> 18:31.970] bit vector and you have, like, slots where people just sit and put their message in and the [18:31.970 --> 18:37.950] entire bit vector becomes the secret. Does that make sense? So that's ‑‑ every [18:37.950 --> 18:45.130] participant has a slot available whether or not they use it or not is ‑‑ Yeah, and in some [18:45.130 --> 18:51.250] cases you want participants to have more than one slot. But the paper is there and it's a [18:51.250 --> 18:56.350] good paper. It's pretty readable. All right. The floor is open to questions. [19:00.400 --> 19:13.450] I don't bite, I promise. All right. Thanks, guys. Appreciate it.