Classification device, classification method, and classification program
By integrating an annotator unit to filter actual benign data from GAN-generated pseudo data and employing active learning, the classifier effectively distinguishes between benign and malicious URLs and domains, enhancing classification precision.
Patent Information
- Application Number
- JP2022569403
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-12-16
- Publication Date
- 2024-08-14
- Estimated Expiration
- 2040-12-16
AI Technical Summary
Existing classifiers using GAN-generated pseudo data for malicious URLs and domains risk decreased accuracy due to potential inclusion of actual benign data, leading to increased learning time without significant improvement in classification precision.
Incorporating an annotator unit to distinguish between actual benign and pseudo data, and selectively adding pseudo data not identified as benign to malicious training data, along with active learning models to optimize resource usage and enhance classifier training.
The solution enables accurate classification of URLs and domains as benign or malignant, reducing the risk of misclassification and improving overall classification accuracy.
Smart Images

Figure 0007533624000003 
Figure 0007533624000008 
Figure 0007533624000009
Abstract
Description
[Technical field]
[0001] The present invention relates to a classification device, a classification method, and a classification program for classifying URLs and domains as benign or malicious. [Background technology]
[0002] Malicious website operators often change the URLs and domains of the relevant websites one after another and use them as disposables. In such cases, since it is troublesome for operators to create new URLs and domains, they often use mechanical algorithms to create new URLs and domains. Operators also often create URLs and domains that are similar to benign URLs and domains so that they do not appear to be malicious.
[0003] Therefore, there is a technology that uses GAN to detect malicious URLs and domains. GAN (Generative Adversarial Network) is a technology that uses machine learning to create pseudo-data that is indistinguishable from real data.
[0004] For example, by using GAN, it is possible to generate URLs and domains similar to benign URLs and domains. Therefore, URLs and domains (pseudo data) similar to benign URLs and domains are generated by GAN, and the pseudo data is added to the malicious data in the machine learning data of the classifier, and machine learning is performed. As a result, a technology has been proposed to generate a classifier that can accurately classify malicious URLs and domains similar to benign URLs and domains as benign / malicious (see Non-Patent Documents 1 and 2). [Prior art documents] [Non-patent literature]
[0005] [Non-Patent Document 1] N. Gould et al., “Domain Generation Algorithm Detection Utilizing Model Hardening Through GAN-Generated Adversarial Examples”. The First International Workshop on Deployable Machine Learning for Security Defense. (2020) [Non-Patent Document 2] H. Anderson et al., “DeepDGA: Adversarially-Tuned Domain Generation and Detection”. Proceedings of the 2016 ACM Workshop on Artificial Intelligence and Security. pp.13-21, ACM (2016) Summary of the Invention [Problem to be solved by the invention]
[0006] However, in the above technology, the pseudo data generated using GAN may be a real benign URL / domain itself. If such pseudo data is used as malicious machine learning data for the classifier, the classification accuracy of the classifier will decrease. In addition, even if a large amount of pseudo data is used as training data for the classifier, the time required for training the classifier will increase, and the classification accuracy of the classifier may not be very high.
[0007] Therefore, an object of the present invention is to solve the above-mentioned problems and provide a classifier that can accurately classify URLs and domains as benign or malicious. [Means for solving the problem]
[0008] In order to solve the above-mentioned problems, the present invention is characterized in that it comprises an annotator unit that determines whether an input URL or domain is an actually existing benign URL or domain, a data generation unit that outputs pseudo data of benign URLs or domains generated by a Generator that is determined by the annotator unit to not be an actually existing benign URL or domain, an addition unit that adds the pseudo data output by the data generation unit to training data of malignant URLs or domains, and a learning unit that uses the training data of malignant URLs or domains to which the pseudo data has been added to train a classifier that classifies an input URL or domain as malicious or benign. Effect of the Invention
[0009] According to the present invention, it is possible to provide a classifier that accurately classifies URLs and domains as benign or malicious. [Brief description of the drawings]
[0010] [Figure 1] FIG. 1 is a diagram illustrating the expansion of learning data using GAN. [Diagram 2] FIG. 2 is a diagram illustrating an overview of the classification device according to the first embodiment. [Diagram 3] FIG. 3 is a diagram illustrating an example of the configuration of the classification device according to the first embodiment. [Figure 4] FIG. 4 is a flowchart illustrating an example of a processing procedure of the classification device according to the first embodiment. [Diagram 5] FIG. 5 is a diagram illustrating an overview of the classification device according to the second embodiment. [Figure 6] FIG. 6 is a diagram illustrating an example of a configuration of a classification device according to the second embodiment. [Figure 7] FIG. 7 is a diagram illustrating a modification of the classification device according to the second embodiment. [Figure 8] FIG. 8 is a diagram illustrating an overview of a classification device according to the third embodiment. [Figure 9] FIG. 9 is a diagram illustrating an example of the configuration of a classification device according to the third embodiment. [Figure 10] FIG. 10 is a diagram illustrating an example of the configuration of a computer that executes a classification program. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] Hereinafter, with reference to the drawings, a description will be given of a first embodiment to a third embodiment of the present invention, but the present invention is not limited to each of the embodiments.
[0012] [Expanding learning data using GAN] First, the expansion of learning data using GAN, which is a basic technology of the classification device of each embodiment, will be described with reference to Fig. 1. GAN is a method of deep learning that trains two neural network models (generator and discriminator) by having them compete with each other.
[0013] The Generator takes low-dimensional random noise as input and generates pseudo data that resembles real data. The Discriminator compares the input data with real data to determine whether the input data is generated by the Generator. The Discriminator then outputs the probability that the input data is generated by the Generator.
[0014] GAN is a method in which these two neural networks learn together. GAN judges whether the data input to the Discriminator was generated by the Generator or not by applying a judgment function to the probability output from the Discriminator. Then, when the Discriminator receives feedback on whether the judgment was correct or not, it adjusts the parameters based on the feedback. In addition, the Discriminator provides feedback to the Generator. The Generator adjusts the parameters based on the feedback.
[0015] In this way, the Generator learns to generate pseudo-data that cannot be detected by the Discriminator. The Discriminator also learns to detect the pseudo-data generated by the Generator. By repeating this process, the Generator will eventually be able to generate pseudo-data that is indistinguishable from the real thing.
[0016] Generally, in supervised learning, the more training data there is, the higher the classification accuracy of the classifier tends to be. Therefore, there is a method to improve the classification accuracy of the classifier by adding URLs and domains mechanically generated by the above GAN to the training data.
[0017] This method has three phases: STEP 1, STEP 2, and STEP 3. STEP 1 is a phase in which pseudo data of benign URLs / domains is generated using GAN. The Generator and Discriminator of the GAN each contain a neural network. Note that the neural networks of the Generator and Discriminator may have different shapes. In STEP 1, the Generator uses random noise as an input by the mechanism of the GAN to generate pseudo data of benign URLs / domains.
[0018] STEP 2 is the phase in which the malicious training data is expanded with the pseudo data generated in STEP 1, and the classifier is trained. In normal supervised learning, the classifier is trained using benign training data (benign URL / domain data) and malignant training data (malignant URL / domain data). In the method shown in Figure 1, the pseudo data of benign URLs / domains generated by the generator is treated as malignant data, and the malignant training data is expanded.
[0019] This makes it possible to generate a classifier that can classify benign / malignant URLs / domains with higher accuracy than with normal supervised learning. For example, a classifier can be trained to accurately classify malicious URLs / domains that resemble benign URLs / domains as benign / malignant.
[0020] STEP 3 is the phase where the input URL / domain is tested using the classifier trained in STEP 2. For example, a URL / domain that you want to classify as benign or malicious is input to the classifier trained in STEP 2. Then, you receive the classification result of whether the URL / domain is benign or malicious from the classifier.
[0021] [First embodiment] [overview] First, an overview of the classification device of the first embodiment will be described with reference to Fig. 2. The classification device of the first embodiment uses the annotator unit 131 shown in Fig. 2 to select pseudo data to be used for expanding malicious learning data from the pseudo data generated by the generator. Note that the generator shown in Fig. 2 is a generator trained to generate pseudo data of benign URLs / domains using the above-mentioned GAN mechanism.
[0022] In STEP 1, the classification device determines, by the annotator unit 131, whether or not the pseudo data of a benign URL / domain generated by the Generator is an actually existing benign URL / domain.
[0023] The annotator unit 131 judges whether the input URL / domain is an actually existing benign URL / domain and assigns a label to it. For example, the annotator unit 131 uses a domain name management service such as Who is or runs a search engine in a sandbox to judge whether the input pseudo data is an actually existing benign URL / domain.
[0024] If the annotator unit 131 determines that the pseudo data is an actually existing benign URL / domain, the classification device determines not to adopt (not to adopt) the pseudo data for expanding the malicious learning data. On the other hand, if the annotator unit 131 determines that the pseudo data is not an actually existing benign URL / domain, the classification device determines to adopt the pseudo data for expanding the malicious learning data.
[0025] Then, the classification device adds the pseudo data determined to be used for expanding the malignant training data in STEP 1 to the malignant training data. This expands the malignant training data. The classification device then uses the expanded malignant training data and benign training data to train a classifier (STEP 2). The subsequent STEP 3 is the same as STEP 3 described in FIG. 1, and therefore will not be described.
[0026] [Configuration example] Next, a configuration example of the classification device 10 of the first embodiment will be described with reference to Fig. 3. The classification device 10 includes, for example, an input / output unit 11, a storage unit 12, and a control unit 13.
[0027] The input / output unit 11 controls the input / output of various data. For example, the input / output unit 11 receives input of URLs / domains to be categorized by the classification device 10, and outputs a classification result of whether the URLs / domains to be categorized are benign or malignant.
[0028] The storage unit 12 stores data to be referenced by the control unit 13 when executing various processes. The storage unit 12 stores, for example, malicious training data and benign training data used for training a classifier. The malicious training data is, for example, a collection of malicious URLs / domains. The benign training data is, for example, a collection of benign URLs / domains.
[0029] The storage unit 12 also stores parameter information (not shown) used by the classifier. The parameter information is updated by the learning of the classifier by a learning unit 134 (described later).
[0030] The control unit 13 is responsible for controlling the entire classification device 10. The control unit 13 includes, for example, an annotator unit 131, a data generating unit 132, an adding unit 133, a learning unit 134, and a classification unit 135.
[0031] The annotator unit 131 judges whether the input URL / domain is an actually existing benign URL / domain or not. The annotator unit 131 judges whether the pseudo data of a benign URL / domain generated by the data generation unit 132 is an actually existing benign URL / domain or not, for example, by using Who is, commercial antivirus software, or the like.
[0032] Who is is a service that provides registration information for Internet resources managed by Internet registries. It identifies the name of the person or company that registered the domain, as well as the date of registration, and can also be used to determine whether the domain actually exists.
[0033] Additionally, the annotator unit 131 may utilize other information to determine whether a given URL / domain is an existing, benign URL / domain.
[0034] For example, there is a service that, when a URL / domain is input, inspects it with a commercial antivirus product and informs whether it is detected as malicious or not, or searches for whether there are cases where other users have reported it as malicious in the past. Therefore, the annotator unit 131 may use the above service to check whether a given URL / domain is detected as malicious by commercial antivirus software, thereby determining whether the URL / domain is an actually existing benign URL / domain. The annotator unit 131 may also use the above service to search whether there are cases where a given URL / domain has been reported as malicious by a user, thereby determining whether the URL / domain is an actually existing benign URL / domain.
[0035] The data generating unit 132 generates and outputs data to be added to the malignant learning data. For example, the data generating unit 132 generates pseudo data of benign URLs / domains using a GAN generator. The data generating unit 132 then requests the annotator unit 131 to determine whether the generated pseudo data is an actually existing benign domain, and outputs the pseudo data determined by the annotator unit 131 to not be an actually existing benign domain to the adding unit 133.
[0036] The adding unit 133 adds the pseudo data output by the data generating unit 132 to the malicious learning data.
[0037] The learning unit 134 uses the learning data of malicious domains to which pseudo data has been added by the adding unit 133 and the learning data of benign domains to learn a classifier that classifies URLs / domains as benign or malicious.
[0038] The classification unit 135 classifies the URL / domain as benign or malignant, using the classifier learned by the learning unit 134. Then, the classification unit 135 outputs the classification result as to whether the URL / domain is benign or malignant.
[0039] [Example of processing procedure] Next, an example of a processing procedure of the classification device 10 will be described with reference to Fig. 4. First, the data generation unit 132 generates pseudo data of benign URLs / domains using a Generator (S1). Then, the annotator unit 131 determines whether the pseudo data generated in S1 is an actually existing benign URL / domain (S2).
[0040] After S2, the data generation unit 132 outputs the pseudo data determined by the annotator unit 131 to not be a real URL / domain to the adding unit 133 (S3). Then, the adding unit 133 adds the output pseudo data to the malicious learning data (S4).
[0041] After S4, the learning unit 134 learns a classifier using the malignant learning data to which the pseudo data has been added and the benign learning data (S5). Then, the classification unit 135 uses the trained classifier to classify the URL / domain to be classified as benign or malicious (S6). After that, the classification unit 135 outputs the classification result (S7).
[0042] In this way, the classification device 10 can generate a classifier that accurately classifies whether a URL / domain is benign or malicious. As a result, the classification device 10 can accurately classify whether a URL / domain to be classified is benign or malicious.
[0043] [Second embodiment] [overview] Next, an overview of the classification device 10a of the second embodiment will be described with reference to FIG. 5. The same configurations as those of the first embodiment are denoted by the same reference numerals and will not be described. In the following description, the Generator is assumed to be a Generator that generates pseudo data of benign URLs / domains by GAN, as in the first embodiment.
[0044] Generally, the amount of pseudo data generated by the Generator is large, so the administrator of the classification device 10a needs to have the annotator unit 131 execute the process while taking into consideration the resources of the annotator unit 131. For example, when the annotator unit 131 uses external information to determine whether the pseudo data is an actual benign URL / domain, there are problems such as an upper limit on search in an API (Application Programming Interface) and conditions of service fees, and when the annotator unit 131 is implemented manually, there are problems with human resources (manpower), so the administrator needs to take these resources into consideration.
[0045] Therefore, the classification device 10a performs active learning using the determination results of the annotator unit 131 to learn a model (active learning model) that determines whether the pseudo data generated by the generator is an actual benign URL / domain.
[0046] The classification device 10a then uses the learned active learning model to determine whether the pseudo data generated by the generator is an actual benign URL / domain. The classification device 10a then adopts the pseudo data determined by the active learning model to not be an actual benign URL / domain as pseudo data to be used for expanding the malicious learning data.
[0047] For example, the Active Learning model calculates the score of the pseudo data generated by the Generator by setting a score of 0 for an actually existing benign URL / domain and a score of 1 for a non-existent benign URL / domain (pseudo data).The classification device 10a then adopts the pseudo data whose score calculated by the Active Learning model is equal to or greater than a predetermined threshold as pseudo data to be added to the malicious learning data.
[0048] In this manner, the classification device 10a can appropriately select pseudo data to be added to the malignant training data even when the resources of the annotator unit 131 are limited.
[0049] [About Active Learning] Here, we will explain active learning. Active learning is a type of machine learning that efficiently generates data sets at limited costs and achieves highly accurate classification. It is often used when there is a huge amount of data but only a small amount of labeled data, or when human knowledge is required in addition to machine learning. If it is known which data should be labeled in order to generate a more accurate classifier, the labeling costs can be significantly reduced.
[0050] Active learning can be broadly divided into two types: pool-based sampling and stream-based selective sampling. Pool-based sampling is a method that selects data that is useful for learning and should be labeled as a priority from unlabeled data, and has an annotator label it. Stream-based selective sampling is a method that selects whether or not to label input streaming data.
[0051] [Configuration example] An example of the configuration of the classification device 10a will be described with reference to Fig. 6. The classification device 10a includes a data generation unit 132a. The data generation unit 132a includes an active learning execution unit 1321 and a first pseudo data output unit 1322. In addition, the storage unit 12 stores parameter information of the model learned by the active learning execution unit 1321.
[0052] The active learning execution unit 1321 learns a model (active learning model) that determines whether an input URL / domain is an actual benign URL / domain or pseudo data, by active learning using as feedback the determination results of the annotator unit 131. Details of the learning procedure for the active learning model by the active learning execution unit 1321 will be described later.
[0053] The first pseudo data output unit 1322 uses the Active Learning model to determine whether the pseudo data generated by the Generator is an existing, benign URL / domain. Then, the first pseudo data output unit 1322 outputs the pseudo data determined by the Active Learning model to not be an existing, benign URL / domain to the adding unit 133.
[0054] For example, the first pseudo data output unit 1322 uses an active learning model to determine whether the pseudo data generated by the generator is an actually existing benign URL / domain, and outputs a score indicating the determination result.
[0055] For example, the score may take a value between 0 and 1, with the closer it is to a "real, benign URL / domain" the closer it is to 0, and the closer it is to "data that is not a real, benign URL / domain (pseudo data)", the closer it is to 1. In this case, the first pseudo data output unit 1322 outputs to the adding unit 133 pseudo data with a score equal to or greater than a predetermined threshold (e.g., 0.5) (i.e., data that is highly likely not to be a real, benign URL / domain).
[0056] According to the classification device 10a, even if the resources of the annotator unit 131 are limited, it is possible to reduce the possibility that an actually existing benign URL / domain is used to expand the malicious learning data of the classifier. As a result, the classification device 10a can generate a classifier with high classification accuracy.
[0057] [Example] Next, an example of the operation of the classification device 10a will be described with reference to FIG. 5 and FIG.
[0058] (1) First, in the pseudo data generation of STEP 1, the classification device 10a performs active learning. That is, the active learning execution unit 1321 (see FIG. 6) of the classification device 10a queries the annotator unit 131 about some pseudo data generated by the generator. The annotator unit 131 determines whether the pseudo data is an actually existing benign URL / domain by, for example, inputting the data into a search engine such as a service like Who is or a sandbox.
[0059] If the annotator unit 131 determines that the pseudo data is a benign URL / domain that actually exists, the active learning execution unit 1321 excludes the pseudo data from the pseudo data generated by the Generator. In this way, the active learning execution unit 1321 obtains pseudo data that has passed the judgment of the annotator unit 131. Note that the active learning execution unit 1321 may query the annotator unit 131 for any number of pseudo data, but the more the number, the more accurate the model learning can be achieved.
[0060] (2) Next, the active learning execution unit 1321 performs active learning of a model that uses the pseudo data that has passed the judgment of the annotator unit 131 and benign URLs / domains to judge whether the input data is "pseudo data" or "actual benign URLs / domains." This active learning enables the model to select pseudo data that is useful for learning and should be preferentially labeled from among the pseudo data newly generated by the generator. Note that the active learning here is pool-based sampling type active learning.
[0061] (3) Next, the active learning execution unit 1321 queries the annotator unit 131 about the pseudo data selected in (2) as pseudo data that the model should preferentially label. The annotator unit 131 determines whether the pseudo data is an actually existing benign URL / domain. The active learning execution unit 1321 then feeds back the result of the determination made by the annotator unit 131 to the model (Active Learning model).
[0062] That is, if the annotator unit 131 determines in (3) that the selected pseudo data is a benign URL / domain that actually exists, the active learning execution unit 1321 adds the pseudo data to the "benign URL / domain" in (2). On the other hand, if the annotator unit 131 determines in (3) that the selected pseudo data is not a benign URL / domain that actually exists, the active learning execution unit 1321 adds the pseudo data to the "pseudo data that passed the judgment of the annotator unit 131" in (2).
[0063] (4) The active learning execution unit 1321 performs training of a pool-based sampling type active learning model based on the feedback in (3).
[0064] (5) The active learning execution unit 1321 repeatedly executes the above processes (3) and (4) as long as the resources of the classification device 10a permit, or until the pseudo data that is the subject of a query to the annotator unit 131 in (3) becomes similar each time.
[0065] After going through (6) and (5), the Active Learning model becomes able to accurately determine whether the input URL / domain is "pseudo data" or a "real, benign URL / domain." After that, the first pseudo data output unit 1322 uses the Active Learning model to determine whether the pseudo data generated by the Generator is "pseudo data" or a "real, benign URL / domain," and outputs a score indicating the determination result.
[0066] For example, let's say the label of "pseudo data" is 1, and the label of a real, benign URL / domain is 0. The score ranges from 0 to 1. Therefore, it can be determined that the closer the score output from the active learning model is to 1, the closer it is to "pseudo data," and the closer it is to 0, the closer it is to a "real, benign URL / domain."
[0067] (7) Based on the above score, the first pseudo data output unit 1322 selects pseudo data to be used for expanding the malignant learning data in STEP 2. For example, the first pseudo data output unit 1322 selects pseudo data whose score output by the active learning model is equal to or greater than a predetermined threshold (e.g., 0.5) as pseudo data to be used for expanding the malignant learning data in STEP 2. On the other hand, the first pseudo data output unit 1322 does not select pseudo data whose score is less than the above predetermined threshold as pseudo data to be used for expanding the malignant learning data in STEP 2. Then, the first pseudo data output unit 1322 outputs the selected pseudo data to the adding unit 133.
[0068] In addition, if the administrator wants to reduce the possibility that the classification device 10a causes the classifier to learn an actually existing benign URL / domain as a malignant URL / domain in STEP 2, the administrator can set the score threshold higher. For example, the score threshold can be set to 0.9 instead of 0.5. However, if the score threshold is too high, there is a trade-off in that the number of pseudo data used to expand the malignant learning data in STEP 2 decreases. Therefore, this score threshold is a hyperparameter and needs to be adjusted during learning of the classifier in STEP 2.
[0069] The subsequent steps, STEP 2 and STEP 3, are the same as those in the first embodiment, and therefore the description thereof will be omitted.
[0070] According to the classification device 10a, even if the resources of the annotator unit 131 are limited, it is possible to reduce the possibility that an actually existing benign URL / domain is used to expand the malicious learning data of the classifier. As a result, the classification device 10a can generate a classifier with high classification accuracy.
[0071] [Modification of the second embodiment] In addition, if the annotator unit 131 has spare resources, the classification device 10a may inquire of the annotator unit 131 about pseudo data that has been determined to be close to benign based on the score output by the active learning model, as shown in Figure 7, and determine whether to adopt the pseudo data based on the result of the inquiry.
[0072] For example, the first pseudo data output unit 1322 of the classification device 10a (see Figure 6) requests the annotator unit 131 to determine whether the top X (X can be changed depending on the resources of the annotator unit 131) pseudo data whose scores output by the active learning model are close to "actual benign URLs / domains" are actual benign URLs / domains.
[0073] If annotator unit 131 determines that the pseudo data is a real, benign URL / domain, first pseudo data output unit 1322 determines to reject the pseudo data. On the other hand, if annotator unit 131 determines that the pseudo data is not a real, benign URL / domain, first pseudo data output unit 1322 determines to accept the pseudo data.
[0074] On the other hand, the classification device 10a decides to adopt pseudo data that is determined not to be benign based on the score output by the active learning model. For example, the first pseudo data output unit 1322 of the classification device 10a decides to adopt all of the pseudo data that is lower than the top X items whose scores output by the active learning model are close to "actual benign URLs / domains" or a part of the pseudo data determined using a predetermined threshold.
[0075] Then, the first pseudo data output unit 1322 outputs the pseudo data determined to be adopted by the above process to the adding unit 133. After that, the adding unit 133 adds the pseudo data to the malicious learning data. Then, the classification device 10a executes STEP 2 and STEP 3 in the same manner as in the first embodiment.
[0076] According to the classifier 10a, it is possible to further reduce the possibility that real benign URLs / domains are used to expand the malicious learning data of the classifier. As a result, the classifier 10a can generate a classifier with higher classification accuracy.
[0077] [Third embodiment] Next, a classification device 10b according to a third embodiment will be described with reference to Fig. 8. The same components as those in the first and second embodiments are denoted by the same reference numerals and will not be described. The classification device 10b is characterized by combining the expansion of learning data using GAN, as described in Fig. 1, with the judgment of the annotator unit 131.
[0078] The Generator, Discriminator, judgment function, and feedback to the Generator and Discriminator using the judgment result by the judgment function shown in FIG. 8 are the same as those in FIG. 1, and therefore will not be described.
[0079] In STEP 1, the classification device 10b requests the annotator unit 131 to determine whether data is "benign URL / domain" or "pseudo data" based on the probability output by the Discriminator.
[0080] For example, the probability value output by the Discriminator approaches 1 the more likely the data is "pseudo data," and approaches 0 the less likely it is to be "pseudo data" (the more likely it is a benign URL / domain). Therefore, for example, if the probability value output by the Discriminator is around 0.5, the data can be considered to be difficult to distinguish between a "benign URL / domain" and "pseudo data."
[0081] Therefore, the classification device 10b requests the annotator unit 131 to make a decision on data that is determined to be difficult to distinguish between a "benign URL / domain" and "pseudo data" based on the probability output from the Discriminator.
[0082] For example, the classification device 10b determines that data whose probability value is between a predetermined threshold (for example, between 0.4 and 0.6) is difficult to determine whether it is a "benign URL / domain" or "pseudo data," and requests a determination from the annotator unit 131. The annotator unit 131 determines whether the data is an actual benign URL / domain.
[0083] Then, the classification device 10b receives a determination result as to whether or not the data is an actual benign URL / domain from the annotator unit 131, and feeds back the determination result to the Generator and the Discriminator.
[0084] For pseudo data that is not difficult to distinguish between a "benign URL / domain" and "pseudo data" based on the probability output from the Discriminator, the classification device 10b performs feedback to the Generator and Discriminator using the judgment result by the judgment function, as described in Fig. 1. The Discriminator and Generator adjust their parameters based on this feedback.
[0085] The processes in STEP 2 and STEP 3 are similar to those in the first and second embodiments, and therefore will not be described.
[0086] [Configuration example] An example of the configuration of the classification device 10b will be described with reference to Fig. 9. The classification device 10b includes a data generation unit 132b. The data generation unit 132b includes an annotator request unit 1323, a judgment processing unit 1324, a feedback unit 1325, and a second pseudo data output unit 1326. The storage unit 12 also stores parameter information of the Generator and the Discriminator.
[0087] The annotator request unit 1323 requests the annotator unit 131 to make a judgment on input data for which it is difficult to distinguish whether the input data is a "benign URL / domain" or "pseudo data" based on the probability output by the Discriminator.
[0088] For example, the annotator requesting unit 1323 requests the annotator unit 131 to make a judgment on data whose above probability is between a predetermined threshold (for example, between 0.4 and 0.6). Then, when the annotator requesting unit 1323 receives a judgment result on whether the pseudo data is an actual benign URL / domain from the annotator unit 131, the annotator requesting unit 1323 outputs the judgment result to the feedback unit 1325. Furthermore, for data whose above probability is not between the predetermined threshold (for example, between 0.4 and 0.6), the annotator requesting unit 1323 outputs the probability to the judgment processing unit 1324.
[0089] The determination processing unit 1324 applies a determination function to the probability output from the Discriminator to determine whether the input data is "pseudo data" or a "benign URL / domain". Then, the determination processing unit 1324 outputs the result of whether or not the determination was correct to the feedback unit 1325. In other words, the determination processing unit 1324 determines whether or not the determination of the Discriminator was correct based on whether or not the input data to the Discriminator was actually pseudo data. Then, the determination processing unit 1324 outputs the result of whether or not the determination of the Discriminator was correct to the feedback unit 1325.
[0090] The feedback unit 1325 feeds back the result of whether the Discriminator's judgment was correct or not to the Discriminator and the Generator. The feedback unit 1325 also feeds back the result output from the annotator request unit 1323 to the Discriminator and the Generator. The Discriminator then adjusts its parameters based on the feedback. The Generator also adjusts its parameters based on the feedback.
[0091] The second pseudo data output unit 1326 outputs the pseudo data generated by the Generator after the parameter adjustment to the adding unit 133. For example, the second pseudo data output unit 1326 outputs to the adding unit 133 pseudo data that, among the pseudo data generated by the Generator after the parameter adjustment, has a probability of being output by the Discriminator after the parameter adjustment that is less than a predetermined threshold.
[0092] According to such a classification device 10b, when the Generator and the Discriminator are trained, the judgment result of the annotator unit 131 can be reflected. As a result, the Generator can generate pseudo data that is unlikely to be an actual benign URL / domain. This allows the classification device 10b to use pseudo data that is unlikely to be an actual benign URL / domain to expand the malicious learning data of the Classifier. As a result, the classification device 10b can generate a Classifier with high classification accuracy.
[0093] [System configuration, etc.] In addition, each component of each unit 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 part by a CPU and a program executed by the CPU, or can be realized as hardware using wired logic.
[0094] Furthermore, among the processes described in the above embodiments, 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.
[0095] [program] The classification devices 10, 10a, and 10b described above can be implemented by installing a program as package software or online software on a desired computer. For example, the above program can be executed by an information processing device to function as the classification device 10 of each embodiment. The information processing device here includes desktop or notebook personal computers. In addition, the information processing device also includes mobile communication terminals such as smartphones, mobile phones, and PHS (Personal Handyphone System), and further terminals such as PDA (Personal Digital Assistant), etc.
[0096] The classification devices 10, 10a, and 10b may be implemented as a server device that provides services related to the above-mentioned processes to a client, the client being a terminal device used by a user. In this case, the server device may be implemented as a Web server or as a cloud that provides services related to the above-mentioned processes by outsourcing.
[0097] 10 is a diagram showing an example of a computer that executes a classification program. 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.
[0098] The memory 1010 includes a read only memory (ROM) 1011 and a random access memory (RAM) 1012. The ROM 1011 stores a boot program such as a basic input output system (BIOS). 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.
[0099] The hard disk drive 1090 stores, for example, an OS 1091, an application program 1092, a program module 1093, and program data 1094. That is, a program that defines each process executed by the above-mentioned classification device 10 is 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 the same process as the functional configuration of the classification device 10 is stored in the hard disk drive 1090. The hard disk drive 1090 may be replaced with an SSD.
[0100] Furthermore, each piece of data used in the processing of the above-described embodiment is stored as program data 1094 in, for example, 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.
[0101] 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 local area network (LAN) or wide area network (WAN)). 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. [Explanation of symbols]
[0102] 10,10a,10b Classifier 11 Input / output section 12 Storage section 13 Control section 131 Annotator Department 132, 132a, 132b Data generation unit 133 Additional Part 134 Learning Department 135 Classification Department 1321 Active Learning Executive Team 1322 First pseudo data output unit 1323 Annotator Request Department 1324 Judgment processing unit 1325 Feedback Section 1326 Second pseudo data output section
Claims
1. an annotator unit that determines whether an input URL or domain is an actually existing, benign URL or domain; a Generator that is trained to generate pseudo data of benign URLs or domains using a GAN; and a Discriminator that is trained to distinguish between the pseudo data generated by the Generator and benign URLs or domains; an Annotator Request Unit that requests the Annotator Unit to determine whether or not a URL or domain that is determined by the Discriminator to have a probability of being a benign URL or domain that is equal to or greater than a predetermined threshold is actually a benign URL or domain; a feedback unit that provides feedback to the Generator and the Discriminator based on a result of the determination by the annotator unit as to whether the URL or domain is an actually existing benign URL or domain; a data generating unit including a pseudo data output unit that outputs pseudo data of a URL or domain that is determined by the Discriminator after the feedback to have a probability of being a benign URL or domain that is less than a predetermined threshold, from among the pseudo data generated by the Generator after the feedback; an adding unit that adds pseudo data output by the data generating unit to learning data of malicious URLs or domains; a learning unit that uses the learning data of the malicious URL or domain to which the pseudo data has been added to learn a classifier that classifies an input URL or domain as malicious or benign; A classification device comprising:
2. A classification unit that uses the trained classifier to classify an input URL or domain as malicious or benign. The classification device of claim 1 further comprising:
3. The annotator unit includes: Determine whether the input URL or domain is an actual, benign URL or domain by performing a domain name search process that references a specified domain name management service or a URL search process using a search engine.
2. The classification device according to claim 1 .
4. An annotator unit that determines whether an input URL or domain is an actually existing, benign URL or domain; a data generation unit that outputs pseudo data of benign URLs or domains generated by a generator, the pseudo data being determined by the annotator unit to not be a real benign URL or domain; an adding unit that adds pseudo data output by the data generating unit to learning data of malicious URLs or domains; a learning unit that uses the learning data of the malicious URL or domain to which the pseudo data has been added to learn a classifier that classifies an input URL or domain as malicious or benign; Equipped with The data generation unit an active learning execution unit that learns a model that determines whether an input URL or domain is an actually existing benign URL or domain by active learning using the determination result by the annotator unit; and a pseudo data output unit that outputs pseudo data that is determined by the learned model to be not a real, benign URL or domain. A classification device comprising:
5. The active learning execution unit is The model is trained by active learning using information obtained by adding information on URLs or domains that are determined by the annotator unit to be actual benign URLs or domains to information on benign URLs or domains, and information obtained by adding information on URLs or domains that are determined by the annotator unit to be not actual benign URLs or domains to the pseudo data.
5. The classification device according to claim 4.
6. A classification method performed by a classification device, comprising: a determining step of determining whether the input URL or domain is an existing, benign URL or domain; a Generator that is trained to generate pseudo data of benign URLs or domains using a GAN, and a Discriminator that is trained to distinguish between the pseudo data generated by the Generator and benign URLs or domains; an annotator requesting step of requesting an annotator unit that determines whether an input URL or domain is an actually existing benign URL or domain, for a URL or domain that is determined by the Discriminator to have a probability of being a benign URL or domain equal to or greater than a predetermined threshold, to determine whether the URL or domain is an actually existing benign URL or domain; a feedback step of providing feedback to the Generator and the Discriminator based on a result of the determination by the annotator unit as to whether the URL or domain is an actually existing benign URL or domain; a data generating step including a pseudo data output step of outputting pseudo data of a URL or domain that is determined by the Discriminator after the feedback to have a probability of being a benign URL or domain less than a predetermined threshold value from among the pseudo data generated by the Generator after the feedback; adding the pseudo data output by the data generation step to learning data of malicious URLs or domains; a learning step of learning a classifier that classifies an input URL or domain as malicious or benign using the learning data of the malicious URL or domain to which the pseudo data has been added; A classification method comprising:
7. A determination step of determining whether an input URL or domain is an existing, benign URL or domain; a Generator that is trained to generate pseudo data of benign URLs or domains using a GAN, and a Discriminator that is trained to distinguish between the pseudo data generated by the Generator and benign URLs or domains; an annotator requesting step of requesting an annotator unit that determines whether or not a URL or domain that is determined by the Discriminator to have a probability of being a benign URL or domain equal to or greater than a predetermined threshold to determine whether or not the URL or domain is an actually existing benign URL or domain; a feedback step of providing feedback to the Generator and the Discriminator based on a result of the determination by the annotator unit as to whether the URL or domain is an actually existing benign URL or domain; a data generating step including a pseudo data output step of outputting pseudo data of a URL or domain that is determined by the Discriminator after the feedback to have a probability of being a benign URL or domain less than a predetermined threshold value from among the pseudo data generated by the Generator after the feedback; adding the pseudo data output by the data generation step to learning data of malicious URLs or domains; a learning step of learning a classifier that classifies an input URL or domain as malicious or benign using the learning data of the malicious URL or domain to which the pseudo data has been added; A classification program characterized by causing a computer to execute the above steps.
Citation Information
Patent Citations
Management method of blacklist
JP2016146114A
