Group messaging in the XRD private communication...

21
Group messaging in the XRD private communication system David Lu Mentor: Albert Kwon

Transcript of Group messaging in the XRD private communication...

Page 1: Group messaging in the XRD private communication systemmath.mit.edu/research/highschool/primes/materials/2019/conf/12-1-… · Motivation However, spy still leaks metadata: Identities

Group messaging in the XRD private communication system

David LuMentor: Albert Kwon

Page 2: Group messaging in the XRD private communication systemmath.mit.edu/research/highschool/primes/materials/2019/conf/12-1-… · Motivation However, spy still leaks metadata: Identities

Acknowledgements

Thank you to Albert Kwon for mentoring me

Thank you to Prof. Devadas for PRIMES-CS

Thank you to Dr. Gerovitch for the PRIMES program

Thank you to my parents for their support

2

Page 3: Group messaging in the XRD private communication systemmath.mit.edu/research/highschool/primes/materials/2019/conf/12-1-… · Motivation However, spy still leaks metadata: Identities

MotivationHowever, spy still leaks metadata:

● Identities● Timing● Size

3

Spy hides message content through encryption.

Spy WaPo

m

Page 4: Group messaging in the XRD private communication systemmath.mit.edu/research/highschool/primes/materials/2019/conf/12-1-… · Motivation However, spy still leaks metadata: Identities

Privacy guarantee● Provide metadata private messaging against powerful

adversaries

?

4

Page 5: Group messaging in the XRD private communication systemmath.mit.edu/research/highschool/primes/materials/2019/conf/12-1-… · Motivation However, spy still leaks metadata: Identities

Deployment and threat model

● Global network adversary

5

Page 6: Group messaging in the XRD private communication systemmath.mit.edu/research/highschool/primes/materials/2019/conf/12-1-… · Motivation However, spy still leaks metadata: Identities

XRD: basic design

2. Forward messages to mailboxes

l = 2

6

1. Send messages to l servers

Page 7: Group messaging in the XRD private communication systemmath.mit.edu/research/highschool/primes/materials/2019/conf/12-1-… · Motivation However, spy still leaks metadata: Identities

XRD: basic design

2. Forward messages to mailboxes

If 1 and 4 are talking to each other with

l = 2

7

1. Send messages to l servers

Page 8: Group messaging in the XRD private communication systemmath.mit.edu/research/highschool/primes/materials/2019/conf/12-1-… · Motivation However, spy still leaks metadata: Identities

XRD: basic design

2. Forward messages to mailboxes

If 1 and 4 are not talking to each other

with l = 2

8

1. Send messages to l servers

Page 9: Group messaging in the XRD private communication systemmath.mit.edu/research/highschool/primes/materials/2019/conf/12-1-… · Motivation However, spy still leaks metadata: Identities

Security argument

● Every mailbox gets exactly l messages○ Mailboxes are identical

● Every pair of users intersects○ Hides which users are talking with each other

● The origin of the message is hidden by the server○ Hides swap-or-not

9

Page 10: Group messaging in the XRD private communication systemmath.mit.edu/research/highschool/primes/materials/2019/conf/12-1-… · Motivation However, spy still leaks metadata: Identities

Group messaging

10

● Multiple 1-1 conversations Group chat succeeds!

Page 11: Group messaging in the XRD private communication systemmath.mit.edu/research/highschool/primes/materials/2019/conf/12-1-… · Motivation However, spy still leaks metadata: Identities

Group messaging

11

● Multiple 1-1 conversations Group chat fails!

Page 12: Group messaging in the XRD private communication systemmath.mit.edu/research/highschool/primes/materials/2019/conf/12-1-… · Motivation However, spy still leaks metadata: Identities

Goal

● Enable group conversations of any size ● Minimize the max number of messages that a server gets

○ This determines overall latency of XRD

Page 13: Group messaging in the XRD private communication systemmath.mit.edu/research/highschool/primes/materials/2019/conf/12-1-… · Motivation However, spy still leaks metadata: Identities

Approaches

● Randomized algorithm● Parallel algorithm● Linear programming● Mixed integer programming ● Greedy algorithms (this talk)

Page 14: Group messaging in the XRD private communication systemmath.mit.edu/research/highschool/primes/materials/2019/conf/12-1-… · Motivation However, spy still leaks metadata: Identities

● Goal: Every pair of users intersects at least x times

Greedy algorithm #1

14

6 servers, x = 23 groups, l = 4

● Divide into (l/x+1) groups● l = √(2nx + x2/4) - x/2

minimizes load per server (for n servers)

Page 15: Group messaging in the XRD private communication systemmath.mit.edu/research/highschool/primes/materials/2019/conf/12-1-… · Motivation However, spy still leaks metadata: Identities

Greedy algorithm #2

● Start with every user sending message to every server

● Remove messages that least impact intersections between users

6 servers, x = 2, 3 groups

Page 16: Group messaging in the XRD private communication systemmath.mit.edu/research/highschool/primes/materials/2019/conf/12-1-… · Motivation However, spy still leaks metadata: Identities

Greedy algorithm #2

● Start with every user sending message to every server

● Remove messages that least impact intersections between users

6 servers, x = 2, 3 groups

Page 17: Group messaging in the XRD private communication systemmath.mit.edu/research/highschool/primes/materials/2019/conf/12-1-… · Motivation However, spy still leaks metadata: Identities

Results

Page 18: Group messaging in the XRD private communication systemmath.mit.edu/research/highschool/primes/materials/2019/conf/12-1-… · Motivation However, spy still leaks metadata: Identities

Conclusion

● Two greedy algorithms to enable group messaging in XRD● For 100 servers and 1M users:

○ Groups of up to 5 users with 96% latency increase ○ Groups of up to 20 users with 250% latency increase

Page 19: Group messaging in the XRD private communication systemmath.mit.edu/research/highschool/primes/materials/2019/conf/12-1-… · Motivation However, spy still leaks metadata: Identities

Backup

Page 20: Group messaging in the XRD private communication systemmath.mit.edu/research/highschool/primes/materials/2019/conf/12-1-… · Motivation However, spy still leaks metadata: Identities

Success rate of current algorithm

Page 21: Group messaging in the XRD private communication systemmath.mit.edu/research/highschool/primes/materials/2019/conf/12-1-… · Motivation However, spy still leaks metadata: Identities

Scalability properties of original system

For m users and n chains,

● We can make sure all users intersect with l = √(2n) ● Each chain handles m*l/n = (√2)*m/(√n) messages

○ If you increase n, the load per chain goes down (scalable)

21