- Research
- Open access
- Published:
Anonymous gateway-oriented password-based authenticated key exchange based on RSA
EURASIP Journal on Wireless Communications and Networking volume 2011, Article number: 162 (2011)
Abstract
A gateway-oriented password-based authenticated key exchange (GPAKE) is a three-party protocol, which allows a client and a gateway to establish a common session key with the help of an authentication server. To date, most of the published protocols for GPAKE have been based on Diffie-Hellman key exchange. In this article, we present the first GPAKE protocol based on RSA, then prove its security in the random oracle model under the RSA assumption. Furthermore, our protocol can resist both e-residue and undetectable on-line dictionary attacks. Finally, we investigate whether or not a GPAKE protocol can achieve both client anonymity and resistance against undetectable on-line dictionary attacks by a malicious gateway. We provide an affirmative answer by adding client anonymity with respect to the server.
Preprint submitted to EURASIP JWCN October 16, 2011 to our basic protocol.
1. Introduction
1.1. Password-based authenticated key exchange
Password-based authenticated key exchange (PAKE) protocols allow users to securely establish a common key over an insecure open network only using a low-entropy and human-memorable password. Owing to the low entropy of passwords, PAKE protocols are susceptible to so-called dictionary attacks [1]. Dictionary attacks can be classified into three types [1]: on-line, off-line, and undetectable on-line dictionary attacks. In on-line dictionary attacks, an adversary first guesses a password, and tries to verify the password using responses from a server in an on-line manner. On-line password guessing attacks can be easily detected, and thwarted by counting access failures. In off-line dictionary attacks, an adversary tries to determine the correct password without the involvement of the honest parties based on information obtained during previous executions of the protocol. Thus, the attacker can freely guess a password and then check if it is correct without limitation in the number of guesses. The last type is undetectable on-line dictionary at-2 tacks, where a malicious insider tries to verify a password guess in an on-line manner. However, a failed guess cannot be detected by the honest client or the server. The malicious insider participates in the protocol legally and un-detectably many times to get sufficient information of the password. Among these attacks, on-line dictionary attack is unavoidable when low-entropy pass-words are used, the goal of PAKE protocols is to restrict the adversary to on-line dictionary attacks only. In other words, off-line and undetectable on-line dictionary attacks should not be possible in a PAKE protocol.
In 1992, Bellovin and Merritt first presented a family of password protocols known as encrypted key exchange (EKE) protocols [2] which can resist dictionary attacks. They also investigated the feasibility of implementing EKE using three different types of public-key cryptographic techniques: RSA, ElGamal, and Diffie-Hellman key exchange. They found that RSA-based PAKE in their protocol is not secure against e-residue attacks [2, 3], and pointed out that EKE is only suitable for implementation using Diffie-Hellman key exchange. From then on, lots of PAKE protocols based on Diffie-Hellman have been proposed [1, 2, 4–9]. While the approach of designing PAKE protocols with RSA is far from maturity and perfection. In 1997, Lucks presented a scheme called OKE (open key exchange) [10] which is based on RSA. It was later found to be insecure against a variant of e-residue attacks because of MacKenzie et al. [11]. Furthermore, the authors modified OKE and proposed the first secure RSA-based PAKE protocol SNAPI. Since SNAPI protocol required that the RSA public exponent should be a larger prime than RSA modular, it is not practical. Later, Zhang proposed PEKEP and CEKEP protocols [12], which allow using both large and small prime numbers as RSA public exponents. To resist the e-residue attack, PEKEP protocol needs multiple RSA encryptions, and it is not very efficient. In 2007, Park et al. presented another efficient RSA-EPAKE protocol [13] which can resist the e-residue attack based on number-theoretic techniques. Unfortunately, as pointed by Youn et al. [14], RSA-EPAKE is insecure against a separation attack. Though the attack can be easily avoided by limiting the number of failed trials, an adversary can get remarkably much information of the password from single trial. Therefore, the separation attack is still a threatening attack against RSA-EPAKE protocol.
1.2. Related work
In 2005, Abdalla et al. [4] put forward the first gateway-oriented password-based authenticated key exchange (GPAKE) protocol among a client, a gateway, and an authentication server. The client and the server initially share a common password for authentication, but the session key is generated between the client and the gateway via the help of the server. In addition to the usual notion of semantic security of the session key, two additional security goals, namely key privacy with respect to honest-but-curious server and pass-word protection with respect to malicious gateway, are considered to capture dishonest behaviors of the server and the gateway, respectively. In 2006, Byun et al. [8] showed that the GPAKE protocol proposed by Abdalla et al. [4] was vulnerable to an undetectable on-line dictionary attack. A malicious gateway can iteratively guess a password and verify its guess without being detected by the server. They also proposed a countermeasure for the attack by exploiting MAC of keying material sent to the authentication server from the client. In 2008, Shim [15] showed that Byun's countermeasure was still insecure against the same undetectable on-line dictionary attack contrary to the claim in [8] that it was. In addition, Shim also designed its enhanced version (S-GPAKE) using a symmetric encryption algorithm to overcome the attack. Nevertheless, Yoon et al. [16] pointed out that the S-GPAKE protocol was inefficiently and incorrectly designed. Recently, Abdalla et al. [6] presented an anonymous variant of the original GPAKE protocol [4] with similar efficiency. They proposed a new model having stronger security which captured all the security goals in a single security game. The new security model also allowed corruption of the participants. They proved the security of the new protocol in the enhanced security model. However, partially owing to client anonymity, the new protocol is still subjected to undetectable on-line dictionary attacks. It is quite interesting to ask whether there exists a GPAKE protocol which can achieve both client anonymity and resistance against undetectable on-line dictionary attacks.
1.3. Our contribution
In this article, we investigate GPAKE protocol based on RSA. We first propose an efficient RSA-based GPAKE protocol. The new protocol involves three entities. The client and the server share a short password while the client and the gateway, respectively, possess a pair of RSA keys. However, all the RSA public/private keys are selected by the entities rather than distributed by a certificate authentication center, so no public-key infrastructure is needed. To resist e-residue attacks, the client uses the public key e of an 80-bit prime. The proposed protocol can be resistant to e-residue attacks and provably-secure under the RSA assumption in the random oracle model.
To achieve previously mentioned requirements, the authenticators and the final session key in the proposed protocol rely on different random numbers. In this way, the authenticators between the client and the server will leak no information of the password to the gateway, and the session key established between the client and the gateway is private to the server. Furthermore, standard techniques in threshold-based cryptography can also be used to achieve threshold version of the proposed protocol. It is worth pointing out that our protocol does not require public parameters. The client and the server only need to establish a shared password in advance and do not need to establish other common parameters such as generators of a finite cyclic group. This is appealing in environments where clients have insufficient resources to authenticate public parameters.
We also investigate whether or not a GPAKE protocol can achieve both client anonymity and resistance against undetectable on-line dictionary attacks by a malicious gateway. These two requirements seem to contradict each other (it seems that the server needs to know who the user is in order to resist undetectable on-line dictionary attacks). Nevertheless, this can be reconciled by saying that a server learns whether it is interacting with a user that belongs to a defined set of authorized users, but nothing more about which user it is in that set. We provide an affirmative answer to the above question by adding client anonymity to our GPAKE protocol based on RSA.
The remainder of this article is organized as follows. In Section 2, we recall the communication model and some security definitions of GPAKE protocols. In Section 3, we present our protocol and show that the new protocol is provably-secure under the RSA assumption in the random oracle model. We show in Section 4 how to add client anonymity to the basic scheme using symmetric private information retrieval (SPIR) protocols [17]. We conclude this article in Section 5.
2. Security model
In this section, we recall the security model for GPAKE protocols introduced in [4]. We will prove security of our protocol in this model. We refer the reader to [4] for more details.
2.1. Overview
A GPAKE protocol allows a client to establish an authenticated session key with a gateway via the help of an authentication server. The password is shared between the client and the server for authentication. It is assumed that the communication channel between the gateway and the server is authenticated and private, but the channel connecting the client to the gateway is insecure and under the control of an adversary.
The main security goal of the GPAKE protocol is to securely generate a session key between the client and the gateway without leaking information about the password to the gateway. To achieve this goal, Abdalla et al. [4] defined three security notions to capture dishonest behaviors of the client, the authentication server, and the gateway, respectively. The first one is semantic security of the session key, which is modeled by a Real-Or-Random (ROR) game; the second one is key privacy with respect to the server, which entails that the session key established between the client and the gateway is unknown to the passive server; and the last one is server password protection against a malicious gateway, which means that the gateway cannot learn any information about the client's password from the authentication server.
Protocol participants
The participants in a gateway-oriented password-based key exchange are the client , the gateway , and the authentication server . We denote by the set of all the participants (i.e., ) and by U a non-specific participant in .
Long-lived keys
Each client holds a password pw c . Each server holds a vector of passwords with an entry for each client. pw c and pw s are also called the long-lived keys of client C and server S, respectively.
2.2. Security Model
The security model we adopted here is the ROR model of Abdalla et al. [5]. The adversary's capabilities are modeled through queries. During the execution, the adversary may create several concurrent instances of a participant. Let Uidenote the instance i of a participant U. The list of oracles available to the adversary is as follows:
-
Execute(Ci,Gj): This query models passive eavesdropping of a protocol execution between a client instance Ciand a gateway instance Gj. At the end of the execution, a transcript is given to the adversary, which logs everything an adversary could see during the execution.
-
Send(Ui,m): This query models an active attack against the client or gateway instance Ui, in which the adversary may intercept a message and then modify it, create a new one, or simply forward it to the intended recipient. Instance Uiexecutes as specified by the protocol and sends back its response to the adversary.
-
Test(Ui): This query is used to measure the semantic security of the session key of instance Ui, if the latter is defined. If the key is not defined, return the undefined symbol ⊥. Otherwise, return either the session key held by instance Uiif b = 1 or a random key of the same size if b = 0, where b is a hidden bit chosen uniformly at random at the beginning of the experiment defining the semantic security of session keys.
In the ROR model, the adversary can ask Test queries for all the sessions. All the Test queries will be answered using the same random bit b that was chosen at the beginning of the experiment. In other words, the keys returned by the Test oracle are either all real or all random. However, in the random case, the same random key is returned for two partnered instances (see the notion of partnering below). The goal of the adversary is to guess the value of the hidden bit b used to answer Test queries. The adversary is said to be successful if it guesses b correctly.
It should be noted that Reveal oracle exists in the Find-Then-Guess (FTG) model is not available to the adversary in the ROR model. However, since the adversary in FTG model is restricted to asking only a single query to the Test oracle, the ROR security model is actually stronger than the FTG security model. Abdalla et al. demonstrated that proofs of security in the ROR model can be easily translated into proofs of security in the FTG model. For more details, refer to [5].
2.3. Security notions
We give the main definitions in the following. The definition approach of partnering uses session identifications and partner identifications. The session identification is the concatenation of all the messages of the conversation between the client and the gateway instances before the acceptance. Two instances are partnered if they hold the same non-null session identification.
Definition 1. A client instance Ciand a gateway instance Gjare said to be partnered if the following conditions are met: (1) both Ciand Gjaccept; (2) both Ciand Gjshare the same session identification; (3) the partner identification for Ciis Gjand vice versa; (4) no instance other than Ciand Gjaccepts with a partner identification equal to Cior Gj.
The adversary is only allowed to perform tests on fresh instances. Otherwise, it is trivial for the adversary to guess the hidden bit b. The freshness notion captures the intuitive fact that a session key is not trivially known to the adversary.
Definition 2. An instance of a client or a gateway is said to be fresh in the current protocol execution if it has accepted.
Semantic security
Consider an execution of the key exchange protocol by the adversary in which the latter is given access to Execute, Send oracles, as well as to Test oracle calls to fresh instances. The goal of the adversary is to guess the value of the hidden bit b used by the Test oracle. Let Succ denote the event in which the adversary successfully guesses the hidden bit b used by Test oracle.
Definition 3. The advantage of an adversaryin violating the AKE semantic security of the protocolin the ROR sense, when passwords are uniformly drawn from a dictionary, is defined as
The advantage function of the protocol is defined as
where maximum is over allwith time-complexity at most t and using resources at most R (such as the number of oracle queries).
We have the following definition of semantic secure GPAKE protocol, which is the same as in [4].
Definition 4. A GPAKE protocolis said to be semantically secure if the advantageis only negligibly larger than, where n is number of active sessions, and k is a constant.
Note that k = 1 is the best one can hope for since an adversary that simply guesses the password in each of the active sessions has an advantage of .
Key privacy
In GPAKE protocols, the session key between the client and the gateway is established with the help of the server. In order to reduce the amount of trust one puts into the server, we require that the session key should be even indistinguishable to an honest but curious server who knows all the passwords of the clients. The notion of key privacy with respect to the server was first introduced in [5] to capture this security requirement.
To define the notion of key privacy, we consider a server which knows all the passwords of the clients, and behaves in an honest but curious manner. We give the server access to all the oracles, but restricts the server to testing session keys generated by two oracles. To achieve this aim, we use a new type of TestPair oracle which was first introduced in [5]. The TestPair oracle is defined as follows:
-
TestPair(Ci,Gj): If the client instance Ciand the gateway instance Gjdo not share the same key, then return the undefined symbol ⊥. Otherwise, return either the session key established between Ciand Gjif b = 1 or a random key of the same size if b = 0, where b is a hidden bit chosen uniformly at random at the beginning of the experiment defining the key privacy of session keys.
Consider an execution of the key exchange protocol by an adversary with access to all the passwords held by the server as well as to the Execute, Send, and TestPair oracles. Let Succ denote the event in which the adversary is successful in guessing the hidden bit b used by TestPair oracle. The advantage of an adversary in violating the key privacy of the protocol in the ROR sense () and the advantage function of , when passwords are uniformly drawn from a dictionary , can be defined as in Definition 3.
Definition 5. A GPAKE protocolis said to achieve key privacy if the advantageis negligible.
Server password protection
One of the security goals of GPAKE protocol is to prevent the gateway from learning the client's password that is stored in the server. If the adversary interacts q times with the server, then the probability that it can distinguish the true password from a random one in the dictionary should be only negligibly larger than . However, this does not rule out the possibility of undetectable on-line dictionary attacks by a malicious gateway. A malicious gateway can iteratively guess a password and verify its guess until it finds the correct password. To resist such attacks, we consider a malicious gateway who guesses a password and verifies its guess by interacting with the server. If a failed guess will not be detected by the server, then we say the malicious gateway is successful. Let denotes the success probability of the gateway.
Definition 6. A GPAKE protocolcan resist undetectable on-line dictionary attacks ifis negligibly larger than, where n is number of active sessions, and k is a constant.
3. Our GPAKE protocol based on RSA
In this section, we describe our GPAKE protocol based on RSA, and present its security results.
3.1. Description
Define hash functions H1,H2, H3 : {0,1}* → {0, 1}k, and H : {0,1}* → Z n , where k is a security parameter, e.g., k = 160. We assume that H1,H2,H3, and H are independent random functions in the following.
The protocol runs among a client, a gateway, and an authentication server. Its description is given in Figure 1. The client and the authentication server initially share a lightweight string pw, the password, uniformly drawn from the dictionary . The client has generated a pair of RSA keys n, e, and d, where n is a large positive integer equal to the product of two primes of the same size, e is an 80-bit prime relatively prime to ϕ(n), and d is a positive integer such that ed ≡ 1 mod ϕ(n). The gateway also has generated a pair of RSA keys n',e', and d', where n' is a large positive integer equal to the product of two primes of the same size, e' is a positive integer relatively prime to ϕ(n'), and d' is a positive integer such that e'd' ≡ 1 mod ϕ(n'). The channel connecting the gateway to the authentication server is assumed to be authenticated and private. The protocol proceeds as follows:
-
1.
The client C sends her public key (n, e) and a random number r 1 ∈ {0, 1}kto the gateway G, and G just forwards the message and her RSA public key (n', e') to the authentication server.
-
2.
The authentication server S verifies if e is an 80-bit prime, and n is an odd integer. S may also verify that the integer n is large enough, e.g., n > 21023. If e is not an 80-bit prime or n is not an odd integer, S rejects; otherwise, S selects three random numbers , and r 2 ∈ {0, 1}k. S then computes mod n and mod n, S also computes w = H (pw, x 2, C, G, n, e, n', e', r 1,r 2,y 2) and checks whether gcd (w, n) = 1. If gcd (w, n) = 1, S computes z = y 1 · w mod n and sends (r 2,z, y 2) to the gateway. Upon receiving (r 2,z, y 2), G sends (n', e', r 2,z, y 2) to C.
-
3.
Upon receiving (n', e', r 2, z, y 2) from G, C verifies if n' is an odd integer and n' is large enough, e.g., n' > 21023. C selects a random number . C then decrypts mod n, computes w using her password pw and x 2, then checks if w and n are relatively prime. If gcd (w, n) = 1, C decrypts x 1 = (w -1 · z)dmod n, computes mod n'. Finally, C computes μ = H 1(x 1,C, G, n, e, n', e', r 1,r 2, y 2,z, c 1) and sends (c 1,μ) to G. Upon receiving (c 1,μ), G selects a random number , computes mod n, sends (c 1,c 2, μ) to S.
-
4.
S checks whether μ is valid or not. If μ is valid, S computes her authenticator η = H 2(x 1, C, G, n, e, n', e', r 1, r 2,y 2, z, c 1, c 2). Finally, S sends η to G.
-
5.
Upon receiving η, G decrypts mod n', sets the session key sk = H 3(b 1, b 2, ID), where ID is the concatenation of all the exchanged messages. G sends η and c 2 to C.
-
6.
C checks whether η is valid or not. If valid, C decrypts mod n and sets the session key to be sk = H 3(b 1, b 2, ID), where ID is the concatenation of all the exchanged messages.
In RSA-based protocols, security against e-residue attacks [3] has to be considered. To void such an e-residue attack, we adopt the approach of [18] and require the public key of the client is an 80-bit prime. However, [18] is basically a two-factor protocol, and their main concern is security against replacement attacks. Hence, in this context, we still briefly prove the security against e-residue attacks of our protocol. Suppose the adversary generates the RSA parameter (n,e), where e is an 80-bit prime and gcd (e, ϕ(n)) = e. Upon receiving (n, e), the authentication server S randomly chooses , computes mod n and mod n, then S calculates w using the password pw and x2. Finally, S sends (r2, z, y2) back to the adversary, where z = y1 · w mod n. To mount an e-residue attack, first of all, the adversary should correctly find out the committed value x2. Since mod n, which is equivalent to e·ind g x2 ≡ ind g y2 mod ϕ(n). The congruence has exactly e solutions because gcd (e, ϕ(n)) = e and e|ind g y2. The success probability that the adversary correctly find out the committed value is 1/e, which is negligible since e is an 80-bit prime.
Remark 1 To resist e-residue attacks, we require that the client use the public key e of an 80-bit prime, the server needs to test the primality for the 80-bit prime. However, there is no restriction on the gateway's public key e'. This is because the gateway's public key is only used to establish the session key and has nothing to do with the password.
Remark 2 In case of n > 21023, the computational load for generating an 80-bit prime is less than for a single RSA decryption, and the computational load for the primality test of an 80-bit prime is less than for a single RSA encryption with an 80-bit exponent. Hence, our protocol is quite efficient in computation cost. Furthermore, if we exclude perfect forward secrecy from consideration, we need not to generate them in each session, this further improves the efficiency of our protocol.
3.2. Security
In this section, we prove the security of our protocol within the formal model of security given in Section 2. In our analysis, we assume the intractability of the RSA problem.
RSA assumption [13]
Let l be the security parameter of RSA. Let key generator GE define a family of RSA functions, i.e., (e, d, n) ← GE (1l), where n is the product of two primes of the same size, gcd (e, ϕ (n)) = 1, and ed = 1 mod ϕ (n). For any probabilistic polynomial-time algorithm in running time t, the following probability
is negligible. In the following, we use Advrsa(t) to denote , where the maximum is taken over all the polynomial-time algorithms of running time t.
Semantic security
As the following theorem states, our protocol is a secure gateway-oriented password-based key exchange protocol as long as the RSA problem is intractable. The proof of security assumes to be a uniformly distributed dictionary and of size smaller than 2k. The proof of Theorem 3.1 can be found in Appendix A.
Theorem 3.1. Letbe an adversary which runs in time t and makes Q send , Q send ≤ |D|, queries of type Send to different instances. Then, the adversary's advantage in attacking the semantic security of the proposed protocol is bounded by
where Q execute denotes the number of queries of type Execute, and Q oh denotes the number of random oracle calls.
Key privacy
As the following theorem shows, our protocol achieves the goal of key privacy as long as the RSA problem is intractable.
Theorem 3.2. Let be an adversary which runs in time t and makes Q execute queries of type Execute to different instances. Then, the adversary's advantage in attacking the key privacy of the proposed protocol is bounded by
The proof of Theorem 3.2 is similar to the proof of Lemma A.1 in Appendix A. The only difference is that in this case the adversary knows the passwords of all the clients. However, this only brings negligible advantage to the adversary since the authenticators and the session keys rely on different random numbers. In order to distinguish the session key from random numbers chosen from {0, 1}k, the adversary still needs to break RSA. We omit the proof of Theorem 3.2 for simplicity.
Server password protection
As is shown by the following theorem, a malicious gateway cannot do much better than eliminating one password from the list of possible candidates with each interaction with the server. As a result, after q interactions with the server, the advantage of a malicious gateway would be only negligibly larger than . Furthermore, a failed guess of the malicious gateway will be detected by the authentication server. A malicious gateway cannot iteratively guess a password and verify its guess without being detected. Hence, our protocol can resist undetectable on-line dictionary attacks. The proof of Theorem 3.3 can be found in Appendix B.
Theorem 3.3. Letbe a malicious gateway which runs in time t and makes Q send queries of type Send to server instances. Then, the advantage of the malicious gateway in violating the resistance to undetectable on-line dictionary attacks of the proposed protocol is bounded by
4. Adding client anonymity
Anonymity is one of the most important security goals of protocols on public networks. Many of the privacy problems that arise out of Internet use can be solved using anonymous Internet connections such that a client's actions are unlinkable. Implementing anonymity of clients not only protects their personal information but also reduces the chances of attacks based on impersonation. In this section, we show how to add client anonymity to our protocol.
The basic idea is same as Abdalla et al.'s [6]. We assume that there are many gateways, but the authentication server is unique. In order to add client anonymity, we try to hide the client identity to the authentication server using SPIR [17] protocols. An SPIR protocol allows a client to retrieve an item from a server in possession of a database without revealing which item they are retrieving, and it also allows for the restricting of the number of items a given client may retrieve. When the gateway receives an authorization request from a client, the gateway can run an SPIR protocol with the authentication server, such that the server does not know the real identity of the client and the gateway only gets the answer to the actual client. More precisely, the authentication server can be seen as a dynamic database. For each authorization request, the authentication server computes the answers for all the possible clients, and the gateway retrieves the one it is interested in. At the end of the SPIR protocol, the authentication server does not know which answer the gateway gets and the gateway will not get more than the number of the values it is allowed to retrieve.
Our RSA-based GPAKE can be efficiently implemented with any good SPIR protocol. Specifically, we assume that each client owns a password indexed by i, and the server manages a database of size N, which contains all the passwords for each client. In order to introduce anonymity to the protocol in Section 3, we do as follows: upon receiving of a Send-query with input (C j , n, e, r1), the gateway conceals the real identity of the client and sends (n, e, n', e', r1) to the server. Upon receiving (n, e, n', e', r1), the server dynamically generates a database by computing the answers for each message (C i , n, e, n', e', r1), and thus for all the possible clients C i , since it does not know which one is interacting with the gateway. More precisely, the server chooses , and for each C i , the server also chooses , computes mod n and mod n. The dynamic database consists of all the blocks Bi = (r2, z i , y2i), where z i = y1 · wi mod n and w i = H (pw i , x2i, C i ,G, n, e, n', e', r1, r2, y2i). Then, the gateway runs the SPIR protocol to get the correct B j , while preserving the anonymity of the client. The remains are the same as the proposed GPAKE protocol except that the values μ and η are computed as H1(x1, G, n, e, n', e', r1, r2) and H2(x1,G, n, e, n', e', r1, r2, c1, c2), respectively.
It is worth pointing out that achieving client anonymity, our protocol still can resist the undetectable on-line dictionary attack in the sense that a failed guess of the malicious gateway will be detected by the server. To impersonate a client successfully, the malicious gateway needs recover y1 using the guessed password of the victim client and then obtains x1 by decrypting y1. If the guessed password is not correct, then the value μ is not valid and the server will detect the attack, and then some measures should be taken to protect the passwords of the clients.
5. Conclusion
In this article, we investigate the design of RSA-based GPAKE protocols. First, we develop a new GPAKE protocol using RSA public-key cryptosystem. The proposed protocol is secure against e-residue attacks. Then, we provide a formal security analysis of our protocol under the RSA assumption and the random oracle model. We also show that our protocol is secure against undetectable on-line dictionary attacks. Finally, we investigate whether or not such a protocol can achieve both client anonymity and resistance to undetectable on-line dictionary attacks. We give an affirmative answer by adding client anonymity to our basic protocol.
Appendix A. Proof of Theorem 3.1
We prove Theorem 3.1 using similar techniques as described in [19]. We define a series of hybrid experiments. In each experiment, we modify the way session keys are chosen for instances involved in protocol execution. We start by choosing random session keys for instances for which the Execute oracle is called. Then, we continue to choose random session keys for instances for which the Send oracle is called. These instances are gradually changed over five hybrid experiments and in the last experiment, all the session keys are selected uniformly at random. Thus, the adversary cannot distinguish them from random numbers. We denote these hybrid experiments by P0, P1, ..., P4 and by the advantage of when participating in experiment P i .
Experiment P0
This describes the real adversary attack. During the attack, the adversary makes a number of oracle calls (Send, Execute, and Test) as specified in Section 2. In addition, the adversary has access to four independent random oracles
Each random oracle H i (or H) maintains a list of input-output pairs (q0, r0), (q1, r1)···. On a new input q, H i (or H) checks if q was queried before. If there exists q i in the list such that q = q i , then the random oracle returns the corresponding r i as its reply. If q is not in the list, the random oracle chooses a random number r, returns r as its reply and adds the pair (q, r) to its list. It is clear that .
Experiment P1
In this experiment, the Execute oracle is modified so that the session keys of instances for which Execute is called are selected uniformly at random, that is, if the oracle Execute (Ci, Gj) is called, then the session key sk is set equal to a random number selected from {0, 1}k, rather than the output of the random oracle H3. The following lemma shows that modifying the Execute oracle in this way affects the advantage of by a negligible value.
Lemma Appendix A.1
For every polynomial-time adversarymaking Q execute oracle calls of type Execute,
where Q oh denotes the number of random oracle calls, and t is the running time of.
Proof. We prove this lemma by showing how any advantage that has in distinguishing P1 from P0 can be used to break RSA. In experiment P0, the session key is the output of the random oracle H3 on the input (b1, b2, ID), where ID is the concatenation of all the exchanged messages. If the adversary does not know b1 and b2, she cannot distinguish the output of H3 from a random number uniformly selected from {0, 1}k. Hence, the adversary can distinguish P1 and P0 if and only if can recover the integers b1 and b2. Let denote the probability that recovers the integer b1 (b2).
For a easier analysis, we let the adversary win if the adversary recovers the integer b2. To bound , we consider the following two games G1 and G2.
Game G1
The adversary carries out an honest execution between the instances Ciand Gjas the protocol description. When the game ends, the adversary outputs her guess of the integer b2.
Game G2
This game is similar to game G1 except that we use private oracles when we compute w, μ, and η.
Let denote the probability that makes a correct guess of b2 in game G1. Likewise, denote the probability that makes a correct guess of b2 in game G2. It is clear that . Let AskH denote the event that queries random oracle H on (pw, x2, C, G, n, e, n', e', r1, r2, y2). Let AskH1,2 denote the event that queries random oracle H1 on (x1, C, G, n, e, n', e', r1, r2, y2,z, c1) or H2 on (x1, C, G, n, e, n', e', r1, r2, y2, z, c1, c2), while AskH does not happen.
Then, we have
Let Q oh denote the number of random oracle calls to H1 and H2 by In the following, we bound the probabilities of events AskH and AskH1,2, and also show that .
Given RSA public key (n, e) and integer c ∈ R Z n , we construct an efficient algorithm to decrypt c as follows: algorithm runs the adversary exactly as in game G2 except that when simulate the authentication server, first chooses two random numbers x, , computes y2 = xe· c mod n, and set z to be z = x'e· c · w mod n, where w is uniformly chosen from . Finally, when simulate the gateway, set c2 to be c. If event AskH happens, which means queries random oracle H on (pw, x2, C, G, n, e, n', e', r1, r2, y2), where mod n, then we can decrypt c by x2/x mod n. If event AskH does not happen, then z is a random number from 's view. can select a random number as her guess on x1 and verifies the correctness of x' by comparing μ (or η). Then,
Similarly, if 's output (denoted by b2) in game G2 is correct, then b2 is the decryption of c.
Assume that makes Q execute oracle calls of type Execute in the hybrid experiment P1, then
Before we present the experiments P2, P3, and P4, we describe Send oracles which an active adversary uses.
-
Send0(Ci): the instance Ciselects a pair of RSA public/private keys e, d, n, and a random number r1 ∈ {0, 1}k. It returns C, n, e, and r1 to the adversary .
-
Send1(Gj, C, n, e, r1): the instance Gjselects a pair of RSA public/private keys (e', d', n'), sends (C, n, e, n', e', r1) to the server. Gjobtains (r2, z, y2) as the reply of the server. It returns (n', e', r2, z, y2) to the adversary .
-
Send2(Ci, n', e', r2, z, y2): the instance Civerifies if n' is big enough, i.e., n' > 1023. Then, Ciselects a random number , and decrypts mod n, then computes w using her password pw and x2, checks if w and n are relatively prime. If gcd (w, n) = 1, Cidecrypts x1 = (w-1·z)dmod n, computes mod n'. Finally, Cicomputes μ = H1(x1, C, G, n, e, n', e', r1, r2, y2, z, c1) and returns (c1, μ) to the adversary .
-
Send3(Gj,c1,μ): the instance Gjselects a random number , computes mod n, sends (c1,c2,μ) to S. Gjobtains η as the reply of the server. It decrypts mod n', sets the session key sk = H3(b1, b2, ID), where ID is the concatenation of all the exchanged messages. It returns η and c2 to the adversary .
-
Send4(Ci, η, c2): the instance Cichecks whether η is valid or not. If η is invalid, it rejects. Otherwise, it decrypts mod n, and computes sk = H3(b1, b2, ID), where ID is the concatenation of all the exchanged messages.
A message is said to have been oracle-generated if it was output by an instance; otherwise, it is said to have been adversarially-generated. A message generated by instance Uiis said to have been Ui-oracle-generated.
Experiment P2
In this experiment, an instance Gjreceives a Ci-oracle-generated message (C, n, e, r1) in a Send1 oracle call. If both Ciand Gjaccept, they are given the same random session keys sk ∈ {0, 1}k, and if Gjaccepts but Cidoes not accept, then only Gjreceives a random session key, and no session key is defined for Ci.
Lemma Appendix A.2
For every polynomial-time adversarymaking Q send oracle calls of type Send to different instances,
where t is the running time of.
Proof. Assume that Gjreturns (G, n', e', r2, z, y2) to the adversary according to the description of the protocol after receiving a Ci-oracle-generated message (C, n, e, r1) in a Send1 oracle call. Since the RSA public key (e, n) was generated by Ci, not by , the private key d is not known to . As shown in the proof of Lemma A.1, the probability for to recover the random number x1 is upper bounded by Advrsa(O (t)). Hence, except for a probability as small as Advrsa(O (t)), Gjhas received a Ci-oracle-generated message in a Send3 oracle when Gjaccepts. Similarly, if Ciaccepts, then it has received a Gj-oracle-generated message in a Send4 oracle call. If both Ciand Gjaccept, then they share the same session key which is equal to the output of the random oracle H3 on (b1, b2, ID), where ID is the concatenation of all the exchanged messages. Hence, the modification of the session keys of Ciand Gjaffects the adversary's advantage by a value as small as Advrsa(O (t)). Since makes Q send oracle calls of type Send to different instances, 's advantage in distinguishing between P2 and P1 is upper bounded by Q send Advrsa(O(t)).
Experiment P3
In this experiment, an instance Cireceives a Gj-oracle-generated message (n', e', r2, z, y2) in a Send2 oracle call, while the instance Gjhas received a Ci-oracle-generated message (C, n, e, r1) in a Send1 oracle call. If both Ciand Gjaccept, then they are given the same random session keys sk ∈ {0, 1}k. It is clear that the advantage of in P3 is the same as its advantage in P2.
Lemma Appendix A.3
For every polynomial-time adversarymaking Q send oracle calls of type Send to different instances,
Experiment P4
In this experiment, we consider an instance Ci(or Gj) that receives an adversarially-generated message in a Send2 (or Send1) oracle call. In this case, if Ci(or Gj) accepts, then the experiment is halted, and the adversary is said to have succeeded. This certainly improves the probability of success of the adversary.
Lemma Appendix A.4
For every polynomial-time adversarymaking Q send oracle calls of type Send to different instances,
At this point, we have given random session keys to all the accepted instances that receive Execute or Send oracle calls. We next proceed to bound the adversary's success probability in P4. The following lemma shows that the adversary's success probability in the experiment P4 is negligible.
Lemma Appendix A.5
For every polynomial-time adversarymaking Q send oracle calls of type Send to different instances, Q send ≤ |D|,
where Q oh denotes the number of random oracle calls, and t is the running time of.
Proof. Let and denote the number of Send1 and Send2 oracle calls made by the adversary in experiment P4, respectively. We consider the following two cases:
Case 1: Consider an instance Cireceives an adversarially-generated message (n', e', r2, z, y2) in a Send2 oracle. Assume that Cireturns (n, e, r1) in a Send0 oracle. After receiving (n', e', r2, z, y2), Cifirst decrypts y2 to obtain x2, then queries the random oracle H on (pw, x2, C, G, n, e, n', e', r1, r2, y2) and receives w from H. Without lose of generality, we assume that gcd (w, n) = 1. Then, Cicomputes x1 = (w-1 · z)dmod n and mod n', where . Ciqueries H1 on (x1, C, G, n, e, n', e', r1, r2, y2, z, c1) and returns the reply (denoted by μ) to the adversary . To succeed in this case, must generate a number η which is equal to the output of the random oracle H2 on (x1, C, G, n, e, n', e', r1, r2, y2, z, c1, c2). Without the knowledge of x1, the probability for to generate η is just 2-k. Let denote the probability that can recover the integer x1. The adversary's success probability in this case is bounded by
If z was selected by at random from , then similar to the proof of Lemma A.1, we can prove that is bounded by
Next, assume that z was generated by as follows: selected two random numbers , as well as a candidate password queries the random oracle H on (pw', x2, C, G, n, e, n', e', r1, r2, y2) and receives the reply w, then computed mod n. In this scenario, if guesses the correct password pw = pw', then succeeds. If guesses an invalid password pw ≠ pw', then z can be treated as a random number in . Hence, we have
The adversary's success probability in Case 1 is upper bounded by
Case 2: Consider an instance Gjreceives an adversarially-generated message (C, n, e, r1) in a Send1 oracle, where n is an odd integer, and e is odd prime. The instance Gjsends (C, n, e, n, e, r1) to the server. The server replies (r2, z) according to the protocol description. To succeed in this case, must send back a number μ which is equal to the output of the random oracle H1 on (x1, C, G, n, e, n', e', r1, r2, z, c1). Without the knowledge of x1, the probability for to generate μ is just 2-k. Let denote the probability that can recover the integer x1.
Note that (n, e) was generated by . If gcd (e, ϕ(n)) = 1, then can compute w = H (pw', x2, C, G, n, e, n', e', r1, r2, y2) using a guessing password pw'. Then, congruence mod n has a unique solution because gcd (e, ϕ(n)) = 1. If guesses the correct password pw = pw', then can obtain x1 correctly. If does not guess the correct password, then will not succeed. On the other hand, if gcd (e, ϕ(n)) ≠ 1, since we require that e is an 80-bit prime, then the congruence mod n has e solutions. In order to recover the correct x1, the adversary needs to find out the correct x2. As is shown in Section 3, the probability to find out the correct x2 is 1/280, which is negligible.
Hence, the adversary's success probability in Case 2 is bounded by
From the above analysis, it can be concluded that the adversary's success probability in experiment P4 is upper bounded by
Since Q send ≤ |D|, we have . Therefore,
This completes the proof of Lemma A.5.
By combining Lemma A.1 to Lemma A.5, we get the announced result.
Appendix B. Proof of Theorem 3.3
Consider a malicious gateway generates a message (C, n, e, n', e', r1). The malicious gateway sends the message to the server. The server replies (r2, z) according to the protocol description. To succeed in this case, the malicious gateway must send back a number μ which is equal to the output of the random oracle H1 on (x1, C, G, n, e, n', e', r1, r2, y2, z, c1). Otherwise, the on-line impersonation attack will be detected by the authentication server. Without the knowledge of x1, the probability for to generate μ is just 2-k.
Let denote the probability that the malicious gateway can recover the integer x1.
Note that (n, e) was generated by . If gcd (e, ϕ(n)) = 1, then can compute w = H (pw', x2, C, G, n, e, n', e', r1, r2, y2) using a guessing password pw'. Then, congruence mod n has a unique solution because gcd (e, ϕ(n)) = 1. If guesses the correct password pw = pw', then can obtain x1 correctly. If does not guess the correct password, then will not succeed. On the other hand, if gcd (e, ϕ(n)) ≠ 1, since we require that e is an 80-bit prime, then the congruence mod n has e solutions. In order to recover the correct x1, the adversary needs to find out the correct x2. As is shown in Section 3, the probability to find out the correct x2 is 1/280, which is negligible.
Hence, the adversary's success probability in violating the resistance to undetectable on-line dictionary attacks is bounded by
References
Ding Y, Horster P: Undetectable on-line password guessing attacks. ACM Oper Syst Rev 1995, 29: 77-86. 10.1145/219282.219298
Bellovin SM, Merritt M: Encrypted key exchange: password-based protocols secure against dictionary attacks. IEEE Symp on Security and Privacy 1992 1992, 72-84.
Patel S: Number theoretic attacks on secure password schemes, in. In Proc IEEE Symposium on Security and Privacy. Oakland, CA; 1997.
Abdalla M, Chevassut O, Fouque PA, Pointcheval D: A simple threshold authenticated key exchange from short secrets. Volume 3788. Springer, Heidelberg; 2005:566-584.
Abdalla M, Fouque P, Pointcheval D: Password-based authenticated key exchange in the three-party setting. Volume 3386. Springer, Heidelberg; 2005:65-84.
Abdalla M, Izabachene M, Pointcheval D: Anonymous and transparent gateway-based password-authenticated key exchange. Volume 5339. Springer, Heidelberg; 2008:133-148.
Abdalla M, Pointcheval D: Interactive Diffie-Hellman assumptions with applications to password-Based Authentication. Volume 3570. Springer, Heidelberg; 2005:341-356.
Byun JW, Lee DH, Lim JI: Security analysis and improvement of a gateway-oriented password-based authenticated key exchange protocol. IEEE Commun Lett 2006, 10(9):683-685. 10.1109/LCOMM.2006.1714545
Bellare M, Pointcheval D, Rogaway P: Authenticated key exchange secure against dictionary attacks. Volume 1807. Springer, Heidelberg; 2000:139-155.
Lucks S: Open key exchange: how to defeat dictionary attacks without encrypting public keys. In Proc of Security Protocol Workshop. Volume 1361. Springer, Heidelberg; 1997:79-90. LNCS
MacKenzie P, Patel S, Swaminathan R: Password-authenticated key exchange based on RSA. Volume 1976. Springer, Heidelberg; 2000:599-613.
Zhang MX: New approaches to password authenticated key exchange based on RSA. Volume 3329. Springer, Heidelberg; 2004:230-244.
Park S, Nam J, Kim S, Won D: Efficient password-authenticated key exchange based on RSA. Volume 4377. Springer, Heidelberg; 2007:309-323.
Youn TY, Park YH, Kim C, Lim J: Weakness in a RSA-based password authenticated key exchange protocol. Inf Process Lett 2008, 108: 339-342. 10.1016/j.ipl.2008.06.002
Shim KA: Cryptanalysis and enhancement of modified gateway-oriented password-based authenticated key exchange protocol. IEICE Trans Fund 2008, E91-A(12):3837-3839. 10.1093/ietfec/e91-a.12.3837
Yoon Ej, Yoo KY: An optimized gateway-oriented password-based authenticated key exchange protocol. IEICE Trans Fund 2010, E93-A(4):850-853. 10.1587/transfun.E93.A.850
Lincoln L: Symmetric private information retrieval via ho-momorphic probabilistic encryption. PhD thesis.2006. [http://www.cs.rit.edu/7Elbl6598/thesis/Lincolnfulldocument.pdf]
Shin S, Kobara K, Imai H: An RSA-based leakage-resilient authenticated key exchange protocol secure against replacement attacks, and its extensions. IEICE Trans Fund 2010, E93-A(6):1086-1101. 10.1587/transfun.E93.A.1086
Zhang MX: New approaches to password authenticated key exchange based on RSA.[http://eprint.iacr.org]
Acknowledgements
The authors would like to thank the anonymous referees for their helpful comments. This study was supported by the National High Technology Research and Development Program of China (No. 2009AA01Z417) and Key Scientific and Technological Project of Henan Province (No. 092101210502).
Author information
Authors and Affiliations
Corresponding author
Additional information
Competing interests
The authors declare that they have no competing interests.
Authors’ original submitted files for images
Below are the links to the authors’ original submitted files for images.
Rights and permissions
Open Access This article is distributed under the terms of the Creative Commons Attribution 2.0 International License (https://creativecommons.org/licenses/by/2.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
About this article
Cite this article
Wei, F., Ma, C. & Cheng, Q. Anonymous gateway-oriented password-based authenticated key exchange based on RSA. J Wireless Com Network 2011, 162 (2011). https://doi.org/10.1186/1687-1499-2011-162
Received:
Accepted:
Published:
DOI: https://doi.org/10.1186/1687-1499-2011-162