introduction to tor secure web browsing and anonymity …sukhbir/talks/mumbai-tormeetup-2018...i...

62
Introduction to Tor Secure Web Browsing and Anonymity Tor Mumbai Meetup, 2018 Sukhbir Singh [email protected] January 20, 2018

Upload: hathu

Post on 26-May-2018

217 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

Introduction to TorSecure Web Browsing and Anonymity

Tor Mumbai Meetup, 2018

Sukhbir [email protected]

January 20, 2018

Page 2: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

Before We Begin. . .

I Understand your threat model

I If in doubt, it’s better to ask

I Respect the group and the discussions

I No photographs please

2 / 18

Page 3: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

Before We Begin. . .

I Understand your threat model

I If in doubt, it’s better to ask

I Respect the group and the discussions

I No photographs please

2 / 18

Page 4: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

Before We Begin. . .

I Understand your threat model

I If in doubt, it’s better to ask

I Respect the group and the discussions

I No photographs please

2 / 18

Page 5: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

Before We Begin. . .

I Understand your threat model

I If in doubt, it’s better to ask

I Respect the group and the discussions

I No photographs please

2 / 18

Page 6: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

Before We Begin. . .

I Understand your threat model

I If in doubt, it’s better to ask

I Respect the group and the discussions

I No photographs please

2 / 18

Page 7: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

Anonymity on the Internet

3 / 18

Page 8: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

Anonymity on the Internet

3 / 18

Page 9: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

Anonymity on the Internet

3 / 18

Page 10: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

Anonymity on the Internet

3 / 18

Page 11: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

Anonymity on the Internet

3 / 18

Page 12: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

Anonymity on the Internet

3 / 18

Page 13: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

Anonymity on the Internet

Anonymity

3 / 18

Page 14: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

Anonymity on the Internet

3 / 18

Page 15: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

“On the Internet, Nobody Knows...”

†Image from The New Yorker cartoon by Peter Steiner, 1993

4 / 18

Page 16: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

On the Internet, They Know...

5 / 18

Page 17: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

Tor: The Onion Router

6 / 18

Page 18: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

Tor: The Onion Router

6 / 18

Page 19: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

Tor: The Onion Router

6 / 18

Page 20: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

Tor: The Onion Router

Client

Destination

6 / 18

Page 21: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

Tor: The Onion Router

Client

Destination

6 / 18

Page 22: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

Tor: The Onion Router

Client

Destination

Entry Guard (I)

Middle Relay (II) Exit Relay (III)

6 / 18

Page 23: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

Tor: The Onion Router

Client

Destination

Entry Guard (I)

Middle Relay (II) Exit Relay (III)

I

II

III

6 / 18

Page 24: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

Tor: The Onion Router

Client

Destination

EntryMiddleExit

6 / 18

Page 25: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

Tor: The Onion Router

Client

Destination

Entry Guard (I)

Middle Relay (II) Exit Relay (III)

I

II

III

6 / 18

Page 26: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

Tor: The Onion Router

Client

Destination

Entry Guard (I)

Middle Relay (II) Exit Relay (III)

✓Source [IP]

× Destination [Resource]

6 / 18

Page 27: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

Tor: The Onion Router

Client

Destination

Entry Guard (I)

Middle Relay (II) Exit Relay (III)

× Source [IP]

✓Destination [Resource]

6 / 18

Page 28: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

Tor: The Onion Router

I Low-latency anonymity

I Distributed design

I 2,000,000 users and 6000 relaysI 100 Gbit/sec available bandwidth

∗https://metrics.torproject.org7 / 18

Page 29: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

Tor: The Onion Router

I Low-latency anonymity

I Distributed design

I 2,000,000 users and 6000 relaysI 100 Gbit/sec available bandwidth

∗https://metrics.torproject.org7 / 18

Page 30: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

Tor: The Onion Router

I Low-latency anonymity

I Distributed design

I 2,000,000 users and 6000 relaysI 100 Gbit/sec available bandwidth

∗https://metrics.torproject.org7 / 18

Page 31: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

Who Uses Tor?

I Journalists

I Activists

I You...

8 / 18

Page 32: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

Who Uses Tor?

I Journalists

I Activists

I You...

8 / 18

Page 33: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

Who Uses Tor?

I Journalists

I Activists

I You...

8 / 18

Page 34: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

Who Uses Tor?

I Journalists

I Activists

I You...

8 / 18

Page 35: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

little-t-tor

I Core of the Tor software ecosystem

I Runs as a daemon and sets up a local SOCKS5 proxy

I But there are still application-level concerns. . .

9 / 18

Page 36: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

little-t-tor

I Core of the Tor software ecosystem

I Runs as a daemon and sets up a local SOCKS5 proxy

I But there are still application-level concerns. . .

9 / 18

Page 37: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

little-t-tor

I Core of the Tor software ecosystem

I Runs as a daemon and sets up a local SOCKS5 proxy

I But there are still application-level concerns. . .

9 / 18

Page 38: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

little-t-tor

I Core of the Tor software ecosystem

I Runs as a daemon and sets up a local SOCKS5 proxy

I But there are still application-level concerns. . .

9 / 18

Page 39: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

Tor Browser

Tor (little-t-tor)

+

Mozilla Firefox (Modified ESR)

10 / 18

Page 40: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

Tor Browser: Demo

Download fromhttps://www.torproject.org/torbrowser

11 / 18

Page 41: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

Staying Safe

I Use Tor Browser

I Be careful when opening downloaded documents

I Use HTTPS versions of websites

I Don’t enable or install browser plugins

12 / 18

Page 42: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

Staying Safe

I Use Tor Browser

I Be careful when opening downloaded documents

I Use HTTPS versions of websites

I Don’t enable or install browser plugins

12 / 18

Page 43: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

Staying Safe

I Use Tor Browser

I Be careful when opening downloaded documents

I Use HTTPS versions of websites

I Don’t enable or install browser plugins

12 / 18

Page 44: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

Staying Safe

I Use Tor Browser

I Be careful when opening downloaded documents

I Use HTTPS versions of websites

I Don’t enable or install browser plugins

12 / 18

Page 45: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

Staying Safe

I Use Tor Browser

I Be careful when opening downloaded documents

I Use HTTPS versions of websites

I Don’t enable or install browser plugins

12 / 18

Page 46: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

Onion Services

Onion Service(.onion)

13 / 18

Page 47: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

Onion Services

Onion Service(.onion)

13 / 18

Page 48: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

Onion Services

Onion Service(.onion)

13 / 18

Page 49: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

Benefits of Onion Services

I End-to-end encrypted without the need for a centralized CA

I Clients can be assured they are talking to the right address

I The location and IP address of the onion service are hiddenI making them difficult block or censor

14 / 18

Page 50: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

Benefits of Onion Services

I End-to-end encrypted without the need for a centralized CA

I Clients can be assured they are talking to the right address

I The location and IP address of the onion service are hiddenI making them difficult block or censor

14 / 18

Page 51: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

Benefits of Onion Services

I End-to-end encrypted without the need for a centralized CA

I Clients can be assured they are talking to the right address

I The location and IP address of the onion service are hiddenI making them difficult block or censor

14 / 18

Page 52: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

Benefits of Onion Services

I End-to-end encrypted without the need for a centralized CA

I Clients can be assured they are talking to the right address

I The location and IP address of the onion service are hiddenI making them difficult block or censor

14 / 18

Page 53: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

Onion Services: Demo

The New York Times Onion Service:

nytimes3xbfgragh.onion

15 / 18

Page 54: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

Tor vs. VPN

† VPN Tor Tor Browser

Censorship Evasion ++ +++ +++Appear Elsewhere ++ + +Anonymity + ++ +++Privacy − + +++Speed ++ −− −−Cost −− +++ +++

†Modified under CC BY-SA 4.0. Original work by Tim Sammut from

https://teamsammut.com/blog/2015/08/tor-vs-vpn-and-proxies-slides.html

16 / 18

Page 55: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

Tor vs. VPN

† VPN Tor Tor BrowserCensorship Evasion ++ +++ +++

Appear Elsewhere ++ + +Anonymity + ++ +++Privacy − + +++Speed ++ −− −−Cost −− +++ +++

†Modified under CC BY-SA 4.0. Original work by Tim Sammut from

https://teamsammut.com/blog/2015/08/tor-vs-vpn-and-proxies-slides.html

16 / 18

Page 56: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

Tor vs. VPN

† VPN Tor Tor BrowserCensorship Evasion ++ +++ +++Appear Elsewhere ++ + +

Anonymity + ++ +++Privacy − + +++Speed ++ −− −−Cost −− +++ +++

†Modified under CC BY-SA 4.0. Original work by Tim Sammut from

https://teamsammut.com/blog/2015/08/tor-vs-vpn-and-proxies-slides.html

16 / 18

Page 57: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

Tor vs. VPN

† VPN Tor Tor BrowserCensorship Evasion ++ +++ +++Appear Elsewhere ++ + +Anonymity + ++ +++

Privacy − + +++Speed ++ −− −−Cost −− +++ +++

†Modified under CC BY-SA 4.0. Original work by Tim Sammut from

https://teamsammut.com/blog/2015/08/tor-vs-vpn-and-proxies-slides.html

16 / 18

Page 58: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

Tor vs. VPN

† VPN Tor Tor BrowserCensorship Evasion ++ +++ +++Appear Elsewhere ++ + +Anonymity + ++ +++Privacy − + +++

Speed ++ −− −−Cost −− +++ +++

†Modified under CC BY-SA 4.0. Original work by Tim Sammut from

https://teamsammut.com/blog/2015/08/tor-vs-vpn-and-proxies-slides.html

16 / 18

Page 59: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

Tor vs. VPN

† VPN Tor Tor BrowserCensorship Evasion ++ +++ +++Appear Elsewhere ++ + +Anonymity + ++ +++Privacy − + +++Speed ++ −− −−

Cost −− +++ +++

†Modified under CC BY-SA 4.0. Original work by Tim Sammut from

https://teamsammut.com/blog/2015/08/tor-vs-vpn-and-proxies-slides.html

16 / 18

Page 60: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

Tor vs. VPN

† VPN Tor Tor BrowserCensorship Evasion ++ +++ +++Appear Elsewhere ++ + +Anonymity + ++ +++Privacy − + +++Speed ++ −− −−Cost −− +++ +++

†Modified under CC BY-SA 4.0. Original work by Tim Sammut from

https://teamsammut.com/blog/2015/08/tor-vs-vpn-and-proxies-slides.html

16 / 18

Page 61: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

Secure Web Browsing: Discussion

EFF Surveillance Self-Defense

https://ssd.eff.org

17 / 18

Page 62: Introduction to Tor Secure Web Browsing and Anonymity …sukhbir/talks/mumbai-tormeetup-2018...I Runs as a daemon and sets up a local SOCKS5 proxy I But there are still application-level

Thank You

Questions?https://www.torproject.org/support/

[email protected]

E4AC D397 5427 A5BA 8450 A1BE B01C 8B00 6DA7 7FAA

18 / 18