Detection device, learning device, detection method, learning method, detection program, and learning program

By converting packets into fixed-length vectors using natural language processing, the system detects anomalies in industrial and building network control systems, overcoming proprietary protocol issues and achieving high accuracy in anomaly detection.

JP7533596B2Active Publication Date: 2024-08-14NIPPON TELEGRAPH & TELEPHONE CORP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2022550325
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-09-18
Publication Date
2024-08-14
Estimated Expiration
2040-09-18

AI Technical Summary

Technical Problem

Industrial and building network control systems face challenges in detecting unauthorized changes in communication content due to the use of proprietary protocols whose specifications are not disclosed, leading to failures in analysis using prior knowledge of communication packet frame formats.

Method used

A detection device and learning device that convert packets into fixed-length vectors using natural language processing technology, enabling anomaly detection independent of communication protocols through pattern recognition in fixed-length vectors.

Benefits of technology

Accurate anomaly detection in packet contents is achieved without relying on communication protocols, utilizing unsupervised learning models like VAE and LoF to identify deviations from normal patterns.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007533596000006
    Figure 0007533596000006
  • Figure 0007533596000005
    Figure 0007533596000005
  • Figure 0007533596000007
    Figure 0007533596000007
Patent Text Reader

Abstract

A detection device (20) comprises: an encode unit (252) that uses natural language processing techniques to convert one detection target packet into one fixed-length vector; and a detection unit (253) that uses a detection model to detect whether or not there is an abnormality in the detection target packet, on the basis of the fixed-length vector converted by the encode unit (252).
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a detection device, a learning device, a detection method, a learning method, a detection program, and a learning program. [Background technology]

[0002] Attention has been focused on anomaly detection systems and intrusion detection systems (OT-IDS: Operational Technology-Intrusion Detection System) for communications used in industrial and building network control systems.

[0003] In control system communications, even a one-digit change in the temperature setting can lead to a serious accident, so it is necessary to detect even a single byte of unauthorized modification of the communication content (payload). Therefore, in an anomaly detection system for industrial and building network control systems, precise analysis of the payload content is essential. [Prior art documents] [Non-patent literature]

[0004] [Non-Patent Document 1] Wireshark, [Searched on August 3, 2020], Internet<URL:https: / / www.wireshark.org / download.html> [Non-Patent Document 2] zeek, ​​[Searched on August 3, 2020], Internet<URL:http: / / www.3gpp.org / ftp / / Specs / archive / 29_series / 29.165 / 29165-f60.zip> Summary of the Invention [Problem to be solved by the invention]

[0005] However, industrial and building networks use various communication protocols, including proprietary protocols whose specifications are not disclosed. Therefore, analysis using prior knowledge of the frame format and parsers of communication packets, which is a conventional technique, often does not work well.

[0006] The present invention has been made in consideration of the above, and aims to provide a detection device, a learning device, a detection method, a learning method, a detection program, and a learning program that can detect abnormalities that occur in the contents of packets without relying on communication protocols. [Means for solving the problem]

[0007] In order to solve the above-mentioned problems and achieve the objective, the detection device of the present invention is characterized by having a first conversion unit that converts a single detection target packet into a single fixed-length vector using natural language processing technology, and a first detection unit that uses a detection model to detect the presence or absence of anomalies in the detection target packet based on the fixed-length vector converted by the first conversion unit.

[0008] In addition, the learning device of the present invention is characterized by having a second conversion unit that converts a normal packet into a fixed-length vector using natural language processing technology, a second detection unit that uses a detection model to detect the presence or absence of an abnormality in the normal packet based on the fixed-length vector converted by the second conversion unit, and a learning control unit that causes the detection model to learn the pattern of the fixed-length vector corresponding to the normal packet. Effect of the Invention

[0009] According to the present invention, an abnormality occurring in the contents of a packet can be detected without depending on the communication protocol. [Brief description of the drawings]

[0010] [Figure 1]FIG. 1 is a diagram illustrating an example of a configuration of a detection system according to an embodiment. [Diagram 2] FIG. 2 is a diagram illustrating an example of the configuration of the learning device illustrated in FIG. [Diagram 3] FIG. 3 is a diagram illustrating the flow of the learning process executed by the learning device shown in FIG. [Figure 4] FIG. 4 is a diagram for explaining an example of document learning. [Diagram 5] FIG. 5 is a diagram illustrating an example of the configuration of the detection device illustrated in FIG. [Figure 6] FIG. 6 is a diagram illustrating the flow of the detection process executed by the detection device shown in FIG. [Figure 7] FIG. 7 is a flowchart showing a processing procedure of the learning method according to the embodiment. [Figure 8] FIG. 8 is a flowchart showing a processing procedure of the detection method according to the embodiment. [Figure 9] FIG. 9 is a diagram showing an outline of the control system in which the evaluation experiment was carried out. [Figure 10] FIG. 10 is a diagram showing the results of the evaluation experiment. [Figure 11] FIG. 11 is a diagram illustrating an example of a computer that realizes a learning device and a detection device by executing a program. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings. Note that the present invention is not limited to this embodiment. In addition, in the description of the drawings, the same parts are indicated by the same reference numerals.

[0012] [Embodiment Mode] An embodiment of the present invention will be described. In this embodiment, each protocol is regarded as a different language, and one packet is encoded into one fixed-length vector by applying natural language processing technology. Then, in this embodiment, a normal pattern of the encoded vector is extracted, and a vector different from the normal pattern is detected, thereby performing anomaly detection. As a result, in this embodiment, anomalies occurring in the contents of a packet can be detected without depending on the communication protocol.

[0013] [Detection system] Fig. 1 is a diagram showing an example of a configuration of a detection system according to an embodiment. As shown in Fig. 1, the detection system 1 according to the embodiment includes a learning device 10 and a detection device 20. The learning device 10 and the detection device 20 are connected to each other via a network or the like. Furthermore, the learning device 10 and the detection device 20 are connected to an external device via a network or the like.

[0014] The learning device 10 has a detection model learn a pattern of fixed-length vectors corresponding to packets in a normal state, based on a fixed-length vector converted from a single packet in a normal state, which is the learning target data, using natural language processing technology.

[0015] Then, the detection device 20 converts the packet to be detected into a fixed-length vector using natural language processing technology, and uses the detection model learned in the learning device 10 to detect the presence or absence of anomalies in the packet to be detected based on the converted fixed-length vector.

[0016] [Learning device configuration] Next, the configuration of the learning device 10 will be described. Fig. 2 is a diagram showing an example of the configuration of the learning device 10 shown in Fig. 1. As shown in Fig. 2, the learning device 10 has an input unit 11, an output unit 12, a communication unit 13, a storage unit 14, and a control unit 15. Fig. 3 is a diagram explaining the flow of the learning process executed by the learning device 10 shown in Fig. 2.

[0017] Input unit 11 is an input interface that accepts various operations from the operator of study device 10. For example, input unit 11 is configured with input devices such as a touch panel, a voice input device, a keyboard, and a mouse.

[0018] The output unit 12 is realized by, for example, a display device such as a liquid crystal display, a printing device such as a printer, an information communication device, or the like.

[0019] The communication unit 13 is a communication interface that transmits and receives various information to and from other devices connected via a network or the like. The communication unit 13 is realized by a NIC (Network Interface Card) or the like, and performs communication between other devices and a control unit 15 (described later) via electric communication lines such as a LAN (Local Area Network) or the Internet. For example, the communication unit 13 receives normal packets, which are learning target data, via the network, and outputs the packets to the control unit 15. The communication unit 13 also outputs, to the detection device 20 via the network, parameters of an encoder that has learned a learned detection model and a conversion rule to a fixed-length vector.

[0020] The storage unit 14 is a storage device such as a hard disk drive (HDD), a solid state drive (SSD), an optical disk, etc. The storage unit 14 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 14 stores an operating system (OS) and various programs executed by the learning device 10. Furthermore, the storage unit 14 stores various information used in the execution of the programs.

[0021] The control unit 15 controls the entire learning device 10. The control unit 15 is, for example, 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). The control unit 15 also has an internal memory for storing programs that define various processing procedures and control data, and executes each process using the internal memory. The control unit 15 also functions as various processing units by the operation of various programs. The control unit 15 has a processing unit 150 and a learning control unit 154.

[0022] The processing unit 150 encodes a packet in a normal state, which is the learning target data, and after encoding, performs a process of detecting the presence or absence of an abnormality in the packet using a detection model. The processing unit 150 has a collection unit 151, an encoding unit 152 (second conversion unit), and a detection unit 153 (second detection unit).

[0023] The learning control unit 154 causes the detection model to learn a pattern of a fixed-length vector corresponding to a packet in a normal state. The learning control unit 154 causes the encoding unit 152 to learn a packet conversion rule by using the packet in a normal state.

[0024] The collection unit 151 collects packets to be learned. The collection unit 151 acquires a plurality of packets (variable length) in a normal state as packets to be learned ((1) in FIG. 3).

[0025] The encoding unit 152 converts one normal packet into one fixed-length vector using a natural language processing technique. The learning control unit 154 causes the encoding unit 152 to learn a rule for converting one packet into one fixed-length vector using packets in a normal state. That is, the encoding unit 152 learns a rule for converting one packet into one fixed-length vector using packets in a normal state under the control of the learning control unit 154. The learning control unit 154 causes the encoding unit 152 to learn a frequent pattern of internal byte sequence arrangements in packets in a normal state ((2) in FIG. 3). In other words, the encoding unit 152 learns a frequent pattern of internal byte sequence arrangements in packets in a normal state under the control of the learning control unit 154.

[0026] The encoding unit 152 regards one packet as one sentence and learns the rules for converting it into one fixed-length vector using a pre-training model of a natural language processing system such as Word2Vec (see Reference 1), Doc2Vec (see Reference 2), or ELMo (see Reference 3). The learning method differs depending on the algorithm adopted by the encoding unit 152. Reference 1: Tomas Mikolov, Kai Chen, Greg Corrado, and Jeffrey Dean, “Efficient Estimation of Word Representations in Vector Space”, [Retrieved September 8, 2020], Internet<URL:https: / / arxiv.org / abs / 1301.3781> Reference 2: Quoc V. Le, and Tomas Mikolov, “Distributed Representations of Sentences and Documents”, [Retrieved September 8, 2020], Internet<URL:https: / / arxiv.org / abs / 1405.4053> Reference 3: Matthew E. Peters, Mark Neumann, Mohit Iyyer, Matt Gardner, Christopher Clark, Kenton Lee, , and Luke Zettlemoyer, “Deep contextualized word representations”, [Retrieved September 8, 2020], Internet<URL:https: / / arxiv.org / abs / 1802.05365>

[0027] For example, Word2Vec learns embedded representations of words through auxiliary tasks such as Skip-Gram and CBOW. Skip-Gram is a task of predicting surrounding words from a certain word. CBOW is a task of predicting a central word from its surrounding words. Since a sentence is a collection of words, it is possible to indirectly acquire embedded representations of a sentence by considering the average of all words in the document as the vector of the document.

[0028] FIG. 4 is a diagram explaining an example of document learning. Word2Vec (Skip-Gram) aims to obtain a good intermediate representation by solving the task of "predicting surrounding words from a word of interest." For example, when learning the document "I like an apple," in step 1, focus on "I" and predict "like." In step 2, focus on "like" → predict "I" and "an." In step 3, focus on "an" and predict "like" and "apple." Then, in step 4, focus on "apple" and predict "an."

[0029] Models such as Doc2Vec and ELMo can directly acquire distributed representations of documents through learning auxiliary tasks appropriate for each model. In this case, in pre-processing such as word segmentation required for learning the pre-training model, packets are expressed in hexadecimal, divided into 1-byte units, and position information (such as the number of bytes in the packet) is added depending on the pre-training model used.

[0030] Then, the encoding unit 152 converts each packet into a fixed-length vector that reflects the characteristics of each packet, using a pre-training model of the natural language processing system ((3) in FIG. 3).

[0031] The detection unit 153 uses the detection model to detect the presence or absence of an abnormality in a packet in a normal state, based on the fixed-length vector converted by the encoding unit 152. The learning control unit 154 causes the detection model to learn the pattern of the fixed-length vector corresponding to a packet in a normal state.

[0032] The detection unit 153 uses an anomaly detection model based on unsupervised learning, such as a variational auto encoder (VAE), an auto encoder (AE), or a local outlier factor (LoF), as a detection model. For example, in a VAE, after learning the probability density of normal communication packets, communication with a low probability density is detected as an anomaly. Therefore, it is only necessary to know normal communication packets, and anomaly detection is possible without learning all malicious data.

[0033] The detection unit 153 uses the detection model to acquire the degree of anomaly (frequency of occurrence of abnormal packets) for the fixed-length vector converted by the encoding unit 152, thereby learning the degree of anomaly based on the fixed-length vector corresponding to a packet in a normal state ((4) in FIG. 3). The detection unit 153 uses the detection model to acquire, for example, an anomaly score as the degree of anomaly ((5) in FIG. 3). The learning control unit 154 adjusts the parameters of the detection model so that the degree of anomaly acquired by the detection unit 153 is minimized.

[0034] The learning device 10 outputs to the detection device 20 the rules for converting one packet in the encoding unit 152 into one fixed-length vector, which have been learned under the control of the learning control unit 154, and a detection model such as a VAE adjusted by the learning control unit 154 and its parameters.

[0035] [Detection device configuration] Next, the configuration of the detection device 20 will be described. Fig. 5 is a diagram showing an example of the configuration of the detection device 20 shown in Fig. 1. As shown in Fig. 5, the detection device 20 has an input unit 21, an output unit 22, a communication unit 23, a storage unit 24, and a control unit 25. Fig. 6 is a diagram explaining the flow of the detection process executed by the detection device 20 shown in Fig. 5.

[0036] The input unit 21 is an input interface that accepts various operations from an operator of the detection device 20, and is composed of input devices such as a touch panel, a voice input device, a keyboard, and a mouse.

[0037] The output unit 22 is realized by, for example, a display device such as a liquid crystal display, a printing device such as a printer, an information communication device, or the like.

[0038] The communication unit 23 is a communication interface for transmitting and receiving various information to and from other devices connected via a network or the like, and performs communication between other devices and the control unit 25 (described later) via a telecommunication line such as a NIC or the Internet. For example, the communication unit 23 receives a packet to be detected via the network and outputs it to the control unit 25. The communication unit 23 also outputs the presence or absence of an abnormality in the packet to be detected to the detection device 20 via the network.

[0039] The storage unit 24 is a storage device such as an HDD, SSD, or optical disk. The storage unit 24 may be a semiconductor memory in which data can be rewritten, such as a RAM, a flash memory, or an NVSRAM. The storage unit 24 stores an OS and various programs executed by the detection device 20. Furthermore, the storage unit 24 stores various information used in the execution of the programs.

[0040] The control unit 25 controls the entire detection device 20. The control unit 25 is, for example, an electronic circuit such as a CPU or MPU, or an integrated circuit such as an ASIC or FPGA. The control unit 25 also has an internal memory for storing programs that define various processing procedures and control data, and executes each process using the internal memory. The control unit 25 also functions as various processing units by the operation of various programs. The control unit 25 has a collection unit 251, an encoding unit 252 (first conversion unit), and a detection unit 253 (first detection unit).

[0041] The collection unit 251 collects packets to be detected. The collection unit 251 acquires a plurality of variable-length packets as packets to be detected ((1) in FIG. 6).

[0042] The encoding unit 252 converts one detection target packet into one fixed-length vector using a natural language processing technique. The encoding unit 152 regards one packet as one sentence and converts it into one fixed-length vector using a pre-training model of a natural language processing system such as Word2Vec, Doc2Vec, or ELMo. The encoding unit 252 converts one detection target packet into one fixed-length vector using a rule for converting one packet into one fixed-length vector output from the learning device 10. In this way, the encoding unit 152 converts each variable-length packet into a fixed-length vector reflecting the characteristics of each packet using a pre-training model of a natural language processing system ((2) in FIG. 6).

[0043] The detection unit 253 uses the detection model to detect the presence or absence of an abnormality in the detection target packet, based on the fixed-length vector converted by the encoding unit 252. The detection unit 253 detects an abnormality in the detection target packet when the pattern of the fixed-length vector converted by the encoding unit 252 differs from the pattern of the fixed-length vector corresponding to a packet in a normal state.

[0044] The detection unit 253 uses an anomaly detection model based on unsupervised learning such as VAE, AE, or LoF, whose parameters have been adjusted by the learning process in the learning device 10. The detection unit 253 uses the detection model to obtain an anomaly degree (e.g., anomaly score) for the fixed-length vector converted by the encoding unit 252 ((3) in FIG. 6). Then, when the anomaly score exceeds a predetermined threshold, the detection unit 253 detects an anomaly in the packet to be detected and generates an alert ((4) in FIG. 6). The threshold is set, for example, according to the required detection accuracy, the resources of the detection device 20, and the like.

[0045] [Learning process] Next, the learning process according to the embodiment will be described with reference to a flowchart of FIG 7, which shows the procedure of the learning method according to the embodiment.

[0046] 7, in the learning device 10, the collection unit 151 collects packets (variable length) to be learned (step S1). Then, under the control of the learning control unit 154, the encoding unit 152 learns a rule for converting one packet into one fixed-length vector using normal packets (step S2).

[0047] The encoding unit 152 converts each of the packets to be learned into a fixed-length vector using a natural language processing technique (step S3). Then, under the control of the learning control unit 154, the detection unit 153 makes the detection model learn the pattern of the fixed-length vector corresponding to the packet in a normal state (step S4). Then, the learning device 10 outputs to the detection device 20 the rule for converting one packet into one fixed-length vector, the detection model such as VAE adjusted by the learning control unit 154, and its parameters, and ends the learning process.

[0048] [Detection process] Next, a detection process according to the embodiment will be described with reference to a flowchart of FIG 8, which shows the processing procedure of the detection method according to the embodiment.

[0049] 8, the detection device 20 collects packets (variable length) to be detected (step S11). The encoding unit 252 converts one packet to be detected into one fixed-length vector using a natural language processing technique (step S12).

[0050] Then, the detection unit 253 uses the detection model to obtain an anomaly score for the fixed-length vector converted by the encoding unit 252 (step S13). The detection unit 253 determines whether the obtained anomaly score exceeds a predetermined threshold (step S14).

[0051] If the anomaly score exceeds a predetermined threshold (step S14: Yes), the detection unit 253 detects an abnormality in the detection target packet and generates an alert (step S15). If the anomaly score is equal to or less than the predetermined threshold (step S14: No), the detection device 20 ends the detection process for the detection target packet.

[0052] [Evaluation experiment] An evaluation experiment was conducted to evaluate the detection performance by applying the detection process of this embodiment. In the evaluation experiment, a simple control system was constructed using a virtual environment to control a belt conveyor or the like installed in a square shape using a PLC (Programmable Logic Controller). Factory.io and Codesys were used as the virtual environment. FIG. 9 is a diagram showing an outline of the control system used in the evaluation experiment.

[0053] The PLC uses the Modbus / TCP protocol to control the speed of the belt conveyor C and the ON / OFF of the pushers installed at the four corners based on information from the object sensors installed at the four corners of the belt conveyor C. The speed of the belt conveyor C can also be changed manually from the belt conveyor control panel in the virtual environment.

[0054] The speed of the conveyor belt is monitored by a PLC, and it rotates at a constant speed (normal system). If the speed of the conveyor belt exceeds the set speed (abnormal system), the PLC issues an emergency stop command to the entire system. In this type of system, normal system packets and abnormal system packets in which the speed was manually set to an abnormal value were collected, and an experiment was conducted to confirm whether packets generated during the abnormal system could be detected.

[0055] FIG. 10 is a diagram showing the results of the evaluation experiment. As a result of the evaluation experiment, two ROC (Receiver Operating Characteristic) curves are shown. (1) in FIG. 10 is the result for packets transmitted from the PLC, and (2) in FIG. 10 is the result for packets received by the PLC. In both transmission and reception, the AUC (Area Under the Curve), which is the area under the ROC curve, exceeds 0.95. Therefore, the detection method according to the present embodiment can detect the occurrence of an abnormality well, and has shown good results.

[0056] [Effects of the embodiment] In this manner, in the embodiment, natural language processing technology is applied to packet vectors, and anomaly detection using unsupervised learning that can be applied to any packet is proposed.

[0057] In this embodiment, each protocol is regarded as an unknown language, and one packet (variable length) is encoded into one fixed-length vector by applying natural language processing technology. It is expected that this fixed-length vector will reflect the characteristics of the packet. After that, a normal pattern of the encoded vector is extracted, and anomalies are detected by detecting vectors that are different from the normal pattern. A packet of a control system protocol is usually composed of a control command and multiple parameters. In this embodiment, by using natural language processing technology, patterns of commands, parameters, etc. under normal conditions can be extracted from the binary in the packet, and an abstract normal state can be learned.

[0058] As a result, according to this embodiment, highly accurate anomaly detection that takes into account the contents of packets of any protocol is possible. That is, according to this embodiment, a natural language processing technique such as Word2Vec or ELMo is combined with an unsupervised anomaly detection technique such as VAE or LOF to realize an anomaly detection system that detects anomalies occurring in packet contents without relying on communication protocols. EXAMPLES

[0059] The detection method according to the present embodiment can be applied to an anomaly detection system for IoT devices.

[0060] A network sensor is placed in the IoT network to capture packets. The captured packets are used to train the encoding unit 152 and the detection unit 153 in the learning device 10.

[0061] After the learning is completed, the packets acquired by the network sensor are input to the detection device 20. In the detection device 20, the encoding unit 252 encodes the packets into fixed-length vectors, and then the detection unit 253 calculates an anomaly score for each packet. Using this anomaly score, the detection unit 253 determines whether the packet to be evaluated is similar to the packet acquired during learning (i.e., whether the packet is a normal packet).

[0062] [System configuration, etc.] 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 it can be functionally or physically distributed and integrated in any unit according to 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.

[0063] 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.

[0064] [program] 11 is a diagram showing an example of a computer in which a program is executed to realize the learning device 10 and the detection device 20. The computer 1000 has, for example, a memory 1010 and a CPU 1020. The computer 1000 also has 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.

[0065] The memory 1010 includes a ROM 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.

[0066] The hard disk drive 1090 stores, for example, an OS (Operating System) 1091, an application program 1092, a program module 1093, and program data 1094. That is, the programs that define each process of the learning device 10 and the detection device 20 are implemented as a program module 1093 in which computer-executable code is written. The program module 1093 is stored, for example, in the hard disk drive 1090. For example, a program module 1093 for executing processes similar to the functional configurations of the learning device 10 and the detection device 20 is stored in the hard disk drive 1090. The hard disk drive 1090 may be replaced by an SSD (Solid State Drive).

[0067] Furthermore, setting data used in the processing of the above-described embodiment is stored as program data 1094, for example, in the memory 1010 or the hard disk drive 1090. Then, the CPU 1020 reads out the program module 1093 or the program data 1094 stored in the memory 1010 or the hard disk drive 1090 into the RAM 1012 as necessary, and executes them.

[0068] Note that the program module 1093 and the program data 1094 are not limited to being stored in the hard disk drive 1090, but 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 the program data 1094 may be stored in another computer connected via a network (such as a LAN or a WAN (Wide Area Network)). The program module 1093 and the program data 1094 may then be read by the CPU 1020 from the other computer via the network interface 1070.

[0069] Although the embodiments of the present invention have been described above, the present invention is not limited by the descriptions and drawings that form part of the disclosure of the present invention according to the present embodiments. In other words, other embodiments, examples, and operation techniques made by those skilled in the art based on the present embodiments are all included in the scope of the present invention. [Explanation of symbols]

[0070] 1. Detection System 10 Learning Device 11,21 Input section 12,22 Output section 13,23 Communications Department 14,24 Storage section 15,25 Control section 20 Detection Device 150 Processing section 151,251 Collection Department 152,252 Encoding section 153,253 Detection unit 154 Learning control section

Claims

1. A first conversion unit that uses natural language processing technology to learn a rule for converting a single packet into a single fixed-length vector using a packet in a normal state, and a frequent pattern of an internal byte sequence in the packet in the normal state, wherein the first conversion unit converts a single detection target packet into a single fixed-length vector using the natural language processing technology; a first detection unit that detects the presence or absence of an anomaly in the detection target packet based on the fixed-length vector converted by the first conversion unit using a detection model; A detection device comprising:

2. The detection device according to claim 1, characterized in that the first detection unit detects an abnormality in the packet to be detected when a pattern of the fixed-length vector converted by the first conversion unit is different from a pattern of a fixed-length vector corresponding to a packet in a normal state.

3. The detection device according to claim 1 or 2, characterized in that the first detection unit obtains an anomaly degree for the fixed-length vector converted by the first conversion unit, and detects an anomaly in the packet to be detected if the anomaly degree exceeds a predetermined threshold.

4. A second conversion unit that regards one packet as one sentence and converts one normal packet into one fixed-length vector using a natural language processing technique; a second detection unit that detects the presence or absence of an abnormality in the packet in the normal state based on the fixed-length vector converted by the second conversion unit using a detection model; a learning control unit that causes the detection model to learn a pattern of a fixed-length vector corresponding to the packet in a normal state; having The learning control unit is configured to cause the second conversion unit to learn rules for treating one packet as one sentence and converting one packet into one fixed-length vector using the packets in a normal state, and to learn frequent patterns of internal byte sequence arrangements in the packets in the normal state.

5. The second detection unit obtains an anomaly degree for the fixed-length vector converted by the second conversion unit; The learning device according to claim 4 , wherein the learning control unit adjusts parameters of the detection model so as to minimize the degree of anomaly acquired by the second detection unit.

6. A detection method performed by a detection device, comprising: a first conversion step of converting one detection target packet into one fixed-length vector by using a natural language processing technique using a first conversion unit that has learned, by using a natural language processing technique, a rule for converting one packet into one fixed-length vector using a packet in a normal state and a frequent pattern of an internal byte sequence in the packet in the normal state, by regarding one packet as one sentence; a first detection step of detecting the presence or absence of an anomaly in the detection target packet based on the fixed-length vector converted in the first conversion step by using a detection model; A detection method comprising:

7. A learning method executed by a learning device, comprising: a first learning step of causing the encoding unit to learn a rule for converting one packet into one fixed-length vector by using packets in a normal state, regarding one packet as one sentence, and causing the encoding unit to learn frequent patterns of internal byte sequence arrangements in the packets in the normal state; a second conversion step of converting one packet into one fixed-length vector by using the encoding unit, regarding one packet as one sentence, and converting one normal packet into one fixed-length vector by using a natural language processing technique; a second detection step of detecting the presence or absence of an anomaly in the packet in the normal state based on the fixed-length vector converted in the second conversion step by using a detection model; a second learning step of learning a pattern of a fixed-length vector corresponding to the packet in a normal state in the detection model; A learning method comprising:

8. A first conversion step of converting a single target packet into a single fixed-length vector using a natural language processing technology, the first conversion unit having learned, using natural language processing technology, a rule for converting a single packet into a single fixed-length vector using a packet in a normal state, and frequent patterns of internal byte sequence arrangements in the packet in the normal state; a first detection step of detecting the presence or absence of an anomaly in the detection target packet based on the fixed-length vector converted in the first conversion step by using a detection model; A detection program for causing a computer to execute the above.

9. A first learning step for making an encoding unit learn a rule for regarding one packet as one sentence and converting one packet into one fixed-length vector using packets in a normal state, and for making the encoding unit learn frequent patterns of internal byte sequence arrangements in the packets in the normal state; a second conversion step of converting one packet into one fixed-length vector using the encoding unit, regarding one packet as one sentence, and using a natural language processing technique to convert one normal packet into one fixed-length vector; a second detection step of detecting the presence or absence of an anomaly in the packet in the normal state based on the fixed-length vector converted in the second conversion step by using a detection model; a second learning step of having the detection model learn a pattern of a fixed-length vector corresponding to the packet in a normal state; A learning program for a computer to execute the above.

Citation Information

Patent Citations

  • Anomaly detection method, learning method, anomaly detection device, and learning device

    JP2019110513A

  • Detecting device and detecting method

    WO2019245006A1