A data encryption transmission method and system for preventing advanced persistent threat attacks

By measuring the traffic tide and extracting aliasing features of the encrypted data transmission path, the grayscale threshold of the transmission traffic is determined, achieving highly sensitive detection and prevention of advanced persistent threat attacks, and solving the problem of low sensitivity of intrusion detection in the existing technology. problem.

CN117997612BActive Publication Date: 2024-10-29江西省海博信息科技有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410139401.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-31
Publication Date
2024-10-29
Estimated Expiration
2044-01-31

AI Technical Summary

Technical Problem

The existing technology has low intrusion detection sensitivity during encrypted data transmission and cannot effectively prevent advanced persistent threat attacks, especially the detection of new attacks and zero-day vulnerabilities is inaccurate.

Method used

Through traffic tide measurement, aliasing feature extraction and real-time traffic monitoring of the transmission traffic sequence, the grayscale and threshold of the transmission traffic are determined, external access to the encrypted data transmission path is monitored in real time, and potential hacker attacks are promptly interrupted and alerted.

Benefits of technology

It improves the sensitivity of intrusion detection during encrypted data transmission, can promptly identify and prevent advanced persistent threat attacks, and enhances the detection capabilities of new attacks and zero-day vulnerabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117997612B_ABST
    Figure CN117997612B_ABST
Patent Text Reader

Abstract

The present application provides a data encryption transmission method for preventing advanced persistent threat attacks, which comprises the following steps: encrypting data and inputting it into a transmission path to obtain a transmission flow sequence in the transmission path, performing flow tidal measurement on the transmission flow sequence to obtain a transmission flow tidal value; obtaining an output flow sequence of an encrypted data output port, performing aliasing feature extraction on the transmission flow sequence according to the output flow sequence to obtain a transmission aliasing feature value; performing real-time flow monitoring on the transmission flow sequence through a flow monitoring window preset to a fixed length to obtain a priori flow value and a posteriori flow value, and determining the transmission flow grayscale according to the a priori flow value and the posteriori flow value; determining a flow grayscale threshold at the current moment according to the transmission flow tidal value and the transmission aliasing feature value, and transmitting encrypted data according to the transmission flow grayscale and the flow grayscale threshold at the current moment, thereby realizing a highly sensitive data encryption transmission method for preventing advanced persistent threat attacks.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data encryption technology, and more specifically, to a data encryption transmission method and system for preventing advanced persistent threat attacks. Background Art

[0002] Advanced persistent threat attacks are a type of carefully planned and executed cyber threat, usually launched by hacker groups or highly experienced hackers, with the goal of lurking in the target system for a long time to steal sensitive information, perform malicious operations or infiltrate critical infrastructure. The key to preventing advanced persistent threat attacks is to prevent hackers from accessing the target system, thereby eliminating the possibility of hackers lurking in the system.

[0003] In the prior art, hacker attacks are generally prevented through methods such as anti-virus software, intrusion detection systems and intrusion prevention systems. Among them, anti-virus software needs to detect malware based on known virus signatures and has low sensitivity to new virus attacks. Intrusion detection systems and intrusion prevention systems detect threats based on known attack patterns and vulnerabilities, so they may not be able to provide accurate detection for new attacks and zero-day vulnerabilities. In summary, the prior art has the problem of underreporting for intrusion detection during encrypted data transmission, that is, low sensitivity. Summary of the invention

[0004] The present application provides a data encryption transmission method and system for preventing advanced persistent threat attacks, so as to solve the problem of low sensitivity of intrusion detection during encrypted data transmission.

[0005] In order to solve the above technical problems, this application adopts the following technical solutions:

[0006] In a first aspect, the present application provides a data encryption transmission method for preventing advanced persistent threat attacks, comprising the following steps:

[0007] Encrypting the data and inputting it into the transmission channel, obtaining a transmission flow sequence in the transmission channel, performing flow tidal measurement on the transmission flow sequence, and obtaining a transmission flow tidal value at the current moment;

[0008] Obtain an output flow sequence of an encrypted data output port, perform aliasing feature extraction on the transmission flow sequence according to the output flow sequence, and obtain a transmission aliasing feature value at the current moment;

[0009] Performing real-time traffic monitoring on the transmission traffic sequence through a traffic monitoring window preset to a fixed length to obtain a priori traffic value and a posteriori traffic value, and determining the transmission traffic grayscale at the current moment according to the priori traffic value and the posteriori traffic value;

[0010] The traffic grayscale threshold at the current moment is determined according to the transmission traffic tidal value and the transmission aliasing characteristic value at the current moment, and the encrypted data is transmitted through the transmission traffic grayscale at the current moment and the traffic grayscale threshold at the current moment.

[0011] In some embodiments, performing flow tidal measurement on the transmission flow sequence to obtain the transmission flow tidal value at the current moment specifically includes:

[0012] Determine all traffic congestion values ​​in the transmission traffic sequence;

[0013] Determine all flow unblocking values ​​in the transmission flow sequence;

[0014] The transmission flow tidal value is determined according to all flow congestion values ​​and all flow unblocked values ​​in the transmission flow sequence.

[0015] In some embodiments, performing aliasing feature extraction on the transmission traffic sequence according to the output traffic sequence to obtain the transmission aliasing feature value at the current moment specifically includes:

[0016] Determine a transmission flow time-varying vector according to the output flow sequence and the transmission flow sequence;

[0017] Determine a plurality of transmission flow feature vectors according to the output flow sequence and the transmission flow sequence;

[0018] A transmission aliasing characteristic value is determined according to the transmission flow time-varying vector and all transmission flow characteristic vectors.

[0019] In some embodiments, real-time traffic monitoring is performed on the transmission traffic sequence through a traffic monitoring window preset to a fixed length to obtain a priori traffic value and a posteriori traffic value, specifically including:

[0020] Obtaining each flow data in the transmission flow sequence;

[0021] Obtaining the length of the flow monitoring window;

[0022] Determine the current moment;

[0023] The a priori flow value and the a posteriori flow value are determined according to each flow data value in the transmission flow sequence, the length of the flow monitoring window and the current moment.

[0024] In some embodiments, determining the transmission flow grayscale at the current moment according to the prior flow value and the a posteriori flow value specifically includes:

[0025] Determine the prior flow value Q at time t t ;

[0026] Determine the a posteriori flow value H at time t t;

[0027] According to the prior flow value Q at time t t and the posterior flow value H at time t t Determine the grayscale of the transmission flow at the current moment, wherein the grayscale of the transmission flow at the current moment is determined according to the following formula:

[0028]

[0029] Among them, S1 is the transmission flow grayscale at time 1, H1 is the a posteriori flow value at time 1, Q1 is the a priori flow value at time 1, S t is the grayscale of the transmission flow at time t, S t-1 is the grayscale of the transmission flow at time t-1, Q t is the prior flow value at time t, H t is the a posteriori flow value at time t, max(0, H1-Q1) represents the maximum value between 0 and H1-Q1, max(0, S t-1 +H t -Q t ) represents 0 and S t-1 +H t -Q t The maximum value of the two, t is the current moment.

[0030] In some embodiments, transmitting encrypted data using the current transmission traffic grayscale and the current traffic grayscale threshold specifically includes:

[0031] Compare the transmission traffic grayscale at the current moment with the traffic grayscale threshold, and when the transmission traffic grayscale at the current moment is greater than the traffic grayscale threshold, determine that there is a visitor access;

[0032] Query the visitor access records of the server terminal. When the corresponding access request cannot be found, the visitor's access will be recorded as a hacker attack, and the transmission of encrypted data will be interrupted immediately and an alarm will be issued;

[0033] When it is determined that there is no visitor access or the corresponding access request can be queried, the encrypted data will be transmitted.

[0034] In some embodiments, after immediately interrupting the transmission of the encrypted data and issuing an alarm, the method further includes:

[0035] The Internet Protocol address of the visitor who caused the alarm is collected, and the Internet Protocol address is entered into a database, and all access requests from the Internet Protocol address are prohibited.

[0036] In a second aspect, the present application provides a data encryption transmission system for preventing advanced persistent threat attacks, which includes an intrusion attack monitoring unit, and the intrusion attack monitoring unit includes:

[0037] The transmission flow tidal value determination module is used to encrypt the data and input it into the transmission path, obtain the transmission flow sequence in the transmission path, perform flow tidal measurement on the transmission flow sequence, and obtain the transmission flow tidal value at the current moment;

[0038] A transmission aliasing characteristic value determination module is used to obtain an output flow sequence of an encrypted data output port, perform aliasing feature extraction on the transmission flow sequence according to the output flow sequence, and obtain a transmission aliasing characteristic value at a current moment;

[0039] A transmission flow grayscale determination module is used to perform real-time flow monitoring on the transmission flow sequence through a flow monitoring window preset to a fixed length, obtain a priori flow value and a posteriori flow value, and determine the transmission flow grayscale at the current moment according to the priori flow value and the posteriori flow value;

[0040] The encrypted data transmission module is used to determine the current traffic grayscale threshold value according to the current transmission traffic tidal value and the transmission aliasing characteristic value, and transmit the encrypted data through the current transmission traffic grayscale and the current traffic grayscale threshold value.

[0041] In a third aspect, the present application provides a computer device, comprising a memory and a processor, wherein the memory stores code, and the processor is configured to obtain the code and execute the above-mentioned data encryption transmission method for preventing advanced persistent threat attacks.

[0042] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned data encryption transmission method for preventing advanced persistent threat attacks is implemented.

[0043] The technical solution provided by the embodiments disclosed in this application has the following beneficial effects:

[0044] In the data encryption transmission method and system for preventing advanced persistent threat attacks provided by the present application, firstly, by collecting the transmission flow sequence of encrypted data in the transmission path, it is possible to monitor in real time whether the transmission path is accessed by the outside, which is convenient for subsequent monitoring of hacker attacks, and by extracting the transmission flow tidal value in the transmission flow sequence, it is convenient to determine the flow gray threshold at the current moment more accurately in the future; by comparing the output flow sequence of the encrypted data output port and the transmission flow sequence in the transmission path, the slight fluctuation of the flow in the transmission path of the encrypted data caused by the transmission route medium or external interference can be more accurately extracted, which is convenient for subsequent determination of the accurate flow gray threshold. value; the transmission traffic grayscale is a parameter used to measure the possibility of hacker access during the transmission of encrypted data. When the transmission traffic grayscale is large, it means that an external visitor has entered the transmission route. Therefore, the transmission process of encrypted data can be monitored in real time through the transmission traffic grayscale to prevent advanced persistent threat attacks; by extracting the transmission traffic tidal value and the transmission aliasing characteristic value during the encrypted data transmission process and then determining the precise traffic grayscale threshold, by comparing the traffic grayscale threshold and the transmission traffic grayscale, the external access situation in the encrypted data transmission path can be monitored in time, thereby realizing a highly sensitive data encryption transmission method for preventing advanced persistent threat attacks. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 is an exemplary flow chart of a data encryption transmission method for preventing advanced persistent threat attacks according to some embodiments of the present application;

[0046] Figure 2 It is an exemplary flow chart of transmitting encrypted data by using the transmission traffic grayscale at the current moment and the traffic grayscale threshold at the current moment as shown in some embodiments of the present application;

[0047] Figure 3 is a schematic diagram of exemplary hardware and / or software of an intrusion attack monitoring unit according to some embodiments of the present application;

[0048] Figure 4 It is a structural diagram of a computer device for implementing a data encryption transmission method for preventing advanced persistent threat attacks according to some embodiments of the present application. DETAILED DESCRIPTION

[0049] The core of the present application is to obtain the transmission flow sequence in the transmission path by encrypting the data and inputting it into the transmission path, perform flow tidal measurement on the transmission flow sequence, and obtain the transmission flow tidal value at the current moment; obtain the output flow sequence of the encrypted data output port, perform aliasing feature extraction on the transmission flow sequence according to the output flow sequence, and obtain the transmission aliasing feature value at the current moment; perform real-time flow monitoring on the transmission flow sequence through a flow monitoring window preset to a fixed length, obtain the priori flow value and the a posteriori flow value, and determine the transmission flow grayscale at the current moment according to the priori flow value and the a posteriori flow value; determine the flow grayscale threshold at the current moment according to the transmission flow tidal value and the transmission aliasing feature value, and transmit the encrypted data according to the transmission flow grayscale and the flow grayscale threshold at the current moment, thereby realizing a highly sensitive data encryption transmission method and system for preventing advanced persistent threat attacks.

[0050] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods. Figure 1 , which is an exemplary flow chart of a data encryption transmission method for preventing advanced persistent threat attacks according to some embodiments of the present application. The data encryption transmission method 100 for preventing advanced persistent threat attacks mainly includes the following steps:

[0051] In step 101, the data is encrypted and input into a transmission channel, a transmission flow sequence in the transmission channel is obtained, and a flow tidal measurement is performed on the transmission flow sequence to obtain a transmission flow tidal value at the current moment.

[0052] In specific implementation, the data may be encrypted using the SHA256 technology in the prior art. In other embodiments, the data may also be encrypted using other technologies, which are not limited here.

[0053] In specific implementation, the flow data in the transmission path can be collected by the sensor at a preset sampling time interval, and all the collected flow data can be arranged into a sequence in chronological order, and the sequence is used as a transmission flow sequence. It should be noted that the current moment in this application is the moment corresponding to the last flow data in the transmission flow sequence, and the transmission flow sequence is the transmission flow sequence at the current moment.

[0054] In some embodiments, the flow tidal measurement is performed on the transmission flow sequence to obtain the transmission flow tidal value at the current moment, which can be achieved by using the following steps:

[0055] Determine all traffic congestion values ​​in the transmission traffic sequence;

[0056] Determine all flow unblocking values ​​in the transmission flow sequence;

[0057] The transmission flow tidal value is determined according to all the flow congestion values ​​and all the flow unblocked values ​​in the transmission flow sequence, wherein the transmission flow tidal value can be determined according to the following formula:

[0058]

[0059] Among them, p t is the tidal value of the transmission flow at time t, n t is the number of traffic congestion values ​​at time t in the transmission traffic sequence, m t is the number of flow smoothness values ​​at time t in the transmission flow sequence, x i is the i-th traffic congestion value in the transmission traffic sequence, y i is the i-th flow smoothness value in the transmission flow sequence, and t is the current time.

[0060] In specific implementation, the flow data in the transmission flow sequence that is simultaneously greater than the flow data on both adjacent sides can be used as the flow congestion value, and the value in the transmission flow sequence that is simultaneously less than the flow data on both adjacent sides can be used as the flow smoothness value.

[0061] It should be noted that the transmission traffic tidal value described in this application refers to the size of the normal traffic fluctuation generated during the normal data transmission process, the traffic congestion value refers to the peak value of the traffic fluctuation during the normal transmission of encrypted data, and the traffic smoothness value refers to the valley value of the traffic fluctuation during the normal transmission of encrypted data.

[0062] In addition, it should be noted that in the present application, by collecting the transmission flow sequence of encrypted data in the transmission path, it is possible to monitor in real time whether the transmission path is subject to external access, which is convenient for subsequent monitoring of hacker attacks. By extracting the transmission flow tidal value in the transmission flow sequence, it is possible to more accurately determine the traffic grayscale threshold at the current moment.

[0063] In step 102, an output traffic sequence of an encrypted data output port is obtained, and aliasing features are extracted from the transmission traffic sequence according to the output traffic sequence to obtain a transmission aliasing feature value at the current moment.

[0064] In specific implementation, the output flow data of the output port can be collected by the sensor at a preset sampling time interval, and all the collected flow data can be arranged into a sequence in chronological order, and the sequence can be used as the output flow sequence.

[0065] It should be noted that the output traffic sequence described in the present application corresponds to the transmission traffic sequence, the two have the same length, equal sampling intervals, and the same sampling time. The current moment in this step is actually the same as the current moment in the aforementioned step 101. The output traffic sequence is the output traffic sequence at the current moment, which will not be repeated here.

[0066] In some embodiments, performing aliasing feature extraction on the transmission traffic sequence according to the output traffic sequence to obtain the transmission aliasing feature value at the current moment may be implemented by the following steps:

[0067] Determine a transmission flow time-varying vector and a plurality of transmission flow characteristic vectors according to the output flow sequence and the transmission flow sequence, that is, in the present application, a transmission flow time-varying vector and a plurality of transmission flow characteristic vectors can be simultaneously determined according to the output flow sequence and the transmission flow sequence;

[0068] A transmission aliasing characteristic value is determined according to the transmission flow time-varying vector and all transmission flow characteristic vectors, wherein the transmission aliasing characteristic value can be determined according to the following formula:

[0069]

[0070] Among them, b t is the transmission aliasing characteristic value at time t, a i is the i-th transmission flow data in the transmission flow sequence, a i+1 is the i+1th transmission flow data in the transmission flow sequence, W t is the time-varying vector of the transmission flow at time t, Z ti is the i-th transmission flow characteristic vector at time t, Z ti T is the transpose of the ith transmission flow characteristic vector at time t, L t is the length of the transmission flow sequence at time t, A(2L t ) indicates the length is 2L t A column vector whose elements are all 1, and t is the current time.

[0071] It should be noted that the transmission aliasing characteristic value described in the present application is a parameter value used to measure the confusion of external interference noise mixed and superimposed on encrypted data and actual traffic data in the transmission path. This parameter value can reflect the confusion of the noise in the transmission path, and then the maximum noise value in the encrypted data transmission process can be estimated through the transmission aliasing characteristic value.

[0072] In some embodiments, a transmission flow time-varying vector is determined according to the output flow sequence and the transmission flow sequence, wherein the transmission flow time-varying vector can be determined according to the following formula:

[0073]

[0074] Among them, W ti is the i-th transmission flow error value in the transmission flow time-varying vector at time t, L t is the length of the transmission flow sequence at time t, a i is the i-th flow data value in the transmission flow sequence, a i+1 is the i+1th flow data value in the transmission flow sequence, u i is the i-th output flow data value in the output flow sequence, and t is the current time.

[0075] It should be noted that the transmission time-varying vector described in the embodiment provided in the present application is a vector that measures the correlation between the traffic data at different times in the transmission traffic sequence and the correlation between the traffic data in the transmission traffic sequence and the output traffic data in the output traffic sequence at the same moment.

[0076] In some embodiments, a plurality of transmission traffic feature vectors are determined according to the output traffic sequence and the transmission traffic sequence, wherein the transmission traffic feature vectors can be determined according to the following formula:

[0077]

[0078] Among them, Z ti (k) is the kth transmission flow characteristic value in the i-th transmission flow characteristic vector at time t, a i-k is the ikth flow data value in the transmission flow sequence, u i-k is the ikth output flow data value in the output flow sequence, ∩ represents the intersection of the two, L t is the length of the transmission flow sequence at time t, where t is the current time.

[0079] It should be noted that the transmission flow characteristic vector described in the embodiment provided in the present application is a vector reflecting the characteristics of flow changes during the transmission process of encrypted data from the output port of the transmission route to the transmission path at the current moment.

[0080] In addition, it should be noted that, in the embodiment provided in the present application, by comparing the output flow sequence of the encrypted data output port and the transmission flow sequence in the transmission path, the slight fluctuations in the flow in the transmission path of the encrypted data caused by the transmission route medium or external interference can be more accurately extracted, which facilitates the subsequent determination of the precise flow grayscale threshold.

[0081] In step 103, real-time traffic monitoring is performed on the transmission traffic sequence through a traffic monitoring window preset to a fixed length to obtain a priori traffic value and a posteriori traffic value, and the transmission traffic grayscale at the current moment is determined based on the a priori traffic value and the posteriori traffic value.

[0082] In some embodiments, real-time traffic monitoring of the transmission traffic sequence is performed through a traffic monitoring window preset to a fixed length, and obtaining a priori traffic value and a posteriori traffic value can be achieved in the following manner:

[0083] Obtaining each flow data in the transmission flow sequence;

[0084] Obtaining the length M of the flow monitoring window;

[0085] Determine the current time t;

[0086] The a priori flow value and the a posteriori flow value are determined according to each flow data value in the transmission flow sequence, the length of the flow monitoring window and the current time, wherein the a priori flow value and the a posteriori flow value can be determined according to the following formula:

[0087]

[0088] Among them, Q t is the prior flow value at time t, H t is the posterior flow value at time t, a k is the kth flow data in the transmission flow sequence.

[0089] It should be noted that the a priori traffic value in this application refers to the characteristics of the historical traffic data in the transmission traffic sequence, which is used to measure the traffic size in the transmission route before the sampling time, and the a posteriori traffic value refers to the characteristics of the traffic data in the transmission traffic sequence at the current moment, which is used to measure the traffic size in the transmission route at the current moment.

[0090] In some embodiments, determining the transmission flow grayscale at the current moment according to the prior flow value and the a posteriori flow value can be implemented by the following steps:

[0091] Determine the prior flow value Q at time t t ;

[0092] Determine the a posteriori flow value H at time t t ;

[0093] According to the prior flow value Q at time t t and the posterior flow value H at time t t Determine the grayscale of the transmission flow at the current moment, wherein the grayscale of the transmission flow at the current moment can be determined according to the following formula:

[0094]

[0095] Among them, S1 is the transmission flow grayscale at the first moment, H1 is the a posteriori flow value at the first moment, Q1 is the a priori flow value at the first moment, S t is the grayscale of the transmission flow at time t, S t-1 is the grayscale of the transmission flow at time t-1, Q t is the prior flow value at time t, H t is the a posteriori flow value at time t, max(0, H1-Q1) represents the maximum value between 0 and H1-Q1, max(0, S t-1 +H t -Q t ) represents 0 and S t-1 +H t -Q t The maximum value of the two, t is the current moment.

[0096] It should be noted that the first moment mentioned in the above formula refers to the initial moment when the encrypted data is input into the transmission path.

[0097] In addition, it should be noted that the transmission traffic grayscale described in this application is a parameter used to measure the possibility of hacker access during the transmission of encrypted data. When the transmission traffic grayscale is large, it means that an external visitor has entered the transmission route. Therefore, the transmission process of encrypted data can be monitored in real time through the transmission traffic grayscale to prevent advanced persistent threat attacks.

[0098] In step 104, the traffic grayscale threshold at the current moment is determined according to the transmission traffic tidal value and the transmission aliasing characteristic value at the current moment, and the encrypted data is transmitted using the transmission traffic grayscale at the current moment and the traffic grayscale threshold at the current moment.

[0099] In some embodiments, determining the traffic gray threshold at the current moment according to the transmission traffic tidal value and the transmission aliasing characteristic value at the current moment can be implemented by the following steps:

[0100] Get the transmission flow tidal value at the current moment;

[0101] Get the transmission aliasing characteristic value at the current moment;

[0102] The flow gray threshold at the current moment is determined according to the transmission flow tidal value and the transmission aliasing characteristic value at the current moment, wherein the flow gray threshold can be determined by the following formula:

[0103]

[0104] Among them, R tis the grayscale threshold of the flow at time t, p t is the tidal value of the transmission flow at time t, b t is the transmission aliasing characteristic value at time t, M is the length of the flow monitoring window, and t is the current time.

[0105] It should be noted that when the encrypted data is subjected to non-human interference during transmission, the noise generated is usually Gaussian white noise. The transmission aliasing characteristic value is the disorder of the Gaussian white noise, that is, the variance. According to the Gaussian distribution theory, it can be concluded that the maximum impact of the traffic fluctuation in the encrypted data transmission route caused by the Gaussian white noise should be

[0106] In some embodiments, the following steps may be used to transmit encrypted data using the current transmission traffic grayscale and the current traffic grayscale threshold:

[0107] Compare the transmission traffic grayscale at the current moment with the traffic grayscale threshold, and when the transmission traffic grayscale at the current moment is greater than the traffic grayscale threshold, determine that there is a visitor access, query the visitor access record of the server terminal, and when the corresponding access request cannot be queried, record the visitor's access as a hacker attack, immediately interrupt the transmission of encrypted data and alarm;

[0108] When it is determined that there is no visitor access or the corresponding access request can be queried, the encrypted data will be transmitted.

[0109] In some embodiments, after immediately interrupting the transmission of encrypted data and raising an alarm, the following steps may be used for processing, namely:

[0110] The Internet Protocol address of the visitor who caused the alarm is collected, and the Internet Protocol address is entered into a database, and all access requests from the Internet Protocol address are prohibited.

[0111] It should be noted that in this application, the transmission traffic tidal value and transmission aliasing characteristic value in the encrypted data transmission process are extracted to determine the precise traffic grayscale threshold. By comparing the traffic grayscale threshold and the transmission traffic grayscale, external access in the encrypted data transmission path can be monitored in a timely manner, thereby realizing a highly sensitive data encryption transmission method for preventing advanced persistent threat attacks.

[0112] In addition, in another aspect of the present application, in some embodiments, the present application provides a data encryption transmission system for preventing advanced persistent threat attacks, the system includes an intrusion attack monitoring unit, referring to Figure 3As shown, the figure is a schematic diagram of exemplary hardware and / or software of an intrusion attack monitoring unit according to some embodiments of the present application. The intrusion attack monitoring unit 300 includes: a transmission flow tidal value determination module module 301, a transmission aliasing characteristic value determination module module 302, a transmission flow grayscale determination module module 303 and an encrypted data transmission module 304, which are respectively described as follows:

[0113] The transmission flow tidal value determination module 301 in the present application is mainly used to encrypt the data and input it into the transmission path, obtain the transmission flow sequence in the transmission path, perform flow tidal measurement on the transmission flow sequence, and obtain the transmission flow tidal value at the current moment;

[0114] A transmission aliasing characteristic value determination module 302, in the present application, the transmission aliasing characteristic value determination module 302 is mainly used to obtain an output flow sequence of an encrypted data output port, perform aliasing feature extraction on the transmission flow sequence according to the output flow sequence, and obtain a transmission aliasing characteristic value at the current moment;

[0115] The transmission traffic grayscale determination module 303 in the present application is mainly used to perform real-time traffic monitoring on the transmission traffic sequence through a traffic monitoring window preset to a fixed length, obtain a priori traffic value and a posteriori traffic value, and determine the transmission traffic grayscale at the current moment according to the a priori traffic value and the posteriori traffic value;

[0116] The encrypted data transmission module 304, in the present application, the intrusion attack monitoring module 304 is mainly used to determine the current traffic grayscale threshold value according to the current transmission traffic tidal value and the transmission aliasing characteristic value, and transmit the encrypted data through the current transmission traffic grayscale and the current traffic grayscale threshold value.

[0117] In addition, the present application also provides a computer device, which includes a memory and a processor, the memory stores code, and the processor is configured to obtain the code and execute the above-mentioned data encryption transmission method for preventing advanced persistent threat attacks.

[0118] In some embodiments, reference Figure 4 , which is a schematic diagram of the structure of a computer device for implementing a data encryption transmission method for preventing advanced persistent threat attacks according to some embodiments of the present application. The data encryption transmission method for preventing advanced persistent threat attacks in the above embodiments can be Figure 4 The computer device shown in the figure is implemented, and the computer device includes at least one processor 401, a communication bus 402, a memory 403 and at least one communication interface 404.

[0119] Processor 401 may be a general-purpose central processing unit (CPU), an application-specific integrated circuit (AIC), or one or more processors for controlling the execution of the data encryption transmission method for preventing advanced persistent threat attacks in the present application.

[0120] Communication bus 402 may include a pathway for transmitting information between the above-mentioned components.

[0121] The memory 403 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, an optical disc storage (including a compressed optical disc, a laser disc, an optical disc, a digital versatile disc, a Blu-ray disc, etc.), a disk or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory 403 may exist independently and be connected to the processor 401 via the communication bus 402. The memory 403 may also be integrated with the processor 401.

[0122] Among them, the memory 403 is used to store the program code for executing the solution of the present application, and the execution is controlled by the processor 401. The processor 401 is used to execute the program code stored in the memory 403. The program code may include one or more software modules. The data encryption transmission method for preventing advanced persistent threat attacks in the above embodiment can be implemented by the processor 401 and one or more software modules in the program code in the memory 403.

[0123] The communication interface 404 uses any transceiver or other device for communicating with other devices or communication networks, such as Ethernet, radio access network (RAN), wireless local area networks (WLAN), etc.

[0124] In a specific implementation, as an embodiment, a computer device may include multiple processors, each of which may be a single-CPU processor or a multi-CPU processor. The processor here may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).

[0125] The above-mentioned computer device can be a general-purpose computer device or a special-purpose computer device. In a specific implementation, the computer device can be a desktop computer, a portable computer, a network server, a personal digital assistant (PDA), a mobile phone, a tablet computer, a wireless terminal device, a communication device or an embedded device. The embodiment of the present application does not limit the type of computer device.

[0126] In addition, the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the above-mentioned data encryption transmission method for preventing advanced persistent threat attacks.

[0127] In summary, in the data encryption transmission method and system for preventing advanced persistent threat attacks disclosed in the embodiments of the present application, firstly, by collecting the transmission flow sequence of encrypted data in the transmission path, it is possible to monitor in real time whether the transmission path is accessed from the outside, which is convenient for subsequent monitoring of hacker attacks, and by extracting the transmission flow tidal value in the transmission flow sequence, it is convenient to more accurately determine the flow grayscale threshold at the current moment in the future; by comparing the output flow sequence of the encrypted data output port and the transmission flow sequence in the transmission path, the slight fluctuations of the flow in the transmission path of the encrypted data caused by the transmission route medium or external interference can be more accurately extracted, which is convenient for the subsequent determination of the precise flow grayscale threshold. The grayscale of the transmission traffic is a parameter used to measure the possibility of hacker access during the transmission of encrypted data. When the grayscale of the transmission traffic is large, it means that an external visitor has entered the transmission route. Therefore, the transmission process of encrypted data can be monitored in real time through the transmission traffic grayscale to prevent advanced persistent threat attacks. The precise traffic grayscale threshold is determined by extracting the transmission traffic tidal value and the transmission aliasing characteristic value during the encrypted data transmission process. By comparing the traffic grayscale threshold and the transmission traffic grayscale, the external access situation in the encrypted data transmission path can be monitored in time, thereby realizing a highly sensitive data encryption transmission method and system for preventing advanced persistent threat attacks.

[0128] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.

[0129] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A data encryption transmission method for preventing advanced persistent threat attacks, characterized in that: The specific steps include: Encrypting the data and inputting it into the transmission path, obtaining a transmission flow sequence in the transmission path, and performing flow tidal measurement on the transmission flow sequence to obtain a transmission flow tidal value at the current moment, wherein the transmission flow tidal value represents a normal flow fluctuation magnitude generated during normal data transmission; Obtain an output traffic sequence of an encrypted data output port, perform aliasing feature extraction on the transmission traffic sequence based on the output traffic sequence, and obtain a transmission aliasing feature value at the current moment, wherein the transmission aliasing feature value is used to measure the degree of confusion of external interference noise mixed and superimposed on the actual traffic data; Real-time traffic monitoring of the transmission traffic sequence is performed through a traffic monitoring window preset to a fixed length to obtain a priori traffic value and a posteriori traffic value, wherein the priori traffic value is used to measure the traffic volume in the transmission route before the sampling moment, and the posteriori traffic value is used to measure the traffic volume in the transmission route at the current moment. The transmission traffic grayscale at the current moment is determined based on the priori traffic value and the posteriori traffic value, wherein the transmission traffic grayscale is used to measure the probability of hacker access during the transmission of encrypted data; The traffic grayscale threshold at the current moment is determined according to the transmission traffic tidal value and the transmission aliasing characteristic value at the current moment, and the encrypted data is transmitted using the transmission traffic grayscale at the current moment and the traffic grayscale threshold at the current moment; The method of determining the traffic grayscale threshold at the current moment according to the transmission traffic tidal value and the transmission aliasing characteristic value at the current moment specifically includes: Get the transmission flow tidal value at the current moment; Get the transmission aliasing characteristic value at the current moment; The traffic grayscale threshold at the current moment is determined according to the transmission traffic tidal value and the transmission aliasing characteristic value at the current moment, wherein the traffic grayscale threshold can be determined by the following formula: Among them, R t is the grayscale threshold of the flow at time t, p t is the tidal value of the transmission flow at time t, b t is the transmission aliasing characteristic value at time t, M is the length of the traffic monitoring window, and t is the current time.

2. The method according to claim 1, wherein Performing flow tidal measurement on the transmission flow sequence to obtain the transmission flow tidal value at the current moment specifically includes: Determining all traffic congestion values ​​in the transmission traffic sequence; Determine all flow unblocking values ​​in the transmission flow sequence; The transmission flow tidal value is determined according to all flow congestion values ​​and all flow unblocked values ​​in the transmission flow sequence.

3. The method according to claim 1, wherein Extracting aliasing features from the transmission traffic sequence according to the output traffic sequence to obtain a transmission aliasing feature value at a current moment specifically includes: Determine a transmission flow time-varying vector and a plurality of transmission flow characteristic vectors according to the output flow sequence and the transmission flow sequence; A transmission aliasing characteristic value is determined according to the transmission flow time-varying vector and all transmission flow characteristic vectors.

4. The method according to claim 1, wherein Performing real-time traffic monitoring on the transmission traffic sequence through a traffic monitoring window preset to a fixed length to obtain a priori traffic value and a posteriori traffic value specifically includes: Obtaining each flow data in the transmission flow sequence; Obtaining the length of the flow monitoring window; Determine the current moment; The a priori flow value and the a posteriori flow value are determined according to each flow data value in the transmission flow sequence, the length of the flow monitoring window and the current moment.

5. The method according to claim 1, wherein Determining the transmission flow grayscale at the current moment according to the prior flow value and the a posteriori flow value specifically includes: Determine the prior flow value Q at time t t ; Determine the posterior flow value H at time t t ; According to the prior flow value Q at time t t and the posterior flow value H at time t t Determine the grayscale of the transmission traffic at the current moment, where the grayscale of the transmission traffic at the current moment is determined according to the following formula: Among them, S1 is the transmission flow grayscale at the first moment, H1 is the posterior flow value at the first moment, Q1 is the prior flow value at the first moment, S t is the grayscale of transmission traffic at time t, S t-1 is the grayscale of transmission traffic at time t-1, Q t is the prior flow value at time t, H t is the a posteriori flow value at time t, max(0, H1-Q1) represents the maximum value between 0 and H1-Q1, max(0, S t-1 +H t -Q t ) represents 0 and S t-1 +H t -Q t The maximum value of the two, t is the current moment.

6. The method according to claim 1, wherein The encrypted data is transmitted based on the current transmission traffic grayscale and the current traffic grayscale threshold, specifically including: Compare the current transmission traffic grayscale with the traffic grayscale threshold. When the current transmission traffic grayscale is greater than the traffic grayscale threshold, it is determined that there is a visitor access. The visitor access record of the server terminal is queried. If the query result shows that there is a visitor access but the corresponding access request cannot be queried, the visitor access is recorded as a hacker attack, and the transmission of encrypted data is immediately interrupted and an alarm is issued. When it is determined that there is no visitor access or the corresponding access request can be queried, the encrypted data will be transmitted.

7. The method according to claim 6, wherein After immediately interrupting the transmission of encrypted data and issuing an alarm, the following also applies: Collect the Internet Protocol address of the visitor who caused the alarm, enter the Internet Protocol address into the database, and prohibit all access requests from the Internet Protocol address.

8. A data encryption transmission system for preventing advanced persistent threat attacks, which adopts the method according to any one of claims 1 to 7 for data encryption transmission, characterized in that: The data encryption transmission system includes an intrusion attack monitoring unit, which includes: a transmission flow tidal value determination module, configured to encrypt the data and input it into the transmission path, obtain a transmission flow sequence in the transmission path, perform flow tidal measurement on the transmission flow sequence, and obtain a transmission flow tidal value at the current moment; a transmission aliasing characteristic value determination module, configured to obtain an output flow sequence of an encrypted data output port, perform aliasing feature extraction on the transmission flow sequence according to the output flow sequence, and obtain a transmission aliasing characteristic value at a current moment; a transmission traffic grayscale determination module, configured to perform real-time traffic monitoring on the transmission traffic sequence through a traffic monitoring window preset to a fixed length, obtain a priori traffic value and a posteriori traffic value, and determine the transmission traffic grayscale at the current moment based on the priori traffic value and the posteriori traffic value; The encrypted data transmission module is used to determine the current traffic grayscale threshold according to the current transmission traffic tidal value and the transmission aliasing characteristic value, and transmit the encrypted data through the current transmission traffic grayscale and the current traffic grayscale threshold.

9. A computer device, characterized in that: The computer device includes a memory and a processor, the memory stores code, and the processor is configured to obtain the code and execute the data encryption transmission method for preventing advanced persistent threat attacks according to any one of claims 1 to 7.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the data encryption transmission method for preventing advanced persistent threat attacks according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Method and device for detecting advanced persistent threats

    CN107786524A

  • Method and device for detecting threat attack, equipment and storage medium

    CN109995736A