Portable electronic device and control method for portable electronic device
The IC card autonomously manages function disabling based on internal conditions, reducing administrative burdens by automatically disabling functions when necessary, enhancing security and efficiency.
Patent Information
- Application Number
- JP2023044691
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-20
- Publication Date
- 2024-10-03
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Conventional methods for disabling functions in IC cards require explicit human intervention or external commands, leading to administrative burdens.
A portable electronic device, such as an IC card, includes a processor that autonomously determines if disabling conditions are met, executing predefined processes to disable functions without external commands, using date data comparisons or flag settings to manage function availability.
This approach reduces user and administrative workload by enabling automatic disabling of functions, ensuring secure operation without manual intervention.
Smart Images

Figure 2024134405000001_ABST
Abstract
Description
[Technical field]
[0001] FIELD OF THE DISCLOSURE Embodiments of the present invention relate to portable electronic devices and methods for controlling portable electronic devices. [Background technology]
[0002] When disabling a function installed in a portable electronic device such as an IC card, a command to disable is generally sent explicitly to the IC card. Also, if a function is to be disabled when the IC card is issued, it can be disabled by processing a special management command (command) at the will of the issuer (issuer of the IC card). [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Patent Publication No. 2008-287602 Summary of the Invention [Problem to be solved by the invention]
[0004] That is, in the conventional technology, when a specific function of an IC card is to be disabled, a disable command other than a transaction command must be sent to the IC card during operation, which imposes a large management burden on the user or administrator.
[0005] To provide a portable electronic device and a method for controlling the portable electronic device, which can disable a specific function of the portable electronic device without requiring any manual means even during operation. [Means for solving the problem]
[0006] A portable electronic device according to an embodiment includes a processor that executes a first process according to a command received from an external device. The processor determines whether or not a disablement condition is satisfied when the command is received, and if the disablement condition is satisfied, executes the first process after executing a disablement process that disables a predetermined function of a second process different from the first process, and executes the first process without executing the disablement process if the first date data does not exceed the second date data. [Brief description of the drawings]
[0007] [Figure 1] 1 is a configuration diagram for explaining an example of an outline of an IC card processing system according to a first embodiment. [Diagram 2] 11 is a diagram showing an example of a management table stored in a storage unit of an IC card. FIG. [Diagram 3] 10 is a flowchart showing an example of the flow of an invalidation process according to the first embodiment. [Figure 4] 10 is a flowchart showing an example of the flow of command processing after invalidation processing according to the first embodiment. [Diagram 5] 10 is a flowchart showing an example of the flow of an invalidation process according to the second embodiment. [Figure 6] 13 is a flowchart showing an example of the flow of an invalidation process according to the third embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0008] Hereinafter, a portable electronic device and a control method for a portable electronic device according to an embodiment will be described with reference to the drawings. Note that parts with the same reference numerals perform similar operations, and duplicated descriptions will be omitted as appropriate. The following embodiments do not limit the disclosed technology. Each embodiment can be appropriately combined as long as the processing contents are not contradictory.
[0009] 1 is a configuration diagram for explaining an example of an outline of an IC card processing system S according to an embodiment. The IC card processing system S according to the embodiment includes an IC card 1 and an IC card processing device 2.
[0010] The IC card 1 is, for example, a card measuring 85.6 mm×54 mm×0.76 mm, and is a contact card that communicates when loaded into the IC card processing device 2, or a non-contact card that communicates when held over the IC card processing device 2. Alternatively, the IC card 1 is a combination card that supports both contact and non-contact types.
[0011] The IC card processing device 2 is installed at the entrance / exit of a facility such as a store or a station, and the IC card processing device 2 compatible with a combination or contactless IC card 1 communicates with the IC card 1 held by a user, transmits information to the IC card 1, and receives information from the IC card 1. The IC card processing device 2 also communicates with the inserted IC card 1, transmits information to the IC card 1, and receives information from the IC card 1. Many IC cards 1 are distributed on the market, and IC card processing devices 2 installed in various places communicate with the IC card 1 held by a user or the IC card 1 inserted.
[0012] As shown in FIG. 1, the IC card 1 includes a processor 11, a storage unit 12 (memory), and an interface 13. The processor 11 is a central processing unit (CPU) or the like, and executes various processes such as calculation and control based on a program stored in a program memory such as a read only memory (ROM) of the storage unit 12.
[0013] The processor 11 also includes an acquisition unit 111, a determination unit 112, a control unit 113, an output unit 114, and a count unit 115. The processor 11 operates based on a program stored in a program memory, and realizes the functions of each of these units.
[0014] In particular, the processor 11 realizes the functions of an acquisition unit 111, a determination unit 112, a control unit 113, and an output unit 114, and executes automatic invalidation processing of a specific function of the IC card 1 (hereinafter, also simply referred to as "automatic invalidation processing").
[0015] Here, the automatic invalidation process is a process that automatically invalidates a specific vulnerable function of the IC card 1 even during operation of the IC card 1, without requiring manual operation or an invalidation instruction from an external device such as the IC card processing device 2. In the following, for the sake of concrete explanation, it is assumed that the specific function targeted by the automatic invalidation process is a function used in the encryption process. However, other functions can also be adopted as the specific vulnerable function to be invalidated. The specific contents of the automatic invalidation process will be explained in detail later. Note that the operation command is an example of a first process, and the encryption process is an example of a second process.
[0016] The acquiring unit 111 acquires an external signal transmitted from an external device such as the IC card processing device 2 via the interface 13. For example, the acquiring unit 111 acquires a command transmitted from an external device such as the IC card processing device 2. The acquiring unit 111 also acquires various pieces of information stored in the storage unit 12.
[0017] In the automatic invalidation process, the determination unit 112 analyzes the command acquired by the acquisition unit 111. Furthermore, the determination unit 112 is triggered by the acquisition unit 111 acquiring a specific command, and uses the analysis result to determine whether or not the invalidation condition is satisfied.
[0018] Here, the invalidation condition is a condition for determining whether or not to execute invalidation of a specific function of the encryption process. In the first embodiment, the invalidation condition is, for example, a case in which date data received during an operational transaction exceeds a reference date. The reference date may be specified in advance from the outside, or may be implemented in the program as a predetermined date.
[0019] In the automatic invalidation process, when the determination unit 112 determines that the invalidation condition is satisfied, the control unit 113 invalidates a specific function of the encryption process. Specifically, when the determination unit 112 determines that the date data included in a command received during an operation transaction exceeds a reference date, the control unit 113 invalidates a specific function related to the encryption process. Note that invalidating a specific function includes at least one of resetting data related to the function, deleting data related to the function, and turning on an invalidation flag.
[0020] The output unit 114 outputs a predetermined response signal to the external device via the interface 13. For example, when the output unit 114 receives a command that uses a function that has been disabled by the automatic disabling process, the output unit 114 outputs an error response signal to the external device via the interface 13.
[0021] In response to the execution of an operation command by the control unit 113, the count unit 115 writes the number of times each operation command has been executed into the storage unit 12.
[0022] The storage unit 12 includes a ROM, a RAM (Random Access Memory), a non-volatile memory, etc., and the ROM and non-volatile memory, which are non-transient computer-readable media, store programs such as an operating system or application software for operating the processor 11. The ROM and non-volatile memory also store data used by the processor 11 when performing various processes. The RAM stores data temporarily used by the processor 11 when performing various processes.
[0023] In particular, the storage unit 12 stores a management table used in the automatic invalidation process.
[0024] Fig. 2 is a diagram showing an example of a management table stored in a memory unit of an IC card. In Fig. 2, "Data A" and "Data B" are data used in encryption processing, such as part of information used in access control (Basic Access Control: BAC) in symmetric encryption. Also in Fig. 2, "Address" indicates the location (address) in memory unit 12 where "Data A" and "Data B" are stored. "Data Length" indicates the length of each of the data, "Data A" and "Data B."
[0025] 2, it can be seen that data A is stored as data of 0x50 bytes length starting from address 0x100000. That is, data A is stored in addresses 0x100000 to 0x10004F.
[0026] 1, the interface 13 communicates with the IC card processing device 2, receives information from the IC card processing device 2, and transmits information to the IC card processing device 2. For example, the interface 13 receives external signals such as commands and reset request signals from the IC card processing device 2. In addition, the interface 13 outputs an error response signal from the output unit 114 to the IC card processing device 2.
[0027] As shown in FIG. 1, the IC card processing device 2 includes a processor 21, a storage unit 22, a card reader / writer 23, an operation unit 24, a display 25, and the like.
[0028] The processor 21 is a CPU or the like, and executes various processes such as calculation and control based on a program stored in a program memory such as a ROM of the storage unit 22. The processor 11 operates based on a program stored in the program memory.
[0029] The processor 21 transmits a command and a reset request signal to the IC card 1 via the card reader / writer 23. The processor 21 executes various processes based on a response signal to the command sent to the IC card 1. The processor 21 also outputs a command to the IC card 1 via the card reader / writer 23, and writes data to the IC card 1 or rewrites data on the IC card 1.
[0030] For example, the processor 21 includes a signal generating unit 211 and an output unit 212. The processor 21 operates based on a program stored in a program memory, and realizes the functions of each of these units.
[0031] The signal generating unit 211 generates signals related to operation commands. The output unit 212 outputs various signals via the card reader / writer 23.
[0032] The storage unit 22 includes a ROM, a RAM, a non-volatile memory, etc., and the ROM and the non-volatile memory, which are non-transient computer-readable media, store programs such as an operating system or application software for operating the processor 21. The ROM and the non-volatile memory also store data and the like used by the processor 21 when performing various processes. The RAM stores data that the processor 21 temporarily uses when performing various processes.
[0033] The card reader / writer 23 is an interface for transmitting and receiving data to and from the IC card 1. The card reader / writer 23 includes an antenna, a contact terminal, a communication control unit, etc., and communicates contactlessly with the combination or contactless IC card 1 via the antenna, and communicates by being physically and electrically connected to the combination or contact IC card 1 via the contact terminal.
[0034] The operation unit 24 accepts input instructions from an operator of the IC card processing device 2. The operation unit 24 transmits input data corresponding to the accepted input instructions to the processor 21. The operation unit 24 is, for example, a keyboard, a numeric keypad, or a touch panel.
[0035] The display 25 is a display device that displays various information under the control of the processor 21, and displays a message regarding an error response received from the IC card 1. The display 25 is, for example, a liquid crystal monitor. The display 25 may be formed integrally with the operation unit 24, for example.
[0036] (Automatic invalidation process) Next, the automatic invalidation process executed by the IC card 1 will be described.
[0037] Fig. 3 is a flowchart showing an example of the flow of the revocation process according to the first embodiment. Note that the process in Fig. 3 assumes a case where, for example, when it is desired to shift from access control realized by symmetric encryption (Basic Access Control, hereinafter also referred to as "BAC") to access control (Password Authenticated Connection Establishment, hereinafter also referred to as "PACE") that provides a session key using asymmetric encryption with a higher security level, the BAC access control is automatically revoked.
[0038] 3, the acquisition unit 111 of the IC card 1 receives a predetermined operation command including a date in the data portion (step S1), which starts the automatic invalidation process.
[0039] The determination unit 112 analyzes the command acquired by the acquisition unit 111 (step S2).
[0040] For the sake of concreteness, it is assumed below that the operation command acquired by acquisition unit 111 is a PERFORM SECURITY OPERATION command, and that the data portion of the command contains the signature date data, such as Certificate Effective Date (Tag '5F25').
[0041] As a result of the analysis, the determination unit 112 determines whether or not the command data includes Tag '5F25' (step S3).
[0042] If the determination unit 112 determines that the command data does not include Tag '5F25' (No in step S3), the control unit 113 executes processing according to the command (command processing) (step S4), and then ends the processing.
[0043] On the other hand, if it is determined that the command data includes Tag '5F25' (Yes in step S3), the determination unit 112 determines whether the date of Tag '5F25' exceeds the reference date (for example, "2025 / 1 / 1") (step S5).
[0044] If the determination unit 112 determines that the date of Tag '5F25' does not exceed the reference date "2025 / 1 / 1" (No in step S5), the control unit 113 executes the command process (step S4) and then ends the process.
[0045] On the other hand, if the judgment unit 112 judges that the date of Tag '5F25' exceeds the reference date "2025 / 1 / 1" (Yes in step S5), the control unit 113 accesses the management table in the memory unit 12 and obtains the address of the data to be deleted and its data length (step S6).
[0046] The control unit 113 accesses the storage unit 12 based on the acquired address and data length, and determines whether the data to be deleted has the initial value (0xFF) for the data length (step S7).
[0047] When the control unit 113 determines that the data to be deleted has an initial value (0xFF) for the data length based on the address (Yes in step S7), it executes the command process (step S4) and then ends the process.
[0048] On the other hand, if the control unit 113 determines that the data to be deleted is not set to the initial value (0xFF) for the data length from the address (No in step S7), it overwrites the data with the initial value (0xFF) for the data length from the address (step S8). After that, the control unit 113 executes the command process (step S4) and ends the process.
[0049] (Command execution process after automatic invalidation process) Next, an example of command processing execution after the automatic invalidation processing will be described.
[0050] Fig. 4 is a flowchart showing an example of the flow of command processing execution after automatic invalidation processing. Note that Fig. 4 shows an example of a case where a function that has been invalidated by automatic invalidation processing that does not use an invalidation flag is used.
[0051] 4, the acquisition unit 111 of the IC card 1 receives a predetermined operation command (step S10), which starts command processing after the automatic invalidation process.
[0052] The determination unit 112 analyzes the command acquired by the acquisition unit 111, and determines whether the INS portion is a GET CHALLENGE command or not (step S11).
[0053] If the determination unit 112 determines that the INS portion is not a GET CHALLENGE command (No in step S11), the control unit 113 executes command processing (step S12), and then ends the process.
[0054] On the other hand, if the judgment unit 112 judges that the INS part is a GET CHALLENGE command (Yes in step S11), the control unit 113 accesses the management table in the memory unit 12 and obtains the address and address length of each data related to the function to be disabled (step S13).
[0055] The control unit 113 accesses the storage unit 12 based on the address and address length of each piece of acquired data, and determines whether each piece of data related to the function to be disabled is an initial value (step S14).
[0056] When control unit 113 determines that each data related to the function to be disabled is not the initial value (No in step S14), it executes the command process (step S12) and then ends the process.
[0057] On the other hand, if the control unit 113 determines that each data related to the function to be disabled is an initial value (Yes in step S14), it determines that the function has been deleted, interrupts the processing, and controls the output unit 114 to respond with an error (step S15).
[0058] The output unit 114 outputs an error response signal to the external device via the interface 13. As a result, an error message is displayed on the display 25 of the IC card processing device 2, for example.
[0059] In the case of automatic invalidation processing using an invalidation flag, a determination process of "Is the BAC deletion (invalidation) flag ON?" is executed instead of steps S13 and S14.
[0060] An IC card 1 as a portable electronic device according to an embodiment includes a processor 11 that executes a first process according to a command received from an IC card processing device 2 that is an external device. A determination unit 112 realized by the processor 11 determines whether or not first date data included in the command exceeds second date data that is used as a reference. A control unit 113 realized by the processor 11 executes a disabling process for disabling a predetermined function (e.g., access control) of a second process (e.g., encryption process) different from the first process, and then executes the first process, if the first date data does not exceed the second date data. The control unit 113 executes the first process without executing the disabling process.
[0061] That is, the IC card 1 can automatically disable the vulnerable access control used in encryption when the first date data of the signature included in the command exceeds the second date data as a reference, for example, triggered by command reception. Therefore, the IC card 1 can automatically execute software update (processing for disabling vulnerable functions) without receiving a special command for disabling again from an external device such as the IC card processing device 2. In addition, the user does not need to take manual measures such as taking the IC card 1 to a specified location to have the software updated. As a result, the workload on the user, management company, etc., during software update of the IC card 1 can be reduced.
[0062] Second Embodiment Next, an IC card 1 according to a second embodiment will be described. In the second embodiment, when it is desired to shift from BAC to PACE, if the access control included in the command received from the external device is BAC, the access control of BAC is automatically invalidated by using the invalidation flag.
[0063] Fig. 5 is a flowchart showing an example of the flow of the invalidation process according to the second embodiment. As shown in Fig. 5, the acquisition unit 111 of the IC card 1 receives a predetermined operation command (step S21). This starts the automatic invalidation process.
[0064] The determination unit 112 analyzes the command acquired by the acquisition unit 111, and determines whether or not the INS portion included in the command header portion is a GENERAL AUTHENTICATION command (step S22).
[0065] If the determination unit 112 determines that the INS portion is not a GENERAL AUTHENTICATION command (that is, the access control is not BAC) (No in step S22), the control unit 113 executes command processing (step S23), and then ends the processing.
[0066] On the other hand, if the determination unit 112 determines that the INS portion is a GENERAL AUTHENTICATION command (that is, the access control is BAC) (Yes in step S22), the control unit 113 turns on the deletion (invalidation) flag of the BAC (step S24).
[0067] After turning on the deletion flag of the BAC, the control unit 113 executes the command process (step S23), and then ends the process.
[0068] The IC card 1 according to the second embodiment described above includes a processor 11 that executes a predetermined process according to a command received from the IC card processing device 2. A determination unit 112 realized by the processor 11 determines whether or not the access control included in the command is a predetermined access control (e.g., BAC). When the control unit 113 realized by the processor 11 determines that the access control included in the command is BAC, it executes a deactivation process for deactivating a function related to the BAC, and then executes the predetermined process according to the command. When the access control included in the command is determined to be not BAC, it executes the predetermined process according to the command without executing the deactivation process.
[0069] Therefore, the IC card 1 according to the second embodiment can also achieve the same effects as the IC card 1 according to the first embodiment.
[0070] (Third embodiment) Next, an IC card 1 according to a third embodiment will be described. In the third embodiment, a case is assumed in which, when transitioning from BAC to PACE is desired, if the access control included in a command received from an external device is BAC and the number of times BAC has been executed exceeds a reference number, the access control of BAC is automatically invalidated using an invalidation flag.
[0071] Fig. 6 is a flowchart showing an example of the flow of the invalidation process according to the second embodiment. As shown in Fig. 6, the acquisition unit 111 of the IC card 1 receives a predetermined operation command (step S31). This starts the automatic invalidation process.
[0072] The determination unit 112 analyzes the command acquired by the acquisition unit 111, and determines whether or not the INS portion included in the command header portion is a MUTUAL AUTHENTICATE command (mutual authentication command) (step S32).
[0073] If the determination unit 112 determines that the INS portion is not a MUTUAL AUTHENTICATE command (No in step S32), the control unit 113 executes command processing (step S33).
[0074] After executing the command process, the control unit 113 increments the number of times the BAC is executed by +1 and ends the process (step S35).
[0075] On the other hand, if the determination unit 112 determines that the INS portion is a MUTUAL AUTHENTICATE command (Yes in step S32), the determination unit 112 determines whether the number of times BAC has been executed has exceeded a reference number (here, 10,000 times) (step S34).
[0076] If the determination unit 112 determines that the number of executions of the BAC does not exceed 10,000 (No in step S34), the control unit 113 executes the command process (step S33), increments the number of executions of the AC by +1, and ends the process (step S35).
[0077] On the other hand, if the determination unit 112 determines that the number of times the BAC has been executed exceeds 10,000 times (Yes in step S34), the control unit 113 turns on the BAC deletion flag (step S36), outputs an error response from the output unit 114, and ends the operation without executing the command process (step S37). The error response output by the output unit 114 is transmitted to the IC card processing device 2 via the interface 13, for example, and is displayed on the display 25 as an error message.
[0078] The IC card 1 according to the second embodiment described above includes a processor 11 that executes a predetermined process according to a command received from the IC card processing device 2. The determination unit 112 realized by the processor 11 determines whether the access control included in the command is a predetermined access control (for example, BAC). When the determination unit 112 determines that the access control included in the command is BAC, the determination unit 112 determines whether the execution count number of the BAC exceeds a reference number. When the determination unit 112 determines that the execution count number of the BAC exceeds the reference number, the control unit 113 realized by the processor 11 executes an invalidation process for invalidating the BAC, and then ends without executing the predetermined process according to the command. When the determination unit 112 determines that the execution count number of the BAC does not exceed the reference number, the control unit 113 adds the execution count number and executes the predetermined process including the BAC. When the determination unit 112 determines that the access control included in the command is not BAC, the control unit 113 executes the predetermined process according to the command.
[0079] Therefore, the IC card 1 according to the third embodiment can also achieve the same effects as the IC card 1 according to the first embodiment.
[0080] In the above embodiment, for the purpose of concrete explanation, the portable electronic device is an IC card. However, the portable electronic device is not limited to an IC card and may be, for example, a mobile terminal such as a smartphone having a similar function.
[0081] The transmission method described in each of the above embodiments can also be realized by a program executable by a computer. That is, it is also possible to construct the transmission system or the transmission method described in each of the above embodiments by storing a program that realizes the transmission method described in each of the above embodiments in a memory, reading the program from the memory by a processing circuit of a computer, and having software and hardware resources work together.
[0082] Although several embodiments (and modifications) of the present invention have been described above, these embodiments are presented as examples and are not intended to limit the scope of the invention. These novel embodiments can be implemented in various other forms, and various omissions, substitutions, modifications, and combinations can be made without departing from the gist of the invention. These embodiments and modifications are included in the scope and gist of the invention, and are included in the scope of the invention and its equivalents described in the claims. [Explanation of symbols]
[0083] 1 IC card 2. IC card processing device 11, 21 processor 12, 22 Storage section 13 Interface 23 Card Reader / Writer 24 Control section 25 Display 111 Acquisition Department 112 Judgment section 113 Control Unit 114, 212 Output section 115 Counting Department 211 Signal Generation Unit
Claims
1. a processor that executes a first process in accordance with a command received from an external device; The processor, determining whether or not a first date included in the command exceeds a second date serving as a reference; when the first date data exceeds the second date data, executing a disabling process for disabling a predetermined function of a second process different from the first process, and then executing the first process; if the first date data does not exceed the second date data, execute the first process without executing the invalidation process; Portable electronic devices.
2. the second process is an encryption process, the predetermined function is a function related to access control, 2. The portable electronic device of claim 1.
3. A processor that executes a predetermined process in accordance with a command received from an external device; The processor, determining whether the access control included in the command is a predetermined access control; when it is determined that the access control included in the command is a predetermined access control, a disabling process is performed to disable a function related to the predetermined access control, and then the predetermined process is performed; if it is determined that the access control included in the command is not a predetermined access control, the predetermined process is executed without executing the invalidation process. Portable electronic devices.
4. A processor that executes a predetermined process in accordance with a command received from an external device; The processor, determining whether the access control included in the command is a predetermined access control; When it is determined that the access control included in the command is a predetermined access control, it is determined whether or not the execution count of the predetermined access control exceeds a reference number of times; when it is determined that the execution count number of the predetermined access control exceeds a reference number, a disabling process is executed to disable the predetermined access control, and then the predetermined process is not executed and the process is terminated; When it is determined that the execution count number of the predetermined access control does not exceed the reference number, the execution count number is increased and the predetermined process including the predetermined access control is executed; If it is determined that the access control included in the command is not a predetermined access control, the predetermined process is executed. Portable electronic devices.
5. The processor executes the invalidation process by deleting or initializing data. A portable electronic device according to any one of claims 1 to 4.
6. The processor executes the invalidation process by enabling an invalidation flag. A portable electronic device according to any one of claims 1 to 4.
7. determining whether or not first date data included in the command received from the external device exceeds second date data serving as a reference; when the first date data exceeds the second date data, executing a disabling process for disabling a predetermined function of a second process different from a first process executed according to a command, and then executing the first process; if the first date data does not exceed the second date data, executing the first process without executing the invalidation process; A method for controlling a portable electronic device comprising:
Citation Information
Patent Citations
Communication terminal and IC card
JP2008287602A
Cited By
Semiconductor device
CN121510599A
