Data security transmission method and device based on network security, and medium
By dynamically adjusting the search buffer size in the LZ77 algorithm and increasing the compression rate according to the importance of domain name data, the problem of insufficient compression rate of important domain name data in the existing technology is solved, and more efficient data transmission and secure transmission are achieved.
Patent Information
- Application Number
- CN202411245158.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-06
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-09-06
AI Technical Summary
When the existing LZ77 algorithm compresses important domain name data, the compression rate is insufficient and it is difficult to meet the needs for safe and reliable transmission of important data such as phishing domain names.
By dynamically adjusting the size of the search buffer in the sliding window, the compression rate is improved according to the importance of the uncompressed domain name data in the area to be encoded. The specific method is to adjust the size of the search buffer by evaluating the possibility of phishing domain names in the uncompressed domain name data. size to increase the amount of matching data, thereby improving compression.
Under the premise of ensuring processing and storage costs, the compression rate of important domain name data is significantly improved, the transmission risk is reduced, the amount of compressed data transmission is reduced, the transmission efficiency and speed are improved, and the integrity and accuracy of the data are improved sex.
Smart Images

Figure CN118764321A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of digital information transmission, and in particular to a data security transmission method, device and medium based on network security. Background Art
[0002] The domain name of the destination of network traffic is a very important part of network security. By monitoring the (destination) domain name data corresponding to network traffic and quickly locking the domain name data related to network malicious activities, the security team can take defensive measures in advance to prevent malicious activities from attacking the enterprise network. Therefore, it is necessary to collect the domain name data of network traffic and transmit it safely and efficiently. However, the domain name data is very large, so it is necessary to compress the domain name data to be transmitted to alleviate the pressure of data transmission and save bandwidth consumption.
[0003] At present, the LZ77 algorithm is generally used to compress the domain name data to be transmitted. Specifically, the LZ77 algorithm uses a sliding window to compress the domain name data to be transmitted in sequence. The sliding window includes a to-be-encoded area and a search buffer, wherein the data in the to-be-encoded area is the domain name data that has not been compressed, and the data in the search buffer is the compressed domain name data, and the uncompressed domain name data in the to-be-encoded area needs to be compressed using the compressed domain name data in the search buffer as the encoding dictionary. Usually, the size of the sliding window of the LZ77 algorithm is fixed.
[0004] It is understandable that the LZ77 algorithm, as a general compression algorithm, can compress domain name data to the same degree. However, for some important domain name data (such as phishing domain names), it is usually hoped that the compression rate of these domain name data will be better to make their transmission more secure and reliable. So how to improve the compression ability of the LZ77 algorithm when compressing important domain name data and improve the compression rate of important domain name data has become an urgent problem to be solved. Summary of the invention
[0005] In order to solve the technical problem of compression rate of important domain name data, the purpose of the present invention is to provide a data security transmission method, device and medium based on network security. The technical solution adopted is as follows: In a first aspect, the present invention provides a data security transmission method based on network security, the method comprising: Obtain the domain name data to be compressed; the domain name data to be compressed is used to be sequentially transmitted to the sliding window for compression; the sliding window includes a to-be-encoded area and a search buffer; wherein the to-be-encoded area corresponds to the uncompressed domain name data, and the search buffer corresponds to the compressed domain name data; Determine the importance of the uncompressed domain name data in the area to be encoded; Adjust the size of the search buffer according to the importance to obtain an adjusted target search buffer; Compress and encode the uncompressed domain name data according to the compressed domain name data in the target search buffer; After all the domain name data to be compressed are compressed, the compressed data is transmitted.
[0006] In an optional implementation, determining the importance of the uncompressed domain name data in the to-be-encoded area includes: For any uncompressed domain name data in the uncompressed domain name data, determine the possibility probability that the uncompressed domain name data is a phishing domain name; The importance is determined based on the probability of all the uncompressed domain name data.
[0007] In an optional implementation, the importance is determined based on the probability corresponding to all uncompressed domain name data, including: Determine the number of target uncompressed domain name data whose probability exceeds a preset threshold value among all uncompressed domain name data; The importance is determined according to the amount of target uncompressed domain name data; the importance is positively correlated with the amount of target uncompressed domain name data.
[0008] In an optional implementation, adjusting the size of the search buffer according to the importance includes: If the importance is high, the size of the search buffer is increased.
[0009] In an optional implementation, determining the probability that the uncompressed domain name data is a phishing domain name includes: Obtain W departure sources of the target network traffic corresponding to the uncompressed domain name data; wherein the destination domain name of the target network traffic is the uncompressed domain name data; W is a positive integer greater than or equal to 1; Determine a first probability corresponding to the uncompressed domain name data according to the W network traffic browsing records corresponding to the W departure sources; the first probability is related to the browsing time of the uncompressed domain name data recorded in the W network traffic browsing records; the departure sources and the network traffic browsing records correspond one to one; Determine a first similarity corresponding to each of the W starting sources i; the first similarity is used to indicate the similarity between the uncompressed domain name data and the first domain name data, the first domain name data being the next domain name data of the uncompressed domain name data recorded in the network traffic browsing record corresponding to the starting source i; Based on the first probability and the W first similarities, the possibility probability that the uncompressed domain name data is a phishing domain name is determined.
[0010] In an optional implementation, determining a first probability corresponding to the uncompressed domain name data according to W network traffic browsing records corresponding to W departure sources includes: Determine a second probability corresponding to the uncompressed domain name data according to the W network traffic browsing records corresponding to the W departure sources; the second probability is related to the occurrence frequency of the uncompressed domain name data in the W network traffic browsing records; Obtain the browsing time of the uncompressed domain name data recorded in the network traffic browsing record corresponding to each of the W departure sources i; The first probability is determined according to the second probability and W browsing durations.
[0011] In an optional implementation, determining the second probability corresponding to the uncompressed domain name data according to the W network traffic browsing records corresponding to the W departure sources includes: Determine the frequency of occurrence of uncompressed domain name data in W network traffic browsing records corresponding to W departure sources; Determining a third probability corresponding to the uncompressed domain name data; the third probability is used to indicate the similarity between the component structure of the uncompressed domain name data and the component structure of the phishing domain name; The second probability is determined based on the occurrence frequency and the third probability.
[0012] In an optional implementation, determining a third probability corresponding to the uncompressed domain name data includes: Determine the amount of uncompressed domain name data in the area to be encoded; Determining a second similarity between the uncompressed domain name data and any second domain name data in the area to be encoded; A third probability is determined based on the quantity and the second similarity.
[0013] In a second aspect, the present invention provides a network device, wherein the network device includes a processor and a memory; the processor and the memory are coupled; the memory is used to store computer instructions, and the computer instructions are loaded and executed by the processor, so that the network device executes the method described in the first aspect and any one of the implementation methods of the first aspect.
[0014] In a third aspect, the present invention provides a computer-readable storage medium storing computer instructions, including computer instructions, wherein when the computer instructions are executed, the computer executes the method described in the first aspect and any one of the implementations of the first aspect.
[0015] The present invention has the following beneficial effects: When the present invention uses the LZ77 algorithm to compress the domain name to be compressed, it is necessary to adjust the size of the search buffer according to the importance of the uncompressed domain name data in the area to be encoded. In this way, when the importance of the uncompressed domain name data in the area to be encoded is higher, the more compressed domain name data used for encoding matching in the search buffer, therefore, the data that best matches the uncompressed domain name data found from the compressed domain name data will be longer, so that the repeated data can be better utilized to obtain a better compression rate. The present invention can achieve a better compression rate for important uncompressed domain name data while ensuring that the processing cost and storage cost are as small as possible, thereby reducing its transmission risk. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are 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 work.
[0017] Figure 1 An algorithm schematic diagram of an L777 compression algorithm provided by an embodiment of the present invention; Figure 2 A schematic diagram of a flow chart of a data security transmission method based on network security provided by an embodiment of the present invention; Figure 3 A schematic diagram of the structure of a data security transmission device based on network security provided by an embodiment of the present invention; Figure 4 A schematic diagram of the structure of a network device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0018] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of a data security transmission method, device and medium based on network security proposed by the present invention, its specific implementation method, structure, features and effects in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0019] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0020] The following is a detailed description of a specific scheme of a data security transmission method, device and medium based on network security provided by the present invention in conjunction with the accompanying drawings.
[0021] Before introducing the technical solution provided by the present invention, the LZ77 compression algorithm is first introduced.
[0022] See also Figure 1 , which shows an algorithm schematic diagram of the L777 compression algorithm provided by an embodiment of the present invention, such as Figure 1 As shown, the LZ77 algorithm uses a sliding window to compress the data to be compressed in sequence. Specifically, the data to be compressed enters the sliding window in sequence, and the sliding window includes a to-be-encoded area and a search buffer. For a specific data to be compressed, the data to be compressed first enters the to-be-encoded area for compression encoding, and when it is compressed, it enters the search buffer as a coding dictionary to be matched. The data to be compressed that enters the to-be-encoded area needs to match the compressed data that has been compressed in the search buffer. After finding the data with the longest matching length with the uncompressed data, a mark containing length and distance information is output according to the matching result, and then the repeated data in the uncompressed data is replaced according to these marks to achieve compression of the uncompressed data. It can be understood that the larger the size of the search buffer, that is, the more compressed data to be matched in the search buffer, the more uncompressed data can find the data with the longest matching length, so that the uncompressed data can obtain a higher compression rate when compressed. Therefore, when the LZ77 algorithm is used for compression, the size of the sliding window (search buffer) determines the compression ability of the algorithm and the compression rate of the compressed data.
[0023] Usually, the size of the sliding window of the LZ77 algorithm is fixed. As a general compression algorithm, it can compress all data to be compressed to the same extent. When using the LZ77 algorithm to compress domain name data to be transmitted, it is usually hoped that important domain name data will have a better compression rate to ensure that its transmission is more secure and reliable. So how to improve the compression ability of the LZ77 algorithm when compressing important domain name data and improve the compression rate of important domain name data has become an urgent problem to be solved.
[0024] Based on the above description, the present invention aims to focus on important domain name data to be compressed, namely, phishing domain names. When the LZ77 algorithm is used to compress the domain name data to be compressed, if there are many phishing domain names in the domain name data to be compressed, the size of the search buffer is expanded to increase the number of domain name data to be matched. In this way, the duplicate data of the phishing domain name can be better utilized, so that the important data to be compressed can obtain a better compression rate to reduce the transmission risk of the phishing domain name. In this way, each security team can better grasp the phishing domain name and take epidemic prevention measures in advance to improve network security.
[0025] Figure 2 The present invention provides a flow chart of a data security transmission method based on network security. Figure 2 As shown, the method comprises the following steps: 201. Obtain domain name data to be compressed.
[0026] It is understandable that the present invention needs to monitor the domain name data corresponding to the network traffic, so the access log of the proxy server can be obtained, and the domain name data to be transmitted can be determined by analyzing the access log. It is understandable that when the domain name data is transmitted, it needs to be compressed first, that is, the domain name data to be transmitted is the domain name data to be compressed.
[0027] Specifically, the access log records the path of each network flow (request), including the source of the network flow and the destination domain name of the network flow. For example, the domain name data of all network flow directions recorded by the proxy server can be collected as the domain name data to be compressed.
[0028] 202. Determine the importance of the uncompressed domain name data in the area to be encoded.
[0029] It can be understood that when the domain name data to be compressed is compressed using the LZ77 algorithm, the domain name data to be compressed will be sequentially transmitted to the sliding window for compression. The sliding window includes an area to be encoded and a search buffer. The domain name data to be transmitted will first be transmitted to the area to be encoded for compression encoding, and after the compression is completed, it will be transmitted to the search buffer as a coding dictionary to be matched to compress the subsequent uncompressed domain name data until it is output from the search buffer. Since the present invention needs to improve the compression capability of the LZ77 algorithm when compressing important domain name data, it is first necessary to determine whether the uncompressed domain name data in the area to be encoded is important domain name data.
[0030] The present invention focuses on improving the compression rate of phishing domain names. Therefore, the more domain name data with higher probability of being phishing domain names in the uncompressed domain name data, the higher their importance. Therefore, it is necessary to evaluate the probability of any first domain name data in the uncompressed domain name data being a phishing domain name. Then, according to the probability probabilities corresponding to all the first domain name data, the importance of all the uncompressed domain name data in the to-be-encoded area is determined.
[0031] Exemplarily, it is necessary to segment all the uncompressed domain name data in the coding area separately, and determine the probability that each uncompressed domain name data is a phishing domain name. Then, the target uncompressed domain name data whose probability exceeds a preset threshold is screened out. It can be understood that the screened target uncompressed domain name data is very likely to be a phishing domain name. Then, the number of target uncompressed domain name data is counted. If the number is larger, the importance of the uncompressed domain name data is higher.
[0032] The following is a detailed description of the process of evaluating the probability of any uncompressed domain name data in the code area being a phishing domain name: (i) First, according to the component structure of the uncompressed domain name data, determine a third probability corresponding to the uncompressed domain name data; wherein the third probability is used to indicate the similarity between the component structure of the uncompressed domain name data and the component structure of the phishing domain name; It is understandable that phishing domain names have the following characteristics in terms of their composition. First, the composition structure (i.e., characters, etc.) of phishing domain names is very similar to normal domain names, and in the network, the frequency of its own appearance is not high, but the frequency of normal domain names with high similarity to it is very high. Therefore, for a domain name data, the more other domain name data with high similarity to the domain name data, the greater the possibility that the domain name data is a phishing domain name.
[0033] Based on the above description, when determining the probability that an uncompressed domain name data is a phishing domain name, first analyze it from the perspective of its component structure. Exemplarily, the number of the uncompressed domain name data in the area to be encoded can be determined first, and then the similarity between the uncompressed domain name data and any second domain name data in the area to be encoded (i.e., other uncompressed domain name data except itself) can be determined. Then, the number of uncompressed domain name data and the similarity between any second domain name data and the uncompressed domain name data are comprehensively considered to determine the third probability corresponding to the uncompressed domain name data.
[0034] The process of determining the similarity (second similarity) between the uncompressed domain name data and the second domain name data is described below: The following is a description using a specific example. For example, when determining the similarity between the uncompressed domain name data Q and the second domain name data O, the first letters of the two domain name data can be aligned and placed in a table. Next, the similarity of the two domain name data can be analyzed based on the relative position in the table.
[0035] Specifically, the similarity calculation formula is: (1) (2) in, Indicates the similarity between domain name data Q and domain name data 0, m means that the domain name Q has a total of m characters, Indicates the corresponding matching degree of the i-th character of the m characters in the Q domain name. If1 means that among the m characters of the Q domain name, the i-th character has the same character in the domain name O; if2 means that among the m characters of the Q domain name, the i-th character does not have the same character in O. Among them, min means selecting the minimum value. It means the column number of the table where the i-th character is located among the m characters of the Q domain name; This means that the domain name O has the same i-th character as the domain name Q. Among the characters, the number of columns in the table where the kth identical character is located, This means that there are a total of The character is the same as the i-th character in the Q domain name, so the value of k is 1 to . exp represents the exponential function with e as the base. The number of characters representing the domain name O, Indicates the number of characters in domain name Q.
[0036] The meaning of the above formula (1) and formula (2) is explained below: The above formulas (1) and (2) are used to calculate the similarity between domain name data Q and domain name data O. For domain name data O to have a higher similarity with domain name data Q, the number of characters in the two domain name data must be closer to the same. In the above formula (1), It is used to indicate the character quantity relationship between the domain name data Q and the domain name data O. It can be understood that The smaller the value, the higher the similarity. Therefore, we can use On the basis of the similar number of characters, the matching degree of each character should be higher. For the domain name data Q, it is necessary to find the same characters of each character in the domain name data O. If there are no identical characters, 0 is used to represent them. If there are identical characters, they may appear more than once. Therefore, it is necessary to select the column number difference of the closest identical characters in the domain name data O, which is the value in formula (2). , it is understandable that the smaller the gap, the higher the similarity.
[0037] For an uncompressed domain name data, after comparing it with all other uncompressed domain name data in the to-be-encoded area one by one, the third probability corresponding to the uncompressed domain name data can be determined according to the following formula (3): (3) in, represents the third probability corresponding to the uncompressed domain name data Q, and the third probability is used to characterize the similarity between the uncompressed domain name data Q and the phishing domain name in terms of component structure. n represents the number of all uncompressed domain name data in the area to be encoded, represents the number of the jth second domain name data, represents the similarity between the jth second domain name data and the uncompressed domain name data Q, exp represents an exponential function with e as the base, It represents the number of uncompressed domain name data Q in the area to be encoded.
[0038] The following is an explanation of the meaning of formula (3). If the uncompressed domain name data Q is a phishing domain name, then from the perspective of component structure, its frequency of occurrence is less than that of normal domain name data. Therefore The smaller the better, and in the above formula It indicates The smaller the third probability value is, the greater the third probability value is. On the basis of its low frequency, if the second domain name data similar to the uncompressed domain name data Q is more, the similarity is higher, that is, The larger it is, the more likely it is that the uncompressed domain name data Q belongs to a phishing domain name based on the component structure.
[0039] From the above description, it can be seen that the probability of the uncompressed domain name data Q being a phishing domain name is negatively correlated with its own number in the area to be encoded; positively correlated with its similarity with the second domain name data; and positively correlated with the number of second domain name data with high similarity in the area to be encoded. In other words, when an uncompressed domain name data has a low frequency of occurrence, but other highly similar domain name data appear more frequently, from the perspective of component structure, the probability that the domain name data is a phishing domain name is greater.
[0040] (II) Based on the component structure results, we further determine the possibility that it is a phishing domain name through the network traffic browsing records of the source corresponding to the uncompressed domain name data: It is understandable that when judging whether a domain name data is a phishing domain name, in addition to judging from its components, it is also necessary to compare the browsing situation of its corresponding network traffic with the browsing situation of other normal network traffic to further judge whether it is a real phishing domain name. In the present invention, it is necessary to first determine all the departure sources of the target network traffic corresponding to the uncompressed domain name data, and then analyze the network traffic browsing records corresponding to each departure source, and by comparing the browsing situation of the target network traffic corresponding to the uncompressed domain name data with the browsing situation of other network traffic, the possibility probability of the uncompressed domain name data being a phishing domain name is determined.
[0041] Specifically, the performance of phishing domain names in time series usually includes: 1) For a phishing domain name, its frequency of appearance in the network traffic browsing records of the origin is very low, because network users usually do not visit the phishing domain name multiple times; 2) When the frequency of occurrence is very low, the browsing time of the target network traffic corresponding to the phishing domain name is very short. This is because network users will quickly exit after visiting the phishing domain name; 3) The domain name data of the phishing domain name at the next moment is usually a normal domain name that is very similar to the phishing domain name; because Internet users usually easily enter the phishing domain name web page that is very similar to the normal domain name, and after exiting the phishing domain name web page, they will immediately enter the normal domain name web page.
[0042] Therefore, when determining whether the uncompressed domain name data is a phishing domain name, the above three points can be used for evaluation.
[0043] Exemplarily, the second probability corresponding to the uncompressed domain name data Q is determined according to the appearance frequency of the uncompressed domain name data Q in the network traffic browsing record of each source: (4) in, Indicates the second probability corresponding to the uncompressed domain name data Q, which is used to indicate the probability of the uncompressed domain name data Q being a phishing domain name based on the frequency of occurrence of the uncompressed domain name data Q in the network traffic browsing records of the origin and its own component structure. exp represents an exponential function with e as the base; w represents that the uncompressed domain name data Q has a total of w origins; Indicates that among the w sources of the uncompressed domain name data Q, The number of occurrences of the uncompressed domain name data Q in the network traffic browsing records of the originating source.
[0044] From the above formula (4), it can be seen that when judging whether the uncompressed domain name data Q is a phishing domain name, not only is the component structure similar to the phishing domain name (i.e. In addition, in the network traffic browsing records of the corresponding w departure sources, the uncompressed first domain name data Q cannot be accessed multiple times. That is, for multiple departure sources, the number of times the uncompressed domain name data Q appears is The lower the better.
[0045] Based on the second probability corresponding to the uncompressed domain name data Q, it is also necessary to determine the possibility that it is a phishing domain name according to the browsing time corresponding to the uncompressed domain name data Q in the network traffic browsing record of each source. Specifically: (5) in, represents the first probability corresponding to the uncompressed domain name data Q; the first probability is used to indicate the possibility of the uncompressed domain name data Q being a phishing domain name based on the second probability, further analyzed from the browsing time of the uncompressed domain name data Q. w represents that the uncompressed domain name data Q has a total of w departure sources; Indicates that the uncompressed domain name data Q is in The number of times a source appears in the network traffic browsing record; Indicates the first The browsing duration of the hth occurrence in the network traffic browsing records of a source.
[0046] It can be seen from the above formula (5) that when judging whether the uncompressed domain name data Q is a phishing domain name, it is also necessary to refer to the browsing time recorded in the network traffic browsing records corresponding to each source of the uncompressed domain name data Q, that is, Based on this, further analysis is performed based on browsing time. Because most Internet users will leave immediately after entering a phishing domain name, when the frequency of occurrence of the uncompressed domain name data Q is very low, the time it stays each time (i.e. browsing time) is also very short, then it is more likely to be a phishing domain name. Among them, in the formula A weighted number used to calculate average viewing duration.
[0047] Finally, based on the first probability corresponding to the uncompressed domain name data Q, the final probability that it is a phishing domain name is determined. Specifically: (6) in, represents the final probability that the uncompressed domain name data Q is a phishing domain name, w represents that there are a total of w starting sources in the uncompressed domain name data Q, Indicates the first domain name data of the next moment of the uncompressed domain name data Q in the time series in the network traffic browsing record of the i-th source corresponding to the uncompressed domain name data Q The similarity with Q (which can be referred to the above similarity calculation formulas (1) and (2), which will not be repeated here).
[0048] It can be seen from the above formula (6) that when judging whether the uncompressed domain name data Q is a phishing domain name, it is necessary to further analyze the similarity between the next domain name data in the time series and the uncompressed domain name data Q. That is, if the network user finds that the uncompressed domain name data Q is a phishing domain name, he will immediately exit and re-enter a normal domain name with a high similarity to the uncompressed domain name data Q. In the time series, the higher the probability that the next domain name data is similar to the uncompressed domain name data Q, that is, The larger the value is, the more likely the uncompressed domain name data Q is a phishing domain name.
[0049] It is understandable that step 202 shows a variety of strategies for determining whether the uncompressed domain name data is a phishing domain name. When applied, any one of the implementations and any combination of multiple implementations can be used to formulate a judgment strategy, and the present invention does not limit this. That is, when the LZ77 algorithm is used to compress the data to be compressed, it is necessary to determine the probability that each uncompressed domain name data in the area to be encoded is a phishing domain name, and then determine the importance of the entire uncompressed domain name data based on the probability of all the uncompressed domain name data. It is understandable that the more domain name data that may be phishing domain names in the uncompressed domain name data, and the greater the possibility that it is a phishing domain name, the higher the importance of the uncompressed domain name data, and then the LZ77 algorithm needs to be adjusted so that after the uncompressed domain name data is compressed, a better compression rate can be obtained.
[0050] 203. Adjust the size of the search buffer according to the importance of the uncompressed domain name data to obtain an adjusted target search buffer.
[0051] It can be understood that in order to focus the LZ77 algorithm on the compression of important domain name data, the present invention needs to expand the size of the search buffer in the sliding window when it is determined that the importance of the uncompressed domain name data in the area to be encoded is very high. This is conducive to more effective use of duplicate data in fishing domain names, thereby improving the compression rate. In this way, under the premise of ensuring processing costs and storage costs, optimized compression of important domain name data to be compressed can be achieved, thereby reducing transmission risks. At the same time, the amount of data during compressed data transmission can be significantly reduced, the network burden can be reduced, and the efficiency and speed of compressed data transmission can be improved. In addition, after optimized compression, the domain name data to be compressed can not only save storage space, but also reduce the risk of being damaged or lost during transmission. This is because the compressed data after optimized compression is more compact and structured, which is conducive to maintaining the integrity and accuracy of the compressed data, and ensuring that the receiving end can accurately restore the compressed data.
[0052] Exemplarily, the size of the search buffer may be expanded according to the following formula: (7) in, represents the size of the expanded target search buffer, g represents the number of uncompressed domain names in the original encoding area, represents the final probability that the i-th uncompressed domain name in the to-be-encoded area is a phishing domain name, Indicates the original search buffer size.
[0053] From the above analysis, we can know that if the uncompressed domain name data in the area to be encoded has more domain name data belonging to phishing domain names, and the greater the possibility that it is a phishing domain name, the larger the search buffer size should be, so the sum of the possibilities that all the uncompressed domain name data in the area to be encoded belong to phishing domain names is obtained. , and then sum the sizes of the initial search buffers to obtain the adjusted target search buffer.
[0054] 204. Encode and compress the uncompressed domain name data in the encoding area according to the compressed domain name data in the target search buffer.
[0055] In this way, a series of tag and pointer pairs are generated through the LZ77 algorithm according to the adjusted target search buffer to achieve optimized compression of the remaining uncompressed domain name data.
[0056] 205. After all the domain name data to be compressed are compressed, the compressed data is transmitted.
[0057] It is understandable that the larger the size of the sliding window, the better the compression rate can be obtained, because longer matches can better reuse data. However, the larger the sliding window, the higher the storage and processing costs. In the present invention, by dynamically adjusting the search buffer size according to the uncompressed domain name data in the area to be encoded, and then performing LZ77 compression and uploading to the cloud storage service, and then transmitting the data through a network link, the LZ77 algorithm can be more focused on the compression of important parts, thereby improving the compression rate and the ability to protect important data.
[0058] Based on the above description, Figure 3 This is a schematic diagram of the structure of a data security transmission device based on network security provided by the present invention. The device includes: The acquisition unit 301 is used to acquire the domain name data to be compressed. The domain name data to be compressed is used to be sequentially transmitted to the sliding window for compression; the sliding window includes a to-be-encoded area and a search buffer; wherein the to-be-encoded area corresponds to the uncompressed domain name data, and the search buffer corresponds to the compressed domain name data; A determination unit 302, used to determine the importance of the uncompressed domain name data in the area to be encoded; A processing unit 303 is used to adjust the size of the search buffer according to the importance to obtain an adjusted target search buffer; The processing unit 303 is further used to compress and encode the uncompressed domain name data according to the compressed domain name data in the target search buffer; The sending unit 304 is used to transmit the compressed data after all the domain name data to be compressed are compressed.
[0059] In an optional implementation, the determination unit 302 is specifically used to determine the possibility probability that any uncompressed domain name data in the uncompressed domain name data is a phishing domain name; and determine the importance based on the possibility probabilities corresponding to all the uncompressed domain name data.
[0060] In an optional embodiment, the determination unit 302 is specifically used to determine the number of target uncompressed domain name data whose probability exceeds a preset threshold among all uncompressed domain name data; determine the importance based on the number of target uncompressed domain name data; the importance is positively correlated with the number of target uncompressed domain name data.
[0061] In an optional implementation, the processing unit 303 is specifically configured to increase the size of the search buffer if the importance is high.
[0062] In an optional implementation, the acquisition unit 301 is further used to acquire W departure sources of the target network traffic corresponding to the uncompressed domain name data; wherein the destination domain name of the target network traffic is the uncompressed domain name data; W is a positive integer greater than or equal to 1; Determination unit 302 is specifically used to determine a first probability corresponding to the uncompressed domain name data according to W network traffic browsing records corresponding to W departure sources; the first probability is related to the browsing time of the uncompressed domain name data recorded in the W network traffic browsing records; the departure source and the network traffic browsing record have a one-to-one correspondence; determine a first similarity corresponding to each departure source i among the W departure sources; the first similarity is used to indicate the similarity between the uncompressed domain name data and the first domain name data, the first domain name data being the next domain name data of the uncompressed domain name data recorded in the network traffic browsing record corresponding to the departure source i; determine the possibility probability that the uncompressed domain name data is a phishing domain name according to the first probability and the W first similarities.
[0063] In an optional implementation, the determination unit 302 is specifically configured to determine a second probability corresponding to the uncompressed domain name data according to the W network traffic browsing records corresponding to the W departure sources; the second probability is related to the occurrence frequency of the uncompressed domain name data in the W network traffic browsing records; The acquisition unit 301 is further used to acquire the browsing time of the uncompressed domain name data recorded in the network traffic browsing record corresponding to each of the W departure sources i; The determining unit 302 is specifically configured to determine the first probability according to the second probability and the W browsing durations obtained by the obtaining unit 301 .
[0064] In an optional embodiment, the determination unit 302 is also used to determine the frequency of occurrence of uncompressed domain name data in W network traffic browsing records corresponding to W departure sources; determine the third probability corresponding to the uncompressed domain name data; the third probability is used to indicate the similarity between the component structure of the uncompressed domain name data and the component structure of the phishing domain name; and determine the second probability based on the frequency of occurrence and the third probability.
[0065] In an optional embodiment, the determination unit 302 is specifically used to determine the number of uncompressed domain name data in the area to be encoded; determine the second similarity between the uncompressed domain name data and any second domain name data in the area to be encoded; and determine the third probability based on the number and the second similarity.
[0066] It should be noted that the information execution process of each unit in the above device and other contents can be specifically referred to in the aforementioned Figure 2 The description in the method embodiment shown will not be repeated here.
[0067] See also Figure 4 The embodiment of the present application also adopts a network device 1000, which may include one or more central processors 1001 and a communication interface 1003. Optionally, a memory 1002 may also be included.
[0068] The memory 1002 may be a temporary storage or a permanent storage. Furthermore, the central processor 1001 may be configured to communicate with the memory 1002 and execute a series of instruction operations in the memory 1002 on the network device.
[0069] In this embodiment, the CPU 1001 can execute the aforementioned Figure 2 The steps provided in the illustrated embodiment will not be described in detail here.
[0070] In this embodiment, the specific functional module division in the central processing unit 1001 can be the same as the above Figure 3 The division method of each unit described in is similar and will not be repeated here.
[0071] It should be noted that the information execution process of the central processor 1001 of the above network device 1000 and other contents can be specifically referred to in the aforementioned Figure 2 The description in the method embodiment shown will not be repeated here.
[0072] The present invention also provides a computer-readable storage medium storing computer instructions, wherein the medium includes computer instructions, wherein when the computer instructions are executed, the computer executes the following Figure 2 The steps of any one of the embodiments shown.
[0073] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0074] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
Claims
1. A data security transmission method based on network security, characterized in that: The method comprises: Acquire domain name data to be compressed; the domain name data to be compressed is used to be sequentially transmitted to the sliding window for compression; the sliding window includes a to-be-encoded area and a search buffer; wherein the to-be-encoded area corresponds to uncompressed domain name data, and the search buffer corresponds to compressed domain name data; Determining the importance of the uncompressed domain name data in the area to be encoded; Adjust the size of the search buffer according to the importance to obtain an adjusted target search buffer; compressing and encoding the uncompressed domain name data according to the compressed domain name data in the target search buffer; After all the domain name data to be compressed are compressed, the compressed data is transmitted.
2. The data security transmission method based on network security according to claim 1 is characterized in that: The determining the importance of the uncompressed domain name data in the to-be-encoded area includes: For any one of the uncompressed domain name data, determine the possibility that the uncompressed domain name data is a phishing domain name; The importance level is determined according to the possibility probabilities corresponding to all the uncompressed domain name data.
3. The data security transmission method based on network security according to claim 2 is characterized in that: Determining the importance according to the possibility probabilities corresponding to all the uncompressed domain name data includes: Determine, among all the uncompressed domain name data, the number of target uncompressed domain name data whose likelihood probability exceeds a preset threshold; The importance is determined according to the amount of the target uncompressed domain name data; the importance is positively correlated with the amount of the target uncompressed domain name data.
4. The data security transmission method based on network security according to claim 3 is characterized in that: The adjusting the size of the search buffer according to the importance comprises: If the importance is high, the size of the search buffer is increased.
5. The data security transmission method based on network security according to any one of claims 1 to 4, characterized in that: The determining the possibility probability that the uncompressed domain name data is a phishing domain name includes: Obtain W departure sources of the target network traffic corresponding to the uncompressed domain name data; wherein the destination domain name of the target network traffic is the uncompressed domain name data; and W is a positive integer greater than or equal to 1; Determine a first probability corresponding to the uncompressed domain name data according to the W network traffic browsing records corresponding to the W departure sources; the first probability is related to the browsing time of the uncompressed domain name data recorded in the W network traffic browsing records; the departure sources correspond to the network traffic browsing records one by one; Determine a first similarity corresponding to each of the W starting sources i; the first similarity is used to indicate the similarity between the uncompressed domain name data and the first domain name data, the first domain name data being the next domain name data of the uncompressed domain name data recorded in the network traffic browsing record corresponding to the starting source i; The possibility probability that the uncompressed domain name data is a phishing domain name is determined based on the first probability and W first similarities.
6. The data security transmission method based on network security according to claim 5 is characterized in that: The determining, based on the W network traffic browsing records corresponding to the W departure sources, a first probability corresponding to the uncompressed domain name data includes: Determine a second probability corresponding to the uncompressed domain name data according to the W network traffic browsing records corresponding to the W departure sources; the second probability is related to the occurrence frequency of the uncompressed domain name data in the W network traffic browsing records; Obtaining the browsing time of the uncompressed domain name data recorded in the network traffic browsing record corresponding to each of the W departure sources i; The first probability is determined according to the second probability and W browsing durations.
7. The data security transmission method based on network security according to claim 6 is characterized in that: The determining, according to the W network traffic browsing records corresponding to the W departure sources, a second probability corresponding to the uncompressed domain name data includes: Determine the occurrence frequency of the uncompressed domain name data in the W network traffic browsing records corresponding to the W departure sources; Determine a third probability corresponding to the uncompressed domain name data; the third probability is used to indicate the similarity between the component structure of the uncompressed domain name data and the component structure of the phishing domain name; The second probability is determined according to the occurrence frequency and the third probability.
8. The data security transmission method based on network security according to claim 7 is characterized in that: The determining a third probability corresponding to the uncompressed domain name data includes: Determining the amount of the uncompressed domain name data in the area to be encoded; Determine a second similarity between the uncompressed domain name data and any second domain name data in the to-be-encoded area; The third probability is determined according to the number and the second similarity.
9. A network device, characterized in that: The network device includes a processor and a memory; the processor and the memory are coupled; the memory is used to store computer instructions, and the computer instructions are loaded and executed by the processor, so that the network device executes the data security transmission method based on network security as described in any one of claims 1 to 8.
10. A computer-readable storage medium storing computer instructions, characterized in that: include: Computer instructions, wherein when the computer instructions are executed, the computer is caused to execute the data security transmission method based on network security as described in any one of claims 1 to 8.
Citation Information
Patent Citations
Phishing website identification method and device
CN109756467A
Efficient storage method for applet data
CN115173866A
Data transmission method and hospital intelligent transmission system
CN117014519A
Enterprise-level data link optimization transmission method and system based on data flow direction
CN117527708A
Phishing Protection Methods and Systems
US20220030029A1
