Fuzzing platform device, and fuzzing control method
The fuzzing platform device simplifies fuzzing by selecting optimal engines and providing a unified interface, addressing the complexity and cost issues of existing fuzzing technologies, making it accessible to non-experts.
Patent Information
- Application Number
- JP2023048514
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-24
- Publication Date
- 2024-10-07
- Estimated Expiration
- 2043-03-24
AI Technical Summary
Existing fuzzing technologies require expertise and incur high execution costs and individuality, limiting their usability and scalability, especially for non-security experts.
A fuzzing platform device that includes a fuzzing platform system with multiple computers, memory resources, and storage devices, capable of pre-fuzzing using various fuzzing engines and selecting the optimal engine based on performance metrics, providing a unified interface for different target programs.
Reduces execution costs and individuality requirements, enabling non-experts to effectively perform fuzzing across various programs with reduced complexity and cost.
Smart Images

Figure 2024137122000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a fuzzing platform device and a fuzzing control method. [Background technology]
[0002] Cybersecurity damage caused by attacks that exploit vulnerabilities is increasing and becoming more serious, and countermeasures are necessary. In response to this situation, there are services that use fuzzing technology to detect bugs and vulnerabilities in programs. Fuzzing is a technique that checks for bugs and vulnerabilities in a program by trying various inputs to the program. It is hoped that by using fuzzing to detect bugs and vulnerabilities in the program and then correcting them, it will be possible to prevent the exploitation of bugs and vulnerabilities and the damage they cause.
[0003] On the other hand, systems that perform fuzzing (hereafter referred to as fuzzing engines) have different usage methods and targets, making it difficult to use them uniformly, and users must become familiar with how to use them for each fuzzing engine and each program to be fuzzed. Also, each fuzzing engine has its own strengths and weaknesses, and their functions differ, so it is not easy to determine which fuzzing engine to use for a program to be fuzzed.
[0004] Nowadays, various systems are connected to the network, so it is desirable for fuzzing to be performed by any developer, not just security experts as in the past. For this reason, the current situation where a certain level of expertise and proficiency is required to use a fuzzing engine, as described above, is undesirable. Furthermore, even after selecting and learning a fuzzing engine, fuzzing technology still faces issues such as high execution costs and high personal dependency, which are hindering the expansion of the scope of fuzzing services and the business scale.
[0005] Regarding fuzzing, for example, Patent Document 1 describes a "method for vulnerability analysis of a deployed program, comprising the steps of receiving a binary program under analysis (BPUA) derived from the deployed program; analyzing input / output (I / O) behavior of the deployed program; discovering inputs to the deployed program based on application of two or more investigation techniques to the BPUA and analysis of the I / O behavior; determining which of the inputs are negative inputs, the negative inputs including a portion of the input that triggers a response involving a vulnerability of the deployed program; developing a patch for the deployed program based on the negative inputs and the triggered response to modify the deployed program to process at least some of the negative inputs without triggering the response involving the vulnerability; and automatically dispatching the patch to the deployed program."
[0006] In addition, Non-Patent Document 1 describes a technique for automatically tuning a fuzzing engine to improve performance such as coverage.
[0007] Furthermore, Non-Patent Document 2 describes a tool that enables fuzzing to be easily performed from a GUI (Graphical User Interface). [Prior art documents] [Patent documents]
[0008] [Patent Document 1] JP 2016-167262 A [Non-patent literature]
[0009] [Non-Patent Document 1] Yuki Koike, Hiroyuki Katsura, Hiromu Yakura, and Yuma Kurogome: SLOPT: Bandit Optimization Framework for Mutation-Based Fuzzing, In Proceedings of the 38th Annual Computer Security Applications Conference (ACSAC '22), pp. 519-533 (2022), https: / / dl.acm.org / doi / abs / 10A145 / 3564625.3564659 [Non-Patent Document 2] Ryu Miyagi, Norihiro Yoshida, Kenji Fujiwara, Natsuki Tsuzuki, Ryota Yamamoto, Hiroaki Takada: Fuzz4B: A tool to support the use of the fuzzing tool AFL, Computer Software, Vol. 39, No. 2, pp. 124-142 (2022), https: / / doi.org / 10A1309 / jssst.39.2_124 Summary of the Invention [Problem to be solved by the invention]
[0010] According to the technology described in Patent Document 1, by combining fuzzing, vulnerabilities in a program to be inspected can be automatically discovered. However, its use requires expertise, and there are issues in terms of usability and scalability.
[0011] The technology described in Non-Patent Document 1 differs from the present invention in scope (effective range of variables and functions).
[0012] The technology described in Non-Patent Document 2 is limited in the fuzzing engines that can be used, and therefore there are limitations on the fuzzing methods and target programs that can be used.
[0013] As mentioned above, there are technologies that aim to improve and support fuzzing, but issues remain, such as the high cost of executing fuzzing and its highly personal nature.
[0014] The present invention has been made in consideration of the above points, and has an object to reduce the execution costs and personal nature of fuzzing. [Means for solving the problem]
[0015] The present application includes a number of means for solving at least some of the above problems, examples of which are as follows.
[0016] In order to solve the above problems, a fuzzing platform device according to one embodiment of the present invention is a fuzzing platform device that controls fuzzing of a target program, and is equipped with one or more computers, one or more memory resources, and one or more storage devices, wherein the computer performs pre-fuzzing of the target program using a plurality of fuzzing engine candidates in sequence, and based on the results of the pre-fuzzing, selects a fuzzing engine to be used for the fuzzing of the target program from among the plurality of fuzzing engine candidates. Effect of the Invention
[0017] According to the present invention, it is possible to reduce the execution costs and personal dependency of fuzzing.
[0018] Problems, configurations, and effects other than those described above will become apparent from the following description of the embodiments. [Brief description of the drawings]
[0019] [Figure 1] FIG. 1 is a diagram showing an example of the configuration of a fuzzing platform system according to a first embodiment of the present invention. [Diagram 2] FIG. 2 is a diagram illustrating an example of a fuzzing task list. [Diagram 3] FIG. 3 is a diagram illustrating an example of a list of fuzzing engines. [Figure 4] FIG. 4 is a diagram illustrating an example of the execution environment list. [Diagram 5]FIG. 5 is a diagram showing an example of a fuzzing result list. [Figure 6] FIG. 6 is a flowchart illustrating an example of a fuzzing engine recommendation process. [Figure 7] FIG. 7 is a flowchart illustrating an example of a series of processes after the fuzzing engine recommendation process. [Figure 8] FIG. 8 is a flowchart illustrating an example of a fuzzing task registration process. [Figure 9] FIG. 9 is a flowchart illustrating an example of a fuzzing execution process. [Figure 10] FIG. 10 is a flowchart illustrating an example of a fuzzing result registration process. [Figure 11] FIG. 11 is a flowchart illustrating an example of a UI screen generation process. [Figure 12] FIG. 12 is a diagram showing a display example of the UI screen. [Figure 13] FIG. 13 is a flowchart illustrating an example of a fuzzing engine registration process. [Figure 14] FIG. 14 is a flowchart illustrating an example of the execution environment registration process. [Figure 15] FIG. 15 is a flowchart illustrating a modified example of the fuzzing execution process. [Figure 16] FIG. 16 is a diagram illustrating an example of the configuration of a fuzzing platform system according to the second embodiment of the present invention. [Figure 17] FIG. 17 is a diagram showing an example of a list of additional functions. [Figure 18] FIG. 18 is a flowchart illustrating an example of the function addition process. [Figure 19] FIG. 19 is a flowchart illustrating an example of a vulnerability supplementary process. [Figure 20] FIG. 20 is a flowchart illustrating an example of the priority setting process. [Figure 21] FIG. 21 is a flowchart illustrating an example of the correction patch generation process. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0020] Hereinafter, a number of embodiments of the present invention will be described with reference to the drawings. In all the drawings for describing each embodiment, the same components are generally given the same reference numerals, and the repeated description thereof will be omitted. In addition, in the following embodiments, the components (including element steps, etc.) are not necessarily essential, except when specifically indicated, or when it is clearly considered essential in principle. In addition, when it is said that "consists of A," "consists of A," "has A," or "includes A," it does not exclude other elements, except when it is specifically indicated that only that element is included. Similarly, in the following embodiments, when referring to the shape, positional relationship, etc. of components, etc., it includes those that are substantially similar or similar to the shape, etc., except when it is specifically indicated, or when it is clearly considered not to be the case in principle.
[0021] <Configuration Example of Fuzzing Platform System (hereinafter referred to as Fuzzing PF System) 10-1 According to the First Embodiment of the Present Invention> FIG. 1 shows an example of the configuration of a fuzzing PF system 10-1 according to the first embodiment of the present invention.
[0022] The fuzzing PF system 10-1 identifies the most suitable fuzzing engine from among multiple different fuzzing engines that are pre-registered in a single environment for a program (hereinafter referred to as the target program) to be inspected for bugs and vulnerabilities through fuzzing, and performs fuzzing using the identified fuzzing engine.
[0023] The fuzzing PF system 10-1 includes a fuzzing platform device (hereinafter, referred to as a fuzzing PF device) 100, and user terminals 20a to 20c connected to the fuzzing PF device 100 via a network 12.
[0024] The network 12 is a two-way communication network such as a Local Area Network (LAN), a Wide Area Network (WAN), or the Internet. The user terminals 20a to 20c are general computers such as personal computers. Hereinafter, when there is no need to distinguish between the user terminals 20a to 20c, they will be simply referred to as user terminals 20.
[0025] The fuzzing PF device 100 is composed of a general computer such as a server computer or a personal computer that includes a processor 101 such as a CPU (Central Processing Unit), a memory 102 such as a DRAM (Dynamic Random Access Memory), a storage 104 such as an HDD (Hard Disk Drive) or an SSD (Solid State Drive), a communication IF (Interface) 105 such as an Ethernet (trademark) card or a Wi-Fi (trademark) adapter, and an input / output device 106 such as a keyboard, a display, or a media drive. The processor 101 corresponds to the calculator of the present invention.
[0026] By executing the program 103 stored in the memory 102, the processor 101 realizes each of the functional blocks of a fuzzing engine recommendation unit 111, a fuzzing task registration unit 112, a fuzzing execution unit 113, a fuzzing result registration unit 114, a UI screen generation unit 115, a fuzzing engine registration unit 116, and an execution environment registration unit 117.
[0027] The program 103 may be stored in the memory 102 in advance, or may be read out from the storage 104, inputted from the input / output device 106, or downloaded from another device via the communication IF 105 and stored in the memory 102 when needed.
[0028] The fuzzing engine recommendation unit 111 executes a fuzzing engine recommendation process that recommends a fuzzing engine to be used for fuzzing the target program. The fuzzing task registration unit 112 executes a fuzzing task registration process that registers a fuzzing task in the fuzzing PF device 100. The fuzzing execution unit 113 executes a fuzzing execution process that performs fuzzing on the target program. The fuzzing result registration unit 114 executes a fuzzing result registration process that generates a fuzzing result. The UI screen generation unit 115 executes a UI screen generation process that generates a UI screen for presenting the results of each of the above-mentioned processes to the user. The fuzzing engine registration unit 116 executes a fuzzing engine registration process that registers a fuzzing engine in the fuzzing PF device 100. The execution environment registration unit 117 executes an execution environment registration process that registers the execution environment when the target program is executed in the fuzzing PF device 100. Details of each process will be described later.
[0029] The storage 104 stores a fuzzing task list 131, a fuzzing engine list 132, an execution environment list 133, and a fuzzing result list 134.
[0030] The fuzzing task list 131 records information about fuzzing tasks. The fuzzing engine list 132 records information about fuzzing engines. The execution environment list 133 records information about execution environments. The fuzzing result list 134 records fuzzing results.
[0031] 2 shows an example of the fuzzing task list 131. In the fuzzing task list 131, information on each of the items, namely, registration date and time, start date and time, completion date and time, target program, execution environment ID, fuzzing engine ID, status, and result storage path, is recorded in association with the task ID. However, the items recorded in the fuzzing task list 131 are not limited to the above example.
[0032] The task ID is identification information for uniquely identifying the fuzzing task. The registration date and time is information on the date and time when the fuzzing task was registered. The start date and time is information on the date and time when the fuzzing task was started. The completion date and time is information on the date and time when the fuzzing task was completed. The data format of each piece of date and time information, the registration date and time, the start date and time, and the completion date and time, is arbitrary, and any data format that allows the date and time to be determined, such as Unixtime, may be used. The same applies to other date and time information described below.
[0033] The target program is information that identifies the program that the fuzzing task is to fuzz. The execution environment ID is information that indicates the execution environment of the target program that corresponds to the fuzzing task, and is linked to one record in the execution environment list 133 described later. The fuzzing engine ID is information that identifies the fuzzing engine used in the fuzzing task, and is linked to one record in the fuzzing engine list 132 described later.
[0034] The status is information indicating the execution status of the fuzzing task, and for example, "completed", "running", "not executed", etc. are recorded. "Completed" indicates that the fuzzing execution process corresponding to the fuzzing task and the fuzzing result registration process have ended. "Running" indicates that the fuzzing execution process has started (running or finished), but the fuzzing result registration process has not been executed. "Not executed" indicates that the fuzzing execution process and the fuzzing result registration process have not been executed.
[0035] The result storage path indicates a path to the results of the fuzzing execution process for the fuzzing task.
[0036] For example, in Figure 2, the task with task ID "2" has a registration date and time of "2022 / 01 / 01 09:00:00", a start date and time of "2022 / 01 / 01 12:00:00", a completion date and time of "2022 / 01 / 02 23:50:00", a target program of "PUT / a.exe", an execution environment ID of "0", a fuzzing engine ID of "0", a status of "Completed", and a result storage path of "result / 0 / ".
[0037] 3 shows an example of the fuzzing engine list 132. In the fuzzing engine list 132, information on each item of registration date and time, name, execution path, and option is recorded in association with the fuzzing engine ID. However, the items recorded in the fuzzing engine list 132 are not limited to the above example.
[0038] The fuzzing engine ID is identification information for uniquely identifying the fuzzing engine. The registration date and time is information on the date and time when the fuzzing engine was registered. The name is the name of the fuzzing engine. The execution path indicates the path for executing the fuzzing engine.
[0039] Options indicate options that can be selected when executing the fuzzing engine. For example, with the option "-o", you can specify the IP address and port number of the fuzzing target by providing the IP address and port number in the format "IP_ADDR:PORT". With the option "-E", you can specify the number of times fuzzing will be executed by providing the number of executions in the format "NUM_FUZZING". Note that the parameters (initial setting values, input values) are changed each time fuzzing is executed.
[0040] For example, in Figure 3, the fuzzing engine with a fuzzing engine ID of "0" has a registration date and time of "2019 / 01 / 01 14:30:00", a name of "Fuzzer_A", an execution path of "fuzzer / fuzzer_A", and options of "-o" and "-E".
[0041] 4 shows an example of the execution environment list 133. In the execution environment list 133, information on each item of registration date and time, name, type, architecture, bit width, OS, and storage path is recorded in association with the execution environment ID. However, the items recorded in the execution environment list 133 are not limited to the above example.
[0042] The execution environment ID is identification information for uniquely identifying the execution environment. The registration date and time is the date and time information when the execution environment was registered. The name is the name of the execution environment. The type indicates the type of the execution environment. As types, "VM (VM Virtual Machine)", "Container", "Simulator", etc. are recorded. The architecture indicates the architecture (hardware configuration) of the execution environment. The bit width indicates the bit width of the architecture of the execution environment. The OS indicates the operating system of the execution environment. The storage path indicates the path to the execution environment.
[0043] For example, in Figure 4, the execution environment with an execution environment ID of "0" has a registration date and time of "2019 / 04 / 01 11:10:00", a name of "VM_A_64bit", a type of "VM", an architecture of "CPU A", a bit width of "64bit", an OS of "OS A", and a storage path of "exec / vm / exec_0".
[0044] 5 shows an example of the fuzzing result list 134. The fuzzing result list 134 records information on each of the items, such as task ID, completion date and time, execution time, result storage path, number of execution paths, number of crashes, and number of bugs, in association with the fuzzing result ID. However, the items recorded in the fuzzing result list 134 are not limited to the above example.
[0045] The fuzzing result ID is identification information for uniquely identifying the fuzzing result. The task ID is information for specifying the fuzzing task that obtained the fuzzing result, and is linked to one record in the fuzzing task list 131. The completion date and time is date and time information when the fuzzing task that obtained the fuzzing result was completed. The execution time indicates the time required to execute the fuzzing task that obtained the fuzzing result. The result storage path indicates the path to the result of the fuzzing task (fuzzing execution process) that obtained the fuzzing result.
[0046] The number of execution paths indicates the number of paths executed in the fuzzing task (fuzzing execution process) that obtained the fuzzing result. The crashes indicate the number of crashes that occurred in the fuzzing task that obtained the fuzzing result. The number of bugs indicates the number of bugs detected in the fuzzing task that obtained the fuzzing result.
[0047] For example, in Figure 5, the fuzzing result with a fuzzing result ID of "0" corresponds to a fuzzing task with a task ID of "0", and indicates that the completion date and time is "2022 / 01 / 01", the execution time is "24 hours", the result storage path is "result / 0 / ", the number of execution paths is "1000", the number of crashes is "150", and the number of bugs is "10".
[0048] <About the fuzzing engine recommendation process> Next, FIG. 6 is a flowchart illustrating an example of a fuzzing engine recommendation process performed by the fuzzing engine recommendation unit 111. In FIG.
[0049] As a premise for the fuzzing engine recommendation process, it is assumed that a target program has already been determined, and that a plurality of fuzzing engines have already been registered in the fuzzing engine list 132 stored in the storage 104 .
[0050] The fuzzing engine recommendation process is started, for example, in response to a predetermined start instruction operation by the user using the user terminal 20.
[0051] First, the fuzzing engine recommendation unit 111 selects fuzzing engines that are available for the target program from among those registered in the fuzzing engine list 132 one by one as fuzzing engine candidates (step S1). Next, the fuzzing engine recommendation unit 111 uses the fuzzing engine candidates selected in step S1 to perform fuzzing on the target program for a predetermined period of time (hereinafter, fuzzing using the fuzzing engine candidates is referred to as pre-fuzzing). Then, the fuzzing engine recommendation unit 111 analyzes the results of pre-fuzzing to obtain the number of execution paths, the number of crashes, the number of bugs, and a Common Vulnerability Scoring System (CVSS) score (step S2).
[0052] Next, the fuzzing engine recommendation unit 111 determines whether or not there are any unselected fuzzing engine candidates remaining among the fuzzing engines registered in the fuzzing engine list 132 (step S3). If it is determined that there are any unselected fuzzing engines remaining (YES in step S3), the fuzzing engine recommendation unit 111 returns the process to step S1 and repeats steps S1 to S3.
[0053] Thereafter, if it is determined that there are no unselected fuzzing engines remaining (NO in step S3), then the fuzzing engine recommendation unit 111 selects a fuzzing engine candidate that can maximize the fuzzing results based on the result of step S2 as the fuzzing engine to be used in the fuzzing execution process and recommends it to the user (step S4).
[0054] The fuzzing engine to be used in the fuzzing execution process is selected, for example, according to the purpose of fuzzing, by selecting a fuzzing engine with the highest number of execution paths, number of crashes, number of bugs, or CVSS score as one that can maximize future fuzzing results. For example, when a fuzzing engine with the highest number of bugs is selected, the security of the target program can be guaranteed. Also, for example, when a fuzzing engine with the highest number of crashes is selected, in addition to being able to guarantee the security of the target program, it can also serve as an operation test of the target program, and the reliability of the target program can be confirmed. Furthermore, for example, when a fuzzing engine with the highest number of execution paths is selected, it can be selected as an effective one that is particularly useful as an operation test of the target program. Note that a fuzzing engine may be selected comprehensively based on at least one of the number of execution paths, number of crashes, number of bugs, and CVSS score.
[0055] Also, instead of recommending a single fuzzing engine, multiple fuzzing engines may be recommended. In this case, the user can have more choices of fuzzing engines to use in the fuzzing execution process (described later). Also, the rate of finding bugs, etc. in the fuzzing execution process can be increased.
[0056] Furthermore, the specified time for executing prefuzzing may be determined in advance and fixed, taking into account computer resources, etc., or may be dynamically changed during prefuzzing execution, taking into account the results up to that point.
[0057] Furthermore, when recommending a fuzzing engine, options to be adopted in the fuzzing engine may also be recommended. The fuzzing engine recommendation process has been described above.
[0058] Next, FIG. 7 is a flowchart illustrating an example of a series of processes executed after the above-mentioned fuzzing engine recommendation process.
[0059] As a prerequisite for this series of processes, it is assumed that the fuzzing engine recommendation process has already been executed, and at least one record has already been registered in the execution environment list 133.
[0060] First, the fuzzing task registration unit 112 executes a fuzzing task registration process in response to, for example, a predetermined start instruction operation by a user using the user terminal 20 (step S11).
[0061] 8 is a flowchart detailing an example of a fuzzing task registration process. First, the fuzzing task registration unit 112 accepts a target program designated by the user (step S21). Here, the user designates the same program as that designated in the executed fuzzing engine recommendation process as the target program.
[0062] Next, the fuzzing task registration unit 112 accepts a specification of an execution environment for executing the target program by the user (step S22). Here, the user specifies one of the execution environments registered in the execution environment list 133.
[0063] Next, the fuzzing task registration unit 112 accepts a fuzzing engine designation by the user (step S23). Here, it is assumed that the user selects a fuzzing engine recommended by the executed fuzzing engine recommendation process from the fuzzing engine list 132.
[0064] Next, the fuzzing task registration unit 112 issues a task ID and registers the target program, execution environment, and fuzzing engine accepted in steps S21 to S23 in association with the task ID in the fuzzing task list 131. Furthermore, the fuzzing task registration unit 112 registers the current date and time in the registration date and time field and registers "not executed" in the status field in association with the task ID (step S24). This concludes the explanation of the fuzzing task registration process.
[0065] Note that the fuzzing engine accepted in step S23 may be a single one or multiple ones. For example, a task may be registered in which multiple fuzzing engines are specified, a duplicated target program is deployed to multiple execution environments, and fuzzing is performed simultaneously and in parallel by the separate fuzzing engines.
[0066] Returning to Fig. 7, next, the fuzzing execution unit 113 executes a fuzzing execution process in response to, for example, a predetermined start instruction operation by the user using the user terminal 20, and stores the result (for example, a combination of input data for the target program and output data output from the target program in response to the input data) in the storage 104 or the like (step S12).
[0067] 9 is a flowchart detailing an example of the fuzzing execution process. First, the fuzzing execution unit 113 refers to the fuzzing task list 131 and selects a task whose status is "not executed" (step S31).
[0068] Next, the fuzzing execution unit 113 registers the current date and time in the registration date and time field of the selected task, registers "running" in the status field, and executes fuzzing on the registered target program in the registered execution environment using the registered fuzzing engine, and stores the results in storage 104 or the like. Then, after executing fuzzing, the fuzzing execution unit 113 registers the current date and time in the completion date and time field of the selected task, and registers a path to the results of the fuzzing execution process in the result storage path field (step S32). This concludes the explanation of the fuzzing execution process.
[0069] Returning to Fig. 7, the fuzzing result registration unit 114 then executes a fuzzing result registration process in response to, for example, a predetermined start instruction operation by the user using the user terminal 20 (step S13).
[0070] 10 is a flowchart explaining an example of the fuzzing result registration process. First, the fuzzing result registration unit 114 refers to the fuzzing task list 131 and selects tasks with the status "in progress" one by one in order (step S41). Here, a task with the status "in progress" is a task for which the fuzzing execution process (FIG. 9) has already started (is in progress or has ended) and for which the fuzzing result registration process has not yet been executed. Note that if there is no task with the status "in progress", the fuzzing result registration unit 114 ends the fuzzing result registration process here.
[0071] Next, the fuzzing result registration unit 114 judges whether the fuzzing execution process for the task selected in step S41 has been completed (step S42). For example, if a path is registered in the result storage path field of the fuzzing task list 131 corresponding to the task selected in step S41, the fuzzing execution process is determined to have been completed, and if no path is registered, the fuzzing execution process is determined to have not been completed. Here, if it is determined that the fuzzing execution process for the task selected in step S41 has not been completed (NO in step S42), the fuzzing result registration unit 114 skips steps S43 to S45 and proceeds to step S46.
[0072] Conversely, if it is determined that the fuzzing execution process for the task selected in step S41 has been completed (YES in step S42), the fuzzing result registration unit 114 acquires the results of the fuzzing execution process from the result storage path corresponding to the task selected in step S41 in the fuzzing task list 131 (step S43). Next, the fuzzing result registration unit 114 analyzes the results of the fuzzing execution process and acquires the number of execution paths, the number of crashes, and the number of bugs (step S44).
[0073] Next, the fuzzing result registration unit 114 issues a fuzzing result ID, and registers the task ID of the task selected in step S41, the number of execution paths, the number of crashes, and the number of bugs obtained in step S44 in association with the fuzzing result ID in the fuzzing result list 134. The fuzzing result registration unit 114 also registers the current date and time in the completion date and time field in association with the task ID, registers the elapsed time from the start date and time of the corresponding fuzzing execution process to the present in the execution time field, and copies the path in which the result of the fuzzing execution process was obtained in step S43 to the result storage path field. Furthermore, the fuzzing result registration unit 114 updates the status of the task selected in step S41 in the fuzzing task list 131 to "completed" (step S45).
[0074] Next, the fuzzing result registration unit 114 refers to the fuzzing task list 131 and determines whether or not there are any unselected tasks remaining among the tasks with a status of "running" (step S46). If it is determined that there are unselected tasks remaining (YES in step S46), the process returns to step S41 and steps S41 onward are repeated. Conversely, if it is determined that there are no unselected tasks remaining (NO in step S46), the fuzzing result registration unit 114 ends the fuzzing result registration process. This concludes the explanation of the fuzzing result registration process.
[0075] Next, FIG. 11 is a flowchart illustrating an example of a UI screen generation process by the UI screen generation unit 115.
[0076] The UI screen generation process can be executed separately from the series of processes (FIG. 7) after the fuzzing engine recommendation process described above. The UI screen generation process is started in response to a predetermined start instruction operation by the user using the user terminal 20, for example.
[0077] First, the UI screen generation unit 115 refers to the fuzzing result list 134, and displays a list of fuzzing result IDs on the screen of the user terminal 20 to allow the user to select one. Then, the UI screen generation unit 115 obtains information on the fuzzing result, fuzzing task, fuzzing engine, and execution environment associated with the fuzzing result ID selected by the user from the fuzzing result list 134, the fuzzing task list 131, the fuzzing engine list 132, and the execution environment list 133 (step S51).
[0078] Next, the UI screen generating unit 115 generates a UI screen 1000 (FIG. 12) configured from the various information acquired in step S51, and displays it on the user terminal 20 as, for example, a Web screen (step S52). This completes the description of the UI screen generating process.
[0079] Next, FIG. 12 shows a display example of a UI screen 1000. The UI screen 1000 is provided with display fields 1001 to 1005. The display field 1001 displays a fuzzing result ID selected by the user. The display field 1002 displays a fuzzing result associated with the fuzzing result ID. The display field 1003 displays information about a fuzzing task associated with the fuzzing result ID. The display field 1004 displays information about a fuzzing engine associated with the fuzzing result ID. The display field 1005 displays information about an execution environment associated with the fuzzing result ID. However, for convenience of illustration, the information displayed in the display fields 1002 to 1005 is omitted as appropriate.
[0080] Note that the UI screen 1000 may display information other than the above-mentioned information as long as the information is related to the fuzzing result ID.
[0081] <Regarding fuzzing engine registration process> Next, FIG. 13 is a flowchart illustrating an example of a fuzzing engine registration process that needs to be executed prior to the above-mentioned fuzzing engine recommendation process (FIG. 6) and a series of processes following the fuzzing engine recommendation process.
[0082] The fuzzing engine registration process is started, for example, in response to a predetermined start instruction operation by the user using the user terminal 20. First, the fuzzing engine registration unit 116 issues a fuzzing engine ID to a fuzzing engine designated by the user, for example, and registers it in the fuzzing engine list 132, and registers the current date and time in the registration date and time field in association with the fuzzing engine ID (step S61).
[0083] Next, the fuzzing engine registration unit 116 accepts information about the fuzzing engine (such as name, execution path, options, etc.) from the user (step S62). Next, the fuzzing engine registration unit 116 registers the information about the fuzzing engine accepted in step S62 in the fuzzing engine list 132 in association with the fuzzing engine ID issued in step S61 (step S63). This concludes the explanation of the fuzzing engine registration process.
[0084] <Regarding execution environment registration process> Next, FIG. 14 is a flowchart illustrating an example of an execution environment registration process that needs to be executed prior to a series of processes following the fuzzing engine recommendation process.
[0085] The execution environment registration process is started, for example, in response to a predetermined start instruction operation by the user using the user terminal 20. First, the execution environment registration unit 117 issues an execution environment ID and registers it in the execution environment list 133, and registers the current date and time in the registration date and time field in association with the execution environment ID (step S71).
[0086] Next, the execution environment registration unit 117 receives information about the execution environment (such as name, type, architecture, bit count, OS, storage path, etc.) from the user (step S72). Next, the execution environment registration unit 117 registers the information about the execution environment received in step S72 in the execution environment list 133 in association with the execution environment ID issued in step S71 (step S73). This concludes the description of the execution environment registration process.
[0087] According to the fuzzing PF system 10-1 described above, it is possible to recommend a fuzzing engine suitable for each target program, regardless of the user's knowledge of fuzzing or target programs. In addition, it is possible to transparently handle multiple fuzzing engines for various types of target programs using a common interface. This makes it possible to reduce the execution cost and personal dependency of fuzzing.
[0088] <Modification of fuzzing execution process> 15 is a flowchart for explaining a modified example of the fuzzing execution process. In this modified example, fuzzing is executed on the target program after reproducing various surrounding environments in addition to the execution environment using a simulator or the like.
[0089] The surrounding environment refers to, for example, connecting equipment (hardware) that can input and output data to the target program to the network 12, or executing other programs (software) that can input and output data to the target program simultaneously with the target program.
[0090] In this modified example, step S101 is added between step S31 and step S32 in the example of the fuzzing execution process described above (FIG. 9).
[0091] This modified example is started in response to a predetermined start instruction operation by the user using the user terminal 20, for example.
[0092] First, the fuzzing execution unit 113 refers to the fuzzing task list 131 and selects a task whose status is "not executed" (step S31). The fuzzing execution unit 113 constructs, for example, a surrounding environment specified by the user (step S101). Next, the fuzzing execution unit 113 registers the current date and time in the registration date and time field of the selected task, registers "executing" in the status field, and then executes fuzzing on the registered target program in the registered execution environment using the registered fuzzing engine. Then, after executing fuzzing, the fuzzing execution unit 113 registers the current date and time in the completion date and time field of the selected task, and registers a path to the result of the fuzzing execution process in the result storage path field (step S32). This concludes the explanation of the modified example of the fuzzing execution process.
[0093] According to the modified example of the fuzzing execution process, not only a single execution environment but also the surrounding environment can be reproduced during fuzzing execution. This makes it possible to perform fuzzing on the target program by eliciting behavior that cannot be revealed by the single operation.
[0094] In addition, the surrounding environment may also be reproduced in the fuzzing engine recommendation process (pre-fuzzing).
[0095] <Configuration Example of Fuzzing PF System 10-2 According to the Second Embodiment of the Present Invention> Next, FIG. 16 shows an example of the configuration of a fuzzing PF system 10-2 according to the second embodiment of the present invention.
[0096] The fuzzing PF system 10-2 is obtained by adding a function addition unit 118, a vulnerability complement unit 119, a priority setting unit 120, and a correction patch generation unit 121 to the functional blocks realized by the processor 101 of the fuzzing PF device 100 in comparison with the fuzzing PF system 10-1 (FIG. 1). Also, the fuzzing PF system 10-2 is obtained by adding an additional function list 135 as information stored in the storage 104 in comparison with the fuzzing PF system 10-1.
[0097] Of the components of the fuzzing PF system 10-2, those other than the function addition unit 118, the vulnerability supplement unit 119, the priority setting unit 120, the patch generation unit 121, and the list of additional functions 135 are common to the components of the fuzzing PF system 10-1 and are given the same symbols, so their explanations will be omitted.
[0098] The function addition unit 118 executes a function addition process to register a process (additional function) to be executed simultaneously with or after fuzzing. The vulnerability capture unit 119 executes a vulnerability capture process to provide a user with information regarding vulnerabilities in a target program. The priority setting unit 120 executes a priority setting process to set a priority when dealing with vulnerabilities revealed by fuzzing. The fix patch generation unit 121 executes a fix patch generation process to generate a fix patch to deal with vulnerabilities revealed by fuzzing. The added function list 135 records information regarding added functions.
[0099] 17 shows an example of the added function list 135. The added function list 135 records information on each item of registration date and time, name, execution path, option, and description in association with the added function ID. However, the items recorded in the added function list 135 are not limited to the above example.
[0100] The additional function ID is identification information for uniquely identifying the additional function. The registration date and time is information on the date and time when the additional function was registered. The name is the name of the additional function. The execution path indicates the path for executing the additional function.
[0101] Option indicates the option that can be selected when executing the additional function. For example, with the option "-o", you can specify the IP address and port number to be monitored by providing the IP address and port number in the format "IP_ADDR:PORT". With the option "-i", you can specify the interval time of the additional function by providing the number of seconds in the format "INTERVAL_SEC". Description is a description of the additional function.
[0102] For example, in the case of Figure 17, the additional function with the additional function ID "0" has a registration date and time of "2019 / 01 / 01 14:30:00", a name of "WatchDog", an execution path of "plugin / wd", options of "-o" and "-i", and its content is management of the target program's life and death (e.g., restarting it if it crashes).
[0103] Next, FIG. 18 is a flowchart illustrating an example of a function addition process performed by the function addition section 118. In FIG.
[0104] The function addition process is started, for example, in response to a predetermined start instruction operation by the user using the user terminal 20. First, the function addition unit 118 issues an added function ID, registers it in the added function list 135, and registers the current date and time in the registration date and time field in association with the added function ID (step S111).
[0105] Next, function adding unit 118 accepts information about the added function (such as name, execution path, options, and description) from the user (step S112). Next, function adding unit 118 registers the information about the added function accepted in step S112 in added function list 135 in association with the added function ID issued in step S111 (step S113). This concludes the explanation of the function adding process.
[0106] According to the function addition process, for example, if the target program crashes during the fuzzing execution process, the target program can be restarted.
[0107] Next, FIG. 19 is a flowchart illustrating an example of a vulnerability trapping process performed by the vulnerability trapping unit 119.
[0108] The vulnerability trapping process is started, for example, in response to a predetermined start instruction operation by the user using the user terminal 20. First, the vulnerability trapping unit 119 refers to the fuzzing result list 134 and the fuzzing task list 131, displays a list of target programs for which fuzzing results have already been obtained on the screen of the user terminal 20, and allows the user to select a target program to be subjected to the vulnerability trapping process. Then, the vulnerability trapping unit 119 obtains the result of the fuzzing execution process for the selected target program (step S121).
[0109] Next, the vulnerability trapping unit 119 acquires relevant vulnerability information from the result of the fuzzing execution process (step S122). For example, the vulnerability trapping unit 119 performs a web search using the revealed vulnerability or the input that induced the vulnerability as a keyword, and acquires the search results. Note that instead of or in addition to performing a web search, a database may be prepared in advance and the database may be referred to.
[0110] Next, the vulnerability tracing unit 119 displays the search result acquired in step S122 on the screen of the user terminal 20 and presents it to the user (step S123). This concludes the explanation of the vulnerability tracing process.
[0111] According to the vulnerability supplementation process, in addition to the number of execution paths, crashes, and bugs obtained by analyzing the fuzzing results, the user can be provided with information regarding keywords, such as the vulnerabilities that were revealed or the input that induced the vulnerabilities.
[0112] Next, FIG. 20 is a flowchart illustrating an example of a priority setting process by the priority setting unit 120. In FIG.
[0113] The priority setting process is started, for example, in response to a predetermined start instruction operation by the user using the user terminal 20. First, the priority setting unit 120 refers to the fuzzing result list 134 and the fuzzing task list 131, displays a list of target programs for which fuzzing results have already been obtained on the screen of the user terminal 20, and allows the user to select a target program to be the subject of the priority setting process. Then, the priority setting unit 120 obtains the results of the fuzzing execution process corresponding to each of the selected target programs (step S131).
[0114] Next, the priority setting unit 120 assigns priorities to the multiple vulnerabilities manifested in the target program based on the results of the fuzzing execution process, indicating the order in which they should be dealt with preferentially (step S132). For example, the priority setting unit 120 obtains the CVSS scores of the vulnerabilities manifested in the target program, and assigns a higher priority to a vulnerability with a higher CVSS score. However, for example, depending on the operating environment of the program, a lower priority may be set for a vulnerability that does not require a response, even if the risk is generally high.
[0115] Next, the priority setting unit 120 displays the priorities assigned in step S133 on the screen of the user terminal 20 to present them to the user (step S133). This completes the explanation of the priority setting process.
[0116] According to the priority setting process, when a target program has multiple vulnerabilities, the order in which the vulnerabilities should be dealt with as a priority can be presented to the user.
[0117] Next, FIG. 21 is a flowchart illustrating an example of a correction patch generation process performed by the correction patch generating unit 121.
[0118] The patch generation process is started, for example, in response to a predetermined start instruction operation by the user using the user terminal 20. First, the patch generation unit 121 refers to the fuzzing result list 134 and the fuzzing task list 131, displays a list of target programs for which fuzzing results have already been obtained on the screen of the user terminal 20, and allows the user to select a target program to be the subject of the patch generation process. Then, the patch generation unit 121 obtains the result of the fuzzing execution process for the selected target program (step S141).
[0119] Next, the patch generator 121 generates a patch based on the result of the fuzzing execution process (step S142). For example, the patch generator 121 performs a web search based on the revealed vulnerability information to acquire patch information, or generates a patch that rejects an input that induces a vulnerability.
[0120] Next, the correction patch generating unit 121 displays the correction patch generated in step S142 on the screen of the user terminal 20 and presents it to the user (step S143). This completes the explanation of the correction patch generation process.
[0121] According to the patch generation process, a patch for fixing a vulnerability in a target program can be presented to a user.
[0122] The fuzzing PF system 10-2 can provide the user with various supplementary and support functions in addition to the same actions and effects as the fuzzing PF system 10-1. Therefore, the fuzzing PF system 10-2 can perform simpler or more advanced fuzzing, and can reduce the execution cost and personal dependency of fuzzing.
[0123] The present invention is not limited to the above-described embodiment, and various modifications are possible. For example, the above-described embodiment has been described in detail to clearly explain the present invention, and is not necessarily limited to those having all of the configurations described. In addition, it is possible to replace a part of the configuration of one embodiment with a configuration of another embodiment, or to add a part of the configuration of another embodiment.
[0124] In addition, each of the above configurations, functions, processing units, processing means, etc. may be realized in hardware, for example, by designing a part or all of them in an integrated circuit. In addition, each of the above configurations, functions, etc. may be realized in software by a processor interpreting and executing a program that realizes each function. Information such as a program, table, file, etc. that realizes each function can be placed in a memory, a recording device such as a hard disk or SSD (Solid State Drive), or a recording medium such as an IC card, SD card, or DVD. In addition, the control lines and information lines are shown as those considered necessary for explanation, and not all control lines and information lines are necessarily shown in the product. In reality, it may be considered that almost all configurations are connected to each other. [Explanation of symbols]
[0125] 10-1, 10-2... Fuzzing PF system, 12... Network, 20... User terminal, 100... Fuzzing PF device, 101... Processor, 102... Memory, 103... Program, 104... Storage, 106... Input / output device, 111... Fuzzing engine recommendation unit, 112... Fuzzing task registration unit, 113... Fuzzing execution unit, 114... Fuzzing result registration unit 115···UI screen generation unit, 116···Fuzzing engine registration unit, 117···Execution environment registration unit, 118···Function addition unit, 119···Vulnerability supplement unit, 120···Priority setting unit, 121···Correction patch generation unit, 131···Fuzzing task list, 132···Fuzzing engine list, 133···Execution environment list, 134···Fuzzing result list, 135···Additional function list, 1000···UI screen
Claims
1. A fuzzing platform device for controlling fuzzing of a target program, One or more computers, one or more memory resources, and one or more storage devices; The computer includes: performing pre-fuzzing on the target program using a plurality of candidate fuzzing engines in sequence; A fuzzing platform device characterized by selecting a fuzzing engine to be used for the fuzzing of the target program from among the multiple fuzzing engine candidates based on the results of the pre-fuzzing.
2. 2. The fuzzing platform of claim 1, The computer includes: The storage device holds information about the fuzzing engine; A fuzzing platform device characterized in that, from among the stored fuzzing engines, those that can be used for the fuzzing of the target program are selected as fuzzing engine candidates.
3. 2. The fuzzing platform of claim 1, The computer includes: A fuzzing platform device characterized in that the fuzzing engine is selected based on at least one of the number of execution paths, the number of crashes, the number of bugs, and the CVSS score based on the results of the pre-fuzzing for each of the fuzzing engine candidates.
4. 2. The fuzzing platform of claim 1, The computer includes: A fuzzing platform device that selects one or more of the fuzzing engines.
5. 2. The fuzzing platform of claim 1, The computer includes: A fuzzing platform device characterized by executing the fuzzing on the target program using the selected fuzzing engine.
6. 6. The fuzzing platform of claim 5, The computer includes: A fuzzing platform device that reproduces a surrounding environment and executes at least one of the fuzzing and the pre-fuzzing.
7. 6. The fuzzing platform of claim 5, The computer includes: A fuzzing platform device that executes a function addition process for registering an additional function to be executed simultaneously with or after the fuzzing.
8. 6. The fuzzing platform of claim 5, The computer includes: A fuzzing platform device that executes a vulnerability supplementation process that provides a user with information regarding vulnerabilities in the target program.
9. 6. The fuzzing platform of claim 5, The computer includes: A fuzzing platform device that executes a priority setting process for setting priorities when dealing with vulnerabilities revealed by the fuzzing.
10. 6. The fuzzing platform of claim 5, The computer includes: A fuzzing platform device that executes a patch generation process for generating a patch to address vulnerabilities revealed by the fuzzing.
11. A fuzzing control method using a fuzzing platform device that controls fuzzing of a target program, comprising: performing pre-fuzzing on the target program using a plurality of candidate fuzzing engines in sequence; A fuzzing control method comprising the step of selecting a fuzzing engine to be used for the fuzzing of the target program from among the plurality of fuzzing engine candidates based on a result of the prefuzzing.
Citation Information
Patent Citations
Diagnostic system
JP2019008718A
Binary code change vulnerability prioritization
US20120011493A1
Automated Certification Testing for Application Deployment
US20200081825A1
Automatic Generation Of Patches For Security Violations
US20210004470A1
Computer-implemented method and device for selecting a fuzzing method for testing a program code
US20220138092A1
