Symbol narrowing down device, program analysis device, symbol extraction method, program analysis method, and program

The symbol narrowing device and method address the issue of irrelevant symbols in backdoor detection by selectively extracting symbols based on control flow conditions, enhancing the accuracy and efficiency of backdoor identification in software analysis.

JP7552865B2Active Publication Date: 2024-09-18NEC CORP
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023508228
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-03-23
Publication Date
2024-09-18
Estimated Expiration
2041-03-23

AI Technical Summary

Technical Problem

Existing methods for detecting backdoors in software fail to effectively narrow down relevant symbols for scoring, leading to inaccurate identification of backdoor code candidates due to the influence of numerous symbols that do not contribute to the score based on the type of backdoor being analyzed.

Method used

A symbol narrowing device and method that extracts specific symbols from a program based on type, using control flow conditions to identify code blocks and symbols relevant to the type of backdoor, thereby refining the scoring process for backdoor detection.

Benefits of technology

Enhances the accuracy of backdoor detection by excluding irrelevant symbols, allowing for precise identification of backdoor code candidates without manual examination, thus improving the efficiency and reliability of backdoor analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007552865000013
    Figure 0007552865000013
  • Figure 0007552865000007
    Figure 0007552865000007
  • Figure 0007552865000005
    Figure 0007552865000005
Patent Text Reader

Abstract

A symbol narrowing-down device (10) comprises: a symbol extraction means (11) for extracting a plurality of prescribed symbols from code included in a program binary; a first code block extraction means (12) for extracting a code block having a specific nature, as a first code block to be analyzed for whether the same is a back door; a second code block extraction means (13) for extracting, as a plurality of second code blocks, a plurality of code blocks that respectively access the plurality of prescribed symbols; a symbol narrowing-down means (14) for extracting, from among the plurality of prescribed symbols, a symbol accessed by a second code block, among the plurality of second code blocks, that satisfies a control flow condition corresponding to a type of back door to be analyzed; and a symbol output means (15) for outputting the symbol extracted by the symbol narrowing-down means (14).
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to a symbol narrowing down device, a program analysis device, a symbol extraction method, a program analysis method, and a non-transitory computer-readable medium. [Background technology]

[0002] In recent years, infrastructures and corporate systems have become more complex. As a result, these infrastructures and corporate systems are no longer composed of devices and software from a single company, but are generally constructed by procuring devices and software from various companies and combining them.

[0003] However, there have been many reported cases where backdoors have been found in software (or firmware) or hardware procured from external manufacturers. The term "backdoor" referred to in this specification can be defined as, for example, a function that is incorporated as part of a program that includes multiple functions constituting software, and that is neither known to nor desired by the user.

[0004] Therefore, manufacturers who oversee the construction of infrastructure and corporate systems must check whether the programs that make up the software they procure from external manufacturers contain backdoors.

[0005] For example, Non-Patent Document 1 describes extracting backdoor code candidates by scoring the code included in the binary to be inspected. Here, Non-Patent Document 1 identifies functions that perform static data comparison from the code included in the target binary, and extracts backdoor code candidates by scoring the extent to which the comparison result of the identified function affects the subsequent execution path. [Prior art documents] [Non-patent literature]

[0006] [Non-Patent Document 1] Sam L. Thomas, Tom Chothia, and Flavio D. Garcia, "Stringer: Measuring the Importance of Static Data Comparisons to Detect Backdoors and Undocumented Functionality", Computer Security ESORICS 2017, pp.513-531 Summary of the Invention [Problem to be solved by the invention]

[0007] Incidentally, in cases where multiple code blocks contained in a program to be analyzed are scored and a code block with a high score among the multiple code blocks is extracted as a candidate for backdoor code, the presence or absence of access to a specified symbol in the code block to be analyzed or its child node affects whether or not the score for the code block to be analyzed increases or decreases.

[0008] Generally, a program contains a large number of symbols. Accordingly, a large number of code blocks access these predetermined symbols are also present. However, some symbols do not contribute to the increase or decrease of the score depending on the type of backdoor being analyzed. Therefore, in the analysis of the backdoor code, it is necessary to narrow down the symbols that contribute to the increase or decrease of the score depending on the type of backdoor being analyzed.

[0009] The present disclosure has been made to solve such problems, and aims to provide a symbol narrowing down device, a program analysis device, a symbol extraction method, a program analysis method, and a non-transitory computer-readable medium that are capable of extracting symbols corresponding to the type of backdoor being analyzed from a large number of symbols contained in a program to be analyzed. [Means for solving the problem]

[0010] A symbol narrowing down device according to a first aspect of the present disclosure includes: a symbol extraction means for extracting a plurality of predetermined symbols from code included in the binary of a program; a first code block extraction means for extracting a code block having a specific property from the code included in the binary of the program as a first code block to be analyzed as to whether it is a backdoor; a second code block extraction means for extracting a plurality of code blocks that access each of the plurality of predetermined symbols as a plurality of second code blocks from the code included in the binary of the program; a symbol narrowing down means for extracting, from the plurality of predetermined symbols, a symbol accessed by the second code block that satisfies a condition on a control flow according to the type of backdoor to be analyzed; and a symbol output means for outputting the symbol extracted by the symbol narrowing down means.

[0011] A symbol extraction method according to a second aspect of the present disclosure is a symbol extraction method executed by a symbol narrowing down device, and includes: a symbol extraction step of extracting a plurality of predetermined symbols from code included in the binary of a program; a first code block extraction step of extracting a code block having a specific property from the code included in the binary of the program as a first code block to be analyzed as to whether it is a backdoor or not; a second code block extraction step of extracting a plurality of code blocks that access each of the plurality of predetermined symbols as a plurality of second code blocks from the code included in the binary of the program; a symbol narrowing down step of extracting, from the plurality of predetermined symbols, a symbol accessed by the second code block that satisfies a condition on a control flow according to the type of backdoor to be analyzed; and a symbol output step of outputting the symbol extracted in the symbol narrowing down step.

[0012] A non-transitory computer-readable medium according to a third aspect of the present disclosure stores a program for causing a computer to execute the following operations: a symbol extraction process for extracting a plurality of predetermined symbols from code included in the binary of a program; a first code block extraction process for extracting a code block having a specific property from the code included in the binary of the program as a first code block to be analyzed for whether it is a backdoor; a second code block extraction process for extracting a plurality of code blocks that access each of the plurality of predetermined symbols as a plurality of second code blocks from the code included in the binary of the program; a symbol narrowing down process for extracting, from the plurality of predetermined symbols, a symbol accessed by the second code block that satisfies a condition on a control flow according to the type of backdoor to be analyzed; and a symbol output process for outputting the symbol extracted in the symbol narrowing down process. Effect of the Invention

[0013] The present disclosure makes it possible to provide a symbol narrowing down device, a program analysis device, a symbol extraction method, a program analysis method, and a non-transitory computer-readable medium that are capable of extracting a symbol corresponding to the type of backdoor being analyzed from among a large number of symbols contained in a program. [Brief description of the drawings]

[0014] [Figure 1] 1 is a block diagram showing an example of the configuration of a symbol narrowing-down device according to a first embodiment. [Diagram 2] 2 is a flowchart showing an example of a process flow of the symbol narrowing-down device shown in FIG. [Diagram 3] 2 is a block diagram showing an example of the configuration of a program analysis device including the symbol narrowing-down device shown in FIG. 1. [Figure 4] 4 is a flowchart showing an example of a process flow of the program analysis device shown in FIG. 3. [Diagram 5] FIG. 11 is a block diagram showing an example of the configuration of a symbol narrowing-down device according to a second embodiment. [Figure 6] FIG. 1 is a schematic diagram showing an example of a control flow graph of a program to explain a dead code block, which is an example of a code block having a specific property. [Figure 7] FIG. 1 is a schematic diagram showing an example of a control flow graph of a program to explain a dead code block, which is an example of a code block having a specific property. [Figure 8] FIG. 1 is a schematic diagram showing an example of a control flow graph of a program to explain a dead code block, which is an example of a code block having a specific property. [Figure 9] FIG. 13 is a schematic diagram showing an example of a control flow graph of a program, for explaining another example of a code block having a specific property. [Figure 10]6 is a flowchart showing an example of a process flow of the symbol narrowing-down device shown in FIG. 5. [Figure 11] 6 is a schematic diagram showing an example of a control flow graph of a certain program, for explaining the symbol narrowing down process by the symbol narrowing down device shown in FIG. 5. FIG. [Figure 12] 6 is a schematic diagram showing an example of a control flow graph of a certain program, for explaining the symbol narrowing down process by the symbol narrowing down device shown in FIG. 5. FIG. [Figure 13] 6 is a block diagram showing an example of the configuration of a program analysis device including the symbol narrowing down device shown in FIG. 5. [Figure 14] 14 is a flowchart showing an example of a process flow of the program analysis device shown in FIG. 13. [Figure 15] FIG. 11 is a diagram illustrating an example of a hardware configuration of a program analysis device according to a third embodiment. [Figure 16] FIG. 1 is a block diagram showing an example of the configuration of a program analysis device in the concept stage. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0015] Hereinafter, an embodiment will be described with reference to the drawings. In the embodiments, the same or equivalent elements are denoted by the same reference numerals, and duplicated explanations will be omitted.

[0016] <Preliminary review by the inventor> Before describing the program analysis device according to the first embodiment, the contents of the preliminary studies conducted by the inventors will be described.

[0017] 16 is a block diagram showing a configuration example of a program analysis device 50 in the concept stage before arriving at embodiment 1. As shown in FIG. 16, program analysis device 50 includes a code block extraction unit 51, a backdoor score calculation unit 52, and an analysis result output unit 53.

[0018] The code block extraction unit 51 extracts all code blocks with specific properties from among the code contained in the binary of the program to be analyzed (hereinafter referred to as the target binary). The code block mentioned here refers to, for example, a group of code in units of functions or basic blocks in a program. An example of a code block with specific properties is a dead code block. A dead code block is a code block that cannot be reached by a normal control flow when the program is executed.

[0019] The backdoor score calculation unit 52 calculates a backdoor score, which is a score indicating the possibility that the code block is a backdoor code or a score indicating the degree of the influence on the system when the code block is executed, for each code block extracted by the code block extraction unit 51, based on the operation content of the code block. The system described here is, for example, a computer including an environment for executing the program to be analyzed.

[0020] For example, when a predetermined sensitive operation is present in a code block extracted by the code block extraction unit 51, the backdoor score calculation unit 52 performs a process of adding a score preset for the operation to the backdoor score for the code block. The predetermined sensitive operation described here is, for example, an operation that is considered to have a significant effect on a system including a program and an environment in which the program is executed if it is executed illegally, and is an operation that is predetermined by a user (for example, a client who requests a program inspection or an analyst who performs the inspection).

[0021] Here, source code of a high-level language such as the C language is mainly composed of functions and variables having names that are understandable and meaningful to humans. When compiling source code, a compiler generates symbols that enable tracing of which binary code or which binary data is associated with the names of such functions and variables contained in the source code. There are many symbols generated in this way in a program. The above-mentioned predetermined sensitive operations also include operations to access these predetermined symbols.

[0022] The analysis result output unit 53 outputs the code blocks extracted by the code block extraction unit 51 and the backdoor scores for the code blocks calculated by the backdoor score calculation unit 52 as analysis results.

[0023] As a result, the program analysis device 50 can present code blocks that are candidates for backdoor code contained in a program to be analyzed and the corresponding backdoor scores to, for example, a person who analyzes the program. Therefore, the person who analyzes the program can extract candidates for backdoor code from the program to be analyzed without comparing the code of the program to a specification or manually examining the code of the program in detail.

[0024] Incidentally, in cases where multiple code blocks contained in a program to be analyzed are scored and a code block with a high score among the multiple code blocks is extracted as a candidate for backdoor code, the presence or absence of access to a specified symbol in the code block to be analyzed or its child node affects whether or not the score for the code block to be analyzed increases or decreases.

[0025] As described above, there are a great number of symbols in a program, and therefore there are a great number of code blocks that access these predetermined symbols.

[0026] However, even when the type of the analyzed backdoor is different, the program analysis device 50 uses many predetermined symbols for calculating the score without narrowing down the symbols, so that the program analysis device 50 may use symbols that do not contribute to increasing or decreasing the score for calculating the score depending on the type of the analyzed backdoor.

[0027] Therefore, the symbol narrowing-down device 10 according to the first embodiment has been found, which is capable of extracting symbols corresponding to the type of backdoor being analyzed from among a large number of symbols contained in a program to be analyzed.

[0028] <Embodiment 1> 1 is a block diagram showing a configuration example of a symbol narrowing-down device 10 according to the first embodiment. The symbol narrowing-down device 10 can extract symbols according to the type of backdoor to be analyzed (i.e., according to what type of backdoor candidate is to be extracted) from among many symbols included in a program to be analyzed. As a result, for example, the program analysis device can calculate the backdoor score by excluding symbols that hardly contribute to an increase or decrease in the backdoor score depending on the type of backdoor to be analyzed. A specific description will be given below.

[0029] As shown in FIG. 1, the symbol narrowing-down device 10 includes a symbol extraction unit 11, a first code block extraction unit 12, a second code block extraction unit 13, a symbol narrowing-down unit 14, and a symbol output unit 15.

[0030] The symbol extraction unit 11 extracts a plurality of predetermined symbols from the code included in the binary of the program to be analyzed (hereinafter referred to as the target binary). The "predetermined symbols" referred to here are a plurality of symbols determined based on at least one of attribute information of the symbol type and scope level of all symbols included in the target binary. Symbol types include, for example, data types and function types. For example, the symbol extraction unit 11 extracts a plurality of predetermined symbols having the same symbol type and scope level from the code included in the target binary.

[0031] The first code block extraction unit 12 extracts all code blocks having specific properties from the code included in the target binary as first code blocks to be analyzed for whether they are backdoors or not. The code block mentioned here refers to, for example, a group of code in units of functions or basic blocks in a program. An example of a code block having specific properties is a dead code block. A dead code block is a code block that cannot be reached by a normal control flow when a program is executed.

[0032] The second code block extraction unit 13 extracts all code blocks that perform a predetermined sensitive operation from among the codes included in the target binary. The predetermined sensitive operation described here is, for example, an operation that, if executed illegally, is considered to have a significant effect on a system including a program and an environment in which the program is executed, and is an operation that is predetermined by a user. The system is, for example, a computer that includes the environment in which the program to be analyzed is executed.

[0033] Here, the second code block extraction unit 13 particularly extracts, as a plurality of second code blocks, a plurality of code blocks that access each of the plurality of predetermined symbols extracted by the symbol extraction unit 11. Note that the access to the predetermined symbols is included in the predetermined sensitive operation.

[0034] The symbol narrowing-down unit 14 first extracts second code blocks that satisfy a condition on a control flow according to the type of backdoor to be analyzed from among the multiple second code blocks extracted by the second code block extraction unit 13. Then, the symbol narrowing-down unit 14 extracts symbols that are accessed by the extracted second code blocks from among the multiple predetermined symbols extracted by the symbol extraction unit 11.

[0035] The types of backdoors described here include, for example, a type of backdoor that illegally takes out sensitive information inside a program to the outside, and a type of backdoor that illegally takes sensitive information outside a program into the inside of a program. The symbol narrowing-down unit 14 extracts a second code block that satisfies a condition on a control flow according to such a backdoor type, and extracts a symbol that accesses the extracted second code block. Details of the condition on a control flow according to the backdoor type will be described in detail in the second embodiment.

[0036] The symbol output unit 15 outputs the symbols narrowed down by the symbol narrowing down unit 14 to the outside of the symbol narrowing down device 10. The symbols output from the symbol narrowing down device 10 are used to calculate a backdoor score, which is a score indicating the possibility that the first code block to be analyzed is a backdoor code, or a score indicating the magnitude of the effect on the system when the first code block to be analyzed is executed.

[0037] Next, an example of the processing flow of the symbol narrowing-down device 10 will be described with reference to FIG. FIG. 2 is a flowchart showing an example of the process flow of the symbol narrowing-down device 10. As shown in FIG.

[0038] As shown in FIG. 2, first, the symbol extraction unit 11 extracts a plurality of predetermined symbols from the code included in the target binary, the plurality of predetermined symbols being determined based on at least one of attribute information of the symbol type and the scope level of the symbol (step S101). Then, the first code block extraction unit 12 extracts a code block having a specific property from the code included in the target binary as a first code block to be analyzed as to whether it is a backdoor or not (step S102). Also, the second code block extraction unit 13 extracts a plurality of code blocks that access each of the plurality of predetermined symbols extracted by the symbol extraction unit 11 as a plurality of second code blocks (step S103). Then, the symbol narrowing down unit 14 extracts, from among the plurality of predetermined symbols, a symbol accessed by the second code block that satisfies a condition on the control flow according to the type of the backdoor to be analyzed (step S104). Then, the symbol output unit 15 outputs the symbols narrowed down by the symbol narrowing down unit 14 to the outside of the symbol narrowing down device 10 (step S105).

[0039] As described above, the symbol narrowing-down device 10 according to the present embodiment can extract symbols according to the type of backdoor to be analyzed (i.e., according to what type of backdoor candidates are to be extracted) from among many symbols contained in the program to be analyzed. As a result, depending on the type of backdoor to be analyzed, symbols that hardly contribute to an increase or decrease in the backdoor score can be excluded from the targets used for calculating the backdoor score.

[0040] (Application example of the symbol refinement device 10) FIG. 3 is a block diagram showing an example of the configuration of a program analysis device 1 equipped with a symbol narrowing-down device 10. As shown in FIG.

[0041] As shown in FIG. 3, the program analysis device 1 includes a symbol narrowing-down device 10, a backdoor score calculation unit 17, and an analysis result output unit 18.

[0042] The backdoor score calculation unit 17 calculates a backdoor score for each first code block extracted by the first code block extraction unit 12, based on the operation content (specifically, the content of a predetermined sensitive operation) of the first code block or its child node code block. Here, the backdoor score calculation unit 17 calculates the backdoor score based on at least the content of the symbol narrowed down by the symbol narrowing down device 10, which is accessed by the first code block or its child node code block.

[0043] The analysis result output unit 18 outputs, as the analysis result, the first code block extracted by the first code block extraction unit 12 and the backdoor score for the first code block calculated by the backdoor score calculation unit 17. At this time, the analysis result output unit 18 can output the analysis result in a form in which the backdoor score for the first code block is assigned to the first code block, for example.

[0044] Next, an example of a process flow of the program analysis device 1 will be described with reference to Fig. 4. Fig. 4 is a flowchart showing an example of a process flow of the program analysis device 1. Note that in Fig. 4, the symbol narrowing-down process by the symbol narrowing-down device 10 is omitted.

[0045] 4, first, for each first code block extracted by the first code block extraction unit 12, the backdoor score calculation unit 17 calculates a backdoor score based on the operation content (specifically, the content of a predetermined sensitive operation) of the first code block or its child node code block. Here, the backdoor score calculation unit 17 calculates a backdoor score based on at least the content of the symbol narrowed down by the symbol narrowing down device 10, which is accessed by the first code block or its child node code block (step S106). After that, the analysis result output unit 18 outputs the first code block extracted by the first code block extraction unit 12 and the backdoor score for the first code block calculated by the backdoor score calculation unit 17 as the analysis result (step S107).

[0046] As described above, the program analysis device 1 according to the present embodiment can present the first code block, which is a candidate for the backdoor code included in the program to be analyzed, and the corresponding backdoor score to, for example, a person who analyzes the program. This allows the person who analyzes the program to extract candidates for the backdoor code from the program to be analyzed without comparing the code of the program to the specification or manually examining the code of the program in detail.

[0047] Furthermore, by using the symbol narrowing down device 10, the program analysis device 1 in this embodiment can calculate the backdoor score by excluding symbols that contribute little to increasing or decreasing the backdoor score, depending on the type of backdoor being analyzed.

[0048] <Embodiment 2> FIG. 5 is a block diagram illustrating an example of a configuration of a symbol narrowing-down device 20 according to the second embodiment.

[0049] As shown in FIG. 5, the symbol narrowing-down device 20 includes a symbol extractor 21, a first code block extractor 22, a second code block extractor 23, a symbol narrowing-down unit 24, a symbol output unit 25, and a target condition table .

[0050] The symbol extraction unit 21 extracts a plurality of predetermined symbols from among all symbols included in the target binary data, the plurality of predetermined symbols being determined based on at least one of attribute information of the symbols, such as the symbol type and the scope level.

[0051] The first code block extraction unit 22 extracts all code blocks having specific properties from among the code included in the target binary as first code blocks to be analyzed as to whether they are backdoors or not.

[0052] More specifically, the first code block extraction unit 22 performs static analysis on the target binary and creates a control flow graph for the entire program. After that, based on information such as the created control flow graph, the first code block extraction unit 22 extracts all code blocks having specific properties as first code blocks from the code included in the target binary.

[0053] As described above, a code block having a specific property is, for example, a dead code block. A dead code block is a code block that cannot be reached by a normal control flow when a program is executed.

[0054] Here, an example of a method for extracting dead code blocks will be described with reference to Figures 6 and 7. Figures 6 and 7 are schematic diagrams showing an example of a control flow graph of a certain program to explain dead code blocks. In Figures 6 and 7, solid circles represent normal nodes, dashed circles represent nodes that become dead code blocks, and arrows represent control flows (the same applies to Figures 8 and 9 below).

[0055] As shown in Fig. 6, the first code block extraction unit 22 extracts a node that does not have a parent node on the control flow graph as a dead code block (i.e., a first code block). Also, as shown in Fig. 7, the first code block extraction unit 22 may extract not only a node that does not have a parent node on the control flow graph, but also its child node as a dead code block (i.e., a first code block).

[0056] The dead code block described above will not be executed as long as normal input values ​​are given to the program. However, as shown in Figure 8, if a program has a vulnerability, the dead code block may be called and executed by a vulnerable function under certain conditions, such as when a special input value is given.

[0057] It should be noted that the code block having the specific property is not limited to the dead code block described above. For example, a code block that does not pass through a specific function that is a starting point and is always passed through during normal execution of a program, specifically, an authentication function or a parser function, may be regarded as a code block having the specific property. In the example of Fig. 9, an authentication function that is a starting point exists on the control flow. In this case, the first code block extraction unit 22 may extract a code block that does not pass through an authentication function as a code block having the specific property.

[0058] The second code block extraction unit 23 extracts all code blocks that perform predetermined sensitive operations from the code included in the target binary.

[0059] As described above, a specified sensitive operation is, for example, an operation that, if executed improperly, is considered to have a significant impact on a system including a program and the environment in which the program is executed, and is an operation that has been determined in advance by a user (for example, a client requesting an inspection of a program, or an analyst who performs the inspection).

[0060] For example, a predetermined sensitive operation is an operation of calling a predetermined function or an operation of accessing a predetermined symbol (including an operation of accessing a predetermined variable or an operation of executing a predetermined command) that is predetermined by the user. An operation of calling a predetermined function includes, for example, an operation of calling at least one of a system call, a predetermined library function, and a predetermined API (Application Programming Interface). An operation of accessing a predetermined symbol includes, for example, an operation of accessing a global variable of the program. These predetermined sensitive operations are stored in advance by the user in a target operation table (not shown) or the like together with their corresponding scores.

[0061] Here, the second code block extraction unit 23 particularly extracts a plurality of code blocks that access each of the plurality of predetermined symbols extracted by the symbol extraction unit 21 as a plurality of second code blocks.

[0062] The symbol narrowing-down unit 24 first identifies a second code block that satisfies a condition on a control flow according to the type of backdoor to be analyzed, from among the multiple second code blocks extracted by the second code block extraction unit 23. Then, the symbol narrowing-down unit 24 extracts a symbol accessed by the identified second code block, from among the multiple predetermined symbols extracted by the symbol extraction unit 21.

[0063] As described above, the types of backdoors described here include, for example, a backdoor of a type that illegally takes out sensitive information inside a program to the outside, a backdoor of a type that illegally takes sensitive information outside a program into the inside of a program, etc. After identifying a second code block that satisfies a condition on the control flow according to such a backdoor type, the symbol narrowing-down unit 24 extracts a symbol that accesses the identified second code block.

[0064] For example, when detecting a backdoor code that illegally takes out sensitive information from inside a program, the symbol narrowing-down unit 24 first identifies the first code block or a second code block that is a child node thereof, and a second code block that can be traced from a normal control flow (in other words, one of a plurality of code blocks that constitute a normal control flow) among the plurality of second code blocks extracted by the second code block extraction unit 23. Then, the symbol narrowing-down unit 24 extracts symbols that can be accessed from both the first code block or the second code block that is a child node thereof, and the second code block that can be traced from a normal control flow, among the plurality of predetermined symbols extracted by the symbol extraction unit 21. This also means that symbols that are not accessed by the second code block that can be traced from a normal control flow, i.e., symbols that are not used during normal execution, are excluded from the extraction targets.

[0065] Furthermore, for example, when detecting a backdoor code that illegally imports sensitive information outside the program into the program, the symbol narrowing-down unit 24 first identifies a second code block that is a first code block or a child node thereof and that accesses an external resource (outside the program) from among the multiple second code blocks extracted by the second code block extraction unit 23. Then, the symbol narrowing-down unit 24 extracts a symbol accessed by the identified second code block from among the multiple predetermined symbols extracted by the symbol extraction unit 21.

[0066] The target condition table 26 stores conditions according to the type of backdoor to be analyzed, as described above.

[0067] The symbol output unit 25 outputs the symbols narrowed down by the symbol narrowing down unit 24 to the outside of the symbol narrowing down device 20. The symbols output from the symbol narrowing down device 20 are used to calculate a backdoor score, which is a score indicating the possibility that the first code block to be analyzed is a backdoor code, or a score indicating the magnitude of the effect on the system when the first code block to be analyzed is executed.

[0068] Next, an example of the processing flow of the symbol narrowing down device 20 will be described with reference to Figs. 10 to 12. Fig. 10 is a flowchart showing an example of the processing flow of the symbol narrowing down device 20. Figs. 11 and 12 are schematic diagrams showing an example of a control flow graph of a certain program for explaining the symbol narrowing down process by the symbol narrowing down device 20. Fig. 11 shows a state before the symbols are narrowed down, and Fig. 12 shows a state after the symbols are narrowed down.

[0069] As shown in FIG. 10, first, the first code block extraction unit 22 performs static analysis on the target binary and creates a control flow graph (step S201).

[0070] Then, the symbol extraction unit 21 extracts a plurality of predetermined symbols (set S) determined based on at least one of attribute information of the symbol type and the scope level from among all symbols included in the target binary (step S202). In the example of Fig. 11, symbols S1 to S6 are extracted as the predetermined symbols (i.e., symbols S1 to S6 are extracted as elements of set S).

[0071] Thereafter, based on information such as the created control flow graph, the first code block extraction unit 22 extracts all of a plurality of code blocks having specific properties from among the codes included in the target binary as first code blocks (set D) to be analyzed as to whether they are backdoors or not (step S203). In the example of Fig. 11, eight dead code blocks D1 to D8, which are nodes that do not have a parent node on the control flow graph, are extracted as the first code blocks D1 to D8 to be scored (i.e., the first code blocks D1 to D8 are extracted as elements of set D).

[0072] Thereafter, the second code block extraction unit 23 extracts all code blocks that perform a predetermined sensitive operation from among the codes included in the target binary. Here, the second code block extraction unit 23 extracts a plurality of code blocks that access each of a plurality of predetermined symbols (set S) extracted by the symbol extraction unit 21, particularly as a plurality of second code blocks (set E) (step S204). In the example of Fig. 11, six code blocks E1 to E6 that are nodes that access at least one of the symbols S1 to S6 are extracted as the second code blocks E1 to E6 (i.e., the second code blocks E1 to E6 are extracted as elements of the set E).

[0073] At this time, from among the multiple second code blocks (set E), second code blocks (set Ea) that can be traced from a normal control flow (for example, a main function in the case of C language) and second code blocks (set Eb) that are first code blocks or child nodes thereof are identified (step S205). The identification of the sets Ea and Eb may be performed by the symbol narrowing down unit 24 or the second code block extraction unit 23.

[0074] Thereafter, the symbol narrowing down unit 24 narrows down the symbols (steps S206 to S210). A specific processing flow by the symbol narrowing down unit 24 is as follows. Here, as an example, a processing flow for detecting a backdoor code of a type that illegally takes out sensitive information inside a program to the outside will be described.

[0075] First, one unselected symbol is selected as an inspection target from among a plurality of predetermined symbols (set S) extracted by the symbol extraction unit 21 (step S206). After that, one or more second code blocks that access the selected symbol are identified from among a plurality of second code blocks (set E) extracted by the second code block extraction unit 23 (step S207).

[0076] Then, it is determined whether any of the one or more second code blocks that access the selected symbol includes an element of the set Ea, and whether any of the one or more second code blocks that access the selected symbol includes an element of the set Eb (step S208). That is, it is determined whether any of the one or more second code blocks that access the selected symbol includes a second code block that can be traced from a normal control flow, and whether any of the one or more second code blocks that access the selected symbol includes a first code block or a second code block that is a child node thereof.

[0077] For example, if any of the one or more second code blocks accessing the selected symbol includes an element of set Ea and any of the one or more second code blocks accessing the selected symbol includes an element of set Eb (YES in step S208), the selected symbol is extracted as a symbol used in score calculation (step S209). Otherwise (NO in step S208), the selected symbol is not extracted as a symbol used in score calculation.

[0078] Thereafter, if an unselected symbol remains to be checked (YES in step S210), an unselected symbol is selected to be checked (step S206), and the processes of steps S207 to S209 are performed. If an unselected symbol remains to be checked (NO in step S210), the symbols narrowed down to be used for score calculation are output from symbol output unit 25 (step S211).

[0079] In the examples of Figures 11 and 12, by going through the processing shown in Figure 10, among symbols S1 to S6, symbols S3 and S4 are narrowed down to only those that are accessed from both the second code block that can be reached from the normal control flow and the first code block or the second code block that is its child node.

[0080] As described above, the symbol narrowing down device 20 according to the present embodiment can extract symbols according to the type of backdoor to be analyzed (i.e., according to what type of backdoor candidates are to be extracted) from among many symbols contained in the program to be analyzed. As a result, depending on the type of backdoor to be analyzed, symbols that hardly contribute to an increase or decrease in the backdoor score can be excluded from the targets used for calculating the backdoor score.

[0081] (Application example of the symbol refinement device 20) FIG. 13 is a block diagram showing an example of the configuration of a program analysis device 2 equipped with a symbol narrowing-down device 20. As shown in FIG.

[0082] As shown in FIG. 13, the program analysis device 2 includes a symbol narrowing-down device 20, a backdoor score calculation unit 27, and an analysis result output unit .

[0083] The backdoor score calculation unit 27 calculates a backdoor score for each first code block extracted by the first code block extraction unit 22, based on the operation content of the first code block or its child node code block. Here, the backdoor score calculation unit 27 calculates the backdoor score based on at least the content of the symbol narrowed down by the symbol narrowing down device 20, which is accessed by the first code block or its child node code block.

[0084] The analysis result output unit 28 outputs the first code block extracted by the first code block extraction unit 22 and the backdoor score for the first code block calculated by the backdoor score calculation unit 27 as analysis results.

[0085] The output format of each first code block by the analysis result output unit 28 may be symbol information in the target binary, the relative address of the code block, the code block name given at the time of analyzing the program, etc. Also, the first code block may be output in a form in which a backdoor score for the code block is added.

[0086] In the symbol narrowing down device 20 and the program analysis device 2 equipped with the same, it is assumed that the program to be analyzed is in binary format and the binary of the program is input, but the source code may be the object of analysis. In that case, the source code to be analyzed may be compiled and converted into binary format in the symbol narrowing down device 20 or the program analysis device 2. In addition, the symbol extraction unit 21, the first code block extraction unit 22, the second code block extraction unit 23, the symbol narrowing down unit 24, the symbol output unit 25, the backdoor score calculation unit 27, or a processing unit not shown may appropriately use information obtained from the source code for analysis.

[0087] Next, an example of a processing flow of the program analysis device 2 will be described with reference to Fig. 14. Fig. 14 is a flowchart showing an example of a processing flow of the program analysis device 2. Note that in Fig. 14, the symbol narrowing-down process by the symbol narrowing-down device 20 is omitted.

[0088] 14, first, the backdoor score calculation unit 27 calculates a backdoor score for each first code block extracted by the first code block extraction unit 22 based on the operation content (specifically, the content of a predetermined sensitive operation) of the first code block or its child node code block. Here, the backdoor score calculation unit 27 calculates a backdoor score based on at least the content of the symbol narrowed down by the symbol narrowing down device 20, which is accessed by the first code block or its child node code block (step S212). After that, the analysis result output unit 28 outputs the first code block extracted by the first code block extraction unit 22 and the backdoor score for the first code block calculated by the backdoor score calculation unit 27 as the analysis result (step S213).

[0089] As described above, the program analysis device 2 according to the present embodiment can present the first code block, which is a candidate for the backdoor code included in the program to be analyzed, and the corresponding backdoor score to, for example, a person who analyzes the program. This allows the person who analyzes the program to extract candidates for the backdoor code from the program to be analyzed without comparing the code of the program to the specification or manually examining the code of the program in detail.

[0090] Furthermore, by using the symbol narrowing down device 20, the program analysis device 2 in this embodiment can calculate the backdoor score by excluding symbols that contribute little to increasing or decreasing the backdoor score, depending on the type of backdoor being analyzed.

[0091] <Embodiment 3> Fig. 15 is a diagram showing an example of a hardware configuration of a symbol narrowing down device 100 according to the third embodiment. In Fig. 15, the symbol narrowing down device 100 includes a processor 101 and a memory 102. The processor 101 may be, for example, a microprocessor, a micro processing unit (MPU), or a central processing unit (CPU). The processor 101 may include a plurality of processors. The memory 102 is configured by a combination of a volatile memory and a non-volatile memory. The memory 102 may include a storage located away from the processor 101. In this case, the processor 101 may access the memory 102 via an input / output (I / O) interface not shown.

[0092] The symbol narrowing down device 10 according to the first embodiment may have the hardware configuration shown in Fig. 15. Furthermore, the symbol extraction unit 11, the first code block extraction unit 12, the second code block extraction unit 13, the symbol narrowing down unit 14, and the symbol output unit 15 in the symbol narrowing down device 10 may be realized by the processor 101 reading and executing a program stored in the memory 102.

[0093] Similarly, the symbol narrowing down device 20 according to the second embodiment may have the hardware configuration shown in Fig. 15. Furthermore, the symbol extraction unit 21, the first code block extraction unit 22, the second code block extraction unit 23, the symbol narrowing down unit 24, and the symbol output unit 25 in the symbol narrowing down device 20 may be realized by the processor 101 reading and executing a program stored in the memory 102. Furthermore, the target condition table 26 in the symbol narrowing down device 20 may be stored in the memory 102.

[0094] 15 has been described as an example of a hardware configuration of the symbol narrowing-down device 100, but the present invention is not limited to this. The hardware configuration of a symbol narrowing-down device incorporating the symbol narrowing-down device 100 may also employ a configuration including a processor 101 and a memory 102, similar to the symbol narrowing-down device 100. Each of the program analysis devices 1 and 2 may have a hardware configuration including the processor 101 and the memory 102.

[0095] The above-described programs for implementing the symbol narrowing down devices 10 and 20 and the program analysis devices 1 and 2 can be stored and provided to a computer using various types of non-transitory computer readable media. Examples of the non-transitory computer-readable medium include a magnetic recording medium (e.g., a flexible disk, a magnetic tape, a hard disk drive), a magneto-optical recording medium (e.g., a magneto-optical disk), a compact disc-read only memory (CD-ROM), a CD-recordable (CD-R), a CD-rewritable (CD-R / W), a semiconductor memory (e.g., a mask ROM, a programmable ROM (PROM), an erasable PROM (EPROM), a flash ROM, and a random access memory (RAM). The above-mentioned program may be supplied to a computer by various types of transitory computer-readable medium. Examples of the transitory computer-readable medium include an electric signal, an optical signal, and an electromagnetic wave. The transitory computer-readable medium can supply the program to the symbol narrowing-down devices 10 and 20 and the program analysis devices 1 and 2 via a wired communication path such as an electric wire and an optical fiber, or a wireless communication path.

[0096] Although the present disclosure has been described above with reference to the embodiments, the present disclosure is not limited to the above-described embodiments. Various modifications that can be understood by a person skilled in the art can be made to the configuration and details of the present disclosure within the scope of the present disclosure.

[0097] A part or all of the above-described embodiments can be described as, but is not limited to, the following supplementary notes.

[0098] (Appendix 1) symbol extraction means for extracting a plurality of predetermined symbols from a code included in the binary of a program; a first code block extraction means for extracting a code block having a specific property from among codes included in the binary of the program as a first code block to be analyzed as to whether or not it is a backdoor; a second code block extracting means for extracting a plurality of second code blocks that access each of the plurality of predetermined symbols from a code included in the binary of the program; A symbol narrowing means for extracting, from among the plurality of predetermined symbols, a symbol accessed by the second code block that satisfies a condition on a control flow according to a type of a backdoor to be analyzed, among the plurality of second code blocks; a symbol output means for outputting the symbol extracted by the symbol narrowing means; A symbol narrowing down device comprising:

[0099] (Appendix 2) the symbol extraction means extracts, as the plurality of predetermined symbols, a plurality of symbols determined based on attribute information of at least one of a symbol type and a scope level; 2. A symbol narrowing down device as described in appendix 1.

[0100] (Appendix 3) the symbol narrowing means extracts, from among the plurality of second code blocks, a symbol that is accessed by both the first code block or a second code block that is a child node thereof, and a second code block that is any one of a plurality of code blocks that constitute a normal control flow, from among the plurality of predetermined symbols extracted by the symbol extraction means; 3. A symbol narrowing-down device according to claim 1 or 2.

[0101] (Appendix 4) the symbol narrowing means extracts, from the plurality of predetermined symbols extracted by the symbol extracting means, a symbol accessed by the second code block, which is the first code block or a child node thereof and accesses an external resource, among the plurality of second code blocks; 3. A symbol narrowing-down device according to claim 1 or 2.

[0102] (Appendix 5) the first code block extraction means extracts, from among the code included in the binary, a code block that cannot be reached by a normal control flow when the program is executed, as the first code block, which is a code block having the specific property; 5. A symbol narrowing-down device according to any one of claims 1 to 4.

[0103] (Appendix 6) the first code block extraction means extracts, from the code included in the binary, a code block having a predetermined function that is passed through in a normal control flow when the program is executed, as the first code block, which is a code block having the specific property, and a code block that is not passed through in a normal control flow when the program is executed; 5. A symbol narrowing-down device according to any one of claims 1 to 4.

[0104] (Appendix 7) A symbol narrowing-down device according to any one of appendix 1 to 6, a backdoor score calculation means for calculating a backdoor score, which is a score indicating the possibility that the first code block is a backdoor code or a score indicating the degree of influence on a system when the first code block is executed, based on the contents of the symbol output from the symbol narrowing down device, which is accessed by at least the first code block or a code block that is a child node of the first code block; an analysis result output means for outputting the first code block and the backdoor score for the first code block as an analysis result; A program analysis device comprising:

[0105] (Appendix 8) A symbol extraction method executed by a symbol narrowing-down device, comprising: a symbol extraction step of extracting a plurality of predetermined symbols from a code included in the binary of the program; a first code block extraction step of extracting a code block having a specific property from among codes included in the binary of the program as a first code block to be analyzed as to whether or not it is a backdoor; a second code block extraction step of extracting a plurality of second code blocks that access each of the plurality of predetermined symbols from a code included in the binary of the program; a symbol narrowing step of extracting, from the plurality of predetermined symbols, symbols accessed by the second code blocks that satisfy a condition on a control flow according to a type of backdoor to be analyzed, among the plurality of second code blocks; a symbol output step of outputting the symbol extracted in the symbol narrowing down step; A symbol extraction method comprising:

[0106] (Appendix 9) A program analysis method executed by a program analysis device, comprising: a backdoor score calculation step of calculating a backdoor score, the backdoor score being a score indicating a possibility that the first code block is a backdoor code or a score indicating the degree of influence on a system when the first code block is executed, based on the contents of a symbol output in the symbol extraction method described in Supplementary Note 8, which is accessed by at least the first code block or a code block that is a child node of the first code block; an analysis result output step of outputting the first code block and the backdoor score for the first code block as an analysis result; The program analysis method includes:

[0107] (Appendix 10) a symbol extraction process for extracting a plurality of predetermined symbols from a code included in the binary of the program; a first code block extraction process for extracting a code block having a specific property from among codes included in the binary of the program as a first code block to be analyzed as to whether or not it is a backdoor; a second code block extraction process for extracting a plurality of second code blocks that access each of the plurality of predetermined symbols from a code included in the binary of the program; a symbol narrowing process for extracting, from among the plurality of predetermined symbols, symbols accessed by the second code blocks that satisfy a condition on a control flow according to a type of backdoor to be analyzed, among the plurality of second code blocks; a symbol output process for outputting the symbols extracted in the symbol narrowing down process; A non-transitory computer-readable medium on which a program for causing a computer to execute the program is stored.

[0108] (Appendix 11) a backdoor score calculation process that calculates a backdoor score, which is a score indicating the possibility that the first code block is a backdoor code or a score indicating the magnitude of the influence that the first code block will have on a system when the first code block is executed, based on the contents of the symbol output in the symbol output process that is accessed by at least the first code block or a code block that is a child node of the first code block; an analysis result output process for outputting the first code block and the backdoor score for the first code block as an analysis result; A non-transitory computer-readable medium having stored thereon the program according to claim 10, further causing a computer to execute the program. [Explanation of symbols]

[0109] 1 Program analysis device 2 Program analysis device 10 Symbol Refining Device 11 Symbol Extraction Unit 12 First code block extraction unit 13 Second code block extraction unit 14 Symbol Refinement Section 15 Symbol output section 17 Backdoor Score Calculation Section 18 Analysis result output section 20 Symbol Refining Device 21 Symbol Extraction Unit 22 First code block extraction unit 23 Second code block extraction unit 24 Symbol Refinement Section 25 Symbol output section 26 Target Condition Table 27 Backdoor Score Calculation Section 28 Analysis result output section 50 Program analysis device 51 Code block extraction unit 52 Backdoor Score Calculation Section 53 Analysis result output section 100 Symbol Refining Device 101 Processor 102 Memory

Claims

1. symbol extraction means for extracting a plurality of predetermined symbols from a code included in the binary of a program; a first code block extraction means for extracting a code block having a specific property from among codes included in the binary of the program as a first code block to be analyzed as to whether or not it is a backdoor; a second code block extraction means for extracting, from a code included in the binary of the program, a plurality of code blocks that access each of the plurality of predetermined symbols as a plurality of second code blocks; a symbol narrowing means for extracting, from among the plurality of predetermined symbols, a symbol accessed by the second code block that satisfies a condition on a control flow according to a type of a backdoor to be analyzed, among the plurality of second code blocks; a symbol output means for outputting the symbol extracted by the symbol narrowing means; A symbol narrowing-down device comprising: the first code block extraction means extracts, from code included in the binary, at least one of a code block that cannot be reached in a normal control flow when the program is executed and a code block that does not pass through a code block having a predetermined function that is passed through in a normal control flow when the program is executed, as the first code block that is a code block having the specific property; the symbol narrowing means extracts, from among the plurality of predetermined symbols extracted by the symbol extracting means, a symbol that is accessed by both the first code block or a second code block that is a child node of the first code block, and a second code block that is any one of a plurality of code blocks that constitute a normal control flow, among the plurality of second code blocks; Symbol refinement device.

2. symbol extraction means for extracting a plurality of predetermined symbols from a code included in the binary of a program; a first code block extraction means for extracting a code block having a specific property from among codes included in the binary of the program as a first code block to be analyzed as to whether or not it is a backdoor; a second code block extraction means for extracting, from a code included in the binary of the program, a plurality of code blocks that access each of the plurality of predetermined symbols as a plurality of second code blocks; a symbol narrowing means for extracting, from among the plurality of predetermined symbols, a symbol accessed by the second code block that satisfies a condition on a control flow according to a type of a backdoor to be analyzed, among the plurality of second code blocks; a symbol output means for outputting the symbol extracted by the symbol narrowing means; A symbol narrowing-down device comprising: the first code block extraction means extracts, from code included in the binary, at least one of a code block that cannot be reached in a normal control flow when the program is executed and a code block that does not pass through a code block having a predetermined function that is passed through in a normal control flow when the program is executed, as the first code block that is a code block having the specific property; the symbol narrowing means extracts, from the plurality of predetermined symbols extracted by the symbol extracting means, a symbol accessed by the second code block, which is the first code block or a child node thereof and accesses an external resource, among the plurality of second code blocks; Symbol refinement device.

3. the symbol extraction means extracts, as the plurality of predetermined symbols, a plurality of symbols determined based on attribute information of at least one of a symbol type and a scope level; 3. The symbol narrowing-down device according to claim 1 or 2.

4. A symbol narrowing-down device according to any one of claims 1 to 3; a backdoor score calculation means for calculating a backdoor score, which is a score indicating the possibility that the first code block is a backdoor code or a score indicating the degree of influence on a system when the first code block is executed, based on the contents of the symbol output from the symbol narrowing down device, which is accessed by at least the first code block or a code block that is a child node of the first code block; an analysis result output means for outputting the first code block and the backdoor score for the first code block as an analysis result; A program analysis device comprising:

5. A symbol extraction method executed by a symbol narrowing-down device, comprising: a symbol extraction step of extracting a plurality of predetermined symbols from a code included in the binary of the program; a first code block extraction step of extracting a code block having a specific property from among codes included in the binary of the program as a first code block to be analyzed as to whether or not it is a backdoor; a second code block extraction step of extracting, from a code included in the binary of the program, a plurality of code blocks that access each of the plurality of predetermined symbols as a plurality of second code blocks; a symbol narrowing step of extracting, from the plurality of predetermined symbols, symbols accessed by the second code blocks that satisfy a condition on a control flow according to a type of a backdoor to be analyzed, among the plurality of second code blocks; a symbol output step of outputting the symbol extracted in the symbol narrowing down step; Equipped with In the first code block extraction step, at least one of a code block that cannot be reached in a normal control flow when the program is executed and a code block that does not pass through a code block having a predetermined function that is passed through in a normal control flow when the program is executed is extracted from code included in the binary as the first code block, which is a code block having the specific property; In the symbol narrowing step, a symbol that is accessed by both the first code block or a second code block that is a child node of the first code block and a second code block that is one of a plurality of code blocks that constitute a normal control flow is extracted from the plurality of predetermined symbols extracted in the symbol extraction step. Symbol extraction methods.

6. A symbol extraction method executed by a symbol narrowing-down device, comprising: a symbol extraction step of extracting a plurality of predetermined symbols from a code included in the binary of the program; a first code block extraction step of extracting a code block having a specific property from among codes included in the binary of the program as a first code block to be analyzed as to whether or not it is a backdoor; a second code block extraction step of extracting, from a code included in the binary of the program, a plurality of code blocks that access each of the plurality of predetermined symbols as a plurality of second code blocks; a symbol narrowing step of extracting, from the plurality of predetermined symbols, symbols accessed by the second code blocks that satisfy a condition on a control flow according to a type of a backdoor to be analyzed, among the plurality of second code blocks; a symbol output step of outputting the symbol extracted in the symbol narrowing down step; Equipped with In the first code block extraction step, at least one of a code block that cannot be reached in a normal control flow when the program is executed and a code block that does not pass through a code block having a predetermined function that is passed through in a normal control flow when the program is executed is extracted from code included in the binary as the first code block, which is a code block having the specific property; In the symbol narrowing step, a symbol accessed by the second code block, which is the first code block or a child node thereof and accesses an external resource, is extracted from the plurality of predetermined symbols extracted in the symbol extraction step. Symbol extraction methods.

7. A program analysis method executed by a program analysis device, comprising: a backdoor score calculation step of calculating a backdoor score, the backdoor score being a score indicating a possibility that the first code block is a backdoor code or a score indicating the degree of influence on a system when the first code block is executed, based on the content of a symbol output in the symbol extraction method according to claim 5 or 6, the symbol being accessed by at least the first code block or a code block that is a child node of the first code block; an analysis result output step of outputting the first code block and the backdoor score for the first code block as an analysis result; The program analysis method includes:

8. a symbol extraction process for extracting a plurality of predetermined symbols from a code included in the binary of the program; a first code block extraction process for extracting a code block having a specific property from among codes included in the binary of the program as a first code block to be analyzed as to whether or not it is a backdoor; a second code block extraction process for extracting, from a code included in the binary of the program, a plurality of code blocks that access each of the plurality of predetermined symbols as a plurality of second code blocks; a symbol narrowing process for extracting, from the plurality of predetermined symbols, symbols accessed by the second code blocks that satisfy a condition on a control flow according to a type of the backdoor to be analyzed, among the plurality of second code blocks; a symbol output process for outputting the symbols extracted in the symbol narrowing down process; A program for causing a computer to execute the following: In the first code block extraction process, at least one of a code block that cannot be reached in a normal control flow when the program is executed and a code block that does not pass through a code block having a predetermined function that is passed through in a normal control flow when the program is executed is extracted from code included in the binary as the first code block, which is a code block having the specific property; In the symbol narrowing process, a symbol that is accessed by both the first code block or a second code block that is a child node of the first code block and a second code block that is one of a plurality of code blocks that constitute a normal control flow is extracted from the plurality of predetermined symbols extracted in the symbol extraction process. program.

9. a symbol extraction process for extracting a plurality of predetermined symbols from a code included in the binary of the program; a first code block extraction process for extracting a code block having a specific property from among codes included in the binary of the program as a first code block to be analyzed as to whether or not it is a backdoor; a second code block extraction process for extracting, from a code included in the binary of the program, a plurality of code blocks that access each of the plurality of predetermined symbols as a plurality of second code blocks; a symbol narrowing process for extracting, from the plurality of predetermined symbols, symbols accessed by the second code blocks that satisfy a condition on a control flow according to a type of the backdoor to be analyzed, among the plurality of second code blocks; a symbol output process for outputting the symbols extracted in the symbol narrowing down process; A program for causing a computer to execute the following: In the first code block extraction process, at least one of a code block that cannot be reached in a normal control flow when the program is executed and a code block that does not pass through a code block having a predetermined function that is passed through in a normal control flow when the program is executed is extracted from code included in the binary as the first code block, which is a code block having the specific property; In the symbol narrowing down process, a symbol accessed by the second code block, which is the first code block or a child node thereof and accesses an external resource, is extracted from the plurality of predetermined symbols extracted in the symbol extraction process. program.

10. a backdoor score calculation process that calculates a backdoor score, which is a score indicating the possibility that the first code block is a backdoor code or a score indicating the magnitude of the influence that the first code block will have on a system when the first code block is executed, based on the contents of the symbol output in the symbol output process that is accessed by at least the first code block or a code block that is a child node of the first code block; an analysis result output process for outputting the first code block and the backdoor score for the first code block as an analysis result; The program according to claim 8 or 9, further causing a computer to execute the steps.

Citation Information

Patent Citations

  • Backdoor test device, backdoor test method, and non-transitory computer-readable medium

    WO2021038704A1