Network Security: Anonymity. Tuomas Aura T Network security Aalto University, Nov-Dec 2012

Similar documents
Network Security: Anonymity. Tuomas Aura T Network security Aalto University, Nov-Dec 2010

Network Security: Anonymity. Tuomas Aura T Network security Aalto University, autumn 2015

Network Security: Denial of Service (DoS), Anonymity. Tuomas Aura

0x1A Great Papers in Computer Security

Protocols for Anonymous Communication

CS526: Information security

A SIMPLE INTRODUCTION TO TOR

CS 134 Winter Privacy and Anonymity

ENEE 459-C Computer Security. Security protocols (continued)

ENEE 459-C Computer Security. Security protocols

Anonymity. Assumption: If we know IP address, we know identity

communication Claudia Díaz Katholieke Universiteit Leuven Dept. Electrical Engineering g ESAT/COSIC October 9, 2007 Claudia Diaz (K.U.

Metrics for Security and Performance in Low-Latency Anonymity Systems

Introduction to Traffic Analysis. George Danezis University of Cambridge, Computer Laboratory

Definition. Quantifying Anonymity. Anonymous Communication. How can we calculate how anonymous we are? Who you are from the communicating party

Tor: An Anonymizing Overlay Network for TCP

Network Security: Broadcast and Multicast. Tuomas Aura T Network security Aalto University, Nov-Dec 2011

How Alice and Bob meet if they don t like onions

Network Security: Broadcast and Multicast. Tuomas Aura T Network security Aalto University, Nov-Dec 2010

Untraceable Electronic Mail, Return Addresses, and Digital Pseudonyms. EJ Jung

Anonymous communications: Crowds and Tor

THE SECOND GENERATION ONION ROUTER. Roger Dingledine Nick Mathewson Paul Syverson. -Presented by Arindam Paul

Computer Security. 15. Tor & Anonymous Connectivity. Paul Krzyzanowski. Rutgers University. Spring 2017

The Tor Network. Cryptography 2, Part 2, Lecture 6. Ruben Niederhagen. June 16th, / department of mathematics and computer science

Private Browsing. Computer Security. Is private browsing private? Goal. Tor & The Tor Browser. History. Browsers offer a "private" browsing modes

CS Paul Krzyzanowski

2 ND GENERATION ONION ROUTER

Anonymity C S A D VA N C E D S E C U R I T Y TO P I C S P R E S E N TAT I O N BY: PA N AY I OTO U M A R KO S 4 T H O F A P R I L

CSE 484 / CSE M 584: Computer Security and Privacy. Anonymity Mobile. Autumn Tadayoshi (Yoshi) Kohno

anonymous routing and mix nets (Tor) Yongdae Kim

Anonymity on the Internet. Cunsheng Ding HKUST Hong Kong

Anonymous Communications

Putting the P back in VPN: An Overlay Network to Resist Traffic Analysis

Anonymous communications and systems

Privacy and Anonymity in the Internet

The Loopix Anonymity System

FBI Tor Overview. Andrew Lewman January 17, 2012

Anonymity With Tor. The Onion Router. July 21, Technische Universität München

CE Advanced Network Security Anonymity II

Karaoke. Distributed Private Messaging Immune to Passive Traffic Analysis. David Lazar, Yossi Gilad, Nickolai Zeldovich

Privacy defense on the Internet. Csaba Kiraly

CS6740: Network security

Onion Routing. Varun Pandey Dept. of Computer Science, Virginia Tech. CS 6204, Spring

Anonymity and Privacy

Anonymity. Professor Patrick McDaniel CSE545 - Advanced Network Security Spring CSE545 - Advanced Network Security - Professor McDaniel

CNT Computer and Network Security: Privacy/Anonymity

Analysing Onion Routing Bachelor-Thesis

CS Final Exam

CPSC 467b: Cryptography and Computer Security

Onion Routing. Submitted By, Harikrishnan S Ramji Nagariya Sai Sambhu J

Challenges in building overlay networks: a case study of Tor. Steven Murdoch Principal Research Fellow University College London

Low-Cost Traffic Analysis of Tor

Security Challenges Facing the Future Wireless World (aka.. Alice and Bob in the Wireless Wonderland) Wade Trappe

CSE484 Final Study Guide

Practical Anonymity for the Masses with MorphMix

Anonymity in P2P Systems

Anonymous Communication: DC-nets, Crowds, Onion Routing. Simone Fischer-Hübner PETs PhD course Spring 2012

Anonymous Communication and Internet Freedom

Dissent: Accountable Anonymous Group Communication

CS232. Lecture 21: Anonymous Communications

Anonymous Communication and Internet Freedom

A Case For OneSwarm. Tom Anderson University of Washington.

ANET: An Anonymous Networking Protocol

Port-Scanning Resistance in Tor Anonymity Network. Presented By: Shane Pope Dec 04, 2009

Privacy Enhancing Technologies CSE 701 Fall 2017

CS 494/594 Computer and Network Security

Threat analysis. Tuomas Aura CS-C3130 Information security. Aalto University, autumn 2017

L13. Reviews. Rocky K. C. Chang, April 10, 2015

Achieving Privacy in Mesh Networks

Introduction to Cybersecurity Digital Signatures

Anonymity Tor Overview

Scalable overlay Networks

Anonymity With material from: Dave Levin

BBC Tor Overview. Andrew Lewman March 7, Andrew Lewman () BBC Tor Overview March 7, / 1

Context. Protocols for anonymity. Routing information can reveal who you are! Routing information can reveal who you are!

Outline. Traffic multipliers. DoS against network links. Smurf broadcast ping. Distributed DoS

Introduction to Computer Security

Tor: The Second-Generation Onion Router. Roger Dingledine, Nick Mathewson, Paul Syverson

Tor: Online anonymity, privacy, and security.

What's the buzz about HORNET?

Real-time protocol. Chapter 16: Real-Time Communication Security

Herbivore: An Anonymous Information Sharing System

A Privacy-Aware Service Protocol for Ubiquitous Computing Environments

Host Website from Home Anonymously

Internet Crimes Against Children:

ANONYMOUS CONNECTIONS AND ONION ROUTING

Pluggable Transports Roadmap

Deanonymizing Tor. Colorado Research Institute for Security and Privacy. University of Denver

A Report on Modified Onion Routing and its Proof of Concept

Privacy at the communication layer

Anonymity. Christian Grothoff.

Anonymity. With material from: Dave Levin and Michelle Mazurek

The New Cell-Counting-Based Against Anonymous Proxy

Social Networking for Anonymous Communication Systems: A Survey

Introducing SOR: SSH-based Onion Routing

Crypto Background & Concepts SGX Software Attestation

Defining Anonymity in Networked Communication, version 1

Dissecting Tor Bridges A Security Evaluation of their Private and Public Infrastructures

Understanding, Growing, & Extending Online Anonymity

Online Anonymity & Privacy. Andrew Lewman The Tor Project

Transcription:

Network Security: Anonymity Tuomas Aura T-110.5241 Network security Aalto University, Nov-Dec 2012

Outline 1. Anonymity and privacy 2. High-latency anonymous routing 3. Low-latency anonymous routing Tor 2

Anonymity and privacy 3

Anonymity terminology Identity, identifier Anonymity they don t know who you are Unlinkability they cannot link two events or actions (e.g. messages) with each other Pseudonymity intentionally allow linking of some events to each other E.g. sessions, payment and service access Authentication strong verification of identity Weak identifier not usable for strong authentication but may compromise privacy E.g. nickname, IP address, SSID, service usage profile Authorization verification of access rights Does not always imply authentication (remember SPKI) 4

Anonymity in communications Anonymity towards communication peers Sender anonymity receiver does not know who and where sent the message Receiver anonymity can send a message to a recipient without knowing who and where they are Third-party anonymity an outside observer cannot know who is talking to whom Unobservability an outside observer cannot tell whether communication takes place or not Strength depends on the capabilities of the adversary Anonymity towards access network Access network does not know who is roaming there Relate concept: location privacy 5

Privacy Control over personal information Emphasized in Europe Gathering, disclosure and false representation of facts about one s personal life Right to be left alone Emphasized in America Avoiding interference, control, discrimination, spam, censorship Anonymity is a tool for achieving privacy Blending into the crowd 6

Who is the adversary? Discussion: who could violate your privacy and anonymity? Global attacker, your government e.g. total information awareness, retention of traffic data Servers across the Internet, colluding commercial interests e.g. web cookies, trackers, advertisers Criminals e.g. identity theft Employer People close to you e.g. stalkers, co-workers, neighbors, family members 7

Randomized identifiers Replace permanent identifiers with random pseudonyms, e.g. TMSI in GSM Especially important below the encryption layer Random interface id in IPv6 address [RFC 4941] Random MAC addresses suggested Need to consider weak identifiers (i.e. implicit identifiers), too E.g., IPID, TCP sequence number 8

Strong anonymity? Anonymity and privacy of communications mechanisms are not strong in the same sense as strong encryption or authentication Even the strongest mechanisms have serious weaknesses Need to trust many others to be honest Services operated by volunteers and activists Side-channel attacks Anonymity tends to degrade over time for persistent communication 9

High-latency anonymous routing

Mix (1) A E B E Mix (F,M 1 ) E Mix (H,M 2 ) Mix M 1 M 2 F C E Mix (G,M 3 ) M 3 G E Mix (E,M 4 ) M 4 D H Mix is an anonymity service [Chaum 1981] Attacker sees both sent and received messages but cannot link them to each other sender anonymity, third-party anonymity against a global observer The mix receives encrypted messages (e.g. email), decrypts them, and forwards to recipients 11

Mix (2) A E B E Mix (F,M 1 ) E Mix (H,M 2 ) Mix M 1 M 2 F C E Mix (G,M 3 ) M 3 G E Mix (E,M 4 ) M 4 D H Attacker can see the input and output of the mix Attacker cannot see how messages are shuffled in the mix Anonymity set = all nodes that could have sent (or could be recipients of) a particular message 12

Mix (3) A E B E Mix (F,M 1 ) E Mix (H,M 2 ) Mix M 1 M 2 F C E Mix (G,M 3 ) M 3 G E Mix (E,M 4 ) M 4 D H Two security requirements: Bitwise unlinkability of input and output messages cryptographic property; must resist active attacks Resistance to traffic analysis add delay or inject dummy messages Not just basic encryption! Must resist adaptive chosen-ciphertext attack (NM-CCA2) Replay prevention and integrity check needed at the mix Examples of design mistakes: FIFO order of delivering messages; no freshness check at mix; no random initialization vector for encryption; no padding to hide message length; malleable encryption 13

Mixing in practice Threshold mix wait to receive k messages before delivering Anonymity set size k Pool mix mix always buffers k messages, sends one when it receives one Both strategies add delay high latency Not all senders and receivers are always active In a closed system, injecting cover traffic can fix this (What about the Internet?) Real communication (email, TCP packets) does not comprise single, independent messages but common traffic patterns such as connections Attacker can observe beginning and end of connections Attacker can observe request and response pairs statistical traffic analysis 14

15 Who sends to whom? D C B A E F G H D C B A E F G H D C B A E F G H D C B A E F G H D C B A E F G H D C B A E F G H D C B A E F G H Round 1 Round 2 Round 3 Round 4 Round 5 Round 6 Round 7 D C B A E F G H D C B A E F G H Round 8 Round 9 Threshold mix with threshold 3

Anonymity metrics Size of the anonymity set: k-anonymity Suitable for one round of threshold mixing Problems with k-anonymity: Multiple rounds statistical analysis based on understanding common patterns of communications can reveal who talks to whom, even if k for each individual message is high Pool mix k = Entropy: E = Σ i=1 n (p i log 2 p i ) Measures the amount of missing in information in bits: how much does the attacker not know Can measure entropy of the sender, recipient identity etc. Problems with measuring anonymity: Anonymity of individual messages vs. anonymity in a system Depends on the attacker s capabilities and background information Anonymity usually degrades over time as attacker collects more statistics 16

The mix must be honest Trusting the mix Example: anonymous remailers for email anon.penet.fi 1993 96 Route packets through multiple mixes to avoid single point of failure Attacker must compromise all mixes on the route Compromising almost all mixes may reduce the size of the anonymity set 17

Mix network (1) 18

Mix network (2) Mix network is just a distributed implementation of mix 19

Mix networks Mix cascade all messages from all senders are routed through the same sequence of mixes Good anonymity, poor scalability, poor reliability Free routing each message is routed independently via multiple mixes Other policies between these two extremes But remember that the choice of mixes could be a weak identifier Onion encryption: Alice M1: E M1 (M2,E M2 (M3,E M3 (Bob,M))) M1 M2: E M2 (M3,E M3 (Bob,M)) M2 M3: E M3 (Bob,M) M3 Bob: M Encryption at every layer must provide bitwise unlinkability detect replays and check integrity in free routing, must keep message length constant Re-encryption mix special crypto that keeps the message length constant with multiple layers of encryption 20

Sybil attack Attack against open systems which anyone can join Mixes tend to be run by volunteers Attacker creates a large number of seemingly independent nodes, e.g. 50% off all nodes some routes will go through only attacker s nodes Defence: increase the cost of joining the network: Human verification that each mix is operated by a different person or organization The IP address of each mix must be in a new domain Require good reputation of a measurable kind that takes time and effort to establish Select mixes in a route to be at diverse locations Sybil attacks are a danger to most P2P systems, not just anonymous routing E.g. reputation systems, content distribution 21

(n-1) attack Other attacks Attacker blocks all but one honest sender, floods all mixes with its own messages, and finally allows one honest sender to get though easy to trace because all other packets are the attacker s Potential solutions: access control and rate limiting for senders, dummy traffic injection, attack detection Statistical attacks Attacker may accumulate statistics about the communication over time and reconstruct the senderreceiver pairs based on its knowledge of common traffic patterns 22

Receiver anonymity Alice distributes a reply onion: E M3 (M2,k3,E M2 (M1,k2,E M1 (Alice,k1,E Alice (K)))) Messages from Bob to Alice: Bob M3: E M3 (M2,k3,E M2 (M1,k2,E M1 (Alice,k1,E Alice (K)))), M M3 M2: E M2 (M1,k2,E M1 (Alice,k1,E Alice (K))), E k3 (M) M2 M1: E M1 (Alice,k1,E Alice (K)), E k2 (E k3 (M)) M1 Alice: E Alice (K), E k1 (E k2 (E k3 (M))) Alice can be memoryless: ki = h(k, i) 23

24 Low-latency anonymous routing

Tor 2nd generation onion router Mix networks are ok for email but too slow for interactive use like web browsing New compromise between efficiency and anonymity: No mixing at the onion routers All packets in a session, in both directions, go through the same routers Short route, always three onion routers Tunnels based on symmetric cryptography No cover traffic Protects against local observers at any part of the path, but vulnerable to a global attacker More realistic attacker model: can control some nodes, can sniff some links, not everything SOCKS interface at clients works for any TCP connection 25

Tunnels in Tor [Danezis] Alice OR 1 OR 2 OR 3 Bob Authenticated DH Alice OR 1 K 1 Encrypted with K 1 K 1 Authenticated DH, Alice OR 2 Alice not authenticated, only the ORs K 1,K 2 K 2 Encrypted with K 1, K 2 Authenticated DH, Alice OR 3 K 1,K 2,K 3 K 3 Encrypted with K 1, K 2, K 3 TCP connection Alice Bob Last link unencrypted 26

Tunnels in Tor [Danezis] Alice OR 1 OR 2 OR 3 Bob Authenticated DH Alice OR 1 K 1 K 1 Alice not authenticated, only the ORs Encrypted with K 1 Authenticated DH, Alice OR 2 K 1,K 2 K 2 Encrypted with K 1, K 2 Authenticated DH, Alice OR 3 K 1,K 2,K 3 Encrypted with K 1, K 2, K 3 K 3 Additionally, linkwise TLS connections: Alice OR 1 OR 2 OR 3 TCP connection Alice Bob Last link unencrypted 27

Tor limitations (1) Identifying packet streams is very easy Passive fingerprinting by packet size, timing Active traffic shaping (stream watermarking) Anonymity compromised if attacker can see or control the first and last link Long routes don t help if the attacker owns the first and last OR If c is the fraction of compromised ORs, probability of compromise is c 2 Why three routers, not two? Out of habit? Attacker in control of first or last router cannot immediately go and compromise the other one when there is a middle router 28

Tor limitations (2) Client must know the addresses and public keys of all onion routers If client only knows a small subset of routers, it will always choose all three routers from this subset implicit identifier E.g. client knows 10 out of 1000 routers = 1% Attacker in control of the last router can narrow down the client identity to (0.01) 2 = 0.01% of all clients Attacker in control of two last routers can narrow the client identity down to (0.01) 3 = 0.0001% of all clients Blacklisting of entry or exit nodes 29

Freenet Freenet is a DHT-based P2P content distribution system Focus on sensorship resistant publishing Plausible deniability for content publishers and redistributors Node itself cannot determine what content it stores 30

Applications of anonymous routing Censorship resistance, freedom or speech Protection against discrimination, e.g. geographic access control or price differentiation Business intelligence, police investigation, political and military intelligence Whistle blowing, crime reporting Electronic voting Cyber war, crime, illegal and immoral activities? 31

Exercises Compare k-anonymity for senders in threshold mix and pool mix What can a malicious Tor exit node achieve? Compare how the following affect anonymity level in Tor and highlatency email mixes: Percentage of compromised mixes Number of mixes in the route Choosing a new random route periodically Is it possible to provide anonymity to honest users without helping criminals? Learn about the latest attacks against Tor. New ones are published regularly. Why is this the case? Is Tor use unobservable? That is, can it be used safely in a country or workplace where its use may be punished? Could malware or other software on your computer leak information about which web sites you access with Tor (or to whom you send email through a mix network)? 32