Docsity

Anonymity-Advance Computer and network security -Lecture 01 Notes-Computer Science, Study notes of Network security

Toggle sidebar
bg1
An Advance Course in Computer and Network Security
Dr. Dahlia Malkhi
The Hebrew University, Jerusalem
Anonymity
1
Anonymity - Lecture Notes1
Tzachy Reinman
I.D. 032072886
Computer Science and Engineering School
The Hebrew University, Jerusalem
1 These lecture notes are based on the lectures given by Dahlia Malkhi on May 9,23,30, 2002 in the
“Advanced Course in Computer and Network Security”, at the Hebrew University, Jerusalem.
Extensions and additions are based on Web sites and papers that are listed in the bibliography.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23

Partial preview of the text

Download Anonymity-Advance Computer and network security -Lecture 01 Notes-Computer Science and more Study notes Network security in PDF only on Docsity!

Dr. Dahlia Malkhi The Hebrew University, Jerusalem Anonymity

Anonymity - Lecture Notes^1

Tzachy Reinman I.D. 032072886 Email: [email protected]

Computer Science and Engineering School The Hebrew University, Jerusalem

1 These lecture notes are based on the lectures given by Dahlia Malkhi on May 9,23,30, 2002 in the “Advanced Course in Computer and Network Security”, at the Hebrew University, Jerusalem. Extensions and additions are based on Web sites and papers that are listed in the bibliography.

Dr. Dahlia Malkhi

The Hebrew University, Jerusalem Anonymity

  • Content Content
  • Introduction....................................................................................
    • What is Anonymity?
    • Motivation
  • Dining Cryptographers (DC)..........................................................
    • Definition
    • Explanation
    • Extensions
    • Practical Considerations ...................................................................................
    • Drawbacks ..........................................................................................................
    • DC Networks ......................................................................................................
  • Anonymizer
  • Chaum Mixes................................................................................
    • Definition .............................................................................................................
    • How it works .......................................................................................................
    • “Cascade of Mixes” or Chain of Mixes ............................................................
    • Reply (“Return Address”) .................................................................................
    • Drawbacks ..........................................................................................................
    • Comparison between Mix -net and DC-net ......................................................
  • Onion Routing
    • Definition .............................................................................................................
    • How it works .......................................................................................................
    • Practical considerations and information ........................................................
    • Attacks that Onion Routing is vulnerable to ...................................................
    • Comparison between Onion Routing and Mixes ............................................
  • Crowds..........................................................................................
    • Definition .............................................................................................................
    • How it works .......................................................................................................
    • Security analysis .................................................................................................
    • Encryption ..........................................................................................................
    • Static vs. dynamic paths ....................................................................................
    • Timing attacks ....................................................................................................
    • Scale .....................................................................................................................
    • Drawbacks ..........................................................................................................
    • Vision ...................................................................................................................
    • Comparison between Crowds and Other Protocols .......................................
  • Degradation of Anonymity Methods – The Predecessor Attack...
  • Questions and Answers.................................................................
  • References.....................................................................................

Dr. Dahlia Malkhi The Hebrew University, Jerusalem Anonymity

It can be easily seen that the site that accepts that request knows (without doing anything) the referrer (i.e. the previous site). This is neither privacy nor anonymity! Suppose numerous sites link to doubleclick.com. Due to Referrer field, doubleclick may capture your whole click-stream!

The adversary There are many kinds of adversaries: ß The receiver or the target-site ß End servers, other users ß Eavesdroppers o Global – e.g. ISP, backbone administrator o Partial – e.g. in a cable Internet system, all the users use the same channel and can get everyone’s messages (encrypted), so an eavesdropper can perform a traffic analysis of another user. o Local – e.g. system administrator ß Active attackers – an individual or a group, local or global, that can cause worse damage tha n just listening.

Anonymity in the network is relevant to: ß Electronic voting ß E-commerce – The efficiencies of the public Internet are strong motivation for companies to use it instead of private intranets. However, these companies may want to protect their interests. The existence of inter -company collaboration may be confidential. Private

You

Site A

Site B

doubleclick.com

“…referrer: site A…” “…referrer: site B…”

Dr. Dahlia Malkhi The Hebrew University, Jerusalem Anonymity people are also interested in anonymous e-commerce. A person shopping on the Web may not want his visits tracked. ß Sending anonymous messages or distributing anonymous co ntent ß Other data communications (E-mail, Web browsing, Chatting) – Avoiding traffic analysis^3 ß Hiding the existence of a VPN (Virtual Private Network) between two or more participants ß Remote Login ß Interest group º Examples are: Private health concerns - a person who is an AIDS carrier (and therefore accesses relevant data bases) is interested that this will remain unknown; Support groups of victims of crimes (rape, violence, etc.). ß PIR – private information retrieval. For example, a researcher using the World Wide Web to access a patents database may expect his particular focus to remain private. ß Privacy of the communication patterns (defected by cookies)

Types of anonymity protection ß Sender anonymity – the receiver (and others) cannot know who sends the message. ß Receiver anonymity – servers in the message path cannot know to whom the message is designated. ß Unlinkabiliity of sender and receiver. Linkability is the possibility to link between different actions in the Internet. For example, if a specific IP address appears in several transactions, then it can be concluded that there is a connection between those transactions. ß Publisher anonymity (broadcast).

3 Traffic analysis can be used to infer who is talking to whom over a public network. For example, in a packet switched network, packets have a header used for routing, and a payload that carries the data. The header, which must be visible to the network (and to observers of the network), reveals the source and destination of the packet. Even if the header were obscured in some way, the packet could still be tracked as it moves through the network. Encrypting the payload is similarly ineffective, because the goal of traffic analysis is to identify who is talking to whom and not (to identify directly) the content of that conversation.

Dr. Dahlia Malkhi The Hebrew University, Jerusalem Anonymity

Dining Cryptographers (DC)

Definition The Dining Cryptographers problem and its solution were first introduced by Chaum [2]: “Three cryptographers are sitting down to dinner at their favorite three-star restaurant. Their waiter informs them that arrangements have been made with the maitre d'hotel for the bill to be paid anonymously. One of the cryptographers might be paying for the dinner, or it may be the NSA (U.S. National Security Agency). The three cryptographers respect each other's right to make an anonymous payment, but they wonder if NSA is paying.”

We phrase the above in the following way: Given three cryptographers A, B, and C, we want to enable one of them to transmit a bit ‘1’, such that all of them get it, but no one knows who sends it.

To resolve the problem we carry out the following protocol: We arrange the cryptographers on a circle. Each cryptographer has a two-side coin that only he and the cryptographer in his right can see. They flip the coins. Each cryptographer calculates the XOR of his coin and the coin of his left. The cryptographer who wishes to transmit the bit, actually broadcasts to all (1 minus the XOR), the others broadcast their XOR. If an odd number of 1s were distributed, than a bit ’1’ was transmitted. For example: A’s coin is 1, B’s coin is 1, C’s coin is 0 (so A sees his coin and B’s coin, etc.). A wants to transmit ‘1’. So A broadcasts 1 - XOR(1,1)=1 – 0 = 1, B broadcasts XOR(1,0) = 1, C broadcasts XOR(0,1) = 1. Three 1s were distributed, i.e. a bit ’1’ was transmitted.

Ex planation

  1. Correctness – why an odd number of 1s indicates that a bit ’1’ was transmitted: The total sum of the distributed bits if there is no transmission is: XOR (A, B) + XOR (B, C) + XOR (C, A).

Dr. Dahlia Malkhi The Hebrew University, Jerusalem Anonymity A B C XOR (A, B) XOR (B, C) XOR(C, A) Sum of XORs 1 1 1 0 0 0 0 1 1 0 0 1 1 2 1 0 1 1 1 0 2 1 0 0 1 0 1 2 0 1 1 1 0 1 2 0 1 0 1 1 0 2 0 0 1 0 1 1 2 0 0 0 0 0 0 2

It can be easily seen that the sum is always even. If one of the XORs is replaced with its converse (i.e. 1 - XOR), the sum is odd.

  1. Anonymity - A knows he is the transmitter (he distributed 1 - XOR), B and C don’t knows who is the transmitter: B knows that A distributed 1 and C distributed 1, he also knows that his coin is 1, and that C’s coin is 0, but he doesn’t know what is A’s coin, so he can’t know whether A’s coin is 1 and A is the transmitter (because the XOR of A’s and B’s coins is 0 and A distributed 1) or A’s coin is 0 and C is the transmitter (because the XOR of C’s and A’s coins is 0 and C distributed 1). The same argument goes for C.

Extensions

  1. For sending messages longer than one bit, say n bits, we perform the protocol in rounds (say one round per milli-second), i.e. each round performs the protocol for one bit. In other words, each participant should have n coins or n coin-flips.
  2. When more than one participant may try to transmit at the same time there is a collision. Collisions are detected by the transmitters themselves, when two participants try to transmit together – the result is an even number of 1s. If all three try to transmit together – it wouldn’t be detected. In case of a collision, a simple solution is to wait randomly and retry.
  3. We can extend the number of participants from 3 to k. Each pair shares a secret bit. To transmit ‘0’ a cryptographer broadcasts the sum of his

Dr. Dahlia Malkhi The Hebrew University, Jerusalem Anonymity

A collusion of 4,5 partitions the graph into two subgraphs: {1,2,3,6,7,8} and {a,b,c,d,e,f}. The collusion can know whether the message origined in {1,2,3,6,7,8} or in {a,b,c,d,e,f} (4,5 know that they are not the origin of the message). If 1 is also in the the collusion, the subgraph {1,2,3,6,7,8} is partitioned to {2,3} and {7,8}. That is because {4,5} is a cut-set of the whole graph, and {1} is a cut -set of {1,2,3,6,7,8}.

Practical Considerations

  1. Establishing Keys: For long messages there is a need to provide long keys (i.e. chain of bits). One way to do this is for one member of each pair to toss many coins in advance, or – in other words - to generate a sufficient number of bits by a RNG (random number generator) and burn it on a CD. A second way is to establish a short key and expand it as needed. A third way is to use a Diffie -Helman key exchange [2].
  2. Underlying Communication Techniques: The communication topology is independent of the key-sharing graph.
  3. For efficiency, communication can be made in blocks (i.e. participants have to group bits into blocks, instead of transmitting bit-by-bit). “In high-capacity broadcast systems, such as those based on coaxial cable, surface radio, or satellites, more

efficient use of channel capacity is obtained by grouping a participant's contribution into a block about the size of a single message” [2]. If the block size is one message, contentions protocols may be used: One frame is used to transmit a block. In case of collision, the participant waits a random number of frames and tries to retransmit. If the block size is more than one message, a first block may be used to request a “slot reservation” in a second block. “A simple scheme would be for each anonymous sender to invert one randomly selected bit in the first block for each slot they wish to reserve in the second block. After the result of the first block becomes known, the participant who caused the ith^ 1 bit in the first block sends in the ith^ slot of the second block” [2].

  1. Example Key-Sharing Graphs: In a complete graph m(m - 1)/2 keys are required. Sometimes this number is too large. In a circle -topology graph, each entity alone cannot learn anything, but two collaborators can partition the graph, perhaps

Dr. Dahlia Malkhi The Hebrew University, Jerusalem Anonymity

compromising an entity between them (e.g. if A’s right neighbor is X and A’s left neighbor is Y, so if X and Y collaborate, they can identify A). Even so, in cases where nearby entities are not likely to maliciously collaborate, circle-topology may be used. “If many people wish to participate in an untraceable communication system, hierarchical arrangements may offer further economy of keys. Consider an example in which a representative from each local fully connected subgraph is also a member of the fully connected central subgraph. The nonrepresentative members of a local subgraph provide the sum of their outputs to their representative. Representatives would then add their own contributions before providing the sum to the central subgraph. Only a local subgraph’s representative, or a collusion of representatives from all other local subgraphs, can recognize messages as coming from the local subgraph. A collusion comprising the representative and all but one nonrepresentative member of a local subgraph is needed for messages to be recognized as coming from the remaining member” [2].

Drawbacks

  1. Although malicious participants cannot break the anonymity (unless there is a big - enough collusion), they can block others from transmittin g by DoS (denial of service) attacks. In addition, all participants are required to form a transmission.
  2. For every bit of information sent, three bits of messages have to be passed all the way around the circle.
  3. The last participant to transmit can “read” a message and pass a different message on.

DC Networks The DC problem is the basis of a kind of network that gives absolute sender anonymity for messages, which is called a DC-net or “ Dining Cryptographer’s network”.

In DC-nets , each participant can send messages to all others and none can tell from whom this message is. If a participant wishes to send a message to a speciphic recipient (only), he can encrypt it in a way that only the intended recipient can decrypt. A DC network allows both the sender and the recipient to remain anonymous [5].

Dr. Dahlia Malkhi The Hebrew University, Jerusalem Anonymity

Anonymizer

Anonymizer is an entity that intermediates between senders and receivers, and provides anonymous Web browsing. It removes identifying headers and fields. For example, the Anonymizer will “strip out all references to your e-mail address, computer type, and previous page visited before forwarding your request” [1] Optionally it also encrypts messages. Anonymizer can be implemented by a proxy or a router. If a group of users trust each other, they can choose one of them to be the anonimizer in turns. Anonymizer ’s main disadvantage is that it has access to the sensitive information. If an adversary takes control over the Anonymizer , he breaks the anonymity, and further more, he can control the data transmission. In addition, the traffic between a browser and the Anonymizer is sent in the clear, so it is vulnerable to eavesdropping, and even if it was encrypted, traffic analysis could be used to match incoming data with outgoing data. In addition, it anonymizes only the data stream, not the connection itself. Another disadvantage is that it can add advertisements to pages.

To overcome these disadvantages, we will try to distribute trust in multiple authorities. We will see that in contrast to Anonymizer , which anonymizes only the data stream, there are solutions that hide also the connection.

Anonymize Browser (^) r End Server

Request Request

Reply Reply

Dr. Dahlia Malkhi The Hebrew University, Jerusalem Anonymity

Chaum Mixes

Definition A Mix is a computer that mediates between senders and recipients. It enables anonymous communication by means of cryptography, scrambling the messages, and unifying them (padding to constant size, fixing a constant sending rate by sending dummy messages, etc.). Chaum Mixes support sender anonymity, and protects from traffic analysis.

How it works To asist reading fluency and convenience, this section is ordered as follows: First we introduce a partial solution, which is simpler than the complete solution. Then we

point out the weakness of that solution, and improve it to the complete solution. Suppose there is a Mix M with private-public keys. Consider participants A and B. M fogs all the communication, to protect from traffic analysis, i.e. sends all messages in the same format, length, and sends also dummy messages, such that every permutation of the incoming/outgoing messages looks approximately the same. We use the notation K (X, Y) to denote: attach Y to X and encrypt/decrypt it with the key K. Participant A prepares a message for delivery to participant B by appending a random value to the message, sealing it with the addressee's public key KB , appending B’s address, and then sealing the result with the Mix 's public key KM. A sends KM (KB (message, R 5 ), B’s address) to M. M opens it with his private key, now he knows B’s address, and he sends KB (message, R) to B.

5 R is a random value.

mix

sende senderr sender sender

addresse addressee addressee addressee addressee e

Dr. Dahlia Malkhi The Hebrew University, Jerusalem Anonymity

Reply (“Return Address”) So far we saw how to send an anonymous message. But if the recipient doesn’t know who is the sender, how can he reply? To get a reply, we have to send the address. We send it encrypted, in a way that only the Mix knows to decrypt. Single Mix : The sender A sends a return-address: K 1 (A, S 16 ), KX where KX is a public one-time key chosen for the current occasion only, and S 1 is a key that will also act as a random string for purposes of sealing. A can send this return address to B as part of a message sent by the techniques already described (see the chart below). The following indicates how B uses this untraceable return address to form a response to A: B sends K 1 (A, S 1 ), KX (S 0 , response) to M, and M transforms it to A, S 1 (KX (S 0 , response). This Mix uses the string of bits S 1 that it finds after decrypting the address part K 1 (S 1 , A) as a key to re-encrypt the message part KX (S 0 , response). Only the addressee A can decrypt the resulting output because A created both S 1 and KX.

6 S 1 is a random element that will be used as a key in a later phase.

B, C,^ dest,^ msg^ k (^) C kB kA

C, dest,^ msg^ kC k B

dest, msg (^) kC

Sender (^) Destination

msg

Mix A

Mix C

Mix B

k (^) X = encrypted with public key of Mix X

Dr. Dahlia Malkhi The Hebrew University, Jerusalem Anonymity

The additional key KX assures that the Mix cannot see the content of the reply - message.

KB = B’s public key, K 1 = the mix’s public key

Chain of Mixes: With a cascade of n mixes, the message part is prepared the same as for a single mix,

and the address part is as shown in the following: B sends to the first Mix (‘first’ - from B’s point of view): K 1 (S 1 , K 2 (S 2 , ... , Kn-1 (Sn-1, Kn (Sn, A))...)), KX(S 0 , response)?. The first Mix “peels off” the “external layer” from the address part, adds it as an encryption layer to the response part, and sends to the next Mix : K 2 (S 2 , ..., Kn-1 (Sn-1, Kn (Sn, A ))...), S 1 (KX(S 0 , response))? , and the final result of the remaining n-1 Mixes is: A, Sn (Sn-1 ... S 2 (S 1 (KX(S 0 , response)))...).

Note: 1.At each link in the chain the message is being encrypted with some random value Si. 2.We assume that there are no more than n-1 malicious Mixes in the chain.

Drawbacks

  1. Chaum Mixes requires public-key cryptography, which is computationally

expensive and slow for synchronous communication.

  1. It is vulnerable to collaboration by first and last Mixes in the chain (timing attacks).
  2. There is no sender anonymity from the first Mix or system administrator [4].

mix

(1) K 1 (R 1 , KB(R, message, K 1 (S 1 , A), Kx ), B) (2) KB(R, message, K 1 (S 1 , A), Kx )

A (4) S 1 (Kx(S 0 , response)) (3) K 1 (S 1 , A) , Kx(S 0 , response)

B

Dr. Dahlia Malkhi The Hebrew University, Jerusalem Anonymity

Onion Routing

Definition Onion Routing is a practical real-time bi-directional application-independent Mix - based infrastructure for private communication over a public network. It strongly resists traffic analysis, eavesdropping, and other attacks both by outsiders (e.g. Internet routers) and insiders (Onion Routers themselves). It hides the identities of the communication’s parties and its content. The purpose is not to hide the sender and the receiver identities from each other, but to protect their communication from others. In addition, Onion Routing can remove cookies, but it cannot protect from JavaScript, Java applets, and ActiveX if they are enabled by the browser 7 [6] [10].

How it works Onion Routing works in the following way: The sender makes a connection to an onion router. That onion router builds a chain of onion routers to the receiver. Each onion router in that chain can only identify his immediate onion router neighbors. To send data, the first onion router creates encryption layers for all onion routers in the chain and adds these layers to the data. This is done by means of an onion. “That is, for an onion route of size n, the key for the last router, Kn, is encrypted using the key for the previous router, Kn-1, and so on up to first onion router. This onion is then sent to the first router R 1. Each successive router Ri decrypts the onion, extracts the key seed information Ki , used for decrypting the information to and from the next hop, as well as the address next hop (or in the case of router Rn, 0 to identify the end of the

tunnel)” [10]. After adding the encryption layers to the data, it is sent through the onion routers. Each onion router, when receiving the encrypted packet, removes one encryption layer, so the data arrives decrypted to the receiver. As a consequence of the layering, data appears different at each onion router, so it cannot be tracked and onion routers cannot maliciously collaborate. If the connection is broken, each onion router erases the information about the connection that it had [6] [7] [10].

7 Java applets and ActiveX control embedded in a retrieved web page could connect back to its server directly and reveal the users IP address to that server [9].

Dr. Dahlia Malkhi The Hebrew University, Jerusalem Anonymity

Practical considerations and information Onion Routing uses a public-cryptography for establishing the communication channels and symmetric -cryptography for the communication itself and thus saves costs. Currently, Onion Routing can be used with: HTTP, FTP, SMTP, rlogin, telnet, NNTP, finger, whois, and raw sockets [8]. A prototype of Onion Routing Network already exists, and a lot of statistic reports can be found at [6].

Attacks that Onion Routing is vulnerable to Onion Routing does not prevent traffic confirmation. “If an attacker wants to confirm that two end-points often communicate, and he observes that they each connect to an anonymous connection at roughly the same time”, he can infer that they are indeed communicating [7]. Passive internal attacks are possible if at least two onion routers are compromised [7]. Another attack is internal volume attack. Compromised onion routers can keep track of the amount of communication that has passed over any given anonymous connection. They can then broadcast totals to other compromised onion routers. Similar ities between totals at the same time in different routers are likely to imply that they belong to the same anonymous connection [7].

Comparison between Onion Routing and Mixes Onion Routing differs from Mixes in using an indeterminate number of mixes in an indeterminate order, and in at least two other ways [7] [8]:

  1. Since Onion Routing is expected to be a real-time system, it is more limited in the extent to which they delay traffic at each node (router).
  2. Onion Routers are typically configured to be entry points to the network, “and traffic entering or exiting them may not be visible. This makes it hard to track packets, because they may drop out of the network at any node, and new packets may

be introduced at each node” [7].