55
Trawling for Tor Hidden Services: Detection, Measurement, Deanonymization A. Biryukov, I. Pustogarov , R.P. Weinmann University of Luxembourg [email protected] May 20, 2013

Trawling for Tor Hidden Services: Detection, Measurement, … · 2013-09-17 · 2 Overview Background Measuring the popularity of hidden services DoSing hidden services. Harvesting

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Trawling for Tor Hidden Services: Detection, Measurement, … · 2013-09-17 · 2 Overview Background Measuring the popularity of hidden services DoSing hidden services. Harvesting

Trawling for Tor Hidden Services: Detection, Measurement, Deanonymization

A. Biryukov, I. Pustogarov, R.P. WeinmannUniversity of [email protected]

May 20, 2013

Page 2: Trawling for Tor Hidden Services: Detection, Measurement, … · 2013-09-17 · 2 Overview Background Measuring the popularity of hidden services DoSing hidden services. Harvesting

2

Overview

● Background● Measuring the popularity of hidden services ● DoSing hidden services.● Harvesting onion addresses.● Revealing the guards.● Opportunistic deanonymisation.

Page 3: Trawling for Tor Hidden Services: Detection, Measurement, … · 2013-09-17 · 2 Overview Background Measuring the popularity of hidden services DoSing hidden services. Harvesting

3

Overview

● Background● Measuring the popularity of hidden services ● DoSing hidden services.● Harvesting onion addresses.● Revealing the guards.● Opportunistic deanonymisation.

Page 4: Trawling for Tor Hidden Services: Detection, Measurement, … · 2013-09-17 · 2 Overview Background Measuring the popularity of hidden services DoSing hidden services. Harvesting

4

Tor anonymity network

R1

R2

R3 R4 R5

Alice

Bob

Client Anonymity

Page 5: Trawling for Tor Hidden Services: Detection, Measurement, … · 2013-09-17 · 2 Overview Background Measuring the popularity of hidden services DoSing hidden services. Harvesting

5

Server Anonymity

Tor anonymity network

R1

R2

R3 R4 R5

Alice

Bob

...

Page 6: Trawling for Tor Hidden Services: Detection, Measurement, … · 2013-09-17 · 2 Overview Background Measuring the popularity of hidden services DoSing hidden services. Harvesting

6

Server Anonymity

Tor anonymity network

R1

R2

R3

Authorities

R4 R5

Alice

Bob

...

R1 – ID BW UPTIME –

R2 – ID BW UPTIME –

R3 – ID BW UPTIME –

R4 – ID BW UPTIME –

...

...

Page 7: Trawling for Tor Hidden Services: Detection, Measurement, … · 2013-09-17 · 2 Overview Background Measuring the popularity of hidden services DoSing hidden services. Harvesting

7

Consensus

http://torstatus.blutmagie.de/

Page 8: Trawling for Tor Hidden Services: Detection, Measurement, … · 2013-09-17 · 2 Overview Background Measuring the popularity of hidden services DoSing hidden services. Harvesting

8

Guards

R1

R2 R3

Alice

Bob

Guard = high uptime + high bandwidth

Every client has 3 Guard nodes

Page 9: Trawling for Tor Hidden Services: Detection, Measurement, … · 2013-09-17 · 2 Overview Background Measuring the popularity of hidden services DoSing hidden services. Harvesting

9

Guards

R1

R2 R3

Alice

Bob

Guard = high uptime + high bandwidth

Every client has 3 Guard nodes

Page 10: Trawling for Tor Hidden Services: Detection, Measurement, … · 2013-09-17 · 2 Overview Background Measuring the popularity of hidden services DoSing hidden services. Harvesting

10

Guards

R1

R2 R3

Alice

Bob

Guard = high uptime + high bandwidth

Every client has 3 Guard nodes

Carol

Page 11: Trawling for Tor Hidden Services: Detection, Measurement, … · 2013-09-17 · 2 Overview Background Measuring the popularity of hidden services DoSing hidden services. Harvesting

11

Examples of Tor HS

Page 12: Trawling for Tor Hidden Services: Detection, Measurement, … · 2013-09-17 · 2 Overview Background Measuring the popularity of hidden services DoSing hidden services. Harvesting

12

Examples of Tor HS

Page 13: Trawling for Tor Hidden Services: Detection, Measurement, … · 2013-09-17 · 2 Overview Background Measuring the popularity of hidden services DoSing hidden services. Harvesting

13

Examples of Tor HS

Page 14: Trawling for Tor Hidden Services: Detection, Measurement, … · 2013-09-17 · 2 Overview Background Measuring the popularity of hidden services DoSing hidden services. Harvesting

14

Examples of Tor HS

Page 15: Trawling for Tor Hidden Services: Detection, Measurement, … · 2013-09-17 · 2 Overview Background Measuring the popularity of hidden services DoSing hidden services. Harvesting

15

Examples of Tor HS

Page 16: Trawling for Tor Hidden Services: Detection, Measurement, … · 2013-09-17 · 2 Overview Background Measuring the popularity of hidden services DoSing hidden services. Harvesting

17

Tor rendezvous protocol

HSDirStorage

IP3

IP2IP1

Step1: Bob picks someintroduction points andbuilds circuits to them.

Bob

Alice

Page 17: Trawling for Tor Hidden Services: Detection, Measurement, … · 2013-09-17 · 2 Overview Background Measuring the popularity of hidden services DoSing hidden services. Harvesting

18

Tor rendezvous protocol

IP3

IP2IP1

Step2: Bob advertiseshis hidden service – <z>.onion – at the database.

Bob

Alice

IDs+

HSDirStorage

Page 18: Trawling for Tor Hidden Services: Detection, Measurement, … · 2013-09-17 · 2 Overview Background Measuring the popularity of hidden services DoSing hidden services. Harvesting

19

Tor rendezvous protocol

IP3

IP2IP1

Step3: Alice requestsintroduction points fromthe database.She also sets upa rendezvouspoint.

Bob

Alice RP

HSDirStorage

Page 19: Trawling for Tor Hidden Services: Detection, Measurement, … · 2013-09-17 · 2 Overview Background Measuring the popularity of hidden services DoSing hidden services. Harvesting

20

Tor rendezvous protocol

IP3

IP2IP1

Step4: Alice sends amessage to Bob listingthe rendezvous pointand asks the introductionpoints from to deliver it.

Bob

Alice

RP

RP

HSDirStorage

Page 20: Trawling for Tor Hidden Services: Detection, Measurement, … · 2013-09-17 · 2 Overview Background Measuring the popularity of hidden services DoSing hidden services. Harvesting

21

Tor rendezvous protocol

IP3

IP2IP1

Step5: Alice and BobConnect at the Rendezvouspoint

Bob

Alice RP

HSDirStorage

Page 21: Trawling for Tor Hidden Services: Detection, Measurement, … · 2013-09-17 · 2 Overview Background Measuring the popularity of hidden services DoSing hidden services. Harvesting

22

Tor rendezvous protocol

IP3

IP2IP1

Bob

Alice RP

HSDirStorage

Page 22: Trawling for Tor Hidden Services: Detection, Measurement, … · 2013-09-17 · 2 Overview Background Measuring the popularity of hidden services DoSing hidden services. Harvesting

23

Responsible hidden service directories

HSDirStorage

= HSDir = 25 hours of uptime

Bob

IDs+

(0|1) )+ + +Hash( Secret

Page 23: Trawling for Tor Hidden Services: Detection, Measurement, … · 2013-09-17 · 2 Overview Background Measuring the popularity of hidden services DoSing hidden services. Harvesting

24

Responsible hidden service directories

HSDirStorage

= HSDir = 25 hours of uptime

Bob

IDs+

(0|1) )+ + +Hash( Secret

Page 24: Trawling for Tor Hidden Services: Detection, Measurement, … · 2013-09-17 · 2 Overview Background Measuring the popularity of hidden services DoSing hidden services. Harvesting

25

Responsible hidden service directories

HSDirStorage

= HSDir = 25 hours of uptime

Bob

IDs+

(0|1) )+ + +

● IDs change every 24 hours at some time during the day● Re-upload every hour

Hash( Secret

Page 25: Trawling for Tor Hidden Services: Detection, Measurement, … · 2013-09-17 · 2 Overview Background Measuring the popularity of hidden services DoSing hidden services. Harvesting

27

Overview

● Background● Measuring the popularity of hidden services ● DoSing hidden services.● Harvesting onion addresses.● Revealing the guards.● Opportunistic deanonymisation.

Page 26: Trawling for Tor Hidden Services: Detection, Measurement, … · 2013-09-17 · 2 Overview Background Measuring the popularity of hidden services DoSing hidden services. Harvesting

28

Impersonating Hidden service directory

= HSDir = 25 hours of uptime

Bob

IDs+

HSDirStorage

Page 27: Trawling for Tor Hidden Services: Detection, Measurement, … · 2013-09-17 · 2 Overview Background Measuring the popularity of hidden services DoSing hidden services. Harvesting

29

Impersonating Hidden service directory

= HSDir = 25 hours of uptime

Bob

IDs+

HSDirStorage

Page 28: Trawling for Tor Hidden Services: Detection, Measurement, … · 2013-09-17 · 2 Overview Background Measuring the popularity of hidden services DoSing hidden services. Harvesting

30

Impersonating Hidden service directory

= HSDir = 25 hours of uptime

Bob

IDs+

HSDirStorage

Page 29: Trawling for Tor Hidden Services: Detection, Measurement, … · 2013-09-17 · 2 Overview Background Measuring the popularity of hidden services DoSing hidden services. Harvesting

32

Impersonating Hidden service directory

● By impersonating 1 directory, we can track the popularity

● By impersonating all 6 directories, we can DoS.

1 second

~20 seconds

Page 30: Trawling for Tor Hidden Services: Detection, Measurement, … · 2013-09-17 · 2 Overview Background Measuring the popularity of hidden services DoSing hidden services. Harvesting

33

Tracking popularity

● We tracked popularity of Skynet C&C, Silkroad, and DuckDuckGo

Page 31: Trawling for Tor Hidden Services: Detection, Measurement, … · 2013-09-17 · 2 Overview Background Measuring the popularity of hidden services DoSing hidden services. Harvesting

34

Overview

● Background● Measuring the popularity of hidden services ● DoSing hidden services.● Harvesting onion addresses.● Revealing the guards.● Opportunistic deanonymisation.

Page 32: Trawling for Tor Hidden Services: Detection, Measurement, … · 2013-09-17 · 2 Overview Background Measuring the popularity of hidden services DoSing hidden services. Harvesting

35

Shadowing

Authorities

Consensus

158.64.76.40

- Active

- Shadow

Page 33: Trawling for Tor Hidden Services: Detection, Measurement, … · 2013-09-17 · 2 Overview Background Measuring the popularity of hidden services DoSing hidden services. Harvesting

36

Shadowing

Authorities

Authorities Internal database

Consensus

...158.64.76.40

- Active

- Shadow

Page 34: Trawling for Tor Hidden Services: Detection, Measurement, … · 2013-09-17 · 2 Overview Background Measuring the popularity of hidden services DoSing hidden services. Harvesting

37

Shadowing

Authorities

Authorities Internal database

Consensus

...158.64.76.40

- Active

- Shadow

Page 35: Trawling for Tor Hidden Services: Detection, Measurement, … · 2013-09-17 · 2 Overview Background Measuring the popularity of hidden services DoSing hidden services. Harvesting

38

Shadowing

Authorities

Authorities Internal database

Consensus

...158.64.76.40

- Active

- Shadow

Page 36: Trawling for Tor Hidden Services: Detection, Measurement, … · 2013-09-17 · 2 Overview Background Measuring the popularity of hidden services DoSing hidden services. Harvesting

39

Collecting onion addresses - Active

- Shadow

Page 37: Trawling for Tor Hidden Services: Detection, Measurement, … · 2013-09-17 · 2 Overview Background Measuring the popularity of hidden services DoSing hidden services. Harvesting

40

Collecting onion addresses

● Naive approach will require ~350 IP addresses.

- Active

- Shadow

Page 38: Trawling for Tor Hidden Services: Detection, Measurement, … · 2013-09-17 · 2 Overview Background Measuring the popularity of hidden services DoSing hidden services. Harvesting

41

Collecting onion addresses

● Naive approach will require ~350 IP addresses.

● Descriptors don't relocate

within 24 hours.● Prepare shadow HSDir

relays and gradually pull to consensus.

- Active

- Shadow

Page 39: Trawling for Tor Hidden Services: Detection, Measurement, … · 2013-09-17 · 2 Overview Background Measuring the popularity of hidden services DoSing hidden services. Harvesting

42

Collecting onion addresses

● Naive approach will require ~350 IP addresses.

● Descriptors don't relocate

within 24 hours.● Prepare shadow HSDir

relays and gradually pull to consensus.

- Active

- Shadow

158.64.76.40

Page 40: Trawling for Tor Hidden Services: Detection, Measurement, … · 2013-09-17 · 2 Overview Background Measuring the popularity of hidden services DoSing hidden services. Harvesting

43

Collecting onion addresses

● Naive approach will require ~350 IP addresses.

● Descriptors don't relocate

within 24 hours.● Prepare shadow HSDir

relays and gradually pull to consensus.

- Active

- Shadow

158.64.76.40

Page 41: Trawling for Tor Hidden Services: Detection, Measurement, … · 2013-09-17 · 2 Overview Background Measuring the popularity of hidden services DoSing hidden services. Harvesting

44

Collecting onion addresses

● Naive approach will require ~350 IP addresses.

● Descriptors don't relocate

within 24 hours.● Prepare shadow HSDir

relays and gradually pull to consensus.

- Active

- Shadow

158.64.76.40

Page 42: Trawling for Tor Hidden Services: Detection, Measurement, … · 2013-09-17 · 2 Overview Background Measuring the popularity of hidden services DoSing hidden services. Harvesting

46

Harvest results

● We used 58 IP addresses from Amazon EC2 and spent 57 USD

● We collected 39824 unique onion addresses in 49 hours (on hidden wikis one can find ~2500 addresses only)

● Some interesting note: 12 onion addresses in the form silkroad*****.onion.

Page 43: Trawling for Tor Hidden Services: Detection, Measurement, … · 2013-09-17 · 2 Overview Background Measuring the popularity of hidden services DoSing hidden services. Harvesting

47

Overview

● Background● Measuring the popularity of hidden services ● DoSing hidden services.● Harvesting onion addresses.● Revealing the guards.● Opportunistic deanonymisation.

Page 44: Trawling for Tor Hidden Services: Detection, Measurement, … · 2013-09-17 · 2 Overview Background Measuring the popularity of hidden services DoSing hidden services. Harvesting

49

Revealing Guard Nodes

BobAlice RP

Page 45: Trawling for Tor Hidden Services: Detection, Measurement, … · 2013-09-17 · 2 Overview Background Measuring the popularity of hidden services DoSing hidden services. Harvesting

50

Revealing Guard Nodes

BobAlice

GuardRP

Page 46: Trawling for Tor Hidden Services: Detection, Measurement, … · 2013-09-17 · 2 Overview Background Measuring the popularity of hidden services DoSing hidden services. Harvesting

51

Revealing Guard Nodes

Bob

Eve's Node

GuardRP

Traffic Signature

Eve

Page 47: Trawling for Tor Hidden Services: Detection, Measurement, … · 2013-09-17 · 2 Overview Background Measuring the popularity of hidden services DoSing hidden services. Harvesting

52

Revealing Guard Nodes

Bob

Eve's Node

GuardRP

Traffic Signature

Eve

Page 48: Trawling for Tor Hidden Services: Detection, Measurement, … · 2013-09-17 · 2 Overview Background Measuring the popularity of hidden services DoSing hidden services. Harvesting

53

Revealing Guard Nodes

Bob

Eve's Node

GuardRP

Traffic Signature

Eve

~40 minutes to reveal the guard nodes for a 5Mb/s node

Page 49: Trawling for Tor Hidden Services: Detection, Measurement, … · 2013-09-17 · 2 Overview Background Measuring the popularity of hidden services DoSing hidden services. Harvesting

54

Opportunistic deanonymisation

BobEve

GuardRP

Page 50: Trawling for Tor Hidden Services: Detection, Measurement, … · 2013-09-17 · 2 Overview Background Measuring the popularity of hidden services DoSing hidden services. Harvesting

55

Opportunistic deanonymisation

BobEve

GuardRP

Traffic Signature

How long does it take to becomea Guard of a hidden service?

Page 51: Trawling for Tor Hidden Services: Detection, Measurement, … · 2013-09-17 · 2 Overview Background Measuring the popularity of hidden services DoSing hidden services. Harvesting

56

Opportunistic deanonymisation

● Rent a server for 60 USD per month => 0.6% probability to be chosen as a Guard.

● Deanonymisation ~150 hidden services per month (for 60 USD per month)

● By running 23 such servers, the probability to deanonymize any long-running hidden service within 8 months is 99%. (~11 000 USD total).

Page 52: Trawling for Tor Hidden Services: Detection, Measurement, … · 2013-09-17 · 2 Overview Background Measuring the popularity of hidden services DoSing hidden services. Harvesting

57

Side effect (flag assignment)● Large number of shadow relays with bw <= 1 accelerated flag

assignment.

Running

Fast

Stable

Guard

Page 53: Trawling for Tor Hidden Services: Detection, Measurement, … · 2013-09-17 · 2 Overview Background Measuring the popularity of hidden services DoSing hidden services. Harvesting

58

Conclusions

Tracking

Denial of Service

Collecting onion addresses

Revealing Guard Nodes

Deanonymisation ● 150 addresses per month (60 USD)●Any HS (8 months+11000 USD)

Page 54: Trawling for Tor Hidden Services: Detection, Measurement, … · 2013-09-17 · 2 Overview Background Measuring the popularity of hidden services DoSing hidden services. Harvesting

59

Support slide 1

● Triggered– #8243: Getting the HSDir flag should require more

effort

– #8243: Getting the HSDir flag should require more effort

● Related– Changing of the Guards: A Framework for

Understanding and Improving Entry Guard Selection in Tor", WPES 2012

– #8240: Raise our guard rotation period

(patch to raise it to 9.5 month still pending)

Page 55: Trawling for Tor Hidden Services: Detection, Measurement, … · 2013-09-17 · 2 Overview Background Measuring the popularity of hidden services DoSing hidden services. Harvesting

60

Support slide 2

● Not included into the presentation– Finding guard nodes using topological properties

– Bandwidth inflation