51
Tor et ses .onion Un système d'adressage « privacy by design » Lunar [email protected] 0603 CCFD 9186 5C17 E88D 4C79 8382 C95C 2902 3DF9 Journée du Conseil scientifique de l’Afnic 11 juillet 2016

Tor et ses .onion

Embed Size (px)

Citation preview

Page 1: Tor et ses .onion

Tor et ses .onion

Un système d'adressage « privacy by design »

[email protected]

0603 CCFD 9186 5C17 E88D 4C79 8382 C95C 2902 3DF9

Journée du Conseil scientifique de l’Afnic11 juillet 2016

Page 2: Tor et ses .onion

The Tor Project

Our mission is to advance human rights and freedoms by creating and deploying

free and open privacy and anonymity technologies, supporting their

unrestricted availability and use, and furthering their scientific and popular

understanding.

Page 3: Tor et ses .onion

Deep Dark Marina Abyssal Web

... NOT about the Dark Web

Page 4: Tor et ses .onion

● Online Anonymity– Open Source– Open Network

● Community of researchers, developers, users and relay operators.

● U.S. 501(c)(3) non-profit organization

Page 5: Tor et ses .onion

The Tor network

Page 6: Tor et ses .onion

Usual Tor connections

Page 7: Tor et ses .onion

Exemple de .onion

Page 8: Tor et ses .onion
Page 9: Tor et ses .onion

Onion Service Properties

Self authenticated

Distributed directory

End-to-end encrypted

NAT punching

Page 10: Tor et ses .onion

Unique .onion addresses

Page 11: Tor et ses .onion

Estimated Traffic

Page 12: Tor et ses .onion

Estimated Traffic

As of December 2015,

~5% of client traffic is HS

Page 13: Tor et ses .onion

Statistics

https://research.torproject.org/techreports/extrapolating-hidserv-stats-2015-01-31.pdf

Proposal 238

Page 14: Tor et ses .onion

Birth - 2004

Changes in version 0.0.6pre1 ­ 2004­04­08  o Features:    ­ Hidden services and rendezvous points are implemented. Go to      http://6sxoyfb3h2nvok2d.onion/ for an index of currently available      hidden services. (This only works via a socks4a proxy such as      Privoxy, and currently it's quite slow.)

ChangeLog file entry:

Page 15: Tor et ses .onion

Early use case - 2006

Souce: wikipedia.org

Page 16: Tor et ses .onion

Wikileaks - 2007

Page 17: Tor et ses .onion

GlobaLeaks - 2011

Today, more than 30 projects use GlobaLeakshttps://en.wikipedia.org/wiki/GlobaLeaks#Implementations

Page 18: Tor et ses .onion

SecureDrop - 2013

https://securedrop.org/directory

Today, 22 organizations use SecureDrop

Page 19: Tor et ses .onion

And Facebook Too - 2015

Page 20: Tor et ses .onion

And Facebook Too - 2015

● No more worrying about bad certificate authorities

● Avoids exit relay contention,traffic never leaves the network!

Page 21: Tor et ses .onion
Page 22: Tor et ses .onion
Page 23: Tor et ses .onion

And Facebook Too - 2015

● No more worrying about bad certificate authorities

● Avoids exit relay contention,traffic never leaves the network!

● Ultimately it could be faster than reaching Facebook with a normal Tor circuit

Page 24: Tor et ses .onion

Rendezvous Single Onion Services (RSOS)

Rendezvous Point

Proposal 260

Introduction Point

Page 25: Tor et ses .onion

Single Onion Services (SOS)

The circuit is extended to the service.No Introduction nor Rendezvous.

Proposal 252

Page 26: Tor et ses .onion

OnionBalance - TSoPhttps://onionbalance.readthedocs.org

Page 27: Tor et ses .onion

.onion and EV cert

● Browsers know to treat cookies/etc like TLS● Server-side does not need to treat .onion specially● With an EV cert, the browser shows the user that it's

really Facebook

Page 28: Tor et ses .onion

Subdomain support

Proposal 204

www.facebookcorewwwi.onionconnects tofacebookcorewwwi.onion

Page 29: Tor et ses .onion

Magic of .onion EV certs!

Onion SSL Certificates have a magic extra feature,

The only EV SSL Certs which can use wildcards!

Page 30: Tor et ses .onion

OnionSharehttps://onionshare.org/

Page 31: Tor et ses .onion

Ricochethttps://ricochet.im

Page 32: Tor et ses .onion

RFC7686 - 2015

Page 33: Tor et ses .onion

Setup

# apt-get get install tor

# cat << EOF

HiddenServiceDir /var/lib/tor/blog/

HiddenServicePort 80 127.0.0.1:80

EOF

# killall -HUP tor

# cat /var/lib/tor/blog/hostname

7j3ncmar4jm2r3e7.onion

⚠ Watch out for leaks! e.g. /server-status/

Page 34: Tor et ses .onion

Access control

Sur le serveur :HiddenServiceAuthorizeClient stealth user

Sur le client :HidServAuth ww2ufwkgxb2kag6t.onion☛ ErQPDEHdNNprvWYCA2vTLR

La clé se trouve dans Tor/Data/hostname

Proposal 121

Page 35: Tor et ses .onion

Current Security Problems

● Onion identity keys are too short!● You can choose relay identity keys to target a

particular onion service● You can run relays to harvest onion addresses● Sybil attacks remain an issue for Tor in general● Guard discovery attack (proposal 247)● Website fingerprinting for onion services?

Page 36: Tor et ses .onion
Page 37: Tor et ses .onion
Page 38: Tor et ses .onion
Page 39: Tor et ses .onion
Page 40: Tor et ses .onion
Page 41: Tor et ses .onion
Page 42: Tor et ses .onion

HS Directory

Hashring

HSDirn

Desc IDrep0

Desc IDrep1

HSDirn+1

HSDirn+2

HSDirn

HSDirn+1

HSDirn+2

Desc ID = H(onion-address | H(time-period | descriptor-cookie | replica))

Page 43: Tor et ses .onion

HSDir Predictibility

Desc ID = H(onion-address | H( time-period | descriptor-cookie | replica))

Invariant

11:00 UTC 11:00 UTC+24

time-period span

DescID k1 DescID k2

11:00 UTC+48

...

Page 44: Tor et ses .onion

Next Generation Onion Service (NGOS)

Proposal 224

https://blog.torproject.org/blog/mission-montreal-building-next-generation-onion-services

Page 45: Tor et ses .onion

Shared Randomness

Proposal 250

Desc ID = H(onion-address |H( time-period | random-value | descriptor-cookie | replica))

Invariant

longclaw Faravahar moria1 dannenberg tor26 matsukagabelmoo dizum

random-value(new every 24h)

Page 46: Tor et ses .onion

Better Crypto

Page 47: Tor et ses .onion

Bigger Onion Address

nzh3fv6jc6jskki3.onion

From 16 characters:

... to 52 characters:a1uik0w1gmfq3i5ievxdm9ceu27e88g6o7pe0rffdw9jmntwkdsd.onion

(ed25519 public key base32 encoded)

… or maybe something else :correct-battery-horse-staple-chair-banana-table-river-pizza.onion… or another encoding…

Page 48: Tor et ses .onion

Meaningful names for .onion?

Self-authentication is somewhat a lie…● In DNS: .onion must be stored in TXT records

(unless you use the OnionCat trick / fake Ipv6)● Shareable address book(s)?● Namecoin?● OnioNS?● Let's Encrypt!?

Page 49: Tor et ses .onion

Onion services vs IP

Global routing requires common policy● Hierarchical authorities● Unauthenticated● Metadata and payload visible to 3rd parties● … ?

Page 50: Tor et ses .onion

Onion services vs DNS

Human-meaningful● Hierarchical, decentralized● Partially authenticated (DNSSEC)● Metadata and payload visible to 3rd parties● … ?

Page 51: Tor et ses .onion

Thanks!

0603 CCFD 9186 5C17 E88D4C79 8382 C95C 2902 3DF9

[email protected]