Method, device and equipment for intelligently detecting CDN (Content Delivery Network) brushing quantity and medium

By obtaining access logs from CDN nodes and performing multi-dimensional data feature analysis, the CDN brush volume detection model is used to automatically detect abnormal behaviors, which solves the problem of low CDN brush volume detection efficiency, achieves efficient abnormal behavior identification and prevention, and reduces content provisioning business losses and management costs.

CN118694586AInactive Publication Date: 2024-09-24CHENGDU MEGAYOU TECH CO LTD

Patent Information

Application Number
CN202410791038.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-19
Publication Date
2024-09-24
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the existing technology, CDN fraud detection efficiency is low, causing economic losses to content providers, and manual analysis of data indicators is inefficient and slow in response, making it impossible to respond to malicious fraud in a timely manner, which increases management costs and work burdens.

Method used

By obtaining access logs from CDN nodes, preprocessing and extracting multi-dimensional data features are input into the CDN brush detection model to detect abnormal behaviors, and automatically add abnormal access terminal identifiers to the blacklist to deny access to services.

Benefits of technology

It realizes the automated detection of CDN brush volume anomalies, reduces manual intervention, improves detection efficiency, reduces economic losses, improves the security and stability of the CDN system, and reduces the losses to enterprises caused by malicious fraudulent behavior.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118694586A
    Figure CN118694586A
Patent Text Reader

Abstract

The invention relates to the technical field of the Internet, and discloses a method, a device and equipment for intelligently detecting CDN (Content Delivery Network) brushing quantity, and a medium, and the method comprises the steps: obtaining an access log from at least one CDN node; the access log is preprocessed, and multi-dimensional data features are extracted; inputting the multi-dimensional data feature vector into a CDN quantity brushing detection model, and detecting a CDN quantity brushing abnormal behavior so as to detect a CDN abnormal access terminal; according to the embodiment of the invention, the terminal identifier of the CDN abnormal access terminal is added into the access blacklist so as to refuse to provide the CDN access service for the CDN abnormal access terminal, so that the automatic detection of the CDN quantity refreshing abnormity is realized, the condition of manual intervention is reduced, the detection efficiency is improved, the economic loss caused by the CDN quantity refreshing is reduced, and the safety and stability of a CDN system are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of Internet technology, and in particular to a method, device, equipment and medium for intelligently detecting CDN brushing. Background Art

[0002] Content delivery networks (CDNs) play a vital role in modern Internet applications and are widely used for their advantages of improving user access speed and reducing the load on source servers. However, with the development of the Internet, CDNs often become targets for malicious fraud by unknown visitors, resulting in an increase in abnormal business traffic and, in turn, high CDN traffic costs.

[0003] One of the main characteristics of malicious fraud is access from several IP segments, which usually direct access to several fixed files or directories. This behavior not only consumes a large amount of CDN bandwidth resources, but may also affect the access of normal users and reduce service quality. At present, although some CDN service providers have provided bandwidth alarm monitoring functions, it is still necessary to manually analyze various data indicators to identify abnormal access source IPs and manually add them to the CDN background IP blacklist for blocking.

[0004] Manual analysis of data indicators has problems such as low efficiency and slow response, and cannot effectively deal with the losses caused by malicious fraud in a timely manner. Moreover, since the IP addresses of malicious visitors may change frequently, the IP addresses manually added to the blacklist may have expired and need to be constantly updated and maintained, which increases management costs and workload. Summary of the invention

[0005] In view of this, the present invention provides a method for intelligently detecting CDN brushing, which solves the technical problem in the prior art that the CDN brushing detection efficiency is low and causes economic losses to content providers.

[0006] According to a first aspect of the present invention, a method for intelligently detecting CDN traffic brushing is provided, comprising:

[0007] Obtain access logs from at least one CDN node;

[0008] Preprocessing the access logs and extracting multidimensional data features, wherein the multidimensional data features include access data packet features, access traffic features, and access statistical features;

[0009] Input the multi-dimensional data feature vector into the CDN volume brushing detection model to detect abnormal CDN volume brushing behavior, so as to detect abnormal CDN access terminals, wherein the CDN volume brushing detection model is generated by training the multi-dimensional data features generated by historical access logs;

[0010] The terminal identifier of the CDN abnormal access terminal is added to the access blacklist to refuse to provide CDN access service to the CDN abnormal access terminal.

[0011] According to a second aspect of the present invention, there is provided a device for intelligently detecting CDN traffic brushing, comprising:

[0012] An acquisition module, used to acquire access logs from at least one CDN node;

[0013] A preprocessing module, used to preprocess the access log and extract multi-dimensional data features, wherein the multi-dimensional data features include access data packet features, access flow features and access statistical features;

[0014] The anomaly detection module is used to input the multi-dimensional data feature vector into the CDN volume brushing detection model to detect the abnormal behavior of CDN volume brushing so as to detect the abnormal CDN access terminal, wherein the CDN volume brushing detection model is generated by the multi-dimensional data feature training produced by the historical access log;

[0015] The execution module is used to add the terminal identifier of the CDN abnormal access terminal to the access blacklist to refuse to provide CDN access service to the CDN abnormal access terminal.

[0016] According to a third aspect of the present invention, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned method for intelligently detecting CDN brushing volume when executing the computer program.

[0017] According to a fourth aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned method for intelligently detecting CDN brushing is implemented.

[0018] By means of the above technical scheme, the present invention provides a method, device, equipment and storage medium for intelligently detecting CDN volume brushing, which obtains access logs from at least one CDN node; pre-processes the access logs and extracts multi-dimensional data features, wherein the multi-dimensional data features include access data packet features, access traffic features and access statistical features; inputs the multi-dimensional data feature vector into the CDN volume brushing detection model, detects CDN volume brushing abnormal behavior, and detects CDN abnormal access terminals, wherein the CDN volume brushing detection model is generated by multi-dimensional data feature training produced by historical access logs; adds the terminal identifier of the CDN abnormal access terminal to the access blacklist to refuse to provide CDN access services to the CDN abnormal access terminal, realizes the automatic detection of CDN volume brushing abnormality, reduces the situation of manual intervention, improves the detection efficiency, reduces the economic losses caused by CDN volume brushing, and improves the security and stability of the CDN system. By introducing automated traffic analysis and anomaly detection technology, combined with a real-time IP blacklist update mechanism, it can effectively reduce the losses of CDN malicious theft to enterprises and improve the anti-attack capability and reliability of the CDN system.

[0019] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention and implement it according to the contents of the specification, and to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0021] Figure 1 A schematic diagram of an application scenario of a method for intelligently detecting CDN traffic brushing provided in an embodiment of the present invention is shown;

[0022] Figure 2 A flow chart of a method for intelligently detecting CDN traffic brushing provided in the first embodiment of the present invention is shown;

[0023] Figure 3 A flow chart of a method for intelligently detecting CDN traffic brushing provided in the second embodiment of the present invention is shown;

[0024] Figure 4 A flowchart of a CDN brush volume detection model training method provided in Embodiment 3 of the present invention is shown;

[0025] Figure 5 The network structure diagram of the CDN brush volume detection model provided in the third embodiment of the present invention is shown;

[0026] Figure 6 A schematic diagram of the structure of a device for intelligently detecting CDN brushing volume provided in an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0027] The specific implementation of the present invention will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that the embodiments and features in the embodiments of the present invention can be combined with each other without conflict.

[0028] The method for intelligently detecting CDN traffic brushing provided by the embodiment of the present invention can be applied to Figure 1 In the scenario, the terminal can be a mobile terminal or a PC, and files are downloaded through multiple CDNs. The access logs of multiple CDNs are centrally transmitted to the analysis server, and the analysis server application executes a method for intelligently detecting CDN brushing according to an embodiment of the present invention, by obtaining access logs from at least one CDN node; preprocessing the access logs and extracting multidimensional data features, wherein the multidimensional data features include access data packet features, access traffic features and access statistical features; inputting the multidimensional data feature vector into the CDN brushing detection model, detecting abnormal CDN brushing behavior, so as to detect CDN abnormal access terminals, wherein the CDN brushing detection model is generated by training the multidimensional data features produced by historical access logs; adding the terminal identifier of the CDN abnormal access terminal to the access blacklist to refuse to provide CDN access services to the CDN abnormal access terminal, thereby realizing automatic detection of CDN brushing anomalies, reducing the situation of manual intervention, improving detection efficiency, and reducing economic losses caused by CDN brushing.

[0029] The present invention is described in detail below through specific embodiments.

[0030] Embodiment 1

[0031] like Figure 2 As shown, a method for intelligently detecting CDN traffic brushing provided in an embodiment of the present invention includes:

[0032] Step 201: Obtain access logs from at least one CDN node;

[0033] Step 202: pre-process the access log and extract multi-dimensional data features;

[0034] Among them, the multi-dimensional data features include access data packet features, access traffic features and access statistical features;

[0035] Step 203: Input the multi-dimensional data feature vector into the CDN volume-boosting detection model to detect abnormal CDN volume-boosting behavior, so as to detect abnormal CDN access terminals;

[0036] Among them, the CDN brushing detection model is generated by training the multi-dimensional data features produced by historical access logs. The example of the present invention automatically analyzes the access logs in the most recent monitoring period of the CDN (for example, 5 minutes) through the server, and analyzes the malicious brushing IP (one or more indicators have a very high head concentration) from multiple dimensions such as access frequency, number share, traffic share, http_referer distribution, user_agent distribution, and download file path distribution.

[0037] Step 204: Add the terminal identifier of the CDN abnormal access terminal to an access blacklist to deny CDN access service to the CDN abnormal access terminal.

[0038] Among them, after adding the CDN abnormal access terminal to the blacklist, if malicious behavior is found again during the blacklist period, the time will be automatically extended (for example, 48 hours). During the ban period, after receiving user feedback on download anomalies and manual verification by customer service, it can be removed from the blacklist.

[0039] A method for intelligently detecting CDN volume brushing provided in a first embodiment of the present invention comprises obtaining access logs from at least one CDN node; preprocessing the access logs and extracting multi-dimensional data features, wherein the multi-dimensional data features include access data packet features, access traffic features and access statistical features; inputting the multi-dimensional data feature vector into a CDN volume brushing detection model to detect abnormal CDN volume brushing behavior to detect CDN abnormal access terminals, wherein the CDN volume brushing detection model is generated by training the multi-dimensional data features produced by historical access logs; adding the terminal identifier of the CDN abnormal access terminal to an access blacklist to refuse to provide CDN access services to the CDN abnormal access terminal, thereby realizing automatic detection of CDN volume brushing anomalies, reducing the need for manual intervention, improving detection efficiency, and reducing economic losses caused by CDN volume brushing.

[0040] Embodiment 2

[0041] Based on the first implementation of the present invention, a method for intelligently detecting CDN traffic brushing is implemented by calculating access statistical features through the User-Agent or Referer identifier of the access request header. Figure 3 ,include:

[0042] Step 301: Obtain access logs from at least one CDN node;

[0043] Step 302: pre-process the access log and extract multi-dimensional data features;

[0044] Step 303: Input the multi-dimensional data feature vector into the CDN volume-boosting detection model;

[0045] Step 304: Calculate the corresponding relationship between the access statistical features and the access initiator or the access object through the CDN brushing detection model;

[0046] The access initiator is obtained through the User-Agent field or Referer identifier of the access request header or the IP address of the request packet, and the access object is obtained through the download file path identifier.

[0047] Step 305: judging the abnormality of the index of the access statistical feature of the access initiator or the access object to detect the abnormal CDN access terminal;

[0048] Among them, the access initiator is the terminal device that initiates the access (it can also correspond to the user) or the access object (for example, access to downloaded files). The number of access requests within the preset time range is calculated based on these two dimensions. For example, malicious IP addresses that increase the volume can be analyzed from multiple dimensions such as access frequency, number share, traffic share, Referer identification distribution, User-Agent distribution, and download file path distribution (one or more indicators have a very high head concentration, that is, greater than the preset threshold, which can also be achieved through simple numerical clustering).

[0049] Step 306: Add the terminal identifier of the CDN abnormal access terminal to an access blacklist to deny CDN access service to the CDN abnormal access terminal.

[0050] When an abnormal CDN access alarm is monitored, the intelligent analysis and ban module is automatically notified through the http callback interface, and the abnormal IP is automatically added to the CDN IP blacklist for banning. The indicator characteristics and handling process of this malicious brushing behavior are pushed to the operation and maintenance personnel in the form of DingTalk messages.

[0051] Embodiment 3

[0052] The detection mechanism of the present invention is more of a static method, and only through threshold judgment, it is easy to produce detection errors. Therefore, the second embodiment of the present invention introduces a machine learning method, and proposes a CDN brushing detection model based on the idea of ​​generating adversarial networks. The introduction of the CDN brushing detection model effectively improves the accuracy of CDN brushing detection. The training method of the CDN brushing detection model of the third embodiment of the present invention is as follows: Figure 4 ,include:

[0053] Step 401, initializing the network parameters of the generator and the discriminator;

[0054] Before this step, the training data needs to be processed to extract multidimensional data features for model training. Before step 401, the following steps are included:

[0055] Step 400-1, processing the access log sample into a data packet attribute feature vector, a flow attribute feature vector, and a flow statistics attribute feature vector;

[0056] Step 400-2: Assemble the data packet attribute feature vector, the traffic attribute feature vector, and the traffic statistics attribute feature vector into a traffic feature matrix.

[0057] Step 402: training the generator;

[0058] Among them, Figure 5 As shown, taking the network structure diagram of the CDN brush volume detection model as an example, the generator in the embodiment of the present invention includes a flow encoder, two first convolution encoders, a convolution decoder and a flow decoder (in order of flow encoder, first convolution encoder, convolution decoder, first convolution encoder, flow decoder);

[0059] In the above structure, the flow encoder output is F(x)=W d×D x,W d×D is a d×D weight matrix, x is the eigenvalue matrix of the traffic encoder, the first convolution encoder includes three convolutional network layers (each convolutional network layer includes a convolutional layer (using a fixed-size convolution kernel to slide through the input data to extract local features in this way), a normalization layer and an activation function, wherein the activation function is LeakyReLU, which is a modified linear activation function that allows negative values ​​to pass through a very small gradient) and a convolutional output layer, the convolutional decoder includes three transposed convolutional network layers (each transposed convolutional network layer includes a transposed convolutional layer (using a fixed-size convolution kernel to slide through the input data to extract local features in this way), a normalization layer and an activation function), a transposed convolutional layer and a fully connected output layer, and the activation function of the fully connected output layer is Tanh; the traffic encoder is responsible for mapping the input traffic feature matrix to a low-dimensional latent space for further processing and analysis, while the traffic decoder supports anomaly detection tasks through effective data reconstruction or generation, so that the model can learn the distribution of normal network traffic and detect abnormal patterns that deviate from this distribution.

[0060] Step 403: training the discriminator;

[0061] The discriminator includes a flow encoder and a second convolutional encoder (the flow encoder and the second convolutional encoder in order);

[0062] In the above structure, the first convolutional encoder includes three convolutional network layers, a convolutional output layer and a fully connected output layer. The activation function of the fully connected output layer is sigmoid.

[0063] Step 404: Execute a back propagation algorithm by calculating the gradient of the total loss function with respect to the network parameters to update the parameters of the generator and the discriminator;

[0064] Wherein, step 404 specifically includes:

[0065] Step 404-1, calculate the total loss function loss=w con loss con +w hidden loss hidden +w dis loss dis , where w con loss con Reconstruct the loss function for the generator, w hidden loss hidden Hidden loss function for the generator, w dis loss dis is the discriminator loss function, and the generator reconstruction loss function E is the mean operator, is the reconstructed data output by the first convolutional encoder, x is the input data of the first convolutional encoder, and the generator hides the loss function G(x) is the reconstructed output of the first convolutional encoder, The mean of the output reconstructed by the second first convolution encoder, the discriminator loss function loss dis =E[f dis (x)]-E[f dis (G(x)],E[f dis (x)] is the discriminator f dis (x) is the mean value of the output of the real data x, E[f dis (G(x)] is the discriminator f dis (x) is the mean value of the output of the reconstructed data G(x), w con 、w hidden 、w dis is the weight value assigned;

[0066] Step 404-2: Calculate the gradient of the total loss function with respect to the network parameters and execute the back propagation algorithm to update the parameters of the generator and the discriminator, that is, update the weight matrix W. d×D The value of each element in .

[0067] Step 405: determine whether the number of iterations reaches a preset threshold or whether the change in the total loss function between two adjacent iterations is less than a preset threshold;

[0068] Step 406: When the number of iterations reaches a preset threshold or the change in the total loss function of two adjacent iterations is less than the preset threshold, the model training is terminated and the CDN brush volume detection model is output; when the number of iterations is less than the preset threshold and the change in the total loss function of two adjacent iterations is not less than the preset threshold, jump to step 402 to continue model training.

[0069] When the CDN volume-boosting detection model trained in the third embodiment of the present invention is used to detect CDN volume-boosting, steps 202 and 203 need to be adjusted accordingly, as follows:

[0070] Step 202 is similar to step 400-1 and step 400-2, and processes the access logs in the preset time range into data packet attribute feature vectors, flow attribute feature vectors, and flow statistical attribute feature vectors; assembles the data packet attribute feature vectors, flow attribute feature vectors, and flow statistical attribute feature vectors into a flow feature matrix. Assembles the data packet attribute feature vectors, flow attribute feature vectors, and flow statistical attribute feature vectors into a flow feature matrix as the input of the CDN brushing detection model.

[0071] Accordingly, step 203 specifically includes:

[0072] Step 203-1, input the assembled traffic feature matrix into the CDN traffic brushing detection model;

[0073] Step 203-2: By scoring the abnormal behavior of CDN volume brushing, when the abnormal score is greater than a preset threshold, it is determined that the CDN abnormal access terminal;

[0074] Among them, the anomaly score Score = λSG(x)+(1-λ)SD(x), SG(x) is the generator anomaly score, SD(x) is the discriminator anomaly score, and λ is the scoring parameter.

[0075] The CDN brush volume detection model proposed in the third embodiment of the present invention includes a generator and a discriminator. The model learns the underlying distribution of CDN access traffic data through adversarial training, and combines multiple loss functions to form multiple constraints to accurately train the model. The traffic encoder in the model maps the traffic feature data from different data sets to a unified feature space, thereby more accurately capturing the normality of network traffic. The anomaly score is composed of the Euclidean distance between the two convolutional encoders of the generator (corresponding to the first first convolutional encoder and the second first convolutional encoder, and the first first convolutional encoder and the second first convolutional encoder are sandwiched between a convolutional decoder) and the output of the discriminator. This method can better reflect the abnormal characteristics of network traffic, and the effect is better than the adversarial generation GAN method in the prior art.

[0076] Further, as Figure 2 or Figure 3The specific implementation of the method, the embodiment of the present invention provides a device for intelligently detecting CDN brushing, such as Figure 6 As shown, the device comprises:

[0077] An acquisition module 610 is used to acquire access logs from at least one CDN node;

[0078] A preprocessing module 620 is used to preprocess the access log and extract multi-dimensional data features, wherein the multi-dimensional data features include access data packet features, access traffic features and access statistical features;

[0079] The anomaly detection module 630 is used to input the multi-dimensional data feature vector into the CDN volume brushing detection model to detect the CDN volume brushing abnormal behavior to detect the CDN abnormal access terminal, wherein the CDN volume brushing detection model is generated by the multi-dimensional data feature training generated by the historical access log;

[0080] The execution module 640 is used to add the terminal identifier of the CDN abnormal access terminal to the access blacklist to refuse to provide CDN access service to the CDN abnormal access terminal.

[0081] In an embodiment of the present invention, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of implementing a method for intelligently detecting CDN volume brushing include:

[0082] Obtain access logs from at least one CDN node;

[0083] Preprocessing the access logs and extracting multidimensional data features, wherein the multidimensional data features include access data packet features, access traffic features, and access statistical features;

[0084] Input the multi-dimensional data feature vector into the CDN volume brushing detection model to detect abnormal CDN volume brushing behavior, so as to detect abnormal CDN access terminals, wherein the CDN volume brushing detection model is generated by training the multi-dimensional data features generated by historical access logs;

[0085] The terminal identifier of the CDN abnormal access terminal is added to the access blacklist to refuse to provide CDN access service to the CDN abnormal access terminal.

[0086] In an embodiment of the present invention, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:

[0087] Obtain access logs from at least one CDN node;

[0088] Preprocessing the access logs and extracting multidimensional data features, wherein the multidimensional data features include access data packet features, access traffic features, and access statistical features;

[0089] Input the multi-dimensional data feature vector into the CDN volume brushing detection model to detect abnormal CDN volume brushing behavior, so as to detect abnormal CDN access terminals, wherein the CDN volume brushing detection model is generated by training the multi-dimensional data features generated by historical access logs;

[0090] The terminal identifier of the CDN abnormal access terminal is added to the access blacklist to refuse to provide CDN access service to the CDN abnormal access terminal.

[0091] It should be noted that, in the above embodiments, regarding the functions or steps that can be implemented by the computer-readable storage medium or the computer device, the corresponding reference can be made to the above method embodiments. To avoid repetition, they will not be described one by one here.

[0092] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided by the present invention can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0093] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

[0094] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.

Claims

1. A method for intelligently detecting CDN volume increase, characterized in that: include: Obtain access logs from at least one CDN node; Preprocessing the access log and extracting multi-dimensional data features, wherein the multi-dimensional data features include access data packet features, access traffic features, and access statistical features; Inputting the multi-dimensional data feature vector into a CDN volume brushing detection model to detect abnormal CDN volume brushing behavior to detect abnormal CDN access terminals, wherein the CDN volume brushing detection model is generated by training the multi-dimensional data features generated by historical access logs; The terminal identifier of the CDN abnormal access terminal is added to an access blacklist to refuse to provide CDN access service to the CDN abnormal access terminal.

2. The method for intelligently detecting CDN traffic volume according to claim 1, characterized in that: The step of inputting the multi-dimensional data feature vector into a CDN volume-brushing detection model to detect abnormal CDN volume-brushing behavior to detect abnormal CDN access terminals includes: Inputting the multi-dimensional data feature vector into a CDN volume-boosting detection model; The corresponding relationship between access statistical features and access initiator or access object is calculated through the CDN brushing detection model, where the access initiator is identified by the User-Agent or Referer field in the access request header, and the access object is identified by the download file path; The abnormality of the access statistics of the access initiator or the access object is judged to detect abnormal CDN access terminals.

3. The method for intelligently detecting CDN volume increase according to claim 1, characterized in that: Before the step of inputting the multi-dimensional data feature vector into the CDN volume-brushing detection model to detect abnormal CDN volume-brushing behavior to detect abnormal CDN access terminals, a training step of the CDN volume-brushing detection model is included, which specifically includes: Step 1: Initialize the network parameters of the generator and discriminator; Step 2: Train the generator, wherein the generator includes a flow encoder, two first convolution encoders, a convolution decoder and a flow decoder, and the flow encoder output is F(x)=W d×D x,W d×D is a d×D weight matrix, x is an eigenvalue matrix of the traffic encoder, the first convolution encoder includes three convolutional network layers and one convolutional output layer, the convolutional decoder includes three transposed convolutional network layers, one transposed convolutional layer and one fully connected output layer, and the activation function of the fully connected output layer is Tanh; Step 3: training the discriminator, wherein the discriminator includes a flow encoder and a second convolutional encoder, wherein the first convolutional encoder includes three convolutional network layers, a convolutional output layer and a fully connected output layer, and the activation function of the fully connected output layer is sigmoid; Step 4: Perform the back-propagation algorithm to update the parameters of the generator and discriminator by calculating the gradient of the total loss function with respect to the network parameters; Step 5: Determine whether the number of iterations reaches a preset threshold or whether the change in the total loss function between two adjacent iterations is less than a preset threshold; Step 6: When the number of iterations reaches a preset threshold or the change in the total loss function of two adjacent iterations is less than the preset threshold, the model training is terminated and the CDN brushing detection model is output; when the number of iterations is less than the preset threshold and the change in the total loss function of two adjacent iterations is not less than the preset threshold, jump to step 2 to continue model training.

4. The method for intelligently detecting CDN volume increase according to claim 3, characterized in that: The convolutional network layer includes a convolutional layer, a normalization layer and an activation function, and the transposed convolutional network layer includes a transposed convolutional layer, a normalization layer and an activation function.

5. The method for intelligently detecting CDN volume increase according to claim 3, characterized in that: The step of preprocessing the access log and extracting multidimensional data features includes: Processing the access log into a data packet attribute feature vector, a flow attribute feature vector, and a flow statistics attribute feature vector; The data packet attribute feature vector, the traffic attribute feature vector, and the traffic statistics attribute feature vector are assembled into a traffic feature matrix.

6. The method for intelligently detecting CDN traffic volume according to claim 1, characterized in that: The step of calculating the gradient of the total loss function with respect to the network parameters and executing the back propagation algorithm to update the parameters of the generator and the discriminator includes: Calculate the total loss function loss = w con loss con +w hidden loss hidden +w dis loss dis , where w con loss con Reconstruct the loss function for the generator, w hidden loss hidden Hidden loss function for the generator, w dis loss dis is the discriminator loss function, and the generator reconstruction loss function E is the mean operator, is the reconstructed data output by the first convolutional encoder, x is the input data of the first convolutional encoder, and the generator hides the loss function G(x) is the reconstructed output of the first convolutional encoder, The mean of the output reconstructed by the second first convolution encoder, the discriminator loss function loss dis =E[f dis (x)]-E[f dis (G(x)],E[f dis (x)] is the discriminator f dis (x) is the mean value of the output of the real data x, E[f dis (G(x)] is the discriminator f dis (x) is the mean value of the output of the reconstructed data G(x), w con 、w hidden 、w dis is the weight value assigned; Calculate the gradient of the total loss function with respect to the network parameters and perform the back-propagation algorithm to update the parameters of the generator and discriminator.

7. The method for intelligently detecting CDN traffic volume according to claim 3, characterized in that: The step of inputting the multi-dimensional data feature vector into a CDN volume-brushing detection model to detect abnormal CDN volume-brushing behavior to detect abnormal CDN access terminals includes: Inputting the multi-dimensional data feature vector into a CDN volume-boosting detection model; By scoring the abnormal behavior of CDN volume brushing, when the abnormal score is greater than the preset threshold, the CDN abnormal access terminal is judged, where the abnormal score Score = λSG(x)+(1-λ)SD(x), SG(x) is the generator abnormal score, SD(x) is the discriminator abnormal score, and λ is the scoring parameter.

8. A device for intelligently detecting CDN volume increase, characterized in that: include: An acquisition module, used to acquire access logs from at least one CDN node; A preprocessing module, used to preprocess the access log and extract multi-dimensional data features, wherein the multi-dimensional data features include access data packet features, access traffic features and access statistical features; An anomaly detection module, used for inputting the multi-dimensional data feature vector into a CDN volume brushing detection model, detecting abnormal CDN volume brushing behavior, so as to detect abnormal CDN access terminals, wherein the CDN volume brushing detection model is generated by training the multi-dimensional data features produced by historical access logs; The execution module is used to add the terminal identification of the CDN abnormal access terminal to the access blacklist to refuse to provide CDN access service to the CDN abnormal access terminal.

9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method for intelligently detecting CDN brushing volume as described in any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method for intelligently detecting CDN brushing volume as described in any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Method and device for determining SSRF vulnerabilities

    CN111371745A

  • Abnormal network access detection method and device, storage medium and terminal

    CN112543176A

  • Configuration and access method and system for hybrid cloud object storage

    CN115150419A

  • ES abnormal flow detection method, apparatus and device, and medium

    CN116471050A

  • Log analysis method and device of content delivery network CDN and storage medium

    CN117041019A

Cited By

  • IP address security management method and device

    CN120034393A

  • Method and apparatus for ip address security management

    CN120034393B