WO2014044841A1 - Method to securely manage and confirm a transaction - Google Patents
Method to securely manage and confirm a transaction Download PDFInfo
- Publication number
- WO2014044841A1 WO2014044841A1 PCT/EP2013/069691 EP2013069691W WO2014044841A1 WO 2014044841 A1 WO2014044841 A1 WO 2014044841A1 EP 2013069691 W EP2013069691 W EP 2013069691W WO 2014044841 A1 WO2014044841 A1 WO 2014044841A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- terminal
- smart card
- tun
- frame
- emv
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/08—Payment architectures
- G06Q20/20—Point-of-sale [POS] network systems
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/382—Payment protocols; Details thereof insuring higher security of transaction
- G06Q20/3823—Payment protocols; Details thereof insuring higher security of transaction combining multiple encryption tools for a transaction
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07F—COIN-FREED OR LIKE APPARATUS
- G07F7/00—Mechanisms actuated by objects other than coins to free or to actuate vending, hiring, coin or paper currency dispensing or refunding apparatus
- G07F7/08—Mechanisms actuated by objects other than coins to free or to actuate vending, hiring, coin or paper currency dispensing or refunding apparatus by coded identity card or credit card or other personal identification means
- G07F7/0806—Details of the card
- G07F7/0813—Specific details related to card security
- G07F7/0826—Embedded security module
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07F—COIN-FREED OR LIKE APPARATUS
- G07F7/00—Mechanisms actuated by objects other than coins to free or to actuate vending, hiring, coin or paper currency dispensing or refunding apparatus
- G07F7/08—Mechanisms actuated by objects other than coins to free or to actuate vending, hiring, coin or paper currency dispensing or refunding apparatus by coded identity card or credit card or other personal identification means
- G07F7/10—Mechanisms actuated by objects other than coins to free or to actuate vending, hiring, coin or paper currency dispensing or refunding apparatus by coded identity card or credit card or other personal identification means together with a coded signal, e.g. in the form of personal identification information, like personal identification number [PIN] or biometric data
- G07F7/1008—Active credit-cards provided with means to personalise their use, e.g. with PIN-introduction/comparison system
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/32—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
- H04L9/3271—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using challenge-response
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2209/00—Additional information or applications relating to cryptographic mechanisms or cryptographic arrangements for secret or secure communication H04L9/00
- H04L2209/80—Wireless
- H04L2209/805—Lightweight hardware, e.g. radio-frequency identification [RFID] or sensor
Definitions
- the present invention relates to a method to manage and confirm a transaction using a terminal and a smart card interfaced with said terminal. More specifically the invention concerns a method comprising the steps of requiring a PIN code to be entered by a user by the terminal, encapsulating the PIN code in encapsulated data and transmitting these data to the smart card. The smart card then decrypts the encapsulated data, checks the decrypted PIN code and, in case the decrypted PIN code is correct, sends a PIN approval to the terminal.
- the invention also pertains to a transaction terminal enabling the implementation of said method as soon as a smart card is interfaced with said transaction terminal.
- a PIN code is required to be entered by a user by the terminal.
- the entered PIN is encapsulated and transmitted to the smart card where encapsulated data are decrypted. It enables to check the decrypted PIN code and, in case the decrypted PIN code is correct, sends a PIN approval to the terminal.
- the thief When a card is stolen, the thief generally does not know the PIN code. To by-pass this problem, the thief may introduce a fake card between the terminal and the stolen card. This malicious is known under the terms "card in the middle". The Fake card always answers OK on a verify PIN command. As the terminal believes the card status, it continues the transaction believing the PIN was checked.
- the remaining of the transaction is performed normally between the terminal and the real card.
- the EMV norm specifies that the terminal encapsulates the PIN in a frame of size the modulus of the RSA key of the card (typically 1024 bits).
- the invention is not restricted to the EMV norm but to any norm where the PIN code is encrypted.
- the frame content comprises a standard 7F tag, a PIN block, an ICC challenge and a random padding.
- the ICC challenge is typically an unpredictable Number previously generated and transmitted by the card to the terminal.
- Next step consists, for the terminal, to encrypt the frame with the public RSA key of the card.
- a real card decrypts the frame and performs three checks:
- the real card sends OK. Otherwise it sends to the terminal a NOK.
- a fake card may skip all the steps realized in a real card, i.e. the decryption step and the three-check steps and may return OK independently of the PIN value and of the frame format.
- Such a card is typically called "yes- card”.
- the present invention aims in solving the security problem encountered in known solutions where checks are realized only on the smart card's side. Thus the present invention aims at avoiding the above- mentioned malicious attacks.
- the present invention is defined as a method to manage and confirm a transaction using a terminal and a smart card having an associated PIN code and a pair of private/public keys, said smart card being interfaced with said terminal, said method comprising the steps of :
- the encapsulation step being such that said terminal challenge is encapsulated with the PIN code in the EMV frame,
- the invention exploits the fact that the card first transfers a public key to the terminal in order to enable the terminal to encrypt data before transmission. It is recognized that the terminal can trust the public key sent by the card as this key is certified by the certificate chain. Transmission means between the card and the terminal are thus, minimally, able to transmit data of the size of such a public key and the protocol frame can be used for other purposes.
- the invention exploits such a frame of size the modulus of the key, in general an RSA key, typically of 1024 bits.
- a field is added in the frame according to the invention to enable the terminal to challenge the card.
- the card needs to decrypt the frame in order to be able to return the terminal challenge in addition with the PIN approval, it insures that the card owns the RSA private key.
- a fake card will be unable to retrieve the terminal challenge with the PIN approval as it does not own the RSA private key. It will thus be unable to return it to the terminal. Yes-cards would thus be detected.
- the card provides an efficient control if the PIN presentation is granted or not. If granted, the card only sends yes and the terminal grants the transaction. With a man/card in the middle, the card could become easily a "yes" card whatever the PIN presentation and the terminal will pursue the transaction.
- the originality of the invention is the use of the TUN, only known by the terminal and the card after decryption, to give the opportunity to remove this breach in the protocol. Indeed if the TUN received back by the terminal is not correct even if the card is saying that the PIN presentation is ok, an attack where someone is trying to break the EMV PIN protocol is detected.
- said terminal challenge is a unpredictable number generated in the terminal.
- the decrypted terminal challenge (TUN) is not returned by the smart card to the terminal.
- the smart card calculates a function of the unpredictable terminal number and returns the unpredictable terminal number through the return of this function.
- This embodiment constitutes a variant to return the terminal unpredictable number.
- the present invention also concerns a transaction terminal able to implement steps of the method of securely managing and confirming a transaction according to the invention and comprising a user interface enabling a user to enter a PIN code, an encapsulation module to encapsulate the PIN code in an EMV frame and a smart card interface enabling the terminal to transmit the EMV frame to a smart card for it to check the entered PIN code and to receive a PIN approval from the smart card, said transaction terminal being characterized in that it further comprises a terminal challenge generator, the encapsulation module being able to encapsulate the terminal challenge in the EMV frame while encapsulating the PIN code and to ask for the smart card to return the decrypted terminal challenge and in that it further comprises a confirmation module able to receive and check the PIN approval and the returned decrypted terminal challenge to confirm the transaction.
- Such a device requires the return of the terminal challenge to confirm the transaction.
- the invention also concerns a smart card able to interact with a terminal of the invention and to implement the steps processed by the smart card in a method of the invention comprising a communication interface to receive an EMV frame, a decryption module to decrypt the EMV frame in order to extract a PIN code and a terminal challenge, the communication interface being such that the decrypted terminal challenge is sent to the terminal with the PIN approval or disapproval.
- a smart card will enable the terminal to check its ability to decrypt the EMV frame and thus will enable to detect a fake card inserted between the terminal and a real card.
- the communication interface is such that the decrypted terminal challenge is returned by the smart card only with a PIN approval.
- This preferred embodiment enables not to return the TUN in case the decrypted PIN is not correct. It avoids any fake card to intercept the TUN and to use it to answer a fake answer to the terminal.
- one or more embodiments comprise the features hereinafter fully described and particularly pointed out in the claims.
- Figure 1 represents a flowchart of the method of the invention with a real card having decryption means
- FIGS. 1A and 2B show respectively an EMV frame as used in the prior art and an EMV frame as used in the invention
- Figure 3 represents a flowchart of the method of the invention with a fake card inserted between the terminal and a real card;
- Figure 4 schematically shows a terminal of the invention interacting with a smart card of the invention.
- FIG. 1 is a flowchart of the method of the invention.
- the user has previously made a smart card SC interacts with a terminal T.
- a PIN code, here 1234, is associated to the smart card SC.
- the smart card SC has a pair of private/public keys of which the public one is transferred to the terminal T at the beginning of the transaction.
- a first step E1 of the invention the user is asked by the terminal to enter his PIN code XXXX.
- the terminal is generating G(TUN) a challenge.
- the challenge is an unpredictable number TUN.
- E3 the entered PIN code and the unpredictable number TUN is encapsulated ENC is an EMV frame EF(XXXX, TUN).
- FIG 2A schematically shows an example of an EMV frame EFC having an RSA format of the length RSA_L of the key used by the smart card, typically an RSA key.
- the EMV norm is such that communications between terminal and smart card can be carried by such frame of the size of the modulus of an RSA key as used on smart card, typically 1024 bits. It enables among other to the smart card SC to send the public key of the smart card SC to the terminal T in order for it to encrypt the subsequently exchanged frames. It is here noted that the public key can also be transmitted in the certificate associated or not with supplementary data.
- the length of the RSA key is much bigger than the useful part of the frame constituted by a 7F tag, an unpredictable number UN and the entered PIN XXXX.
- the rest of the frame comprises padding PAD.
- the unpredictable number was previously received from the card SC and is returned by the terminal T to the card SC for it to check the legitimacy of the terminal T.
- the invention exploits the fact that the RSA key size is much bigger than the useful current content.
- the invention exploits the fact that the RSA key size is much bigger than the useful current content.
- FIG. 2B shows an EMV frame EFI of the invention. A field comprising the terminal unpredictable number TUN is added.
- the EMV frame of the invention EF(XXXX,TUN) is sent to the smart card SC according to the EMV norm.
- the card SC in interaction with the terminal is a real card, it decrypts DEC the EMV frame EF(XXXX, TUN) in a step E4 of the invention.
- a step E5 the entered PIN code is then compared to the PIN code 1234 associated with the smart card SC. In case it matches, an OK is sent to the terminal T. In case it does not match, a NOK is sent to the terminal T.
- the sending of the OK or the NOK is completed according to the invention with the terminal unpredictable number TUN as found in the decrypted EMV frame.
- the card when the card is sending a NOK, the card is not sending the TUN. This avoids any interception of the TUN by a fake card when the decrypted PIN is not the right one.
- the TUN is sent in clear by the card only when the PIN verification is correct, in all other cases a NOK only is returned.
- the terminal While receiving the answer of the smart card SC, the terminal checks the approval OK or disapproval NOK of the PIN code by the smart card SC in a step E6. In case it matches, the terminal T also checks the presence of the terminal unpredictable number TUN and the matching with the previously sent one in a step E7. It can admit two successive NOK, N1 and N2 in the presence of the right terminal unpredictable number, but the third will generate a refusal REF of the transaction in a step ER. In case an OK is received, the transaction is accepted ACC in a step EA.
- the terminal considers that the card is a fake one and rejects the transaction. This decision is taken once an incorrect TUN is received. There is no need of any ratification counter.
- FIG. 3 shows a flow chart of the invention in case a fake Yes-card FK was inserted between the terminal T and a real smart card SC.
- the fake card FC While receiving the EMV frame EF, case Y, the fake card FC automatically sends an OK to the terminal T in a step E10, not included in the method of the invention.
- the terminal T previously to any approval of the transaction, checks the availability of the terminal unpredictable number TUN in the answer returned by the smart card SC in step E7, the transaction will not be accepted with the simple OK from the fake card FC as checked in step E6.
- the invention enables to counter this malicious behavior.
- the invention while not changing in any kind the format used to ask for a PIN code approval enables to detect a fake Yes- card.
- the method according to the present invention allows reducing the risks of malicious attacks. At least, the attacks are more complex to carry out for a malicious attacker.
- the invention can cohabitate with less up-to-date terminals. Indeed, an up-to-date smart card having the function to process the TUN, will also be able to process EMV frame even if the TUN was not inserted by the terminal T. The security threads would still exist with such terminals but the possibility to make several type of terminals cohabitate is always interesting.
- FIG. 4 shows schematically a terminal T and a smart card SC of the invention.
- the transaction terminal T is intended to securely manage and confirm a transaction according to a method of the invention.
- the transaction terminal T comprises a user interface Ul enabling a user to enter a PIN code XXXX, typically a keyboard.
- It also comprises an encapsulation module ENC to encapsulate the PIN code in an EMV frame and a smart card interface SCI enabling the terminal to transmit the EMV frame to a smart card SC for it to check the entered PIN code XXXX.
- Said interface SCI also serves to receive a PIN approval from the smart card SC.
- the transaction terminal T further comprises a terminal challenge generator G(TUN). Furthermore, the encapsulation module ENC is able to encapsulate the terminal challenge TUN in the EMV frame while encapsulating the PIN code XXXX. Then it asks the smart card SC to return the decrypted terminal challenge TUN. It needs the TUN to confirm the transaction.
- the encapsulation module ENC is able to encapsulate the terminal challenge TUN in the EMV frame while encapsulating the PIN code XXXX. Then it asks the smart card SC to return the decrypted terminal challenge TUN. It needs the TUN to confirm the transaction.
- CM a confirmation module CM able to receive and check the PIN approval and the returned decrypted terminal challenge TUN to confirm the transaction.
- the smart card is able to interact with the terminal T and comprises a communication interface ISC to communicate with the terminal to receive an EMV frame. It also comprises a decryption module DC to decrypt the EMV frame in order to extract a PIN code XXXX and a terminal challenge TUN.
- the communication interface ISC is such that the decrypted terminal challenge TUN is sent to the terminal T with the PIN approval or disapproval.
- the terminal challenge TUN is sent to the terminal T only with a PIN approval and never with a PIN disapproval to avoid any malicious capture of the TUN.
- the return of the TUN can take the form of a return of a function of the TUN, for example SHA-I (TUN), without departing from the scope of the invention.
- TUN SHA-I
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Accounting & Taxation (AREA)
- General Business, Economics & Management (AREA)
- Strategic Management (AREA)
- Finance (AREA)
- Theoretical Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Control Of Vending Devices And Auxiliary Devices For Vending Devices (AREA)
Description
METHOD TO SECURELY MANAGE AND CONFIRM A
TRANSACTION
FIELD OF THE INVENTION
The present invention relates to a method to manage and confirm a transaction using a terminal and a smart card interfaced with said terminal. More specifically the invention concerns a method comprising the steps of requiring a PIN code to be entered by a user by the terminal, encapsulating the PIN code in encapsulated data and transmitting these data to the smart card. The smart card then decrypts the encapsulated data, checks the decrypted PIN code and, in case the decrypted PIN code is correct, sends a PIN approval to the terminal.
The invention also pertains to a transaction terminal enabling the implementation of said method as soon as a smart card is interfaced with said transaction terminal.
BACKGROUND OF THE INVENTION
Classically, to confirm a transaction, a PIN code is required to be entered by a user by the terminal. The entered PIN is encapsulated and transmitted to the smart card where encapsulated data are decrypted. It enables to check the decrypted PIN code and, in case the decrypted PIN code is correct, sends a PIN approval to the terminal.
When a card is stolen, the thief generally does not know the PIN code. To by-pass this problem, the thief may introduce a fake card between the terminal and the stolen card. This malicious is known under the terms "card in the middle". The Fake card always answers OK on a verify PIN command. As the terminal believes the card status, it continues the transaction believing the PIN was checked.
The remaining of the transaction is performed normally between the terminal and the real card.
A similar security flaw exists with an encrypted PIN command. In this case, the EMV norm specifies that the terminal encapsulates the PIN in a
frame of size the modulus of the RSA key of the card (typically 1024 bits). Of course the invention is not restricted to the EMV norm but to any norm where the PIN code is encrypted.
The frame content comprises a standard 7F tag, a PIN block, an ICC challenge and a random padding.
The ICC challenge is typically an unpredictable Number previously generated and transmitted by the card to the terminal.
Next step consists, for the terminal, to encrypt the frame with the public RSA key of the card.
At the reception of the encrypted PIN, a real card decrypts the frame and performs three checks:
- Is the ICC challenge equal to the one it produced?
- Is the format correct? i.e. is the Header byte present and equal to
7F?
- If the format is correct, does the PIN in the PIN block match the one stored in the card?
If the PIN is correct, the real card sends OK. Otherwise it sends to the terminal a NOK.
A fake card may skip all the steps realized in a real card, i.e. the decryption step and the three-check steps and may return OK independently of the PIN value and of the frame format. Such a card is typically called "yes- card".
This flaw is due to the fact that the terminal does not perform any check.
A partial solution exists in the CDA model where, for some applications, the terminal resends the status of the PIN to the card. The card, supposed to be real controls that this status is the same than the internal one. This solution only works in CDA model. In any case no responsibility is conferred to the terminal and the terminal must consequently trust the card.
Further alternative and advantageous solutions would, accordingly, be desirable in the art.
SUMMARY OF THE INVENTION
The present invention aims in solving the security problem encountered in known solutions where checks are realized only on the smart card's side. Thus the present invention aims at avoiding the above- mentioned malicious attacks.
The present invention is defined as a method to manage and confirm a transaction using a terminal and a smart card having an associated PIN code and a pair of private/public keys, said smart card being interfaced with said terminal, said method comprising the steps of :
- for the terminal, requiring a PIN code to be entered by a user,
- for the terminal, encapsulating the PIN code in an EMV frame encrypted with the public key of the smart card,
- for the terminal, transmitting the encrypted EMV frame to the smart card,
- for the smart card, decrypting the encrypted EMV frame,
- for the smart card, checking the decrypted PIN code,
- for the smart card, in case the decrypted PIN code is correct, sending a PIN approval to the terminal, and a disapproval otherwise,
said method being characterized in that it further comprises steps of:
- for the terminal, before the encapsulation step, generating a terminal challenge, the encapsulation step being such that said terminal challenge is encapsulated with the PIN code in the EMV frame,
- for the smart card, after decryption of the EMV frame, checking the availability of the terminal challenge in the decrypted EMV frame,
- if available, for the smart card, returning the decrypted terminal challenge to the terminal,
- for the terminal, confirming transaction after reception and check of the PIN approval or disapproval and of the returned decrypted terminal challenge.
The invention exploits the fact that the card first transfers a public key to the terminal in order to enable the terminal to encrypt data before transmission. It is recognized that the terminal can trust the public key sent by the card as this key is certified by the certificate chain.
Transmission means between the card and the terminal are thus, minimally, able to transmit data of the size of such a public key and the protocol frame can be used for other purposes.
The invention exploits such a frame of size the modulus of the key, in general an RSA key, typically of 1024 bits.
As the RSA key size that is much bigger than the currently used frame content, a field is added in the frame according to the invention to enable the terminal to challenge the card.
As, with the invention, the card needs to decrypt the frame in order to be able to return the terminal challenge in addition with the PIN approval, it insures that the card owns the RSA private key.
A fake card will be unable to retrieve the terminal challenge with the PIN approval as it does not own the RSA private key. It will thus be unable to return it to the terminal. Yes-cards would thus be detected.
With the invention it is possible to verify that the terminal receives the right information and not a modified one from the card. Indeed, with the classical PIN protocol, the card provides an efficient control if the PIN presentation is granted or not. If granted, the card only sends yes and the terminal grants the transaction. With a man/card in the middle, the card could become easily a "yes" card whatever the PIN presentation and the terminal will pursue the transaction.
The originality of the invention is the use of the TUN, only known by the terminal and the card after decryption, to give the opportunity to remove this breach in the protocol. Indeed if the TUN received back by the terminal is not correct even if the card is saying that the PIN presentation is ok, an attack where someone is trying to break the EMV PIN protocol is detected.
According to an embodiment, said terminal challenge is a unpredictable number generated in the terminal.
This embodiment enables a simple implementation for the terminal challenge generation and terminal challenge management.
According to a preferred embodiment of the invention, in case the decrypted PIN code is not correct, the decrypted terminal challenge (TUN) is not returned by the smart card to the terminal.
This enables to avoid any risk of interception of the terminal challenge by a fake card that could use it to simulate the behavior of the real card.
In a particular embodiment, the smart card calculates a function of the unpredictable terminal number and returns the unpredictable terminal number through the return of this function.
This embodiment constitutes a variant to return the terminal unpredictable number.
The present invention also concerns a transaction terminal able to implement steps of the method of securely managing and confirming a transaction according to the invention and comprising a user interface enabling a user to enter a PIN code, an encapsulation module to encapsulate the PIN code in an EMV frame and a smart card interface enabling the terminal to transmit the EMV frame to a smart card for it to check the entered PIN code and to receive a PIN approval from the smart card, said transaction terminal being characterized in that it further comprises a terminal challenge generator, the encapsulation module being able to encapsulate the terminal challenge in the EMV frame while encapsulating the PIN code and to ask for the smart card to return the decrypted terminal challenge and in that it further comprises a confirmation module able to receive and check the PIN approval and the returned decrypted terminal challenge to confirm the transaction.
Such a device requires the return of the terminal challenge to confirm the transaction.
At last, the invention also concerns a smart card able to interact with a terminal of the invention and to implement the steps processed by the smart card in a method of the invention comprising a communication interface to receive an EMV frame, a decryption module to decrypt the EMV frame in order to extract a PIN code and a terminal challenge, the communication interface being such that the decrypted terminal challenge is sent to the terminal with the PIN approval or disapproval.
Such a smart card will enable the terminal to check its ability to decrypt the EMV frame and thus will enable to detect a fake card inserted between the terminal and a real card.
In a preferred embodiment, the communication interface is such that the decrypted terminal challenge is returned by the smart card only with a PIN approval.
This preferred embodiment enables not to return the TUN in case the decrypted PIN is not correct. It avoids any fake card to intercept the TUN and to use it to answer a fake answer to the terminal.
To the accomplishment of the foregoing and related ends, one or more embodiments comprise the features hereinafter fully described and particularly pointed out in the claims.
BRIEF DESCRIPTION OF THE DRAWINGS
The following description and the annexed drawings set forth in detail certain illustrative aspects and are indicative of but a few of the various ways in which the principles of the embodiments may be employed. Other advantages and novel features will become apparent from the following detailed description when considered in conjunction with the drawings and the disclosed embodiments are intended to include all such aspects and their equivalents.
• Figure 1 represents a flowchart of the method of the invention with a real card having decryption means;
• Figure 2A and 2B show respectively an EMV frame as used in the prior art and an EMV frame as used in the invention;
• Figure 3 represents a flowchart of the method of the invention with a fake card inserted between the terminal and a real card;
• Figure 4 schematically shows a terminal of the invention interacting with a smart card of the invention.
DETAILED DESCRIPTION OF EMBODIMENTS OF THE INVENTION
In the following detailed description, reference is made to the accompanying drawings that show, by way of illustration, specific embodiments in which the invention may be practiced. These embodiments are described in sufficient detail to enable those skilled in the art to practice the invention. The following detailed description is, therefore, not to be taken in a limiting sense, and the scope of the present invention is defined only by the appended claims, appropriately interpreted, along with the full range of equivalents to which the claims are entitled. In the drawings, like numerals refer to the same or similar functionality throughout the several views. Moreover, when an action is said to be performed by a device, it is in fact executed by a microprocessor in this device controlled by instruction codes recorded in a program memory on the said device.
FIG. 1 is a flowchart of the method of the invention. The user has previously made a smart card SC interacts with a terminal T. A PIN code, here 1234, is associated to the smart card SC. Besides the smart card SC has a pair of private/public keys of which the public one is transferred to the terminal T at the beginning of the transaction.
In a first step E1 of the invention, the user is asked by the terminal to enter his PIN code XXXX.
In a second step E2, the terminal is generating G(TUN) a challenge. In the example of figure 1 , the challenge is an unpredictable number TUN.
Then, in a step E3, the entered PIN code and the unpredictable number TUN is encapsulated ENC is an EMV frame EF(XXXX, TUN).
Figure 2A schematically shows an example of an EMV frame EFC having an RSA format of the length RSA_L of the key used by the smart card, typically an RSA key. The EMV norm is such that communications between terminal and smart card can be carried by such frame of the size of the modulus of an RSA key as used on smart card, typically 1024 bits. It enables among other to the smart card SC to send the public key of the smart card SC to the terminal T in order for it to encrypt the subsequently
exchanged frames. It is here noted that the public key can also be transmitted in the certificate associated or not with supplementary data.
The length of the RSA key is much bigger than the useful part of the frame constituted by a 7F tag, an unpredictable number UN and the entered PIN XXXX. The rest of the frame comprises padding PAD. The unpredictable number was previously received from the card SC and is returned by the terminal T to the card SC for it to check the legitimacy of the terminal T.
The invention exploits the fact that the RSA key size is much bigger than the useful current content. Plenty of room exists to add a field.
Figure 2B shows an EMV frame EFI of the invention. A field comprising the terminal unpredictable number TUN is added.
After encryption using the public key of the smart card SC in step E3, the EMV frame of the invention EF(XXXX,TUN) is sent to the smart card SC according to the EMV norm.
In case, the card SC in interaction with the terminal is a real card, it decrypts DEC the EMV frame EF(XXXX, TUN) in a step E4 of the invention.
In a step E5, the entered PIN code is then compared to the PIN code 1234 associated with the smart card SC. In case it matches, an OK is sent to the terminal T. In case it does not match, a NOK is sent to the terminal T. The sending of the OK or the NOK is completed according to the invention with the terminal unpredictable number TUN as found in the decrypted EMV frame.
Nevertheless, in a preferred embodiment, when the card is sending a NOK, the card is not sending the TUN. This avoids any interception of the TUN by a fake card when the decrypted PIN is not the right one. In this embodiment, the TUN is sent in clear by the card only when the PIN verification is correct, in all other cases a NOK only is returned.
While receiving the answer of the smart card SC, the terminal checks the approval OK or disapproval NOK of the PIN code by the smart card SC in a step E6. In case it matches, the terminal T also checks the presence of the terminal unpredictable number TUN and the matching with the previously sent one in a step E7. It can admit two successive NOK, N1 and N2 in the
presence of the right terminal unpredictable number, but the third will generate a refusal REF of the transaction in a step ER. In case an OK is received, the transaction is accepted ACC in a step EA.
However, if ever an incorrect TUN is received, the terminal considers that the card is a fake one and rejects the transaction. This decision is taken once an incorrect TUN is received. There is no need of any ratification counter.
FIG. 3 shows a flow chart of the invention in case a fake Yes-card FK was inserted between the terminal T and a real smart card SC. While receiving the EMV frame EF, case Y, the fake card FC automatically sends an OK to the terminal T in a step E10, not included in the method of the invention. As the terminal T, previously to any approval of the transaction, checks the availability of the terminal unpredictable number TUN in the answer returned by the smart card SC in step E7, the transaction will not be accepted with the simple OK from the fake card FC as checked in step E6. The invention enables to counter this malicious behavior.
Even if the fake card FC transmits other commands OC than the encrypted EMV frame, the invention while not changing in any kind the format used to ask for a PIN code approval enables to detect a fake Yes- card.
Therefore, the method according to the present invention allows reducing the risks of malicious attacks. At least, the attacks are more complex to carry out for a malicious attacker.
It has to be further noted that the invention can cohabitate with less up-to-date terminals. Indeed, an up-to-date smart card having the function to process the TUN, will also be able to process EMV frame even if the TUN was not inserted by the terminal T. The security threads would still exist with such terminals but the possibility to make several type of terminals cohabitate is always interesting.
It is also possible to make the terminal able to check the card by reading records in order to know if it is an old version or not. Such a terminal
will then be able to send one format with the TUN or the other one depending of the type of the card. This nevertheless can cause security leaks.
Figure 4 shows schematically a terminal T and a smart card SC of the invention. The transaction terminal T is intended to securely manage and confirm a transaction according to a method of the invention. For this purpose, it comprises a user interface Ul enabling a user to enter a PIN code XXXX, typically a keyboard. It also comprises an encapsulation module ENC to encapsulate the PIN code in an EMV frame and a smart card interface SCI enabling the terminal to transmit the EMV frame to a smart card SC for it to check the entered PIN code XXXX. Said interface SCI also serves to receive a PIN approval from the smart card SC.
According to the invention, the transaction terminal T further comprises a terminal challenge generator G(TUN). Furthermore, the encapsulation module ENC is able to encapsulate the terminal challenge TUN in the EMV frame while encapsulating the PIN code XXXX. Then it asks the smart card SC to return the decrypted terminal challenge TUN. It needs the TUN to confirm the transaction.
It thus comprises a confirmation module CM able to receive and check the PIN approval and the returned decrypted terminal challenge TUN to confirm the transaction.
Besides, the smart card is able to interact with the terminal T and comprises a communication interface ISC to communicate with the terminal to receive an EMV frame. It also comprises a decryption module DC to decrypt the EMV frame in order to extract a PIN code XXXX and a terminal challenge TUN. According to the invention, the communication interface ISC is such that the decrypted terminal challenge TUN is sent to the terminal T with the PIN approval or disapproval.
According to a preferred feature, the terminal challenge TUN is sent to the terminal T only with a PIN approval and never with a PIN disapproval to avoid any malicious capture of the TUN.
In addition, it is to be understood that the location or arrangement of individual elements within each disclosed embodiment may be modified
without departing from the spirit and scope of the invention. The above detailed description is, therefore, not to be taken in a limiting sense, and the scope of the present invention is defined only by the appended claims, appropriately interpreted, along with the full range of equivalents to which the claims are entitled.
In particular, it has to be noted that the return of the TUN can take the form of a return of a function of the TUN, for example SHA-I (TUN), without departing from the scope of the invention. The man skilled in the art will recognize that this is an obvious variant to return the terminal unpredictable number.
Claims
1 . Method to manage and confirm a transaction using a terminal (T) and a smart card (SC) having an associated PIN code (1234) and a pair of private/public keys, said smart card (SC) being interfaced with said terminal (T), said method comprising the steps of:
- for the terminal (T), requiring (E1 ) a PIN code (XXXX) to be entered by a user,
- for the terminal (T), encapsulating (E3) the PIN code (XXXX) in an EMV frame (EF) encrypted with the public key of the smart card (SC),
- for the terminal (T), transmitting the encrypted EMV frame (EF) to the smart card (SC),
- for the smart card (SC), decrypting (E4) the encrypted EMV frame (EF),
- for the smart card (SC), checking (E5) the decrypted PIN code (XXXX), - for the smart card (SC), in case the decrypted PIN code (XXXX) is correct, sending a PIN approval (OK) to the terminal (T), and a disapproval (NOK) otherwise,
said method being characterized in that it further comprises steps of:
- for the terminal (T), before the encapsulation step (E3), generating (E2) a terminal challenge (TUN), the encapsulation step (E3) being such that said terminal challenge (TUN) is encapsulated with the PIN code in the EMV frame (EF(XXXX,TUN)),
- for the smart card (SC), after decryption of the EMV frame (EF(XXXX,TUN)), checking the availability of the terminal challenge (TUN) in the decrypted EMV frame,
- if available, for the smart card (SC), returning the decrypted terminal challenge (TUN) to the terminal (T),
- for the terminal (T), confirming transaction after reception and check of the PIN approval or disapproval (OK, NOK) and of the returned decrypted terminal challenge (TUN).
2. Method according to claim 1 , wherein said terminal challenge is an unpredictable number generated in the terminal (T).
3. Method according to one of claims 1 or 2, wherein, in case the decrypted PIN code (XXXX) is not correct, the decrypted terminal challenge
(TUN) is not returned by the smart card (SC) to the terminal (T).
4. Method according to one of claims 1 to 3, wherein the smart card calculates a function of the unpredictable terminal number and returns the unpredictable terminal number through the return of this function.
5. Transaction terminal (T) intended to securely manage and confirm a transaction according to a method as claimed in one of claims 1 to 4, comprising a user interface (Ul) enabling a user to enter a PIN code (XXXX), an encapsulation module (ENC) to encapsulate the PIN code in an EMV frame and a smart card interface (SCI) enabling the terminal to transmit the EMV frame to a smart card (SC) for it to check the entered PIN code (XXXX) and to receive a PIN approval from the smart card (SC), said transaction terminal (T) being characterized in that it further comprises a terminal challenge generator (G(TUN)), the encapsulation module (ENC) being able to encapsulate the terminal challenge (TUN) in the EMV frame while encapsulating the PIN code (XXXX) and to ask for the smart card (SC) to return the decrypted terminal challenge (TUN) and in that it further comprises a confirmation module (CM) able to receive and check the PIN approval and the returned decrypted terminal challenge (TUN) to confirm the transaction.
6. Smart card (SC) able to interact with a terminal (T) as claimed in claim 5 and to implement the steps processed by the smart card (SC) in a method as claimed in one of claims 1 to 4, comprising a communication interface (ISC) to receive an EMV frame, a decryption module (DC) to decrypt the EMV frame in order to extract a PIN code (XXXX) and a terminal challenge (TUN), the communication interface (ISC) being such that the
decrypted terminal challenge (TUN) is sent to the terminal (T) with the PIN approval or disapproval.
7. Smart card (SC) according to claim 6, wherein the communication interface is such that the decrypted terminal challenge (TUN) is returned by the smart card (SC) only with a PIN approval.
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| EP12306154.1A EP2711903A1 (en) | 2012-09-24 | 2012-09-24 | Method to securely manage and confirm a transaction |
| EP12306154.1 | 2012-09-24 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2014044841A1 true WO2014044841A1 (en) | 2014-03-27 |
Family
ID=47010452
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/EP2013/069691 Ceased WO2014044841A1 (en) | 2012-09-24 | 2013-09-23 | Method to securely manage and confirm a transaction |
Country Status (2)
| Country | Link |
|---|---|
| EP (1) | EP2711903A1 (en) |
| WO (1) | WO2014044841A1 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP3145116B1 (en) * | 2015-09-17 | 2020-04-15 | IDEMIA France | Method and system for terminal to secure element communication |
-
2012
- 2012-09-24 EP EP12306154.1A patent/EP2711903A1/en not_active Withdrawn
-
2013
- 2013-09-23 WO PCT/EP2013/069691 patent/WO2014044841A1/en not_active Ceased
Non-Patent Citations (2)
| Title |
|---|
| HUSEMANN D: "Standards in the smart card world", COMPUTER NETWORKS, ELSEVIER SCIENCE PUBLISHERS B.V., AMSTERDAM, NL, vol. 36, no. 4, 16 July 2001 (2001-07-16), pages 473 - 487, XP004304910, ISSN: 1389-1286, DOI: 10.1016/S1389-1286(01)00167-0 * |
| JEAN PAUL DEGABRIELE ET AL: "On the Joint Security of Encryption and Signature in EMV", 1 January 2012, TOPICS IN CRYPTOLOGY CT-RSA 2012, SPRINGER BERLIN HEIDELBERG, BERLIN, HEIDELBERG, PAGE(S) 116 - 135, ISBN: 978-3-642-27953-9, XP019173577 * |
Also Published As
| Publication number | Publication date |
|---|---|
| EP2711903A1 (en) | 2014-03-26 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11516191B2 (en) | Method of and system for secure data export from an automotive engine control unit | |
| JP7706455B2 (en) | Contactless Card Personal Identification System | |
| US7735132B2 (en) | System and method for encrypted smart card PIN entry | |
| US9413535B2 (en) | Critical security parameter generation and exchange system and method for smart-card memory modules | |
| CN103763631B (en) | Authentication method, server and television set | |
| CN103067333B (en) | The method of proof machine top box access identity and certificate server | |
| CN103714639A (en) | Method and system enabling safe operation of POS terminal to be achieved | |
| WO2012072704A1 (en) | Key transport protocol | |
| KR20170042549A (en) | Method for the authentication of a first electronic entity by a second electronic entity, and electronic entity implementing such a method | |
| EP1886438A1 (en) | Method for inclusive authentication and management of service provider, terminal and user identity module, and system and terminal device using the method | |
| CN106912046A (en) | One-pass key card and vehicle pairs | |
| CN101789068A (en) | Card reader safety certification device and method | |
| US9986308B2 (en) | Method and device to embed watermark in uncompressed video data | |
| CN117792802B (en) | Identity verification and application access control method and system based on multi-system interaction | |
| CN102082669A (en) | Security certification method and device | |
| US20060053288A1 (en) | Interface method and device for the on-line exchange of content data in a secure manner | |
| CN110932951B (en) | Intelligent household control method and device | |
| JP5622668B2 (en) | Application authentication system, application authentication method | |
| EP2711903A1 (en) | Method to securely manage and confirm a transaction | |
| CN104636681B (en) | Safe transmission method and device for banknote storage data | |
| EP2362574A1 (en) | Key correspondence verification in device-smart card systems | |
| CN105119940A (en) | Authentication method based on local authentication 802.1x authentication system and authentication equipment | |
| KR101663852B1 (en) | Device of conducting electric transaction using sam card directly performing electric transaction process and method thereof | |
| CN113285950A (en) | Encryption card-based key transmission and storage method | |
| JP2002300153A (en) | Authentication method, terminal functional element, terminal device, server, and authentication system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 13766292 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 13766292 Country of ref document: EP Kind code of ref document: A1 |