DNS query text data analysis method and system based on machine learning
The DNS query text data analysis method based on machine learning solves the problem of low efficiency of DNS query data analysis in the existing technology, achieves efficient processing of DNS query data and accurate identification of security risks, and improves network security monitoring capabilities.
Patent Information
- Application Number
- CN202410478300.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-19
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-04-19
AI Technical Summary
Existing DNS query data analysis methods are inefficient and difficult to accurately extract key security risk features. They also lack effective utilization of query text information and cannot fully reveal potential threats.
The DNS query text data analysis method based on machine learning is used to obtain and preprocess DNS query data, conduct query feature mining, construct query feature description vectors, optimize query text, evaluate data commonality index, and determine the risk query behavior prediction perspective.
It achieves efficient processing and analysis of DNS query data, accurately identifies potential security risks, improves the efficiency and accuracy of network security monitoring, and provides an effective means for enterprises to promptly discover and deal with potential network security incidents.
Smart Images

Figure CN118350011B
Abstract
Description
Technical Field
[0001] The present application relates to the field of data analysis technology, and more specifically, to a DNS query text data analysis method and system based on machine learning. Background Art
[0002] With the rapid development of network technology, Domain Name System (DNS) query, as an important part of Internet infrastructure, undertakes the key task of resolving domain names to corresponding IP addresses. However, due to the openness and statelessness of DNS query, it has also become one of the important channels for network attacks and malicious behaviors. Therefore, it is of great significance to effectively analyze and mine DNS query data to identify and predict potential security risk behaviors in order to ensure network security.
[0003] In traditional DNS query data analysis methods, the original DNS query data is usually processed and analyzed directly. This method is inefficient when processing large-scale data and it is difficult to accurately extract key security risk features. In addition, existing analysis methods often lack effective use of query text information and cannot fully reveal potential threats hidden in the text. Summary of the invention
[0004] In order to improve the technical problems existing in the related technologies, the present application provides a DNS query text data analysis method and system based on machine learning.
[0005] In a first aspect, an embodiment of the present application provides a DNS query text data analysis method based on machine learning, which is applied to a text data analysis system, and the method includes:
[0006] Acquire query text preprocessing data corresponding to first DNS query data, wherein the query text preprocessing data is text information obtained by setting first query annotation information for the first DNS query data, wherein the first DNS query data includes a DNS query session event;
[0007] Performing query feature mining on the first DNS query data to obtain a query feature description vector, where the query feature description vector is used to reflect element features of the DNS query session event in the first DNS query data;
[0008] Performing a query text optimization operation on the query text preprocessing data according to the query characteristic description vector to obtain second DNS query data;
[0009] According to the data commonality index between the first DNS query data and the second DNS query data, a risk query behavior prediction viewpoint corresponding to the first DNS query data is determined, and the risk query behavior prediction viewpoint includes a risk DNS query behavior label of the DNS query session event.
[0010] In combination with the first aspect, in a possible implementation manner of the first aspect, performing query feature mining on the first DNS query data to obtain a query feature description vector includes:
[0011] Performing query data cleaning processing on the first DNS query data to obtain a query data cleaning result;
[0012] Performing a cyclic text vector embedding process on the query data cleaning result to obtain multiple query text embedding vector information, wherein the u+1th query text embedding vector information is obtained by performing a text vector embedding operation on the uth query text embedding vector information, and the multiple query text embedding vector information respectively correspond to different query attention levels, and u is a positive integer;
[0013] A query characteristic mapping operation is performed on at least one query text embedding vector information among the multiple query text embedding vector information to obtain at least one query characteristic linear mapping information.
[0014] In combination with the first aspect, in a possible implementation manner of the first aspect, performing a query feature mapping operation on at least one query text embedding vector information among the multiple query text embedding vector information to obtain at least one query feature linear mapping information includes:
[0015] Performing knowledge vector integration on at least two query text embedding vector information among the multiple query text embedding vector information to obtain a first query text integrated knowledge vector;
[0016] A query characteristic mapping operation is performed on the first query text integrated knowledge vector to obtain the query characteristic linear mapping information.
[0017] In combination with the first aspect, in a possible implementation of the first aspect, the at least two query text embedding vector information include v-th query text embedding vector information and w-th query text embedding vector information, the v-th query text embedding vector information includes an x-order first local query text embedding vector, the w-th query text embedding vector information includes an x-order second local query text embedding vector, and v, w, and x are positive integers;
[0018] The step of integrating at least two query text embedding vector information among the plurality of query text embedding vector information to obtain a first query text integrated knowledge vector includes:
[0019] The x-order second local query text embedding vectors are subjected to residual processing respectively to obtain x residual processing results;
[0020] Perform knowledge vector integration on the x residual processing results and the y-th order first local query text embedding vector to obtain the y-th order first local query text integrated knowledge vector, where y is greater than 0 and less than or equal to x, and y is an integer;
[0021] The first query text integrated knowledge vector is obtained based on the x-order first local query text integrated knowledge vector.
[0022] In combination with the first aspect, in a possible implementation manner of the first aspect, performing a query text optimization operation on the query text preprocessing data according to the query characteristic description vector to obtain second DNS query data includes:
[0023] Performing cyclic text vector embedding processing on the query text preprocessing data to obtain multiple text semantic embedding vector information;
[0024] A cyclic query characteristic mapping operation is performed on the rth text semantic embedding vector information among the multiple text semantic embedding vector information according to the query characteristic linear mapping information and the query text embedding vector information to obtain the second DNS query data, where r is a positive integer.
[0025] In combination with the first aspect, in a possible implementation manner of the first aspect, the performing cyclic text vector embedding processing on the query data cleaning result to obtain multiple query text embedding vector information includes:
[0026] Performing knowledge vector integration on the h-th text semantic embedding vector information and the query data cleaning result to obtain a second query text integrated knowledge vector, wherein h<r and h is a positive integer;
[0027] The second query text integrated knowledge vector is subjected to cyclic text vector embedding processing to obtain a plurality of query text embedding vector information.
[0028] In combination with the first aspect, in a possible implementation of the first aspect, the step of performing a cyclic query characteristic mapping operation on the rth text semantic embedding vector information among the multiple text semantic embedding vector information according to the query characteristic linear mapping information and the query text embedding vector information to obtain the second DNS query data includes:
[0029] Performing a cyclic query feature mapping operation on the rth text semantic embedding vector information according to the query feature linear mapping information and the query text embedding vector information to obtain second query annotation information, where the second query annotation information is used to indicate a judgment point of view of the first query annotation information;
[0030] Performing text knowledge vector enhancement on the query text preprocessing data according to the second query annotation information to obtain text vector enhancement knowledge, wherein the text vector enhancement knowledge is used to reflect the DNS query element variables corresponding to the DNS query data after the query text preprocessing data removes the second query annotation information;
[0031] The text vector reinforcement knowledge is subjected to DNS query data parsing processing to obtain the second DNS query data.
[0032] In combination with the first aspect, in a possible implementation manner of the first aspect, before performing a query characteristic mapping operation on at least one query text embedding vector information among the multiple query text embedding vector information to obtain at least one query characteristic linear mapping information, the method further includes:
[0033] Performing embedding vector decomposition on target query text embedding vector information among the plurality of query text embedding vector information to obtain a first embedding vector decomposition result, wherein the first embedding vector decomposition result is used to reflect the query field summary viewpoint in the first DNS query data;
[0034] The step of performing a cyclic query feature mapping operation on the rth text semantic embedding vector information according to the query feature linear mapping information and the query text embedding vector information to obtain second query annotation information includes:
[0035] Performing embedding vector decomposition on the r-th text semantic embedding vector information to obtain a second embedding vector decomposition result, wherein the second embedding vector decomposition result is used to reflect the query field summary viewpoint in the query text preprocessing data;
[0036] Performing embedding vector combination on the first embedding vector decomposition result and the second embedding vector decomposition result to obtain an embedding vector combination result;
[0037] A cyclic query feature mapping operation is performed on the embedding vector combination result according to the query feature linear mapping information and the rth text semantic embedding vector information to obtain the second query annotation information.
[0038] In combination with the first aspect, in a possible implementation of the first aspect, the risk query behavior prediction viewpoint of the DNS query session event includes a location feature and a type of network security risk of the DNS query session event, and determining the risk query behavior prediction viewpoint corresponding to the first DNS query data based on a data commonality index between the first DNS query data and the second DNS query data includes:
[0039] mining a first DNS query element variable corresponding to the first DNS query data, and mining a second DNS query element variable corresponding to the second DNS query data;
[0040] According to the Euclidean commonality weight between the first DNS query element variable and the second DNS query element variable, a network security risk thermal relationship network is obtained, wherein the thermal unit in the network security risk thermal relationship network is used to indicate the difference between the thermal unit in the first DNS query data and the thermal unit in the second DNS query data;
[0041] Performing risk vector derivation on the network security risk thermal relationship network to obtain a network security risk positioning relationship network, wherein the network security risk positioning relationship network is used to indicate that the DNS query session event has positioning features of network security risks;
[0042] Performing a risk identification operation on the network security risk positioning relationship network to obtain the network security risk type;
[0043] The network security risk positioning relationship network and the network security risk types are used as the risk query behavior prediction viewpoints.
[0044] In combination with the first aspect, in a possible implementation manner of the first aspect, performing query feature mining on the first DNS query data to obtain a query feature description vector includes:
[0045] Entering the first DNS query data into a query characteristic mining algorithm debugged in advance, and outputting the query characteristic description vector;
[0046] The step of performing a query text optimization operation on the query text preprocessing data according to the query characteristic description vector to obtain second DNS query data includes:
[0047] The query characteristic description vector and the query text preprocessing data are input into a DNS query data optimization algorithm debugged in advance to obtain the second DNS query data.
[0048] In combination with the first aspect, in a possible implementation manner of the first aspect, before inputting the first DNS query data into a query characteristic mining algorithm debugged in advance and outputting the query characteristic description vector, the method further includes:
[0049] Acquire query text preprocessing data corresponding to the first DNS query data debugging sample, wherein the query text preprocessing data is text information obtained by setting a first query annotation information debugging sample for the first DNS query data debugging sample;
[0050] Input the first DNS query data debugging sample into the initial query feature mining algorithm, and output a query feature description vector;
[0051] Entering the query feature description vector and the query text preprocessing data into an initial DNS query data optimization algorithm, and outputting a first query annotation information training result;
[0052] According to the difference between the first query annotation information debugging example and the first query annotation information training result, the initial query feature mining algorithm and the initial DNS query data optimization algorithm are debugged to obtain the query feature mining algorithm and the DNS query data optimization algorithm.
[0053] In a second aspect, the present application also provides a text data analysis system, comprising: a memory for storing program instructions and data; a processor for coupling with the memory and executing instructions in the memory to implement the above method.
[0054] In a third aspect, the present application also provides a computer storage medium comprising instructions, which implement the above method when executed on a processor.
[0055] This application proposes a DNS query data analysis method based on a query feature description vector. First, by obtaining the query text preprocessing data corresponding to the first DNS query data, this application can make full use of the preprocessed text information to provide a high-quality data foundation for subsequent analysis and mining. The preprocessing operation includes setting the first query annotation information, which helps to enrich the context information of the data and improve the accuracy of the analysis.
[0056] Secondly, the present application performs query feature mining on the first DNS query data to obtain a query feature description vector. This step can deeply explore the element features of the DNS query session event and quantify them in the form of a vector. The construction of the query feature description vector helps to reveal the inherent laws and potential risks of DNS query behavior, and facilitates subsequent data processing and analysis.
[0057] Furthermore, the present application optimizes the query text preprocessing data based on the query feature description vector to obtain the second DNS query data. The optimization operation aims to further focus on security risk points, remove irrelevant query information, and strengthen query features that may indicate potential threats. The optimized second DNS query data more accurately reflects security risks and provides strong support for risk prediction and prevention strategy formulation.
[0058] Finally, by calculating the data commonality index between the first DNS query data and the second DNS query data, the present application can accurately evaluate the consistency and similarity between the two sets of data. Based on this index, the risk query behavior prediction view corresponding to the first DNS query data can be determined, and the corresponding risk DNS query behavior label can be marked for it. This provides an effective means for enterprises to promptly discover and handle potential network security incidents.
[0059] In summary, this application achieves efficient processing and analysis of DNS query data by making full use of query text to preprocess data, construct query feature description vectors, optimize query texts, and evaluate data commonality indexes, making positive contributions to the technological development in the field of network security. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] The accompanying drawings herein are incorporated in and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the description, are used to explain the principles of the present application.
[0061] Figure 1 It is a flowchart of a DNS query text data analysis method based on machine learning provided in an embodiment of the present application.
[0062] Figure 2 It is a structural block diagram of a text data analysis system 300 provided in an embodiment of the present application. DETAILED DESCRIPTION
[0063] The technical solution in this application will be described below in conjunction with the accompanying drawings.
[0064] Here, exemplary embodiments will be described in detail, and examples thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application.
[0065] It should be noted that the terms "first", "second", etc. in the specification of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0066] The method embodiments provided in the embodiments of the present application can be executed in a text data analysis system, a computer device or a similar computing device. Taking running on a text data analysis system as an example, the text data analysis system may include one or more processors (the processor may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory for storing data. Optionally, the above-mentioned text data analysis system may also include a transmission device for communication functions. It can be understood by those of ordinary skill in the art that the above-mentioned structure is only illustrative and does not limit the structure of the above-mentioned text data analysis system. For example, the text data analysis system may also include more or fewer components than those shown above, or have a configuration different from that shown above.
[0067] The memory can be used to store computer programs, for example, software programs and modules of application software, such as a computer program corresponding to a DNS query text data analysis method based on machine learning in an embodiment of the present application. The processor executes various functional applications and data processing by running the computer program stored in the memory, that is, implementing the above method. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the text data analysis system via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0068] The transmission device is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the text data analysis system. In one example, the transmission device includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device can be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet wirelessly.
[0069] Based on this, see Figure 1 , Figure 1 It is a flow chart of a DNS query text data analysis method based on machine learning provided in an embodiment of the present application. The method is applied to a text data analysis system and may further include steps 110 to 140.
[0070] Step 110: Obtain query text preprocessing data corresponding to first DNS query data, wherein the query text preprocessing data is text information obtained by setting first query annotation information for the first DNS query data, and the first DNS query data includes a DNS query session event.
[0071] Step 120: perform query feature mining on the first DNS query data to obtain a query feature description vector, where the query feature description vector is used to reflect the element features of the DNS query session event in the first DNS query data.
[0072] Step 130: Perform a query text optimization operation on the query text preprocessing data according to the query characteristic description vector to obtain second DNS query data.
[0073] Step 140: Determine a risk query behavior prediction viewpoint corresponding to the first DNS query data based on a data commonality index between the first DNS query data and the second DNS query data, wherein the risk query behavior prediction viewpoint includes a risk DNS query behavior label of the DNS query session event.
[0074] The above technical solution is introduced below through three application scenarios.
[0075] Application scenario 1: In the context of enterprise network security monitoring, a text data analysis system is deployed to analyze DNS query data in real time to identify and predict potential malicious or risky query behaviors that may indicate network attacks, data leaks, or other security threats.
[0076] The text data analysis system first receives the original query logs from the enterprise DNS server, which constitute the first DNS query data. The system preprocesses these raw data, including cleaning, standardization, and annotation. The cleaning process removes irrelevant information and noise, standardization ensures the consistency of the data format, and annotation enriches the context of the data by adding the first query annotation information. The annotation information can include query type, source IP address, target domain name, etc., which is helpful for the subsequent analysis process. The preprocessed data is called query text preprocessed data.
[0077] Next, the system conducts in-depth query feature mining on the query text preprocessing data. This step uses natural language processing (NLP) and machine learning algorithms to extract and analyze key element features of DNS query session events. These features can include query frequency, query pattern, domain name structure, etc. The mining process generates a query feature description vector, which represents the feature set of each query event in numerical form.
[0078] Based on the query feature description vector, the text data analysis system performs optimization operations on the query text preprocessing data. The optimization aims to improve the quality and relevance of the data so as to more accurately identify risky query behaviors. The optimization operation may include filtering out normal or benign query events, merging similar query events, or weighting query events of a specific type. The optimized data is stored as the second DNS query data.
[0079] Finally, the system predicts risky query behaviors by comparing the data commonality index between the first DNS query data and the second DNS query data. The data commonality index measures the degree of similarity and consistency between the two sets of data. If the commonality index is low, it indicates that there is a large difference between the optimized data and the original data, which may mean that there is potential risky query behavior. Based on this analysis, the system generates a risky DNS query behavior label for each DNS query session event, which indicates the risk level of the query event (such as low risk, medium risk, or high risk). These risky query behavior prediction views are then integrated into the enterprise's security information and event management system (SIEM) for further investigation and analysis by the security team. In this way, the text data analysis system effectively supports the enterprise's network security monitoring work and improves the ability to identify and respond to potential threats.
[0080] Application scenario 2: In the cloud service provider environment, security monitoring of DNS query data is crucial to ensure the stability and security of cloud services. The text data analysis system is used to monitor and analyze DNS query data in real time to promptly detect and respond to potential security risks.
[0081] The DNS servers of cloud service providers continuously receive query requests from users, which constitute the original first DNS query data. The text data analysis system automatically captures this data and starts the preprocessing process. Preprocessing includes data cleaning to remove duplicate, invalid or malformed query records to ensure the accuracy and consistency of the data. Subsequently, the system sets the first query annotation information for this data, such as query type, request source, target domain name, etc. This information is crucial for subsequent analysis. The preprocessed data is stored as query text preprocessing data.
[0082] Next, the text data analysis system conducts in-depth query feature mining on the query text preprocessing data. Using advanced machine learning and natural language processing technologies, the system analyzes various element features of DNS query session events, such as query frequency, time pattern, domain name structure anomalies, etc. These features are synthesized into a query feature description vector, which accurately represents the unique features of each query event in a numerical form.
[0083] Based on the query feature description vector, the text data analysis system optimizes the query text preprocessing data. The optimization process aims to further highlight query events related to potential security risks while reducing the weight of benign or normal query events. This may involve filtering, aggregating or reordering specific types of query events. The optimized data is called the second DNS query data, which is more focused on possible security risks.
[0084] Finally, the text data analysis system determines risky query behaviors by comparing the data commonality index between the first DNS query data and the second DNS query data. The data commonality index reflects the degree of similarity and consistency between the two sets of data. If the commonality index is low, it indicates that the optimized data is significantly different from the original data, which may mean potential security risks. Based on this analysis, the system assigns a risky DNS query behavior label, such as "normal", "suspicious", or "high risk", to each DNS query session event. These labels constitute risky query behavior prediction viewpoints, providing cloud service providers with real-time insights into potential security threats.
[0085] Through these steps, the text data analysis system effectively supports cloud service providers in DNS security monitoring and improves their ability to identify and respond to potential security risks. This helps ensure the stability, availability, and security of cloud services and provides users with a more reliable and secure cloud service experience.
[0086] Application scenario 3: In the network security monitoring center of a large enterprise, the text data analysis system is deployed to analyze DNS query data in real time to identify and predict potential malicious DNS query behaviors, thereby enhancing the enterprise's network security protection.
[0087] In the network environment of large enterprises, DNS servers process a large number of DNS query requests every day. These raw DNS query data are first captured by the text data analysis system and preprocessed. The main purpose of preprocessing is to convert the raw data into a format suitable for analysis and add necessary annotation information. The annotation information can include the query source, target domain name, query type, etc. This information helps the system better understand the context of the DNS query session event. The preprocessed data is called query text preprocessed data.
[0088] Next, the text data analysis system conducts in-depth query feature mining on the query text preprocessing data. This step uses advanced algorithms and technologies, such as machine learning and deep learning, to extract key element features of DNS query session events. These features can include query frequency, query pattern, domain name structure, historical query behavior, etc. The mined query features are encoded into a query feature description vector, which accurately describes the unique features of each query event in a numerical form.
[0089] Based on the query feature description vector, the text data analysis system optimizes the query text preprocessing data. The optimization process aims to remove noise data, merge similar query events, highlight potential risk events, etc., to improve the accuracy and efficiency of subsequent analysis. The optimized data is called the second DNS query data, which is more focused on potential security risk points.
[0090] Finally, the text data analysis system determines risky query behaviors by comparing the data commonality index between the first DNS query data and the second DNS query data. The data commonality index is a quantitative indicator that measures the degree of similarity and consistency between two sets of data. If the commonality index is low, it indicates that the optimized data is significantly different from the original data, which may mean potential security risks. Based on this analysis, the system assigns a risky DNS query behavior label, such as "normal", "suspicious", or "high risk", to each DNS query session event. These labels constitute a risky query behavior prediction viewpoint, providing the enterprise's network security monitoring center with real-time insights and early warnings about potential security threats.
[0091] Through this application scenario example, we can see the powerful ability of the text data analysis system in processing DNS query data and identifying potential security risks. It can help large enterprises monitor DNS query behavior in the network environment in real time, discover and respond to potential security threats in a timely manner, and thus ensure the security and stable operation of the enterprise's network.
[0092] In conjunction with the above application scenarios, the technical terms involved in step 110 to step 140 are now explained.
[0093] First DNS query data: In the network security monitoring center of a large enterprise, a large number of DNS query requests are sent from various network devices (such as employee computers, servers, mobile devices, etc.) to the enterprise's DNS server every day. These original, unprocessed DNS query requests and response data sets constitute the "first DNS query data". This data contains detailed information on all DNS queries in the enterprise network environment, such as query time, query source IP, target domain name, query type (such as A record, MX record, etc.), response status code, etc. This data is the basis of network security analysis, but due to its originality and complexity, it usually requires further processing and analysis to extract valuable information.
[0094] Query text preprocessing data: data obtained after a series of preprocessing operations on the "first DNS query data". The purpose of the preprocessing operation is to clean the data, remove noise, standardize the format, extract key information, etc., to facilitate subsequent analysis and mining. These preprocessing operations can include data cleaning (such as removing duplicate, invalid or erroneous data), data conversion (such as converting IP addresses to geographic location information), and data annotation (such as adding labels or descriptions to specific query events). The preprocessed data is more regular and consistent, and contains more contextual information, which helps to improve the accuracy and efficiency of subsequent analysis.
[0095] In a text data analysis system, "settings" refers to a series of configurations and operations that define how the system processes and analyzes data. These settings may involve various aspects of data input, preprocessing, analysis, and output, including but not limited to the specification of data sources, the definition of preprocessing rules, the selection of analysis algorithms, the configuration of result presentation methods, etc. Reasonable settings can ensure that the system operates as expected and produces accurate and reliable analysis results. In the scenario of DNS query data analysis, "settings" can include specifying which DNS query data needs to be captured and analyzed, defining how to clean and annotate this data, and selecting algorithms and models for mining query characteristics and predicting risk behaviors.
[0096] First query annotation information: some additional information or labels added when processing the "first DNS query data" to enrich the context of the data or provide additional analysis dimensions. These annotation information can be manual annotations based on domain knowledge or automatically generated using machine learning algorithms. In the scenario of DNS query data analysis, "first query annotation information" can include the type of query source device (such as employee computers, servers, etc.), the category of the target domain name (such as financial institutions, social media, etc.), the pattern of historical query behavior (such as frequent queries for the same domain name, queries for a large number of unrelated domain names, etc.). This information helps analysts better understand the background and purpose of query events, thereby more accurately identifying potential security risks.
[0097] DNS query session event: refers to a complete DNS query process that occurs in a network environment. This process usually includes a client (such as an employee's computer) sending a query request to a DNS server. The DNS server looks up the corresponding IP address based on the domain name in the request and returns the result to the client. All relevant data generated in this process (such as query requests, responses, timestamps, etc.) constitute a "DNS query session event." From the perspective of a text data analysis system, each DNS query session event is an independent analysis unit that contains rich information that can be used to identify and predict potential security risks. By deeply mining and analyzing these events, the system can discover security threat patterns and behavioral characteristics hidden in large amounts of data.
[0098] Conduct query feature mining: In the network security monitoring center of a large enterprise, when the text data analysis system obtains DNS query data, it does not directly judge the risk of the raw data, but first "conducts query feature mining". This is a process of in-depth exploration and understanding of data, the purpose of which is to extract key and representative features or patterns from massive DNS query data. These features or patterns can reflect the inherent laws and potential risks of DNS query behavior. Query feature mining may involve a variety of advanced data analysis technologies, such as statistical analysis, pattern recognition, machine learning, etc. Through these technologies, the system can conduct in-depth analysis of various aspects of DNS query data, including but not limited to query frequency, query type distribution, domain name structure characteristics, query patterns in time series, etc. The mined query features not only help to understand the current DNS query behavior, but also provide an important basis for future risk prediction and prevention.
[0099] Query feature description vector: It is an important result obtained after query feature mining. It represents the mined query features in a numerical form, forming a multi-dimensional vector space. In this vector space, each DNS query session event can be mapped to a specific vector, and each dimension of the vector corresponds to a different query feature. This numerical representation method has many advantages. First, it allows quantitative comparison and similarity calculation between different DNS query session events. Second, it facilitates subsequent data processing and analysis, such as clustering, classification, and association rule mining. Finally, by converting query features into vector form, algorithms such as machine learning can also be used to automatically learn and predict DNS query behavior. In practical applications, the construction of the "query feature description vector" needs to comprehensively consider multiple aspects of DNS query data, including static features (such as domain name length, domain name structure, etc.) and dynamic features (such as query frequency changes, query type conversion, etc.). By carefully designing and adjusting the dimensions and weights of the vector, the vector space can more accurately reflect the true face and potential risks of DNS query behavior.
[0100] The element features of a DNS query session event refer to the basic elements and key attributes that constitute a complete DNS query session event. These element features usually include basic information such as the query source, target domain name, query type, query time, and other relevant contextual information that may be involved (such as user identity, device type, etc.). In the text data analysis system, the extraction and analysis of element features are key steps to understand the DNS query session event. Through in-depth mining and analysis of these element features, the system can reveal the intentions, motivations, and potential risks hidden behind the DNS query behavior. For example, anomalies in the query source may indicate the activities of malicious attackers; the structure and pattern of the target domain name may imply the spread of phishing websites or malware; changes in query types and frequencies may indicate the occurrence of security incidents such as DDoS attacks or data leaks. Therefore, when building a text data analysis system, it is necessary to fully consider how to effectively extract and utilize these element features. This may require a combination of domain knowledge, expert experience, and advanced data analysis technology to achieve this. Through the careful characterization and in-depth understanding of the element features, the text data analysis system can more accurately identify potential DNS security risks and take corresponding preventive measures in a timely manner to ensure the network security of the enterprise.
[0101] Perform query text optimization operations: In the text data analysis process of the network security monitoring center, "performing query text optimization operations" is an important link. This step is performed after preprocessing and feature mining of the original DNS query data (i.e., the first DNS query data). The purpose of the query text optimization operation is to further improve the quality and relevance of the data so as to more accurately identify potential malicious DNS query behaviors. Optimization operations can include filtering out irrelevant or redundant query data, merging similar or repeated query events, and highlighting query features that are closely related to security risks. For example, the system may remove queries that appear frequently but are not related to security, or weight queries that are similar to historical attack patterns. These operations all help reduce noise interference in the data analysis process and improve the accuracy and efficiency of the analysis.
[0102] Second DNS query data: The data set obtained after query text optimization is called "second DNS query data". Compared with the original first DNS query data, the second DNS query data focuses more on security risk points, removes most of the irrelevant query information, and strengthens the query characteristics that may indicate potential threats. These data are an important basis for subsequent risk prediction and prevention strategy formulation. The quality of the second DNS query data directly affects the accuracy of the final risk prediction. Therefore, when performing query text optimization operations, it is necessary to carefully consider which information is necessary and which information is redundant or misleading, and adjust and process the data accordingly.
[0103] Data commonality index: is a quantitative indicator used to measure the similarity or consistency between two sets of DNS query data (such as the first DNS query data and the second DNS query data). This index is calculated by comparing the proportion of identical or similar query events in the two sets of data, the distribution similarity of query characteristics, and other factors. A higher data commonality index means that the two sets of data are largely consistent, while a lower data commonality index may indicate significant differences or potential security risks. In the actual application of the network security monitoring center, the data commonality index can be used as an effective risk warning mechanism. When the commonality index between the first DNS query data and the second DNS query data is lower than a preset threshold, the system can automatically trigger an alarm to prompt analysts to further check potential malicious DNS query behavior.
[0104] Risk query behavior prediction viewpoint: It is a prediction and judgment of potential future security risks formed by the text data analysis system based on the analysis and mining of historical DNS query data. This prediction viewpoint is a comprehensive conclusion drawn after comprehensive consideration of multiple factors (such as query characteristics, historical behavior patterns, current network environment, etc.). It may express the possibility of a security risk in a certain query event or query pattern in the future in the form of probability, or it may directly give qualitative judgments such as high risk, medium risk or low risk. The risk query behavior prediction viewpoint is of great significance to the network security protection of enterprises. It can help enterprises discover potential threats in advance and take corresponding preventive measures, thereby reducing the probability of network security incidents and the degree of loss. At the same time, through the continuous tracking and verification of the prediction viewpoint, enterprises can also continuously optimize and improve their own network security protection strategies.
[0105] Risky DNS query behavior labels: are marks or labels that the text data analysis system puts on DNS query events that are identified as potential security risks. These labels are usually derived from in-depth analysis and mining of query events, and can reflect certain specific attributes or behavior patterns of query events, such as "malicious domain name query", "DDoS attack signs", "data leakage risk", etc. Each risky DNS query behavior label corresponds to a specific security risk or threat type, which helps enterprises quickly and accurately locate and respond to potential security issues. In practical applications, risky DNS query behavior labels can be used as one of the important outputs of the network security monitoring center, providing valuable reference information for security analysts. Through real-time monitoring and analysis of these labels, enterprises can promptly discover and handle potential network security incidents to ensure the stability and security of the network environment. At the same time, these labels can also serve as the basis for subsequent data analysis and mining, providing a basis for continuous improvement and optimization of the enterprise's network security protection strategy.
[0106] By implementing the above steps, the present application realizes efficient processing and analysis of DNS query data, thereby accurately predicting and identifying potential DNS query risk behaviors. Specifically, the beneficial effects of the present application are mainly reflected in the following aspects.
[0107] First, by obtaining the query text preprocessing data corresponding to the first DNS query data, the present application can make full use of the preprocessed query text information to provide a high-quality data foundation for subsequent analysis and mining. The preprocessing operation includes setting the first query annotation information, which helps to enrich the context information of the data and improve the accuracy of the analysis.
[0108] Secondly, the present application performs query feature mining on the first DNS query data to obtain a query feature description vector. This step can deeply explore the element characteristics of the DNS query session event, quantify the query characteristics in the form of a vector, and facilitate subsequent data processing and analysis. The construction of the query feature description vector helps to reveal the inherent laws and potential risks of DNS query behavior.
[0109] Thirdly, by performing query text optimization operations on query text preprocessing data based on the query feature description vector, this application can further focus on security risk points, remove irrelevant query information, and strengthen query characteristics of potential threats. The optimized second DNS query data more accurately reflects security risks and provides strong support for risk prediction and prevention strategy formulation.
[0110] Finally, by calculating the data commonality index between the first DNS query data and the second DNS query data, the present application can accurately evaluate the consistency and similarity between the two sets of data. Based on this index, the risk query behavior prediction view corresponding to the first DNS query data can be determined, including the risk DNS query behavior label of the DNS query session event. This provides an effective means for enterprises to promptly discover and handle potential network security incidents.
[0111] In summary, this application has achieved efficient processing and analysis of DNS query data through a series of carefully designed steps and algorithms, and accurately predicted and identified potential DNS query risk behaviors. This not only improves the network security protection capabilities of enterprises, but also makes positive contributions to the technological development in the field of network security.
[0112] In some optional embodiments, the query feature mining is performed on the first DNS query data to obtain a query feature description vector, including: performing query data cleaning processing on the first DNS query data to obtain a query data cleaning result; performing cyclic text vector embedding processing on the query data cleaning result to obtain multiple query text embedding vector information, wherein the u+1th query text embedding vector information is obtained by performing a text vector embedding operation on the uth query text embedding vector information, and the multiple query text embedding vector information respectively correspond to different query attention levels, and u is a positive integer; performing a query feature mapping operation on at least one query text embedding vector information among the multiple query text embedding vector information to obtain at least one query feature linear mapping information.
[0113] In some optional embodiments, the process of performing query feature mining on the first DNS query data to obtain a query feature description vector may be implemented through the following detailed steps.
[0114] First, the system will perform query data cleaning on the first DNS query data. The purpose of this step is to remove noise, redundant information, and inconsistent data in the original data, thereby ensuring the accuracy and efficiency of subsequent analysis. Query data cleaning may include removing duplicate queries, filtering invalid or erroneous query records, and standardizing query formats. After cleaning, the system obtains the query data cleaning result, which is a purified and organized data set that provides a solid foundation for subsequent analysis.
[0115] Next, the system will perform cyclic text vector embedding processing on the query data cleaning results. In this step, the system will use text vector embedding technology to convert the query text into a vector representation. This conversion allows the text data to be mathematically operated and compared in the vector space, which facilitates subsequent mining and analysis. The characteristic of cyclic text vector embedding processing is that it generates the next query text embedding vector information (i.e., the u+1th vector) based on the previous query text embedding vector information (i.e., the uth vector). This processing method can capture the sequential dependencies between query texts, thereby better reflecting the dynamic characteristics of query behavior. Through cyclic processing, the system will obtain multiple query text embedding vector information, each of which corresponds to a different query attention level. These levels may include the semantic content of the query, the structural characteristics of the query, the historical context of the query, etc.
[0116] Finally, the system will perform a query feature mapping operation on at least one of the multiple query text embedding vector information. The purpose of this step is to map the query text embedding vector in the vector space to a specific query feature, thereby obtaining query feature linear mapping information that can directly reflect the query behavior characteristics. The query feature mapping operation may include linear transformation, dimensionality reduction, feature selection and other operations, depending on the query characteristics and analysis objectives of interest. After the mapping process, the system will obtain at least one query feature linear mapping information, which describes the characteristics and laws of the query behavior in various aspects (such as query frequency, query type, query target, etc.) in a numerical form.
[0117] In summary, through a series of operations such as cleaning the first DNS query data, loop text vector embedding, and query feature mapping, the system can deeply explore the inherent characteristics and rules of query behavior and represent and describe them in the form of vectors and numerical values. This provides strong support and basis for subsequent query text optimization operations and risk prediction.
[0118] In the next step, a query feature mapping operation is performed on at least one query text embedding vector information among the multiple query text embedding vector information to obtain at least one query feature linear mapping information, including: performing knowledge vector integration on at least two query text embedding vector information among the multiple query text embedding vector information to obtain a first query text integrated knowledge vector; performing a query feature mapping operation on the first query text integrated knowledge vector to obtain the query feature linear mapping information.
[0119] In the next step, the system will perform a query feature mapping operation on at least two of the multiple query text embedding vector information to obtain query feature linear mapping information. This process can be implemented through the following detailed steps.
[0120] First, the system selects at least two query text embedding vector information from multiple query text embedding vector information for knowledge vector integration. Knowledge vector integration is a method of fusing multiple vector information into a more representative vector. In this process, the system may adopt integration strategies such as weighted averaging, splicing, and convolution, depending on the characteristics of the vector and analysis requirements. Through knowledge vector integration, the system can obtain a first query text integrated knowledge vector that integrates the features of multiple query text embedding vector information. This integrated knowledge vector not only contains the key features in the original vector information, but may also generate new feature information through the interaction between vectors.
[0121] Then, the system will perform a query feature mapping operation on the first query text integrated knowledge vector. Query feature mapping is the process of mapping the query text integrated knowledge vector in the vector space to specific query features. In this process, the system may use mapping functions such as linear transformation and neural networks to convert the integrated knowledge vector into query feature linear mapping information that can directly reflect the query behavior characteristics. These query features may include query frequency, query diversity, query abnormality, etc., depending on the analysis objectives and scenarios.
[0122] Through the above steps, the system can map the integrated results of multiple query text embedding vector information to specific query features, thereby obtaining more explanatory and predictive query feature linear mapping information. This information will provide strong data support for subsequent query text optimization operations and risk prediction. At the same time, this query feature mapping method based on knowledge vector integration also helps to improve the accuracy and efficiency of analysis and reduce the impact of noise and redundant information on analysis results.
[0123] Furthermore, the at least two query text embedding vector information include the vth query text embedding vector information and the wth query text embedding vector information, the vth query text embedding vector information includes the xth order first local query text embedding vector, the wth query text embedding vector information includes the xth order second local query text embedding vector, and v, w and x are positive integers; the at least two query text embedding vector information among the multiple query text embedding vector information are integrated with knowledge vectors to obtain the first query text integrated knowledge vector, including: performing residual processing on the xth order second local query text embedding vector respectively to obtain x residual processing results; performing knowledge vector integration on the x residual processing results and the yth order first local query text embedding vector to obtain the yth order first local query text integrated knowledge vector, where y is greater than 0 and less than or equal to x, and y is an integer; and obtaining the first query text integrated knowledge vector based on the xth order first local query text integrated knowledge vector.
[0124] Furthermore, in the implementation of the technical solution, when the system processes the query text embedding vector information, it will pay special attention to at least two query text embedding vector information, namely the v-th query text embedding vector information and the w-th query text embedding vector information. These two vector information respectively contain the x-order first local query text embedding vector and the x-order second local query text embedding vector. The "order" here can be understood as the level or granularity of the vector representation, and different orders may correspond to different text features or semantic information.
[0125] When the system integrates knowledge vectors, it first performs residual processing on the x-order second local query text embedding vector in the w-th query text embedding vector information. Residual processing is a commonly used data processing method that aims to extract valid information from data by calculating the difference between the original data and a certain benchmark (such as the average value, the value of the previous moment, etc.). Here, residual processing can help the system remove redundant information or noise in the second local query text embedding vector, thereby highlighting its key features.
[0126] After residual processing, the system will obtain x residual processing results, each of which corresponds to the feature information of the second local query text embedding vector at different levels. Then, the system will integrate the x residual processing results with the yth-order first local query text embedding vector in the vth query text embedding vector information into a knowledge vector. This integration process may involve operations such as weighted summation, concatenation, and convolution of vectors, depending on the characteristics of the vectors and analysis requirements. In this way, the system can fuse the key features of the second local query text with the features of the first local query text at different levels, thereby obtaining the yth-order first local query text integrated knowledge vector.
[0127] Finally, the system will construct the first query text integrated knowledge vector based on all x-order first local query text integrated knowledge vectors. This process may include summarizing, averaging or further processing all integrated knowledge vectors to obtain an integrated knowledge vector that can fully reflect the characteristics of the query text. This first query text integrated knowledge vector will serve as the basis for subsequent query feature mapping operations and provide strong data support for the prediction and identification of risk query behavior.
[0128] Through the above steps, the system can effectively integrate and fuse the key features of multiple query text embedding vector information, thereby obtaining a more representative and explanatory query text integrated knowledge vector. This not only improves the accuracy and efficiency of the analysis, but also helps to reduce the impact of noise and redundant information on the analysis results.
[0129] Under some preferred design ideas, the query text optimization operation is performed on the query text preprocessing data according to the query feature description vector to obtain the second DNS query data, including: performing a cyclic text vector embedding process on the query text preprocessing data to obtain multiple text semantic embedding vector information; performing a cyclic query feature mapping operation on the rth text semantic embedding vector information among the multiple text semantic embedding vector information according to the query feature linear mapping information and the query text embedding vector information to obtain the second DNS query data, where r is a positive integer.
[0130] Under some preferred design ideas, the system performs query text optimization operations on query text preprocessing data according to the query feature description vector to obtain the second DNS query data, which can be implemented through the following detailed steps.
[0131] First, the system performs cyclic text vector embedding on the query text preprocessing data. The purpose of this step is to convert the query text into a vector representation so that mathematical operations and comparisons can be performed in the vector space. Circular text vector embedding is a special text vector embedding method that can capture the sequential dependencies between texts, thereby better reflecting the dynamic characteristics of query behavior. Through this process, the system will obtain multiple text semantic embedding vector information, each of which corresponds to the semantic features of the query text at different levels.
[0132] Next, the system will perform a cyclic query feature mapping operation on the rth text semantic embedding vector information in multiple text semantic embedding vector information based on the query feature linear mapping information and the query text embedding vector information. The query feature linear mapping information here is obtained through the previous steps, which reflects the characteristics and rules of query behavior in various aspects (such as query frequency, query type, query target, etc.). The query text embedding vector information is the representation of the query text in the vector space, which contains information such as the semantic content and structural characteristics of the query text.
[0133] The cyclic query feature mapping operation is a method that combines text semantic embedding vector information with query feature linear mapping information. It gradually maps query features to text semantic embedding vectors by cyclically processing vector information, thereby obtaining optimized query text. In this process, the system may use deep learning technologies such as neural networks and attention mechanisms to capture the complex relationship between query features and text semantics and achieve accurate mapping.
[0134] Through the cyclic query feature mapping operation, the system will obtain the optimized rth text semantic embedding vector information, which not only contains the semantic features of the original query text, but also incorporates the query feature information, making the query text more in line with user needs and query goals. The system will output this optimized vector information as the second DNS query data for subsequent queries.
[0135] In summary, through a series of steps such as cyclic text vector embedding processing and cyclic query feature mapping operations, the system can optimize the query text preprocessing data and obtain more accurate and effective second DNS query data. This not only improves the accuracy and efficiency of the query, but also helps to improve user experience and query satisfaction.
[0136] In the next step, the query data cleaning result is subjected to a cyclic text vector embedding process to obtain multiple query text embedding vector information, including: integrating the hth text semantic embedding vector information with the query data cleaning result to obtain a second query text integrated knowledge vector, wherein h<r and h is a positive integer; and performing a cyclic text vector embedding process on the second query text integrated knowledge vector to obtain multiple query text embedding vector information.
[0137] In the next step, the system performs cyclic text vector embedding processing on the query data cleaning results to obtain a plurality of query text embedding vector information, which can be implemented through the following detailed steps.
[0138] First, the system will select the hth text semantic embedding vector information and the query data cleaning result for knowledge vector integration. The hth text semantic embedding vector information here may be obtained from the previous step, which contains the semantic features and structural information of the query text. The query data cleaning result is the original query data after cleaning and sorting. It removes noise and redundant information and is more suitable for subsequent vector embedding processing. Knowledge vector integration is a method of fusing multiple vector information into a more representative vector. It can help the system extract key features from the query text and data cleaning results, and fuse them into a new vector representation.
[0139] Through knowledge vector integration, the system will obtain a second query text integrated knowledge vector. This vector not only contains the feature information of the original query text and the data cleaning result, but also may generate new feature information through the interaction between vectors, thereby more comprehensively reflecting the characteristics of the query behavior.
[0140] Next, the system will perform cyclic text vector embedding processing on the second query text integrated knowledge vector. Circular text vector embedding processing is a special text vector embedding method that can capture the sequence dependencies between texts and convert texts into vector representations. In this process, the system will use deep learning technologies such as recurrent neural networks to perform cyclic processing on the second query text integrated knowledge vector, gradually extract the sequence features and semantic information in the text, and convert it into a vector representation.
[0141] Through the cyclic text vector embedding process, the system will obtain multiple query text embedding vector information. These vector information correspond to the features and semantic information of the query text at different levels, which can be used for subsequent query feature mapping and query optimization operations.
[0142] In summary, through a series of steps such as knowledge vector integration and cyclic text vector embedding processing, the system can extract and fuse key features from query text and data cleaning results into vector representation, thereby obtaining multiple query text embedding vector information. This information provides strong data support for subsequent query feature mining and query optimization.
[0143] In the next step, a cyclic query feature mapping operation is performed on the rth text semantic embedding vector information among the multiple text semantic embedding vector information according to the query feature linear mapping information and the query text embedding vector information to obtain the second DNS query data, including: performing a cyclic query feature mapping operation on the rth text semantic embedding vector information according to the query feature linear mapping information and the query text embedding vector information to obtain second query annotation information, wherein the second query annotation information is used to indicate the judgment point of view of the first query annotation information; performing text knowledge vector enhancement on the query text preprocessing data according to the second query annotation information to obtain text vector enhancement knowledge, wherein the text vector enhancement knowledge is used to reflect the DNS query element variables corresponding to the DNS query data after the query text preprocessing data removes the second query annotation information; performing DNS query data parsing processing on the text vector enhancement knowledge to obtain the second DNS query data.
[0144] In the next step, the system performs a cyclic query feature mapping operation on the rth text semantic embedding vector information in the multiple text semantic embedding vector information according to the query feature linear mapping information and the query text embedding vector information to obtain the second DNS query data. This process is specifically implemented by the following steps.
[0145] First, the system uses the query feature linear mapping information and the query text embedding vector information to perform a cyclic query feature mapping operation on the rth text semantic embedding vector information. The cyclic query feature mapping operation here is an iterative process that gradually extracts text features related to the query feature by continuously mapping the query feature to the text semantic embedding vector. This mapping operation may involve steps such as linear transformation of the vector and application of nonlinear activation functions, depending on the model and method used.
[0146] By looping through the query feature mapping operation, the system will obtain the second query annotation information. The second query annotation information is information used to indicate the discriminant viewpoint of the first query annotation information, which can help the system understand and identify the intent and goal of the query text more accurately. For example, if the first query annotation information is a query about a domain name, then the second query annotation information may contain more detailed information about the domain name, such as the owner of the domain name, registration time, associated IP address, etc.
[0147] Next, the system will perform text knowledge vector enhancement on the query text preprocessing data based on the second query annotation information. Text knowledge vector enhancement is a method of using external knowledge sources to enhance text vector representation, which can help the system extract more features and information related to the query. In this process, the system will use the second query annotation information as an external knowledge source and fuse it with the query text preprocessing data to obtain text vector enhanced knowledge. This enhanced knowledge not only contains the information of the original query text, but also incorporates other knowledge and features related to the query.
[0148] Finally, the system will perform DNS query data parsing on the text vector reinforcement knowledge. DNS query data parsing is the process of converting reinforcement knowledge into DNS query format, which can help the system convert reinforcement knowledge into practical and usable DNS query data. In this process, the system may use the DNS protocol and query rules to parse the reinforcement knowledge into domain names, IP addresses and other information that conform to the DNS query format. Finally, the system will output the second DNS query data, which is an optimized and enhanced DNS query result that better meets the user's needs and query goals.
[0149] In summary, through a series of steps such as cyclic query feature mapping operation, text knowledge vector enhancement and DNS query data parsing and processing, the system can optimize and enhance the query text and obtain more accurate and effective second DNS query data. This not only improves the accuracy and efficiency of the query, but also helps to improve user experience and query satisfaction.
[0150] In some optional embodiments, before performing a query feature mapping operation on at least one query text embedding vector information among the multiple query text embedding vector information to obtain at least one query feature linear mapping information, the method further includes: performing an embedding vector decomposition on the target query text embedding vector information among the multiple query text embedding vector information to obtain a first embedding vector decomposition result, wherein the first embedding vector decomposition result is used to reflect the query field summary viewpoint in the first DNS query data. Then, performing a cyclic query feature mapping operation on the rth text semantic embedding vector information according to the query feature linear mapping information and the query text embedding vector information to obtain the second query annotation information includes: performing an embedding vector decomposition on the rth text semantic embedding vector information to obtain a second embedding vector decomposition result, wherein the second embedding vector decomposition result is used to reflect the query field summary viewpoint in the query text preprocessing data; performing an embedding vector combination on the first embedding vector decomposition result and the second embedding vector decomposition result to obtain an embedding vector combination result; performing a cyclic query feature mapping operation on the embedding vector combination result according to the query feature linear mapping information and the rth text semantic embedding vector information to obtain the second query annotation information.
[0151] In some optional embodiments, before performing a query feature mapping operation on at least one of the multiple query text embedding vector information, the system first performs embedding vector decomposition on the target query text embedding vector information. The purpose of this step is to more carefully analyze and understand the information contained in the query text embedding vector, especially the summarized viewpoints related to the query field.
[0152] Specifically, embedding vector decomposition is a method of splitting complex vector representations into simpler and more understandable parts. In this process, the system selects the target query text embedding vector information from multiple query text embedding vector information and decompositions it. The result of the decomposition, that is, the first embedding vector decomposition result, will be used to reflect the query field summary view in the first DNS query data. In other words, it extracts and highlights the key information and features related to the query field.
[0153] Next, when the system performs a cyclic query feature mapping operation on the rth text semantic embedding vector information based on the query feature linear mapping information and the query text embedding vector information, it will first perform a similar embedding vector disassembly operation on the vector information. This will produce a second embedding vector disassembly result, which is used to reflect the query field summary view in the query text preprocessing data. Similarly, this step is intended to extract and emphasize key information and features related to the query field.
[0154] The system then combines the first embedding vector decomposition result with the second embedding vector decomposition result. Embedding vector combination is a method of combining multiple vector representations into a more comprehensive and richer vector representation. By combining the two decomposition results, the system is able to fuse information from different query text embedding vectors to obtain a more comprehensive and accurate representation of the query field summary point of view.
[0155] Finally, the system will perform a cyclic query feature mapping operation on the embedding vector combination result based on the query feature linear mapping information and the rth text semantic embedding vector information. This step aims to map the query feature to the combined vector representation to further extract and emphasize the key information and features related to the query feature. Finally, the system will obtain the second query annotation information, which is an important basis for indicating the discriminant view of the first query annotation information.
[0156] Through this processing flow, the system can more deeply analyze and understand the information contained in the query text embedding vector, especially the key information and features related to the query field and query characteristics. This will help improve the accuracy and efficiency of subsequent query processing.
[0157] In some preferred design ideas, the risk query behavior prediction viewpoint of the DNS query session event includes the positioning features and types of network security risks in the DNS query session event. The risk query behavior prediction viewpoint corresponding to the first DNS query data is determined based on the data commonality index between the first DNS query data and the second DNS query data, including: mining first DNS query element variables corresponding to the first DNS query data, and mining second DNS query element variables corresponding to the second DNS query data; obtaining a network security risk thermal relationship network based on the Euclidean commonality weight between the first DNS query element variables and the second DNS query element variables, wherein the thermal unit in the network security risk thermal relationship network is used to indicate the difference between the thermal unit in the first DNS query data and the thermal unit in the second DNS query data; performing risk vector derivation on the network security risk thermal relationship network to obtain a network security risk positioning relationship network, wherein the network security risk positioning relationship network is used to indicate the positioning features of the network security risk in the DNS query session event; performing risk discrimination operation on the network security risk positioning relationship network to obtain the types of network security risks; and using the network security risk positioning relationship network and the types of network security risks as the risk query behavior prediction viewpoint.
[0158] Under some preferred design ideas, the system has made a more in-depth and detailed processing of the risk query behavior prediction view of DNS query session events. This view not only includes the positioning characteristics of DNS query session events that have network security risks, but also covers the specific types of network security risks. In order to determine this prediction view, the system performs a series of complex operations.
[0159] First, the system mines the query element variables corresponding to the first DNS query data and the second DNS query data respectively. These query element variables are the basic components of DNS query data, and they contain rich information, such as the queried domain name, query time, query source IP address, etc. By mining these query element variables, the system can more comprehensively understand the characteristics and connotations of DNS query data.
[0160] Next, the system will construct a network security risk thermal relationship network based on the Euclidean commonality weights between the first DNS query factor variables and the second DNS query factor variables. The Euclidean commonality weight is an indicator that measures the similarity or correlation between two variables. It can help the system identify the commonalities and differences between the first DNS query data and the second DNS query data. The thermal units in the network security risk thermal relationship network are used to indicate the representation of these commonalities and differences on the heat map, thereby helping the system to more intuitively understand the relationship between DNS query data.
[0161] Then, the system will perform risk vector derivation on the network security risk thermal relationship network to obtain the network security risk location relationship network. Risk vector derivation is a method of converting the information in the heat map into a vector representation, which can help the system extract features and information related to network security risks. The network security risk location relationship network is used to indicate the location features of network security risks in DNS query session events, such as the IP address of the risk source and the domain name of the risk target.
[0162] Finally, the system will perform risk identification operations on the network security risk positioning relationship network to determine the specific types of network security risks. Risk identification operations are a method of classifying and judging unknown things based on known information and rules. It can help the system accurately identify the types of network security risks, such as DDoS attacks, domain name hijacking, etc. Ultimately, the system outputs the network security risk positioning relationship network and network security risk types as risk query behavior prediction viewpoints, providing strong support for subsequent network security protection and response measures.
[0163] Through such a processing flow, the system can more comprehensively and accurately predict the risky query behavior of DNS query session events, thereby timely discovering and responding to potential network security threats. This not only improves the network security protection capability, but also protects the legitimate rights and interests of users and the normal operation of the network.
[0164] In some alternative embodiments, the performing query feature mining on the first DNS query data to obtain a query feature description vector includes: entering the first DNS query data into a query feature mining algorithm obtained through pre-debugging, and outputting the query feature description vector; the performing a query text optimization operation on the query text pre-processing data based on the query feature description vector to obtain the second DNS query data includes: entering the query feature description vector and the query text pre-processing data into a DNS query data optimization algorithm obtained through pre-debugging, and obtaining the second DNS query data.
[0165] In some alternative embodiments, the system performs query feature mining on the first DNS query data, and performs optimization operations on the query text preprocessing data based on the mining results to generate the second DNS query data. The following are detailed implementation steps and explanations.
[0166] First, the system will enter the first DNS query data into the query feature mining algorithm that has been debugged in advance. The query feature mining algorithm is an algorithm specifically designed to analyze and extract specific features from DNS query data. These features may include the frequency, pattern, source, target, etc. of the query, which help the system to understand the nature and purpose of the query data more deeply. By running the query feature mining algorithm, the system will output a query feature description vector. This vector is a multi-dimensional numerical representation that captures various query features in the first DNS query data and provides a basis for subsequent optimization operations.
[0167] Next, the system will perform query text optimization operations on the query text preprocessing data based on the query feature description vector. Specifically, the system enters the query feature description vector and the query text preprocessing data into the DNS query data optimization algorithm debugged in advance. The DNS query data optimization algorithm is an algorithm that uses the query feature description vector to optimize and improve the original query data. It may include a series of complex mathematical operations and logical processing, such as vector mapping, feature selection, weight adjustment, etc., to ensure that the optimized query data is more accurate, efficient and reliable.
[0168] By running the DNS query data optimization algorithm, the system will obtain the second DNS query data. This data is the query result after optimization processing. It not only retains the basic information and structure of the original query data, but also incorporates the beneficial characteristics of the query feature description vector. Therefore, the second DNS query data may be improved in terms of query efficiency, accuracy and security compared to the original data. Such optimization operations help the system better meet the query needs of users and improve the overall quality and efficiency of DNS services.
[0169] In the next step, before the first DNS query data is entered into the query feature mining algorithm obtained by pre-debugging and the query feature description vector is output, it also includes: obtaining query text preprocessing data corresponding to the first DNS query data debugging sample, the query text preprocessing data is text information obtained by setting the first query annotation information debugging sample for the first DNS query data debugging sample; entering the first DNS query data debugging sample into the initial query feature mining algorithm, and outputting the query feature description vector; entering the query feature description vector and the query text preprocessing data into the initial DNS query data optimization algorithm, and outputting the first query annotation information training result; debugging the initial query feature mining algorithm and the initial DNS query data optimization algorithm according to the difference between the first query annotation information debugging sample and the first query annotation information training result to obtain the query feature mining algorithm and the DNS query data optimization algorithm.
[0170] In the next steps, the system will go through an algorithm training and debugging process in order to generate an efficient query feature mining algorithm and DNS query data optimization algorithm. The following are the detailed implementation steps and explanations.
[0171] First, the system will obtain the query text preprocessing data corresponding to the first DNS query data debugging sample. These query text preprocessing data are text information obtained after a series of preprocessing operations are performed on the first DNS query data debugging sample. The preprocessing operations may include removing irrelevant characters, standardizing text formats, extracting key fields, etc. At the same time, these query text preprocessing data are also set with the first query annotation information debugging sample. These annotation information are used to indicate the key features and target outputs in the query data, and provide supervision signals for subsequent algorithm training.
[0172] Next, the system enters the first DNS query data debugging sample into the initial query feature mining algorithm. The initial query feature mining algorithm is an undebugged basic algorithm for extracting DNS query data features. By running this algorithm, the system will output a query feature description vector, which captures the key features of the query data and provides a basis for subsequent optimization operations.
[0173] Then, the system enters the query feature description vector and the query text preprocessing data into the initial DNS query data optimization algorithm. The initial DNS query data optimization algorithm is an undebugged basic algorithm used to optimize and improve the original query data. By running this algorithm, the system will output the first query annotation information training result, which is the output after optimizing the query text preprocessing data. It should be as close as possible to the first query annotation information debugging sample to ensure the effectiveness of the optimization algorithm.
[0174] Finally, the system will debug the initial query feature mining algorithm and the initial DNS query data optimization algorithm based on the difference between the first query annotation information debugging sample and the first query annotation information training result. The debugging process may include adjusting algorithm parameters, optimizing algorithm structure, adding training data, etc., to reduce the difference between the training results and the debugging sample, and improve the accuracy and generalization ability of the algorithm. After multiple rounds of iteration and debugging, the system will obtain the final query feature mining algorithm and DNS query data optimization algorithm, which will be used in subsequent actual query data processing.
[0175] In some independent embodiments, the debugging of the initial query feature mining algorithm and the initial DNS query data optimization algorithm based on the difference between the first query annotation information debugging sample and the first query annotation information training result to obtain the query feature mining algorithm and the DNS query data optimization algorithm includes the following sub-steps:
[0176] Sub-step 1: calculating a discrimination index, by comparing the difference between the first query annotation information debugging sample and the first query annotation information training result, generating one or more discrimination indexes, wherein the discrimination indexes are used to quantify the difference;
[0177] Sub-step 2: determining debugging parameters, and determining algorithm parameters that need to be adjusted based on the discrimination index, wherein the algorithm parameters include at least one parameter of the initial query feature mining algorithm and the initial DNS query data optimization algorithm;
[0178] Sub-step 3: adjusting algorithm parameters, adjusting corresponding parameters in the initial query feature mining algorithm and / or the initial DNS query data optimization algorithm according to the determined debugging parameters;
[0179] Sub-step 4: retraining and verification, using the adjusted algorithm parameters to retrain the first DNS query data debugging sample and generate new query annotation information training results;
[0180] Sub-step 5: Evaluate performance improvement, compare the consistency between the new query annotation information training results and the first query annotation information debugging sample to evaluate whether the algorithm performance has improved;
[0181] Sub-step 6: Iterative optimization. If the performance does not meet the predetermined standard, repeat sub-steps 2 to 5, and continuously optimize the algorithm parameters in an iterative manner until the algorithm performance meets the predetermined standard, thereby obtaining the debugged query feature mining algorithm and DNS query data optimization algorithm.
[0182] In detail, the system compares the difference between the first query annotation information debugging sample and the first query annotation information training result. This difference can be measured by various statistical methods or machine learning evaluation indicators, such as accuracy, recall, F1 score or loss function value. The system quantifies these differences into one or more distinguishability indicators, which provide clear directions and goals for subsequent debugging. Based on the calculated distinguishability indicators, the system analyzes which algorithm parameters have a greater impact on performance and determines the algorithm parameters that need to be adjusted. These parameters may include learning rate, number of iterations, regularization strength, feature selection method, etc., which respectively affect the convergence speed of the algorithm, model complexity, overfitting risk, etc. According to the determined debugging parameters, the system adjusts the corresponding parameters in the initial query feature mining algorithm and / or the initial DNS query data optimization algorithm. The adjustment method can be manual or automatic, such as using a hyperparameter optimization algorithm (such as grid search, random search or Bayesian optimization, etc.) to automatically find the best parameter combination. Using the adjusted algorithm parameters, the system retrains the first DNS query data debugging sample and generates new query annotation information training results. This process may involve multiple iterations and verifications to ensure that the algorithm can achieve better performance under the new parameter settings. The system compares the consistency between the new query annotation information training results and the first query annotation information debugging sample to evaluate whether the algorithm performance has improved. This consistency can be measured by calculating evaluation indicators such as accuracy, recall, and F1 score. If the performance has improved, it means that the debugging is effective; otherwise, it is necessary to further analyze the reasons and adjust the debugging strategy. If the algorithm performance does not meet the predetermined standards (such as the accuracy is lower than a certain threshold), the system will repeat the process of sub-steps 2 to 5, and continuously optimize the algorithm parameters in an iterative manner. This process may continue for multiple rounds until the algorithm performance meets the predetermined standards. In the end, the system will obtain the debugged query feature mining algorithm and DNS query data optimization algorithm, which will be able to process and analyze DNS query data more accurately in subsequent practical applications.
[0183] In some other independent embodiments, sub-step 3 includes:
[0184] Parameter sensitivity analysis: Perform sensitivity analysis on each parameter in the initial query feature mining algorithm and the initial DNS query data optimization algorithm. By changing the value of one parameter while keeping other parameters unchanged, observe the change in algorithm performance. Use gradient descent, random search, or Bayesian optimization to explore the parameter space, determine the sensitive parameters that have the greatest impact on algorithm performance, and mark them as key debugging parameters.
[0185] Parameter optimization strategy formulation: formulate parameter optimization strategy based on the results of sensitivity analysis, select the parameters that have the greatest impact on algorithm performance, determine the value range or candidate value list for each key debugging parameter, and comprehensively consider the interactions and dependencies between parameters;
[0186] Use of automated parameter tuning tools to automatically search for the best parameter combination based on performance evaluation indicators and parameter value ranges, set search algorithms and search spaces, and configure stopping criteria to find satisfactory parameter settings within the specified computing resources;
[0187] Verification and evaluation of parameter adjustment results. Use the validation data set to evaluate the algorithm performance after each parameter adjustment. Record the adjusted parameters and corresponding performance evaluation results for subsequent analysis and comparison, track the changing trend of algorithm performance, determine the contribution of parameter adjustment to performance improvement, and roll back to the previous parameter settings when the performance variables converge.
[0188] (1) Parameter sensitivity analysis
[0189] First, a sensitivity analysis is performed on each parameter in the initial query feature mining algorithm and the initial DNS query data optimization algorithm. This can be achieved by changing the value of one parameter while keeping other parameters unchanged and then observing the changes in the algorithm performance.
[0190] Use methods such as gradient descent, random search, or Bayesian optimization to explore the parameter space and determine which parameters have the greatest impact on the performance of the algorithm.
[0191] Mark these sensitive parameters as key debugging parameters so that they can be focused on during subsequent debugging.
[0192] (2) Parameter optimization strategy formulation
[0193] Based on the results of the sensitivity analysis, develop a parameter optimization strategy that should prioritize those parameters that have the greatest impact on the algorithm's performance.
[0194] For each key debugging parameter, determine a reasonable value range or a list of candidate values. These values can be determined based on previous experience, domain knowledge, or experimental data.
[0195] Consider the interactions and dependencies between parameters. Sometimes, the optimal values of certain parameters may depend on the settings of other parameters. Therefore, when formulating an optimization strategy, it is necessary to consider the combined effects of multiple parameters.
[0196] (3) Use of automated parameter adjustment tools
[0197] Use automated parameter adjustment tools, such as hyperparameter optimization libraries (such as Hyperopt, Optuna, etc.), to automatically adjust algorithm parameters. These tools can automatically search for the best parameter combination based on the provided performance evaluation indicators and parameter value ranges.
[0198] Set appropriate search algorithms and search spaces to balance search efficiency and the possibility of finding the global optimal solution. For example, a search algorithm based on Bayesian optimization can be used to handle continuous parameters, while grid search or random search can be used to handle discrete parameters.
[0199] Configure stopping criteria for automated parameter tuning tools, such as maximum number of iterations, performance improvement threshold, or time limit. These criteria can help find satisfactory parameter settings within reasonable computing resources.
[0200] (4) Verification and evaluation of parameter adjustment results
[0201] After each parameter tuning, use the validation dataset to evaluate the performance of the algorithm. This can be done by calculating precision, recall, F1 score or other relevant metrics.
[0202] Record the adjusted parameters and the corresponding performance evaluation results for subsequent analysis and comparison. This helps track the changing trends of algorithm performance and determine which parameter adjustments contribute the most to performance improvement.
[0203] If you notice a performance degradation or no significant improvement, roll back to the previous parameter settings or try another optimization strategy. This can be done through version control or parameter history to ensure that you can easily roll back to a previous valid configuration.
[0204] Through the above sub-steps, the algorithm parameters can be systematically adjusted to optimize the corresponding parameters in the initial query feature mining algorithm and the initial DNS query data optimization algorithm according to the determined debugging parameters. This method combines sensitivity analysis, parameter optimization strategy formulation, the use of automated parameter adjustment tools, and result verification and evaluation to ensure the effectiveness and creativity of the adjustment process.
[0205] Figure 2The structural block diagram of the text data analysis system 300 is shown, which includes: a memory 310 for storing program instructions and data; a processor 320 for coupling with the memory 310 and executing the instructions in the memory 310 to implement the above method.
[0206] Furthermore, a computer storage medium is provided, comprising instructions, which implement the above method when executed on a processor.
[0207] In several embodiments provided in the embodiments of the present application, it should be understood that the disclosed device and method can also be implemented in other ways. The device and method embodiments described above are merely schematic, for example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the device, method and computer program product according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0208] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0209] If the function is implemented in the form of a software function module 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 the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code. It should be noted that in this article, the term "include", "include" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements that are not explicitly listed, or also includes elements inherent to such process, method, article or device. Without more constraints, an element defined by the phrase "comprising a..." does not exclude the existence of other identical elements in the process, method, article or apparatus comprising the element.
[0210] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A DNS query text data analysis method based on machine learning, characterized in that: Applied to a text data analysis system, the method comprises: Acquire query text preprocessing data corresponding to first DNS query data, wherein the query text preprocessing data is text information obtained by setting first query annotation information for the first DNS query data, wherein the first DNS query data includes a DNS query session event; Performing query feature mining on the first DNS query data to obtain a query feature description vector, where the query feature description vector is used to reflect element features of the DNS query session event in the first DNS query data; Performing a query text optimization operation on the query text preprocessing data according to the query characteristic description vector to obtain second DNS query data; Determining, according to a data commonality index between the first DNS query data and the second DNS query data, a risk query behavior prediction viewpoint corresponding to the first DNS query data, wherein the risk query behavior prediction viewpoint includes a risk DNS query behavior label of the DNS query session event; The performing query characteristic mining on the first DNS query data to obtain a query characteristic description vector includes: Performing query data cleaning processing on the first DNS query data to obtain a query data cleaning result; Performing a cyclic text vector embedding process on the query data cleaning result to obtain multiple query text embedding vector information, wherein the u+1th query text embedding vector information is obtained by performing a text vector embedding operation on the uth query text embedding vector information, and the multiple query text embedding vector information respectively correspond to different query attention levels, and u is a positive integer; A query characteristic mapping operation is performed on at least one query text embedding vector information among the multiple query text embedding vector information to obtain at least one query characteristic linear mapping information.
2. The method according to claim 1, characterized in that The performing a query characteristic mapping operation on at least one query text embedding vector information among the plurality of query text embedding vector information to obtain at least one query characteristic linear mapping information includes: Performing knowledge vector integration on at least two query text embedding vector information among the multiple query text embedding vector information to obtain a first query text integrated knowledge vector; Performing a query characteristic mapping operation on the first query text integrated knowledge vector to obtain the query characteristic linear mapping information; Among them, the at least two query text embedding vector information include the v-th query text embedding vector information and the w-th query text embedding vector information, the v-th query text embedding vector information includes the x-order first local query text embedding vector, and the w-th query text embedding vector information includes the x-order second local query text embedding vector, and v, w and x are positive integers; the at least two query text embedding vector information among the multiple query text embedding vector information are integrated with knowledge vectors to obtain the first query text integrated knowledge vector, including: performing residual processing on the x-order second local query text embedding vector respectively to obtain x residual processing results; performing knowledge vector integration on the x residual processing results and the y-th order first local query text embedding vector to obtain the y-th order first local query text integrated knowledge vector, where y is greater than 0 and less than or equal to x, and y is an integer; and obtaining the first query text integrated knowledge vector based on the x-order first local query text integrated knowledge vector.
3. The method according to claim 1, characterized in that The step of performing a query text optimization operation on the query text preprocessing data according to the query characteristic description vector to obtain second DNS query data includes: Performing cyclic text vector embedding processing on the query text preprocessing data to obtain multiple text semantic embedding vector information; A cyclic query characteristic mapping operation is performed on the rth text semantic embedding vector information among the multiple text semantic embedding vector information according to the query characteristic linear mapping information and the query text embedding vector information to obtain the second DNS query data, where r is a positive integer.
4. The method according to claim 3, characterized in that: The step of performing cyclic text vector embedding processing on the query data cleaning result to obtain multiple query text embedding vector information includes: Performing knowledge vector integration on the h-th text semantic embedding vector information and the query data cleaning result to obtain a second query text integrated knowledge vector, wherein h<r and h is a positive integer; The second query text integrated knowledge vector is subjected to cyclic text vector embedding processing to obtain a plurality of query text embedding vector information.
5. The method according to claim 3, characterized in that: The step of performing a cyclic query characteristic mapping operation on the rth text semantic embedding vector information among the multiple text semantic embedding vector information according to the query characteristic linear mapping information and the query text embedding vector information to obtain the second DNS query data includes: Performing a cyclic query feature mapping operation on the rth text semantic embedding vector information according to the query feature linear mapping information and the query text embedding vector information to obtain second query annotation information, where the second query annotation information is used to indicate a judgment point of view of the first query annotation information; Performing text knowledge vector enhancement on the query text preprocessing data according to the second query annotation information to obtain text vector enhancement knowledge, wherein the text vector enhancement knowledge is used to reflect the DNS query element variables corresponding to the DNS query data after the query text preprocessing data removes the second query annotation information; Performing DNS query data parsing processing on the text vector reinforcement knowledge to obtain the second DNS query data; Among them, before performing a query feature mapping operation on at least one query text embedding vector information among the multiple query text embedding vector information to obtain at least one query feature linear mapping information, it also includes: performing an embedding vector decomposition on the target query text embedding vector information among the multiple query text embedding vector information to obtain a first embedding vector decomposition result, and the first embedding vector decomposition result is used to reflect the query field summary viewpoint in the first DNS query data; performing a cyclic query feature mapping operation on the rth text semantic embedding vector information based on the query feature linear mapping information and the query text embedding vector information to obtain the second query annotation information, including: performing an embedding vector decomposition on the rth text semantic embedding vector information to obtain a second embedding vector decomposition result, and the second embedding vector decomposition result is used to reflect the query field summary viewpoint in the query text preprocessing data; performing an embedding vector combination on the first embedding vector decomposition result and the second embedding vector decomposition result to obtain an embedding vector combination result; performing a cyclic query feature mapping operation on the embedding vector combination result based on the query feature linear mapping information and the rth text semantic embedding vector information to obtain the second query annotation information.
6. The method according to claim 1, characterized in that The risk query behavior prediction viewpoint of the DNS query session event includes the location characteristics and the type of network security risk of the DNS query session event. The risk query behavior prediction viewpoint corresponding to the first DNS query data is determined based on the data commonality index between the first DNS query data and the second DNS query data, including: mining a first DNS query element variable corresponding to the first DNS query data, and mining a second DNS query element variable corresponding to the second DNS query data; According to the Euclidean commonality weight between the first DNS query element variable and the second DNS query element variable, a network security risk thermal relationship network is obtained, wherein the thermal unit in the network security risk thermal relationship network is used to indicate the difference between the thermal unit in the first DNS query data and the thermal unit in the second DNS query data; Performing risk vector derivation on the network security risk thermal relationship network to obtain a network security risk positioning relationship network, wherein the network security risk positioning relationship network is used to indicate that the DNS query session event has positioning features of network security risks; Performing a risk identification operation on the network security risk positioning relationship network to obtain the network security risk type; The network security risk positioning relationship network and the network security risk types are used as the risk query behavior prediction viewpoints.
7. The method according to claim 1, characterized in that The performing query characteristic mining on the first DNS query data to obtain the query characteristic description vector includes: inputting the first DNS query data into a query characteristic mining algorithm obtained by debugging in advance, and outputting the query characteristic description vector; The step of performing a query text optimization operation on the query text preprocessing data according to the query characteristic description vector to obtain the second DNS query data includes: inputting the query characteristic description vector and the query text preprocessing data into a DNS query data optimization algorithm obtained by prior debugging to obtain the second DNS query data; Among them, before the first DNS query data is entered into the query feature mining algorithm obtained by pre-debugging and the query feature description vector is output, it also includes: obtaining query text preprocessing data corresponding to the first DNS query data debugging sample, the query text preprocessing data is text information obtained by setting the first query annotation information debugging sample for the first DNS query data debugging sample; entering the first DNS query data debugging sample into the initial query feature mining algorithm, and outputting the query feature description vector; entering the query feature description vector and the query text preprocessing data into the initial DNS query data optimization algorithm, and outputting the first query annotation information training result; debugging the initial query feature mining algorithm and the initial DNS query data optimization algorithm according to the difference between the first query annotation information debugging sample and the first query annotation information training result to obtain the query feature mining algorithm and the DNS query data optimization algorithm.
8. A text data analysis system, characterized in that: include: Memory, used to store program instructions and data; A processor, coupled to a memory, and configured to execute instructions in the memory to implement the method according to any one of claims 1 to 7.
9. A computer storage medium, characterized in that Contains instructions, which, when executed on a processor, implement the method according to any one of claims 1 to 7.
