Analysis device, analysis method, and analysis system

The analysis device identifies the intent of OS command injection attacks by extracting and executing attack commands, providing clear information for effective countermeasures.

JP7552897B2Active Publication Date: 2024-09-18NIPPON TELEGRAPH & TELEPHONE CORP
View PDF 1 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Conventional methods fail to identify the intent of OS command injection attacks, making it difficult to efficiently countermeasure the potential damage.

Method used

An analysis device extracts the attack command string, executes it in an emulation environment, and determines the attack intent based on the execution results to provide clear information about the intended impact.

Benefits of technology

Enables identification of the intent of OS command injection attacks, facilitating detailed analysis and timely countermeasures.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007552897000006
    Figure 0007552897000006
  • Figure 0007552897000001
    Figure 0007552897000001
  • Figure 0007552897000005
    Figure 0007552897000005
Patent Text Reader

Abstract

An analysis device (10), upon detection of an attack by command injection, extracts an attack command string inserted for the attack from an attack request transmitted in the attack, and acquires information obtained by executing the extracted attack command string. In addition, the analysis device (10) determines an intention of the attack by command injection by using the acquired information, and outputs information indicating the intention of the determined attack.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an analysis device, an analysis method, and an analysis system. [Background technology]

[0002] Conventionally, there are known techniques for countering OS command injection. OS command injection is a type of attack method against computer systems from the outside, in which a fragment that can be interpreted as an operating system (hereinafter, OS) command is mixed into an input string to the system, causing it to be executed illegally.

[0003] For example, a Web Application Firewall (WAF) is known as a technique for detecting OS command injection, which detects or blocks traffic that matches rules such as pre-prepared regular expressions as an attack. [Prior art documents] [Non-patent literature]

[0004] [Non-Patent Document 1] A Stasinopoulos et al., “Commix: automating evaluation and exploitation of command injection vulnerabilities in Web applications,” International Journal of Information Security, 2018. [Non-Patent Document 2] Pietraszek, T., VandenBerghe, C, “Defending against injection attacks through context-sensitive string evaluation.” Proceedings of 8th International Conference on Recent Advances in Intrusion Detection, 2005. [Non-Patent Document 3] Jin-Cherng Lin, Jan-Min Chen, “The automatic defense mechanism for malicious injection attack,” IEEE, 7th IEEE International Conference on Computer and Information Technology, 2007. Summary of the Invention [Problem to be solved by the invention]

[0005] However, conventional technologies have a problem in that they cannot identify the intention of a detected OS command injection attack. Even if an OS command injection can be detected, if it is unclear what kind of damage the attack will cause, it may be difficult to efficiently consider countermeasures. [Means for solving the problem]

[0006] In order to solve the above-mentioned problems and achieve the objective, the analysis device is characterized by having an extraction unit that extracts an attack command sequence inserted for the attack from an attack request sent in a command injection attack when the attack is detected, an execution unit that acquires information obtained by executing the attack command sequence extracted by the extraction unit, an identification unit that determines the intention of the command injection attack using the information acquired by the execution unit, and an output unit that outputs information indicating the intention of the attack determined by the identification unit. Effect of the Invention

[0007] According to the present invention, it is possible to identify the intention of a detected OS command injection attack. [Brief description of the drawings]

[0008] [Figure 1] FIG. 1 is a diagram illustrating an example of the configuration of an analysis system according to the first embodiment. [Diagram 2] FIG. 2 is a diagram illustrating an example of the configuration of the analysis device according to the first embodiment. [Diagram 3] FIG. 3 is a diagram showing an example of a command list. [Figure 4] FIG. 4 is a diagram illustrating an example of an attack request. [Diagram 5] FIG. 5 is a diagram illustrating a process for extracting an attack command sequence included in an attack request. [Figure 6] FIG. 6 is a diagram illustrating an example of a process for dividing an attack request. [Figure 7] FIG. 7 is a diagram illustrating an example of a process for extracting an attack command sequence. [Figure 8] FIG. 8 is a diagram illustrating an example of an execution environment of an emulator. [Figure 9] FIG. 9 is a flowchart showing the flow of the identification process of the analysis device according to the first embodiment. [Figure 10]FIG. 10 is a diagram illustrating an example of a computer that executes an analysis program. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0009] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, an embodiment of an analysis device, an analysis method, and an analysis system according to the present application will be described in detail with reference to the drawings. Note that the present invention is not limited to the embodiment described below.

[0010] [First embodiment] [Configuration of the first embodiment] First, the configuration of the analysis system according to the first embodiment will be described with reference to Fig. 1. Fig. 1 is a diagram showing an example of the configuration of the analysis system according to the first embodiment. As shown in Fig. 1, the analysis system 1 includes an analysis device 10, an emulator 20, a detection device 30, and a server 40. The server 40 is connected to the Internet 50 via the detection device 30. Note that the configuration shown in Fig. 1 is merely an example, and the specific configuration and the number of each device are not particularly limited.

[0011] When the detection device 30 detects an OS command injection, the analysis device 10 receives an OS command injection attack request from the detection device 30, extracts the attack command from the attack request, executes the attack command in an emulation environment, and estimates the attack intent of the attack request.

[0012] The emulator 20 executes the attack command in a simulated manner in an emulation environment. The detection device 30 detects a Web request sent via the Internet 50, which is an attack request by OS command injection aimed at attacking the server 40.

[0013] The server 40 is, for example, a web server published on the Internet 50. For example, the server 40 executes a database or a web application that uses a database. The server 40 receives, for example, a web request via the Internet 50, executes processing according to the web request, and returns a response.

[0014] The configuration of the analysis device 10 will be described with reference to Fig. 2. Fig. 2 is a diagram showing an example of the configuration of the analysis device according to the first embodiment. As shown in Fig. 2, the analysis device 10 has a communication unit 11, a storage unit 12, and a control unit 13.

[0015] The communication unit 11 is realized by a NIC (Network Interface Card) or the like, and controls communication with external devices via electric communication lines such as a LAN (Local Area Network) or the Internet. For example, the communication unit 11 receives an attack request from the detection device 30.

[0016] The storage unit 12 is a storage device such as a hard disk drive (HDD), a solid state drive (SSD), an optical disk, etc. The storage unit 12 may be a semiconductor memory in which data can be rewritten, such as a random access memory (RAM), a flash memory, or a non-volatile static random access memory (NVSRAM). The storage unit 12 stores an operating system (OS) and various programs executed by the analysis device 10. The storage unit 12 has a command list storage unit 12a, an attack request storage unit 12b, and an attack command sequence storage unit 12c.

[0017] The command list storage unit 12a stores a command list for an OS. For example, the command list storage unit 12a stores a command list for a general OS, as shown in Fig. 3. Fig. 3 is a diagram showing an example of the command list.

[0018] The attack request storage unit 12b stores an attack request. For example, the attack request storage unit 12b stores an OS command injection attack request received from the detection device 30. FIG. 4 is a diagram showing an example of an attack request. The Web request of the GET method shown in FIG. 4 is a Web request detected by the detection device 30.

[0019] The attack command sequence storage unit 12c stores the attack command sequence extracted by the extracting unit 13a, which will be described later. Here, the attack command sequence refers to a command sequence inserted by an attacker for the purpose of an attack.

[0020] The control unit 13 has an internal memory for storing programs that define various processing procedures and required data, and executes various processes using these. For example, the control unit 13 has an extraction unit 13a, an execution unit 13b, a recognition unit 13c, and an output unit 13d. Here, the control unit 13 is an electronic circuit such as a CPU (Central Processing Unit) or an MPU (Micro Processing Unit), or an integrated circuit such as an ASIC (Application Specific Integrated Circuit) or an FPGA (Field Programmable Gate Array).

[0021] When a command injection attack is detected, the extraction unit 13a extracts an attack command sequence inserted for the attack from an attack request sent in the attack. To explain this with a specific example, as shown in Fig. 5, the extraction unit 13a extracts the attack command sequence "cat / etc / passed" from a Web request of a GET method by using a general OS command list, regular expressions, etc. Fig. 5 is a diagram for explaining the process of extracting an attack command sequence included in an attack request.

[0022] For example, the extraction unit 13a extracts an attack command sequence using a preset command list. An example of a specific process of the extraction unit 13a will be described below with reference to Fig. 6 and Fig. 7. Fig. 6 is a diagram for explaining an example of a process for dividing an attack request. Fig. 7 is a diagram for explaining an example of a process for extracting an attack command sequence.

[0023] First, the extraction unit 13a obtains a command list from the command list storage unit 12a, and obtains an attack request to be processed from the attack request storage unit 12b. Then, as illustrated in Fig. 6, the extraction unit 13a divides the contents of the attack request into small elements and extracts parts that may include an attack command sequence.

[0024] 7, the extraction unit 13a refers to the command list and extracts the attack command sequence "cat / etc / passed" from the portion that may contain an attack command sequence. For example, from the portion that may contain an attack command sequence, the extraction unit 13a extracts a character string that starts with a command in the command list, or a character string following the command if there is a symbol immediately before the command, as the attack command sequence.

[0025] The execution unit 13b acquires information obtained by executing the attack command sequence extracted by the extraction unit 13a. For example, the execution unit 13b executes the extracted command sequence in the emulator 20, and acquires information necessary for determining the intention of the attack.

[0026] Fig. 8 is a diagram showing an example of an execution environment of an emulator. As shown in Fig. 8, in an emulator 20, a command execution emulator 21 that executes commands and an http server 22 are connected via an internal network 23. The http server 22 in the emulator 20 returns a shell script that outputs a specific character string (hereinafter, an identification character string) no matter which URL is accessed.

[0027] The execution unit 13b replaces the IP address and domain name included in the command sequence with the IP address of the http server 22 in the internal network 23 of the emulator 20. The execution unit 13b also divides the command sequence into individual commands. The execution unit 13b then causes the command execution emulator 21 to sequentially execute the divided command sequence, and obtains information necessary to determine the intention of the attack.

[0028] The execution unit 13b acquires, for example, a standard output or a standard error output, which is an output result of the emulation execution, an execution time, and a trace log of a system call, as information necessary for determining the intention of the attack. For example, the execution unit 13b acquires a system call log by executing the attack command sequence. In addition, the execution unit 13b acquires the execution time of the attack command sequence.

[0029] The identification unit 13c uses the information acquired by the execution unit 13b to determine the intention of the attack by command injection. For example, when the standard output contains an identification character string prepared in the http server 22 in the emulator 20, the identification unit 13c determines that the intention of the attack is the execution of an arbitrary command script. Here, the identification character string is, for example, an arbitrary character string output when a script prepared in the http server 22 in the emulator 20 is executed.

[0030] Also, for example, when the system call log acquired by the execution unit 13b includes an open with authority to write to a file, the identification unit 13c determines that the intention of the attack is tampering. In other words, when the system call log includes an open with authority to write to a file, the identification unit 13c identifies that the intention of the attack by command injection is an attack that attempts to overwrite a file, etc.

[0031] Also, for example, when the execution time of the attack command sequence is longer than a preset DoS judgment time, the identification unit 13c judges it to be a DoS attack. Here, the DoS judgment time is, for example, 10 seconds. Note that the setting of the DoS judgment time can be changed arbitrarily.

[0032] In addition, for example, if the system call log acquired by the execution unit 13b contains a write and a specified command to acquire information is included before the write, the identification unit 13c determines that the intention of the attack is to leak information.

[0033] More specifically, when the system call log includes a write command and includes an open command and a read command for a file before the write command, the identification unit 13c determines that the intention of the attack is information leakage. Also, when the system call log includes a write command and includes a command for obtaining information related to the system, such as geteuid or uname, before the write command, the identification unit 13c determines that the intention of the attack is information leakage.

[0034] Furthermore, when the execution time of the attack command sequence acquired by the execution unit 13b is equal to or less than the DoS judgment time and is longer than the reconnaissance judgment reference time that is shorter than the DoS judgment time, the identification unit 13c judges that the intention of the attack is reconnaissance of a vulnerability. Here, the reconnaissance judgment reference time is, for example, 1 second. Note that the reconnaissance judgment reference time can be arbitrarily changed.

[0035] The output unit 13d outputs information indicating the intention of the attack determined by the identification unit 13c. For example, the output unit 13d may display the information indicating the intention of the attack or may output it to an external device.

[0036] In this way, when an attack by command injection is detected, the analysis device 10 extracts the attack command sequence inserted for the attack from the attack request transmitted in the attack, and obtains information obtained by executing the extracted attack command sequence. Then, the analysis device 10 uses the obtained information to determine the intention of the attack by command injection, and outputs information indicating the determined intention of the attack. In this way, the analysis device 10 can estimate the intention of the attack when a command injection is detected. Furthermore, by estimating the intention, the analysis device 10 can easily grasp the impact of a successful attack, which can contribute to detailed analysis of the attack and rapid response.

[0037] [Analytical equipment processing procedure] Next, an example of the procedure of the identification process executed by the analysis device 10 will be described with reference to Fig. 9. Fig. 9 is a flowchart showing the flow of the identification process of the analysis device according to the first embodiment.

[0038] 9, the identification unit 13c of the analysis device 10 judges whether the execution result (standard output) includes an identification character string prepared in the http server 22 in the emulator 20 (step S101). As a result, when the identification unit 13c judges that the standard output includes an identification character string prepared in the http server 22 in the emulator (step S101: Yes), it judges that the intention of the attack is the execution of an arbitrary command script (step S102).

[0039] If the standard output does not include an identification character string prepared in the http server 22 in the emulator (step S101, No), the identification unit 13c judges whether the system call log includes an open with the authority to write to the file (step S103). As a result, if the identification unit 13c judges that the system call log includes an open with the authority to write to the file (step S103, Yes), it judges the intention of the attack to be tampering (step S104).

[0040] Furthermore, if the identification unit 13c determines that the system call log does not include an open command accompanied by the authority to write to a file (No in step S103), it determines whether the execution time of the attack command sequence is longer than the DoS judgment time (step S105).As a result, if the identification unit 13c determines that the execution time of the attack command sequence is longer than the preset DoS judgment time (Yes in step S105), it determines that a DoS attack has occurred (step S106).

[0041] Furthermore, when the identification unit 13c determines that the execution time of the attack command sequence is equal to or less than the preset DoS judgment time (No at step S105), the identification unit 13c determines whether or not the system call log includes a write (step S107).

[0042] As a result, when the identification unit 13c determines that the system call log includes a write (Yes in step S107), it determines whether an open or read for the file is included before the write (step S108). Then, when the identification unit 13c determines that an open or read for the file is included before the write (Yes in step S108), it determines that the intention of the attack is to leak information (step S111).

[0043] Furthermore, when the identification unit 13c determines that no open or read for the file is included before the write (No in step S108), it determines whether or not a command for acquiring information about the system, such as geteuid or uname, is included before the write (Step S109).As a result, when the identification unit 13c determines that a command for acquiring information about the system, such as geteuid or uname, is included before the write (Yes in step S109), it determines that the intention of the attack is to leak information (Step S111).

[0044] Furthermore, if the identification unit 13c determines that the command does not include anything that acquires information about the system, such as geteuid or uname, before the write command (No at step S109), it determines that the intention of the attack is reconnaissance of a vulnerability (step S112).

[0045] Returning to the explanation of step S107, when the identification unit 13c determines that the system call log does not include a write (step S107: No), it determines whether the execution time is longer than the reconnaissance determination reference time (step S110). As a result, when the identification unit 13c determines that the execution time is longer than the reconnaissance determination reference time (step S110: Yes), it determines that the intention of the attack is reconnaissance of a vulnerability (step S112). When the identification unit 13c determines that the execution time is equal to or shorter than the reconnaissance determination reference time (step S110: No), it determines that the intention of the attack cannot be identified (step S113).

[0046] [Effects of the embodiment] In this way, when a command injection attack is detected, the analysis device 10 according to the embodiment extracts the attack command sequence inserted for the attack from the attack request transmitted in the attack, and obtains information obtained by executing the extracted attack command sequence.The analysis device 10 then uses the obtained information to determine the intention of the command injection attack, and outputs information indicating the determined intention of the attack.

[0047] Therefore, the analysis device 10 can identify the intention of a detected OS command injection attack. Furthermore, the analysis device 10 can easily grasp the impact of a successful attack by estimating the intention, which can contribute to detailed analysis of the attack and swift response.

[0048] [System configuration, etc.] In addition, each component of each device shown in the figure is a functional concept, and does not necessarily have to be physically configured as shown in the figure. In other words, the specific form of distribution and integration of each device is not limited to that shown in the figure, and all or a part of them can be functionally or physically distributed or integrated in any unit depending on various loads, usage conditions, etc. Furthermore, each processing function performed by each device can be realized in whole or in any part by a CPU and a program analyzed and executed by the CPU, or can be realized as hardware using wired logic.

[0049] Furthermore, among the processes described in this embodiment, all or part of the processes described as being performed automatically can be performed manually, or all or part of the processes described as being performed manually can be performed automatically by a known method. In addition, the information including the processing procedures, control procedures, specific names, various data and parameters shown in the above documents and drawings can be changed arbitrarily unless otherwise specified.

[0050] [program] A program in which the processing executed by the analysis device 10 according to the above embodiment is written in a language executable by a computer can also be created. As an embodiment, the analysis device 10 can be implemented by installing an analysis program that executes the above analysis processing as package software or online software on a desired computer. For example, the information processing device can function as the analysis device 10 by executing the above analysis program on the information processing device. The information processing device referred to here includes desktop or notebook personal computers. In addition, the information processing device also includes mobile communication terminals such as smartphones, mobile phones, and PHS (Personal Handyphone System), and even slate terminals such as PDA (Personal Digital Assistant). The functions of the analysis device 10 may be implemented on a cloud server.

[0051] 10 is a diagram showing an example of a computer that executes an analysis program. The computer 1000 includes, for example, a memory 1010, a CPU 1020, a hard disk drive interface 1030, a disk drive interface 1040, a serial port interface 1050, a video adapter 1060, and a network interface 1070. These components are connected by a bus 1080.

[0052] The memory 1010 includes a ROM (Read Only Memory) 1011 and a RAM 1012. The ROM 1011 stores a boot program such as a BIOS (Basic Input Output System). The hard disk drive interface 1030 is connected to a hard disk drive 1090. The disk drive interface 1040 is connected to a disk drive 1100. A removable storage medium such as a magnetic disk or an optical disk is inserted into the disk drive 1100. The serial port interface 1050 is connected to a mouse 1110 and a keyboard 1120, for example. The video adapter 1060 is connected to a display 1130, for example.

[0053] Here, the hard disk drive 1090 stores, for example, an OS 1091, an application program 1092, a program module 1093, and program data 1094. Each piece of information described in the above embodiments is stored in the hard disk drive 1090 or memory 1010, for example.

[0054] The analysis program is stored in the hard disk drive 1090 as, for example, a program module 1093 in which instructions to be executed by the computer 1000 are written. Specifically, the hard disk drive 1090 stores the program module 1093 in which each process executed by the analysis device 10 described in the above embodiment is written.

[0055] Furthermore, data used for information processing by the analysis program is stored as program data 1094, for example, in the hard disk drive 1090. Then, the CPU 1020 reads out the program module 1093 and the program data 1094 stored in the hard disk drive 1090 into the RAM 1012 as necessary, and executes each of the above-mentioned procedures.

[0056] The program module 1093 and program data 1094 relating to the analysis program are not limited to being stored in the hard disk drive 1090, and may be stored in, for example, a removable storage medium and read by the CPU 1020 via the disk drive 1100 or the like. Alternatively, the program module 1093 and program data 1094 relating to the analysis program may be stored in another computer connected via a network such as a LAN or a WAN (Wide Area Network), and read by the CPU 1020 via the network interface 1070.

[0057] Although the embodiment to which the invention made by the present inventor is applied has been described above, the present invention is not limited by the description and drawings which form a part of the disclosure of the present invention according to the present embodiment. In other words, other embodiments, examples, operation techniques, etc. made by those skilled in the art based on the present embodiment are all included in the scope of the present invention. [Explanation of symbols]

[0058] 1. Analysis system 10 Analyzer 11 Communications Department 12 Storage section 12a Command list storage section 12b Attack request storage 12c Attack command sequence memory section 13 Control section 13a Extraction part 13b Executive Department 13c Identification part 13d Output section 20 Emulators 30 Detection equipment 40 Servers 50 Internet

Claims

1. an extraction unit that extracts, when a command injection attack is detected, an attack command sequence inserted for the attack from an attack request transmitted in the attack; an execution unit that acquires information obtained by executing the attack command sequence extracted by the extraction unit; an identification unit that uses the information acquired by the execution unit to determine an intention of the attack by the command injection; an output unit that outputs information indicating the intention of the attack determined by the identification unit; having The execution unit acquires an execution time of the attack command sequence, The analysis device is characterized in that the identification unit determines that the intention of the attack is a DoS attack if the execution time of the attack command sequence acquired by the execution unit is longer than a first time.

2. The analysis device according to claim 1 , wherein the extracting unit extracts the attack command sequence using a preset command list.

3. The execution unit further acquires a system call log as a result of the execution of the attack command sequence, The analysis device according to claim 1, characterized in that the identification unit determines that the intention of the attack is tampering if the system call log acquired by the execution unit includes an open command accompanied by permission to write to a file.

4. The execution unit further acquires a system call log as a result of the execution of the attack command sequence, The analysis device according to claim 1, characterized in that the identification unit determines that the intention of the attack is to leak information if the system call log acquired by the execution unit contains a write and a specified command for acquiring information before the write.

5. The analysis device described in claim 1, characterized in that the identification unit determines that the intention of the attack is vulnerability reconnaissance when the execution time of the attack command sequence acquired by the execution unit is less than the first time and longer than a second time that is shorter than the first time.

6. An analytical method performed by an analytical device, comprising: an extraction step of extracting an attack command sequence inserted for the attack from an attack request transmitted in the attack when a command injection attack is detected; an execution step of acquiring information obtained by executing the attack command sequence extracted by the extraction step; an identification step of determining an intention of the attack by the command injection using the information acquired by the execution step; an output step of outputting information indicating the intention of the attack determined by the identification step; Including, The execution step acquires an execution time of the attack command sequence, The analysis method is characterized in that the identification step determines that the intention of the attack is a DoS attack if the execution time of the attack command sequence acquired by the execution step is longer than a first time.

7. An analysis system having an analysis device and an emulator, The analysis device comprises: an extraction unit that extracts, when a command injection attack is detected, an attack command sequence inserted for the attack from an attack request transmitted in the attack; an execution unit that acquires information obtained by executing the attack command sequence extracted by the extraction unit; an identification unit that uses the information acquired by the execution unit to determine an intention of the attack by the command injection; an output unit that presents information indicating the intention of the attack determined by the identification unit; having The emulator executes the attack command sequence extracted by the extraction unit, The execution unit acquires an execution time of the attack command sequence, An analysis system characterized in that the identification unit determines that the intention of the attack is a DoS attack if the execution time of the attack command sequence acquired by the execution unit is longer than a first time.

Citation Information

Patent Citations

  • Method and system for predicting attack route in computer network

    JP2020155098A