This invention relates to user access control, particularly but not exclusively involving access to locally stored data.
Some client applications, such as mobile applications, use a 4-6 digit PIN to protect against unauthorised access. This in itself is a weak form of authentication, with a 5 digit PIN providing only 100,000 combinations; the correct PIN could be guessed easily by a ‘brute force’ attack i.e. trying every combination.
To counter this, most mobile applications store no sensitive data locally on the mobile client, and implement a lock-out scheme which is enforced on the server after a few wrong attempts at entering the PIN. However, it would advantageous for a mobile application to store data at the mobile client for access and analysis when disconnected. There is therefore a need for secure access to locally stored data that can survive brute force attacks.
According to one aspect of the present invention, there is provided a method according to claim 1. According to another aspect of the present invention, there is provided a method according to claim 4.
In an embodiment of the present invention, a user inputs on a device a graphical pattern consisting of a plurality of lines. The lines are classified by relative length, overall direction and degree of curvature. Where a line is started from a new position, the direction from the previous starting point is taken into account. The series of lines is then serialised into a key value, which may then be used to encrypt and/or decrypt data stored on a device. This enables data to be securely stored since the key is supplied by the user at runtime and is not itself stored on the device.
The pattern may consist of a plurality of lines or strokes. Each line may be straight or curved, and may continue from the end of the previous line, the new line being identified by a significant change in direction, or may start from a new position. The pattern may resemble a signature or gesture of a type that would be familiar to many users.
The lines of the input pattern are then classified by relative length, overall direction and degree of curvature. Where a line is started from a new position, the direction from the previous starting point is taken into account. The series of lines is then serialised into a key value.
The key value may then be used decrypt data stored on a device. This enables data to be securely stored since the key is supplied by the user at runtime and is not itself stored on the device. The serialization process is preferably based on vectors of each line rather than on any underlying grid.
There now follows, by way of example only, a detailed description of embodiments of the present invention, with references to the figures identified below.
System
Referring to
The mobile device 1 has a display 4 and a graphical input device 5, which may be separate components, or integrated as a touchscreen, for example. An alternative or additional graphical input device may be used, such as a trackball, trackpad, motion sensor or mouse.
The mobile device 1 may communicate over a mobile network 9 via a network interface 8 to a mobile gateway 10, which provides access to a remote database 11, for example for retrieval of data for local encrypted storage in the memory 6. The mobile network 9 may be a cellular network supporting a wireless data connection protocol such as GPRS, EDGE or 3G.
Overview
The application 3 encrypts and decrypts data 7 using at least one key, which is generated as described below.
At an initial registration stage, the user is prompted to enter a graphical pattern which is used to generate the key. The user may be required to enter the same graphical pattern a plurality of times, such as 3 times, and the key may be generated using an approximation of the graphical pattern derived from the plurality of input patterns. Data is then retrieved from the remote database 11, encrypted using the key and stored locally as data 7. The data 7 may comprise sensitive user data which the application 3 decrypts and presents to the user on the display 4.
For subsequent access to the application 3 and/or the data, the user is required to enter a similar graphical pattern to that generated at the registration stage. A key is generated from the entered graphical pattern and used to attempt to decrypt the data 7. A slight mismatch between the original and newly entered key may nevertheless enable the data to be decrypted. In this way, the originally entered key need not be stored on the mobile device, and cannot therefore be accessed so as to compromise the security of the data 7.
The application 3 is enabled to access the data 7 even when the mobile device 1 is not connected to the mobile gateway 10. Hence, server-side lockout cannot be implemented. Instead, as described below, the user authentication is made sufficiently strong to be resistant to ‘brute force’ attack. However, the application 3 may implement local lock-out, for example by closing or pausing after a predetermined number of unsuccessful user authentication attempts.
Preferably, the key generation method may have sufficient entropy to resist a brute force attack, for example approaching that of 128-bit AES. However, the entered graphical pattern should reliably generate the same key when entered by the user, for example with >80% success rate.
Key Generation
One preferred method of key generation will now be described, with reference to
When prompted, the user draws a graphical pattern comprising a sequence of lines, in this case three lines referenced L1, L2 and L3, and selects ‘OK’ to enter the graphical pattern (step S1). The entered graphical pattern is divided into a sequence of lines (step S2), for example by identifying breaks or discontinuous changes direction between lines.
Each line is then classified using the following vector-based parameters:
For each recorded line, each classifier is applied and a key is derived from the resultant string of parameter values (step S17). For example, for the pattern shown in
N_L)0L|4N0S|2
Where ‘N’ followed by an integer is a new start point followed by its direction from the previous start point. Since the first line L1 has no predecessor, then the direction is blank (‘_’) in this case. The line itself is then ‘L’ for long, ‘)’ for bent and 0 for the direction, which is always 0 for the first line.
The next line L2 has L for long, ‘|’ for straight in direction 4 and has no starting point as it continues from the previous line L1. The last line L3 has a new starting point that is direction 0 from the previous starting point; the starting points are indicated as circles in
As can be seen, each line after the first has:
Security is of limited use if users are unable reliably to repeat the pattern. This becomes more of a problem as the pattern gets longer, because there is more scope for lines to be classified differently. There may also be ‘quantization error’ where borderline cases are classified into the adjacent discrete value.
Using the first line direction as a reference direction for all the other lines helps to improve repeatability, as the pattern does not need to be aligned with any reference direction, but quantisation error can still occur. Similarly, since hard thresholds are used to classify length and curvature, these too can be quantized to the wrong value.
Registration
To use a key for authentication and encryption/decryption, the key must first be registered with the application. One method of key registration, as performed for example by the application 3, will now be described with reference to the flowchart of
To reduce quantisation and other errors to an acceptable number, the user is requested to enter their proposed pattern a plurality of times (steps R1-R3), such as 4 times, during registration. The patterns are compared and there are detected:
The mask can then be used to generate a range of potential keys by using adjacent quanta values where the mask falls. For example, in the registration of the pattern shown in
N_L)0L|4N0S|2 Key 1
N_L)0L|5N0M|2 Key 2
The two keys are of the same length and therefore acceptable under step S4, but on the 2nd line the direction has been quantized differently in each case and on the last line the same has happened with the length. To allow for this variation, a mask is generated that indicates that these two positions suffer from errors and therefore a range of keys should be generated using adjacent values in these positions, e.g.:
N_L)0L|4N0S|2
N_L)0L|4N0M|2
N_L)0L|5N0S|2
N_L)0L|5N0M|2
Therefore, 4 different keys must be tried to ensure that all valid combinations are accepted. To enable this, a mask is generated and stored locally, for example in the memory 6, to indicate the positions in which adjacent values need to be tried. For example, the mask may be represented as ‘——————.——————.——————’ where the dots indicate that adjacent values to those entered need to be tried by the application 3 when attempting to decrypt the data 7.
There is a practical limit to the number of keys that can be speculatively tried, as the load on the processor 2 and therefore the delay experienced by the user could become unacceptable if there are more than a few hundred potential keys. Also, the entropy should not be weakened excessively by generating too many keys. In the example mentioned above, 6 million possible keys have been reduced by 4 which is insignificant and yet makes the solution very practical for the user. However, if there is too much variation the parameters between the patterns entered during registration, registration may fail. For example, there may be a threshold number or fraction of permitted ‘weak’ positions (e.g. dots in the mask), and registration may fail if this threshold is exceeded.
In an alternative approach where it is undesirable to try a range of keys, the classifier may be degraded to fewer values at a position where variation is detected during registration. For example, if a particular length is likely to be erroneously classified as S, or M, then an alternative (e.g. coarser) classifier can be used at that position having only two possible values, S or L. The same approach may be used for the other parameter values. The mask may indicate the positions at which the alternative classifier should be used.
The key strings derived above are then hashed using a secure hash function e.g. SHA1 and then this value is used as an AES-128 key (step R8). The key may then be used to encrypt and/or decrypt the data 7 stored in the memory 6.
Authentication
An authentication process, as performed for example by the application 3, will now be described with reference to
To determine if the entered pattern is correct, the or each derived key may be used to decrypt a packet of data containing an encrypted known value, stored in the memory 6 (step A4). If the known value is found after decryption (step A5) then the key is known to be correct and authentication is successful (step A7); access may be granted to the mobile application, and the derived key may be used to for encryption/decryption of data 7. If the known value is not found with the or any of the keys, then authentication is unsuccessful (step A8); access to the mobile application may be denied, and no available derived key is able to decrypt the data 7.
As an alternative to decrypting a known value, the data 7 may include error detection or correction bits, and the or each derived key may be used to decrypt the data 7, not including a known value. If errors are detected in the decrypted data 7, then authentication may be unsuccessful (step A8).
Computer Programs
The application 3 may be implemented as a computer program that may be stored on or embodied in a computer program medium or computer usable medium. The media may comprise removable storage media, such as a disc or non-volatile memory, or signals such as electrical, optical or electromagnetic signals. The application may be downloaded onto the mobile device over a network, such as the mobile network 9, or via a direction connection. The application 3 may be a discrete application or may be embodied as an operating system or platform function.
Alternative embodiments may be implemented as control logic in hardware, firmware, or software or any combination thereof. Functions of the application, as described above, may be embodied as discrete software modules.
The above embodiments are described by way of example, and alternative embodiments which may become apparent to the skilled person on reading the above description may nevertheless fall within the scope of the claims.
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/GB2011/052390 | 12/2/2011 | WO | 00 | 9/4/2014 |
Publishing Document | Publishing Date | Country | Kind |
---|---|---|---|
WO2013/079893 | 6/6/2013 | WO | A |
Number | Name | Date | Kind |
---|---|---|---|
5596656 | Goldberg | Jan 1997 | A |
6373473 | Sakaguchi | Apr 2002 | B1 |
7219368 | Juels | May 2007 | B2 |
8327422 | Friedman | Dec 2012 | B1 |
8931060 | Bidare | Jan 2015 | B2 |
20020029341 | Juels | Mar 2002 | A1 |
20030215112 | Rhoads | Nov 2003 | A1 |
20040049685 | Jaloveczki | Mar 2004 | A1 |
20090217035 | Abdul Hameed Khan | Aug 2009 | A1 |
20110154025 | Spalka | Jun 2011 | A1 |
20120102551 | Bidare | Apr 2012 | A1 |
20140075549 | Lewis | Mar 2014 | A1 |
20140369497 | Whaley | Dec 2014 | A1 |
20150143509 | Selander | May 2015 | A1 |
Number | Date | Country |
---|---|---|
WO 0177792 | Oct 2001 | WO |
Entry |
---|
Dirk Scheuermann et al: “On biometric key generation from handwritten signatures” BIOSIG 11 proceedings of the Special Interest Group on Biometrics and electronic Signature, Sep. 8, 2011 pp. 103-114. |
MD. Itrat Bin Shams “Signature Recognition by Segmentation and Regular Line Detection” Oct. 30-Nov. 2, 2007; TENCON 2007—2007 IEEE Region 10 Conference. |
“Information technology—Biometric data interchange formats—Part 7: Signature/sign time series data,” International Standard ISO/IEC 19794-7, 2007. |
Scheuermann et al., “On biometric key generation from handwritten signatures,” Special Interest Group on Biometrics and Electronic Signatures (BIOSIG Annual Conference), 2011. |
Number | Date | Country | |
---|---|---|---|
20140369497 A1 | Dec 2014 | US |