A Covert Network Channel Detection Method

By using a combination of filtering model and covert channel detection model in DNS traffic, in-depth analysis of DNS message feature information solves the problem of low efficiency and accuracy of covert network channel detection in the existing technology, and achieves efficient detection of DNS covert channels. Identify and block, enhancing network security.

CN116614262BActive Publication Date: 2024-10-25HUANENG INFORMATION TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310474208.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-27
Publication Date
2024-10-25
Estimated Expiration
2043-04-27

AI Technical Summary

Technical Problem

Existing covert network channel detection technology is inefficient and accurate, and cannot effectively identify encrypted data and unknown covert channels. In particular, DNS covert channels are widely used in network attacks and have not received enough attention.

Method used

By establishing a cache server to monitor DNS traffic, we conduct black and white domain name analysis based on the filtering model, and conduct in-depth analysis of gray domain name DNS data. We use static and dynamic filtering models combined with covert channel detection models to extract basic feature information of DNS messages, and perform in-depth analysis to identify hidden information.

Benefits of technology

It improves the efficiency and accuracy of covert network channel detection, can effectively identify and block abnormal behavior of gray domain name DNS data, and enhances network security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116614262B_ABST
    Figure CN116614262B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of network traffic monitoring, and discloses a method for detecting a covert network channel, including: establishing a cache server, monitoring DNS traffic within a preset time period; performing black and white domain name analysis on DNS traffic based on a filtering model, determining white domain names, gray domain names and black domain names; blocking black domain name DNS data, performing in-depth analysis on gray domain name DNS data, judging whether the gray domain name DNS data has abnormal behavior, and when there is abnormal behavior, blocking gray domain name DNS data with abnormal behavior; performing in-depth analysis on gray domain name DNS data, judging whether the gray domain name DNS data has abnormal behavior, including: obtaining DNS messages of gray domain name DNS data; classifying and refining DNS messages to extract basic feature information; inputting basic feature information into a covert channel detection model, performing in-depth analysis on the basic feature information, and determining whether there is hidden information. The present invention solves the problems of low efficiency and low accuracy in detecting covert network channels.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of network flow monitoring, and in particular to a covert network channel detection method. Background Art

[0002] Network covert channels are an important way for attackers to bypass network security policies and transmit data. In other words, covert channels can be used to evade security monitoring based on security policies and transmit data. Common means of implementing application layer covert channels include Hyper Text Transfer Protocol (HTTP), Domain Name System (DNS), and Internet Control Message Protocol (ICMP).

[0003] DNS (Domain Name System) is a distributed, static hierarchical, client / server database management system. DNS channel is the most common type of covert channel. It transmits data by encapsulating other data in the DNS protocol. Since most networks do not filter DNS traffic, this provides conditions for DNS to be used as a covert channel, so that it can be used to implement operations such as remote control and file transfer. Malware takes advantage of this and builds tunnels in the DNS protocol to perform command control and data theft, such as receiving instructions through DNS responses and using DNS query requests to transmit stolen data, such as sensitive information of users or enterprises. DNS covert channels also often play an important role in botnets and APT attacks.

[0004] The data packets of the DNS protocol are transmitted without restriction, making DNS communication widely used by hackers as a covert channel in multiple links of the entire attack chain. By studying DNS traffic or data, network security attacks and abnormal behaviors can be discovered. Although many companies are doing their best to deal with network security threats in order to detect and avoid network attacks, unfortunately, most companies do not pay enough attention to DNS security, which puts the company's data, assets and reputation at risk. Since DNS is a protocol that is allowed to be transmitted by the security policy in the firewall. Existing technologies usually use detection technology based on feature matching to detect covert channels. A feature database is maintained in network detection devices such as firewalls, and the content of the message flowing through the firewall is matched with the features in the feature database. However, this simple string matching detection technology cannot detect encrypted data, has a high false alarm rate, and cannot identify unknown covert channels. Summary of the invention

[0005] The present invention provides a covert network channel detection method, which solves the problems of low efficiency and low accuracy in covert network channel detection.

[0006] To achieve the above-mentioned purpose, the present invention provides the following scheme: The present invention provides a covert network channel detection method, including: establishing a cache server to monitor DNS traffic within a preset time period; performing black and white domain name analysis on the DNS traffic based on a filtering model to determine white domain names, gray domain names and black domain names; blocking the black domain name DNS data, performing in-depth analysis on the gray domain name DNS data, determining whether the gray domain name DNS data has abnormal behavior, and when there is abnormal behavior, blocking the gray domain name DNS data with abnormal behavior;

[0007] The gray domain name DNS data is deeply analyzed to determine whether the gray domain name DNS data has abnormal behavior, including: obtaining the DNS message of the gray domain name DNS data; classifying and refining the DNS message to extract basic feature information; inputting each basic feature information into a covert channel detection model, and deeply analyzing the basic feature information to determine whether there is hidden information.

[0008] In one embodiment, the establishment of the filtering model includes: establishing an initial filtering model based on the data sample, the sample data is the historical DNS traffic data passing through the cache server within a preset time; dividing the sample data into training data and verification data according to preset conditions; training the initial filtering model based on the training data; testing the trained initial filtering model based on the verification data, and outputting the filtering model that meets the preset indicators.

[0009] In one of the embodiments, the filtering model includes a static filtering model and a dynamic filtering model.

[0010] In one of the embodiments, establishing an initial static filtering model includes defining an input layer and an output layer, selecting domain name length, digital ratio, digital-letter exchange ratio, number and ratio of causal consonants, domain name type and non-adjacent letters as input variables, and the input dimension m=6; using white domain name, gray domain name and black domain name as output variables, and the output dimension n=3; selecting the number of hidden layers and the number of hidden layer units, using a single hidden layer, and determining the number of hidden layer nodes to be 7 according to the deletion method.

[0011] In one of the embodiments, establishing an initial static filtering model includes defining an input layer and an output layer, selecting a domain name pointing to a loopback address, an IP address, a domain name resolution time, a DNS resolution request packet size, and a heartbeat domain name as input variables, and the input dimension m=5; using a white domain name, a gray domain name, and a black domain name as output variables, and the output dimension n=3; selecting the number of hidden layers and the number of hidden layer units, using a single hidden layer, and determining the number of hidden layer nodes to be 6 according to the deletion method.

[0012] In one of the embodiments, the establishment of the covert channel detection model includes: collecting historical data of DNS messages with hidden information and establishing a historical database; performing encoding analysis on the DNS messages with hidden information to determine the hidden information encoding method and rules of the DNS messages with hidden information; and establishing a covert channel detection model based on the encoding method and rules of the hidden information.

[0013] In one of the embodiments, each of the basic feature information is input into a covert channel detection model, and the basic feature information is deeply analyzed to determine whether there is hidden information, including: inputting each of the basic feature information into a covert channel detection model to determine whether the encoding of the basic feature information has the encoding method and regularity of the hidden information; when it is detected that the encoding of the basic feature information has the encoding method and regularity of the hidden information, it is determined that the gray domain name DNS data has hidden information.

[0014] In one of the embodiments, after the covert channel detection model is established, the covert channel detection model is trained and verified.

[0015] In one of the embodiments, the DNS message includes an infrastructure part, a question part, and a resource record part.

[0016] In one of the embodiments, the basic characteristic information includes unused IP header fields, IP header extension and padding segments, and IP flag segments.

[0017] The technical effect of the present invention is to improve the efficiency of covert network channel detection and improve the accuracy of covert network channel detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0019] Figure 1 is a flow chart of a covert network channel detection method provided by an embodiment of the present invention;

[0020] Figure 2 It is a flow chart of performing in-depth analysis on gray domain name DNS data provided by an embodiment of the present invention;

[0021] Figure 3 It is a flow chart of establishing a covert channel detection model provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0022] The specific implementation of the present invention is further described in detail below in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.

[0023] In the description of the present application, it should be understood that the terms "center", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.

[0024] The terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, unless otherwise specified, "plurality" means two or more.

[0025] In the description of this application, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.

[0026] A covert channel refers to a communication channel that hides information in an open communication medium. In this channel, the information disclosed to the outside only exists as a carrier of secret information, and the secret information is mainly transmitted through the covert channel. In a network covert channel, there are two important factors, the sender and the receiver. The sender transforms the message according to a certain coding rule agreed in advance, and converts the information to be transmitted covertly into a certain characteristic of the network object to complete the hiding of information, that is, the embedding of information, and then uses the open channel to transmit the covert information to the receiver outside the protected network. Network objects can include TCP / IP packets, application layer requests, etc., and the attributes of the object can include some fields, packet interval time, data packet sequence, etc. The receiver obtains the required information through the open channel, analyzes the data packet according to the decoding method agreed in advance, and extracts the hidden information to complete the process of covert communication.

[0027] like Figure 1 As shown, this embodiment discloses a covert network channel detection method, including: step S10, establishing a cache server, monitoring DNS traffic within a preset time period; step S10, performing black and white domain name analysis on the DNS traffic based on a filtering model to determine white domain names, gray domain names and black domain names; step S20, blocking the black domain name DNS data; step S30, performing in-depth analysis on the gray domain name DNS data to determine whether the gray domain name DNS data has abnormal behavior; step S40, when there is abnormal behavior, blocking the gray domain name DNS data with abnormal behavior;

[0028] In step S30, the gray domain name DNS data is deeply analyzed to determine whether the gray domain name DNS data has abnormal behavior, including: step S301, obtaining the DNS message of the gray domain name DNS data; step S302, classifying and refining the DNS message to extract basic feature information; step S303, inputting each basic feature information into the covert channel detection model, deeply analyzing the basic feature information, and determining whether there is hidden information.

[0029] It can be understood that in the above embodiment, by filtering the DNS traffic, white domain names, gray domain names and black domain names are screened out, the scope of covert network channel detection is narrowed, and the efficiency of covert network channel detection is improved; by deeply analyzing the DNS messages of the gray domain name DNS data, it is determined whether there is hidden information, thereby improving the accuracy of covert network channel detection.

[0030] In some specific embodiments, establishing the filtering model includes: establishing an initial filtering model based on the data sample, the sample data being historical DNS traffic data passing through the cache server within a preset time; dividing the sample data into training data and verification data according to preset conditions; training the initial filtering model based on the training data; testing the trained initial filtering model based on the verification data, and outputting the filtering model that meets preset indicators.

[0031] In some specific embodiments, the filtering model includes a static filtering model and a dynamic filtering model.

[0032] It is understandable that in the above embodiments, based on DNS data, a large amount of information on network application behavior can be obtained. By using big data analysis and machine learning, through static filtering model and dynamic filtering model detection and verification, these data can be deeply mined to obtain information such as the use and spread of websites and applications with malicious purposes. By using this information, the current security status and security intelligence of the Internet can be obtained. In conjunction with the protection equipment on the network, it is possible to prevent access to malicious websites, limit the spread of malicious applications, and combat botnets, thereby realizing the analysis, early warning and protection functions of security incidents.

[0033] In some specific embodiments, establishing an initial static filtering model includes defining an input layer and an output layer, selecting domain name length, digital ratio, digital-letter exchange ratio, number and ratio of causal consonants, domain name type and non-adjacent letters as input variables, and the input dimension m=6; using white domain name, gray domain name and black domain name as output variables, and the output dimension n=3; selecting the number of hidden layers and the number of hidden layer units, using a single hidden layer, and determining the number of hidden layer nodes to be 7 according to the deletion method.

[0034] It can be understood that in the above embodiment, an initial static filtering model is established, and the domain names actually monitored are marked as white domain names, gray domain names, and black domain names according to the lexical features of the domain names.

[0035] In some specific embodiments, establishing an initial dynamic filtering model includes defining an input layer and an output layer, selecting a domain name pointing to a loopback address, an IP address, a domain name resolution time, a DNS resolution request packet size, and a heartbeat domain name as input variables, and the input dimension m=5; using a white domain name, a gray domain name, and a black domain name as output variables, and the output dimension n=3; selecting the number of hidden layers and the number of hidden layer units, using a single hidden layer, and determining the number of hidden layer nodes to be 6 according to the deletion method.

[0036] It can be understood that in the above embodiment, an initial dynamic filtering model is established to identify the behavioral characteristics of domain names, and the characteristics of multiple dimensions such as the attributes of domain names, the time and space of domain name requests, the frequency, and communication behavior are comprehensively analyzed and verified with each other, so as to assist in proving the accuracy of the confirmation of white domain names, gray domain names, and black domain names.

[0037] like Figure 3 As shown, in some specific embodiments, the establishment of the covert channel detection model includes: step S1, collecting historical data of DNS messages with hidden information and establishing a historical database; step S2, performing encoding analysis on the DNS messages with hidden information, and determining the hidden information encoding method and rules of the DNS messages with hidden information; step S3, establishing a covert channel detection model based on the encoding method and rules of the hidden information.

[0038] In some specific embodiments, each of the basic feature information is input into a covert channel detection model, and the basic feature information is deeply analyzed to determine whether there is hidden information, including: inputting each of the basic feature information into a covert channel detection model to determine whether the encoding of the basic feature information has the encoding method and regularity of the hidden information; when it is detected that the encoding of the basic feature information has the encoding method and regularity of the hidden information, it is determined that the gray domain name DNS data has hidden information.

[0039] It is understandable that in the above embodiments, due to the differences in the encoding objects used, different encoding methods can be selected for the hidden information. The more commonly used methods include object mapping. This method directly maps the attribute object in the network packet header into binary digits. For example, the domain name is used as a digital identifier. The sender and the attacker agree in advance on eight unused domain names. The sender sends a request query according to the content that needs to be encoded. For example, if the information to be sent is 10010010, the corresponding domain name is queried. These domain names have certain particularities. The local DNS server of the intranet must not have a cache, so it will be queried through the public DNS server, which makes the resolution results of these domain names cached in the public DNS server. The recipient sends a query request for the above eight domain names to the public network. If a domain name has a resolution result, the corresponding bit number is 1, thus completing the hidden transmission of information.

[0040] Therefore, a covert channel detection model is established based on the encoding method and rules of hidden information, which can effectively detect whether the gray domain name DNS data contains hidden information.

[0041] In some specific embodiments, after the covert channel detection model is established, the covert channel detection model is trained and verified.

[0042] It can be understood that in the above embodiment, the covert channel detection model is trained and verified to improve the accuracy of the covert channel detection model analysis. The covert channel detection model is trained and verified, including: extracting DNS messages with hidden information from the historical database, dividing the DNS messages with hidden information into two parts, one part is used to train the covert channel detection model, and the other part is used to verify the covert channel detection model.

[0043] In some specific embodiments, the DNS message includes an infrastructure part, a question part, and a resource record part.

[0044] In some specific embodiments, the basic characteristic information includes unused IP header fields, IP header extension and padding segments, and IP flag segments.

[0045] It can be understood that in the above embodiment, the DNS message format is mainly divided into three parts, including the infrastructure part, the question part, and the resource record part. The infrastructure part includes the transaction ID, the flag, the question count, the number of answer resource records, the authoritative name server count, and the number of additional resource records, and its flag field is divided into several fields; the question part refers to the query question area (Queries) in the message format. This part is used to display the question of the DNS query request, usually only one question. This part contains the query information in progress, including the query name (queried host name), query type, and query class. The resource record part refers to the last three fields in the DNS message format. In order to complete the transmission of hidden information, the information is attached to the fields that are not frequently used, such as unused IP header fields, IP header extension and padding segments, IP flag segments, etc. When performing covert channel detection, these basic feature information can be focused on.

[0046] In the network covert channel, there are mainly two important factors, the information sender and the information receiver. The information sender transforms the message according to a certain coding rule agreed in advance, and converts the information that needs to be transmitted covertly into a certain characteristic of the network object to complete the hiding of the information, that is, the embedding of the information, and then uses the open channel to transmit these hidden information to the receiver outside the protected network. Network objects can include TCP / IP packets, application layer requests, etc.; the attributes of the object can include some fields, packet interval time, data packet sequence, etc. The receiver obtains the required information through the open channel, analyzes the data packet according to the decoding method agreed in advance, and extracts the hidden information to complete the process of covert communication. Including the answer question area field, the authoritative name server area field, and the additional information area field.

[0047] It should be understood that, although each step in the flow chart of each embodiment of the present invention is shown in sequence according to the indication of the arrow, these steps are not necessarily performed in sequence according to the order indicated by the arrow. Unless there is a clear explanation in this article, the execution of these steps does not have strict order restrictions, and these steps can be performed in other orders. Moreover, at least a portion of the steps in each embodiment may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these sub-steps or stages does not have to be performed in sequence, but can be performed in turn or alternately with at least a portion of other steps or sub-steps or stages of other steps.

[0048] Those skilled in the art can understand that the above are only preferred embodiments of the present invention and are not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions recorded in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A covert network channel detection method, characterized in that: include: Establish a cache server to monitor DNS traffic within a preset time period; Performing black and white domain name analysis on the DNS traffic based on the filtering model to determine white domain names, gray domain names, and black domain names; Block the black domain DNS data, conduct in-depth analysis on the gray domain DNS data, determine whether the gray domain DNS data has abnormal behavior, and if there is abnormal behavior, block the gray domain DNS data with abnormal behavior; Performing an in-depth analysis on the gray domain DNS data to determine whether the gray domain DNS data has abnormal behavior, including: obtaining the DNS message of the gray domain DNS data; classifying and refining the DNS message to extract basic feature information; inputting each basic feature information into a covert channel detection model, and performing an in-depth analysis on the basic feature information to determine whether there is hidden information; The filtering model includes a static filtering model and a dynamic filtering model; establishing an initial static filtering model includes defining an input layer and an output layer, selecting domain name length, digital ratio, digital letter exchange ratio, vowel and consonant number and ratio, domain name type and non-adjacent letters as input variables, and the input dimension m=6; using white domain name, gray domain name and black domain name as output variables, and the output dimension n=3; selecting the number of hidden layers and the number of hidden layer units, using a single hidden layer, and determining the number of hidden layer nodes to be 7 according to the deletion method; establishing an initial dynamic filtering model includes defining an input layer and an output layer, selecting domain name pointing to a loopback address, an IP address, domain name resolution time, the size of a DNS resolution request packet and a heartbeat domain name as input variables, and the input dimension m=5; using white domain name, gray domain name and black domain name as output variables, and the output dimension n=3; selecting the number of hidden layers and the number of hidden layer units, using a single hidden layer, and determining the number of hidden layer nodes to be 6 according to the deletion method; The establishment of the covert channel detection model includes: step S1, collecting historical data of DNS messages with hidden information and establishing a historical database; step S2, performing coding analysis on the DNS messages with hidden information to determine the coding method and law of the hidden information of the DNS messages with hidden information; step S3, establishing a covert channel detection model based on the coding method and law of the hidden information; Inputting each of the basic feature information into the covert channel detection model, and performing in-depth analysis on the basic feature information to determine whether there is hidden information, including: inputting each of the basic feature information into the covert channel detection model, determining whether the encoding of the basic feature information has the encoding method and regularity of the hidden information, and when it is detected that the encoding of the basic feature information has the encoding method and regularity of the hidden information, determining that the gray domain name DNS data has hidden information; The DNS message includes an infrastructure part, a question part, and a resource record part; basic characteristic information includes unused IP header fields, IP header extension and padding segments, and IP flag segments.

2. The covert network channel detection method according to claim 1, characterized in that: The establishment of the filtering model includes: establishing an initial filtering model according to sample data, wherein the sample data is historical DNS traffic data passing through the cache server within a preset time; Divide the sample data into training data and verification data according to preset conditions; Training the initial filtering model based on the training data; The trained initial filtering model is tested based on the verification data, and the filtering model that meets the preset indicators is output.

3. The covert network channel detection method according to claim 2, characterized in that: After establishing the covert channel detection model, the covert channel detection model is trained and verified.