Hypergraph-based domain name test method and apparatus

Through the domain name detection method based on the hypergraph, multivariate relationships are constructed and convolution calculations are performed, which solves the problems of information loss and low detection accuracy in traditional methods, and achieves more accurate domain name detection.

WO2024183339A1PCT designated stage expired Publication Date: 2024-09-12CHINA INTERNET NETWORK INFORMATION CENTER

Patent Information

Application Number
PCT/CN2023/133237
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-03
Filing Date
2023-11-22
Publication Date
2024-09-12

AI Technical Summary

Technical Problem

Traditional domain name detection methods will cause information loss and low detection accuracy when dealing with multiple relationships, and cannot flexibly handle multi-modal data features, resulting in inaccurate detection results.

Method used

A domain name detection method based on hypergraph is used to obtain the characteristics of the seed domain name and the domain name to be detected, build a consistency matrix and construct a hypergraph, perform convolution calculations to obtain the predicted probability, mark the type of domain name to be detected, and combine the domain name registration information and Feature fusion is performed on character information to model complex multivariate relationships.

Benefits of technology

It improves the accuracy of domain name detection, can process multi-modal information more effectively, retains original information, and enhances the detection ability of target type domain names.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023133237_12092024_PF_FP_ABST
    Figure CN2023133237_12092024_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the present application are a hypergraph-based domain name test method and apparatus. The method comprises: after a domain name under test is acquired, acquiring a seed domain name set, the seed domain name set comprising a plurality of seed domain names of known types; separately performing feature extraction on the seed domain names and the domain name under test to obtain domain name features; according to the domain name features, computing the similarities between the seed domain names and the domain name under test so as to construct a consistency matrix; then according to the consistency matrix, constructing a hypergraph; and executing convolution computing on the hypergraph to obtain a prediction probability of the domain name under test, so as to mark the type of the domain name under test. By introducing a hypergraph structure and modeling the complex N-ary relation between domain names, the method can more accurately implement active tests of domain names of target types.
Need to check novelty before this filing date? Find Prior Art

Description

A domain name detection method and device based on hypergraph Technical Field

[0001] The present application relates to the technical field of display devices, and in particular to a domain name detection method and device based on a hypergraph. Background Art

[0002] A domain name, also known as a network domain, is the name of a computer or group of computers on the Internet, consisting of a series of names separated by dots. It is used to locate and identify computers during data transmission. The domain name system maps domain names to IP addresses, making internet access more convenient for users and enabling better resource sharing on the network. However, due to the increasing prevalence of cyberattacks and malicious services, criminals are leveraging internet technologies and online platforms to engage in underground criminal activities such as phishing, online pornography, online gambling, and online fraud, profiting illegally from these activities. Domain names associated with illegal activities are a key component of these cyberattacks and malicious services. Therefore, effectively identifying domain names associated with illegal activities is crucial for ensuring user network data security and safeguarding the economies of countries, businesses, and individuals.

[0003] Traditional detection methods use domain name relationships to construct a graph structure, transforming the problem of detecting cybercrime-related domain names into a graph mining task of inferring the reputation scores of graph nodes. Alternatively, they use a small batch of existing cybercrime-related domain names as seeds to proactively mine more domain names based on graph computation. This domain name detection method is not limited to the effectiveness of web page content and heuristic features. By constructing a graph structure to simulate the interaction between "host-domain name" query behavior, "domain name-IP" resolution structure, and domain name temporal patterns, the relationship between domain name nodes is analyzed to analyze the similarities between domain names in end-host query, IP resolution, and temporal patterns, thereby mining unknown cybercrime-related domain names.

[0004] However, in real-world problems, objects often have complex multi-dimensional relationships rather than just binary ones. Traditional graph construction forcibly converts multi-dimensional relationships into binary ones, resulting in loss of original information and reduced detection accuracy. Furthermore, all edges in traditional graphs have a degree of 2, making them inflexible in handling multimodal data features and leading to information loss.

[0005] Summary of the Invention

[0006] The present application provides a domain name detection method and device based on a hypergraph to solve the problem of inaccurate domain name detection results in traditional domain name detection.

[0007] In one aspect, the present application provides a hypergraph-based domain name detection method, comprising:

[0008] Obtaining a seed domain name set and a domain name to be detected, wherein the seed domain name set includes multiple seed domain names of known types;

[0009] Extracting domain name features of the seed domain name and the domain name to be detected respectively;

[0010] Calculating the similarity between the seed domain name and the domain name to be detected based on the domain name features to construct a consistency matrix;

[0011] Constructing a hypergraph based on the consistency matrix, and performing a convolution calculation on the hypergraph to obtain a predicted probability of the domain name to be detected, wherein the predicted probability is used to represent the probability that the domain name to be detected is a target type domain name;

[0012] The domain name to be detected is marked according to the predicted probability.

[0013] Optionally, the domain name features include domain name information features and domain name text features, the domain name information features include registrar distance, IP distance, domain name registration duration, domain name remaining validity duration, domain name status, and character features, and the domain name text features include character statistical features and character sequence features. The method further includes:

[0014] A feature vector of the domain name feature is generated according to the domain name information feature and the domain name character feature.

[0015] Optionally, the method further includes:

[0016] Obtaining the registrar information and IP address information of the seed domain name and the domain name to be detected;

[0017] Constructing a registrar distance matrix based on the registrar information to obtain a registrar distance;

[0018] According to the IP address information, a distance matrix of the IP addresses is constructed to obtain the IP distance.

[0019] Optionally, the method further includes:

[0020] Classifying the seed domain names and the domain names to be detected according to the registrar information to obtain a domain name set, wherein the domain name set includes the number of domain names in each registrar type;

[0021] Comparing the domain name to be detected with the seed domain name;

[0022] If the domain name to be detected and the seed domain name belong to the same registrar type, calculating a first distance value, where the first distance value is the reciprocal of the number of domain names corresponding to the registrar type;

[0023] If the domain name to be detected and the seed domain name belong to different registrar types, calculating a second distance value, where the second distance value is a preset distance value;

[0024] A distance matrix of the registrar is generated according to the first distance value and the second distance value.

[0025] Optionally, the step of calculating the similarity between the seed domain name and the domain name to be detected based on the domain name feature includes:

[0026] Calculating a characteristic distance between the domain name to be detected and the seed domain name, where the characteristic distance is the distance between the characteristic vectors of the domain name to be detected and the seed domain name;

[0027] The sum of the product of the characteristic distance and a preset coefficient is calculated to obtain the similarity between the seed domain name and the domain name to be detected, wherein the preset coefficient is obtained in advance through training.

[0028] Optionally, the steps of constructing a consistency matrix include:

[0029] Calculating a consistency value based on the similarity;

[0030] If the consistency value is greater than a preset consistency value, generating a consistency matrix according to the consistency value;

[0031] If the consistency value is less than or equal to a preset consistency value, it is determined that the consistency matrix is ​​a preset matrix.

[0032] Optionally, the step of constructing a hypergraph based on the consistency matrix includes:

[0033] Constructing a hypergraph model, wherein the hypergraph model includes a plurality of domain name nodes, each of the domain name nodes being associated with a domain name;

[0034] Screening a preset number of target domain name nodes based on the consistency matrix, where the target domain name nodes are domain name nodes whose consistency between the consistency matrix and the domain name node is greater than or equal to a consistency threshold;

[0035] The domain name node and the target domain name node are connected through a hyperedge to construct a hypergraph.

[0036] Optionally, the step of performing a convolution calculation on the hypergraph to obtain a predicted probability of the domain name to be detected includes:

[0037] Concatenating the feature vectors corresponding to the domain name features to generate an initial vector;

[0038] Obtaining a correlation coefficient between the domain name to be detected and the seed domain name, wherein the correlation coefficient is calculated based on the adjacency matrix of the hypergraph, the degree of the hyperpoint, and the degree of the hyperedge;

[0039] Calculating the sum of the products of the initial vector, the correlation coefficient and a preset parameter to obtain a super-point feature;

[0040] The hypergraph convolution is iterated a preset number of times, and a prediction probability of the domain name to be detected is generated based on the super-point feature prediction.

[0041] Optionally, the step of marking the domain name to be detected according to the predicted probability includes:

[0042] Get the preset prediction threshold;

[0043] comparing the predicted probability with the prediction threshold;

[0044] If the predicted probability is greater than the prediction threshold, marking the domain name to be detected as a target type domain name;

[0045] If the predicted probability is less than or equal to the prediction threshold, the domain name to be detected is marked as not a target type domain name.

[0046] On the other hand, the present application also provides a domain name detection device based on a hypergraph, the device comprising:

[0047] a data processing module, configured to obtain a seed domain name set and a domain name to be detected, and extract domain name features of the seed domain name and the domain name to be detected, respectively, wherein the seed domain name set includes a plurality of seed domain names of known types;

[0048] A hypergraph construction module, configured to calculate the similarity between the seed domain name and the domain name to be detected based on the domain name features to construct a consistency matrix, and to construct a hypergraph based on the consistency matrix;

[0049] a hypergraph learning module, configured to perform a convolution calculation on the hypergraph to obtain a predicted probability of the domain name to be detected, wherein the predicted probability is used to represent a probability that the domain name to be detected is a target type domain name;

[0050] The domain name detection module is used to mark the domain name to be detected according to the predicted probability.

[0051] As can be seen from the above technical solutions, the present application provides a domain name detection method and device based on a hypergraph. After obtaining the domain name to be detected, the method can obtain a seed domain name set, which includes multiple seed domain names of known types, and perform feature extraction on the seed domain name and the domain name to be detected to obtain domain name features. The similarity between the seed domain name and the domain name to be detected is calculated based on the domain name features to construct a consistency matrix, and then a hypergraph is constructed based on the consistency matrix, and a convolution calculation is performed on the hypergraph to obtain the predicted probability of the domain name to be detected, and then the type of the domain name to be detected is marked. The method can perform feature fusion on features such as domain name registration information and character information, and by introducing a hypergraph structure to integrate multivariate information, model the complex multivariate relationship between domain names, and thus more accurately complete the active detection of the target type domain name. At the same time, the consistency matrix, the expression method of the super-point feature, and the related measurement method of the domain name to be detected and the seed domain name are designed to improve the detection accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] FIG1 is a flow chart of a domain name detection method based on a hypergraph in an embodiment of the present application;

[0053] FIG2 is a schematic diagram of a process for constructing a distance matrix in an embodiment of the present application;

[0054] FIG3 is a schematic diagram of the process of constructing a hypergraph in an embodiment of the present application;

[0055] FIG4 is a schematic structural diagram of a domain name detection device based on a hypergraph in an embodiment of the present application. DETAILED DESCRIPTION

[0056] Black-related domain names are an important part of network attacks and malicious services. In order to ensure the security of users' network data, domain name detection is an important means to identify black-related domain names.

[0057] In some embodiments, domain name detection can be modeled as a classification problem. By extracting features such as domain names, traffic information, web page content, and registration information, a classification model is established to distinguish between black-linked and benign domain names. Feature extraction methods include manually designing based on experience or automatically extracting using deep learning models. However, detection methods based on manually designed features are easily circumvented. Furthermore, due to the short lifespan and rapid changes in web page content of a large number of black-linked domain names, detection methods based on web page content features may miss detections.

[0058] Furthermore, domain name relationships can be used to construct a graph structure, transforming the problem of detecting cybercrime-related domain names into a graph mining task of inferring the reputation scores of graph nodes. Alternatively, a small batch of existing cybercrime-related domain names can be used as seeds to proactively mine more domain names based on graph computation. This domain name detection method is not limited to the effectiveness of web page content and heuristic features. By constructing a graph structure to simulate the interaction between "host-domain name" query behavior, "domain name-IP" resolution structure, and domain name temporal patterns, and through the relationships between domain name nodes, the similarities between domain names in end-host query, IP resolution, and temporal patterns can be analyzed to mine unknown cybercrime-related domain names.

[0059] As can be seen, the aforementioned domain name detection methods are based on the comprehensive extraction of relevant domain name features, including features such as text, web page structure, and images parsed by crawling web page content, as well as features extracted from data such as domain name registration information and domain name system logs, to establish a detection model based on machine learning or graph structure. Due to the rapid transfer of black domain names and the sophisticated anti-crawl strategies, their web page content is often difficult to crawl. Therefore, machine learning-based detection methods that focus on web page content features are affected by this, resulting in a reduced recall rate. However, in practical problems, objects are generally not just binary relationships, but rather complex multivariate relationships. During the graph construction process, forcibly converting multivariate relationships into binary relationships will result in the loss of original information and reduce detection accuracy. In addition, the degree of all edges in the graph is 2, which cannot flexibly handle multimodal data features, resulting in information loss.

[0060] To address these issues, this application provides a hypergraph-based domain name detection method. By incorporating a hypergraph structure and constructing multivariate relationships between domain name nodes, this method can process multimodal information in parallel, enabling efficient and accurate proactive domain name detection. This effectively improves domain name detection accuracy and addresses the issues of low accuracy and information loss associated with graph-based detection methods.

[0061] See Figure 1, which is a flow chart of a hypergraph-based domain name detection method according to an embodiment of the present application. As can be seen from Figure 1, in order to identify and detect the domain name to be detected, the hypergraph-based domain name detection method provided by the present application includes the following steps:

[0062] S100: Obtain a seed domain name set and a domain name to be detected.

[0063] The seed domain name set includes multiple seed domain names of known types, that is, the seed domain name set is a pre-configured domain name collection of known types, and the type of the domain name to be detected can be detected and identified based on the correlation metrics between the domain name to be detected and the seed domain name.

[0064] It's understood that the seed domain set can be flexibly configured based on actual application needs, allowing for proactive domain detection based on its configuration. For example, to detect domains associated with cybercrime, multiple known cybercrime-related seed domains can be configured in the seed domain set. Similarly, other known domain types can be configured in the seed domain set to detect specific domains, such as benign, business, and media domains.

[0065] S200: extract domain name features of the seed domain name and the domain name to be detected respectively.

[0066] Domain features can be extracted from the relevant domain information of the seed domain and the domain to be detected. In practical applications, domain information can be queried using a pre-set domain name database. For example, whois is used to check whether a domain name is registered and detailed information about the registered domain, such as the registrar, registration date, status, expiration date, and resolution server.

[0067] After obtaining relevant domain name information, domain name features can be extracted. To improve detection accuracy, in some embodiments, domain name features may include domain name information features and domain name text features. Domain name information features include, but are not limited to, registrar distance, IP address distance, domain name registration duration, domain name remaining validity period, domain name status, and character features. Domain name text features include, but are not limited to, character statistics and character sequence features.

[0068] Among them, the registrar distance and IP distance can be obtained by obtaining the registrar information and IP address information of the seed domain name and the domain name to be detected, constructing the registrar distance matrix based on the registrar information, and then obtaining the registrar distance. Based on the IP address information, constructing the IP address distance matrix, and then obtaining the IP distance.

[0069] Taking the construction of the registrar distance matrix as an example, as shown in Figure 2, the seed domains and the domains to be tested are classified according to the registrar information, that is, the domains are classified by registrar, and then different domain name sets are obtained. The domain name set includes the number of domain names in each registrar type.

[0070] By comparing the domain name to be tested with the seed domain name, a first distance value is calculated if the domain name to be tested and the seed domain name belong to the same registrar type. If the domain name to be tested and the seed domain name belong to different registrars, a second distance value is calculated. Based on the first and second distance values, a registrar distance matrix is ​​generated.

[0071] The first distance value is the reciprocal of the number of domain names corresponding to the assigned registrar type, and the second distance value is a preset distance value.

[0072] For example, domain names are classified according to registrars to obtain a domain name set, and D is defined as the domain name set, D = {d1, d2, ..., d n}, d n For the number of domain names in each registrar class, the distance matrix of registrars is:

[0073] Among them, D d i is the i-th domain name to be detected, d j is the j-th seed domain name.

[0074] Similarly, domain names can be classified according to IP addresses to obtain different domain name sets, and then a distance matrix of IP addresses can be constructed.

[0075] After obtaining domain name features, they can be represented by feature vectors. This means generating a feature vector based on the domain name information features and the domain name character features. The following table shows the domain name feature information.

[0076] As shown in the above table, one feature vector can be generated based on the domain name information features, one feature vector can be generated based on the character sequence features, and one feature vector can be generated based on the character statistical features, and then the domain name features of the domain name can be represented by three feature vectors.

[0077] It is understandable that the above exemplary examples show three feature vectors of domain name features. In actual applications, other numbers of feature vectors can be set according to actual application requirements to characterize domain name features, and this application does not impose any restrictions on this.

[0078] S300, calculating the similarity between the seed domain name and the domain name to be detected based on the domain name features to construct a consistency matrix.

[0079] After obtaining domain name features, a hypergraph can be constructed based on these features to model the complex multivariate relationships between domain names. During the hypergraph construction process, the consistency matrix between the domain names is first calculated. Specifically, the consistency matrix is ​​calculated for the seed domains and the domains to be tested. Based on the domain name features, the similarity between each seed domain and each domain to be tested is calculated to create the consistency matrix.

[0080] Similarity can be calculated based on a predefined similarity distance. This is done by calculating the characteristic distance between the domain to be tested and the seed domain, and then multiplying the characteristic distance by a preset coefficient to obtain the similarity between the seed domain and the domain to be tested. The characteristic distance is the distance between the characteristic vectors of the domain to be tested and the seed domain, and the preset coefficient is pre-trained.

[0081] For example, for any two domain names, the similarity between them can be defined as:

[0082] Among them, dist Fk For domain name d i and domain name d j The distance between the kth eigenvector of , w is the learnable coefficient, that is, the coefficient obtained in advance through training, and m is the number of eigenvectors; the similarity between each seed domain name and each domain name to be detected can be calculated by the above formula, that is, the sum of the products of the three eigenvectors of the domain name to be detected and the seed domain name and the learnable coefficient is calculated to obtain the similarity between the seed domain name and the domain name to be detected.

[0083] The consistency matrix can be obtained by similarity calculation. The consistency value is calculated based on the similarity. If the consistency value is greater than the preset consistency value, a consistency matrix is ​​generated based on the consistency value; if the consistency value is less than or equal to the preset consistency value, the consistency matrix is ​​determined to be the preset matrix.

[0084] For example, the consistency matrix is ​​calculated according to the following formula:

[0085] Among them, dist ij is the similarity, and λ is the preset parameter. The consistency value is calculated based on the similarity and the preset parameters. The default consistency value is 0. If The consistency matrix Otherwise, the consistency matrix is ​​the preset matrix, that is, β ij =0.

[0086] S400, constructs a hypergraph based on the consistency matrix.

[0087] In the embodiment of the present application, a hypergraph expressing high-order consistency between domain names can be established based on the consistency matrix. When constructing a hypergraph, as shown in FIG3 , a hypergraph model can be constructed, wherein the hypergraph model includes multiple domain name nodes, each domain name node is associated with a domain name, that is, the domain name is used as a node in the hypergraph model.

[0088] Hypergraph construction is a graph-building process based on hyperedges. Hyperedges are constructed based on a consistency matrix, that is, based on the relationships between domain name nodes. Domain name nodes with strong consistency can be connected to form hyperedges. Specifically, for each domain name node, the consistency matrix can be used to find multiple domain name nodes with strong consistency. These nodes are connected as a hyperedge. Repeating the above steps for each domain name node, constructing a hyperedge for each domain name node, completes the construction of the hypergraph.

[0089] In some embodiments, a preset number of target domain name nodes can be screened based on the consistency matrix, where the target domain name node is a domain name node whose consistency between the consistency matrix and the domain name node is greater than or equal to a consistency threshold, and the domain name node and the target domain name node are connected through a hyperedge to construct a hypergraph.

[0090] That is, when constructing a hyperedge for each domain name node, a number value k can be pre-set, and k domain name nodes with strong consistency can be selected based on the consistency matrix, and these k domain name nodes are connected as a hyperedge. A consistency threshold can also be pre-set, and multiple domain name nodes with consistency greater than or equal to the consistency threshold can be selected based on the consistency matrix, and these are connected as a hyperedge.

[0091] S500: Perform convolution calculation on the hypergraph to obtain the predicted probability of the domain name to be detected.

[0092] The predicted probability is used to represent the probability that the domain name to be detected is the target type domain name. After the hypergraph is constructed, hypergraph convolution can be used to further learn the high-order consistency between domain name nodes, that is, to learn the characteristics of the super point.

[0093] According to the above example, the domain name features of each domain name node are represented by a feature vector. The initial vector can be generated by splicing the feature vectors corresponding to the domain name features of each domain name node. For example, the domain name features of each domain name node are represented by three feature vectors. The three feature vectors are spliced ​​together to obtain a feature vector representation, namely the initial vector. Define the initial vector F = [x i ||x j ||x z ].

[0094] Then, the super-point feature is calculated based on the initial vector. By obtaining the correlation coefficient between the domain name to be detected and the seed domain name, the sum of the product of the initial vector, the correlation coefficient and the preset parameter is calculated to obtain the super-point feature.

[0095] For example, the characteristics of a superpoint can be calculated as follows:

[0096] Among them, F i is the initial vector of the domain name to be detected, F j is the initial vector of the seed domain name, W is the learnable parameter in the network, N is the number of seed domain names, α ij is the correlation coefficient between the domain name node to be tested and the seed domain name node.

[0097] The correlation coefficient can be calculated based on the adjacency matrix of the hypergraph, the degree of the hyperpoint, and the degree of the hyperedge. The correlation coefficient can be calculated according to the following formula:

[0098] Among them, D(v i ) and D(e k ) are the degree of the domain node and the degree of the hyperedge, ε is the default value, H(v i , e k ) is the adjacency matrix of the hypergraph, if the hyperpoint v i With the hyperedge e k connected, then H(v i , e k )=1, if the superpoint v i With the hyperedge e k If they are not connected, then H(v i , e k ) is 0.

[0099] After obtaining the super-point features, the hypergraph convolution is iterated a preset number of times, and the predicted probability of the domain name to be tested is generated based on the super-point features. For example, after iterating the hypergraph convolution a preset number of times, a multi-layer perceptron module and a sigmoid function are used to predict the probability that the domain name to be tested is the target type domain name, that is:

[0100] in, is the feature of the super point, sigmoid() is the sigmoid function, and MLP() is the multi-layer perceptron.

[0101] S600: Mark the domain name to be detected according to the predicted probability.

[0102] By performing convolution calculations on the hypergraph and predicting the probability that the domain name to be tested is the target type domain name, the type of the domain name to be tested can be determined based on the predicted probability, and the domain name to be tested can be marked to obtain the detection and recognition result of the domain name.

[0103] In some embodiments, a prediction threshold can be pre-set. After obtaining the predicted probability of the domain name to be detected, the prediction threshold can be obtained. By comparing the predicted probability with the prediction threshold, it is determined whether the domain name to be detected is a target type domain name. If the predicted probability is greater than the prediction threshold, the domain name to be detected is marked as a target type domain name. If the predicted probability is less than or equal to the prediction threshold, the domain name to be detected is marked as not a target type domain name.

[0104] In the embodiments of this application, a hypergraph structure is introduced to model the complex multivariate relationships between domain names without forcibly converting multivariate relationships into binary relationships, thereby preserving the original information and improving detection accuracy. At the same time, by integrating features such as domain name registration information and character information, and designing a consistency matrix, a method for expressing superpoint features, and a correlation measurement method for the domain name to be detected and the seed domain name, a high-level consistency between domain names expressed in a hypergraph is established, and multivariate information is integrated to more accurately complete domain name detection.

[0105] Based on the above domain name detection method, as shown in FIG4 , the present application also provides a domain name detection device based on a hypergraph, including: a data processing module, a hypergraph construction module, a hypergraph learning module and a domain name detection module.

[0106] a data processing module, configured to obtain a seed domain name set and a domain name to be detected, and extract domain name features of the seed domain name and the domain name to be detected, respectively, wherein the seed domain name set includes a plurality of seed domain names of known types;

[0107] A hypergraph construction module, configured to calculate the similarity between the seed domain name and the domain name to be detected based on the domain name features to construct a consistency matrix, and to construct a hypergraph based on the consistency matrix;

[0108] a hypergraph learning module, configured to perform a convolution calculation on the hypergraph to obtain a predicted probability of the domain name to be detected, wherein the predicted probability is used to represent a probability that the domain name to be detected is a target type domain name;

[0109] The domain name detection module is used to mark the domain name to be detected according to the predicted probability.

[0110] As can be seen from the above technical solutions, the present application provides a domain name detection method and device based on a hypergraph. After obtaining the domain name to be detected, the method can obtain a seed domain name set, which includes multiple seed domain names of known types, and perform feature extraction on the seed domain name and the domain name to be detected to obtain domain name features. The similarity between the seed domain name and the domain name to be detected is calculated based on the domain name features to construct a consistency matrix, and then a hypergraph is constructed based on the consistency matrix, and convolution is performed on the hypergraph to obtain the predicted probability of the domain name to be detected, and then the type of the domain name to be detected is marked. The method can perform feature fusion on features such as domain name registration information and character information, and by introducing a hypergraph structure to integrate multivariate information, model the complex multivariate relationship between domain names, and thus more accurately complete the active detection of the target type domain name. At the same time, the consistency matrix, the expression method of the super-point feature, and the related measurement method of the domain name to be detected and the seed domain name are designed to improve the detection accuracy.

Claims

1. A domain name detection method based on a hypergraph, characterized in that: include: Obtaining a seed domain name set and a domain name to be detected, wherein the seed domain name set includes a plurality of seed domain names of known types; Respectively extracting domain name features of the seed domain name and the domain name to be detected; Calculating the similarity between the seed domain name and the domain name to be detected based on the domain name features to construct a consistency matrix; Constructing a hypergraph based on the consistency matrix, and performing convolution calculation on the hypergraph to obtain a predicted probability of the domain name to be detected, wherein the predicted probability is used to characterize the probability that the domain name to be detected is a target type domain name; The domain name to be detected is marked according to the predicted probability.

2. The domain name detection method according to claim 1, characterized in that: The domain name features include domain name information features and domain name text features, the domain name information features include registrar distance, IP distance, domain name registration duration, domain name remaining validity duration, domain name status and character features, the domain name text features include character statistical features and character sequence features, and the method further includes: A feature vector of the domain name feature is generated according to the domain name information feature and the domain name character feature.

3. The domain name detection method according to claim 2, characterized in that: The method further comprises: Obtaining registrar information and IP address information of the seed domain name and the domain name to be detected; Constructing a distance matrix of registrars according to the registrar information to obtain a registrar distance; According to the IP address information, a distance matrix of the IP addresses is constructed to obtain the IP distance.

4. The domain name detection method according to claim 3, characterized in that: The method further comprises: Classifying the seed domain names and the domain names to be detected according to the registrar information to obtain a domain name set, wherein the domain name set includes the number of domain names in each registrar type; Comparing the domain name to be detected with the seed domain name; If the domain name to be detected and the seed domain name belong to the same registrar type, calculate a first distance value, where the first distance value is the reciprocal of the number of domain names corresponding to the registrar type; If the domain name to be detected and the seed domain name belong to different registrar types, calculating a second distance value, where the second distance value is a preset distance value; A distance matrix of the registrar is generated according to the first distance value and the second distance value.

5. The domain name detection method according to claim 2, characterized in that: The step of calculating the similarity between the seed domain name and the domain name to be detected based on the domain name feature includes: Calculating a characteristic distance between the domain name to be detected and the seed domain name, wherein the characteristic distance is a distance between characteristic vectors of the domain name to be detected and the seed domain name; The sum of the product of the characteristic distance and a preset coefficient is calculated to obtain the similarity between the seed domain name and the domain name to be detected, wherein the preset coefficient is obtained in advance through training.

6. The domain name detection method according to claim 5, characterized in that: The steps to construct a consistency matrix include: Calculating a consistency value based on the similarity; If the consistency value is greater than a preset consistency value, generating a consistency matrix according to the consistency value; If the consistency value is less than or equal to a preset consistency value, it is determined that the consistency matrix is ​​a preset matrix.

7. The domain name detection method according to claim 2, characterized in that: The step of constructing a hypergraph based on the consistency matrix includes: Constructing a hypergraph model, wherein the hypergraph model includes a plurality of domain name nodes, each of which is associated with a domain name; Based on the consistency matrix, a preset number of target domain name nodes are selected, where the target domain name nodes are domain name nodes whose consistency between the consistency matrix and the domain name node is greater than or equal to a consistency threshold; The domain name node and the target domain name node are connected through a hyperedge to construct a hypergraph.

8. The domain name detection method according to claim 2, characterized in that: The step of performing convolution calculation on the hypergraph to obtain the predicted probability of the domain name to be detected includes: Concatenate the feature vectors corresponding to the domain name features to generate an initial vector; Obtaining a correlation coefficient between the domain name to be detected and the seed domain name, wherein the correlation coefficient is calculated according to the adjacency matrix of the hypergraph, the degree of the hyperpoint, and the degree of the hyperedge; Calculating the sum of the products of the initial vector, the correlation coefficient and a preset parameter to obtain a super-point feature; The hypergraph convolution is iterated a preset number of times, and a prediction probability of the domain name to be detected is generated based on the super-point feature prediction.

9. The domain name detection method according to claim 1, characterized in that: The step of marking the domain name to be detected according to the predicted probability includes: Get the preset prediction threshold; comparing the predicted probability with the predicted threshold; If the prediction probability is greater than the prediction threshold, marking the domain name to be detected as a target type domain name; If the predicted probability is less than or equal to the predicted threshold, the domain name to be detected is marked as not a target type domain name.

10. A domain name detection device based on a hypergraph, characterized in that: The device comprises: A data processing module, used to obtain a seed domain name set and a domain name to be detected, and to extract domain name features of the seed domain name and the domain name to be detected respectively, wherein the seed domain name set includes a plurality of seed domain names of known types; A hypergraph construction module, used to calculate the similarity between the seed domain name and the domain name to be detected based on the domain name features to construct a consistency matrix, and to construct a hypergraph based on the consistency matrix; A hypergraph learning module, used for performing convolution calculation on the hypergraph to obtain a predicted probability of the domain name to be detected, wherein the predicted probability is used to characterize the probability that the domain name to be detected is a target type domain name; The domain name detection module is used to mark the domain name to be detected according to the predicted probability.

Citation Information

Patent Citations

  • Malicious domain name detection method and device and storage medium

    CN112019569A

  • Hypergraph structure processing method and device, equipment, medium and program product

    CN115114485A

  • APT attack clue expansion method and device based on hypergraph association

    CN115208684A

  • Hypergraph-based domain name detection method and device

    CN116389059A

  • Determining maliciousness in computer networks

    US10291645B1

Cited By

  • Casing damage prediction method based on rock mechanics theory fused with multilayer perceptron and graph convolutional neural network

    CN119357785A

  • Multimodal emotion recognition method based on hypergraph hierarchical contrast learning

    CN119739990A

  • Key feature extraction-based DGA domain name active detection method and system

    CN120415908A