This application is a U.S. National Stage filing under 35 U.S.C. §119, based on and claiming benefit of and priority to GB Patent Application No. 1403728.7 filed Mar. 3, 2014.
The present disclosure relates to secure mobile device transactions. More specifically, it relates to methods and apparatus allowing a mobile device to operate as a payment device securely without a requirement for secure hardware.
Where mobile devices (such as mobile telephone handsets, tablets and laptop computers) need to perform operations or store data that could compromise user (or other) assets if viewed by malicious third parties, it is normal practice for a processor performing these operations or a memory storing this data to be located in a secure element (SE) within the mobile device. The secure element is typically both physically and logically protected against subversion by a malicious third party. Cryptographic software and cryptographic keys used by a mobile device will typically be kept in a secure element—a mobile telephone SIM card is an example of a secure element, and an SE is also typically used for local wireless communication under NFC protocols.
Transactions, particularly financial transactions, involve authentication and data which is sensitive both to users and other parties. Increasingly, a mobile computing device may be used as a payment device. Such a payment device is effectively a new form of payment card—payment cards such as credit cards and debit cards are very widely used for all forms of financial transaction. The use of payment cards has evolved significantly with technological developments over recent years. Many payments are made at a retail location, typically with a physical transaction card interacting with a point of sale (POS) terminal to perform a transaction. These transaction cards may interact with a POS by swiping through a magnetic stripe reader, or for a “chip card” or “smart card” by direct contact with a smart card reader (under standard ISO/IEC 7816) or by contactless interaction through local short range wireless communication (under standard ISO/IEC 14443).
For a contactless card, the account number can be read automatically from the card by a POS terminal, generally using a short range wireless technology such as Radio Frequency Identification (RFID)—this approach is generally referred to as “contactless” or “proximity” payment. This is typically enabled by embedding of an RFID tag in a card body together with a suitable antenna to allow transmission and receipt of wireless signals—the transmissions may be powered by a radio frequency interrogation signal emitted by a proximity reader in the POS terminal. For an effective connection to be made, the payment card may need to be brought into very close proximity to the proximity reader—this has security benefits and prevents confusion if there are multiple enabled payment cards in the general vicinity of the proximity reader, as will typically be the case in a retail establishment for example. This may be achieved by tapping the antenna of the payment card against the proximity reader of the POS terminal.
The present applicants have developed a proprietary system, known as PayPass®, for performing contactless transactions. The present applicants have also appreciated that it would be possible to use a computing device such as a mobile telephone as a proxy for a payment card. They have also developed a mobile payment application, Mobile PayPass™, which can be downloaded to a mobile telephone handset to act as a proxy for a payment card using Near Field Communication (NFC) technology standards, which are built in to the majority of current mobile phones. NFC is a development upon RFID, and NFC-enabled devices are able to operate in the same manner as RFID devices—though an NFC-device is active rather than passive, as it is powered by the mobile phone battery rather than relying on inductive pickup from a reader device. Using Mobile PayPass™, a user can conduct tapping based transactions with a proximity reader, as well as perform account management operations over an appropriate network interface (cellular, local wireless network) in an online banking interface with the user's account provider.
As is indicated above, a transaction application such as a contactless payment application will use sensitive data which should not be exposed to a malicious third party. For this reason, such transaction applications will typically use a secure element such as a mobile telephone SIM card or a secure element built in to a mobile telephone—this may be provided in a manufacturer's implementation of NFC protocols in the mobile telephone handset, for example. However, this approach is reliant on cooperation of the Mobile Network Operator (MNO) for a SIM card or an original equipment manufacturer for an SE in a mobile telephone handset. Even if such cooperation is available, the diversity of SIMs and mobile telephone handsets will make it very difficult for a consistent approach to be used, meaning that significant user customisation may be required in order to install and run a transaction application effectively. This will deter users from adopting such transaction applications.
In a first aspect, the disclosure provides a mobile computing device having a processor and a memory, wherein the processor is programmed with a mobile transaction application, wherein: the memory comprises a local database to hold data items for use by the mobile transaction application; and wherein the mobile transaction application is adapted to encrypt data items for storage in the local database and to decrypt data items stored in the local database using white-box cryptographic techniques.
This approach allows the use of a generic transaction application that is not personalised to a user without compromising user or issuer security. This enables the user experience to be essentially similar to that provided with other mobile applications.
In embodiments, an entry in the local database comprises an index and an encrypted parameter for use by the mobile transaction algorithm.
In one embodiment type, the mobile transaction application is adapted to use static white-box cryptography and uses a key derivation algorithm in encryption and storage of data in the local encrypted database. The entry in the local database may further comprises an application sequence counter to indicate a transaction in which an operation associated with the entry was performed.
In another embodiment type, the mobile transaction application is adapted to use dynamic white-box cryptography and uses a key transportation algorithm in encryption and storage of data in the local encrypted database. In this case, an entry in the local database may further comprise an encrypted key for that entry. In certain embodiments of this type, the mobile transaction application communicates with a server adapted to secure one or more parameters used by the mobile transaction application.
In embodiments, the mobile transaction application and the local database are protected by software obfuscation.
Preferably, the mobile transaction application is downloaded to the mobile computing device without customisation to the mobile computing device or its user. In some cases, on installation or initialization, the mobile transaction application may then be customised to the mobile computing device or its user.
In particular embodiments, the mobile computing device is adapted to act as a payment device and wherein the mobile transaction application is a payment application. The mobile computing device may be adapted to emulate a contactless payment card.
In embodiments, the mobile computing device is or comprises a mobile telephone.
In a further aspect, the disclosure provides a method of operating a mobile transaction application at a mobile computing device, wherein the mobile computing device comprises a processor adapted to execute the mobile transaction application and a memory comprising a local database to hold data items for use by the mobile transaction application, the method comprising: identifying one or more data items for storage in or retrieval from the local database; and either encrypt the one or more data items for storage in the local database using white-box cryptographic techniques, or decrypt the one or more data items stored in the local database using white-box cryptographic techniques.
Embodiments of the disclosure will now be described, by way of example, with reference to the accompanying Figures, of which:
Specific embodiments of the disclosure will be described below with reference to the Figures. The embodiments described below relate to a mobile phone used as a payment device for contactless payments with POI (point of interaction) terminals (such as a POS—point of sale—terminal) under the EMV protocols indicated above, but as is discussed further below, further embodiments may be used in other transaction systems and contexts.
A user (not shown) is provided with a payment device in the form of a mobile computing device—this is shown here as mobile phone 1, but may for example be a laptop computer or a tablet. The mobile phone 1 is adapted to act as a proxy for a physical payment card (or may be used for a virtual payment card with no direct physical counterpart). The mobile phone 1 equipped with means to communicate with other elements of a payment infrastructure, in that it comprises antennae and associated hardware and software to enable communication by NFC and associated contactless card protocols such as those defined under ISO/IEC 14443.
Other computer equipment in the infrastructure is typically fixed, such as point of interaction (POI) terminals 4, of which the example shown is a point-of-sale (POS) terminal used by a merchant interacting with the user. The POS terminal 4 interacts with the mobile phone 1 through contactless card reader 3. The merchant POS terminal 4 is typically connected or connectable to an acquiring bank 6 or other system in a secure way (either through a dedicated channel or through a secure communication mechanism over a public or insecure channel). There may also be a mechanism to allow connection between the mobile phone 1 (or another user computing device) and a card issuing bank 5 or system associated with the user. A banking infrastructure 7 will also connect the card issuer 5 and the acquiring bank 6, allowing transactions to be carried out between them. This banking infrastructure will typically be provided by a transaction card provider who provides transaction card services to the card issuing bank 5. The banking infrastructure 7 provides authorization at the time of purchase, clearing of the transaction and reconciliation typically within the same working day, and settlement of payments shortly after that. The banking infrastructure 7 comprises a plurality of switches, servers and databases, and is not described further here as the details of the banking infrastructure used are not necessary for understanding how embodiments of the disclosure function and may be implemented.
Mobile phone 1 comprises an application processor 12, one or more memories 13 associated with the application processor, a SIM or USIM 14 itself comprising both processing and memory capabilities and a NFC controller 15. The mobile phone also has a display 16 (shown as an overlay to the schematically represented computing elements of the device), providing in this example a touchscreen user interface. The mobile phone is equipped with wireless telecommunications apparatus 17 for communication with a wireless telecommunications network and local wireless communication apparatus 18 for interaction by NFC.
In the arrangement shown, the application processor 12 and associated memories 13 comprise (shown within the processor space, but with code and data stored within the memories) a mobile payment application 101—explicitly shown within the memories 13 is encrypted local database 102. It will also contain other applications normally needed by such a device, such as a browser 103 and a modem 104. The SIM/USIM 4 will comprise a security domain 105 adapted to support cryptographic actions and an NFC application 106 which interfaces with the NFC controller 15, which has interfaces 107 to NFC devices and tags—a contactless front end 108 may be provided here, interacting with a cardlet associated with the payment application 1. The SIM/USIM 14 will typically be physically and logically protected against subversion. It should be noted that the payment application 101 and the encrypted local database 102 are both located within the application processor 12 and associated memories 13 space—neither rely on the security domain 105 provided within the SIM/USIM 104 or on any other security domain protected by secure hardware.
The requirements for contactless card transactions and associated protocols are described in more detail in the EMV Contactless Specifications for Payment Systems, available from https://www.emvco.com/specifications.aspx?id=21, to which the skilled person is directed. These will not be discussed in further detail here, as the specific protocols used are not relevant to the implementation of embodiments of the disclosure. For these purposes, it is sufficient to note that the mobile payment application 101 and the encrypted local database 102 contain data that is extremely sensitive to the user, and may also be highly sensitive to other parties such as the card issuer 5. It is therefore necessary that the mobile payment application 101 and the encrypted local database 102 exist, and operate, in such a way that this sensitive data is not exposed to malicious third parties. As the mobile payment application 101 and the encrypted local database 102 are located in the memories 13 associated with the main processor 12, this provides a significant technical challenge as the normal technical solution of keeping such sensitive data in a physically protected region (such as SIM/USIM 14) is not available.
The significance of the availability of a secure operational environment, and the operational solution achieved in embodiments of the disclosure, is shown in
Where process E is (or is a part of) a mobile payment application 101, it will be necessary for the process to be provisioned with one or more keys by the card issuer or on the card issuer's behalf to allow the user to be authenticated to the card issuer as the legitimate cardholder. In this conventional model, the card issuer may use a card issuer key KISS to derive a discrete device key KD for each mobile computing device, for example by using the mobile fingerprint along with KISS as inputs to a key derivation algorithm. In a transaction, the device key KD may then be used to generate a session key KS for use in that transaction (or for part of a transaction) using a further key derivation process, for example by using the application sequence counter (ASC) of the mobile application as an input as well as KD. This approach protects KISS as this key does not need to be transmitted anywhere by the issuer, provides a discrete device key KD for each mobile computing device which is protected within the secure element, and in transaction operations uses a session key KS which if discovered by a malicious third party should not affect future transactions.
While this model appears satisfactory for the purpose of security, it has significant practical disadvantages. In a mobile telephone, the SIM/USIM provides one secure element, but this is under the control of the mobile network operator (MNO)—to use this SIM/USIM for any additional purpose will require specific agreement between the payment infrastructure provider and the MNO, and given the sensitivity of information already present on the SIM/USIM, setup of any application using the SIM/USIM as a resource will be complex and will need to reassure the MNO that the integrity of the SIM/USIM is not compromised. This is a major barrier to user acceptance—a user will typically wish to be able to install a generic application from an application store, and then to be able to use that application in the same way as any other mobile application, with at most a limited initialization step on installation. Another approach would be to persuade original equipment manufacturers (OEMs) to provide an additional secure element in the mobile telephone directly—in effect, an additional memory that is also secure—but this increases mobile telephone cost without significantly affecting the ease of installation or use of a mobile application.
There are two basic approaches to white-box cryptography: static white-box (SWB) and dynamic white-box (DWB) cryptography. These will be described further below, and as noted further below, both can be used to provide embodiments of the present disclosure.
An intermediate model is shown in FIG. 3D—in this approach, there is again no secure element present, but the sensitive process E and keys K are maintained within a logically protected layer, with protection provided in software by techniques such as software obfuscation. This can be termed a grey-box (GB) model. Such a technique will be effective to protect algorithms E and keys K, but only for a short period of time. Consequently the GB model could be used to protect a session key KS and its use in execution of process E, but would not be strong enough for long term protection of a device key KD, and would be clearly unsuitable to protect an Issuer key KISS.
The general structure of mobile application 101 and encrypted local database 102 used in embodiments of the disclosure is shown in
In the embodiment shown, each entry 43 in the encrypted local database 102 has three items: an index 44; an application sequence counter value 45; and an encrypted parameter 46. The length of entries 43 is variable. The index 44 fixes the position in the encrypted local database 102 where one specific parameter is stored. The application sequence counter (represented pictorially as ASN) value 45 provides a reference to the transaction during which a relevant operation (resulting in, typically, writing of the parameter to the database) was performed. The encrypted parameter (EPARAM) 46 contains encrypted content in an appropriate format (such as TLV) for long term protection.
The inventors have determined that using this approach, it is possible for the mobile transaction application 101 to be a generic application that is not initially differentiated for each user. This means that the application can be downloaded by the user from an application store and installed in main memory in the same manner as a normal mobile application, so the user experience in installation is familiar. This means that any initialization by a user must occur on or after installation of the mobile application 101 on the mobile computing device. This immediately requires a different model of trust from that used in a conventional black-box model, because in this model the device key KD is personalised to the device by the key issuer and provisioned to the secure element under key issuer control.
The mobile application 101 and the encrypted local database 102 must be resistant to both passive and active attacks, as they exist in an unprotected operation environment. Protection against static attacks is provided by white-box cryptographic techniques and (if a grey-box approach is used) by software obfuscation. Protection against active attacks such as code and data lifting is also needed. In such attacks, an attacker attempts to get access to the encrypted database items from a targeted mobile device, copies them, and bring them for execution in its own mobile execution environment, using the same mobile application 101—which is generic and not customized for an individual user—in order to implement the same cryptographic processes using the same system keys. More detailed discussion of how active attacks are addressed is provided below in relation to specific embodiments of the disclosure.
The system may be constructed such that the encrypted parameters 46 in the encrypted local database 102 have confidentiality (they can only be read by the mobile application 101 and integrity (they can only be modified by the mobile application 101). Confidentiality and integrity may be provided with the same mechanisms, as will be discussed below. These parameters may be used by the mobile application 101 for any or all of general processing, as key material for cryptographic primitives, or specifically as key material for cryptographic primitives using a WBC model (in which it is assumed that an attacker has full access to the mobile application 101).
As indicated above, the mobile application 101 is generic and may be downloaded from an application store. In different embodiments, the mobile application may be initializable or not initializable before it begins its operational lifetime. Embodiments of each are described below—where initialisation is possible, the user may create cryptographic keys specific to the user and/or to the mobile computing device.
As has been indicated above, in embodiments of the disclosure white-box cryptographic techniques are used for the mobile application 101. To provide further protection, grey-box techniques may also be used in embodiments of the disclosure. Where only a white-box approach is used, an attacker has unlimited access to the encrypted local database 102 and to the application logic of the mobile application 101, but where a grey-box approach is used the application logic at least is protected using additional techniques such as software obfuscation. To enhance security, embodiments using a grey-box approach are presently preferred.
Embodiments of the disclosure will be described further below using static white-box (SWB) and dynamic white-box (DWB) cryptographic techniques. The conceptual difference between these two approaches will now be described with reference to
A static white-box implementation of an embodiment of the disclosure will now be described with reference to
First of all, it should be noted that care is needed to protect against passive attacks on cryptographic primitives when a generic mobile transaction application is used. The issuer cannot set a master key per card KD, since this would require a mobile transaction application per user. In prior art arrangements using a secure element, a device key KD is usually computed from the issuer's master key KISS in the user's secure premises derived in part from user information (such as a user's Primary Account Number (PAN).
For a generic mobile transaction application, the master key KISS must be embedded securely in the mobile transaction application. The mobile transaction application will then compute the equivalent of a KD on each run. The static white-box (SWB) therefore needs to have KISS coded directly into its encryption algorithm (for example, an AES256 encryption algorithm).
A risk is that the attacker will attempt to obtain the embedded KISS from the mobile transaction application by attempting to cryptanalyze the white-box implementation itself. For current SWB implementations, this risk may be considered sufficiently great that it could be desirable to provide additional protection, though this may change for future SWB implementations. It may be desirable as a result to use in practice a grey-box implementation, in which the arrangement described below is protected further by software obfuscation. Specific software obfuscation techniques are not described further here, but the skilled person will without difficulty be able to identify appropriate software obfuscation resources from the existing technical literature. Grey-box obfuscation will therefore not be shown explicitly in the drawings, which will focus on the white-box implementation of the mobile transaction application and encrypted local database design.
In its operational lifetime the mobile transaction application performs a write operation at Index i as follows:
In its operational lifetime the mobile transaction application performs a read operation at Index i as follows:
As these “ideal conditions” do not apply in the white-box regime, the design is modified by transformation.
The read operation is the inverse of the write procedure, and is shown on the right-hand side of the diagram. K′i is recomputed using the same procedure as originally used to create it. K′i is then used to decrypt EPARAM, to recreate PARAMi.
All the procedures of
The approach of
In this model security of the encrypted local database is based on a locally random generated key DKi—this is a significant difference from the SWB embodiment described above. There is no reliance on a key hierarchy from KSYS. Moreover, the exposure to potential attack for DKi is very brief—all other keys are transported in encrypted form and encryption and decryption operations are carried out according to a white-box approach. This arrangement provides protection against active attacks without need for continued user intervention beyond the initialization procedure, which is again a difference from the SWB embodiment where protection against active attacks is made by the use of the user input or mobile fingerprint during the write and read operations.
The main construct used by the embodiment is shown in FIG. 10—this is an implantation of the approach shown in
As for the previous embodiment, it is preferred that this whole process takes place in a grey-box environment. The encryption algorithm implemented for the transformation in the grey box environment may for example be SWB AES 256-E with the key R encoded in its structure. The decryption algorithm implemented in the dynamic white-box construct may be a parameterized AES 256-I algorithm with the key R set as a parameter in the WB protected environment of the DWB construct.
During an initialization stage performed by the user, a generic mobile transaction application downloaded from an application store may have a system key KSYS for SWB AES 256 E replaced with a device or user specific key R. It is possible that the same generic application could be used to achieve an SWB or DWB implementation dependent on whether user initialization takes place, or is supported by the mobile computing device. After the change of key to R, an attacker will no longer be able to make an effective code or data lifting attack even if grey box protection is circumvented, as the attacker will not be able to replicate the relevant processes on his or her own hardware because key R will not be available.
There is no equivalent in this model to the use of Ki as a parameter for the AES-128 E algorithm—this encryption block is now user or device specific and is generated as a dynamic WB implementation with the random key R generated during the initialization process used as a transport key. This eliminates one risk associated with the previous embodiment. The grey box only needs to protect the operational key DKi from the moment it is generated until the moment is encrypted with the transportation key R.
The basic principle of operation is that the mobile transaction application is instantiated with a random key R only at the time the initialization procedure is called. This key will be used as a transport key in the hostile environment to carry over the operational key DKi in an encrypted form from its generation till its use for encryption/decryption of the IN PARAM to EPARAM and of EPARAM to OUT PARAM. The dynamic white-box implementation then performs a decryption operation by using the transport key R to obtain the key DKi in such a way that no information on this key is exposed outside the white-box implemented sandbox.
The initialization sequence consists of the following exemplificative calls of the crypto API for the encryption (similar sequences are needed for obtaining the decryption functions):
An exemplary initialization sequence is shown above in Table 1. Only encryption functions are shown—the same principles are applied for decryption functions, and can be determined by the skilled person in a routine manner.
The overall design of this embodiment in its operational lifetime state is shown in
The dynamic key is generated from a clock function CLK and a programmable random number generator PRNG to provide a random seed to the static white-box cryptographic generator for key DKi, which is then encrypted to form EDKi and used as input to the dynamic white-box construct DWB(E) which encrypts the parameter to form EPARAMi. EDKi and EPARAMi are together transported to the encrypted database under index i.
In its operational lifetime, the mobile transaction application performs the following calls for the encryption of the parameter INPARAM of n*16 bytes:
As can be seen from
Further modifications to this approach can be made to provide greater security by using a server supported process. One point of vulnerability is that the grey-box model is used to protect the operation key DKi and also IN PARAM and OUT PARAM.
In this approach, the server implements a session key derivation algorithm using the application sequence counter ASN as an input. The server has already used identifying features of the user or mobile computing device (such as the PAN and/or the PSN of the associated user account) to create a card master key MKAC from the Issuer Master Key for AC computation. MKAC is used to compute the SUK with respect to the ASN for which the key will be used in the mobile transaction application. This SUK is then encrypted with the user transport key R as ESUK=ER(SUK), and is sent together with the ASN to the mobile transaction application for storage in the encrypted local database.
The mobile transaction application uses a current ASN value to search the local database for the existence of an encrypted SUK. If such a key exists in encrypted form ESUK=ER(SUK), the local database will provide it to the mobile transaction application.
The mobile transaction application will use this recovered encrypted key in the DWB(E) mechanism firstly to recover the SUK, by applying the transformation mechanism SWB AES256-I with key R to decrypt ESUK. SUK can then be used to compute the payment proof AC (application cryptogram) used under the EMV standard (for example) on transaction data received from a terminal.
The embodiments of a mobile transaction application described above generally relate to payment, and are particularly useful for a mobile computing device such as a mobile telephone implementing contactless card protocols to allow the mobile computing device to operate as a payment device. This is, however, not the only operational context available. In addition to use in payment protocols other than contactless card transactions, embodiments of the disclosure can be used outside the context of payment—for example, embodiments may be used to provide a travel application for safe management of electronic tickets used to interact with a ticket gating system of a transport network. Individual transactions in this case are the interactions between the travel application and the individual gates of the ticket gating system, and use of approaches as described here prevents the acquisition and cloning of electronic tickets or other travel permissions.
Number | Date | Country | Kind |
---|---|---|---|
1403728.7 | Mar 2014 | GB | national |