Method, device and computer readable storage medium for determining abnormal domain name

By collecting the domain name and access time of IP addresses, dividing IP combinations and clustering domain name clusters, and utilizing domain name access behavior characteristics, the problem of low detection efficiency in existing technologies is solved, and efficient and accurate abnormal domain name detection is achieved.

CN117439966BActive Publication Date: 2026-11-24HILLSTONE NETWORKS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311451950.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-02
Publication Date
2026-11-24
Estimated Expiration
2043-11-02

AI Technical Summary

Technical Problem

Existing technologies, when detecting C&C server domains, only focus on domain characteristics while ignoring access patterns, resulting in low detection efficiency and susceptibility to deception, making it difficult to identify abnormal domains that do not possess typical domain characteristics.

Method used

By collecting the domain name and access time of IP addresses, we can divide IP combinations and cluster domain name clusters, and use domain name access behavior characteristics to identify abnormal domain names, including spectral density analysis and similarity calculation.

Benefits of technology

It achieves accurate detection of abnormal domain names with limited data, improves detection efficiency and accuracy, and avoids neural network models that rely on a large amount of training data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117439966B_ABST
    Figure CN117439966B_ABST
Patent Text Reader

Abstract

This application discloses a method, apparatus, and computer-readable storage medium for determining abnormal domain names. The method includes: collecting the target domain name accessed by each of N IPs within a preset time period and the access time of each IP to the target domain name; dividing the N IPs into at least one IP group based on the target domain name accessed by each IP and the access time of each IP to the target domain name, wherein the similarity of the domain name access behavior characteristics corresponding to at least two IPs in each IP group is greater than a first threshold; clustering the target domain names corresponding to all IPs in each IP group into at least one domain name cluster, wherein the similarity of the IP sequences corresponding to at least two target domain names in each domain name cluster is greater than a second threshold; and determining the abnormal domain name based on the access time interval and the number of times the target domain names in the domain name cluster are accessed. This application solves the technical problem of low efficiency in detecting abnormal domain names such as C&C server domain names in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the fields of network technology and information security, and more specifically, to a method, apparatus, and computer-readable storage medium for determining abnormal domain names. Background Technology

[0002] In existing technologies, when detecting abnormal domains such as C&C (command and control) server domains, the usual approach is to extract features of the domain itself based on domain characteristics, such as domain length, character disorder, and the proportion of vowels in the domain. Then, a large number of C&C server domains are collected as negative sample data, and a corresponding number of legitimate domains are collected as positive sample data based on the number of negative samples. The negative and positive sample data are then used to train a machine learning classification model, and finally, the trained model is used to determine whether a domain is a normal domain.

[0003] However, existing abnormal domain name detection methods only consider the characteristics of the domain name itself, ignoring the patterns of domain name access. Furthermore, the performance of machine learning models is affected by the quality of the training data and the selected data features. Once domain name features are known, there is a risk of them being bypassed, causing the classifier to make misjudgments. For example, in random domain name generation algorithms, words containing semantic information can be used to deceive the classifier. Additionally, domain name feature-based detection methods mainly target domains with distinct characteristics compared to normal domains, ignoring C&C server domains that are similar to normal domains. Therefore, the range of identified samples is limited, making it difficult to discover domains lacking typical domain name characteristics.

[0004] There is currently no effective solution to the above problems. Summary of the Invention

[0005] This application provides a method, apparatus, and computer-readable storage medium for determining abnormal domain names, so as to at least solve the technical problem of low detection efficiency of abnormal domain names such as C&C server domain names in the prior art.

[0006] According to one aspect of this application, a method for determining abnormal domain names is provided, comprising: collecting the target domain name accessed by each of N IPs within a preset time period and the access time of each IP to the target domain name; dividing the N IPs into at least one IP combination based on the target domain name accessed by each IP and the access time of each IP to the target domain name, wherein the similarity of the domain name access behavior characteristics corresponding to at least two IPs in each IP combination is greater than a first threshold; clustering the target domain names corresponding to all IPs in each IP combination into at least one domain name cluster, wherein the similarity of the IP sequences corresponding to at least two target domain names in each domain name cluster is greater than a second threshold; and determining the abnormal domain name based on the access time interval and the number of times the target domain names in the domain name cluster are accessed.

[0007] Optionally, the method for determining abnormal domain names further includes: obtaining all domain names corresponding to N IPs from DNS traffic within a preset time period, wherein all domain names corresponding to N IPs include at least the target domain name accessed by each of the N IPs; deleting domain names that meet preset conditions from all domain names corresponding to N IPs to obtain the target domain name accessed by each of the N IPs, wherein the preset conditions are used to characterize domain names that have been determined to be normal domain names and / or do not have the characteristics of known abnormal domain names.

[0008] Optionally, the method for determining abnormal domain names further includes: determining the domain name access time sequence corresponding to each IP based on the access time of the target domain name; determining the temporal similarity between any two IPs among N IPs based on the domain name access time sequence corresponding to each IP; determining the domain name sequence corresponding to each IP based on the target domain name accessed by each IP; determining the set of accessed domain names corresponding to each IP and the number of times each IP accesses each domain name in its corresponding set of accessed domain names based on the domain name sequence corresponding to each IP; determining the spatial similarity between any two IPs among N IPs based on the set of accessed domain names corresponding to each IP and the number of times each IP accesses each domain name in its corresponding set of accessed domain names; and dividing the N IPs into at least one IP combination based on the spatial similarity and temporal similarity between any two IPs among N IPs.

[0009] Optionally, the method for determining abnormal domain names further includes: taking the domain name access time series corresponding to each IP as the time signal corresponding to that IP; performing spectral density analysis on the time signal corresponding to each IP to obtain the frequency spectrum corresponding to each IP; taking the period value corresponding to the peak value in the frequency spectrum corresponding to each IP as the domain name access time feature corresponding to that IP; and taking the feature similarity of the domain name access time features corresponding to any two IPs out of N IPs as the time similarity between those two IPs.

[0010] Optionally, the method for determining abnormal domain names further includes: determining the number of identical domain names accessed by any two IPs among the N IPs based on the access domain name set corresponding to each IP; determining the number of times any two IPs among the N IPs access the same domain name based on the number of times each IP accesses each domain name in its corresponding access domain name set; and determining the spatial similarity between any two IPs based on the number of identical domain names accessed by any two IPs and the number of times the same domain name is accessed.

[0011] Optionally, the method for determining abnormal domain names further includes: performing a weighted summation of the spatial similarity and temporal similarity between any two IPs to obtain the total similarity between the two IPs; and grouping two IPs with a total similarity greater than a first threshold into the same IP combination to obtain at least one IP combination.

[0012] Optionally, the method for determining abnormal domain names further includes: sorting all target domain names corresponding to all IPs in each IP combination according to access time to obtain the domain name sequence corresponding to the IP combination; obtaining the IP sequences corresponding to each pair of adjacent target domain names in the domain name sequence corresponding to each IP combination; calculating the ratio of the intersection and union of the IP sequences corresponding to each pair of adjacent target domain names to obtain the similarity of the IP sequences corresponding to the two adjacent target domain names; and clustering all target domain names corresponding to all IPs in each IP combination into at least one domain name cluster based on the similarity between the IP sequences corresponding to each pair of adjacent target domain names in the domain name sequence corresponding to each IP combination, wherein each domain name cluster includes at least two adjacent target domain names, and the similarity of the IP sequences corresponding to at least two target domain names in each domain name cluster is greater than a second threshold.

[0013] Optionally, the method for determining abnormal domain names further includes: calculating the standard deviation of the access time interval and the standard deviation of the number of accesses among the target domain names in the domain name cluster; if the standard deviation of the access time interval among the target domain names in the domain name cluster is less than a first preset standard deviation, and the standard deviation of the number of accesses among the target domain names in the domain name cluster is less than a second preset standard deviation, then the target domain name in the domain name cluster is determined to be an abnormal domain name.

[0014] According to another aspect of this application, an apparatus for determining abnormal domain names is also provided, comprising: a collection unit for collecting the target domain name accessed by each of N IPs within a preset time period and the access time of each IP to the target domain name; a division unit for dividing the N IPs into at least one IP combination based on the target domain name accessed by each IP and the access time of each IP to the target domain name, wherein the similarity of the domain name access behavior characteristics corresponding to at least two IPs in each IP combination is greater than a first threshold; a clustering unit for clustering the target domain names corresponding to all IPs in each IP combination into at least one domain name cluster, wherein the similarity of the IP sequences corresponding to at least two target domain names in each domain name cluster is greater than a second threshold; and a determination unit for determining abnormal domain names based on the access time interval and the number of times the target domain names in the domain name cluster are accessed.

[0015] According to another aspect of this application, a computer-readable storage medium is also provided, wherein a computer program is stored in the computer-readable storage medium, and a method for determining the abnormal domain name that controls the device where the computer-readable storage medium is located to execute any of the above-mentioned items is provided when the computer program is running.

[0016] As described above, the proposed solution employs a method of first dividing IP addresses into groups and then further determining domain name clusters. First, it collects the target domain names accessed by each of N IP addresses within a preset time period, along with the access time of each IP address to the target domain name. Then, based on the target domain names accessed by each IP address and the access time of each IP address to the target domain name, the N IP addresses are divided into at least one IP group. Within each IP group, the similarity of the domain name access behavior characteristics corresponding to at least two IP addresses is greater than a first threshold. Subsequently, the target domain names corresponding to all IP addresses in each IP group are clustered into at least one domain name cluster. Within each domain name cluster, the similarity of the IP sequences corresponding to at least two target domain names is greater than a second threshold. Finally, abnormal domain names are determined based on the access time interval and the number of times the target domain names within the domain name clusters are accessed.

[0017] As can be seen from the above, the solution of this application can achieve the detection function of abnormal domains such as C&C server domains under limited traffic data. Compared with the prior art, the technical solution provided by this application only requires data including IP, domain name, and domain access time information within a certain period. Therefore, the technical solution of this application provides a lightweight data processing function, which does not require the preparation of a large amount of training data to train the relevant neural network model. In addition, this application adopts a strategy of first dividing IP groups and then further determining domain name clusters, making full use of the temporal and spatial characteristics of domain name access sequences (i.e., the domain name access behavior characteristics corresponding to IPs), thereby achieving the technical effect of more accurately locating abnormal domains based on domain name access behavior characteristics.

[0018] Therefore, the technical solution of this application achieves the goal of accurately identifying abnormal domain names using a small amount of data, thereby improving the efficiency and accuracy of abnormal domain name detection and solving the technical problem of low detection efficiency for abnormal domain names such as C&C server domain names in the prior art. Attached Figure Description

[0019] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:

[0020] Figure 1 This is a flowchart of an optional method for determining abnormal domain names according to an embodiment of this application;

[0021] Figure 2 This is a flowchart of another optional method for determining abnormal domain names according to an embodiment of this application;

[0022] Figure 3 This is a flowchart of an optional method for dividing N IPs into at least one IP combination according to an embodiment of this application;

[0023] Figure 4 This is a schematic diagram illustrating another optional method for determining an IP combination according to an embodiment of this application;

[0024] Figure 5 This is a flowchart illustrating an optional clustering method for obtaining domain name clusters according to an embodiment of this application;

[0025] Figure 6 This is a schematic diagram of an optional abnormal domain name determination device according to an embodiment of this application;

[0026] Figure 7 This is a schematic diagram of an electronic device according to an embodiment of this application. Detailed Implementation

[0027] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0028] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0029] Example 1

[0030] According to an embodiment of this application, an embodiment of a method for determining abnormal domain names is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0031] Figure 1 This is a flowchart of an optional method for determining abnormal domain names according to an embodiment of this application, such as... Figure 1 As shown, the method includes the following steps:

[0032] Step S101: Collect the target domain name accessed by each of the N IPs within a preset time period, as well as the access time of each IP to the target domain name.

[0033] In one optional embodiment, an abnormal domain name detection system (hereinafter referred to as the detection system) can serve as the execution subject of an abnormal domain name determination method in this application embodiment. The detection system can be a software system or an embedded system combining software and hardware.

[0034] Optionally, the above-mentioned preset time period can be customized, for example, one day, one week, or one month.

[0035] Optionally, the detection system can collect network traffic (e.g., DNS traffic) corresponding to N IPs within a preset time period, and then extract the IP address, the domain name accessed by each IP, and the time information of the accessed domain name (e.g., timestamp).

[0036] Step S102: Divide the N IPs into at least one IP group based on the target domain name accessed by each IP and the access time of each IP to the target domain name.

[0037] In step S102, the similarity of the domain name access behavior characteristics corresponding to at least two IPs in each IP combination is greater than the first threshold.

[0038] Optionally, the domain name access behavior characteristics corresponding to each IP address include, but are not limited to, the temporal and spatial characteristics of that IP address. The temporal characteristics of each IP address are calculated using the timestamp sequence of the domain names accessed by that IP address, and are used to characterize the temporal information of the IP address when accessing the domain names. The spatial characteristics of each IP address are calculated using the sequence of domain names accessed by that IP address, and are used to characterize the number of domain names accessed by that IP address within a preset time period, the domain name, the number of times each domain name was accessed, and other characteristic information.

[0039] Optionally, for any two IPs out of the N IPs, the detection system will detect the similarity of the domain name access behavior characteristics corresponding to the two IPs. If the similarity of the domain name access behavior characteristics corresponding to the two IPs is greater than a preset first threshold, the detection system will classify the two IPs into the same IP group; if the similarity of the domain name access behavior characteristics corresponding to the two IPs is greater than the preset first threshold, the detection system will not classify the two IPs into the same IP group. Finally, the detection system will classify the N IPs into at least one IP group, wherein at least two IPs in each IP group have a similarity of domain name access behavior characteristics greater than the first threshold.

[0040] Step S103: Cluster the target domain names corresponding to all IPs in each IP combination into at least one domain name cluster.

[0041] In step S103, the similarity of the IP sequences corresponding to at least two target domains in each domain cluster is greater than the second threshold.

[0042] Optionally, assume that IP combination 1 includes two IPs, namely IP(1) and IP(2), wherein the domain names corresponding to IP(1) are: domain name 1, domain name 2, and domain name 3; and the domain names corresponding to IP(2) are: domain name 2, domain name 3, and domain name 4. That is, the domain names corresponding to IP(1) and IP(2) include: domain name 1, domain name 2, domain name 3, and domain name 4.

[0043] Optionally, the detection system can perform clustering operations on the four domains corresponding to IP(1) and IP(2). The clustering operation is used to group domains whose corresponding IP sequences have a similarity greater than a second threshold into a single domain cluster. For example, the IP sequence corresponding to domain 1 is: IP(1), IP(2), IP(3); the IP sequence corresponding to domain 2 is: IP(1), IP(2), IP(3). It is evident that the IP sequences corresponding to domain 1 and domain 2 are completely identical and must exceed the preset second threshold. Therefore, domain 1 and domain 2 can be clustered into the same domain cluster. It should be noted that the IP sequence is a sequence ordered based on the time the IP accesses the domain.

[0044] Step S104: Determine the abnormal domain name based on the access time interval and the number of times the target domain name in the domain name cluster is accessed.

[0045] In step S104, after clustering the target domains corresponding to all IPs in each IP combination into at least one domain cluster, for each domain cluster, the detection system determines abnormal domains based on the access time interval and the number of times the target domains in each domain cluster are accessed. Abnormal domains include, but are not limited to, domains with security vulnerabilities and information leakage risks, such as C&C server domains.

[0046] The following is a brief introduction to C&C server domain names.

[0047] C&C servers typically exist in anomalous network environments, which threaten cybersecurity. An anomalous network environment usually consists of a C&C server and several hosts with malicious software deployed. The C&C server sends commands to these hosts and receives information from them. The victim host initiates a C&C server domain name lookup to obtain the C&C server address, thus establishing communication for further attacks. Because hardcoding the C&C server address into malware is easily cracked by security personnel, rendering the entire anomalous network environment ineffective, hosts with malicious software typically locate the C&C server by querying a DNS server to communicate with it. Therefore, C&C server domain name query behavior can be detected by filtering host domain name queries.

[0048] However, to evade detection, malicious programs use domain name randomization algorithms to generate a large number of random domain names to evade domain name blacklist filtering methods, or they constantly change the mapping relationship between server domain names and IP addresses to conceal the real C&C server address. However, abnormal network activity leaves traces in DNS traffic. Since the behavior of hosts deploying malicious software querying C&C domain names is controlled by malicious programs, these hosts' domain name query behavior usually has different characteristics than normal hosts' domain name queries. Human domain name queries are more random, and the C&C domain names queried by these hosts deploying malicious software will also have some overlap and similar periodic query behavior. Therefore, by analyzing DNS traffic, it is possible to identify host access behavior suspected of querying C&C domain names.

[0049] Based on the above analysis, this application proposes steps S101 to S104, which analyze the target domain name accessed by each of the N IPs in the DNS traffic of the host and the access time of each IP to the target domain name, detect the IP address of the network host suspected of deploying threat software and the corresponding suspicious domain name, and provide threat intelligence to relevant analysts for further analysis.

[0050] As can be seen from the above, the solution of this application can achieve the detection function of abnormal domains such as C&C server domains under limited traffic data. Compared with the prior art, the technical solution provided by this application only requires data including IP, domain name, and domain access time information within a certain period. Therefore, the technical solution of this application provides a lightweight data processing function, which does not require the preparation of a large amount of training data to train the relevant neural network model. In addition, this application adopts a strategy of first dividing IP groups and then further determining domain name clusters, making full use of the temporal and spatial characteristics of domain name access sequences (i.e., the domain name access behavior characteristics corresponding to IPs), thereby achieving the technical effect of more accurately locating abnormal domains based on domain name access behavior characteristics.

[0051] Therefore, the technical solution of this application achieves the goal of accurately identifying abnormal domain names using a small amount of data, thereby improving the efficiency and accuracy of abnormal domain name detection and solving the technical problem of low detection efficiency for abnormal domain names such as C&C server domain names in the prior art.

[0052] In one optional embodiment, the detection system can obtain all domain names corresponding to N IPs from DNS traffic within a preset time period, wherein the domain names corresponding to the N IPs include at least the target domain name accessed by each of the N IPs. Then, the detection system deletes domain names from the domain names corresponding to the N IPs that meet preset conditions, obtaining the target domain name accessed by each of the N IPs. The preset conditions are used to characterize domain names that have been identified as normal domain names and / or do not possess the characteristics of known abnormal domain names.

[0053] Optionally, when collecting DNS traffic, the detection system can obtain all domain names corresponding to N IPs. Then, to reduce computational load and minimize the impact of irrelevant domain names on subsequent data processing steps, traffic can be filtered based on preset conditions. This primarily filters out domain names with weak access characteristics to C&C server domains (i.e., domain names lacking known abnormal domain characteristics), such as domains that are accessed frequently. Simultaneously, it is also necessary to filter out domain names in the target list, which records domain names identified as normal.

[0054] Optionally, such as Figure 2 As shown, this application provides a C&C server domain name discovery method based on DNS traffic data analysis. Based on the different access behaviors between network hosts deploying threat software and normal hosts accessing C&C server domain names, the method collects DNS traffic over a period of time to obtain diverse host IPs, the domain names accessed by these IPs, the number of times these domain names are accessed, and the time information of these accesses. To reduce computational load and minimize the impact of irrelevant domain names on subsequent data processing steps, domain name filtering can be performed first according to preset conditions to obtain the target domain name corresponding to each IP. Based on the target domain name corresponding to each IP, the number of times each IP accesses the target domain name, and the time information of the accesses, the similarity between different IPs is analyzed, and all collected IPs are divided into at least one IP combination based on the similarity between different IPs. Furthermore, if the IPs in an IP combination have similar domain name access behaviors, then that IP combination is considered a suspicious IP combination. Further, from the domain name access sequence corresponding to each IP combination, a corresponding suspicious domain name cluster can be extracted.

[0055] Based on the above process, we can obtain IP combinations with temporal and spatial correlations and their corresponding suspicious domain names (i.e., abnormal domain names).

[0056] In one alternative embodiment, Figure 3 This is a flowchart illustrating an optional method of dividing N IPs into at least one IP combination according to an embodiment of this application, such as... Figure 3 As shown, it includes the following steps:

[0057] Step S301: Determine the domain name access time sequence corresponding to each IP based on the access time of each IP to the target domain name.

[0058] For example, if IP(1) accesses the target domain name at time T1, time T2 and time T3 respectively, then the domain name access time sequence corresponding to IP(1) is [T1, T2, T3].

[0059] Step S302: Determine the time similarity between any two IPs among the N IPs based on the domain name access time series corresponding to each IP.

[0060] Step S303: Determine the domain name sequence corresponding to each IP based on the target domain name accessed by each IP.

[0061] For example, sorted by access time, the domain name sequence corresponding to IP (1) is [domain name 1, domain name 2, domain name 3]; the domain name sequence corresponding to IP (2) is [domain name 2, domain name 3, domain name 4]; and the domain name sequence corresponding to IP (3) is [domain name 2, domain name 3, domain name 4, domain name 2, domain name 3].

[0062] Step S304: Determine the set of access domains corresponding to each IP and the number of times each IP accesses each domain in the set of access domains corresponding to it, based on the domain name sequence corresponding to each IP.

[0063] Optionally, taking the above IP (3) as an example, the set of access domains corresponding to IP (3) includes: domain 2, domain 3, and domain 4. IP (3) accesses domain 2 twice, domain 3 twice, and domain 4 once.

[0064] Step S305: Determine the spatial similarity between any two IPs among the N IPs based on the set of access domains corresponding to each IP and the number of times the IP accesses each domain in its corresponding set of access domains.

[0065] Step S306: Divide the N IPs into at least one IP combination based on the spatial similarity and temporal similarity between any two IPs.

[0066] Optionally, in step S302 above, the detection system can use the domain name access time series corresponding to each IP as the time signal corresponding to that IP, and then perform spectral density analysis on the time signal corresponding to each IP to obtain the frequency spectrum corresponding to each IP. Subsequently, the detection system uses the period value corresponding to the peak value in the frequency spectrum corresponding to each IP as the domain name access time feature corresponding to that IP, and uses the feature similarity of the domain name access time features corresponding to any two IPs out of N IPs as the time similarity between those two IPs.

[0067] Optionally, the time feature corresponding to each IP can be calculated by the timestamp sequence when the IP accesses the domain name. The detection system can use the timestamp sequence as a time signal to perform spectral density analysis to obtain the frequency spectrum corresponding to the IP. Then, the detection system extracts the period value corresponding to the peak value in the frequency spectrum and uses the period value as the time feature corresponding to this IP.

[0068] Optionally, the detection system can perform Euclidean distance similarity calculation or cosine similarity calculation on the temporal features corresponding to different IPs, thereby obtaining the feature similarity of temporal features between different IPs.

[0069] Optionally, in step S305 above, the detection system can determine the number of times any two IPs among the N IPs access the same domain name based on the access domain name set corresponding to each IP, and determine the number of times any two IPs among the N IPs access the same domain name based on the number of times each IP accesses each domain name in its corresponding access domain name set. Finally, the detection system determines the spatial similarity between any two IPs based on the number of times any two IPs access the same domain name and the number of times they access the same domain name.

[0070] Optionally, the spatial similarity for each IP address is calculated from the sequence of domain names accessed by that IP. The specific steps include: extracting the number of times the IP accesses a domain name and the set of domain names accessed by that IP (i.e., the set of domain names accessed by that IP and the number of times that IP accesses each domain name in that set); selecting the intersection of the domain name sets of any two IP addresses to obtain the number of identical domain names accessed by these two IP addresses and the number of times the same domain name is accessed. Finally, the detection system determines the spatial similarity between any two selected IP addresses based on the number of identical domain names accessed and the number of times the same domain name is accessed. The more common domain names accessed by any two IP addresses and the more consistent the number of times the same domain name is accessed, the greater the spatial similarity between the two IP addresses.

[0071] Optionally, in step S306 above, the detection system can perform a weighted summation of the spatial similarity and temporal similarity between any two IPs to obtain the total similarity between the two IPs. Then, the detection system can group two IPs with a total similarity greater than the first threshold into the same IP combination to obtain at least one IP combination.

[0072] Optionally, the total similarity between any two IPs is the similarity of the domain name access behavior characteristics of those two IPs. A higher total similarity between different IPs indicates that these IPs have more similar domain name access behavior characteristics.

[0073] In one alternative embodiment, Figure 4 This is a schematic diagram illustrating another optional method for determining IP combinations according to an embodiment of this application, such as... Figure 4 As shown, the detection system first extracts the domain name sequence corresponding to each of the N IPs. Then, based on the domain name sequence corresponding to each IP, it determines the spatial and temporal similarity between different IPs among the N IPs. The total similarity between different IPs is determined by weighted summation of the spatial and temporal similarities. Subsequently, the detection system can construct a corresponding IP similarity graph, using IPs as nodes and the total similarity between IPs as the edge weights. Finally, it uses community detection methods, graph clustering algorithms, or node clustering after graph embedding to obtain several IP combinations with similar access behaviors.

[0074] In one optional embodiment, the detection system can sort all target domain names corresponding to all IPs in each IP combination according to access time to obtain the domain name sequence corresponding to the IP combination. Then, it can obtain the IP sequence corresponding to each pair of adjacent target domain names in the domain name sequence corresponding to each IP combination, and calculate the ratio of the intersection and union of the IP sequences corresponding to each pair of adjacent target domain names to obtain the similarity of the IP sequences corresponding to the two adjacent target domain names.

[0075] Finally, based on the similarity between the IP sequences corresponding to each pair of adjacent target domains in the domain sequence corresponding to each IP combination, the detection system clusters all the target domains corresponding to all IPs in each IP combination into at least one domain cluster. Each domain cluster includes at least two adjacent target domains, and the similarity between the IP sequences corresponding to at least two target domains in each domain cluster is greater than a second threshold.

[0076] Optionally, assume that IP combination 1 includes two IPs, namely IP(1) and IP(2), where the domain names corresponding to IP(1) are: domain name 1, domain name 2, and domain name 3; and the domain names corresponding to IP(2) are: domain name 2, domain name 3, and domain name 4. That is, the domain names corresponding to IP(1) and IP(2) include: domain name 1, domain name 2, domain name 3, and domain name 4. According to the access time, the domain name sequence corresponding to IP combination 1 is [domain name 1, domain name 2, domain name 3, domain name 4].

[0077] In addition, for the adjacent domain name 1 and domain name 2 in the above domain name sequence, assuming that the IP sequence corresponding to domain name 1 is: [IP(1), IP(2), IP(3)]; and the IP sequence corresponding to domain name 2 is: [IP(1), IP(2), IP(3)], the similarity of the corresponding IP sequences can be obtained by calculating the ratio of the intersection and union of the two IP sequences.

[0078] Optionally, Figure 5 This is a flowchart illustrating an optional clustering method for obtaining domain name clusters according to an embodiment of this application, such as... Figure 5 As shown, for each IP combination, firstly, all target domain names corresponding to all IPs in the IP combination are sorted according to the time of IP access to the domain name to obtain the domain name sequence corresponding to the IP combination. Then, the similarity between adjacent domain names is obtained by calculating the ratio of the intersection to the union of the IP sequences accessed by adjacent domain names in the domain name sequence.

[0079] Subsequently, each domain name in the domain name sequence is treated as a node, the connection between domain names is treated as an edge, and the domain name similarity is treated as the weight of the edge. The domain name sequence is aggregated to construct an initial domain name graph. Then, by setting a custom domain name similarity threshold (i.e., the second threshold), the edges with domain name similarity less than the second threshold in the initial domain name graph are cut to obtain the target domain name graph. Finally, the domain name clusters are composed of the domain names that still have connections in the target domain name graph.

[0080] In one optional embodiment, the detection system can calculate the standard deviation of the access time interval and the standard deviation of the number of accesses among the target domains in the domain cluster. If the standard deviation of the access time interval among the target domains in the domain cluster is less than a first preset standard deviation and the standard deviation of the number of accesses among the target domains in the domain cluster is less than a second preset standard deviation, the target domains in the domain cluster are determined to be abnormal domains.

[0081] Optionally, such as Figure 5 As shown, for each domain cluster in at least one domain cluster, the detection system calculates the standard deviation of the access time interval and the standard deviation of the number of accesses among the domains in the domain cluster. These two standard deviations are used to measure the access consistency among the domains in the domain cluster, thereby further identifying domain clusters that may contain anomalous domains. Specifically, assuming the standard deviation of the access time interval between target domains in the generated domain cluster A-1 is less than a first preset standard deviation, and the standard deviation of the number of accesses among target domains in domain cluster A-1 is less than a second preset standard deviation, then the detection system determines that the target domains contained in domain cluster A-1 are anomalous domains. If the standard deviation of the access time interval between target domains in the generated domain cluster A-2 is greater than or equal to the first preset standard deviation, and / or, the standard deviation of the number of accesses among target domains in domain cluster A-2 is greater than or equal to the second preset standard deviation, then the detection system determines that the target domains contained in domain cluster A-2 are not anomalous domains.

[0082] Optionally, the technical solution of this application is applicable to network security protection products that can collect DNS traffic with IP diversity and process threat intelligence, such as endpoint detection and response software, intrusion detection systems, etc.

[0083] The solution proposed in this application enables the detection of C&C server domain names with limited DNS traffic data, providing threat intelligence on suspected C&C server domain name access behavior. The required information only includes IP addresses, domain names, and timestamps over a specific period. Therefore, this application effectively provides a lightweight data processing function, eliminating the need for extensive pre-prepared training data. Furthermore, this application employs a strategy of first locating IP combinations and then further extracting domain name clusters, fully utilizing the temporal and spatial characteristics of IP addresses when accessing domain names. This achieves a more accurate technical effect of locating abnormal domain names based on domain name access behavior characteristics.

[0084] Example 2

[0085] This embodiment provides an optional device for determining abnormal domain names, wherein each implementation unit / module in the device corresponds to each implementation step in Embodiment 1.

[0086] Figure 6 This is a schematic diagram of an optional abnormal domain name determination device according to an embodiment of this application, such as... Figure 6 As shown, it includes: a data acquisition unit 601, a partitioning unit 602, a clustering unit 603, and a determination unit 604.

[0087] The system includes: a collection unit 601, used to collect the target domain name accessed by each of N IPs within a preset time period and the access time of each IP to the target domain name; a division unit 602, used to divide the N IPs into at least one IP combination based on the target domain name accessed by each IP and the access time of each IP to the target domain name, wherein the similarity of the domain name access behavior characteristics corresponding to at least two IPs in each IP combination is greater than a first threshold; a clustering unit 603, used to cluster the target domain names corresponding to all IPs in each IP combination into at least one domain name cluster, wherein the similarity of the IP sequences corresponding to at least two target domain names in each domain name cluster is greater than a second threshold; and a determination unit 604, used to determine abnormal domain names based on the access time interval and the number of times the target domain names in the domain name cluster are accessed.

[0088] Optionally, the above-mentioned preset time period can be customized, for example, one day, one week, or one month.

[0089] Optionally, the device for identifying abnormal domain names can collect network traffic (e.g., DNS traffic) corresponding to N IPs within a preset time period, and then extract the IP address, the domain name accessed by each IP, and the time information (e.g., timestamp) of the accessed domain name.

[0090] Optionally, the domain name access behavior characteristics corresponding to each IP address include, but are not limited to, the temporal and spatial characteristics of that IP address. The temporal characteristics of each IP address are calculated using the timestamp sequence of the domain names accessed by that IP address, and are used to characterize the temporal information of the IP address when accessing the domain names. The spatial characteristics of each IP address are calculated using the sequence of domain names accessed by that IP address, and are used to characterize the number of domain names accessed by that IP address within a preset time period, the domain name, the number of times each domain name was accessed, and other characteristic information.

[0091] Optionally, for any two IPs out of the N IPs, the abnormal domain name determination device will detect the similarity of the domain name access behavior characteristics corresponding to the two IPs. If the similarity of the domain name access behavior characteristics corresponding to the two IPs is greater than a preset first threshold, the abnormal domain name determination device will classify the two IPs into the same IP combination; if the similarity of the domain name access behavior characteristics corresponding to the two IPs is greater than the preset first threshold, the abnormal domain name determination device will not classify the two IPs into the same IP combination. Finally, the abnormal domain name determination device will classify the N IPs into at least one IP combination, wherein at least two IPs in each IP combination have a similarity of domain name access behavior characteristics greater than the first threshold.

[0092] Optionally, assume that IP combination 1 includes two IPs, namely IP(1) and IP(2), wherein the domain names corresponding to IP(1) are: domain name 1, domain name 2, and domain name 3; and the domain names corresponding to IP(2) are: domain name 2, domain name 3, and domain name 4. That is, the domain names corresponding to IP(1) and IP(2) include: domain name 1, domain name 2, domain name 3, and domain name 4.

[0093] Optionally, the device for determining abnormal domain names can perform a clustering operation on the four domain names corresponding to IP (1) and IP (2). The clustering operation is used to cluster domain names whose corresponding IP sequences have a similarity greater than a second threshold into a single domain name cluster. For example, the IP sequence corresponding to domain name 1 is: IP (1), IP (2), IP (3); the IP sequence corresponding to domain name 2 is: IP (1), IP (2), IP (3). It can be seen that the IP sequences corresponding to domain names 1 and 2 are completely identical and must be greater than the preset second threshold. Therefore, domain names 1 and 2 can be clustered into the same domain name cluster. It should be noted that the IP sequence is a sequence ordered based on the time the IP accesses the domain name.

[0094] Optionally, after clustering the target domains corresponding to all IPs in each IP combination into at least one domain cluster, for each domain cluster, the abnormal domain identification device determines the abnormal domain based on the access time interval and the number of times the target domains in each domain cluster are accessed. The abnormal domains include, but are not limited to, domains with security vulnerabilities and information leakage risks, such as C&C server domains.

[0095] As can be seen from the above, the solution of this application can achieve the detection function of abnormal domains such as C&C server domains under limited traffic data. Compared with the prior art, the technical solution provided by this application only requires data including IP, domain name, and domain access time information within a certain period. Therefore, the technical solution of this application provides a lightweight data processing function, which does not require the preparation of a large amount of training data to train the relevant neural network model. In addition, this application adopts a strategy of first dividing IP groups and then further determining domain name clusters, making full use of the temporal and spatial characteristics of domain name access sequences (i.e., the domain name access behavior characteristics corresponding to IPs), thereby achieving the technical effect of more accurately locating abnormal domains based on domain name access behavior characteristics.

[0096] Therefore, the technical solution of this application achieves the goal of accurately identifying abnormal domain names using a small amount of data, thereby improving the efficiency and accuracy of abnormal domain name detection and solving the technical problem of low detection efficiency for abnormal domain names such as C&C server domain names in the prior art.

[0097] Optionally, the acquisition unit 601 includes a first acquisition subunit and a deletion subunit. The first acquisition subunit is used to acquire all domain names corresponding to N IPs from DNS traffic within a preset time period, wherein the domain names corresponding to the N IPs include at least the target domain name accessed by each of the N IPs. The deletion subunit is used to delete domain names that meet preset conditions from the domain names corresponding to the N IPs, thereby obtaining the target domain name accessed by each of the N IPs, wherein the preset conditions are used to characterize domain names that have been identified as normal domain names and / or do not possess the characteristics of known abnormal domain names.

[0098] Optionally, when collecting DNS traffic, the abnormal domain identification device can obtain all domain names corresponding to N IPs. Subsequently, to reduce computational load and minimize the impact of irrelevant domain names on subsequent data processing steps, traffic can be filtered according to preset conditions. This primarily filters out domain names with weak C&C server access characteristics (i.e., domain names lacking known abnormal domain name characteristics), such as domain names that are accessed frequently. Simultaneously, it is also necessary to filter out domain names in the target list, which records domain names already identified as normal.

[0099] Optionally, the partitioning unit 602 includes: a first determining subunit, a second determining subunit, a third determining subunit, a fourth determining subunit, a fifth determining subunit, and a sixth determining subunit. The first determining subunit is used to determine the domain name access time sequence corresponding to each IP based on the access time of the target domain name for that IP; the second determining subunit is used to determine the temporal similarity between any two IPs among the N IPs based on the domain name access time sequence corresponding to each IP; the third determining subunit is used to determine the domain name sequence corresponding to each IP based on the target domain name accessed by that IP; the fourth determining subunit is used to determine the set of accessed domain names corresponding to each IP and the number of times the IP accesses each domain name in its corresponding set of accessed domain names based on the domain name sequence corresponding to each IP; the fifth determining subunit is used to determine the spatial similarity between any two IPs among the N IPs based on the set of accessed domain names corresponding to each IP and the number of times the IP accesses each domain name in its corresponding set of accessed domain names; and the sixth determining subunit is used to partition the N IPs into at least one IP combination based on the spatial and temporal similarity between any two IPs among the N IPs.

[0100] Optionally, the second determining subunit includes: a first processing module, a second processing module, a third processing module, and a fourth processing module. The first processing module is used to treat the domain name access time series corresponding to each IP as the time signal corresponding to that IP; the second processing module is used to perform spectral density analysis on the time signal corresponding to each IP to obtain a frequency spectrum for each IP; the third processing module is used to treat the period value corresponding to the peak value in the frequency spectrum corresponding to each IP as the domain name access time feature corresponding to that IP; and the fourth processing module is used to treat the feature similarity of the domain name access time features corresponding to any two IPs out of N IPs as the time similarity between those two IPs.

[0101] Optionally, the abnormal domain name determination device can use the domain name access time series corresponding to each IP as the time signal corresponding to that IP, and then perform spectral density analysis on the time signal corresponding to each IP to obtain the frequency spectrum corresponding to each IP. Subsequently, the abnormal domain name determination device uses the period value corresponding to the peak value in the frequency spectrum corresponding to each IP as the domain name access time feature corresponding to that IP, and uses the feature similarity of the domain name access time features corresponding to any two IPs out of N IPs as the time similarity between those two IPs.

[0102] Optionally, the time feature corresponding to each IP is calculated by the timestamp sequence when the IP accesses the domain name. The abnormal domain name determination device can use the timestamp sequence as a time signal to perform spectral density analysis to obtain the frequency spectrum corresponding to the IP. Then, the abnormal domain name determination device extracts the period value corresponding to the peak value in the frequency spectrum and uses the period value as the time feature corresponding to this IP.

[0103] Optionally, the device for determining abnormal domain names can perform Euclidean distance similarity calculation or cosine similarity calculation on the time features corresponding to different IPs, thereby obtaining the feature similarity of time features between different IPs.

[0104] Optionally, the fifth determining subunit includes: a first determining module, a second determining module, and a third determining module. The first determining module is used to determine the number of times any two IPs among the N IPs access the same domain name based on the access domain name set corresponding to each IP; the second determining module is used to determine the number of times any two IPs among the N IPs access the same domain name based on the number of times each IP accesses each domain name in its corresponding access domain name set; and the third determining module is used to determine the spatial similarity between any two IPs based on the number of times any two IPs access the same domain name and the number of times they access the same domain name.

[0105] Optionally, the abnormal domain name determination device can determine the number of identical domain names accessed by any two IPs among the N IPs based on the access domain name set corresponding to each IP, and determine the number of times any two IPs among the N IPs access the same domain name based on the number of times each IP accesses each domain name in its corresponding access domain name set. Finally, the abnormal domain name determination device determines the spatial similarity between any two IPs based on the number of identical domain names accessed by any two IPs and the number of times the same domain name is accessed.

[0106] Optionally, the spatial similarity for each IP address is calculated from the sequence of domain names accessed by that IP address. Specific steps include: extracting the number of times the IP address accessed a domain name and the set of domain names accessed by that IP address (i.e., the set of domain names accessed by that IP address and the number of times that IP address accessed each domain name in that set); selecting the intersection of the domain name sets of any two IP addresses to obtain the number of identical domain names accessed by these two IP addresses and the number of times the same domain name was accessed. Finally, the abnormal domain name determination device determines the spatial similarity between any two selected IP addresses based on the number of identical domain names accessed and the number of times the same domain name was accessed. The more common domain names accessed by any two IP addresses and the more consistent the number of times the same domain name was accessed, the greater the spatial similarity between the two IP addresses.

[0107] Optionally, the sixth determining subunit includes a calculation module and a fifth processing module. The calculation module is used to perform a weighted summation of the spatial and temporal similarities between any two IPs to obtain the total similarity between those two IPs. The fifth processing module is used to group two IPs among N IPs whose total similarity is greater than a first threshold into the same IP group, obtaining at least one IP group.

[0108] Optionally, the total similarity between any two IPs is the similarity of the domain name access behavior characteristics of those two IPs. A higher total similarity between different IPs indicates that these IPs have more similar domain name access behavior characteristics.

[0109] In one alternative embodiment, Figure 4 This is a schematic diagram illustrating another optional method for determining IP combinations according to an embodiment of this application, such as... Figure 4 As shown, the abnormal domain name identification device first extracts the domain name sequence corresponding to each of the N IPs. Then, based on the domain name sequence corresponding to each IP, it determines the spatial and temporal similarity between different IPs among the N IPs. Furthermore, it determines the total similarity between different IPs by weighted summation of the spatial and temporal similarities. Subsequently, the device can use IPs as nodes and the total similarity between IPs as the edge weights to build a corresponding IP similarity graph. Finally, it uses algorithms such as community detection, graph clustering, or graph embedding followed by node clustering to obtain several IP combinations with similar access behaviors.

[0110] Optionally, the clustering unit 603 includes: a sorting subunit, a second acquisition subunit, a calculation subunit, and a clustering subunit. The sorting subunit is used to sort all target domains corresponding to all IPs in each IP combination according to access time, obtaining a domain sequence corresponding to that IP combination. The second acquisition subunit is used to acquire the IP sequences corresponding to each pair of adjacent target domains in the domain sequence corresponding to each IP combination. The calculation subunit is used to calculate the ratio of the intersection and union of the IP sequences corresponding to each pair of adjacent target domains, obtaining the similarity of the IP sequences corresponding to the adjacent two target domains. The clustering subunit is used to cluster all target domains corresponding to all IPs in each IP combination into at least one domain cluster based on the similarity between the IP sequences corresponding to each pair of adjacent target domains in the domain sequence corresponding to each IP combination. Each domain cluster includes at least two adjacent target domains, and the similarity of the IP sequences corresponding to at least two target domains in each domain cluster is greater than a second threshold.

[0111] Optionally, assume that IP combination 1 includes two IPs, namely IP(1) and IP(2), where the domain names corresponding to IP(1) are: domain name 1, domain name 2, and domain name 3; and the domain names corresponding to IP(2) are: domain name 2, domain name 3, and domain name 4. That is, the domain names corresponding to IP(1) and IP(2) include: domain name 1, domain name 2, domain name 3, and domain name 4. Sorted by access time, the domain name sequence corresponding to IP combination 1 is [domain name 1, domain name 2, domain name 3, domain name 4].

[0112] In addition, for the adjacent domain name 1 and domain name 2 in the above domain name sequence, assuming that the IP sequence corresponding to domain name 1 is: [IP(1), IP(2), IP(3)]; and the IP sequence corresponding to domain name 2 is: [IP(1), IP(2), IP(3)], the similarity of the corresponding IP sequences can be obtained by calculating the ratio of the intersection and union of the two IP sequences.

[0113] Optionally, Figure 5 This is a flowchart illustrating an optional clustering method for obtaining domain name clusters according to an embodiment of this application, such as... Figure 5 As shown, for each IP combination, firstly, all target domain names corresponding to all IPs in the IP combination are sorted according to the time of IP access to the domain name to obtain the domain name sequence corresponding to the IP combination. Then, the similarity between adjacent domain names is obtained by calculating the ratio of the intersection to the union of the IP sequences accessed by adjacent domain names in the domain name sequence.

[0114] Subsequently, each domain name in the domain name sequence is treated as a node, the connection between domain names is treated as an edge, and the domain name similarity is treated as the weight of the edge. The domain name sequence is aggregated to construct an initial domain name graph. Then, by setting a custom domain name similarity threshold (i.e., the second threshold), the edges with domain name similarity less than the second threshold in the initial domain name graph are cut to obtain the target domain name graph. Finally, the domain name clusters are composed of the domain names that still have connections in the target domain name graph.

[0115] Optionally, the determining unit 604 includes: a first calculation subunit and an abnormal domain name determining subunit. The first calculation subunit is used to calculate the standard deviation of the access time interval and the standard deviation of the number of accesses among the target domains in the domain name cluster; the abnormal domain name determining subunit is used to determine that the target domains in the domain name cluster are abnormal domains if the standard deviation of the access time interval among the target domains in the domain name cluster is less than a first preset standard deviation and the standard deviation of the number of accesses among the target domains in the domain name cluster is less than a second preset standard deviation.

[0116] Optionally, such as Figure 5As shown, for each domain cluster in at least one domain cluster, the abnormal domain identification device calculates the standard deviation of the access time interval and the standard deviation of the number of accesses among the domains in the domain cluster. These two standard deviations are used to measure the access consistency among the domains in the domain cluster, thereby further identifying domain clusters that may contain abnormal domains. Specifically, assuming the standard deviation of the access time interval between target domains in the generated domain cluster A-1 is less than a first preset standard deviation, and the standard deviation of the number of accesses among the target domains in domain cluster A-1 is less than a second preset standard deviation, then the abnormal domain identification device determines that the target domains contained in domain cluster A-1 are abnormal domains. If the standard deviation of the access time interval between target domains in the generated domain cluster A-2 is greater than or equal to the first preset standard deviation, and / or the standard deviation of the number of accesses among the target domains in domain cluster A-2 is greater than or equal to the second preset standard deviation, then the abnormal domain identification device determines that the target domains contained in domain cluster A-2 are not abnormal domains.

[0117] Optionally, the technical solution of this application is applicable to network security protection products that can collect DNS traffic with IP diversity and process threat intelligence, such as endpoint detection and response software, devices for identifying intrusion anomaly domains, etc.

[0118] The solution proposed in this application enables the detection of C&C server domain names with limited DNS traffic data, providing threat intelligence on suspected C&C server domain name access behavior. The required information only includes IP addresses, domain names, and timestamps over a specific period. Therefore, this application effectively provides a lightweight data processing function, eliminating the need for extensive pre-prepared training data. Furthermore, this application employs a strategy of first locating IP combinations and then further extracting domain name clusters, fully utilizing the temporal and spatial characteristics of IP addresses when accessing domain names. This achieves a more accurate technical effect of locating abnormal domain names based on domain name access behavior characteristics.

[0119] Example 3

[0120] According to another aspect of the embodiments of this application, a computer-readable storage medium is also provided, the computer-readable storage medium including a stored computer program, wherein, when the computer program is running, it controls the device where the computer-readable storage medium is located to execute the abnormal domain name determination method in Embodiment 1 above.

[0121] Example 4

[0122] According to another aspect of the embodiments of this application, an electronic device is also provided, including: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the abnormal domain name determination method in Embodiment 1 above by executing the executable instructions.

[0123] Figure 7 This is a schematic diagram of an electronic device according to an embodiment of this application, such as... Figure 7 As shown, this application provides an electronic device, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, it implements the method for determining abnormal domain names in Embodiment 1 above.

[0124] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0125] In the above embodiments of this application, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0126] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual couplings, direct couplings, or communication connections may be through some interfaces; indirect couplings or communication connections between units or modules may be electrical or other forms.

[0127] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0128] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0129] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard drive, magnetic disk, or optical disk.

[0130] The above are merely preferred embodiments of this application. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of this application, and these improvements and modifications should also be considered within the scope of protection of this application.

Claims

1. A method for determining abnormal domain names, characterized in that, include: Collect the target domain name accessed by each of N IPs within a preset time period and the access time of each IP to the target domain name, where N is an integer greater than 1; Dividing the N IPs into at least one IP combination based on the target domain name accessed by each IP and the access time of each IP to the target domain name, includes: determining the domain name access time sequence corresponding to each IP based on the access time of each IP to the target domain name; using the domain name access time sequence corresponding to each IP as the time signal corresponding to that IP; performing spectral density analysis on the time signal corresponding to each IP to obtain the frequency spectrum corresponding to each IP; using the period value corresponding to the peak value in the frequency spectrum corresponding to each IP as the domain name access time feature corresponding to that IP; and using the feature similarity of the domain name access time features corresponding to any two IPs among the N IPs as the time similarity between the two IPs; wherein, the similarity of the domain name access behavior features corresponding to at least two IPs in each IP combination is greater than a first threshold, and the domain name access behavior features include the domain name access time features; Clustering the target domains corresponding to all IPs in each IP combination into at least one domain cluster includes: sorting all target domains corresponding to all IPs in each IP combination according to access time to obtain the domain sequence corresponding to the IP combination; obtaining the IP sequence corresponding to each pair of adjacent target domains in the domain sequence corresponding to each IP combination; calculating the ratio of the intersection and union of the IP sequences corresponding to each pair of adjacent target domains to obtain the similarity of the IP sequences corresponding to the adjacent target domains; and clustering the target domains corresponding to all IPs in each IP combination into at least one domain cluster based on the similarity between the IP sequences corresponding to each pair of adjacent target domains in the domain sequence corresponding to each IP combination, wherein the similarity of the IP sequences corresponding to at least two target domains in each domain cluster is greater than a second threshold. Abnormal domains are determined based on the access time interval and the number of times they are accessed among the target domains in the domain cluster.

2. The method for determining abnormal domain names according to claim 1, characterized in that, Collect the target domain name accessed by each of N IPs within a preset time period, as well as the access time of each IP to the target domain name, including: Obtain all domain names corresponding to N IPs from the DNS traffic within the preset time period, wherein the domain names corresponding to the N IPs include at least the target domain name accessed by each of the N IPs; Delete all domain names that meet the preset conditions from all domain names corresponding to the N IPs to obtain the target domain name accessed by each of the N IPs, wherein the preset conditions are used to characterize domain names that have been identified as normal domain names and / or do not have the characteristics of known abnormal domain names.

3. The method for determining abnormal domain names according to claim 1, characterized in that, Based on the target domain name accessed by each IP and the access time of each IP to the target domain name, the N IPs are divided into at least one IP group, including: The access time sequence of the domain name corresponding to each IP is determined based on the access time of each IP to the target domain name; Determine the temporal similarity between any two IPs among the N IPs based on the domain name access time series corresponding to each IP; Determine the domain name sequence corresponding to each IP based on the target domain name accessed by each IP; The set of access domains corresponding to each IP and the number of times each IP accesses each domain in the set of access domains are determined based on the domain name sequence corresponding to each IP. Based on the set of access domains corresponding to each IP and the number of times the IP accesses each domain in its set of access domains, determine the spatial similarity between any two IPs among the N IPs; Based on the spatial similarity and temporal similarity between any two IPs among the N IPs, the N IPs are divided into at least one IP combination.

4. The method for determining abnormal domain names according to claim 3, characterized in that, Based on the set of access domains corresponding to each IP and the number of times that IP accesses each domain in its corresponding set of access domains, the spatial similarity between any two IPs among the N IPs is determined, including: The number of identical domain names accessed by any two of the N IPs is determined based on the set of access domain names corresponding to each IP; Based on the number of times each IP accesses each domain in its corresponding set of access domains, determine the number of times any two IPs among the N IPs access the same domain. The spatial similarity between any two IPs is determined based on the number of times they access the same domain name and the number of times they access the same domain name.

5. The method for determining abnormal domain names according to claim 3, characterized in that, Based on the spatial and temporal similarity between any two IPs from the N IPs, the N IPs are divided into at least one IP combination, including: The spatial and temporal similarity between any two IPs is weighted and summed to obtain the total similarity between the two IPs. Two IPs whose total similarity is greater than the first threshold among the N IPs are grouped into the same IP group to obtain at least one IP group.

6. The method for determining abnormal domain names according to claim 1, characterized in that, Abnormal domains are determined based on the access time interval and the number of times the target domains in the domain cluster are accessed, including: Calculate the standard deviation of the access time interval and the standard deviation of the number of accesses among the target domains in the domain cluster; If the standard deviation of the access time interval between target domains in the domain cluster is less than a first preset standard deviation, and the standard deviation of the number of times the target domains in the domain cluster are accessed is less than a second preset standard deviation, then the target domains in the domain cluster are determined to be the abnormal domains.

7. A device for determining abnormal domain names, characterized in that, include: The data collection unit is used to collect the target domain name accessed by each of the N IPs within a preset time period, as well as the access time of each IP to the target domain name. A segmentation unit is configured to segment the N IPs into at least one IP combination based on the target domain name accessed by each IP and the access time of each IP to the target domain name. The segmentation includes: determining the domain name access time sequence corresponding to each IP based on the access time of each IP to the target domain name; using the domain name access time sequence corresponding to each IP as the time signal corresponding to that IP; performing spectral density analysis on the time signal corresponding to each IP to obtain the frequency spectrum corresponding to each IP; using the period value corresponding to the peak value in the frequency spectrum corresponding to each IP as the domain name access time feature corresponding to that IP; and using the feature similarity of the domain name access time features corresponding to any two IPs among the N IPs as the time similarity between those two IPs. Wherein, the similarity of the domain name access behavior features corresponding to at least two IPs in each IP combination is greater than a first threshold, and the domain name access behavior features include the domain name access time features. A clustering unit is used to cluster the target domains corresponding to all IPs in each IP combination into at least one domain cluster, comprising: sorting all target domains corresponding to all IPs in each IP combination according to access time to obtain a domain sequence corresponding to the IP combination; obtaining the IP sequence corresponding to each pair of adjacent target domains in the domain sequence corresponding to each IP combination; calculating the ratio of the intersection and union of the IP sequences corresponding to each pair of adjacent target domains to obtain the similarity of the IP sequences corresponding to the adjacent target domains; and clustering the target domains corresponding to all IPs in each IP combination into at least one domain cluster based on the similarity of the IP sequences corresponding to each pair of adjacent target domains in the domain sequence corresponding to each IP combination, wherein the similarity of the IP sequences corresponding to at least two target domains in each domain cluster is greater than a second threshold. The determining unit is used to determine the abnormal domain name based on the access time interval and the number of times the target domain names in the domain name cluster are accessed.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein, when the computer program is executed, it controls the device where the computer-readable storage medium is located to perform the method for determining abnormal domain names as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Malicious domain name cluster detection method and device based on word vector

    CN113271292A

  • Malicious domain name detection method and system

    CN113315739A