Cover traffic (CT): an essential privacy feature - Martin Benedikt Busch (HOPR)
ETH Milan · 6 Dec 2023 · 17:21
Martin Benedikt Busch, a data scientist at HOPR, explains how an incentivised mixnet protects transport-level metadata such as IP addresses. The keynote covers multi-hop relaying, packet mixing and proof of relay, then focuses on cover traffic: injecting indistinguishable noise to defeat intersection attacks. It discusses the trade-off between privacy, bandwidth and latency, the first cover traffic app, and the RPCh private gateway to the blockchain.
Speakers
Topics
From ETH Milan; community: ETH Milan.
Transcript
hi uh welcome everybody um first of all I'm very glad to be here uh has been a great conference so far so congratulations to the organizers um yeah I'm Martin Benedict I am a data scientist and I work for Hopper and today I want to talk about privacy via noise and incentives up front let me tell you that Hopper is working on transport level privacy so what you should imagine during the talk is that we're doing something like a web three version of a VPN because a VPN is what you already know from your how you transmit data without leaking your privacy and like let me depict like what I call
our naive Little Wonderland where we as the users the typical users of web 3 interact with the infrastructure and the services that it provides on a daily basis be because it provides the freedom of choice inclusion of everybody but without actually proper trans transport layer privacy um our for examp our metadata and including our metadata for example our IP address is exposed where our IP address is the most single most important identifier of our identity and this has been used by to this information about our metadata can be used to sensor the user and um the services that we like to
use and we had Hopper we built like a decentralized and incentivized Mix net to basically obfuscate all kind of metadata to basically ensure that no third parties like IPC providers know about your for example metadata and and IP address to basically offis skate all communication traffic so that you as a user can send transaction privately in in the on the blockchain without leading leaking any of metadata that could be used against you um how we do it so let me first go through some of the Privacy features
that enable this at Hopper what we're building so like I said we build a decentralized and incentivized uh packet relay Network and one of the features that the network has is that we root all your data through like multiple hops in this case in this example there's Alejandro who get data and sends it to zo and in this case only so and Alejandro will know who is the sender and recipient of the data or what is the content of the data and nobody else on top of that we have packet mixing which actually makes the Privacy then actually Superior to like a VPN classic VPN or even Tor that is this data that gets into the network and not just just
rooted through multiple hops they also get split up in several packages and then rooted through different routs and basic at each relayer in the network they get mixed so which adds an additional layer of privacy to the network the third thing what I would say is the really distinguishing feature of Hopper and what I believe is what will actually make hopper scale is that we like notes who provide the service of relaying data in the network are not doing that on a voluntary basis they actually get paid for this so if you relay data in the network you get paid for this and we do it actually through like a mechanism that we invented which is called proof of relay that means like when you send data in the network as a
relayer when you do your job of relaying messages you actually don't need to trust any of the other uh Rel layers in the network for example here for example if data goes through the network then Betty in this case can only get her reward in Hopper token which is paid through the protocol if she gets a confirmation from chiao in this case which is the next Downstream node in the network that she did her job correctly and actually related the data and this will actually ensures that yeah you don't need to trust any other node in network but this also ensures that you don't need to trust the hopper Association itself because we don't store any of kind of financial data because we we don't need these data to
actually be able to pay people because it all happens through the protocol by itself um a feature I want to talk uh about a little bit more in detail today that's something that I have been working on which is called cover traffic and which is basically the missing piece in the puzzle uh to provide full privacy in the network and that is adding privacy via noise and incentives so let me um first give a brief introduction into cover traffic um I made this illustration uh how you should imagine it so there's somebody and let's call it an adversary who wants to know who talking to each other because if he observe these people talking to each
other multiple times he might be able to inere what they actually talking about and theorize them in this case the adversary stands in front of a closed door but in the room are only two users so basically the adversary knows that there only two users in the in in let's say in the network or in this room so actually the adversary knows that okay they must be talking to each other so basically they are denmed in this um in this example so basically this illustration reflects a network where there's really low low usage in an edge case that only two people actually using the network it's it's pretty easy to De anonymize these people even though all the other privacy features that I talked about previously are in place and what does cover traffic in
essence do cover traffic injects way more people into the room so now if you think about in terms of this illustration now it gets infinitely much harder for the for the adverse re to even figure out who's talk that that user one is actually talking to user two because there's a lot of random noise of other people here in the in the network or in this room um talking in essence that is cover traffic um basically what it means in the sumary for the hopper network is what we have been building is that CT Blends basically random noise random messages into the hopper neet mixet to obos skate real communication traffic that is actually going on so what we are doing is we inject in
traffic into the network and basically this traffic that we're injecting what is very important is like to the bite is the same as the real traffic so basically these package that are related whether it's organic traffic or cover traffic are indistinguishable from each other from the outside and basically that and we get get back to that ens showes that this is how Hopper protects real communication traffic uh from Global passive adversaries observing the network and compromising privacy for example one attack that you might know about is like an intersection attack if we just think back of this little illustrative example from before performing intersection attack is very easy because there only two people knowing the network so you
don't need to basically observe much of the communication to the anonymize people but again performing an intersection Tech becomes infinitely much harder harder if we buy cover traffic ensure that there always enough traffic in the network this sounds all good but there are two things that I wanted to highlight with the implementation of cover traffic that doesn't make it uh straightforward at all the first thing is that there is something in called that is the anonym trma and in each corner of this triangle I highlighted three desirable features of the over Network first we want to have high privacy right we want to have data related through multiple hops we want to have packet
mixing we want to have cover traffic then it's very hard for somebody obser in the network to figure out who's communicating with each other however if we inject let's say in terms of cover traffic a lot of cover traffic the a network of course always also has a bandwidth where the bandwidth is like the amount of data that actually can be processed by the network in a given amount of time or the throughput if we put too much cover traffic then it might lead that actually we provide a lot of privacy but we also at the same time congest the network if we congest the network what the do that mean then data doesn't get relate to to the destination anymore in time or at all and what does it mean like a third
desirable um feature that we have in a network is low latency of course then the latency gets higher how can you basically reduce latency hey you can say like okay I route only through one hop instead of three or I provide less cover traffic to not congest the Network anymore so just what I'm illustrating here what you see where I'm going is that these three desirable features are all interacting with each other and basically what we're working on is to balance them out another thing that we call programmable privacy is we actually give the user the choice how much privacy he wants to have for example if you have a certain transaction where you say like I I I don't really care so much about privacy I really care that this transaction goes through very fast then
you can compromise some of the Privacy for more latency or you think like hey I can wait a little bit longer I want complete privacy another aspect that is very particular to the fact that we have an incentivized mixnet is that incentivizing cover traffic is just as crucial as incentivizing organic traffic within the hopper Network right I told you before that it's very important that cover traffic is indistinguishable from real communication traffic that also means if nodes relay cover traffic in terms of instead of organic traffic they also need to get paid for relaying that so cover traffic has a cost and somebody has to pay for it right
um what I want to highlight next is a little bit the app that I and my team have been uh working on and so just to give you a brief outline of the app um so we have been working on uh the cover traffic app that's the first implementation of cover traffic in the Hoppa network uh what we have done is we have like some not in the network and to be fair all of I'm talking about this the first implementation of cover traffic it is basically centralized as an app controlled by us but of course the goal is to completely decentralize it and have it not controlled by us but we need it in initially controlled by us
because we want to learn from the data to actually work to a state where we where the end goal is that each note itself has an incentive to issue Caba traffic but for the time being we have notes in the network with which are basically attached to as a CER have a python script we call them netw Watchers and basically what they do is they ping all notes in the network and should see which are which nodes are actually available to even relay cover traffic these nodes send the information to what we call like an agregator the aggregator the only job is is basically also python script and the only job of that script is to basically figure out the unique uh list of PE seen in the network because multiple nodes can see the same pier and orders them by the amount of latency
that this ping has to optimize the sending of cover traffic it's going to be sent to a database and this database then gets read by what we call the economic Handler which basically performs the calculation of how much C traffic a certain node should receive in the network this is get sent to a rabbit mq a salary broker um it's basically a message broker which then we have another side C attached to the same note that the net Watchers which is called a postman and this post man is then going to send out cover traffic to the nodes in the network um why are they attached to the same node because the networ has the availability information so basically the same node needs then to send out the
the the traffic to the C traffic to the nodes in the network and let me just stress that all what we do is open source so you can just go to our GitHub repo and check out the code um let me give you a brief state of the current state of the hopper Network So currently we have more than 300 running notes with 90% availability in the network you can check out this out on our Network dashboard on network. Hooper net.org we have many more notes wait waiting in the wait list so that implies currently it's permissioned so we control a weight list where we let nodes into the network because we want to scale the network slowly to learn from the data and not run into
scalability issues before really knowing that we can scale um but of course the end goal is to have it completely permissionless of course um we've uh currently provide like since the ctab is running like for now uh two weeks uh we provide supply side revenue for the nodes in the network and privacy uh by cover traffic you can like I said you can check out the code at our GitHub repo uh slop onet C research um we can uh we have current more than 9 million Hopper tokens staked in these notes so they stake the hopper tokens in the nodes and the stake is one of the variables that um is eligible for
how much Caro traffic they get to Pro to get of course the not has more um more uh tokens gets a higher fraction of cover traffic uh and then we have uh currently the that leads that note Runners earn an API between 10 and 15% for relaying data package in the network so that shows the incentivization and that actually not ear a good share of profit currently let me go lastly is that uh our product that launched yesterday is basically enjoy privacy with rpch um rpch is the first private gateway to the blockchain and provides demand side revenue for the hob protocol so cover traffic is nice to have it
provides supply side Revenue but of course suppli and revenue is not sustainable in a current form because we as a hopper Association pay for it but organic traffic like which I was talking about comes from rpch and basically what it does is it RP Roots all requests from your wallet and responses from the RPC provider through the hopper Network that means if you connect to your metam mask and install rpch then you can send transactions without leaking your metadata for example your IP address through RPC providers like infura um you can sign up for for it for free at dean. r.net and actually with the custom promo code that we just did
for you guys you can uh get it if you sign up until 31st of October you can get 6 months of it for free and basically already start today to send private transactions and yeah that's it from my side I think I have a little bit more time so I can take one or to questions if there are yeah is it available only for connecting to blockchain through a Gateway or for general purpose Communications like to um so so basically you can connect to it uh it's an SDK so it's compatible with any EVN compatible blockchain so
you can use it on on any evm compatible blockchain sorry the question was if we can use the same infrastructure to make like equivalent of the Tor Network but but with the tokens to incentivize the the different proxies yes so basically I mean you can copy that infrastructure right and what what makes us Superior to tour is uh packet mixing so we have rooting like we have but on top of that we have packet mixing and what really distinguishes is incentivization so we don't require nodes to be run voluntarily which in essence we believe once we are ready to scale we can scale up to much more than
uh than the to network has a notes uh how does the usage of cow traffic uh slows the speed of the transaction that is something we are currently learning about by having it run for two week Gathering the data on it and basically doing research on how it is but that's exactly the question we are current answering and that's why it's not permission as yet because we need to answer these questions before we go into scaling all right okay I guess that's it thank you so much thank
you
