Aspects of the present disclosure are generally related to access control systems and are particularly directed to providing enhanced security for contactless access card systems.
Contactless “smart” cards (“contactless cards”) derive their name from their ability to be read by a card reader without contacting the card reader by bringing the card in relatively close proximity to the card reader. For this reason, contactless cards may sometimes be referred to as proximity cards or vicinity cards. The distance between the card and the card reader may depend on the type of contactless card and communication protocols employed by the card and the card reader. For example, the distance between the contactless card and the card reader may be as far as 6 feet (2 meters), may be up to 15 inches (50 centimeters), or may be as close as 1-3 inches (2-10 centimeters). Some types of contactless cards may be passive and thus powered by the wireless signals received from the card reader. Other types of contactless cards may be active and powered by an internal power source. To protect the data stored on contactless cards, security mechanisms are needed.
To overcome the challenges described above, techniques for enhancing the security of contactless access card systems are provided. A unique identifier of an access card is used to generate an operation key that is encrypted and stored to the access card as well as multiple keys that are used to protect the operation key. One of the generated keys is employed as a cryptographic key that is used to encrypt and decrypt the operation key. Another one of the generated keys is used to replace a default key that controls access to a memory sector that stores the encrypted operation key at the access card. One of the generated keys may also be an initialization vector used when encrypting and decrypting the operation key.
The keys may be generated using one or more secret key generation algorithms. A provisioning process may read the unique identifier from the access card and use the unique identifier to generate the operation key and the corresponding keys. A card reader may be configured with the same key generation algorithms. When the card reader detects the presence of the access card, the card reader may read the unique identifier from the access card and use it with the key generation algorithms to generate the keys necessary to read the encrypted operation key from the access card and decrypt it. The card reader may also validate the operation key in order to determine whether access should be granted or denied.
This summary is not intended to identify critical or essential features of the disclosures herein, but instead merely summarizes certain features and variations thereof. Other details and features will also be described in the sections that follow.
Some features herein are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which like reference numerals refer to similar elements.
In the following description of the various embodiments, reference is made to the accompanying drawings identified above and which form a part hereof, and in which is shown by way of illustration various embodiments in which aspects described herein may be practiced. It is to be understood that other embodiments may be utilized and structural and functional modifications may be made without departing from the scope described herein. Various aspects are capable of other embodiments and of being practiced or being carried out in various different ways.
As noted above, security mechanisms are needed to protect the data stored on a contactless card. Some contactless cards may be manufactured and configured with certain security mechanisms to protect the data stored on the contactless card and to protect the communications between the contactless card and the card reader. The present disclosures provide means for providing enhanced security mechanisms in addition to any existing security mechanisms present in a contactless card. For example, the enhanced security mechanisms may provide additional security at the application layer on top of any existing security between the card and the card reader. These enhanced security mechanisms thus mitigate the risk of exposing, to unauthorized entities, the data stored on the contactless card or the content of the communications between the card and the card reader.
The enhanced security mechanisms provided herein are described by way of example in the context of a contactless access control system. The contactless card is thus referred to in this example context as a “contactless access card” or simply an “access card.” In this example context, the card reader may be in signal communication with an access control device (e.g., an electronic door lock) and the contactless access card may be employed to obtain access via the access control device (e.g., by unlocking the door when the access card is presented to the card reader). It should be appreciated, however, that the enhanced security mechanisms disclosed herein may be employed in other contexts that involves contact between the card and card reader, e.g., where the card is inserted into the card reader. It should also be appreciated that the enhanced security mechanisms disclosed herein may be employed in contexts other than access control systems. The enhanced security mechanisms described herein may be employed to enhance the security of contactless cards and contact cards in a wide variety of applications. Some examples include personal identification (e.g., ID badges), electronic payments (e.g., credit or debit payments), electronic ticketing (e.g., transit passes), computer security (e.g., cryptographic key storage), tracking (e.g., attendance), record keeping (e.g., electronic health records), and the like.
Turning now to
As seen in
The access control system 100, in this example, also includes an access card provisioning system 108 and an access control server 110. The card reader 104 may be in signal communication with the access control server 110 via a network 112. The network 112 may include multiple wired and/or wireless networks including, for example, one or more of a local area network (LAN), a wide area network (WAN) such as the Internet, a cellular network, a satellite network, and the like. As described in further detail below, the access control server 110 may be utilized to perform authentication procedures and/or authorization procedures (e.g., by enforcing access control rules). The authentication and/or authorization procedures performed by the access control server 110 may be performed in addition to or in lieu of any authentication and/or authorization procedures performed by the card reader 104. As also described in further detail below, the access card provisioning system 108 may be utilized to provision the access card 102 with the data that enhances the security of the access card when presented to the card reader 104. The same entity may provide and operate both the access control server 110 and the access card provisioning system 108, e.g., the manufacturer of the access card 102 and the card reader 104. Accordingly, the access card provisioning system and the access control server 110 may, in some cases, reside in the same physical and/or logical computer system and/or on the same physical and/or logical computer network, e.g., the same computer system and/or computer network of the manufacturer. In some circumstances, however, different entities may respectively provide and operate the access card provisioning system 108 and the access control server 110. For example, the manufacturer of the access card 102 and the card reader 104 may provide and operate the access card provisioning system 108 while the purchaser of the access card and card reader provides the access control server 110 (e.g., to establish purchaser-specific access control rules). Example access control servers and access control systems are described in commonly-owned U.S. Pat No. 9,077,716; U.S. Pat. No. 9,047,624; U.S. Pat. No. 9,781,599; and U.S. Pat. No. 10,529,156.
In
In the example access card 102 shown in
To provide enhanced security at the access control system 100, the access card 102, in this example, also stores an encrypted operation key 120 in another memory sector, e.g., memory sector 1141. As described in further detail below, the card reader employs an operation key 122 (
As seen in the example 16-bit operation key above, the bytes of the access card UID are arranged non-sequentially in the operation key, e.g., a set of fixed characters (in Byte 8 and Byte 9) are positioned in between a first pair of bytes of the access card UID (in Byte 6 and Byte 7) and a second pair of bytes of the access card UID (in Byte 10 and Byte 11). Put differently, the bytes of the access card UID are distributed in the operation key in a non-contiguous fashion. The bytes of the operation key corresponding to the fixed characters and the manufacturing code, in this example, are interleaved with the bytes of the operation key that correspond to the bytes of the access card UID. The process of encrypting the operation key 122 and decrypting the encrypted operation key 120 will be described in further detail below with reference to
Still referring to
If the card reader 104 successfully validates the operation key 122, the card reader may provide an indication of granted access. The card reader 104 may provide the indication of granted access to the access control device 106 and/or the access control server 110. The access control device and/or access control server 110 may apply one or more access control rules 126 before providing the indication of granted access. If an access control rule 126 indicates access should not be granted, the card reader 104 may not provide the indication of granted access even if the operation key 120 is successfully validated. Where the access control device 106 is an electronic lock, for example, the indication of granted access may be a command to toggle to an unlocked state. Access control rules may specify, for example, date(s) and/or time(s) during which access is permitted and/or prohibited. Access control rules may apply globally to all users, semi-globally to certain types of users, or specifically to individual users. Some examples of access control rules are described in commonly-owned U.S. Pat. No. 9,077,716. Additional and alternative examples of other types of indications of granted access will be appreciated with the benefit of this disclosure.
To provide enhanced security at the access control system 100, the access card 102, in this example, further stores a replacement key (KEY1) 124 in the memory sector 1141 that stores the encrypted operation key 120. The replacement key 124 is referred to as such because it replaces the default key that controls read access to the memory sector 1141 that stores the encrypted operation key 120. In other words, the replacement key 124 overwrites the default key that originally controls read access to memory sector 1141 of the access card 102. The default key may be originally written to the memory sector during manufacture of the access card. In this way, the card reader 104 may not read the encrypted operation key 120 from the access card 102 unless the card reader provides or otherwise indicates the key that controls read access to the memory sector that stores the encrypted operation key, e.g., replacement key 124 for memory sector 1141 in this example. The replacement key 124 may be, for example, a 48-bit key Like the operation key 120, and as also described in further detail below, the replacement key 124 may also be generated based on the UID 118 of the access card. The replacement key 124 may also be generated based on one of multiple hardcoded embedded keys 128 (collectively) that are embedded in the firmware of the card reader 104, e.g., embedded key 1281. Embedded key 1281 may thus also be, for example, a 48-bit hardcoded key that is embedded in the firmware of the card reader 104. The embedded keys 128 may be stored at different memory locations in the firmware of the card reader 104. The embedded keys 128 may be unique to the card reader 104. In other words, the embedded keys 128 may be device-specific embedded keys. The embedded keys 128 may be generated and stored in the firmware of the card reader 104 during manufacture of the card reader.
The operation key 122 and the replacement key 124 may be generated during a provisioning process. This provisioning process may involve encrypting the operation key 122 to obtain the encrypted operation key 120, writing the encrypted operation key to a memory sector of the access card (e.g., memory sector 1141), and replacing the default key that controls read access to that memory sector with the replacement key 124 (e.g., overwriting the default key). As noted above, both the operation key 122 and the replacement key 124 may be based on the UID 118 of the access card 102. As also noted the replacement key 124 also may be based on a hardcoded embedded key 1281 that is embedded in the firmware of the card reader 104.
One or more key generation algorithms 130 may be employed to generate the replacement key 124. Both the card reader 104 and the access card provisioning system 108 may be configured with the key generation algorithm(s) 130. The access card provisioning system 108 may employ the key generation algorithm(s) 130 during the provisioning process that provisions the access card 102 with the encrypted operation key 120 and the replacement key 124.
The card reader 104 may and employ the key generation algorithm(s) 130 when authenticating and authorizing the access card 102 to grant or deny access via, e.g., the access control device 106. The key generation algorithm(s) may be proprietary (e.g., secret, private) key generation algorithms known only to the entity that manufactures the access cards and card readers and/or to the entity that provisions the access cards with their respective operation keys and replacement keys. One or more key generation algorithms may be employed. For example, a single key generation algorithm may be configured to generate different types of keys, e.g., a 48-bit key and a 128-bit key. As another example, one key generation algorithm may be configured to generate a first type of key (e.g., a 48-bit key), and another key generation algorithm may be configured to generate a second type of key (e.g., a 128-bit key). The key generation algorithm(s) 130 may take as input the UID 118 of the access card 102 and, in some examples, one or more of the embedded keys 128 of the card reader 104. The key generation algorithm(s) 130 may provide as output one or more keys.
In addition to the replacement key 124 (KEY1), the key generation algorithm(s) may also generate two additional keys used to encrypt the operation key 122 and decrypt the encrypted operation key 120. For example, with brief reference to
Turning to
Because the card reader 104 is configured with the one or more key generation algorithm(s), the card reader need not persistently store the cryptographic key 132 or the initialization vector 134. Rather, the card reader 104 may instead dynamically generate the cryptographic key 132 and the initialization vector 134 in an ad hoc fashion based on detecting the presence of an access card (e.g., access card 102) and obtaining a UID (e.g., UID 118) of the access card. In addition, because the replacement key 124, cryptographic key 132, and initialization vector 134 are each based on the UID 118 of the access card 102, each access card may be associated with a unique replacement key, cryptographic key, and initialization vector. Furthermore, because the card reader 104 includes the key generation algorithm(s), it is advantageously equipped to authenticate and authorize multiple access cards without the need to store multiple keys respectively associated with those access cards.
The enhanced security features described herein thus mitigate the risk of unauthorized access by cloning an access card because, without the replacement key, the memory sector storing the encrypted operation key cannot be read. To mitigate the risk that the replacement key is exposed during the authentication process (e.g., by “sniffing” the communications exchanged between the access card and card reader), the sensitivity of the card reader may be reduced so as to require close proximity between the access card and card reader in order for the card reader to detect the presence of the access card. For example, the sensitivity of the card reader may be configured such that the access card must be within 2-3 millimeters in order for the card reader to detect its presence. The risk of unauthorized access is also mitigated by, for example, the secret nature of the key generation algorithm(s) used to generate the replacement keys, the cryptographic keys, and the initialization vectors. The risk of unauthorized access is further mitigated by the secret nature of the AES-CBC encryption/decryption processes used to encrypt and decrypt the operation keys. In addition, the risk of unauthorized access is mitigated by the particular format of the operation key, including the particular arrangement of the bytes of the operation key, which must be validated before access is granted.
Referring now to
To begin, the UID of the access card may be read (502). For example, a card reader (e.g., similar to card reader 104) or some other card-reading equipment may be used to read the UID from the access card. Having read the UID, a replacement key (e.g., replacement key 124), a cryptographic key (e.g., cryptographic key 132), and an initialization vector (e.g., initialization vector 134) may be generated (504) using one or more key generation algorithms as described above. Generating the replacement key and the cryptographic key may include obtaining one or more hardcoded embedded keys (e.g., embedded keys 128) that are embedded in the firmware of the card reader. The embedded keys may be obtained, for example, by reading the embedded keys from the firmware of the card reader itself. As described above, the key generation algorithm(s) may use the UID of the access card and the embedded keys of the card reader to respectively generate the replacement key and the cryptographic key. The operation key may also be generated based on the UID of the access card (506).
Having generated the operation key, the cryptographic key and the initialization vector may be used to encrypt the operation key (508), e.g., using an AES-CBC encryption process. The encrypted operation key may then be written to a memory sector of the access card (510). The default key for that memory sector may then be replaced (e.g., overwritten) with the replacement key generated using the UID of the access card (512). Having written the encrypted operation key and replacement key to the access card, the access card is thus provisioned with additional security features that provide enhanced security at the application layer of an access control system.
Referring now to
The determination of whether to grant access may include both an authentication procedure and, optionally, an authorization procedure. The authentication procedure may involve authenticating the access card by successfully reading the encrypted operation key from the access card, successfully decrypting the encrypted operation key, and validating the decrypted operation key. Even if the operation key is validated, however, an authorization procedure may be performed to determine whether one or more access control rules restrict or permit access based on desired criteria. For example, access control rules may restrict or permit access based on date, date range, time, timeframe, user type, and the like. The example steps shown in the flowchart 600 of
To begin, an access card is presented to the card reader (602). When the access card is a sufficient distance away from the card reader, the card reader may detect the presence of the access card (604). As noted above, the distance between the access card and the card reader may depend on the sensitivity of the access card reader. Having detected the presence of the access card, the card reader may read the UID from the access card (606). With the UID the card reader may then generate the replacement key that controls access to the memory sector that stores the encrypted operation key in the access card (608). As described above, the card reader may include the same key generation algorithm(s) used to provision the access card with the replacement key.
Using the replacement key, the card reader may read the encrypted operation key from the appropriate sector of the access card (610). The card reader may also generate the cryptographic key (612) and generate the initialization vector (614) used to decrypt the encrypted operation key. It will be appreciated that the card reader need not wait until the encrypted operation key is read to generate the cryptographic key and/or initialization vector. For example, the card reader may generate the cryptographic key and/or initialization vector based on reading the UID of the access card. The card reader may use the generated cryptographic key and, if necessary, initialization vector, to decrypt the encrypted operation key obtain the original operation key generated for the access card (616). The card reader may then validate the format of the operation key (618). As described above, validating the format of the operation key may include determining whether a sequence of bytes in the operation key match an expected sequence of bytes. As also described above, the sequence of bytes of the operation key may depend on the UID of the access card.
If the card reader successfully validates the operation key (620:Y) and there are no custom access control rules to apply and enforce (622:N), then the card reader may provide an indication of granted access (624). It should be appreciated that, even if there are no custom access control rules to apply and enforce, one or more default access control rules may be applied and enforced. An example of a default access control rule may permit access twenty-four hours a day, seven days a week (“24/7 access”). Providing a default access control rule (e.g., “24/7 access”) may be advantageous such that the system architecture is configured to apply and enforce one or more access control rule(s) whereby default access control rules can be conveniently replaced with customized access control rules without modifying the underlying system architecture. It should also be appreciated, however, that the system architecture may be configured such that it does not apply any access control rules and provides an indication of granted access based on successfully validating the operation key. As described above, the indication of granted access may be provided to an access control device (e.g., an electronic door lock). Upon receipt of the indication of granted access, an access control device may permit access (e.g., an electronic lock my toggle to an unlocked state). The indication of granted access may also include an audible indication (e.g., sounding a bell), a visual indication (e.g., activating a green light, displaying a message on an electronic display), and/or a message to another component of the access control system, e.g., to an access control server for logging, notification, and other types of responses. The card reader may also provide the indication of granted access (624) if there exist applicable access control rules (622:Y), and those access control rules indicate access is permitted (626:Y).
If the card reader does not successfully validate the operation key (620:N), or if any applicable access control rules indicate access is not permitted (626:N), then the card reader may provide an indication of denied access (628). The indication of denied access may likewise include one or more of an audible indication (e.g., sounding a buzzer), a visual indication (e.g., activating a red light, displaying a message on an electronic display), and/or a message to another component of the access control system, e.g., to an access control server for logging, notification, and other types of responses.
As described above the card reader itself and/or the access control server may store access control rules that may be applied and enforced during this authorization procedure. Accordingly, the card reader may be configured to query the access control server for any applicable access rules and/or query the access control server for an indicated of granted or restricted access. In other words, the access control server may provide the card reader with one or more access rules to apply, and the card reader may apply and enforce the access control rules received from the access control server. Additionally or alternatively, the card reader may persistently store access control rules that it applies and enforces without querying the access control server.
In some examples, the access control server rather than the card reader may make the determination of whether to grant or deny access. In other words, this determination may be delegated to the access control server and the card reader may simply function to read the encrypted operation key from the access card. Accordingly, the authentication and authorization procedures may be delegated entirely to the card reader, shared between the card reader and the access control server, or delegated entirely to the access control server. As one example, the card reader may be configured to both perform the authentication procedure by reading the access card an validating the operation key and perform the authorization procedure by applying and enforcing any application access control rules without the involvement of an access control server.
As another example, the access card reader may be configured to read the access card and validate the operation key and send a message to the access control server that the operation key has been validated which, in response, applies any applicable access control rules and sends a message back to the card reader indicating whether access should be granted or denied. The opposite configuration is also possible—the card reader may read the access card and send the encrypted operation key to the access control server which, in response, decrypts the encrypted operation key and validates it. The access control server may then send a message back to the card reader indicating that the operation key was successfully validated. In response, the card reader may apply any applicable access control rules to determine whether to grant or deny access.
As a further example, the access control server may be configured to perform both the authentication and authorization procedures. In this example, the card reader may simply read the encrypted operation key and send it to the access control server for decryption and validation. Having successfully validated the operation key and applied any applicable access control rules, the access control server may send a message back to the card reader indicating whether to grant or deny access.
The techniques described herein need not be limited to protecting an encrypted operation key stored on the access card. The techniques described herein may additionally and alternatively be employed to protect any data that might be stored in one or more of the memory sectors of the access card. Such data may be stored in encrypted or plaintext form at the access card. Furthermore, multiple replacement keys may be generated and used to replace multiple default keys respectively stored at the access card and used to control read access of a corresponding memory sector of the various memory sectors of the access card. Accordingly, the one or more key generation algorithms described herein may be configured to generate multiple replacement keys. In addition, multiple operation keys may be generated and stored at the access card. For example, one operation key may be generated for one card reader while another operation key may be generated for another card reader. In this way, a single access card may be configured for use with multiple card readers. As another example, one operation key may be generated to provide a one level or type of access while another operation key may be generated to provide another level or type of access.
Referring now to
One or more aspects of the disclosure may be embodied in computer-usable or readable data and/or computer-executable instructions, such as in one or more program modules, executed by one or more computers or other devices as described herein. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types when executed by a processor in a computer or other device. The modules may be written in a source code programming language that is subsequently compiled for execution, or may be written in a scripting language such as, e.g., HTML, XML, JavaScript, and the like. The executable instructions may be stored on a computer readable medium such as a hard disk, optical disk, removable storage media, solid state memory, RAM, ROM, etc. In some examples, the instructions may be stored on a tangible computer-readable storage medium, which, is expressly defined herein to include storage devices or storage discs and to exclude transmission media and propagating signals. The functionality of the program modules may be combined or distributed as desired in various embodiments. In addition, the functionality may be embodied in whole or in part in firmware or hardware equivalents such as integrated circuits, field programmable gate arrays (FPGAs), and the like. Various data structures may be used to more effectively implement one or more aspects of the disclosure, and such data structures are contemplated to be within the scope of the executable instructions and computer-usable data described herein.
Aspects of the disclosure have been described in terms of illustrative embodiments thereof. While illustrative systems, devices, and methods as described herein embodying various aspects of the present disclosure are shown, it will be understood that the disclosure is not limited to these embodiments. Modifications may be made particularly in light of the foregoing teachings. For example, the steps illustrated in the illustrative figures may be performed in other than the recited order, and one or more steps illustrated may be optional in accordance with aspects of the disclosure. It will also be appreciated and understood that modifications may be made without departing from the true spirit and scope of the present disclosure. The description is thus to be regarded as illustrative instead of restrictive on the present disclosure.
This application is a continuation of U.S. patent application Ser. No. 16/901,582 entitled “Enhanced Security for Contactless Access Card System” and filed on Jun. 15, 2020, which is incorporated by reference herein in its entirety. The following commonly-owned patents and/or patent application publications are hereby incorporated by reference in their entirety: U.S. Pat. No. 9,580,931; U.S. Pat. No. 9,077,716; U.S. Pat. No. 9,047,624; U.S. Pat. No. 9,781,599; and U.S. Pat. No. 10,529,156.
Number | Date | Country | |
---|---|---|---|
Parent | 16901582 | Jun 2020 | US |
Child | 17695091 | US |