AUTHENTICATION PROCESS WITH PASSWORD AND SALT
Patent Information
- Application Number
- DE602017084459
- Authority / Receiving Office
- DE · DE
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2016-06-20
- Filing Date
- 2017-06-16
- Publication Date
- 2024-08-28
- Estimated Expiration
- 2037-06-16
AI Technical Summary
Existing password authentication mechanisms are vulnerable to brute force attacks due to the long lifespan of passwords and the difficulty in changing them frequently, which allows attackers to exploit recovered passwords indefinitely.
A method that introduces variability into the secret used for authentication by combining a password with context information that changes frequently, requiring users to enter a first context information at each authentication, which is used to calculate a current fingerprint, thereby increasing the complexity of exhaustive search attacks and enhancing security without significant memorization efforts.
This method significantly increases the security of password authentication by making exhaustive search attacks more computationally expensive and requires attackers to repeatedly target the user after each authentication, while allowing users to easily remember and update the context information, thus reducing the likelihood of successful password exploitation.
Description
[0001] The present invention is defined by the attached independent claims. Examples of implementation are given in the dependent claims. The invention relates to an authentication method.
[0002] It finds a particularly interesting application in access to sensitive services whose use is conditioned by successful user authentication. The process makes it possible, in particular, to protect these services against brute force attacks.
[0003] One of the well-known and widely used authentication mechanisms is to use a password w, which is a secret value known only to the user and sometimes to the entity called the verifier to which the user must authenticate. This mechanism has the advantage of being easy to deploy.
[0004] Password security is based on three elements: the choice of the password, which must be sufficiently complex so that an attacker cannot easily find it, the transmission of the password during authentication, which must be done through a secure channel, and the storage of the password, necessary since a verifier must be able to compare the password received from the user with a reference value. This reference value, if disclosed following a compromise of the database in which it is stored, must not allow an attacker to find the corresponding password.
[0005] Passwords are usually stored in encrypted form in a database managed by the verifier. The verifier must be able to verify that the password transmitted by the user during authentication is correct. However, it is not desirable to have all passwords available at all times, even in encrypted form. This is why it is common to use a non-invertible function, such as a cryptographic hash function H, producing a fingerprint H ( w ) of the password w, and to store this fingerprint H(w). The advantage of using a non-invertible function such as a hash function is that from the fingerprint H(w), it is difficult to find the password w. However, exhaustive search attacks, consisting of testing all possible values w' of a password and comparing the generated fingerprints H(w') with the stored imprint remain possible.
[0006] Such an exhaustive search cannot be prevented, but methods exist to make it more difficult.
[0007] Thus, in a first example, the fingerprint of the reference password that is stored is not H(w) but is of the form H(w | s), where s is a value generated pseudo-randomly by the verifier and usually called a "salt". The database then stores pairs (H(wls), s). The use of a salt makes it possible to thwart the efforts of an attacker who would search for passwords by implementing pre-computations. In the case of pre-computations, an attacker applies a non-invertible function to a set of possible passwords and memorizes the resulting set. He then searches for a password fingerprint in the memorized set and identifies the associated password. With a salt, distinct from one password to another, the attacker must memorize as many sets of passwords as possible salt values to implement this technique. This induces computational time and memory constraints that the attacker must take into account when carrying out an attack.
[0008] A variant intended to slow down the discovery of the password w from a reference fingerprint consists of artificially increasing the computation time by invoking the hash function several times. The fingerprint is then of the form: F(w) = H k< (w | s). The number of iterations k is chosen in such a way that the additional cost in terms of computation is negligible when authenticating a user but prohibitive in the case of an exhaustive search by an attacker; the cost is then multiplied by k.
[0009] These two techniques slow down an attacker during an exhaustive password search, but they do not prevent such an attack. An attacker remains inclined to implement such attacks, even at the cost of significant effort. Indeed, since the lifespan of a password is generally quite long, an attacker who recovers it can exploit it for a long time. In addition, a user is generally reluctant to change their password frequently.
[0010] One of the aims of the invention is to remedy shortcomings / drawbacks of the state of the art and / or to make improvements thereto.
[0011] To this end, the invention proposes a method for authenticating a user with a verifier, said method comprising: receiving a password entered by the user and a first context information entered by the user, calculating a current fingerprint, by applying a one-way function to the password and to the first context information, verifying that the calculated current fingerprint is equal to a reference fingerprint of a secret, calculated during a previous authentication of the user, the authentication being successful when the current fingerprint is equal to the reference fingerprint.
[0012] The method described here makes it possible to introduce significant variability into the secret used for a user to access a sensitive service, without requiring the user to make significant memorization efforts. The secret used to authenticate the user is thus constructed from a password chosen by the user and a first piece of context information required from the user at each authentication. The password is complex, in the sense that its choice is generally constrained by the use of different types of characters and by a minimum size; it generally has a significant lifetime. The first piece of context information is not very complex; it is generally the answer to a simple question that requires little memorization effort. Furthermore, its lifetime is short since it can be renewed at each user authentication.Thus, during authentication, the user provides their password and the first context information, entered during their previous authentication. It is this first context information that introduces variability into the secret.
[0013] The method makes exhaustive search attacks more complex in terms of computing power, due to the variability of the secret, which can force an attacker to implement an attack again as soon as the user has authenticated again. The method is particularly applicable to very sensitive services that the user accesses frequently. Indeed, the method increases the security of the password. In addition, frequent access facilitates the memorization of the first context information, which can be renewed at each authentication.
[0014] In an exemplary embodiment, the method comprises: receiving a second context information, calculating a new fingerprint, by applying the one-way function to the password and the second context information, and replacing the reference fingerprint of the secret with the new fingerprint.
[0015] The method allows updating the reference fingerprint associated with the secret constructed from the password and the first context information.
[0016] In one exemplary embodiment, the method includes sending the user a question associated with the first context information.
[0017] Displaying a question associated with the first context information requires minimal effort from the user, who is thus guided to provide the information in response. Furthermore, this allows the verifier to guarantee the variability of the first context information.
[0018] In a first exemplary embodiment, the method comprises: converting the first context information into a numeric value, using the numeric value as a salt of the one-way function for calculating the current fingerprint.
[0019] In this example, the first context information is converted to a numeric value and then used as an additional salt in the one-way function used to calculate the current secret hash. This makes it even more difficult for an attacker to exhaustively search for the password and the first context information that form the secret.
[0020] In a second exemplary embodiment, the method comprises: converting the first context information into a numeric value, calculating the current fingerprint of the resulting password by iterating the one-way function a number of times equal to the numeric value.
[0021] In this example, the first context information is converted to a numeric value and then used as the value of the number of iterations of the one-way function for calculating the current fingerprint. Thus, the number of iterations of the one-way function is variable. This makes it difficult for the attacker to exhaustively search for the password and the first context information that form the secret.
[0022] The invention also relates to a verifier arranged to authenticate a user, said server comprising: receiving means, arranged to receive a password and a first piece of context information entered by the user, calculating means, arranged to calculate a current fingerprint, by applying a one-way function to the password and to the first piece of context information, verifying means, arranged to verify that the calculated current fingerprint is equal to a reference fingerprint of a secret, calculated during a previous authentication of the user, the authentication being successful when the current fingerprint is equal to the reference fingerprint.
[0023] In an exemplary embodiment, the verifier comprises: second receiving means, arranged to receive a second piece of context information, calculation and replacement means, arranged to calculate a new fingerprint by applying the one-way function to the password and to the second piece of context information, and to replace the reference fingerprint of the secret with the new fingerprint.
[0024] The invention also relates to a computer program on a data medium and loadable into the memory of a computer, the program comprising portions of code for executing the steps of the authentication method as described above, when the program is executed on said computer.
[0025] The invention also relates to a data carrier in which the above program is recorded.
[0026] Other features and advantages of the present invention will be better understood from the description and the attached drawings, among which: there figure 1 presents the steps of an authentication process, according to an example of implementation; the figure 2 is a schematic representation of a verifier, capable of implementing the authentication method, according to an exemplary embodiment.
[0027] The steps of an authentication process, according to an exemplary embodiment, will now be described in relation to the figure 1 .
[0028] A user, equipped with a terminal (not shown on the figure 1 ), wishes to remotely access a sensitive service to which he has subscribed. Access to the service is conditional upon successful authentication of the user with an authentication server, or verifier (not shown on the figure 1 ).
[0029] The verifier comprises a software module which comprises code instructions capable of implementing the authentication method described herein.
[0030] In an initial step E0 of access to the service, the user accesses a service, for example by entering a “URL” (from the English “Uniform Resource Locator”) for accessing the service in a browser on his terminal. This access triggers, in a step E1, the sending by the verifier and the display on the user’s terminal of an authentication page intended to ask the user to enter authentication information.
[0031] The displayed page includes a password entry area w, and a first context information entry area ctx. The password w was previously chosen by the user, for example, when first accessing the service after subscribing to the service. The password w has a certain lifespan, managed at the verifier level. The first context information ctx is intended to introduce a variable segment into the password. More precisely, the password w and the first context information ctx are combined to form a secret, used to access the service and part of which is variable. The first context information ctx can be called a secondary secret compared to the password w which constitutes the user's primary secret. It was entered during a previous authentication, more precisely during the user's last authentication.
[0032] In an exemplary embodiment, a display area is associated with the first context information ctx. This area is intended to display a question associated with the first context information, in order to help the user when entering the first context information ctx. Indeed, the first contextual information ctx may change frequently. Associating a question with it helps the user find it more easily. In another exemplary embodiment, no display area is associated with the first context information. Thus, the user must enter this first context information without receiving any indication from the verifier as to the nature of this information. This reduces the information that an attacker can obtain to identify the first context information. The following disclosures are part of the prior art:
[0033] - ALEX HALDERMAN J ET AL: "A convenient method for securely managing passwords", 14TH INTERNATIONAL CONFERENCE ON WORLD WIDE WEB, WWW 2005 : CHIBA, JAPAN, MAY 10 - 14, 2005, ASSOCIATION FOR COMPUTING MACHINERY, NEW YORK, NY, May 10, 2005 (2005-05-10), pages 471-479, XP058153389, DOI: 10.1145 / 1060745.1060815 ISBN: 978-1-59593-046-0 discloses two-step password hashing to diversify a master password: first the username and master password are hashed, then the result is hashed with the domain name to derive a diversified password for that domain in A Firefox extension. A counter including the month and year or an index indicating the number of password changes can be concatenated with the domain name to ensure a regular change that the user must update when switching devices.
[0034] WO 2006 / 014358 A1 (RSA SECURITY INC [US]; KALISKI BURTON S [US]; NYSTROM MAGNUS [SE]) February 9, 2006 (2006-02-09) discloses the hashing of a limited-time password (which may be static) with information provided by a server (e.g., address and name) and possibly a counter and information about the user's terminal or transaction. A salt and pepper scheme may therefore be used, with the server storing the pepper and returning it at each authentication. An iteration of the hash is envisaged to complicate the procedure.
[0035] US 2003 / 131266 A1 (BEST STEVEN FRANCIS [US] ET AL) July 10, 2003 (2003-07-10) discloses a tool for diversifying passwords using the domain name and user-generated (predefined) global keys with a master password. The number of global keys is limited and the usage index is automatically incremented with each diversification. A number of hash function iterations can be configured.
[0036] In a first exemplary embodiment, the first context information ctx has significant variability in the sense that it is likely to vary with each authentication. For example, the question in the display area associated with the first context information relates to the weather for the day, or a time, or a date, a location where the user is located, etc. In a second exemplary embodiment, the first context information ctx has lower variability, in the sense that it does not vary over a given period of time and remains the same over successive authentications implemented during that period of time. For example, the question in the display area asks the user for their age, weight, address, etc. It is understood that in this case, the effort required of the user to memorize the first contextual information is less.
[0037] High variability of the first context information ctx allows you to vary the secret very often without varying the password w.
[0038] In a subsequent step E2 of entry and sending, the user enters his password w as well as the first context information ctx. Once entered, the password w and the first context information ctx are sent to the verifier.
[0039] In a step E3 of calculating a current fingerprint, the verifier calculates a conversion G is a non-invertible function, for example a hash function. The advantage of such a function is that it slows down the exhaustive search of the password for the attacker because the attacker must also identify the first context information ctx from the numerical value n, since n = G ( ctx ) . In this example, the numeric value n acts as an additional salt compared to s and further complicates password discovery. The use of the constant k is intended to slow down password discovery by an exhaustive search attack by artificially increasing the computation time by invoking the non-invertible function multiple times. Indeed, the cost of such an attack is multiplied by k for the attacker.
[0040] In a second calculation example, the current secret fingerprint is equal to H n< ( w | s), where n is the numerical value obtained by converting the first context information ctx into a numeric value using the conversion function G. In this example, the hash function H is invoked n-times. This example is advantageous in the sense that the value of n can vary from one authentication to another. It is therefore impossible to know in advance the number of iterations of the non-invertible function H. Thus, in the case where the attacker applies the one-way function H to a set of possible passwords w' for an identified salt s', and then searches in the set of values obtained the current fingerprint of a secret in order to identify the password w, not knowing n induces additional computing power and memory space, without any guarantee of ultimately identifying the password. Indeed, the attacker must iterate the application of the one-way function H an indeterminate number of times, since he does not know n. He must then compare the current fingerprint to the values obtained. Furthermore, we note that if n is less than the number of iterations, chosen by the attacker, of the function H, the attacker has a chance of identifying the password.If, on the other hand, the number of iterations is greater than n, the attacker has little chance of finding the password.
[0041] In a verification step E4, the server 11 verifies the presence of the current fingerprint of the secret in a reference fingerprint database. The reference fingerprint database includes, for all users who have subscribed to the service, a reference fingerprint of their secret. The reference fingerprint is assumed to be valid, i.e. calculated from the user's password w and context information provided during the user's last successful authentication.
[0042] In the first case (branch “nok” on the figure 1 ) where the current fingerprint is not in the reference fingerprint database, the process stops. This is because user authentication has failed. Procedures can be implemented to request the password and the first context information again, or even to block access to the service when incorrect information has been entered a maximum number of times. These procedures are standard and are not described here.
[0043] In a second case (branch “ok” on the figure 1 ), the current fingerprint is in the reference fingerprint database. This means that the user authentication was successful. Indeed, the password w and the first context information ctx are assumed to be correct since the current fingerprint calculated from these two values was found in the reference fingerprint database. The user can then access the service.
[0044] In a following step E5 of requesting a second piece of context information, the authentication server 11 asks the user to enter a second piece of context information ctx'. A second input box is displayed for this purpose. The second context information ctx' is intended to be used to construct a new reference fingerprint of the secret by applying the one-way function H to the password w and the second context information ctx', and to replace the reference fingerprint in the reference fingerprint database for subsequent authentication. It is important that the choice of the question, which therefore conditions the nature of the second context information, is chosen by the verifier. This ensures the variability of this second context information and therefore of the secret constructed and stored as a new reference fingerprint.
[0045] In an input and send step E6, the user enters the requested information. The second context information ctx' input is sent to the auditor.
[0046] In a calculation and update step E7, the verifier calculates the new reference fingerprint and saves it in the reference fingerprint database, in association with the user. This new reference fingerprint replaces the reference fingerprint associated with the user in the reference fingerprint database.
[0047] In other words, during a current authentication, a first and a second context information are requested from the user. The first context information is that which was entered during the last authentication of the user; it is used for the current authentication of the user. The second context information, requested during the current authentication, is intended to be requested during the next authentication of the user.
[0048] In the exemplary embodiment described here, the second context information ctx' is only requested after verification of the password w and the first context information ctx. In another example, the password w and the first and second context information, ctx, ctx' are requested at the same time. The secrecy verification is then implemented.
[0049] Thus, the user must always memorize a master secret: the password w. The password is persistent and often complex: it generally includes a minimal number of characters, is formed of different types of characters such as numbers, letters and punctuation characters. The user must also memorize a very low complexity context information that requires little memory effort. This context element introduces significant variability in the secret and impacts the reference fingerprint stored in the reference fingerprint database.
[0050] An attacker who wants to impersonate a user to access a service using their authentication data must therefore retrieve the reference fingerprint associated with the user each time it is renewed, i.e. potentially at each authentication. They must then implement a certain amount of computing power to obtain the password and context information used to calculate the secret allowing successful authentication of the user. However, this information is no longer valid as soon as the user authenticates again.
[0051] Consider for example a reference imprint of the form H k< ( w | s | n ). An attack on such a fingerprint, if successful, allows the attacker to obtain the password w, and the numerical value n which corresponds to context information. If t1 represents the number of possible values for w, t 2 the number of possible values for n , then the attacker must invoke the hash function H, ( t 1 × t 2 × k)-times, which increases the cost of an attack by a factor t 2 compared to classical techniques. In addition, the sole knowledge of n does not allow the attacker to respond to an authentication since n was obtained by applying a conversion function G to a context information. The attacker must therefore also invert the conversion function G, which represents an additional cost. If the attacker manages to obtain the password w and the context information ctx, it can authenticate in place of the user provided that the latter does not carry out a new authentication which would result in a renewal of the context information ctx, and therefore of n.In this case, the attacker must recover a new reference fingerprint H k< ( w | s | n '), then perform new calculations to find n' then the associated context information.
[0052] When the numeric value n is used as an additional salt, i.e. in the case where the reference fingerprint is of the form: H k< ( w | s | n ), the amount of possible values for n must be greater than a minimum value to slow down the exhaustive search.
[0053] When the numeric value n is used as the number of iterations of the one-way function H, that is to say in the case where the reference imprint is of the form: H n< ( w | s), nmust be greater than a minimum value, so as to slow down an exhaustive search and less than a maximum value so that the calculation of a current fingerprint during authentication remains negligible.
[0054] The method finds an interesting application for accessing sensitive services, for example online banking services, e-mail accounts, online shopping, etc. In this case, however, the user must memorize as much context information as there are sensitive services that implement the method. In order to facilitate the management of this context information, the user can use a conventional means of storing passwords such as a password manager.
[0055] A verifier arranged to implement authentication as described above will now be described in relation to the figure 2 .
[0056] A 20 verifier is a piece of computer equipment, such as a server. It typically includes: a processing unit or processor 201, or "CPU" (from the English "Central Processing Unit"), intended to load instructions into memory, to execute them, to carry out operations; a set of memories, including a volatile memory 202, or "RAM" (for "Random Access Memory") used to execute code instructions, store variables, etc., and a storage memory 203 of the "EEPROM" type (from the English "Electrically Erasable Programmable Read Only Memory"). In particular, the storage memory 203 is arranged to store an authentication software module which comprises code instructions for implementing the steps of the authentication method as described previously; an access interface to a fingerprint database 204 arranged to access a reference fingerprint database.The reference fingerprint database comprises, for a set of users subscribed to the service, a reference fingerprint of the secret associated with a user identifier. The reference fingerprint of the secret is calculated by the authentication server based on the password w and context information entered by the user during the last successful authentication implemented during a previous access of the latter to the service.
[0057] The checker also includes: a reception module 205, arranged to receive a password and a first piece of context information entered by the user. The reception module 205 is arranged to implement step E2 of the authentication method as described previously; a calculation module 206, arranged to calculate a current fingerprint, by applying a one-way function to the password and to the first piece of context information. The calculation module 206 is arranged to implement step E3 of the authentication method described previously; a verification module 207, arranged to verify that the calculated current fingerprint is equal to a reference fingerprint of a secret, calculated during a previous authentication of the user, the authentication being successful when the current fingerprint is equal to the reference fingerprint. The verification module 207 is arranged to implement step E4 of the authentication method described previously.
[0058] The reception modules 205, calculation modules 206, verification modules 207 and the access interface to the fingerprint database 204 are preferably software modules comprising software instructions for implementing the steps of the authentication method described above.
[0059] The invention therefore also relates to: a computer program comprising instructions for implementing the authentication method as described above when this program is executed by a processor of the verifier 20, a readable recording medium on which the computer program described above is recorded.
[0060] In an exemplary embodiment, the verifier also includes the following modules (not shown in the figure 2 ) : second receiving means, arranged to receive a second piece of context information ctx'. The second context information is intended to be used to update the secret fingerprint in the reference fingerprint database; calculation and replacement means, arranged to calculate a new secret fingerprint, by applying the one-way function H to the password w and to the second context information ctx'. The calculation and replacement means are also arranged to replace the reference fingerprint of the secret in the reference fingerprint database with the new fingerprint.
Claims
1. Method for authentication of a user by a verifier, said method comprising: - receiving (E2) a password (w) input by the user and a first piece of context information (ctx) input by the user, - computing (E3) a current fingerprint, by applying a one-way function to the password and to the first piece of context information, - verifying (E4) that the computed current fingerprint is equal to a reference fingerprint of a secret, which fingerprint was calculated during a preceding authentication of the user, the authentication being successful when the current fingerprint is equal to the reference fingerprint, - receiving (E6) a second piece of context information, input by the authenticated user in response to a request by the verifier, - computing (E7) a new reference fingerprint, by applying the one-way function to the password and to the second piece of context information, and replacing the reference fingerprint of the secret with the new reference fingerprint for a subsequent authentication.
2. Method according to Claim 1, comprising transmitting, to the user, a question associated with the first piece of context information.
3. Method according to Claim 1, comprising: - converting the first piece of context information into a numerical value, - using the numerical value as a salt of the one-way function for computing the current fingerprint.
4. Method according to Claim 1, comprising: - converting the first piece of context information into a numerical value, - the one-way function having a number of iterations equal to the numerical value.
5. Verifier (11) arranged to authenticate a user, said server comprising: - receiving means (205), arranged to receive a password (w) and a first piece of context information (ctx) that are input by the user, - computing means (206), arranged to compute a current fingerprint, by applying a one-way function to the password and to the first piece of context information, - verifying means (207), arranged to verify that the computed current fingerprint is equal to a reference fingerprint of a secret, which fingerprint was calculated during a preceding authentication of the user, the authentication being successful when the current fingerprint is equal to the reference fingerprint, - second receiving means, arranged to receive a second piece of context information, input by the authenticated user in response to a request by the verifier, - computing and replacing means, arranged to compute a new reference fingerprint, by applying the one-way function to the password and to the second piece of context information, and to replace the reference fingerprint of the secret with the new reference fingerprint for a subsequent authentication.
6. Computer program on a data storage medium and able to be loaded into the memory of a computer, the program comprising code sections for executing the steps of the authentication method according to any one of Claims 1 to 4 when the program is executed on said computer.
7. Data medium on which the program according to Claim 6 is recorded.
8. User terminal arranged to authenticate the user by means of a verifier (11), comprising: - first inputting and transmitting means, arranged to input a password (w) and a first piece of context information (ctx), and intended to be used by the verifier to compute a current fingerprint, by applying a one-way function to the password and to the first piece of context information, said current fingerprint being intended to be used by the verifier to authenticate the user, - second inputting and transmitting means, arranged to input a second piece of context information, input by the authenticated user in response to a request by the verifier, when the authentication of the user by the verifier has been successful, said second piece of context information being intended to be used to construct a new reference fingerprint, by applying the one-way function to the password and to the second piece of context information, said new reference fingerprint being intended to replace the current reference fingerprint for a subsequent authentication.
