Anomaly detection device, anomaly detection program, and anomaly detection method

The anomaly detection device uses machine learning to enhance training data variation by prioritizing dissimilar feedback candidates with key elements, addressing high false positives and improving cyber attack detection accuracy.

JP7574673B2Active Publication Date: 2024-10-29OKI ELECTRIC INDUSTRY CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
JP2021014548
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-02-01
Publication Date
2024-10-29
Estimated Expiration
2041-02-01

AI Technical Summary

Technical Problem

Existing anomaly detection systems face challenges in efficiently increasing the variation of training data for cyber attack detection, leading to high false positives and missed anomalies due to limited feature diversity and the time-consuming nature of manual log analysis.

Method used

Anomaly detection device utilizing supervised and unsupervised machine learning to generate feature vectors, calculate dissimilarity with teacher data, and prioritize feedback candidates with high dissimilarity and key elements, allowing for efficient data variation and improved detection accuracy.

Benefits of technology

Enhances the variation of training data by preferentially presenting dissimilar and potentially abnormal data, reducing false positives and early detection of anomalies, thereby improving detection accuracy and reducing operator investigation time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007574673000001
    Figure 0007574673000001
  • Figure 0007574673000002
    Figure 0007574673000002
  • Figure 0007574673000003
    Figure 0007574673000003
Patent Text Reader

Abstract

To provide means capable of presenting data having high possibility of abnormality and not appearing in a trend of feature quantity of teacher data.SOLUTION: An abnormality detection device 10 includes: a feature quantity generation unit 12 which generates a feature quantity vector from a log; an abnormality learning and discrimination unit 13 which generates, by learning, an abnormality discriminator for discriminating abnormality of the feature quantity vector; a non-similarity learning and determination unit 14 which generates, by learning, a non-similarity calculator for determining non-similarity of the feature quantity vector; a feed-back priority label applying unit 15 which, in a log corresponding to the teacher data, outputs a value of an abnormal field as a key element, and applies a priority label to a feature quantity vector being determined to have high non-similarity of having the same element with the key element; and a feed-back candidate display unit 17 which preferentially displays feed-back candidate data to which the priority label is applied, and provides means capable of making feed-back of the truth / false of the data.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an anomaly detection device, an anomaly detection program, and an anomaly detection method, and can be applied to an anomaly detection device that analyzes logs from security devices and detects anomalies such as malware infections and information leaks, for example. [Background technology]

[0002] Cyber ​​attacks, which are increasing and evolving year by year, have become a social problem. In particular, in recent years, there has been an increase in unknown cyber attacks that cannot be prevented by the functions of existing security products alone. In such a situation, there is a method for organizations to protect against cyber attacks by analyzing logs from security products such as proxy servers and firewalls, and monitoring for missed detections by security products.

[0003] However, in companies with many employees, the volume of logs generated by security products is huge, making manual analysis impractical. For such a large volume of logs, a mechanical approach that narrows down abnormal logs is effective.

[0004] One approach to mechanically narrowing down logs is to use machine learning to learn abnormal communication logs, such as those resulting from malware infections or information leaks caused by cyber attacks, as training data, and narrow down logs that resemble abnormal communications. Generally, cyber attacks are not completed in a single log, but their behavior is often observed across multiple logs. For this reason, the features extracted from communication logs for a certain period of time for each user are used as the features to be input to the machine learning machine. This leads to improved classification accuracy.

[0005] In addition, when using machine learning, there is an issue of a high number of false positives, but by having an operator investigate the detection results and provide feedback on whether the results are correct or not, false positives can be reduced during operation. However, there is an issue that abnormal communication logs such as those of cyber attacks are generally difficult to obtain, making it difficult to increase the variety of training data. In such cases, some of the abnormal communications that have been learned can be detected, but other abnormal communications will be overlooked.

[0006] In addition, the communication log of a user who has been subjected to a cyber attack includes not only communications related to the cyber attack, but also the user's normal communications. In other words, even if multiple users are subjected to the same cyber attack, the features formed by each user may be different. In such a case, a user whose features are close to those of a certain training data may be able to detect an abnormality, but a user whose features are not may not be able to detect an abnormality. However, if it is the same cyber attack, there should be common elements that represent the characteristics of the attack.

[0007] For example, this includes the hostname of the malware distribution destination or the hostname of the C&C (Command and Control) server. By using such a destination hostname as a key and presenting the features of users who have logs of accessing the same host to the operator as feedback candidates, it is possible to increase the variety of features that are judged as abnormal and prevent cyber attacks from being overlooked. A mechanism for presenting such feedback candidate data is needed.

[0008] Patent Document 1 discloses a technology in which, in a system for classifying images into several classes, similar images to the misclassified image are searched for in an image database and presented to an operator, and images that have been correctly classified are fed back to the operator in order to improve the classification accuracy of the misclassified image. In the technology described in Patent Document 1, supervised machine learning is used for image classification, and unsupervised machine learning is used for searching for similar images. An unsupervised machine learning device also classifies images, but the feature amount can be different from the supervised feature amount (e.g., color, texture, shape, etc.). With the technology described in Patent Document 1, images of the same class that have features similar to the misclassified image are fed back as supervised data, so that the classification accuracy can be efficiently improved.

[0009] Furthermore, Patent Document 2 discloses a system that uses supervised learning to determine whether data to be classified is a positive example or a negative example. The technology described in Patent Document 2 is characterized in that the more recent the feedback date, the greater the weight of the teacher data. By weighting in this way, data close to the newly fed back feature value is more likely to be determined as a positive example, and the variation of positive examples around that feature value can be increased. [Prior art documents] [Patent documents]

[0010] [Patent Document 1] JP 2017-111731 A [Patent Document 2] Patent No. 5187635 Summary of the Invention [Problem to be solved by the invention]

[0011] However, the technology described in Patent Document 1 above uses an unsupervised machine learning machine to present multiple images belonging to the same class as feedback candidate images. Although it does not take much time to determine whether multiple images are presented, when dealing with something like a security log, where investigating a single detection result requires time, it may not be practical to investigate all candidates using this presentation method.

[0012] Furthermore, the technology described in Patent Document 2 cannot broadly increase the variation in features because only data similar to the features of the training data are presented as feedback candidates.

[0013] In view of the above, in order to increase the variety of training data, there is a demand for an anomaly detection device, an anomaly detection program, and an anomaly detection method that can preferentially present as feedback candidates data that does not appear in the trends of the training data's features (high dissimilarity) and is likely to be abnormal. [Means for solving the problem]

[0014] The first invention of the present invention is an anomaly detection device that detects anomalies by analyzing a log, comprising: (1) a feature vector generation means that generates a feature vector from the log; (2) anomaly learning and discrimination means that generates an anomaly discriminator by learning the feature vector, which is teacher data, with a first machine learning device and discriminates anomalies in the feature vector using the anomaly discriminator; and (3) a dissimilarity learning and discrimination means that learns the teacher data with a second machine learning device to generate a dissimilarity calculator that calculates dissimilarity for the feature vector of the teacher data, and determines whether the dissimilarity is high for the feature vector using the dissimilarity calculator. (4) a feedback priority label assignment means for outputting, as a key element, a value of an abnormal field in the log corresponding to the training data, and assigning a feedback priority label to the feature vector having an element identical to the key element and determined by the dissimilarity learning determination means to have a high dissimilarity; and (5) a feedback candidate display means for preferentially displaying data including the feature vector to which the feedback priority label has been assigned as feedback candidate data, and providing an interface that enables feedback on the accuracy of the feedback candidate data.

[0015] A second anomaly detection program of the present invention includes a computer installed in an anomaly detection device that detects anomalies by analyzing a log, the computer comprising: (1) a feature vector generation means that generates a feature vector from the log; (2) anomaly learning and discrimination means that generates an anomaly discriminator by learning the feature vector that serves as teacher data with a first machine learning device and discriminates anomalies in the feature vector using the anomaly discriminator; and (3) a dissimilarity calculator that calculates dissimilarity between the teacher data and the feature vector of the teacher data by learning the teacher data with a second machine learning device, and determines whether the dissimilarity is high for the feature vector using the dissimilarity calculator. (4) a feedback priority label assignment means for outputting, as a key element, a value of an abnormal field in the log corresponding to the training data, and assigning a feedback priority label to the feature vector having an element identical to the key element and determined by the dissimilarity learning judgment means to have a high dissimilarity; and (5) a feedback candidate display means for preferentially displaying data including the feature vector to which the feedback priority label has been assigned as feedback candidate data, and providing an interface that enables feedback on the accuracy of the feedback candidate data.

[0016] A third aspect of the present invention is an anomaly detection method for use in an anomaly detection device that detects anomalies by analyzing a log, wherein (1) a feature vector generation means generates a feature vector from the log, (2) an anomaly learning and discrimination means generates an anomaly discriminator by learning the feature vector, which is teacher data, with a first machine learning device, and discriminates an anomaly in the feature vector using the anomaly discriminator, and (3) a dissimilarity learning and discrimination means generates a dissimilarity calculator that calculates dissimilarity for the feature vector of the teacher data by learning the teacher data with a second machine learning device, and discriminates an anomaly in the feature vector using the dissimilarity calculator. (4) a feedback priority label assignment means outputs an abnormal field value in the log corresponding to the training data as a key element, and assigns a feedback priority label to the feature vector having an element identical to the key element and determined by the dissimilarity learning determination means to have a high dissimilarity; (5) a feedback candidate display means displays preferentially data including the feature vector to which the feedback priority label has been assigned as feedback candidate data, and provides an interface that can provide feedback on the accuracy of the feedback candidate data. Effect of the Invention

[0017] According to the present invention, in order to increase the variety of training data, data that does not appear in the trend of the features of the training data and is highly likely to be abnormal can be presented preferentially as feedback candidates. [Brief description of the drawings]

[0018] [Figure 1] 1 is a block diagram showing an internal configuration of an anomaly detection device according to an embodiment; [Diagram 2] 11 is an explanatory diagram showing feature amounts for each detection engine for logs for a certain period for each source address according to the embodiment; FIG. [Diagram 3] 11 is an explanatory diagram showing an example of display of an abnormality determination result according to the embodiment; FIG. [Figure 4]10 is a flowchart illustrating a characteristic operation of the anomaly detection device when a security log is input according to an embodiment. [Diagram 5] 5 is a flowchart showing a characteristic operation (learning operation of an anomaly discriminator) of an anomaly learning / discrimination unit according to the embodiment. [Figure 6] 5 is a flowchart showing a characteristic operation (learning operation of a dissimilarity calculator) of a dissimilarity learning / determination unit according to the embodiment. [Figure 7] 10 is a flowchart illustrating a characteristic operation of a feedback candidate display unit according to the embodiment. [Figure 8] 10 is a flowchart illustrating a characteristic operation of an abnormality determination result display unit according to the embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0019] (A) Main embodiment Hereinafter, an embodiment of an anomaly detection device, an anomaly detection program, and an anomaly detection method according to the present invention will be described in detail with reference to the drawings.

[0020] (A-1) Configuration of the embodiment (A-1-1) Overview of the anomaly detection device First, an overview of the anomaly detection device of this embodiment will be described. This embodiment relates to an anomaly detection device that detects abnormal communication such as a cyber attack from a log of a security product (hereinafter referred to as a "security log") using a supervised machine learning machine. Here, the security log is assumed to be, for example, a log of a proxy server. In the anomaly detection device of this embodiment, multiple detection engines that define abnormal communication behavior are prepared, logs that match the behavior defined from each viewpoint are extracted, and a score indicating an abnormality is assigned to the extracted log with a score of 0 to 100 points. Examples of detection engines that define abnormal communication behavior include "downloading a file with an invalid extension" and "accessing a host that is not usually accessed." Next, as shown in FIG. 2, the sum of scores for each detection engine for logs (communication logs) for a certain period for each source address is used as a feature vector to be input to the machine learning machine. Then, the anomaly detection device assigns a supervised label to the feature vector including the abnormal communication log, learns it, and outputs an anomaly classifier. The anomaly classification result is presented to the operator using a GUI (Graphical User Interface) or the like. Using the anomaly classification result as a starting point, the operator investigates the detection results of the detection engine and communication logs, judges whether the anomaly classification result is correct or not, and feeds it back to the system (anomaly detection device).The anomaly detection device periodically retrains the anomaly classifier based on the feedback information.

[0021] In the anomaly detection device in this embodiment, a machine learning device for extracting data having features with high dissimilarity to the teacher data is provided in addition to the machine learning device for anomaly detection described above. This machine learning device performs learning so that the input and output are the same when the feature vector of the teacher data is reduced in dimension and the number of dimensions is restored and output, for example, like an autoencoder. At this time, the dissimilarity is calculated as a value obtained by taking the difference between the input and output vectors for each vector element when certain data is input to a trained machine learning device and summing them. Hereinafter, the mechanism for calculating the dissimilarity output by this machine learning device is called a "dissimilarity calculator". Data determined to have high dissimilarity is presented to the operator as feedback candidate data using a GUI or the like. Furthermore, among the feedback candidate data, data having a key element common to the teacher data is presented preferentially. The key element represents the value of a field in a log that contributed to determining that teacher data is abnormal. For example, in the case of an access log of a malware distribution site, the destination host name (destination IP address) of the log is the key element. The feedback candidate data is surveyed by the operator in the same manner as the anomaly classification results, and the result of the judgment as to whether it is correct or not is fed back to the system (the anomaly detection device). The anomaly detection device periodically retrains the dissimilarity calculator based on the feedback information.

[0022] (A-1-2) Detailed configuration of the abnormality detection device 10 Fig. 1 is a block diagram showing the internal configuration of an anomaly detection device according to an embodiment. In Fig. 1, an anomaly detection device 10 includes a processing unit 11, a feature generating unit 12, an anomaly learning / discrimination unit 13, a dissimilarity learning / judgment unit 14, a feedback priority label assigning unit 15, an anomaly discrimination result display unit 16, a feedback candidate display unit 17, and a storage unit 18.

[0023] The anomaly detection device 10 may be constructed, for example, by installing a program in a computer having a processor, memory, etc. Also, the anomaly detection device 10 may be configured in part or in whole using hardware (for example, a dedicated semiconductor chip, an electric circuit, etc.).

[0024] The processing unit 11 has a means for receiving a security log from an external source. The processing unit 11 provides the received security log to the feature generating unit 12 and requests the generation of features. When the processing unit 11 receives an abnormal security log that can be used as training data, the processing unit 11 also notifies the feature generating unit 12 of that fact. It is assumed that it is explicitly indicated from the outside that the provided security log is training data.

[0025] Furthermore, the processing unit 11 has a means for receiving a GUI display request of the anomaly determination result and the feedback candidates. In response to the display request (for example, when the processing unit 11 receives a display request from the operator via a dedicated interface), the processing unit 11 requests the anomaly determination result display unit 16 or the feedback candidate display unit 17 to display the GUI.

[0026] The feature generation unit 12 has a means for executing each detection engine, calculating a score, and generating a feature vector to be input to the machine learning device when the security log is received from the processing unit 11. When a detection engine is executed using multiple security logs, the detection engine is executed when the required number of logs are collected. Each detection engine is associated with viewpoint information of the detection engine, which indicates which element of the log to focus on for detection, and is stored in the storage unit 18.

[0027] The viewpoint information of the detection engine is information indicating the field of the accessed host if the detection engine is "accessing a host that is not usually accessed", for example. When security logs for a period required for generating features are collected, the feature generating unit 12 generates a feature by summing up the scores of the detection engine for that period for each source address, and concatenating each feature (for example, FIG. 2 described above). At this time, if the log used for generating the feature contains teacher data, a teacher label indicating an anomaly is assigned to this feature vector. The feature generating unit 12 stores the security log and the generated feature vector in the storage unit 18. The feature generating unit 12 requests the dissimilarity learning / judging unit 14 and the anomaly learning / discriminating unit 13 to judge dissimilarity and judge anomaly.

[0028] The anomaly learning / discrimination unit 13 has a means for creating an anomaly discriminator that discriminates whether an input feature vector is normal or abnormal through supervised learning. The supervised learner uses a device that can obtain features that contribute to anomaly discrimination (hereinafter referred to as "feature importance information"). For example, it is a decision tree-based supervised learner. The anomaly learning / discrimination unit 13 periodically obtains supervised data from the memory unit 18, and performs learning if there is an update since the previous learning.

[0029] After learning, the anomaly learning / discrimination unit 13 requests the feedback priority label assignment unit 15 to estimate key elements of the teacher data and assign feedback priority labels to the non-teacher data, as described below. Here, the key elements are, for example, the destination host name and the download file name.

[0030] The anomaly learning / discrimination unit 13 has a means for discriminating an anomaly from the feature vector using the generated anomaly discriminator upon receiving the feature vector from the feature generation unit 12. The anomaly learning / discrimination unit 13 stores the anomaly discriminator, feature importance information, and anomaly discrimination results in the storage unit 18.

[0031] The dissimilarity learning / determination unit 14 has a means for generating a dissimilarity calculator that calculates the dissimilarity between an input feature vector and a feature vector of training data. For example, an autoencoder is used as the machine learning device, and training is performed to encode (reduce dimensions of) the input feature vector, decode the encoded data, and output a feature vector identical to the input. As a result of training in this way, a dissimilarity calculator is generated in which the error is small when the feature vector used in training is decoded, and the error is large when the feature vector not trained is trained. The magnitude of this error is treated as the level of dissimilarity. The dissimilarity learning / determination unit 14 periodically acquires training data from the storage unit 18, and performs training when the training data has been updated since the previous training.

[0032] Furthermore, when the dissimilarity learning / determination unit 14 receives a feature vector from the feature generating unit 12, it has a means for determining whether the dissimilarity of the feature data is high using the generated dissimilarity calculator. When the dissimilarity calculated by the dissimilarity calculator is equal to or greater than a predetermined threshold, the dissimilarity learning / determination unit 14 determines that the dissimilarity is high. The dissimilarity learning / determination unit 14 requests the feedback priority label assigning unit 15 to assign a feedback priority label to a feature vector determined to have a high dissimilarity. The dissimilarity learning / determination unit 14 stores the dissimilarity calculator and the dissimilarity determination result in the storage unit 18.

[0033] The feedback priority label assignment unit 15 has a means for estimating key elements in a series of security logs constituting each teacher data from the feature vector of the teacher data, feature importance information of the anomaly discriminator, and viewpoint information of the detection engine. The key elements are, for example, the access destination host name and the download file name. The key element estimation method in the feedback priority label assignment unit 15 first extracts features of teacher data with high importance from the feature vector and feature importance information of the teacher data. The extraction method is not particularly limited, but for example, it is possible to check whether the value of the feature of the corresponding teacher data is greater than 0 in order of importance of the feature importance information, and to determine the feature that first matches the condition as the feature with high importance.

[0034] Next, the feedback priority label assignment unit 15 acquires viewpoint information of the detection engine in the detection engine corresponding to the feature with high importance. For example, if the detection engine corresponding to the feature with high importance is "accessing a host that is not usually accessed", field information of the access destination host is acquired. Finally, a log detected by the detection engine with high importance is acquired from the security log of the teacher data, and the value of the field of the viewpoint information in the log is output as a key element. At this time, if the detection engine is detected in multiple logs and multiple key elements exist, all of them may be output, or only the element of the log with the highest score may be output. The feedback priority label assignment unit 15 stores the estimated key element in the storage unit 18 in association with the teacher data.

[0035] The feedback priority label assignment unit 15 also has a means for assigning a feedback priority label to an unlearned feature vector having the same elements as key elements of the training data. The feedback priority label assignment unit 15 stores the feature vector with the feedback priority label in the storage unit 18.

[0036] The abnormality discrimination result display unit 16 has a means for displaying the abnormality discrimination result to the operator. Although the method of displaying the abnormality discrimination result is not particularly limited, for example, when the abnormality discriminator outputs a probability value that the input feature vector is abnormal, a display method in which the magnitude of the probability is represented by a circle as shown in FIG. 3 to make it easier to discriminate abnormal data is conceivable. In addition, the abnormality discrimination result display unit 16 presents the detection result of the detection engine corresponding to the feature of the feature vector that was discriminated as abnormal and the security log to the operator. Furthermore, the abnormality discrimination result display unit 16 has a means for feeding back to the system the correct / incorrect judgment result of the result of the operator's investigation of the abnormality discrimination result. Although the feedback method is not particularly limited, for example, a method of feeding back through an interface such as a radio button that allows the operator to select abnormal or normal for each security log is conceivable. When there is feedback, the abnormality discrimination result display unit 16 updates the teacher label of the feature vector including the log and stores it in the storage unit 18.

[0037] The feedback candidate display unit 17 has a means for displaying to the operator feature vectors that are feedback candidates using feedback priority label information for feature vectors with high dissimilarity. Although there is no limitation on the method for displaying the feedback candidates, for example, a method of displaying feature data with high dissimilarity and feedback priority label with a large circle as in the display example of the anomaly determination result in Fig. 3 described above is conceivable.

[0038] Similarly to the anomaly discrimination result display unit 16, the feedback candidate display unit 17 has a means for presenting to the operator the detection results of the detection engine corresponding to the features of the feature vector and security logs for feature vectors with high dissimilarity. Furthermore, the feedback candidate display unit 17 has a means for feeding back the correctness judgment result of the investigation result by the operator to the system. When there is feedback, the feedback candidate display unit 17 updates the teacher label of the feature vector for the fed back log and stores it in the storage unit 18.

[0039] The memory unit 18 has means for storing security logs, feature vectors, teacher labels, feedback priority labels, key elements of teacher data, detection engines, viewpoint information of the detection engines, feature importance information, and the like.

[0040] (A-2) Operation of the embodiment Next, the operation of the anomaly detection device 10 according to the embodiment having the above configuration will be described. Below, the operation at the time of security log input in the anomaly detection device 10, the learning operation of the anomaly discriminator, the learning operation of the dissimilarity calculator, the feedback candidate investigation operation, and the anomaly discrimination result investigation operation will be described respectively.

[0041] (A-2-1) Security log entry behavior FIG. 4 is a flowchart showing a characteristic operation of the anomaly detection device when a security log is input according to the embodiment.

[0042] When a security log (hereinafter simply referred to as a "log") is input to the processing unit 11, the processing unit 11 provides the log to the feature generating unit 12 and requests the generation of features (S101).

[0043] The feature generation unit 12 checks whether logs for the period required for feature generation have been accumulated based on the input log and logs input so far (S102). If no logs have been accumulated, the feature generation unit 12 ends the series of processes (i.e., waits for the next log to be input), whereas if the feature generation unit 12 determines that logs have been accumulated, it executes the next process.

[0044] When the feature generating unit 12 determines that logs have been accumulated, it executes each detection engine on the log group (S103).

[0045] The feature generation unit 12 confirms that there are no more incomplete detection engines (i.e., confirms whether all detection engines have been executed). If all detection engines have been executed, the feature generation unit 12 executes the following process (S104).

[0046] When the execution of all the detection engines is completed, the feature generation unit 12 sums up the scores for each detection engine for each source address for the logs during the period of the feature generation unit to generate a feature vector (for example, FIG. 2 described above) (S105). The feature generation unit 12 stores the generated feature vector and the input security log in the storage unit 18.

[0047] The feature generating unit 12 checks whether or not the log contains teacher data (S106). If the log contains teacher data (e.g., an abnormal communication log), the feature generating unit 12 executes the following process, whereas if the log does not contain teacher data, the feature generating unit 12 executes the process of step S108 described below.

[0048] When teacher data is included in the log, the feature generating unit 12 assigns a teacher label of anomaly to the feature vector of the teacher data (S107).

[0049] On the other hand, when the generated feature vector is not teacher data, the feature generator 12 requests the anomaly learning / discrimination unit 13 to discriminate the feature vector as an anomaly (S108). The anomaly learning / discrimination unit 13 discriminates normality / abnormality using an anomaly discriminator, and stores the discrimination result in the memory unit 18.

[0050] The feature generation unit 12 requests the dissimilarity learning / determination unit 14 to determine the dissimilarity of the feature vector (S109). The dissimilarity learning / determination unit 14 calculates the dissimilarity using a dissimilarity calculator, and when the calculated dissimilarity is equal to or greater than a threshold, determines that the dissimilarity is high and stores it in the storage unit 18.

[0051] The dissimilarity learning / determination unit 14 requests the feedback priority label assignment unit 15 to assign a feedback priority label to a feature vector determined to have a high dissimilarity (S110). The feedback priority label assignment unit 15 acquires a key element of the teacher data from the storage unit 18, and searches whether the key element is included in the log that constitutes the feature vector. If the key element is included in any of the logs, the feedback priority label is assigned to the feature vector and stored in the storage unit 18.

[0052] (A-2-2) Characteristic operation of the anomaly learning / discrimination unit 13 (learning operation of the anomaly discriminator) FIG. 5 is a flowchart showing a characteristic operation (learning operation of the anomaly discriminator) of the anomaly learning / discrimination unit according to the embodiment.

[0053] The anomaly learning / discrimination unit 13 periodically acquires teacher data from the storage unit 18, and checks whether the teacher data has been updated since the previous learning (S201).

[0054] When the teacher data is updated, the anomaly learning / discrimination unit 13 performs learning using a machine learning device (S202, S203). The machine learning device used here is one that can obtain the importance of features. The anomaly learning / discrimination unit 13 stores the anomaly discriminator and the feature importance generated as a result of learning in the storage unit 18.

[0055] The anomaly learning / discrimination unit 13 requests the feedback priority label assignment unit 15 to estimate a key element for teacher data to which no key element is associated (S204). The feedback priority label assignment unit 15 acquires feature importance information from the storage unit 18, and checks whether the value of the corresponding feature of the feature vector of the teacher data is greater than 0, starting from the feature with the highest importance in the feature importance information. For the first feature found, the feedback priority label assignment unit 15 acquires the log of the teacher data whose corresponding detection engine score is greater than 0 and viewpoint information of the detection engine from the storage unit 18, and estimates the value of the field of the log that matches the viewpoint information as a key element. The feedback priority label assignment unit 15 associates the estimated key element with the teacher data and stores it in the storage unit 18.

[0056] The feedback priority label assignment unit 15 further acquires feature vectors with high dissimilarity and logs that constitute the feature vectors from the memory unit 18, assigns a feedback priority label to the feature vectors of the logs that contain the estimated key elements, and stores them in the memory unit 18.

[0057] (A-2-3) Characteristic operation of the dissimilarity learning / judgment unit 14 (learning operation of the dissimilarity calculator) FIG. 6 is a flowchart showing a characteristic operation (learning operation of the dissimilarity calculator) of the dissimilarity learning / determination unit according to the embodiment.

[0058] The dissimilarity learning / judgment unit 14 periodically acquires the teacher data from the storage unit 18, and checks whether the teacher data has been updated since the previous learning (S301, S302).

[0059] When the teacher data is updated, the dissimilarity learning / determination unit 14 performs learning using a machine learning device (S303). For example, an autoencoder is used as the machine learning device to generate a dissimilarity calculator that reproduces the feature vector of the teacher data. The dissimilarity learning / determination unit 14 stores the generated dissimilarity calculator in the storage unit 18.

[0060] (A-2-4) Characteristic operation of feedback candidate display unit 17 7 is a flowchart showing a characteristic operation of the feedback candidate display unit according to the embodiment, which shows a series of operations from when an operator requests the system to display feedback candidates, to when the operator investigates the results and provides feedback.

[0061] When the processing unit 11 receives a feedback candidate display request (for example, when the processing unit 11 receives a feedback candidate display request from an administrator via a dedicated interface), the processing unit 11 requests the feedback candidate display unit 17 to display the feedback candidates (S401).

[0062] The feedback candidate display unit 17 acquires feature vectors with high dissimilarity and feedback priority label information from the storage unit 18. Then, the feedback candidate display unit 17 displays feature vectors with high dissimilarity, and further prioritizes and displays those to which feedback priority labels have been assigned (S402).

[0063] The feedback candidate display unit 17 determines whether or not there is feedback from the operator regarding the feature vector (S403).

[0064] When the feedback candidate display unit 17 receives feedback on the feature vector from the operator, it assigns an abnormal / normal label to the feature vector and stores it in the storage unit 18 (S404). The fed back feature vector may be deleted from the feedback candidate display screen.

[0065] (A-2-5) Characteristic operation of the abnormality determination result display unit 16 Fig. 8 is a flowchart showing the characteristic operations of the anomaly determination result display unit according to the embodiment. That is, Fig. 8 shows a series of operations from when an operator requests the system to display the anomaly determination result, until the operator investigates the result and provides feedback.

[0066] When the processing unit 11 receives a request to display the abnormality determination result (for example, when a feedback abnormality determination result display request is received from an operator via a dedicated interface), it requests the abnormality determination result display unit 16 to display (S501).

[0067] The abnormality determination result display unit 16 acquires and displays the feature vector determined to be abnormal from the storage unit 18 (S502).

[0068] The abnormality determination result display unit 16 determines whether or not there is feedback from the operator regarding the feature vector (S503).

[0069] When the abnormality determination result display unit 16 receives feedback from the operator regarding the feature vector, it assigns an abnormal / normal label to the feature vector and stores it in the storage unit 18 (S504).

[0070] (A-3) Effects of the embodiment According to this embodiment, the following effects are obtained.

[0071] The anomaly detection device 10 of this embodiment is characterized in that, in addition to a machine learning device (anomaly learning / discrimination unit 13) that performs anomaly discrimination, it is equipped with another machine learning device (dissimilarity learning / determination unit 14) that judges data having feature vectors with high dissimilarity to the feature vectors of the teacher data, and presents the data to the operator as feedback candidates separately from the anomaly discrimination results. With this configuration, when the feedback candidate data is investigated and the judgment results are fed back to the system, the teacher data with new feature vector trends increases, increasing the variety of the teacher data, leading to improved discrimination accuracy and preventing missed detection of anomalous communications.

[0072] In addition, the anomaly detection device 10 is characterized by estimating key elements in the teacher data log and displaying feedback candidates with the same elements in a prioritized manner. By prioritizing, items that are likely to be determined to be abnormal are investigated first, and data that has missed anomaly detection can be found early and fed back to the system. In addition, by operating in such a way that only prioritized items are investigated, the amount of investigation man-hours required by the operator can be reduced.

[0073] (B) Other embodiments The present invention is not limited to the above-described embodiment, and modified embodiments such as those exemplified below can also be mentioned.

[0074] (B-1) In the above embodiment, a method for automatically estimating key elements using importance information of feature quantities has been described, but the present invention is not limited to this. For example, a method in which an operator explicitly gives elements that contributed to determining an anomaly when providing feedback to the system can be considered. When automatically estimating key elements, there is a possibility that the estimation may be erroneous, but when providing the key elements explicitly, the possibility of error can be avoided, and the probability that the priority candidate for feedback is truly an anomaly can be increased. In addition, when providing a security log that serves as training data to the anomaly detection device 10, the key elements may be explicitly given together with the log.

[0075] (B-2) In the above embodiment, an autoencoder is used as the machine learning machine for calculating dissimilarity, but the present invention is not limited to this. For example, a method can be considered in which the machine learning machine classifies teaching data into several classes by clustering, and outputs the distance from each class (ease of belonging to a class) when data is input, and when non-teaching data is input to this machine learning machine, if the distance from any class is far, the dissimilarity is determined to be high. [Explanation of symbols]

[0076] 10... anomaly detection device, 11... processing unit, 12... feature generation unit, 13... discrimination unit, 14... judgment unit, 15... feedback priority label assignment unit, 16... anomaly discrimination result display unit, 17... feedback candidate display unit, 18... memory unit.

Claims

1. An anomaly detection device that analyzes logs to detect anomalies, a feature vector generating means for generating a feature vector from the log; an anomaly learning and discrimination means for generating an anomaly discriminator by learning the feature vector serving as training data using a first machine learning device, and discriminating an anomaly in the feature vector using the anomaly discriminator; a dissimilarity learning determination means for generating a dissimilarity calculator that calculates a dissimilarity between the training data and a feature vector of the training data by training the training data with a second machine learning device, and determining whether the dissimilarity between the training data and the feature vector is high using the dissimilarity calculator; a feedback priority label assignment means for outputting an abnormal field value as a key element in the log corresponding to the training data, and assigning a feedback priority label to the feature vector having an element identical to the key element and determined by the dissimilarity learning determination means to have a high dissimilarity; a feedback candidate display means for preferentially displaying data including the feature vector to which the feedback priority label has been assigned as feedback candidate data and providing an interface that enables feedback on the correctness of the feedback candidate data; An anomaly detection device comprising:

2. 2. The anomaly detection device according to claim 1, further comprising an anomaly discrimination result display means for displaying an anomaly discrimination result, which is a result of the anomaly discrimination of the feature vector by the anomaly learning discrimination means, and for providing an interface capable of providing feedback on the correctness of the anomaly discrimination result.

3. the feature vector is composed of features extracted from a plurality of perspectives for the log, the first machine learning machine obtains feature importance information indicating whether any feature of the feature vector strongly contributes to anomaly determination in the anomaly discriminator, The method of outputting the key elements in the feedback priority labeling means is as follows: extracting a feature quantity having a high importance among the feature quantity importance information from the feature quantity vector of the training data; From the viewpoint of the feature quantity having a high degree of importance, a field value of the corresponding log is output as the key element.

3. The abnormality detection device according to claim 1 or 2.

4. The method of outputting the key elements in the feedback priority labeling means is as follows: When the log, which is the training data, is input from the outside, the key element is explicitly given together with the training data, The abnormality determination result display means and / or the feedback candidate display means are capable of selecting and accepting the key element when accepting input of the teacher data by feedback. The anomaly detection device according to claim 2 .

5. The method of calculating the dissimilarity in the dissimilarity learning and determining means includes the steps of: the second machine learning machine reduces the dimensions of the feature vector of the training data, learns so that a value output when the feature vector is restored to the original dimensions is identical to the feature vector of the input, and generates the dissimilarity calculator that outputs a difference in each dimension between the feature vector of the input and the vector of the output as the dissimilarity; When the input feature vector is applied to the dissimilarity calculator, if the dissimilarity is equal to or greater than a threshold, the dissimilarity is determined to be high.

5. The abnormality detection device according to claim 1,

6. The method of calculating the dissimilarity in the dissimilarity learning and determining means includes the steps of: the second machine learning machine learns to classify the training data into a plurality of classes by clustering, and generates the dissimilarity calculator that outputs a distance to each class; When the input feature vector is applied to the dissimilarity calculator, if the distance between the feature vector and any of the classes is equal to or greater than a threshold, the dissimilarity is determined to be high.

5. The abnormality detection device according to claim 1,

7. 7. The anomaly detection device according to claim 1, wherein the key element is a value of any field in the log of a security device.

8. A computer installed in an anomaly detection device that analyzes logs and detects anomalies, a feature vector generating means for generating a feature vector from the log; an anomaly learning and discrimination means for generating an anomaly discriminator by learning the feature vector serving as training data using a first machine learning device, and discriminating an anomaly in the feature vector using the anomaly discriminator; a dissimilarity learning determination means for generating a dissimilarity calculator that calculates a dissimilarity between the training data and a feature vector of the training data by training the training data with a second machine learning device, and determining whether the dissimilarity between the training data and the feature vector is high using the dissimilarity calculator; a feedback priority label assignment means for outputting an abnormal field value as a key element in the log corresponding to the training data, and assigning a feedback priority label to the feature vector having an element identical to the key element and determined by the dissimilarity learning determination means to have a high dissimilarity; a feedback candidate display means for preferentially displaying data including the feature vector to which the feedback priority label has been assigned as feedback candidate data and providing an interface that enables feedback on the correctness of the feedback candidate data; The anomaly detection program is characterized by functioning as follows.

9. An anomaly detection method for use in an anomaly detection device that detects anomalies by analyzing logs, comprising: The feature vector generating means generates a feature vector from the log; the anomaly learning and discrimination means generates an anomaly discriminator by learning the feature vector serving as training data with a first machine learning device, and discriminates an anomaly in the feature vector using the anomaly discriminator; the dissimilarity learning determination means generates a dissimilarity calculator that calculates a dissimilarity between the teacher data and a feature vector of the teacher data by learning the teacher data with a second machine learning device, and determines whether the dissimilarity between the teacher data and the feature vector is high using the dissimilarity calculator; a feedback priority label assignment means for outputting, as a key element, a value of an abnormal field in the log corresponding to the training data, and assigning a feedback priority label to the feature vector having an element identical to the key element and determined by the dissimilarity learning determination means to have a high dissimilarity; The feedback candidate display means displays, with priority, data including the feature vector to which the feedback priority label is assigned as feedback candidate data, and provides an interface that enables feedback on the correctness of the feedback candidate data. The anomaly detection method according to the present invention is characterized in that

Citation Information

Patent Citations

  • Musetsutentenkasochohaidenki

    JP1976087635A

  • Standard pattern learning device, labeling criterion calculating device, standard pattern learning method and program

    JP2011065579A

  • Information processing system, information processing method, and program

    JP2017111731A

  • Communication analysis apparatus, communication analysis program, and communication analysis method

    JP2019080201A

  • Evaluation device, motion control device, evaluation method, and evaluation program

    JP2019139277A