IC card, IC card logging information processing method, and program

The IC card's detection and status assessment mechanism ensures that logging information is preserved during transitions to the obsolete state, enabling reliable analysis of the cause of status changes by avoiding overwriting, thus addressing the challenge of obscured log records in existing technologies.

JP7559492B2Active Publication Date: 2024-10-02TOPPAN HOLDINGS INC
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2020176456
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-10-21
Publication Date
2024-10-02
Estimated Expiration
2040-10-21

AI Technical Summary

Technical Problem

Existing IC card technologies fail to reliably record and analyze the events causing a change in the life cycle status, particularly when unauthorized operations or security attacks lead to the obsolete state, resulting in overwritten logs that obscure the reason for the status change.

Method used

The IC card employs a detection unit to identify abnormalities, a determination unit to assess the life cycle status, and a selection unit to choose between updating or not updating logging information based on the status, ensuring that critical logging information is preserved even after transitioning to the obsolete state.

Benefits of technology

This approach allows for reliable analysis of the cause of the IC card's obsolete state by maintaining relevant logging information, preventing it from being overwritten and thus facilitating accurate analysis of the status transition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007559492000001
    Figure 0007559492000001
  • Figure 0007559492000002
    Figure 0007559492000002
  • Figure 0007559492000003
    Figure 0007559492000003
Patent Text Reader

Abstract

To provide an IC card, a logging information processing method of an IC card, and a program which can surely analyze a cause of an abolition state of a life cycle status of the IC card.SOLUTION: An IC card has an operation state, a lock state and an abolition state as life cycle status includes: a detection part for detecting abnormality by attack from the outside; a storage part for storing information on the abnormality as logging information; a determination part for determining a current life cycle status of the IC card; a selection part for selecting first processing of not updating the logging information stored in the storage part when the determination result of the determination part is in the abolition state, and selecting second processing of updating logging information stored in the storage part based on the information indicating the abnormality when the determination result is not in the abolition state; and a processing part of executing any one processing of the first processing and the second processing that are previously selected in the selection part when the detection part detects the abnormality.SELECTED DRAWING: Figure 3
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an IC card, an IC card logging information processing method, and a program. [Background technology]

[0002] 2. Description of the Related Art Conventionally, IC cards and IC card status management methods are known that visually indicate a life cycle status that indicates a specific state of an IC card in the life cycle of the IC card.

[0003] Global Platform, an international organization that develops open standards for IC cards, has defined five life cycle statuses and transition conditions as industry-standard card specifications. The five life cycle statuses are: OP READY, which is a state initialized at the IC card manufacturing factory; INITIALIZED, which is a state initialized by the IC card issuer; SECURED, which is a state in which the card can be used safely; CARD LOCKED, which is a locked state in which the card cannot be used temporarily; and TERMINATED, which is a state in which the card cannot be used permanently. Global Platform proposes life cycle management by writing these five life cycle statuses to the IC card.

[0004] For example, Patent Document 1 listed below discloses a technology in which, when a transition in the life cycle status of an IC card occurs, the life cycle status of the IC card is printed on a printing section of the IC card and displayed on a status display section of an IC card reader / writer. In the technology described in Patent Document 1 below, when an event occurs that requires a transition of the IC card's life cycle status, the IC card's life cycle status and date and time are recorded in a status recording unit. However, Patent Document 1 does not describe whether the event itself that requires a transition of the IC card's life cycle status is recorded in the status recording unit. Therefore, if an event that should cause a transition in the life cycle status of the IC card is not properly recorded in the status recording unit, the event that should cause a transition in the life cycle status of the IC card cannot be properly analyzed.

[0005] Meanwhile, there is known a security management system that detects unauthorized operations and security attacks on IC cards and allows users and administrators to grasp the history of such operations. For example, the following Patent Document 2 discloses a technology in which an EEPROM (Electrically Erasable Programmable Read Only Memory) of an IC card records (holds) a history of operations performed on the IC card (such as PIN authentication request commands) as a log. In this technology, the log recorded in the EEPROM is used to analyze whether the IC card has been used fraudulently. In the technology described in Patent Document 2 below, when an attacker takes someone else's IC card and guesses and inputs a PIN code, the CPU (Central Processing Unit) of the IC card executes a PIN verification process. In detail, in the technology described in Patent Document 2, in the PIN verification process, the CPU of the IC card judges whether the authentication information stored in the IC card matches the input PIN code, and if they do not match, it regards the verification as unsuccessful, generates a log indicating that an authentication request has been made, and stores (writes) it in the EEPROM. [Prior art documents] [Patent documents]

[0006] [Patent Document 1] JP 2004-110087 A [Patent Document 2] JP 2012-043208 A Summary of the Invention [Problem to be solved by the invention]

[0007] However, in the technology described in Patent Document 2, when an unauthorized operation or security attack on an IC card is detected, the log already recorded in the EEPROM is overwritten with a newly generated log regardless of the life cycle status of the IC card. For example, when a log of when the life cycle status of an IC card transitions to the abolished state is recorded in the EEPROM, if an unauthorized operation or security attack is detected, the log of when the life cycle status of the IC card transitions to the abolished state is overwritten with a newly generated log. This makes it difficult to analyze the cause of the life cycle status of the IC card becoming abolished due to an external attack.

[0008] In view of the above-mentioned problems, an object of the present invention is to provide an IC card, an IC card logging information processing method, and a program that can reliably analyze the cause why the life cycle status of an IC card has become obsolete. [Means for solving the problem]

[0009] In order to solve the above-mentioned problems, an IC card according to one embodiment of the present invention is an IC card having an operational state, a locked state, and a revoked state as life cycle statuses, and includes a detection unit that detects abnormalities due to external attacks, a memory unit that stores information regarding the abnormality as logging information, a judgment unit that judges the current life cycle status of the IC card, a selection unit that selects a first process of not updating the logging information stored in the memory unit if the result of the judgment by the judgment unit is the revoked state, and selects a second process of updating the logging information stored in the memory unit based on information indicating the abnormality if the result of the judgment is not the revoked state, and a processing unit that executes either the first process or the second process pre-selected by the selection unit when the abnormality is detected by the detection unit.

[0010] A method for processing logging information of an IC card according to one aspect of the present invention is a method for processing logging information of an IC card having an operational state, a locked state, and an abolished state as life cycle statuses, the method including the steps of: , judgment a step of determining the current life cycle status of the IC card by a determination unit, and a selection unit, when the result of the determination by the determination unit is the abolished state, I record The above stored in the memory Information about anomalies The method includes a process of selecting a first process that does not update logging information, and selecting a second process that updates the logging information stored in the memory unit based on information indicating the abnormality if the result of the judgment is not the abolished state, and a process in which a processing unit executes either the first process or the second process pre-selected by the selection unit when the abnormality is detected by the detection unit.

[0011] A program according to one aspect of the present invention is a program for causing a computer to function as an IC card having an operational state, a locked state, and an abolished state as life cycle statuses, the program comprising: a detection unit for detecting an abnormality due to an external attack; ,before a determination means for determining a current life cycle status of the IC card, and if a result of the determination by the determination means is the abolished state, In the memory The stored Information about anomalies A first process of not updating the logging information is selected, and if the result of the determination is not the abolished state, the In the memory The device functions as a selection means for selecting a second process for updating the stored logging information, and a processing means for executing either the first process or the second process pre-selected by the selection means when the abnormality is detected by the detection means. Effect of the Invention

[0012] According to the present invention, it is possible to reliably analyze the reason why the life cycle status of an IC card has become obsolete. [Brief description of the drawings]

[0013] [Figure 1] 2 is a diagram illustrating an example of a hardware configuration of an IC card according to the present embodiment. [Diagram 2] FIG. 2 is a diagram showing an example of a life cycle status of an IC card according to the embodiment. [Diagram 3] 2 is a block diagram showing an example of a functional configuration of an IC card according to the present embodiment. FIG. [Figure 4] 5 is a flowchart showing an example of a flow of processes executed in the IC card according to the embodiment. [Diagram 5] 10 is a flowchart showing an example of the flow of a selection process of an interrupt processing method according to the embodiment. [Figure 6] 10 is a flowchart showing an example of the flow of an interrupt process according to the embodiment. [Figure 7] 10 is a flowchart showing an example of a processing flow during execution of a VERIFY command in the IC card according to the embodiment. [Figure 8] 13 is a flowchart showing an example of a flow of processing executed in an interrupt process during execution of a VERIFY command according to the present embodiment. [Figure 9] 13 is a flowchart showing an example of a flow of processing executed in an interrupt process during execution of a VERIFY command according to the present embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0014] Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

[0015] <1. Hardware configuration of IC card> The hardware configuration of an IC card according to this embodiment will be described with reference to Fig. 1. Fig. 1 is a diagram showing an example of the hardware configuration of an IC card according to this embodiment. The IC card 1 shown in Fig. 1 is, for example, a cash card, a credit card, a commuter pass, a passenger ticket, a student ID card, a point card, a driver's license, etc.

[0016] As shown in FIG. 1, the IC card 1 includes an I / O 10, a CPU 11 (Central Processing Unit), a ROM 12 (Read Only Memory), a RAM 13 (Random Access Memory), and an EEPROM 14 (Electrically Erasable Programmable Read Only Memory).

[0017] (1) I / O10 The I / O 10 communicates with an external device (not shown) such as a reader / writer. For example, the I / O 10 receives a command from the external device. The communication by the I / O 10 with the external device may be of a contact type or a contactless type. That is, the I / O 10 may have only a configuration corresponding to the contact type as a configuration of the physical layer, or may have only a configuration corresponding to the contactless type. Furthermore, the I / O 10 may have both a configuration corresponding to the contact type and a configuration corresponding to the contactless type as a configuration of the physical layer.

[0018] (2) CPU11 The CPU 11 executes programs stored in the ROM 12 and the EEPROM 14, and performs various processes in the IC card 1. For example, the CPU 11 executes command processing in response to a command received from an external device via the I / O 10.

[0019] (3) Register 15 As shown in Fig. 1, the CPU 11 includes a register 15. The register 15 is a storage device built into the CPU. The register 15 temporarily stores data related to the processing of the CPU 11, for example. As an example, information specifying an interrupt processing to be executed by the CPU 11 (hereinafter also referred to as "processing information") is written to the register 15. Details of the processing information will be described later.

[0020] (4)ROM12 The ROM 12 is, for example, a non-writable non-volatile memory, and stores programs and data for executing various processes in the IC card 1. The ROM 12 is built into the IC card 1 during the manufacturing stage with the programs and data stored therein.

[0021] (5)RAM13 The RAM 13 is, for example, a non-writable volatile memory, and temporarily stores data and the like used when various processes in the IC card 1 are performed.

[0022] (6)EEPROM14 The EEPROM 14 is, for example, an electrically rewritable non-volatile memory, and stores, for example, control programs, control data, applications, personal information, security information such as encryption keys, data used in applications, and the like.

[0023] (Life Cycle Status) Here, the life cycle status of the IC card according to this embodiment will be described with reference to Fig. 2. Fig. 2 is a diagram showing an example of the life cycle status of the IC card according to this embodiment.

[0024] Global Platform, an international organization that develops open standards for IC cards, has defined five life cycle statuses and transition conditions as industry-standard card specifications. The five life cycle statuses are: OP READY, which is a state initialized at the IC card manufacturing factory; INITIALIZED, which is a state initialized by the IC card issuer; SECURED, which is a state in which the card can be used safely; CARD LOCKED, which is a locked state in which the card cannot be used temporarily; and TERMINATED, which is a state in which the card cannot be used permanently. Global Platform proposes life cycle management by writing these five life cycle statuses to the IC card.

[0025] In the example shown in Fig. 2, the IC card 1 has an operational state, a locked state, and a revoked state as life cycle statuses after passing through, for example, an initialized state. The operational state corresponds to the normal state of the IC card 1 (a state in which the user of the IC card 1 can use the IC card 1). The locked state corresponds to a state in which the user of the IC card 1 cannot temporarily use the IC card 1. The revoked state corresponds to a state in which the user of the IC card 1 cannot permanently use the IC card 1.

[0026] As shown by the arrows in Figure 2, the operational state is a state that can transition to either the locked state or the revoked state. The locked state is a state that can transition to either the operational state or the revoked state. The revoked state is a state that cannot transition to either the operational state or the locked state. The transition from the operational state to the revoked state is made, for example, when a serious abnormality occurs in the IC card 1 and the abnormality is detected. Also, the transition from the operational state to the locked state is made, for example, when it is detected that an unauthorized access has been made to the IC card 1 from outside. The transition from the locked state to the operational state is made, for example, when the authentication process required to release the locked state is normally completed, and the transition from the locked state to the revoked state is made, for example, when a serious abnormality occurs in the IC card 1 and the abnormality is detected.

[0027] In another example, the IC card 1 may have five life cycle statuses, including a state in which a minimum number of functions are activated, an initialized state, an operational state, a locked state, and a revoked state.

[0028] <2. Functional configuration of IC card> The functional configuration of the IC card 1 according to this embodiment will be described with reference to Fig. 3. Fig. 3 is a block diagram showing an example of the functional configuration of the IC card 1 according to this embodiment. The IC card 1 includes a communication unit 100, a control unit 110, and a storage unit 120.

[0029] (1) Communications unit 100 The communication unit 100 has a function of transmitting and receiving various information. The function of the communication unit 100 is realized, for example, by an I / O 10 that the IC card 1 has as hardware. Specifically, the communication unit 100 receives a command from an external device. The communication unit 100 outputs the received command to the control unit 110.

[0030] (2) Control unit 110 The control unit 110 has a function of controlling the overall operation of the IC card 1. The function of the control unit 110 is realized, for example, by causing a CPU 11 provided as hardware in the IC card to execute a program. As shown in FIG. 3, the control unit 110 includes a determination unit 111, a selection unit 112, a writing unit 113, a detection unit 114, and a processing unit 115.

[0031] (2-1) Judgment section 111 The determination unit 111 determines the life cycle status of the IC card 1. Specifically, the determination unit 111 determines whether the life cycle status of the IC card 1 is an operational state, a locked state, or a revoked state. The determination unit 111 outputs the type of the determination result to the selection unit 112.

[0032] In this embodiment, the determination unit 111 determines the life cycle status of the IC card 1 during the period from when the IC card 1 is powered on to when it starts receiving commands. The determination unit 111 may determine the life cycle status of the IC card 1 at a time other than the period from when the IC card 1 is powered on to when it starts receiving commands.

[0033] For example, it is conceivable that the determination unit 111 determines the life cycle status of the IC card 1 in an interrupt process executed by the processing unit 115 (described later). However, for example, if the processing unit 115 executes the interrupt process multiple times, the determination unit 111 will determine the life cycle status of the IC card 1 every time the interrupt process is executed. That is, the number of times the interrupt process is executed increases, and the number of times the determination process is executed also increases, resulting in an increase in processing time. Furthermore, an increase in the execution time of the interrupt process may pose a security risk since it increases the possibility of an external attack during execution of the interrupt process.

[0034] On the other hand, in the present embodiment, the determination unit 111 performs the determination process before the interrupt process is executed. Therefore, the processing unit 115 can use the result of the determination process previously executed by the determination unit 111 in the interrupt process. The same applies when the processing unit 115 executes the interrupt process multiple times.

[0035] As described above, the determination unit 111 of this embodiment determines the life cycle status of the IC card 1 during the period from when the power of the IC card 1 is turned on until the IC card 1 starts receiving commands, thereby reducing the number of times the determination process is executed. This enables the determination unit 111 to reduce the processing time and increase the processing speed. In addition, the security in interrupt processing can be enhanced.

[0036] (2-2) Selection unit 112 The selection unit 112 selects an interrupt processing method to be executed by a processing unit 115 (described later) when an abnormality due to an external attack is detected. The selection unit 112 outputs the selected interrupt processing method to the writing unit 113.

[0037] The interrupt processing method according to the present embodiment includes, for example, an interrupt processing A (first processing) that does not update the logging information stored in the storage unit 120, and an interrupt processing B (second processing) that updates the logging information stored in the storage unit 120. The selection unit 112 selects either the interrupt processing A or the interrupt processing B based on, for example, the type of life cycle status determined by the determination unit 111.

[0038] Specifically, when the result of the determination by the determination unit 111 is the revoked state, the selection unit 112 selects interrupt processing A. On the other hand, when the result of the determination by the determination unit 111 is not the revoked state (i.e., the operational state or the locked state), the selection unit 112 selects interrupt processing B. In the interrupt processing B, the logging information stored in the storage unit 120 is updated based on information indicating an abnormality due to an external attack (hereinafter also referred to as "abnormality information").

[0039] The selection unit 112 selects either the interrupt processing A or the interrupt processing B based on the type of the result of the determination by the determination unit 111 during the period from when the power of the IC card 1 is turned on to when command reception starts. The timing at which the selection unit 112 selects the process (interrupt processing method) to be executed in the interrupt processing can be other than the period from when the power of the IC card 1 is turned on to when command reception starts.

[0040] For example, it is conceivable that within an interrupt process executed by processing unit 115 (described later), selection unit 112 selects a process to be executed in the interrupt process. However, for example, if processing unit 115 executes an interrupt process multiple times, selection unit 112 will select a process to be executed in the interrupt process each time the interrupt process is executed. That is, the number of times the interrupt process is executed increases, and the number of times the selection process is executed also increases, resulting in an increase in processing time. Furthermore, an increase in the execution time of the interrupt process may pose a security risk since it increases the possibility of being attacked from the outside while the interrupt process is being executed.

[0041] On the other hand, in the present embodiment, the selection process is performed by the selection unit 112 before the interrupt process is executed. Therefore, the processing unit 115 can use the result of the selection process previously executed by the selection unit 112 in the interrupt process. The same applies when the processing unit 115 executes the interrupt process multiple times.

[0042] As described above, the selection unit 112 of this embodiment can reduce the number of executions of the determination process by selecting a process (interrupt processing method) that is executed by interrupt processing during the period from when the power supply of the IC card 1 is turned on until the reception of a command is started. This enables the selection unit 112 to reduce the processing time and increase the processing speed. It is also possible to strengthen security in the interrupt processing.

[0043] (2-3) Writing section 113 Based on the result of the selection by the selection unit 112, the writing unit 113 writes into the storage unit 120 processing information indicating whether the processing unit 115 is to execute interrupt processing A or interrupt processing B.

[0044] In this embodiment, the writing unit 113 writes the processing information to the register 15. For example, the register 15 has a flag bit for setting the processing to be executed by the processing unit 115. The writing unit 113 sets whether the processing unit 115 executes interrupt processing A or interrupt processing B, depending on the information written to the flag bit. As an example, when the selection unit 112 selects interrupt processing A, the writing unit 113 writes 1 to the flag bit. On the other hand, when the selection unit 112 selects interrupt processing B, the writing unit 113 writes 0 to the flag bit. Note that the combination of the type of interrupt processing and the number that the writing unit 113 writes to the flag bit is not limited to this example, and the reverse combination may also be used. Also, the information that the writing unit 113 writes to the flag bit of the register 15 is not limited to this example.

[0045] (2-4) Detection unit 114 The detection unit 114 detects an abnormality due to an external attack. The external attack on the IC card 1 is, for example, a physical attack, a side channel attack, a fault exploitation attack, etc. The detection unit 114 outputs a detection result of the abnormality due to the external attack to the processing unit 115.

[0046] (2-5) Processing section 115 The processing unit 115 executes various processes. For example, the processing unit 115 executes a preset process in accordance with a command transmitted from the outside (for example, an external device). The command transmitted from the outside is, for example, a read command. The processing unit 115 executes the read command to read data from, for example, the storage unit 120 and transmit the data to the external device.

[0047] When the detection unit 114 detects an abnormality caused by an external attack while a command is being received or while a command is being processed, the processing unit 115 executes, as an interrupt process, either the interrupt process A or the interrupt process B selected in advance by the selection unit 112. This eliminates the need for the processing unit 115 to execute a process for selecting the content of the process to be executed within the interrupt process when the interrupt process is executed, thereby reducing the processing time in the interrupt process and increasing the processing speed. Furthermore, reducing the processing time in the interrupt process can also enhance security in the interrupt process.

[0048] When an abnormality is detected by the detection unit 114, the processing unit 115 executes either the interrupt processing A or the interrupt processing B based on the processing information written in the register 15. For example, the processing unit 115 reads the information written in the flag bit of the register 15, and selects the interrupt processing according to the information. As an example, when 1 is written in the flag bit of the register 15, the processing unit 115 executes the interrupt processing A. On the other hand, when 0 is written in the flag bit of the register 15, the processing unit 115 executes the interrupt processing B. The combination of the type of interrupt processing executed by the processing unit 115 and the number written in the flag bit of the register 15 is not limited to this example, and the reverse combination may also be used.

[0049] The interrupt process when an abnormality is detected is a process for protecting assets (password, encryption key, etc.) inside the IC card 1 from damage such as tampering or disclosure. The interrupt process executed by the processing unit 115 may be implemented by software or hardware.

[0050] In the interrupt processing A and the interrupt processing B, the processing unit 115 executes, for example, error processing. The error processing is, for example, processing to transmit an error response indicating that the command processing cannot be executed normally, processing to make the IC card 1 itself permanently unusable, etc.

[0051] In the interrupt process B, the processing unit 115 executes, for example, a process of logging the abnormality information in the storage unit 120. The abnormality information logged in the storage unit 120 is used for error analysis and the like.

[0052] After executing the interrupt process, the processing unit 115 executes post-processing (for example, reset processing as described in FIG. 6 of Japanese Patent Application Laid-Open No. 7-271926).

[0053] Furthermore, the processing unit 115 executes a process of transitioning the life cycle status of the IC card 1 from an operational state to a locked state or a revoked state, for example, depending on the result of abnormal processing in which the intended processing is not performed, for example, when a command execution error occurs or when an abnormality due to an external attack is detected by the detection unit 114. One example of abnormal processing is when a program corresponding to a command other than the program corresponding to the command received from the IC card reader / writer is executed. There are multiple patterns of state transition of the life cycle status when an abnormality due to an external attack is detected by the detection unit 114. In this embodiment, of the multiple state transition patterns, a pattern of transition to a locked state and a pattern of transition to an abolished state will be described.

[0054] (3) Storage section 120 The storage unit 120 has a function of storing various information. The function of the storage unit 120 is realized by, for example, the ROM 12, the RAM 13, the EEPROM 14, the register 15, etc., which are provided as hardware in the IC card 1. The storage unit 120 stores, for example, logging information, processing information, etc.

[0055] <3. Processing flow> The flow of processing in the IC card 1 according to this embodiment will be described with reference to FIGS.

[0056] (1) Processing flow on IC card 1 First, the flow of processing in the IC card 1 according to this embodiment will be described with reference to Fig. 4 to Fig. 6. Fig. 4 is a flowchart showing an example of the flow of processing executed in the IC card according to this embodiment.

[0057] As shown in FIG. 4, first, the power supply (not shown) of the IC card 1 is turned on by power supplied from an external source, thereby starting the operation of the IC card 1 (step S1). Next, the control unit 110 of the IC card 1 executes an interrupt processing method selection process (step S2). The details of the interrupt processing method selection process will be described later.

[0058] After the interrupt processing method selection process, the communication unit 100 of the IC card 1 receives a command from the outside (step S3). If the detection unit 114 of the control unit 110 does not detect any abnormality due to an external attack (no attack detected) while receiving a command (including the state in which the communication unit 100 is waiting to receive a command from the outside), proceed to step S4. On the other hand, if the detection unit 114 of the control unit 110 detects an abnormality due to an external attack while receiving the command (in the case of attack detection), the process proceeds to step S5.

[0059] In step S4, the processing unit 115 of the control unit 110 executes command processing. If the detection unit 114 detects an abnormality due to an external attack during command processing (in the case of attack detection), the process proceeds to step S5. On the other hand, if the detection unit 114 does not detect an abnormality due to an external attack during command processing (no attack detected), the process proceeds to step S7.

[0060] In step S5, the processing unit 115 calls an interrupt processing function (transitions processing to the interrupt processing function) to execute the interrupt processing. That is, in the example shown in Fig. 4, if the detection unit 114 detects an abnormality due to an external attack while receiving a command or executing a command process, the processing unit 115 executes the interrupt processing. Details of the interrupt processing will be described later.

[0061] After the interrupt process, the processing unit 115 executes post-processing (step S6). After the post-processing is executed, the process proceeds to step S7.

[0062] In step S7, for example, the processing unit 115 determines whether or not to continue the processes from step S3 to step S6. If the processes from step S3 to step S6 are to be continued (step S7 / YES), the process returns to step S2. On the other hand, if the processes from step S3 to step S6 are not to be continued (step S7 / NO), the process proceeds to step S8. In step S8, the power supply (not shown) of the IC card 1 is turned off as a result of power not being supplied from the outside, and the operation of the IC card 1 is terminated.

[0063] The interrupt processing method selection process (step S2) according to this embodiment will now be described in detail with reference to Fig. 5. Fig. 5 is a flowchart showing an example of the flow of the interrupt processing method selection process according to this embodiment.

[0064] As shown in FIG. 5, first, the determination unit 111 of the control unit 110 determines the life cycle status of the IC card 1 (step S21). If the life cycle status of the IC card 1 is in the abolished state (step S21 / YES), the selection unit 112 of the control unit 110 selects the interrupt processing A that does not update the logging information (step S22). On the other hand, if the life cycle status of the IC card 1 is not the abolished state, that is, if it is in the operational state or the locked state (step S21 / NO), the selection unit 112 of the control unit 110 selects the interruption process B that updates the logging information (step S23).

[0065] After the process of step S22 or step S23, the writing unit 113 of the control unit 110 writes processing information indicating the interrupt processing selected by the selection unit 112 to the register 15 (step S24). After writing, the control unit 110 ends the interrupt processing method selection process.

[0066] The interrupt process (step S5) according to this embodiment will now be described in detail with reference to Fig. 6. Fig. 6 is a flowchart showing an example of the flow of the interrupt process according to this embodiment.

[0067] As shown in FIG. 6, first, the processing unit 115 of the control unit 110 checks the interrupt processing selected by the selection unit 112 based on the processing information written in the register 15 (step S51). If the interrupt process selected by the selection unit 112 is the interrupt process A, the process proceeds to step S52. On the other hand, if the interrupt process selected by the selection unit 112 is the interrupt process B, the process proceeds to step S53.

[0068] In step S52, the processing unit 115 executes error processing (error analysis). After the error processing, the processing unit 115 ends the interrupt processing A. In step S53, the processing unit 115 executes error processing (error analysis). After the error processing, the processing unit 115 updates the logging information (step S54). After updating the logging information, the processing unit 115 ends the interrupt processing B. That is, in interrupt processing A, only error processing is performed and no updating of logging information is performed, whereas in interrupt processing B, error processing and updating of logging information are performed.

[0069] Although not shown in Figure 6, if an external attack on the IC card 1 causes an abnormality that prevents the processing unit 115 from normally executing command processing and the abnormality is detected by the detection unit 114, the processing unit 115 transitions the life cycle status to a locked state or a revoked state based on the abnormality information while executing error processing.

[0070] Suppose that in a conventional IC card, after the life cycle status of the IC card has become abolished due to an external attack, the IC card is attacked again from the outside, and the logging information stored in the storage unit is updated. In this case, the logging information indicating the cause of the life cycle status becoming abolished is overwritten with new information (i.e., information indicating an abnormality due to the second external attack). As a result, there is a concern that it may become difficult to analyze the cause of the life cycle status of the conventional IC card becoming abolished (more specifically, the cause of the life cycle status of the IC card becoming abolished due to the first external attack).

[0071] Therefore, in the IC card 1 of this embodiment, as described above, the interrupt processing to be executed by the processing unit 115 when the detection unit 114 detects an abnormality due to an external attack is selected in advance in the interrupt processing method selection process. Specifically, when the determination unit 111 determines that the life cycle status of the IC card 1 is in the abolished state, the selection unit 112 selects the interrupt processing A that does not update the logging information. The writing unit 113 writes processing information indicating that the interrupt processing A has been selected to the register 15. On the other hand, when the determination unit 111 determines that the life cycle status of the IC card 1 is in the operational state or the locked state, the selection unit 112 selects the interrupt processing B that updates the logging information. The writing unit 113 writes processing information indicating that the interrupt processing B has been selected to the register 15. When the detection unit 114 detects an abnormality due to an external attack and the processing information indicates interrupt processing A, the processing unit 115 executes interrupt processing A that does not update the logging information. On the other hand, when the detection unit 114 detects an abnormality due to an external attack and the processing information indicates interrupt processing B, the processing unit 115 executes interrupt processing B that updates the logging information.

[0072] In other words, when the detection unit 114 detects a serious error (an abnormality due to the first external attack) that transitions the life cycle status of the IC card 1 to the revoked state, even if the IC card 1 is attacked from the outside for a second or subsequent time, the processing unit 115 does not update the logging information, and the logging information indicating the cause why the life cycle status of the IC card 1 became the revoked state due to the first external attack is left in the memory unit 120 without being overwritten.

[0073] Therefore, in the IC card 1 of this embodiment, after the life cycle status of the IC card 1 becomes abolished, the logging information is not updated due to the IC card 1 being attacked from the outside, which reduces the risk that it will become difficult to analyze the reason why the life cycle status of the IC card 1 becomes abolished. In other words, the IC card 1 of this embodiment can reduce the risk that it becomes difficult to analyze the reason why the life cycle status of the IC card 1 has become the obsolete state. Furthermore, with the IC card 1 of this embodiment, it is possible to reduce the risk that logging information indicating the reason why the life cycle status of the IC card 1 became the abolished state will be tampered with by an external attacker.

[0074] (2) Processing flow during execution of the VERIFY command Next, a process flow during execution of a VERIFY (write verification) command in the IC card 1 will be described with reference to Fig. 7 to Fig. 9. Fig. 7 is a flowchart showing an example of a process flow during execution of a VERIFY command in the IC card according to this embodiment.

[0075] 7, first, the processing unit 115 starts processing a VERIFY command (step S101). The VERIFY command is a command for performing password authentication. Next, the processing unit 115 executes the process 1: func1( ) (step S102). If the detection unit 114 does not detect any abnormality due to an external attack during execution of the process 1, the process proceeds to step S103. On the other hand, if the detection unit 114 detects an abnormality caused by an external attack during execution of the process 1, the process proceeds to step S105.

[0076] In step S103, the processing unit 115 executes the process 2: func2( ). If the detection unit 114 does not detect any abnormality due to an external attack during execution of the process 2, the process proceeds to step S104. On the other hand, if the detection unit 114 detects an abnormality caused by an external attack during execution of the process 2, the process proceeds to step S106.

[0077] In step S104, the processing unit 115 executes process 3: func3( ). If the detection unit 114 does not detect any abnormality due to an external attack during execution of process 3, the VERIFY command shown in FIG. 7 ends normally, and the process returns to the state of waiting for a command to be received. On the other hand, if the detection unit 114 detects an abnormality due to an external attack during execution of the process 3, the process proceeds to step S107.

[0078] In step S105, the processing unit 115 stops the execution of the process 1, checks the process information stored in the register 15, calls the interrupt process function of the interrupt process indicated by the process information (transitions the process to the interrupt process function), and executes the interrupt process. Details of the interrupt process will be described later.

[0079] In step S106, the processing unit 115 stops the execution of the process 2, checks the process information stored in the register 15, calls the interrupt process function of the interrupt process indicated by the process information (transitions the process to the interrupt process function), and executes the interrupt process. Details of the interrupt process will be described later.

[0080] In step S107, the processing unit 115 stops the execution of the process 3, checks the process information stored in the register 15, calls the interrupt process function of the interrupt process indicated by the process information (transitions the process to the interrupt process function), and executes the interrupt process. Details of the interrupt process will be described later.

[0081] Here, the flow of interrupt processing during execution of a VERIFY command will be described with reference to Fig. 8 and Fig. 9. Fig. 8 and Fig. 9 are flowcharts showing an example of the flow of processing executed in interrupt processing during execution of a VERIFY command according to this embodiment. Fig. 8 shows an example of the flow of processing in interrupt processing A. Fig. 9 shows an example of the flow of processing in interrupt processing B. Note that Fig. 8 and Fig. 9 show an example of the interrupt processing in step S102 in Fig. 7.

[0082] If the detection unit 114 detects an abnormality due to an external attack during execution of process 1, the processing unit 115 transitions the process to interrupt processing (step S105). If the process information indicates interrupt processing A, the processing unit 115 executes interrupt processing A:funcA() in step S105. As shown in FIG. 8, the processing unit 115 executes error processing in interrupt processing A:funcA() (step S1050). Next, the processing unit 115 executes post-processing (specifically, post-processing to deal with the attack on the IC card 1) in a step not shown. In the interrupt process A, the processing unit 115 does not update the logging information stored in the storage unit 120, so that the storage unit 120 continues to store the logging information.

[0083] When the processing information indicates the interrupt processing B, the processing unit 115 executes the interrupt processing B: funcB() in step S105. As shown in Fig. 9, the processing unit 115 executes an error process in the interrupt processing B: funcB() (step S1051). Next, the processing unit 115 updates the logging information stored in the storage unit 120 based on the abnormality information indicating the abnormality caused by the external attack detected by the detection unit 114 (step S1052). Next, the processing unit 115 performs post-processing in a step not shown.

[0084] Although an example of the interrupt process in step S102 has been described with reference to Figures 8 and 9, the interrupt process in steps S103 and S104 is similar. In the example shown in Figure 7, even if an implementation error occurs during the execution of process 1, process 2, and process 3, the interrupt process shown in Figures 8 and 9 is executed.

[0085] As described above, in the IC card 1 according to this embodiment, when the detection unit 114 detects an abnormality due to an external attack, the processing unit 115 executes the interrupt process selected in advance by the selection unit 112. The interrupt process is either interrupt process A that does not update the logging information stored in the storage unit 120, or interrupt process B that updates the logging information stored in the storage unit 120. When the result of the determination by the determination unit 111 that determines the life cycle status of the IC card 1 is the revoked state, the selection unit 112 selects the interrupt process A, and when the result of the determination is not the revoked state, selects the interrupt process B that updates the logging information stored in the storage unit 120 based on information indicating an abnormality due to an external attack.

[0086] With this configuration, when the life cycle status of the IC card 1 is the abolished state, the processing unit 115 does not update the logging information stored in the storage unit 120, and the logging information stored in the storage unit 120 is saved as is without being overwritten. The logging information saved as is without being overwritten is information that indicates the cause why the life cycle status became the abolished state.

[0087] Therefore, in the IC card 1 of this embodiment, the reason why the IC card 1 transitioned to the revoked state can be easily analyzed based on the logging information stored in the memory unit 120 without compromising the security strength. Furthermore, in the IC card 1 of this embodiment, the logging information stored in the memory unit 120 is not updated after the IC card 1 transitions to the revoked state, thereby reducing the risk of the logging information indicating the reason why the IC card 1 transitioned to the revoked state being tampered with by an external attacker.

[0088] In other words, in the IC card 1 of this embodiment, after the IC card 1 transitions to the revoked state, in order to conceal the cause of the IC card 1 transitioning to the revoked state, even if an attacker launches a new attack, the logging information indicating the cause of the IC card 1 transitioning to the revoked state continues to be stored without being tampered with.

[0089] Therefore, the IC card 1 according to this embodiment makes it possible to reliably analyze the cause of the life cycle status of the IC card becoming obsolete.

[0090] The above describes the embodiment of the present invention. Note that some or all of the functions of each part of the IC card 1 in the above embodiment may be realized by a computer. In that case, a program for realizing the functions may be recorded in a computer-readable recording medium, and the program recorded in the recording medium may be read into a computer system and executed to realize the functions. Note that the term "computer system" here includes hardware such as an OS and peripheral devices. Furthermore, the term "computer-readable recording medium" refers to portable media such as flexible disks, optical magnetic disks, ROMs, and CD-ROMs, and storage devices such as hard disks built into a computer system. Furthermore, the term "computer-readable recording medium" may include those that dynamically hold a program for a short period of time, such as a communication line when a program is transmitted via a network such as the Internet or a communication line such as a telephone line, and those that hold a program for a certain period of time, such as a volatile memory inside a computer system that is a server or client in that case. Furthermore, the above program may be for realizing some of the functions described above, or may be capable of realizing the functions described above in combination with a program already recorded in the computer system, or may be realized using a programmable logic device such as an FPGA (Field Programmable Gate Array).

[0091] Although the embodiment of the present invention has been described in detail above with reference to the drawings, the specific configuration is not limited to the above, and various design changes, etc. are possible within the scope that does not deviate from the gist of the present invention. [Explanation of symbols]

[0092] 1 IC card 10 I / O 11 CPU 12 ROM 13 RAM 14 EEPROM 15 Registers 100 Communications Department 110 Control section 111 Judgment section 112 Selection section 113 Writing section 114 Detection unit 115 Processing section 120 Storage section

Claims

1. An IC card having an operational state, a locked state, and an abolished state as life cycle statuses, A detection unit that detects an abnormality due to an external attack; A storage unit that stores information regarding the abnormality as logging information; a determination unit for determining the current life cycle status of the IC card; a selection unit that selects a first process of not updating the logging information stored in the storage unit when a result of the determination by the determination unit is the abolished state, and selects a second process of updating the logging information stored in the storage unit based on information indicating the abnormality when a result of the determination by the determination unit is not the abolished state; a processing unit that executes one of the first process and the second process selected in advance by the selection unit when the abnormality is detected by the detection unit; An IC card comprising:

2. the determination unit determines the life cycle status of the IC card during a period from when the IC card is powered on to when the IC card starts receiving a command.

2. The IC card according to claim 1.

3. when the abnormality is detected by the detection unit during reception of a command or execution of a command process, the processing unit executes either the first process or the second process as an interrupt process.

3. The IC card according to claim 1 or 2.

4. a register into which processing information indicating whether the processing unit is to execute the first processing or the second processing is written; a write unit that writes the processing information into the register based on a result of the selection by the selector; Further equipped with When the abnormality is detected by the detection unit, the processing unit executes either the first process or the second process based on the processing information written in the register. The IC card according to any one of claims 1 to 3.

5. A method for processing logging information of an IC card having an operational state, a locked state, and an abolished state as life cycle statuses, comprising the steps of: A process in which a detection unit detects an abnormality caused by an external attack; a step of determining the current life cycle status of the IC card by a determination unit; a selection unit selecting a first process of not updating logging information, which is information relating to the abnormality stored in a storage unit, when a result of the determination by the determination unit is the abolished state, and selecting a second process of updating the logging information stored in the storage unit based on the information indicating the abnormality when the result of the determination is not the abolished state; a process in which a processing unit executes one of the first process and the second process selected in advance by the selection unit when the abnormality is detected by the detection unit; A method for processing logging information of an IC card, comprising:

6. A program for causing a computer to function as an IC card having a life cycle status of an operational state, a locked state, and an abolished state, the program comprising: A detection means for detecting an abnormality due to an external attack; a determination means for determining the current life cycle status of the IC card; a selection means for selecting a first process of not updating logging information, which is information related to the abnormality stored in a storage unit, when a result of the determination by the determination means is the abolished state, and for selecting a second process of updating the logging information stored in the storage unit based on the information indicating the abnormality when the result of the determination is not the abolished state; a processing means for executing, when the abnormality is detected by the detection means, one of the first process and the second process selected in advance by the selection means; A program that functions as a

Citation Information

Patent Citations

  • Ic card

    JP2003263615A

  • IC card, reader / writer for IC card, and IC card state management method

    JP2004110087A

  • Security management system, information processor, offline device, security management method, and program

    JP2012043208A

  • IC card and IC card issuing system, IC card issuing method

    JP2018136835A

  • Log output method, log output device, and program

    WO2019193786A1