DETECTION DEVICE, LEARNING DEVICE, DETECTION METHOD, AND DETECTION PROGRAM

The detection device uses graph learning to automatically extract features from circuit design information, improving hardware Trojan detection accuracy and resilience by learning a detection model that adapts to changing circuit designs and evasive tactics.

JP7565561B2Active Publication Date: 2024-10-11KDDI CORP +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2021085409
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-05-20
Publication Date
2024-10-11
Estimated Expiration
2041-05-20

AI Technical Summary

Technical Problem

Conventional hardware Trojan detection methods using machine learning require predefining features, which necessitate specialized knowledge and are ineffective when circuit design information changes or when attackers design circuits to evade detection.

Method used

A detection device that automatically extracts features using node embedding technology in graph learning, converting circuit design information into a graph where circuit elements are nodes and signal lines are edges, and updates feature values through aggregation functions and weight matrices to learn a detection model.

Benefits of technology

Enables automatic feature extraction without predefinition, enhancing detection accuracy and resilience against evasion tactics, particularly for unknown fraudulent circuits.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007565561000003
    Figure 0007565561000003
  • Figure 0007565561000004
    Figure 0007565561000004
  • Figure 0007565561000005
    Figure 0007565561000005
Patent Text Reader

Abstract

To provide a detection device capable of automatically extracting useful feature quantities without preliminarily defining them and detecting a hardware Trojan.SOLUTION: A detection device 1 includes: a graph acquisition unit 11 that acquires a graph having circuit elements as nodes and signal lines connected to the circuit elements as edges from circuit design information described at a gate level; an attribute acquisition unit 12 that assigns, to each of the nodes, a vector indicating an attribute of the node obtained from the circuit design information as an initial value of a feature quantity of the node; a feature quantity updating unit 13 that updates the feature quantity of the node by a node embedding process based on a vector obtained by aggregating feature quantities of nodes adjacent to each of the nodes; and a determination unit 15 that determines whether or not each of circuit elements included in new circuit design information constitutes a hardware Trojan by a detection model in which a label assigned to the node is learned on the basis of feature quantities of nodes in training data.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an apparatus, method, and program for detecting circuits that behave improperly using machine learning in circuit design information. [Background technology]

[0002] Traditionally, hardware design and manufacturing processes have become globalized, and competition has led to greater efficiency and lower costs, while circuits have become larger and more complex. Against this background, some design and manufacturing processes are sometimes outsourced to third parties. It has been pointed out that the involvement of third parties poses the risk of inserting circuits (hardware Trojans) that realize unintended unauthorized functions at the design stage.

[0003] In most cases, hardware Trojans consist of a trigger circuit that determines the operating conditions of the malicious function, and a payload circuit that realizes the malicious function itself. The trigger circuit determines whether an external input, the value of an internal signal line, or the internal state of the circuit meets a certain condition. The payload circuit causes a decrease in the performance of a normal circuit, such as leaking internal information of the circuit, modifying or stopping normal functions, or increasing power consumption. From the characteristics of such trigger circuits and payload circuits, characteristics specific to hardware Trojans in circuit design information described at the gate level are shown (for example, see Non-Patent Document 1).

[0004] A representative technique for detecting hardware Trojans based on these features is to extract features such as the number of stages to the nearest primary output port or flip-flop based on a netlist, which is information that describes the connection relationships of circuit elements (e.g., logic gates, flip-flops, multiplexers, etc.) at the gate level, and then learn and identify these features using a machine learning algorithm (see, for example, Non-Patent Document 2). The method of Non-Patent Document 2 consists of learning and identification procedures. In the learning procedure, feature values ​​corresponding to signal lines (nets) included in a netlist are extracted, and a machine learning algorithm is used to train whether a net constitutes a hardware Trojan (Trojan net) or a net constitutes a normal circuit (normal net). In the identification procedure, feature values ​​of each net included in a netlist to be detected for hardware Trojans are identified as either a Trojan net or a normal net. [Prior art documents] [Non-patent literature]

[0005] [Non-Patent Document 1] M. Oya, Y. Shi, M. Yanagisawa, and N. Togawa, "A score-based classification method for identifying Hardware-Trojans at gate-level netlists," Proceedings of the 2015 Design, Automation & Test in Europe Conference & Exhibition (DATE), pp. 465-470, 2015. [Non-Patent Document 2] K. Hasegawa, M. Yanagisawa, and N. Togawa, "Hardware Trojans classification for gate-level netlists using multi-layer neural networks," Proceedings of the 2017 IEEE 23rd International Symposium on On-Line Testing and Robust System Design (IOLTS), pp. 227-232, 2017. Summary of the Invention [Problem to be solved by the invention]

[0006] In hardware Trojan detection, feature design and optimization are very important for improving detection accuracy. However, in conventional machine learning-based hardware Trojan detection methods, it was necessary to predetermine effective features and extract them from circuit design information. Therefore, when designing the features, specialized knowledge about hardware design and the properties of hardware Trojans was required. Furthermore, when the circuit design information used as training data changed significantly, or when learning and detection were attempted for unknown malicious circuits, it was necessary to redesign new appropriate features.

[0007] Furthermore, if an attacker has intimate knowledge of the features, he or she may be able to design a fraudulent circuit that extracts features that are indistinguishable from normal circuits. As described above, conventional methods have had issues with feature design that prevent hardware Trojan detection technology from being widely used.

[0008] An object of the present invention is to provide a detection device, a detection method, and a detection program that can automatically extract useful features without predefining them and detect hardware Trojans. [Means for solving the problem]

[0009] The detection device of the present invention includes a graph acquisition unit that acquires a graph from circuit design information described at the gate level, in which circuit elements are nodes and signal lines connected to the circuit elements are edges; an attribute acquisition unit that assigns to each of the nodes a vector indicating the attributes of the node obtained from the circuit design information as an initial value of the feature of the node; a feature update unit that updates the feature of the node by a node embedding process based on a vector that aggregates the features of nodes adjacent to each of the nodes; and a determination unit that determines whether each of the circuit elements included in new circuit design information constitutes a hardware Trojan by a detection model that has learned the labels assigned to the nodes based on the features of the nodes in training data.

[0010] The feature updating unit may repeat updating the features a predetermined number of times while updating an aggregation function that aggregates the features of the adjacent nodes and a weighting matrix used when updating the features, so as to optimize a loss function that is based on a distribution of the features in the graph.

[0011] The attribute acquisition unit may acquire, as an attribute of the node, a value indicating a type of a circuit element corresponding to the node.

[0012] The attribute acquiring unit may acquire, as an attribute of the node, a value indicating a type of a module that includes a circuit element corresponding to the node in the circuit design information.

[0013] The attribute acquisition unit may concatenate a vector aggregating attributes of the edges adjacent to the node obtained from the circuit design information to a vector indicating the attribute of the node, and set this as an initial value of the feature of the node.

[0014] The attribute acquisition unit may acquire, as an attribute of the edge, a value indicating a type of a signal line corresponding to the edge.

[0015] The learning device according to the present invention learns the detection model used by the detection device based on the feature quantities of nodes in the training data.

[0016] The detection method of the present invention includes a graph acquisition step of acquiring a graph from circuit design information described at the gate level, in which circuit elements are nodes and signal lines connected to the circuit elements are edges; an attribute acquisition step of assigning to each of the nodes a vector indicating the attributes of the node obtained from the circuit design information as an initial value of the feature of the node; a feature update step of updating the feature of the node by a node embedding process based on a vector that aggregates the features of nodes adjacent to each of the nodes; and a determination step of determining whether each of the circuit elements included in the new circuit design information constitutes a hardware Trojan using a detection model that has learned the labels assigned to the nodes based on the features of the nodes in training data.

[0017] A detection program according to the present invention causes a computer to function as the detection device. Effect of the Invention

[0018] According to the present invention, useful features can be automatically extracted without being defined in advance, and hardware Trojans can be detected. [Brief description of the drawings]

[0019] [Figure 1] FIG. 2 is a diagram illustrating a functional configuration of a detection device according to an embodiment. [Diagram 2] FIG. 2 is a diagram illustrating an example of a circuit to be subjected to detection of a hardware Trojan in the embodiment. [Diagram 3] FIG. 10 is a diagram illustrating a graph representation converted from a circuit diagram in an embodiment. [Figure 4] 11 is a flowchart illustrating a procedure for node embedding processing by graph learning according to an embodiment. [Diagram 5] 10 is a flowchart illustrating a process of a learning phase of a detection model in an embodiment. [Figure 6] 10 is a flowchart illustrating a detection phase process using a detection model in an embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0020] An example of an embodiment of the present invention will now be described. The detection device of this embodiment applies a node embedding technique in graph learning to circuit design information to automatically extract features of circuit elements useful for detecting hardware Trojans from the circuit design information. The detection device uses these features to train a detection model and detects hardware Trojans using the trained detection model.

[0021] FIG. 1 is a diagram showing the functional configuration of a detection device 1 according to the present embodiment. The detection device 1 is an information processing device (computer) including a control unit 10, a storage unit 20, various input / output devices, communication devices, and the like.

[0022] The control unit 10 is a part that controls the entire detection device 1, and realizes each function in this embodiment by appropriately reading and executing various programs stored in the storage unit 20. The control unit 10 may be a CPU.

[0023] The storage unit 20 is a storage area for storing various programs for causing the hardware group to function as the detection device 1, various data, and the like, and may be a ROM, a RAM, a flash memory, a hard disk drive (HDD), or the like. Specifically, the storage unit 20 stores a program (detection program) for causing the control unit 10 to execute each function of this embodiment, as well as a detection model for hardware Trojans, training data for learning the detection model, and the like.

[0024] The control unit 10 includes a graph acquisition unit 11, an attribute acquisition unit 12, a feature update unit 13, a learning unit 14, and a judgment unit 15, and these functional units learn the detection model and detect hardware Trojans.

[0025] The graph acquisition unit 11 acquires a graph from the circuit design information described at the gate level, in which circuit elements are regarded as nodes and signal lines connected to the circuit elements are regarded as edges.

[0026] The attribute acquiring unit 12 assigns, to each node in the graph, a vector indicating the attribute of the node obtained from the circuit design information as an initial value of the feature amount of the node. At this time, the attribute acquiring unit 12 acquires, as an attribute of the node, a value indicating the type of the circuit element corresponding to this node. Furthermore, the attribute acquiring unit 12 may acquire, as an attribute of the node, a value indicating the type of the module including the circuit element corresponding to this node.

[0027] In addition, the attribute acquisition unit 12 may link a vector that aggregates (e.g., averages, sums, etc.) the attributes of edges adjacent to a node obtained from the circuit design information to a vector indicating the attributes of the node, and set this as the initial value of the feature of this node. At this time, the attribute acquiring unit 12 acquires, as an attribute of the edge, a value indicating the type of the signal line corresponding to this edge.

[0028] Specifically, the graph acquisition unit 11 and the attribute acquisition unit 12 obtain a graph representation of the circuit design information as follows.

[0029] Let G be a graph corresponding to circuit design information described at the gate level. G is composed of a set V of nodes representing circuit elements (e.g., logic gates, flip-flops, multiplexers, external input / output terminals, etc.) and a set E of edges representing signal lines connecting the circuit elements.

[0030] For each node v ∈ V, we define a vector x v Let x v is a value indicating the type of circuit element (e.g., primary input, primary output, logic gate, flip-flop, multiplexer, constant) or the type of module in which the circuit element exists, and is obtained directly from the circuit design information or mechanically by conversion. In this embodiment, the end points (primary input and primary output) of the circuit are also regarded as circuit elements and are nodes of the graph G. Furthermore, a constant refers to a fixed signal of 0 or 1 that is input to a logic gate, for example.

[0031] Similarly, for each edge e ∈ E, we define a vector indicating the attributes of this signal line as d e Let us assume that d e is a value indicating the type of signal line (for example, a clock signal, a reset signal, a signal line with a special meaning, or a general signal line other than that), and is obtained directly from the circuit design information or mechanically by conversion.

[0032] For each node v, let l∈L be a label that indicates whether the circuit element corresponding to this node constitutes a hardware Trojan or not.

[0033] FIG. 2 is a diagram showing an example of a circuit to be subjected to detection of hardware Trojans in this embodiment. In this circuit, three primary inputs, a, b, and ci, are transformed into two primary outputs, s and co, by multiple logic gates. From this circuit diagram, the following graph is obtained, with inputs / outputs and logic gates as nodes and each signal line as an edge.

[0034] FIG. 3 is a diagram illustrating a graph representation converted from a circuit diagram in this embodiment. In this example, a vector having three attributes, namely, whether it is a primary input or not, whether it is a logic gate or not, and whether it is a primary output or not, is assigned to each node as the attributes of the node.

[0035] For example, the nodes representing the three primary inputs a, b, and ci are each assigned the attribute vector (1,0,0), and the nodes representing the two primary outputs s and co are each assigned the attribute vector (0,0,1). In addition, the nodes representing the five logic gates are each assigned an attribute vector (0,1,0).

[0036] The feature updating unit 13 updates the feature of each node included in the graph by a node embedding process of graph learning based on a vector that aggregates the feature of nodes adjacent to this node.

[0037] In graph learning, a set of graphs D is used as training data. G The feature update unit 13 updates each graph G=(V,E)∈D in the training data. train For each node v∈V, we define a vector x v Using this, we create a feature vector z v We get ∈Z. Here, the set of feature vectors Z is defined as an aggregation function f that aggregates (for example, averages) the information of surrounding nodes, according to the following literature A. Agg , weight matrix W, connectivity function f Concat Using the set N(v) of nodes adjacent to node v and the sigmoid function σ, it can be obtained by the following procedure. Document A: William L. Hamilton, Zhitao Ying, Jure Leskovec, "Inductive Representation Learning on Large Graphs", NIPS, pp. 1024-1034, 2017.

[0038] FIG. 4 is a flowchart showing the procedure of node embedding processing by graph learning in this embodiment.

[0039] In step S1, the feature updating unit 13 sets the repetition counter k=0 and v 0 Initialize h v k ,∀v∈V denotes the feature vector of each node in the kth trial. In addition, h v 0 =x v However, as described above, the attributes of the edges may be linked, and the initial values ​​are not limited to these.

[0040] In step S2, the feature updating unit 13 increments the counter k by 1, and proceeds to the kth trial of the following steps.

[0041] In step S3, the feature updating unit 13 updates the feature vector for each node v∈V by the following calculation.

number

[0042] In step S4, the feature amount update unit 13 judges whether or not k = K. If the judgment is YES, the process proceeds to step S5, and if the judgment is NO, the process returns to step S2. It should be noted that K is a constant that is set in advance.

[0043] In step S5, the feature updating unit 13 v ←h v K ,∀v∈V, and determine the feature vector of each node v.

[0044] Here, the feature updating unit 13 uses an aggregation function f Agg , and the weight matrix W used when updating the features are updated so as to optimize a loss function based on the distribution of the features in the graph, while repeating the updating of the features a predetermined number of times (K times).

[0045] Specifically, we define node u as a node that exists near node v, P n Let (v) be the set of nodes that are far from node v (i.e., negative samples), and Q be the number of negative samples. Then, the aggregation function f Agg and the loss function J for optimizing the parameters of the weight matrix W. g is expressed, for example, as follows (see Document A):

number

[0046] In this way, through node embedding processing, the attribute value of each node is converted into a feature vector z that clearly indicates the structural features of the circuit, depending on the connection relationships with the surrounding nodes (and edges).

[0047] The learning unit 14 learns parameters of the detection model based on the feature amounts of the nodes in the training data and the correct labels assigned to each node. The detection model f(Z) takes input Z and outputs a probability L' indicating whether or not each node constitutes a hardware Trojan. The detection model is trained to minimize the error between the output L' and the correct label L, for example, by using an algorithm such as a multi-layer perceptron or random forest.

[0048] FIG. 5 is a flowchart showing the process of the learning phase of the detection model in this embodiment.

[0049] In step S11, the learning unit 14 acquires training data for learning the detection model. The training data includes gate-level circuit design information for a plurality of circuits. The learning unit 14 generates a set D of graphs converted from each of the circuit design information. train And for each graph G = (V, E) ∈ D train We obtain a set L of correct labels that indicate whether a node v∈V in constitutes a hardware Trojan or not. At this time, the learning unit 14 obtains, from the circuit included in the training data, a vector x which is a set of values ​​indicating the attributes of the circuit elements, and a vector d which is a set of values ​​indicating the attributes of the signal lines.

[0050] In step S12, the learning unit 14 obtains a set Z of feature vectors that well represent the features of each circuit element by node embedding processing based on the information obtained in step S11.

[0051] In step S13, the learning unit 14 uses the set Z of feature vectors obtained in step S12, associates them with the correct labels obtained in step S11, and learns a detection model by a machine learning algorithm.

[0052] The determination unit 15 determines whether or not each of the circuit elements included in the new circuit design information constitutes a hardware Trojan using the learned detection model. Specifically, for example, circuit elements requiring caution are detected by comparing the probability that a circuit element constitutes a hardware Trojan, which is the output of a detection model that uses the features of each node as input, with a predetermined threshold. When such a circuit element requiring attention is detected in the circuit design information, the circuit design information is analyzed in more detail, either manually or using existing test techniques.

[0053] FIG. 6 is a flowchart showing the process of the detection phase using the detection model in this embodiment.

[0054] In step S21, the judgment unit 15 acquires test data to be detected. This data includes gate level design information for one or more circuits. The judgment unit 15 obtains a set D of graphs converted from each circuit design information. test from the graph acquisition unit 11, and the attribute vectors x and d of the nodes and edges corresponding to this graph are obtained from the attribute acquisition unit 12.

[0055] In step S22, the judgment unit 15 obtains a set Z of feature vectors that well represent the features of each circuit element from the feature amount update unit 13, in the same manner as in the learning phase.

[0056] In step S23, the judgment unit 15 uses the detection model learned in the learning phase to judge whether or not each circuit element corresponding to each of the vectors included in the set Z of feature vectors obtained in step S22 constitutes a hardware Trojan.

[0057] According to this embodiment, the detection device 1 expresses the circuit design information described at the gate level as a graph. At this time, the circuit elements are regarded as nodes, the wiring connecting the circuit elements are regarded as edges, and values ​​indicating the attributes of the circuit elements and values ​​indicating the attributes of the wiring are associated with the nodes and edges, respectively. Based on the graph generated in this way, the detection device 1 applies node embedding by graph learning to obtain a feature amount (feature vector) that well represents the features of each node. The detection device 1 then uses a machine learning algorithm to learn a detection model based on the feature vectors and ground truth labels obtained from the circuit design information that serves as training data. When detecting hardware Trojans, which are unauthorized circuits, the detection device 1 uses the learned detection model to determine whether a node constitutes a hardware Trojan, based on the feature vectors of each node obtained from the test data in a similar procedure to that for the training data.

[0058] Therefore, the detection device 1 can automatically extract features that are effective for detecting hardware Trojans without predefining them, and can detect hardware Trojans that have been mixed in at the circuit design stage by machine learning. As a result, high detection performance can be expected even for hardware Trojans for which features defined by conventional techniques are ineffective. In addition, because the design information of the features is not known to attackers, the risk of circuits being designed to evade detection can be reduced.

[0059] The detection device 1 updates the aggregation function that aggregates the features of adjacent nodes and the weight matrix used for updating the features so as to optimize a loss function based on the distribution of the features in the graph, while repeating the update of the features a predetermined number of times. This allows the detection device 1 to appropriately determine features that represent the relationships between nodes in the graph as a whole, for example by making the feature vectors of nearby nodes on the graph similar and making the feature vectors of distant nodes diverge.

[0060] The detection device 1 acquires, as attributes of a node, information that can be easily extracted or converted from circuit design information, such as the type of circuit element corresponding to the node, the type of module, etc. Therefore, the detection device 1 can efficiently determine appropriate feature amounts.

[0061] The detection device 1 concatenates a vector that aggregates the attributes of edges adjacent to a node obtained from the circuit design information to a vector indicating the attributes of the node and sets this as the initial value of the node's features, thereby being able to determine more reliable features that also include information about signal lines.

[0062] The detection device 1 acquires, as an attribute of an edge, information that can be easily extracted or converted from circuit design information, such as the type of a signal line corresponding to the edge. Therefore, the detection device 1 can efficiently determine appropriate feature amounts.

[0063] In addition, the above-mentioned embodiment can, for example, properly detect the inclusion of hardware Trojans in circuit design information, thereby improving safety in hardware design, and thereby contributing to Goal 9 of the United Nations-led Sustainable Development Goals (SDGs) "Build resilient infrastructure, promote sustainable industrialization and foster innovation."

[0064] Although the embodiments of the present invention have been described above, the present invention is not limited to the above-described embodiments. Furthermore, the effects described in the above-described embodiments are merely a list of the most preferable effects resulting from the present invention, and the effects of the present invention are not limited to those described in the embodiments.

[0065] The detection method by the detection device 1 is realized by software. When realized by software, a program constituting this software is installed in an information processing device (computer). These programs may be recorded on a removable medium such as a CD-ROM and distributed to users, or may be distributed by being downloaded to the user's computer via a network. Furthermore, these programs may be provided to the user's computer as a Web service via a network without being downloaded. [Explanation of symbols]

[0066] 1. Detection device (learning device) 10 Control section 11 Graph Acquisition Section 12 Attribute acquisition part 13 Feature update unit 14 Learning Department 15 Judgment section 20 Memory section

Claims

1. a graph acquisition unit that acquires a graph from the circuit design information described at the gate level, in which circuit elements are nodes and signal lines connected to the circuit elements are edges; an attribute acquisition unit that assigns, to each of the nodes, a vector indicating an attribute of the node obtained from the circuit design information as an initial value of a feature amount of the node; a feature updating unit that updates the feature of each of the nodes by a node embedding process based on a vector that aggregates the feature of each of the nodes adjacent to the node; and a determination unit that determines whether each circuit element included in new circuit design information constitutes a hardware Trojan using a detection model that has learned labels assigned to nodes based on the features of the nodes in training data.

2. 2. The detection device according to claim 1, wherein the feature update unit repeats updating the features a predetermined number of times while updating an aggregation function that aggregates the features of the adjacent nodes and a weighting matrix used when updating the features so as to optimize a loss function based on a distribution of the features in the graph.

3. The detection device according to claim 1 , wherein the attribute acquisition unit acquires, as the attribute of the node, a value indicating a type of a circuit element corresponding to the node.

4. The detection device according to claim 3 , wherein the attribute acquisition unit acquires, as an attribute of the node, a value indicating a type of a module that includes a circuit element corresponding to the node in the circuit design information.

5. The detection device according to any one of claims 1 to 4, wherein the attribute acquisition unit concatenates a vector that aggregates attributes of the edges adjacent to the node obtained from the circuit design information to a vector indicating the attribute of the node, and sets the vector as an initial value of the feature of the node.

6. The detection device according to claim 5 , wherein the attribute acquisition unit acquires, as the attribute of the edge, a value indicating a type of a signal line corresponding to the edge.

7. 7. A learning device that learns the detection model used by the detection device according to claim 1 based on feature amounts of nodes in the training data.

8. a graph acquisition step of acquiring a graph from the circuit design information described at the gate level, in which circuit elements are nodes and signal lines connected to the circuit elements are edges; an attribute acquisition step of assigning a vector indicating an attribute of each of the nodes obtained from the circuit design information as an initial value of a feature amount of the node; a feature updating step of updating the feature of each of the nodes by a node embedding process based on a vector that aggregates the feature of each of the nodes adjacent to the node; a determination step of determining whether or not each circuit element included in new circuit design information constitutes a hardware Trojan using a detection model that has learned labels assigned to nodes based on the features of the nodes in training data.

9. A detection program for causing a computer to function as the detection device according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • RTL hardware Trojan horse detection method based on a gradient lifting algorithm

    CN109657461A

  • Deep Learning Testability Analysis with Graph Convolutional Networks

    US20200151288A1

  • Method of detecting hardware trojan, program for detecting hardware trojan, and device for detecting hardware trojan

    WO2016080380A1