eth zurich – distributed computing group raphael eidenbenz, infocom 2011 1eth zurich –...

24
ETH Zurich – Distributed Computing Group Raphael Eidenbenz, INFOCOM 2011 1 ETH Zurich – Distributed Computing Group Raphael Eidenbenz, Thomas Locher, Roger Wattenhofer Hidden Communication in P2P Networks Steganographic Handshake and Broadcast INFOCOM 2011

Upload: braxton-copas

Post on 15-Dec-2015

218 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: ETH Zurich – Distributed Computing Group Raphael Eidenbenz, INFOCOM 2011 1ETH Zurich – Distributed Computing Group Raphael Eidenbenz, Thomas Locher, Roger

ETH Zurich – Distributed Computing Group Raphael Eidenbenz, INFOCOM 2011 1ETH Zurich – Distributed Computing Group

Raphael Eidenbenz, Thomas Locher, Roger Wattenhofer

Hidden Communication in P2P NetworksSteganographic Handshake and Broadcast

INFOCOM 2011

Page 2: ETH Zurich – Distributed Computing Group Raphael Eidenbenz, INFOCOM 2011 1ETH Zurich – Distributed Computing Group Raphael Eidenbenz, Thomas Locher, Roger

ETH Zurich – Distributed Computing Group Raphael Eidenbenz, INFOCOM 2011 2

Spy Rendezvous

In London, April’s

a spring month.

..whereas in St.Petersburg we’re

freezing our butts off.

MI6 CIA

Page 3: ETH Zurich – Distributed Computing Group Raphael Eidenbenz, INFOCOM 2011 1ETH Zurich – Distributed Computing Group Raphael Eidenbenz, Thomas Locher, Roger

ETH Zurich – Distributed Computing Group Raphael Eidenbenz, INFOCOM 2011 3

Spy Rendezvous

In London, April’s

a spring month.

Yes, Russian winters are cold. Enjoy your

stay, sir.

?? CIA

Page 4: ETH Zurich – Distributed Computing Group Raphael Eidenbenz, INFOCOM 2011 1ETH Zurich – Distributed Computing Group Raphael Eidenbenz, Thomas Locher, Roger

ETH Zurich – Distributed Computing Group Raphael Eidenbenz, INFOCOM 2011 4

Steganographic Handshake in Networks

Share files

Regular peers Conspirers

Talk to other conspirerswithout raising suspicion

Page 5: ETH Zurich – Distributed Computing Group Raphael Eidenbenz, INFOCOM 2011 1ETH Zurich – Distributed Computing Group Raphael Eidenbenz, Thomas Locher, Roger

ETH Zurich – Distributed Computing Group Raphael Eidenbenz, INFOCOM 2011 5

Steganographic Handshake in Networks

Π

Π

Page 6: ETH Zurich – Distributed Computing Group Raphael Eidenbenz, INFOCOM 2011 1ETH Zurich – Distributed Computing Group Raphael Eidenbenz, Thomas Locher, Roger

ETH Zurich – Distributed Computing Group Raphael Eidenbenz, INFOCOM 2011 6

?

Steganographic Handshake in Networks

Π

Π

Π

Page 7: ETH Zurich – Distributed Computing Group Raphael Eidenbenz, INFOCOM 2011 1ETH Zurich – Distributed Computing Group Raphael Eidenbenz, Thomas Locher, Roger

ETH Zurich – Distributed Computing Group Raphael Eidenbenz, INFOCOM 2011 7

?

Steganographic Handshake in Networks

Π

Π

Page 8: ETH Zurich – Distributed Computing Group Raphael Eidenbenz, INFOCOM 2011 1ETH Zurich – Distributed Computing Group Raphael Eidenbenz, Thomas Locher, Roger

ETH Zurich – Distributed Computing Group Raphael Eidenbenz, INFOCOM 2011 8

Steganographic Channels

• P2P File sharing– Block request sequence– Block subset selection

• Timing

• Bandwidth

• Ports

Page 9: ETH Zurich – Distributed Computing Group Raphael Eidenbenz, INFOCOM 2011 1ETH Zurich – Distributed Computing Group Raphael Eidenbenz, Thomas Locher, Roger

ETH Zurich – Distributed Computing Group Raphael Eidenbenz, INFOCOM 2011 9

Steganographic Broadcast

• Send a message to all conspirers

• Bittorrent-like p2p file sharing system ncn-c

Page 10: ETH Zurich – Distributed Computing Group Raphael Eidenbenz, INFOCOM 2011 1ETH Zurich – Distributed Computing Group Raphael Eidenbenz, Thomas Locher, Roger

ETH Zurich – Distributed Computing Group Raphael Eidenbenz, INFOCOM 2011 10

Steganographic Broadcast

• Send a message to all conspirers

• Bittorrent-like p2p file sharing system

k

Page 11: ETH Zurich – Distributed Computing Group Raphael Eidenbenz, INFOCOM 2011 1ETH Zurich – Distributed Computing Group Raphael Eidenbenz, Thomas Locher, Roger

ETH Zurich – Distributed Computing Group Raphael Eidenbenz, INFOCOM 2011 11

Efficient Broadcast

8𝑛𝑐

ln (𝑛𝑐 )

If each conspirer randomly connects to peers, then the subnetwork induced by the conspirers is connected w.h.p.𝑐

Lemma

Page 12: ETH Zurich – Distributed Computing Group Raphael Eidenbenz, INFOCOM 2011 1ETH Zurich – Distributed Computing Group Raphael Eidenbenz, Thomas Locher, Roger

ETH Zurich – Distributed Computing Group Raphael Eidenbenz, INFOCOM 2011 12

Efficient Broadcast

• Space complexity • Communication complexity w.h.p.

Get peer addressesAcquire blocksReveal types of connected peersBroadcast message in conspirer subnetwork

If each conspirer randomly connects to peers, then the subnetwork induced by the conspirers is connected w.h.p.𝑐

Lemma

Algorithm

Page 13: ETH Zurich – Distributed Computing Group Raphael Eidenbenz, INFOCOM 2011 1ETH Zurich – Distributed Computing Group Raphael Eidenbenz, Thomas Locher, Roger

ETH Zurich – Distributed Computing Group Raphael Eidenbenz, INFOCOM 2011 13

Stronger Authority Models

• Individual Monitoring– Authority monitors individual communication links, no correlation– where m is the # of blocks

• Complete Monitoring– Authority monitors complete network

• Stochastic Monitoring– Trade-off: Hidden communication vs. False positives

Page 14: ETH Zurich – Distributed Computing Group Raphael Eidenbenz, INFOCOM 2011 1ETH Zurich – Distributed Computing Group Raphael Eidenbenz, Thomas Locher, Roger

ETH Zurich – Distributed Computing Group Raphael Eidenbenz, INFOCOM 2011 14

Steganographic Handshake in BitThief

• BitThief is a BitTorrent client that – Free rides with BitTorrent clients [1], and– Trades tit-for-tat (T4T) with other BitThiefs [2]

• Block request sequence• Hybrid approach using PEX

– Order of peer addresses– Forged peer address

BitTorrent

T 4T

[1] Locher et al., Free Riding in Bittorrent is Cheap, HotNets 2006[2] Locher et al., Rescuing Tit-for-Tat with Source Coding, P2P 2007

Page 15: ETH Zurich – Distributed Computing Group Raphael Eidenbenz, INFOCOM 2011 1ETH Zurich – Distributed Computing Group Raphael Eidenbenz, Thomas Locher, Roger

ETH Zurich – Distributed Computing Group Raphael Eidenbenz, INFOCOM 2011 15

Reprise

Page 16: ETH Zurich – Distributed Computing Group Raphael Eidenbenz, INFOCOM 2011 1ETH Zurich – Distributed Computing Group Raphael Eidenbenz, Thomas Locher, Roger

Thank You!Questions & Comments?

Page 17: ETH Zurich – Distributed Computing Group Raphael Eidenbenz, INFOCOM 2011 1ETH Zurich – Distributed Computing Group Raphael Eidenbenz, Thomas Locher, Roger

ETH Zurich – Distributed Computing Group Raphael Eidenbenz, INFOCOM 2011 17

References

• P. Erdös and A. Rényi, On Random Graphs, Publicationes Mathematicae, 1959.

• R. Van der Hofstad, Random Graphs and Complex Networks, 2007.

• BitThief – A Free Riding BitTorrent Client. http://bitthief.ethz.ch

• Locher et al., Free Riding in Bittorrent is Cheap, HotNets 2006

• Locher et al., Rescuing Tit-for-Tat with Source Coding, P2P 2007

Page 18: ETH Zurich – Distributed Computing Group Raphael Eidenbenz, INFOCOM 2011 1ETH Zurich – Distributed Computing Group Raphael Eidenbenz, Thomas Locher, Roger

ETH Zurich – Distributed Computing Group Raphael Eidenbenz, INFOCOM 2011 18

Encoding Bits Into a Permutation

• Encode a message M in a permutation– Represent M as a factorial number– because – M is encoded into as the Lehmer Code of is 2210.

• Lehmer Code– Counts the # swaps to get to – (1,2,3,4) ..2 swaps.. – (3,1,2,4) ..2 swaps..– (3,4,1,2) ..1 swap..– (3,4,2,1) ..0 swaps..– (3,4,2,1)

Page 19: ETH Zurich – Distributed Computing Group Raphael Eidenbenz, INFOCOM 2011 1ETH Zurich – Distributed Computing Group Raphael Eidenbenz, Thomas Locher, Roger

ETH Zurich – Distributed Computing Group Raphael Eidenbenz, INFOCOM 2011 19

Proof of Lemma 3.2

• If each conspirer randomly connects to peers, then the subnetwork induced by the conspirers is connected w.h.p.

• Proof:• For each conspirer , it holds that .• (Chernoff)• • If each edge of a graph G with c nodes is present with probability then G

is connected with probability (Corollary from [Hofstad 2007])

• In such a graph G, all nodes have less than neighbors w.h.p.• Each conspirer implicitly chooses random neighbors in the conspirer

subgraph.

Page 20: ETH Zurich – Distributed Computing Group Raphael Eidenbenz, INFOCOM 2011 1ETH Zurich – Distributed Computing Group Raphael Eidenbenz, Thomas Locher, Roger

ETH Zurich – Distributed Computing Group Raphael Eidenbenz, INFOCOM 2011 20

Broadcast under Individual Monitoring

• Authority monitors individual communication links

• where m is the # of blocks

𝑅𝑖

𝐵𝑖

𝑅𝑖

𝐵𝑖

Page 21: ETH Zurich – Distributed Computing Group Raphael Eidenbenz, INFOCOM 2011 1ETH Zurich – Distributed Computing Group Raphael Eidenbenz, Thomas Locher, Roger

ETH Zurich – Distributed Computing Group Raphael Eidenbenz, INFOCOM 2011 21

Broadcast under Complete Monitoring

• Authority monitors all connections, and correlates data– No under-reporting– No re-requesting

• Acquire random blocks

𝑅𝑖

𝐵𝑖

𝑅𝑖

𝐵𝑖

Page 22: ETH Zurich – Distributed Computing Group Raphael Eidenbenz, INFOCOM 2011 1ETH Zurich – Distributed Computing Group Raphael Eidenbenz, Thomas Locher, Roger

ETH Zurich – Distributed Computing Group Raphael Eidenbenz, INFOCOM 2011 22

Broadcast under Stochastic Monitoring

• Regular peers choose their request order permutation according to a distribution C

• Authority classifies a peer as a conspirer if it uses a request order permutation with

• Trade-off in the choice of threshold

– Amount of hidden communication vs. False positives

Page 23: ETH Zurich – Distributed Computing Group Raphael Eidenbenz, INFOCOM 2011 1ETH Zurich – Distributed Computing Group Raphael Eidenbenz, Thomas Locher, Roger

ETH Zurich – Distributed Computing Group Raphael Eidenbenz, INFOCOM 2011 23

Broadcast under Stochastic Monitoring

• Regular peers choose their request order permutation according to a distribution C

• Authority classifies a peer as a conspirer if it uses a request order permutation with

• is a deterministic PRG

Page 24: ETH Zurich – Distributed Computing Group Raphael Eidenbenz, INFOCOM 2011 1ETH Zurich – Distributed Computing Group Raphael Eidenbenz, Thomas Locher, Roger

ETH Zurich – Distributed Computing Group Raphael Eidenbenz, INFOCOM 2011 24

Spy Rendezvous

In London, April’s

a spring month.

..whereas in St.Petersburg we’re

freezing our butts off.

MI6 CIA