WO2022100028A1 - Interface traffic anomaly detection method and apparatus, terminal device, and storage medium - Google Patents

Interface traffic anomaly detection method and apparatus, terminal device, and storage medium Download PDF

Info

Publication number
WO2022100028A1
WO2022100028A1 PCT/CN2021/091088 CN2021091088W WO2022100028A1 WO 2022100028 A1 WO2022100028 A1 WO 2022100028A1 CN 2021091088 W CN2021091088 W CN 2021091088W WO 2022100028 A1 WO2022100028 A1 WO 2022100028A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
interface
traffic
segmentation
access
Prior art date
Application number
PCT/CN2021/091088
Other languages
French (fr)
Chinese (zh)
Inventor
王有金
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2022100028A1 publication Critical patent/WO2022100028A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/14Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic
    • H04L63/1408Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic by monitoring network traffic
    • H04L63/1425Traffic logging, e.g. anomaly detection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/04Processing captured monitoring data, e.g. for logfile generation
    • H04L43/045Processing captured monitoring data, e.g. for logfile generation for graphical visualisation of monitoring data

Definitions

  • the present application relates to the field of artificial intelligence, and in particular, to a method, device, terminal device and storage medium for detecting abnormality of interface traffic.
  • the inventor realized that the existing interface traffic anomaly detection relies on manual experience to set the traffic detection threshold, and judges whether the interface traffic of the system interface is abnormal traffic based on the traffic detection threshold. Setting the traffic detection threshold will result in cumbersome user operations and low accuracy of interface traffic anomaly detection.
  • the embodiments of the present application provide a method, device, terminal device, and storage medium for detecting an abnormality in interface traffic, so as to solve the problem caused by relying on manual experience to set a traffic detection threshold in the process of detecting traffic abnormality in the prior art.
  • a first aspect of the embodiments of the present application provides a method for detecting an abnormality in interface traffic, including:
  • the interface access image includes image points formed between different time periods in the traffic data and corresponding interface traffic;
  • the interface access image is segmented until each image point is isolated, and a segmentation path corresponding to each image point is obtained, and the length of the segmentation path is used to represent the difficulty of isolating the corresponding image point. degree;
  • abnormality index corresponding to any of the image points is greater than the abnormality threshold, it is determined that the traffic of the interface to be detected in the time period corresponding to the image point is abnormal traffic.
  • a second aspect of the embodiments of the present application provides an interface traffic anomaly detection device, including:
  • An access image drawing unit configured to acquire traffic data of the interface to be detected, and draw an interface access image according to the traffic data, where the interface access image includes images formed between different time periods in the traffic data and corresponding interface traffic point;
  • the image segmentation unit is used to segment the interface access image until each of the image points is isolated to obtain a segmentation path corresponding to each of the image points, and the length of the segmentation path is used to represent the isolation corresponding to the The difficulty of describing the image point;
  • an anomaly index calculation unit configured to calculate an anomaly index corresponding to the image point according to the length of the segmentation path, where the anomaly index is used to characterize the degree of anomaly of the image point;
  • An abnormality determination unit configured to determine that the traffic of the interface to be detected in the time period corresponding to the image point is abnormal traffic if the abnormality index corresponding to any of the image points is greater than the abnormality threshold.
  • a third aspect of the embodiments of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and running on the terminal device, where the processor implements when executing the computer program:
  • the interface access image includes image points formed between different time periods in the traffic data and corresponding interface traffic;
  • the interface access image is segmented until each image point is isolated, and a segmentation path corresponding to each image point is obtained, and the length of the segmentation path is used to represent the difficulty of isolating the corresponding image point. degree;
  • abnormality index corresponding to any of the image points is greater than the abnormality threshold, it is determined that the traffic of the interface to be detected in the time period corresponding to the image point is abnormal traffic.
  • a fourth aspect of the embodiments of the present application provides a storage medium, where the storage medium stores a computer program, and the computer program is executed by a processor to implement:
  • the interface access image includes image points formed between different time periods in the traffic data and corresponding interface traffic;
  • the interface access image is segmented until each image point is isolated, and a segmentation path corresponding to each image point is obtained, and the length of the segmentation path is used to represent the difficulty of isolating the corresponding image point. degree;
  • abnormality index corresponding to any of the image points is greater than the abnormality threshold, it is determined that the traffic of the interface to be detected in the time period corresponding to the image point is abnormal traffic.
  • the embodiment of the present application has the beneficial effect that: by acquiring the traffic data of the interface to be detected, and drawing an interface access image according to the traffic data, it is possible to effectively generate a representation of the relationship between the interface to be detected and the interface traffic in different time periods.
  • the segmentation path formed by the process of the isolated image point can be effectively obtained, and different images can be effectively distinguished based on the segmentation path.
  • the difficulty of being isolated between points by calculating the abnormality index of the corresponding image point according to the segmentation path, based on the abnormality degree of the image point that can be effective based on the abnormality index, if the abnormality index corresponding to any image point is greater than the abnormality threshold, it is determined to be pending.
  • the traffic of the detection interface in the time period corresponding to the image point is abnormal traffic. Based on the drawing of the interface access image, the isolation of the image point, and the calculation of the abnormality index, the embodiment of the present application can automatically detect the abnormal interface traffic of the interface to be detected, without relying on Manual experience sets traffic detection thresholds, which facilitates user operations and improves the accuracy of interface traffic anomaly detection.
  • FIG. 1 is a flowchart of an implementation of a method for detecting an abnormality in interface traffic provided by an embodiment of the present application
  • FIG. 2 is an implementation flowchart of a method for detecting an abnormality in interface traffic provided by another embodiment of the present application
  • FIG. 3 is a schematic structural diagram of an interface access image provided by the embodiment of FIG. 2;
  • FIG. 4 is an implementation flowchart of a method for detecting an abnormality in interface traffic provided by still another embodiment of the present application.
  • FIG. 5 is a structural block diagram of a device for detecting an abnormality in interface traffic provided by an embodiment of the present application
  • FIG. 6 is a structural block diagram of a terminal device provided by an embodiment of the present application.
  • the interface traffic anomaly detection method involved in the embodiment of the present application may be executed by a control device or a terminal (hereinafter referred to as a "mobile terminal").
  • FIG. 1 shows an implementation flowchart of a method for detecting an abnormality in interface traffic provided by an embodiment of the present application, including:
  • step S10 traffic data of the interface to be detected is acquired, and an interface access image is drawn according to the traffic data.
  • the traffic data is obtained by acquiring the daily access traffic of the interface to be detected within a preset time
  • the preset time can be set according to requirements, for example, the preset time can be set to 3 days, 10 days, 20 days or 60 days etc.
  • the access traffic of the interface to be detected within 3 days before the current time is acquired, and the traffic data is obtained.
  • the interface access image includes image points formed between different time periods in the traffic data and the corresponding interface traffic, and the time period is obtained by dividing a preset time interval.
  • traffic data of multiple different interfaces to be detected may be acquired at the same time, and an interface access image corresponding to the interface to be detected may be drawn according to the traffic data.
  • the drawing of the interface access image according to the traffic data includes:
  • the preset time interval can be set according to requirements. For example, when the preset time interval is set to 12 hours, the time period includes 0:00 to 12:00 and 12:00 to 24:00, and the preset time interval is set to 6 hours, the time period includes 0:00 to 6:00, 6:00 to 12:00, 12:00 to 18:00, and 18:00 to 24:00.
  • the traffic data of the detection interface includes the access traffic on January 1 and January 2.
  • the preset time interval is set to 12 hours, the corresponding data from 0:00 to 12:00 and 12:00 to 24:00 on January 1 are obtained.
  • Interface traffic obtain interface traffic a1 and interface traffic a2, obtain the interface traffic corresponding to 0:00 to 12:00 and 12:00 to 24:00 on January 2, and obtain interface traffic a3 and interface traffic a4, and for the time period 0:00 to 24:00
  • the date January 2nd as the abscissa value.
  • the coordinate point is drawn to obtain the image point b2, and the image formed by the image point b1 and the image point b2 is the interface access image c1 corresponding to the time period 0:00 to 12:00;
  • Step S20 segment the interface access image until each of the image points is isolated, and obtain a segmentation path corresponding to each of the image points.
  • the length of the segmentation path is used to represent the difficulty of isolating the corresponding image point.
  • the length of the segmentation path is longer, the number of segmentations to isolate the image point is more, and the image point is more difficult to isolate, that is, in the interface
  • the number of times to isolate the image point is less, and the image point is more easily isolated, that is, the distance between the image point and other image points in the interface access image is greater.
  • this step the interface is continuously divided to access the image, and the segmentation of the interface to access the image is stopped until each image point is isolated.
  • this step can be based on the isolation forest algorithm (iForest ) to construct an anomaly detection model, and according to the anomaly detection model, the segmentation path corresponding to each image point can be directly obtained.
  • Step S30 calculating an anomaly index corresponding to the image point according to the length of the segmentation path.
  • the abnormality index is used to represent the abnormality of the image point.
  • the abnormality index e1 corresponding to the image point b1 is calculated according to the length of the segmentation path d1.
  • the calculation formula used to calculate the abnormality index corresponding to the image point according to the length of the segmentation path is:
  • E(h(x)) is the length of the segmentation path corresponding to the xth image point
  • C( ⁇ ) is the length of the preset segmentation path
  • Score(x) is the anomaly index corresponding to the xth image point.
  • Step S40 if the abnormality index corresponding to any of the image points is greater than the abnormality threshold, it is determined that the traffic of the interface to be detected in the time period corresponding to the image point is abnormal traffic.
  • the abnormality threshold can be set as required, and the abnormality threshold is used to determine whether the traffic in the time period corresponding to the image point is abnormal traffic. When the abnormality index corresponding to the image point is greater than the abnormality threshold, it is determined that the interface to be detected is at the image point. The traffic in the corresponding time period is abnormal traffic.
  • a traffic abnormality prompt is generated according to the time period corresponding to the image point, and the corresponding interface of the to-be-detected interface is queried.
  • Abnormal prompt address if it is detected that the interface to be detected has abnormal traffic in the time period corresponding to any image point, a traffic abnormality prompt is generated according to the time period corresponding to the image point, and the corresponding interface of the to-be-detected interface is queried.
  • the abnormal traffic prompt can be Remind staff by voice, text or image.
  • the interface access image representing the corresponding relationship between the interface to be detected and the interface traffic in different time periods can be effectively generated. Access the image for segmentation until each image point is isolated, and the segmentation path formed by the process of the isolated image point can be effectively obtained. Calculate the abnormality index of the corresponding image point according to the segmentation path, and based on the abnormality degree of the image point that can be effective based on the abnormality index, if the abnormality index corresponding to any image point is greater than the abnormality threshold, the traffic of the interface to be detected in the time period corresponding to the image point is determined. It is abnormal traffic.
  • the embodiment of the present application can automatically detect the abnormal interface traffic on the interface to be detected, and does not need to rely on manual experience to set the traffic detection threshold, which is convenient for users. This improves the accuracy of interface traffic anomaly detection.
  • FIG. 2 is an implementation flowchart of a method for detecting an abnormality in interface traffic provided by another embodiment of the present application.
  • the method for detecting abnormality of interface traffic provided in this embodiment is a further refinement of step S20 in the embodiment corresponding to FIG. 1 , including:
  • Step S21 Calculate the total interface traffic of the interface to be detected, and calculate the average traffic corresponding to the time period according to the total interface traffic.
  • the total traffic of the interface is the sum of traffic of the interfaces to be detected in the same time period on different dates.
  • the traffic data of the interface to be detected includes the access traffic on January 1st and January 2nd, and the preset time interval is set to 12 hours, obtain the data from 0:00 to 20:00 on January 1st and January 2nd.
  • the sum of the interface traffic corresponding to 12:00 is obtained to obtain the total interface traffic f1
  • the sum of the corresponding interface traffic from 12:00 to 24:00 on January 1 and January 2 is obtained to obtain the total interface traffic f2.
  • the quotients between the total interface traffic f1, the total interface traffic f2 and the number of time periods are calculated respectively, and the average value of the traffic is obtained, that is, since the preset time interval is set to 12 hours, the number of time periods If it is 2, then calculate the quotient between the total interface flow f1, the total interface flow f2 and the value 2 respectively, and obtain the average flow value g1 corresponding to the interface to be detected from 0:00 to 12:00 in the time period and from 12:00 to 12:00 in the time period.
  • the flow average value g2 corresponding to 24 points.
  • Step S22 generating an image segmentation line of the interface access image according to the traffic average value, and performing image segmentation on the interface access image according to the image segmentation line to obtain an access segmentation image.
  • the image dividing line L is parallel to the abscissa X in the interface access image
  • the interface access image includes image point a, image point b and The image point c
  • the image dividing line L is used to isolate the image point a, the image point b and the image point c in the interface access image.
  • the flow average value and the ordinate parameter value are drawn parallel to the abscissa split line to get the split line for this image.
  • image segmentation is performed on the interface access image according to the image segmentation line to obtain two access segmented images.
  • the number of the interface access images is n
  • the total number of obtained access segmented images is 2n.
  • the method further includes:
  • step S23 is executed, and if the number of image points in the accessed segmented image is less than or equal to the number threshold, the segmentation of the accessed segmented image is stopped.
  • Step S23 Calculate the sum of the interface traffic corresponding to different time periods in the access segmented image respectively, and calculate the average traffic of the access segmented image according to the sum of the interface traffic corresponding to different time segments in the access segmented image.
  • Step S24 generating an image segmentation line corresponding to the access segmented image according to the traffic average value of the access segmented image, and performing image segmentation on the access segmented image according to the image segmentation line in the access segmented image to obtain a segmented image. subimage.
  • the image dividing line in the access segmented image is generated in the same way as the image dividing line in the interface access image, both are based on the traffic average value to generate the corresponding image dividing line, and the image dividing line generated in the access segmented image It is used to segment the access segmented image to obtain segmented sub-images, that is, the image segment line generated in the access segmented image is used to segment and isolate the image points in the access segmented image.
  • Step S25 if the number of the image points in the segmented sub-image is greater than the number threshold, calculate the sum of the interface traffic corresponding to different time periods in the segmented sub-image respectively, and according to the different time periods in the segmented sub-image A traffic average value of the segmented sub-image is calculated corresponding to the sum of the interface traffic.
  • the quantity threshold can be set according to requirements.
  • the quantity threshold is set to 1, that is, in this step, if the number of image points in the segmented sub-image is greater than 1, the image points in the segmented sub-image are not In the isolated state, the image points in the segmented sub-image need to be segmented again. When there is only one image point in the segmented sub-image, the image point is in an isolated state, and the segmentation of the corresponding segmented sub-image is stopped.
  • this step by separately calculating the sum of the interface traffic corresponding to different time periods in the segmented sub-image, and calculating the average traffic of the segmented sub-image according to the sum of the interface traffic corresponding to different time periods in the segmented sub-image, to ensure that the segmented sub-image The re-segmentation operation of the mid-image point.
  • Step S26 generating image segmentation lines corresponding to the segmented sub-images according to the average flow of the segmented sub-images, and performing image segmentation on the segmented sub-images according to the image segmentation lines in the segmented sub-images.
  • the image segmentation line in the corresponding segmented sub-image is generated according to the flow average value of the segmented sub-image, and the segmented sub-image is segmented according to the image segmentation line in the segmented sub-image, so as to achieve the image point in the segmented sub-image.
  • the effect of splitting isolation again.
  • step S26 if the number of the image points in the segmented sub-image after segmentation is greater than the number threshold, return to step S26 until the number of the image points in the segmented sub-image after segmentation is less than or equal to the number threshold.
  • Step S27 if the number of the image points in the segmented sub-image is less than or equal to a number threshold, stop the segmentation of the segmented sub-image.
  • the number of image points in the segmented sub-image is less than or equal to the number threshold, it is determined that the image points in the segmented sub-image are in an isolated state, and the segmented sub-image does not need to be segmented again.
  • Step S28 generating the segmentation path corresponding to the image point according to the image segmentation line.
  • generating the segmentation path corresponding to the image point according to the image segmentation line includes:
  • the image dividing line h2 and the image dividing line h3 are vector combined to obtain The segmentation path corresponding to the image point b1.
  • the image segmentation of the interface access image is effectively guaranteed, so as to achieve the interface access image segmentation.
  • the isolated segmentation operation of the image points in the access image by generating the image segmentation line in the corresponding access segmented image according to the traffic average value of the access segmented image, and performing image segmentation on the access segmented image according to the image segmentation line in the access segmented image, effectively The image segmentation of the access segmented image is guaranteed, so as to achieve the isolated segmentation operation of the image points in the access segmented image.
  • the calculation of the abnormal index corresponding to the image point is effectively guaranteed.
  • FIG. 4 is an implementation flowchart of a method for detecting an abnormality in interface traffic provided by another embodiment of the present application.
  • the interface traffic anomaly detection method provided in this embodiment includes:
  • Step S50 Acquire a request object corresponding to the abnormal traffic, and mark the acquired request object as abnormal.
  • the request object is the access user corresponding to the abnormal traffic.
  • this step by marking the acquired request object with abnormality, the accuracy of subsequent prohibition of address access to the request object is effectively improved.
  • Step S60 if the number of abnormal marking times of the requesting object within a preset time is greater than the number of thresholds, obtain the access address corresponding to the abnormal traffic, and prohibit the requesting object from accessing the access address within a preset time interval. access.
  • the preset time, the number of times threshold and the preset time interval can be set according to requirements, for example, the preset time can be set to 1 hour, 10 hours or 1 day, etc., the number of times threshold can be set to 5 times, 10 times times or 20 times, etc., the preset time interval can be set to 1 hour, 10 hours or 1 day, etc.
  • the access address corresponding to the abnormal traffic is obtained by obtaining the access address and prohibiting it within the preset time interval.
  • the access of the request object to the access address effectively prevents the network attack of the abnormal access object on the access address corresponding to the abnormal traffic, and improves the security of data access on the interface to be detected.
  • step S20 in FIG. 1 the interface access image is segmented until each of the image points is isolated, and after the segmentation path corresponding to each of the image points is obtained, the method further includes:
  • the standardization formula used to perform standardization processing on the segmentation path according to the arithmetic mean and the standard deviation is:
  • A is the length of the divided path after normalization
  • B is the length of the divided path before normalization
  • C is the arithmetic mean
  • D is the standard deviation.
  • the accuracy of prohibiting address access to the request object is improved. If the number of times is greater than the threshold, by obtaining the access address corresponding to the abnormal traffic, and prohibiting the request object from accessing the access address within a preset time interval, the network attack of the abnormal access object on the access address corresponding to the abnormal traffic is effectively prevented.
  • the abnormality index of the image point is obtained based on the segmentation path, and specifically, the abnormality index of the image point is obtained by the segmentation path.
  • Uploading the anomaly index of image points to the blockchain ensures its security and fairness and transparency to users.
  • the user equipment can download the abnormal index of the image point from the blockchain, so as to verify whether the abnormal index of the image point has been tampered with.
  • the blockchain referred to in this example is a new application mode of computer technology such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm.
  • Blockchain essentially a decentralized database, is a series of data blocks associated with cryptographic methods. Each data block contains a batch of network transaction information to verify its Validity of information (anti-counterfeiting) and generation of the next block.
  • the blockchain can include the underlying platform of the blockchain, the platform product service layer, and the application service layer.
  • FIG. 5 is a structural block diagram of an apparatus 100 for detecting an abnormality in interface traffic provided by an embodiment of the present application.
  • each unit included in the device 100 for detecting an abnormality in interface traffic is used to execute each step in the embodiment corresponding to FIG. 1 , FIG. 2 , and FIG. 4 .
  • the interface traffic abnormality detection device 100 includes: an access image drawing unit 10, an image segmentation unit 11, an abnormality index calculation unit 12, and an abnormality determination unit 13, wherein:
  • the access image drawing unit 10 is configured to acquire the traffic data of the interface to be detected, and draw the interface access image according to the traffic data, and the interface access image includes the data formed between different time periods in the traffic data and the corresponding interface traffic. image point.
  • the access image drawing unit 10 is further configured to: segment the time parameters in the traffic data according to preset time intervals to obtain different time periods, and respectively acquire the interface traffic corresponding to the same time period in different dates ;
  • the image segmentation unit 11 is configured to segment the interface access image until each of the image points is isolated to obtain a segmentation path corresponding to each of the image points, and the length of the segmentation path is used to represent the isolated correspondence The difficulty level of the image point.
  • the image segmentation unit 11 is further configured to: calculate the total interface traffic of the interface to be detected, where the total interface traffic is the sum of the corresponding interface traffic of the interface to be detected in the same time period in different dates;
  • the sum of the interface traffic corresponding to different time periods in the segmented sub-image is calculated respectively, and the interface traffic corresponding to the different time periods in the segmented sub-image is calculated according to the and calculate the flow average of the segmented sub-images;
  • the segmentation path corresponding to the image point is generated according to the image segmentation line.
  • the image segmentation unit 11 is further configured to: acquire the image segmentation line used to isolate the image point, and perform vector combination of the acquired image segmentation lines to obtain the segmentation path.
  • the image segmentation unit 11 is further configured to: calculate the arithmetic mean and standard deviation of the length of the segmented path, and perform standardization processing on the segmented path according to the calculated arithmetic mean and the standard deviation;
  • the normalization formula used for performing the normalization processing on the segmentation path according to the arithmetic mean and the standard deviation is:
  • A is the length of the divided path after normalization
  • B is the length of the divided path before normalization
  • C is the arithmetic mean
  • D is the standard deviation.
  • the abnormality index calculation unit 12 is configured to calculate the abnormality index corresponding to the image point according to the length of the segmentation path, where the abnormality index is used to represent the abnormality degree of the image point.
  • the calculation formula used to calculate the abnormality index corresponding to the image point according to the length of the segmentation path is:
  • E(h(x)) is the length of the segmentation path corresponding to the xth image point
  • C( ⁇ ) is the length of the preset segmentation path
  • Score(x) is the anomaly index corresponding to the xth image point.
  • the abnormality determination unit 13 is configured to determine that the traffic of the interface to be detected in the time period corresponding to the image point is abnormal traffic if the abnormality index corresponding to any of the image points is greater than the abnormality threshold.
  • the abnormality determination unit 13 is further configured to: acquire the request object corresponding to the abnormal traffic, and mark the acquired request object abnormally;
  • the access address corresponding to the abnormal traffic is obtained, and the access of the requesting object to the access address is prohibited within a preset time interval.
  • the interface access image representing the corresponding relationship between the interface to be detected and the interface traffic in different time periods can be effectively generated. Access the image for segmentation until each image point is isolated, and the segmentation path formed by the process of the isolated image point can be effectively obtained. Calculate the abnormality index of the corresponding image point according to the segmentation path, and based on the abnormality degree of the image point that can be effective based on the abnormality index, if the abnormality index corresponding to any image point is greater than the abnormality threshold, the traffic of the interface to be detected in the time period corresponding to the image point is determined. It is abnormal traffic.
  • the embodiment of the present application can automatically detect the abnormal interface traffic on the interface to be detected, and does not need to rely on manual experience to set the traffic detection threshold, which is convenient for users. This improves the accuracy of interface traffic anomaly detection.
  • FIG. 6 is a structural block diagram of a terminal device 2 provided by another embodiment of the present application.
  • the terminal device 2 of this embodiment includes: a processor 20, a memory 21, and a computer program 22 stored in the memory 21 and running on the processor 20, such as a method for detecting abnormality in interface traffic program of.
  • the processor 20 executes the computer program 23, it implements the steps in the various embodiments of the above-mentioned methods for detecting abnormal interface traffic, such as S10 to S40 shown in FIG. 1 , or S21 to S28 shown in FIG. 2 , or shown in FIG. 4 . S50 to S60.
  • the processor 20 executes the computer program 22, the functions of the units in the embodiment corresponding to FIG. 5 are implemented, for example, the functions of the units 10 to 13 shown in FIG. 5, please refer to the corresponding implementation in FIG. 6 for details. The relevant descriptions in the examples will not be repeated here.
  • the computer program 22 may be divided into one or more units, and the one or more units are stored in the memory 21 and executed by the processor 20 to complete the present application.
  • the one or more units may be a series of computer program instruction segments capable of performing specific functions, and the instruction segments are used to describe the execution process of the computer program 22 in the terminal device 2 .
  • the computer program 22 can be divided into accessing the image rendering unit 10, the image segmentation unit 11, the abnormality index calculation unit 12 and the abnormality determination unit 13, and the specific functions of each unit are as described above.
  • the terminal device may include, but is not limited to, the processor 20 and the memory 21 .
  • FIG. 6 is only an example of the terminal device 2, and does not constitute a limitation on the terminal device 2, and may include more or less components than those shown in the figure, or combine some components, or different components
  • the terminal device may further include an input and output device, a network access device, a bus, and the like.
  • the so-called processor 20 may be a central processing unit (Central Processing Unit, CPU), or other general-purpose processors, digital signal processors (Digital Signal Processors, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), Off-the-shelf programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
  • the memory 21 may be an internal storage unit of the terminal device 2 , such as a hard disk or a memory of the terminal device 2 .
  • the memory 21 can also be an external storage device of the terminal device 2, such as a plug-in hard disk equipped on the terminal device 2, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, Flash Card, etc.
  • the memory 21 may also include both an internal storage unit of the terminal device 2 and an external storage device.
  • the memory 21 is used to store the computer program and other programs and data required by the terminal device.
  • the memory 21 can also be used to temporarily store data that has been output or will be output.
  • An embodiment of the present application further provides a storage medium, where a computer program is stored in the storage medium, and when the computer program is executed by a processor, implements each step of the method for detecting an abnormality in interface traffic provided by any of the above solutions, and the storage medium may As a computer-readable storage medium, the computer-readable storage medium may be non-volatile or volatile.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present application is applicable to the field of artificial intelligence technology, and provides an interface traffic anomaly detection method and apparatus, a terminal device and a storage medium. The method comprises: obtaining traffic data of an interface to be detected and drawing an interface access image according to the traffic data; segmenting the interface access image until each image point is isolated to obtain a segmentation path corresponding to each image point; calculating anomaly indices of corresponding image points according to the length of the segmentation path; if the anomaly index corresponding to any image point is greater than an anomaly threshold, determining that traffic of the interface in a time period corresponding to said image point is abnormal traffic. On the basis of the drawing of the interface access image, the isolation of image points, and the calculation of anomaly indices, the present application can automatically detect an interface traffic anomaly at the interface without relying on human experience to set a traffic detection threshold, which facilitates user operations and improves the accuracy of interface traffic anomaly detection. In addition, the present application also relates to blockchain technology.

Description

接口流量异常检测方法、装置、终端设备及存储介质Interface traffic anomaly detection method, device, terminal device and storage medium
本申请要求于2020年11月16日提交中国专利局、申请号为202011281595.4,发明名称为“接口流量异常检测方法、装置、终端设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on November 16, 2020 with the application number 202011281595.4 and the invention titled "Interface Traffic Abnormal Detection Method, Device, Terminal Equipment and Storage Medium", the entire contents of which are obtained through Reference is incorporated in this application.
技术领域technical field
本申请涉及人工智能领域,尤其涉及一种接口流量异常检测方法、装置、终端设备及存储介质。The present application relates to the field of artificial intelligence, and in particular, to a method, device, terminal device and storage medium for detecting abnormality of interface traffic.
背景技术Background technique
随着海量数据时代的来临,各公司意识到了数据驱动业务带来的巨大优势,业务系统流量达到每秒上亿级别,随着系统中接口访问流量的剧增,如何从海量的接口流量中识别出恶意流量或异常流量的问题越来越受人们所重视。With the advent of the era of massive data, companies have realized the huge advantages brought by data-driven services. The traffic of business systems has reached hundreds of millions per second. The problem of malicious traffic or abnormal traffic is getting more and more attention.
技术问题technical problem
综上,发明人意识到,现有的接口流量异常检测,均是依赖人工经验的方式设置流量检测阈值,基于流量检测阈值判断系统接口的接口流量是否是异常流量,但由于依赖人工经验的方式设置流量检测阈值,导致用户操作繁琐,且接口流量异常检测准确性低下。To sum up, the inventor realized that the existing interface traffic anomaly detection relies on manual experience to set the traffic detection threshold, and judges whether the interface traffic of the system interface is abnormal traffic based on the traffic detection threshold. Setting the traffic detection threshold will result in cumbersome user operations and low accuracy of interface traffic anomaly detection.
技术解决方案technical solutions
有鉴于此,本申请实施例提供了一种接口流量异常检测方法、装置、终端设备及存储介质,以解决现有技术的流量异常检测过程中,由于依赖人工经验设置流量检测阈值,所导致的接口流量异常检测准确性低下的问题。In view of this, the embodiments of the present application provide a method, device, terminal device, and storage medium for detecting an abnormality in interface traffic, so as to solve the problem caused by relying on manual experience to set a traffic detection threshold in the process of detecting traffic abnormality in the prior art. The problem of low accuracy of interface traffic anomaly detection.
本申请实施例的第一方面提供了一种接口流量异常检测方法,包括:A first aspect of the embodiments of the present application provides a method for detecting an abnormality in interface traffic, including:
获取待检测接口的流量数据,并根据所述流量数据绘制接口访问图像,所述接口访问图像包括所述流量数据中不同时间段与对应接口流量之间所形成的图像点;acquiring traffic data of the interface to be detected, and drawing an interface access image according to the traffic data, where the interface access image includes image points formed between different time periods in the traffic data and corresponding interface traffic;
对所述接口访问图像进行分割,直至每个所述图像点均被孤立,得到每个所述图像点对应的分割路径,所述分割路径的长度用于表征孤立对应所述图像点的难易程度;The interface access image is segmented until each image point is isolated, and a segmentation path corresponding to each image point is obtained, and the length of the segmentation path is used to represent the difficulty of isolating the corresponding image point. degree;
根据所述分割路径的长度计算对应所述图像点的异常指数,所述异常指数用于表征所述图像点的异常程度;Calculate an anomaly index corresponding to the image point according to the length of the segmentation path, where the anomaly index is used to characterize the degree of anomaly of the image point;
若任一所述图像点对应的所述异常指数大于异常阈值,则判定所述待检测接口在所述图像点对应时间段内的流量是异常流量。If the abnormality index corresponding to any of the image points is greater than the abnormality threshold, it is determined that the traffic of the interface to be detected in the time period corresponding to the image point is abnormal traffic.
本申请实施例的第二方面提供了一种接口流量异常检测装置,包括:A second aspect of the embodiments of the present application provides an interface traffic anomaly detection device, including:
访问图像绘制单元,用于获取待检测接口的流量数据,并根据所述流量数据绘制接口访问图像,所述接口访问图像包括所述流量数据中不同时间段与对应接口流量之间所形成的图像点;An access image drawing unit, configured to acquire traffic data of the interface to be detected, and draw an interface access image according to the traffic data, where the interface access image includes images formed between different time periods in the traffic data and corresponding interface traffic point;
图像分割单元,用于对所述接口访问图像进行分割,直至每个所述图像点均被孤立,得到每个所述图像点对应的分割路径,所述分割路径的长度用于表征孤立对应所述图像点的难易程度;The image segmentation unit is used to segment the interface access image until each of the image points is isolated to obtain a segmentation path corresponding to each of the image points, and the length of the segmentation path is used to represent the isolation corresponding to the The difficulty of describing the image point;
异常指数计算单元,用于根据所述分割路径的长度计算对应所述图像点的异常指数,所述异常指数用于表征所述图像点的异常程度;an anomaly index calculation unit, configured to calculate an anomaly index corresponding to the image point according to the length of the segmentation path, where the anomaly index is used to characterize the degree of anomaly of the image point;
异常判定单元,用于若任一所述图像点对应的所述异常指数大于异常阈值,则判定所述待检测接口在所述图像点对应时间段内的流量是异常流量。An abnormality determination unit, configured to determine that the traffic of the interface to be detected in the time period corresponding to the image point is abnormal traffic if the abnormality index corresponding to any of the image points is greater than the abnormality threshold.
本申请实施例的第三方面提供了一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在终端设备上运行的计算机程序,所述处理器执行所述计算机程序时实现:A third aspect of the embodiments of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and running on the terminal device, where the processor implements when executing the computer program:
获取待检测接口的流量数据,并根据所述流量数据绘制接口访问图像,所述接口访问图像包括所述流量数据中不同时间段与对应接口流量之间所形成的图像点;acquiring traffic data of the interface to be detected, and drawing an interface access image according to the traffic data, where the interface access image includes image points formed between different time periods in the traffic data and corresponding interface traffic;
对所述接口访问图像进行分割,直至每个所述图像点均被孤立,得到每个所述图 像点对应的分割路径,所述分割路径的长度用于表征孤立对应所述图像点的难易程度;The interface access image is segmented until each image point is isolated, and a segmentation path corresponding to each image point is obtained, and the length of the segmentation path is used to represent the difficulty of isolating the corresponding image point. degree;
根据所述分割路径的长度计算对应所述图像点的异常指数,所述异常指数用于表征所述图像点的异常程度;Calculate an anomaly index corresponding to the image point according to the length of the segmentation path, where the anomaly index is used to characterize the degree of anomaly of the image point;
若任一所述图像点对应的所述异常指数大于异常阈值,则判定所述待检测接口在所述图像点对应时间段内的流量是异常流量。If the abnormality index corresponding to any of the image points is greater than the abnormality threshold, it is determined that the traffic of the interface to be detected in the time period corresponding to the image point is abnormal traffic.
本申请实施例的第四方面提供了一种存储介质,所述存储介质存储有计算机程序,所述计算机程序被处理器执行时实现:A fourth aspect of the embodiments of the present application provides a storage medium, where the storage medium stores a computer program, and the computer program is executed by a processor to implement:
获取待检测接口的流量数据,并根据所述流量数据绘制接口访问图像,所述接口访问图像包括所述流量数据中不同时间段与对应接口流量之间所形成的图像点;acquiring traffic data of the interface to be detected, and drawing an interface access image according to the traffic data, where the interface access image includes image points formed between different time periods in the traffic data and corresponding interface traffic;
对所述接口访问图像进行分割,直至每个所述图像点均被孤立,得到每个所述图像点对应的分割路径,所述分割路径的长度用于表征孤立对应所述图像点的难易程度;The interface access image is segmented until each image point is isolated, and a segmentation path corresponding to each image point is obtained, and the length of the segmentation path is used to represent the difficulty of isolating the corresponding image point. degree;
根据所述分割路径的长度计算对应所述图像点的异常指数,所述异常指数用于表征所述图像点的异常程度;Calculate an anomaly index corresponding to the image point according to the length of the segmentation path, where the anomaly index is used to characterize the degree of anomaly of the image point;
若任一所述图像点对应的所述异常指数大于异常阈值,则判定所述待检测接口在所述图像点对应时间段内的流量是异常流量。If the abnormality index corresponding to any of the image points is greater than the abnormality threshold, it is determined that the traffic of the interface to be detected in the time period corresponding to the image point is abnormal traffic.
有益效果beneficial effect
本申请实施例与现有技术相比存在的有益效果是:通过获取待检测接口的流量数据,并根据流量数据绘制接口访问图像,能有效的生成表征待检测接口在不同时间段与接口流量之间对应关系的接口访问图像,通过对接口访问图像进行分割,直至每个图像点均被孤立,能有效的得到孤立图像点的过程所形成的分割路径,基于该分割路径能有效的区分不同图像点之间被孤立的难易程度,通过根据分割路径计算对应图像点的异常指数,基于异常指数能有效的图像点的异常程度,若任一图像点对应的异常指数大于异常阈值,则判定待检测接口在图像点对应时间段内的流量是异常流量,本申请实施例基于接口访问图像的绘制、图像点的孤立和异常指数的计算,能自动对待检测接口进行接口流量异常的检测,无需依赖人工经验设置流量检测阈值,方便了用户的操作,提高了接口流量异常检测的准确性。Compared with the prior art, the embodiment of the present application has the beneficial effect that: by acquiring the traffic data of the interface to be detected, and drawing an interface access image according to the traffic data, it is possible to effectively generate a representation of the relationship between the interface to be detected and the interface traffic in different time periods. By dividing the interface access image until each image point is isolated, the segmentation path formed by the process of the isolated image point can be effectively obtained, and different images can be effectively distinguished based on the segmentation path. The difficulty of being isolated between points, by calculating the abnormality index of the corresponding image point according to the segmentation path, based on the abnormality degree of the image point that can be effective based on the abnormality index, if the abnormality index corresponding to any image point is greater than the abnormality threshold, it is determined to be pending. The traffic of the detection interface in the time period corresponding to the image point is abnormal traffic. Based on the drawing of the interface access image, the isolation of the image point, and the calculation of the abnormality index, the embodiment of the present application can automatically detect the abnormal interface traffic of the interface to be detected, without relying on Manual experience sets traffic detection thresholds, which facilitates user operations and improves the accuracy of interface traffic anomaly detection.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only for the present application. In some embodiments, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without any creative effort.
图1是本申请实施例提供的一种接口流量异常检测方法的实现流程图;FIG. 1 is a flowchart of an implementation of a method for detecting an abnormality in interface traffic provided by an embodiment of the present application;
图2是本申请另一实施例提供的一种接口流量异常检测方法的实现流程图;FIG. 2 is an implementation flowchart of a method for detecting an abnormality in interface traffic provided by another embodiment of the present application;
图3是图2实施例提供的接口访问图像的结构示意图;3 is a schematic structural diagram of an interface access image provided by the embodiment of FIG. 2;
图4是本申请再一实施例提供的一种接口流量异常检测方法的实现流程图;FIG. 4 is an implementation flowchart of a method for detecting an abnormality in interface traffic provided by still another embodiment of the present application;
图5是本申请实施例提供的一种接口流量异常检测装置的结构框图;5 is a structural block diagram of a device for detecting an abnormality in interface traffic provided by an embodiment of the present application;
图6是本申请实施例提供的一种终端设备的结构框图。FIG. 6 is a structural block diagram of a terminal device provided by an embodiment of the present application.
本发明的实施方式Embodiments of the present invention
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application will be described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application.
本申请实施例所涉及的接口流量异常检测方法,可以由控制设备或终端(以下称“移动终端”)执行。The interface traffic anomaly detection method involved in the embodiment of the present application may be executed by a control device or a terminal (hereinafter referred to as a "mobile terminal").
请参阅图1,图1示出了本申请实施例提供的一种接口流量异常检测方法的实现流程图,包括:Please refer to FIG. 1. FIG. 1 shows an implementation flowchart of a method for detecting an abnormality in interface traffic provided by an embodiment of the present application, including:
步骤S10,获取待检测接口的流量数据,并根据所述流量数据绘制接口访问图像。In step S10, traffic data of the interface to be detected is acquired, and an interface access image is drawn according to the traffic data.
其中,通过获取待检测接口在预设时间内每天的访问流量,以得到流量数据,该预设时间可以根据需求进行设置,例如,该预设时间可以设置为3天、10天、20天或60天等。Among them, the traffic data is obtained by acquiring the daily access traffic of the interface to be detected within a preset time, and the preset time can be set according to requirements, for example, the preset time can be set to 3 days, 10 days, 20 days or 60 days etc.
该步骤中,当该预设时间设置为3天时,则获取待检测接口在当前时间前3天内的访问流量,得到该流量数据。In this step, when the preset time is set to 3 days, the access traffic of the interface to be detected within 3 days before the current time is acquired, and the traffic data is obtained.
具体的,该步骤中,该接口访问图像包括流量数据中不同时间段与对应接口流量之间所形成的图像点,该时间段由预设时间间隔分割得到。Specifically, in this step, the interface access image includes image points formed between different time periods in the traffic data and the corresponding interface traffic, and the time period is obtained by dividing a preset time interval.
可选的,该步骤中,可以同时获取多个不同待检测接口的流量数据,并根据流量数据绘制对应待检测接口的接口访问图像。Optionally, in this step, traffic data of multiple different interfaces to be detected may be acquired at the same time, and an interface access image corresponding to the interface to be detected may be drawn according to the traffic data.
具体的,该步骤中,所述根据所述流量数据绘制接口访问图像,包括:Specifically, in this step, the drawing of the interface access image according to the traffic data includes:
根据预设时间间隔对所述流量数据中的时间参数进行分割,得到不同时间段,并分别获取不同日期中相同所述时间段对应的所述接口流量;Divide the time parameter in the traffic data according to the preset time interval to obtain different time periods, and obtain the interface traffic corresponding to the same time period on different dates respectively;
针对同一所述时间段,将对应获取到的所述接口流量为纵坐标值、所述接口流量对应的日期为横坐标值进行坐标点绘制,得到所述图像点;For the same time period, draw the coordinate points corresponding to the acquired interface traffic as the ordinate value and the date corresponding to the interface traffic as the abscissa value to obtain the image point;
其中,该预设时间间隔可以根据需求进行设置例如,该预设时间间隔设置为12小时时,则该时间段包括0点至12点和12点至24点,该预设时间间隔设置为6小时,则该时间段包括0点至6点、6点至12点、12点至18点和18点至24点。The preset time interval can be set according to requirements. For example, when the preset time interval is set to 12 hours, the time period includes 0:00 to 12:00 and 12:00 to 24:00, and the preset time interval is set to 6 hours, the time period includes 0:00 to 6:00, 6:00 to 12:00, 12:00 to 18:00, and 18:00 to 24:00.
具体的,该步骤中,通过分别获取不同日期中相同时间段对应的接口流量,有效的保障了不同时间段对应图像点的绘制,以生成不同时间段对应的接口访问图像,例如,当该待检测接口的流量数据包括1月1日和1月2日的访问流量,该预设时间间隔设置为12小时时,则获取1月1日中0点至12点、12点至24点对应的接口流量,得到接口流量a1和接口流量a2,获取1月2日中0点至12点、12点至24点对应的接口流量,得到接口流量a3和接口流量a4,并针对时间段0点至12点,以接口流量a1为纵坐标值、日期1月1日为横坐标值进行坐标点绘制,得到图像点b1,以接口流量a3为纵坐标值、日期1月2日为横坐标值进行坐标点绘制,得到图像点b2,且该图像点b1和图像点b2所形成的图像为时间段0点至12点对应的接口访问图像c1;Specifically, in this step, by separately obtaining the interface traffic corresponding to the same time period in different dates, the drawing of corresponding image points in different time periods is effectively guaranteed, so as to generate interface access images corresponding to different time periods. The traffic data of the detection interface includes the access traffic on January 1 and January 2. When the preset time interval is set to 12 hours, the corresponding data from 0:00 to 12:00 and 12:00 to 24:00 on January 1 are obtained. Interface traffic, obtain interface traffic a1 and interface traffic a2, obtain the interface traffic corresponding to 0:00 to 12:00 and 12:00 to 24:00 on January 2, and obtain interface traffic a3 and interface traffic a4, and for the time period 0:00 to 24:00 At 12:00, take the interface traffic a1 as the ordinate value and the date January 1st as the abscissa value to draw the coordinate points to obtain the image point b1, take the interface traffic a3 as the ordinate value, and the date January 2nd as the abscissa value. The coordinate point is drawn to obtain the image point b2, and the image formed by the image point b1 and the image point b2 is the interface access image c1 corresponding to the time period 0:00 to 12:00;
进一步地,针对时间段12点至24点,以接口流量a2为纵坐标值、日期1月1日为横坐标值进行坐标点绘制,得到图像点b3,以接口流量a4为纵坐标值、日期1月2日为横坐标值进行坐标点绘制,得到图像点b4,且该图像点b3和图像点b4所形成的图像为时间段12点至24点对应的接口访问图像c2。Further, for the time period from 12:00 to 24:00, take the interface flow a2 as the ordinate value and the date January 1st as the abscissa value to draw the coordinate points to obtain the image point b3, and take the interface flow a4 as the ordinate value and date. On January 2, coordinate points are drawn for the abscissa value to obtain image point b4, and the image formed by the image point b3 and image point b4 is the interface access image c2 corresponding to the time period 12:00 to 24:00.
步骤S20,对所述接口访问图像进行分割,直至每个所述图像点均被孤立,得到每个所述图像点对应的分割路径。Step S20, segment the interface access image until each of the image points is isolated, and obtain a segmentation path corresponding to each of the image points.
其中,该分割路径的长度用于表征孤立对应图像点的难易程度,当该分割路径的长度越长时,则孤立该图像点的分割次数越多,该图像点越难孤立,即在接口访问图像中该图像点与其他图像点之间的距离越近,该接口访问图像在该图像点对应时间段内的接口流量越正常;Among them, the length of the segmentation path is used to represent the difficulty of isolating the corresponding image point. When the length of the segmentation path is longer, the number of segmentations to isolate the image point is more, and the image point is more difficult to isolate, that is, in the interface The closer the distance between the image point and other image points in the access image, the more normal the interface traffic of the interface accessing the image in the time period corresponding to the image point;
该步骤中,当该分割路径的长度越短时,则孤立该图像点的分割次数越少,该图像点越容易孤立,即在接口访问图像中该图像点与其他图像点之间的距离越远,该接口访问图像在该图像点对应时间段内的接口流量越异常。In this step, when the length of the segmentation path is shorter, the number of times to isolate the image point is less, and the image point is more easily isolated, that is, the distance between the image point and other image points in the interface access image is greater. The farther the distance is, the more abnormal the interface traffic of the interface to access the image in the time period corresponding to the image point.
具体的,该步骤中,通过持续分割该接口访问图像,直至分割到每个图像点均被孤立时,才停止该接口访问图像的分割,可选的,该步骤中可以基于孤立森林算法(iForest)构建异常检测模型,并根据该异常检测模型可以直接获取每个图像点对应的分割路径。Specifically, in this step, the interface is continuously divided to access the image, and the segmentation of the interface to access the image is stopped until each image point is isolated. Optionally, this step can be based on the isolation forest algorithm (iForest ) to construct an anomaly detection model, and according to the anomaly detection model, the segmentation path corresponding to each image point can be directly obtained.
步骤S30,根据所述分割路径的长度计算对应所述图像点的异常指数。Step S30, calculating an anomaly index corresponding to the image point according to the length of the segmentation path.
其中,该异常指数用于表征图像点的异常程度,例如,图像点b1经过分割路径d1分割后达到孤立时,则根据分割路径d1的长度计算得到该图像点b1对应的异常指数 e1,当该异常指数e1越大时,则该待检测接口在图像点b1对应时间段内接口流量的异常程度越大,即该待检测接口在1月1日中的0点至12点内接口流量的异常程度越大。Among them, the abnormality index is used to represent the abnormality of the image point. For example, when the image point b1 is isolated after being divided by the segmentation path d1, the abnormality index e1 corresponding to the image point b1 is calculated according to the length of the segmentation path d1. The larger the abnormality index e1 is, the greater the abnormality of the interface traffic of the interface to be detected in the time period corresponding to the image point b1, that is, the abnormality of the interface traffic of the interface to be detected from 0:00 to 12:00 in January 1st the greater the degree.
具体的,该步骤中,所述根据所述分割路径的长度计算对应所述图像点的异常指数所采用的计算公式为:Specifically, in this step, the calculation formula used to calculate the abnormality index corresponding to the image point according to the length of the segmentation path is:
Figure PCTCN2021091088-appb-000001
Figure PCTCN2021091088-appb-000001
其中,E(h(x))是第x个图像点对应的分割路径的长度,C(Ψ)是预设分割路径的长度,Score(x)是第x个图像点对应的异常指数。Among them, E(h(x)) is the length of the segmentation path corresponding to the xth image point, C(Ψ) is the length of the preset segmentation path, and Score(x) is the anomaly index corresponding to the xth image point.
步骤S40,若任一所述图像点对应的所述异常指数大于异常阈值,则判定所述待检测接口在所述图像点对应时间段内的流量是异常流量。Step S40, if the abnormality index corresponding to any of the image points is greater than the abnormality threshold, it is determined that the traffic of the interface to be detected in the time period corresponding to the image point is abnormal traffic.
其中,该异常阈值可以根据需求进行设置,该异常阈值用于判断图像点对应时间段内的流量是否是异常流量,当图像点对应的异常指数大于异常阈值时,则判定待检测接口在图像点对应时间段内的流量是异常流量。The abnormality threshold can be set as required, and the abnormality threshold is used to determine whether the traffic in the time period corresponding to the image point is abnormal traffic. When the abnormality index corresponding to the image point is greater than the abnormality threshold, it is determined that the interface to be detected is at the image point. The traffic in the corresponding time period is abnormal traffic.
可选的,该步骤中,若检测到待检测接口在任一图像点对应的时间段内存在流量异常时,则根据该图像点对应的时间段生成流量异常提示,并查询该待检测接口对应的异常提示地址;Optionally, in this step, if it is detected that the interface to be detected has abnormal traffic in the time period corresponding to any image point, a traffic abnormality prompt is generated according to the time period corresponding to the image point, and the corresponding interface of the to-be-detected interface is queried. Abnormal prompt address;
将该流量异常提示发送至待检测接口对应的异常提示地址,以及时的提醒对应的工作人员该待检测接口在对应的时间段内存在异常;可选的,该步骤中,该流量异常提示可以采用语音、文字或图像的方式对工作人员进行提醒。Send the abnormal traffic prompt to the abnormal prompt address corresponding to the interface to be detected, and promptly remind the corresponding staff that the interface to be detected is abnormal in the corresponding time period; optionally, in this step, the abnormal traffic prompt can be Remind staff by voice, text or image.
本实施例中,通过获取待检测接口的流量数据,并根据流量数据绘制接口访问图像,能有效的生成表征待检测接口在不同时间段与接口流量之间对应关系的接口访问图像,通过对接口访问图像进行分割,直至每个图像点均被孤立,能有效的得到孤立图像点的过程所形成的分割路径,基于该分割路径能有效的区分不同图像点之间被孤立的难易程度,通过根据分割路径计算对应图像点的异常指数,基于异常指数能有效的图像点的异常程度,若任一图像点对应的异常指数大于异常阈值,则判定待检测接口在图像点对应时间段内的流量是异常流量,本申请实施例基于接口访问图像的绘制、图像点的孤立和异常指数的计算,能自动对待检测接口进行接口流量异常的检测,无需依赖人工经验设置流量检测阈值,方便了用户的操作,提高了接口流量异常检测的准确性。In this embodiment, by acquiring the traffic data of the interface to be detected, and drawing the interface access image according to the traffic data, the interface access image representing the corresponding relationship between the interface to be detected and the interface traffic in different time periods can be effectively generated. Access the image for segmentation until each image point is isolated, and the segmentation path formed by the process of the isolated image point can be effectively obtained. Calculate the abnormality index of the corresponding image point according to the segmentation path, and based on the abnormality degree of the image point that can be effective based on the abnormality index, if the abnormality index corresponding to any image point is greater than the abnormality threshold, the traffic of the interface to be detected in the time period corresponding to the image point is determined. It is abnormal traffic. Based on the drawing of the interface access image, the isolation of image points, and the calculation of the abnormality index, the embodiment of the present application can automatically detect the abnormal interface traffic on the interface to be detected, and does not need to rely on manual experience to set the traffic detection threshold, which is convenient for users. This improves the accuracy of interface traffic anomaly detection.
请参阅图2,图2是本申请另一实施例提供的一种接口流量异常检测方法的实现流程图。相对于图1对应的实施例,本实施例提供的接口流量异常检测方法是对图1对应的实施例中步骤S20的进一步细化,包括:Please refer to FIG. 2. FIG. 2 is an implementation flowchart of a method for detecting an abnormality in interface traffic provided by another embodiment of the present application. Compared with the embodiment corresponding to FIG. 1 , the method for detecting abnormality of interface traffic provided in this embodiment is a further refinement of step S20 in the embodiment corresponding to FIG. 1 , including:
步骤S21,计算所述待检测接口的接口总流量,并根据所述接口总流量计算所述时间段对应的流量平均值。Step S21: Calculate the total interface traffic of the interface to be detected, and calculate the average traffic corresponding to the time period according to the total interface traffic.
其中,该接口总流量为待检测接口在不同日期中相同时间段之间对应接口流量的和。The total traffic of the interface is the sum of traffic of the interfaces to be detected in the same time period on different dates.
例如,当该待检测接口的流量数据包括1月1日和1月2日的访问流量,该预设时间间隔设置为12小时时,则获取1月1日和1月2日中0点至12点对应接口流量的和,得到接口总流量f1,并获取1月1日和1月2日中12点至24点对应接口流量的和,得到接口总流量f2。For example, when the traffic data of the interface to be detected includes the access traffic on January 1st and January 2nd, and the preset time interval is set to 12 hours, obtain the data from 0:00 to 20:00 on January 1st and January 2nd. The sum of the interface traffic corresponding to 12:00 is obtained to obtain the total interface traffic f1, and the sum of the corresponding interface traffic from 12:00 to 24:00 on January 1 and January 2 is obtained to obtain the total interface traffic f2.
具体的,该步骤中,分别计算接口总流量f1、接口总流量f2与时间段数量之间的商值,得到该流量平均值,即由于预设时间间隔设置为12小时,因此,时间段数量为2,则分别计算接口总流量f1、接口总流量f2与数值2之间的商值,得到该待检测接口在时间段0点至12点对应的流量平均值g1和在时间段12点至24点对应的流量平 均值g2。Specifically, in this step, the quotients between the total interface traffic f1, the total interface traffic f2 and the number of time periods are calculated respectively, and the average value of the traffic is obtained, that is, since the preset time interval is set to 12 hours, the number of time periods If it is 2, then calculate the quotient between the total interface flow f1, the total interface flow f2 and the value 2 respectively, and obtain the average flow value g1 corresponding to the interface to be detected from 0:00 to 12:00 in the time period and from 12:00 to 12:00 in the time period. The flow average value g2 corresponding to 24 points.
可以理解的,当该预设时间间隔设置为6小时,则该时间段数量为4,因此,分别计算接口总流量f1、接口总流量f2与数值4之间的商值,得到该待检测接口在对应时间段内的流量平均值。It can be understood that when the preset time interval is set to 6 hours, the number of time periods is 4. Therefore, calculate the quotient between the total interface traffic f1, the total interface traffic f2 and the value 4, respectively, to obtain the interface to be detected. The average traffic flow over the corresponding time period.
步骤S22,根据所述流量平均值生成所述接口访问图像的图像分割线,并根据所述图像分割线对所述接口访问图像进行图像分割,得到访问分割图像。Step S22 , generating an image segmentation line of the interface access image according to the traffic average value, and performing image segmentation on the interface access image according to the image segmentation line to obtain an access segmentation image.
其中,请参阅图3,是图2实施例提供的接口访问图像的结构示意图,图像分割线L与接口访问图像中的横坐标X相平行,该接口访问图像包括图像点a、图像点b和图像点c,该图像分割线L用于对接口访问图像中的图像点a、图像点b和图像点c进行孤立分割,该步骤中,以流量平均值以纵坐标参数值平行于横坐标绘制分割线,以得到该图像分割线。3, it is a schematic structural diagram of the interface access image provided by the embodiment of FIG. 2, the image dividing line L is parallel to the abscissa X in the interface access image, and the interface access image includes image point a, image point b and The image point c, the image dividing line L is used to isolate the image point a, the image point b and the image point c in the interface access image. In this step, the flow average value and the ordinate parameter value are drawn parallel to the abscissa split line to get the split line for this image.
该步骤中,根据该图像分割线对接口访问图像进行图像分割,得到两个访问分割图像,当该接口访问图像的数量为n时,则得到的访问分割图像的总数为2n。In this step, image segmentation is performed on the interface access image according to the image segmentation line to obtain two access segmented images. When the number of the interface access images is n, the total number of obtained access segmented images is 2n.
具体的,该步骤中,所述根据所述图像分割线对所述接口访问图像进行图像分割,得到访问分割图像之后,还包括:Specifically, in this step, after performing image segmentation on the interface access image according to the image segmentation line to obtain the access segmented image, the method further includes:
分别获取所述访问分割图像中图像点的数量,并判断所述访问分割图像中图像点的数量是否大于数量阈值;respectively acquiring the number of image points in the access segmented image, and judging whether the number of image points in the access segmented image is greater than a number threshold;
若所述访问分割图像中图像点的数量大于数量阈值,则执行步骤S23,若所述访问分割图像中图像点的数量小于或等于数量阈值,则停止对该访问分割图像的分割。If the number of image points in the accessed segmented image is greater than the number threshold, step S23 is executed, and if the number of image points in the accessed segmented image is less than or equal to the number threshold, the segmentation of the accessed segmented image is stopped.
步骤S23,分别计算所述访问分割图像中不同时间段对应接口流量的和,并根据所述访问分割图像中不同时间段对应接口流量的和计算所述访问分割图像的流量平均值。Step S23: Calculate the sum of the interface traffic corresponding to different time periods in the access segmented image respectively, and calculate the average traffic of the access segmented image according to the sum of the interface traffic corresponding to different time segments in the access segmented image.
其中,通过分别计算访问分割图像中不同时间段对应接口流量的和,并根据访问分割图像中不同时间段对应接口流量的和计算访问分割图像的流量平均值,以得到不同访问分割图像对应图像分割线的纵坐标参数值,进而提高了后续对访问分割图像分割的准确性。Among them, by separately calculating the sum of the interface traffic corresponding to different time periods in the access segmented image, and calculating the average traffic flow of the access segmented image according to the sum of the corresponding interface traffic in different time periods in the access segmented image, to obtain the image segmentation corresponding to the different access segmented images The ordinate parameter value of the line, thereby improving the accuracy of subsequent segmentation of the access segmentation image.
步骤S24,根据所述访问分割图像的流量平均值生成对应所述访问分割图像中的图像分割线,并根据所述访问分割图像中的图像分割线对所述访问分割图像进行图像分割,得到分割子图像。Step S24, generating an image segmentation line corresponding to the access segmented image according to the traffic average value of the access segmented image, and performing image segmentation on the access segmented image according to the image segmentation line in the access segmented image to obtain a segmented image. subimage.
其中,该访问分割图像中的图像分割线与接口访问图像中的图像分割线的生成方式相同,均是基于流量平均值的方式生成对应的图像分割线,该访问分割图像中生成的图像分割线用于对访问分割图像进行分割,得到分割子图像,即该访问分割图像中生成的图像分割线用于对访问分割图像中的图像点进行分割孤立。Wherein, the image dividing line in the access segmented image is generated in the same way as the image dividing line in the interface access image, both are based on the traffic average value to generate the corresponding image dividing line, and the image dividing line generated in the access segmented image It is used to segment the access segmented image to obtain segmented sub-images, that is, the image segment line generated in the access segmented image is used to segment and isolate the image points in the access segmented image.
步骤S25,若所述分割子图像中的所述图像点的数量大于数量阈值,则分别计算所述分割子图像中不同时间段对应接口流量的和,并根据所述分割子图像中不同时间段对应接口流量的和计算所述分割子图像的流量平均值。Step S25, if the number of the image points in the segmented sub-image is greater than the number threshold, calculate the sum of the interface traffic corresponding to different time periods in the segmented sub-image respectively, and according to the different time periods in the segmented sub-image A traffic average value of the segmented sub-image is calculated corresponding to the sum of the interface traffic.
其中,该数量阈值可以根据需求进行设置,本实施例中的数量阈值设置为1,即该步骤中,若分割子图像中的图像点的数量大于1,则该分割子图像中的图像点不是孤立状态,需要对该分割子图像中的图像点再次进行分割,当分割子图像中仅存在1个图像点时,则该图像点是孤立状态,停止对对应分割子图像的分割。The quantity threshold can be set according to requirements. In this embodiment, the quantity threshold is set to 1, that is, in this step, if the number of image points in the segmented sub-image is greater than 1, the image points in the segmented sub-image are not In the isolated state, the image points in the segmented sub-image need to be segmented again. When there is only one image point in the segmented sub-image, the image point is in an isolated state, and the segmentation of the corresponding segmented sub-image is stopped.
该步骤中,通过分别计算分割子图像中不同时间段对应接口流量的和,并根据分割子图像中不同时间段对应接口流量的和计算分割子图像的流量平均值,以保障对该分割子图像中图像点的再次分割操作。In this step, by separately calculating the sum of the interface traffic corresponding to different time periods in the segmented sub-image, and calculating the average traffic of the segmented sub-image according to the sum of the interface traffic corresponding to different time periods in the segmented sub-image, to ensure that the segmented sub-image The re-segmentation operation of the mid-image point.
步骤S26,根据所述分割子图像的流量平均值生成对应所述分割子图像中的图像分割线,并根据所述分割子图像中的图像分割线对所述分割子图像进行图像分割。Step S26 , generating image segmentation lines corresponding to the segmented sub-images according to the average flow of the segmented sub-images, and performing image segmentation on the segmented sub-images according to the image segmentation lines in the segmented sub-images.
其中,通过根据分割子图像的流量平均值生成对应分割子图像中的图像分割线,并根据分割子图像中的图像分割线对分割子图像进行图像分割,以达到对该分割子图 像中图像点的再次分割孤立的效果。The image segmentation line in the corresponding segmented sub-image is generated according to the flow average value of the segmented sub-image, and the segmented sub-image is segmented according to the image segmentation line in the segmented sub-image, so as to achieve the image point in the segmented sub-image. The effect of splitting isolation again.
该步骤中,若分割后所述分割子图像中的所述图像点的数量大于数量阈值,则返回执行步骤S26,直至分割后所述分割子图像中的所述图像点的数量小于或等于数量阈值。In this step, if the number of the image points in the segmented sub-image after segmentation is greater than the number threshold, return to step S26 until the number of the image points in the segmented sub-image after segmentation is less than or equal to the number threshold.
步骤S27,若所述分割子图像中的所述图像点的数量小于或等于数量阈值,则停止所述分割子图像的分割。Step S27, if the number of the image points in the segmented sub-image is less than or equal to a number threshold, stop the segmentation of the segmented sub-image.
其中,若分割子图像中的图像点的数量小于或等于数量阈值,则判定该分割子图像中的图像点处于孤立状态,无需再次对该分割子图像进行分割操作。Wherein, if the number of image points in the segmented sub-image is less than or equal to the number threshold, it is determined that the image points in the segmented sub-image are in an isolated state, and the segmented sub-image does not need to be segmented again.
步骤S28,根据所述图像分割线生成对应所述图像点的所述分割路径。Step S28, generating the segmentation path corresponding to the image point according to the image segmentation line.
具体的,该步骤中,所述根据所述图像分割线生成对应所述图像点的所述分割路径,包括:Specifically, in this step, generating the segmentation path corresponding to the image point according to the image segmentation line includes:
获取用于孤立所述图像点的所述图像分割线,并将获取到的所述图像分割线进行矢量合并,得到所述分割路径,其中,通过将获取到的图像分割线进行矢量合并,以得到孤立对应图像点的分割路径。Obtaining the image dividing line for isolating the image point, and performing vector merging on the obtained image dividing line to obtain the dividing path, wherein by performing vector merging on the obtained image dividing line to obtain the Get the segmentation path of the isolated corresponding image points.
例如,当图像点b1是经过图像分割线h1、图像分割线h2和图像分割线h3分割后处于孤立状态,则将图像分割线h1、图像分割线h2和图像分割线h3进行矢量合并,以得到该图像点b1对应的分割路径。For example, when the image point b1 is in an isolated state after being divided by the image dividing line h1, the image dividing line h2 and the image dividing line h3, the image dividing line h1, the image dividing line h2 and the image dividing line h3 are vector combined to obtain The segmentation path corresponding to the image point b1.
本实施例中,通过根据接口总流量计算时间段对应的流量平均值,并根据流量平均值生成接口访问图像的图像分割线,有效的保障了对接口访问图像的图像分割,以达到对该接口访问图像中图像点的孤立分割操作,通过根据访问分割图像的流量平均值生成对应访问分割图像中的图像分割线,并根据访问分割图像中的图像分割线对访问分割图像进行图像分割,有效的保障了对访问分割图像的图像分割,以达到对该访问分割图像中图像点的孤立分割操作,通过根据图像分割线生成对应图像点的分割路径,有效的保障了图像点对应异常指数的计算。In this embodiment, by calculating the traffic average value corresponding to the time period according to the total traffic of the interface, and generating the image segmentation line of the interface access image according to the traffic average value, the image segmentation of the interface access image is effectively guaranteed, so as to achieve the interface access image segmentation. The isolated segmentation operation of the image points in the access image, by generating the image segmentation line in the corresponding access segmented image according to the traffic average value of the access segmented image, and performing image segmentation on the access segmented image according to the image segmentation line in the access segmented image, effectively The image segmentation of the access segmented image is guaranteed, so as to achieve the isolated segmentation operation of the image points in the access segmented image. By generating the segmentation path corresponding to the image point according to the image segmentation line, the calculation of the abnormal index corresponding to the image point is effectively guaranteed.
请参阅图4,图4是本申请另一实施例提供的一种接口流量异常检测方法的实现流程图。相对于图1对应的实施例,本实施例提供的接口流量异常检测方法在步骤S40之后,包括:Please refer to FIG. 4. FIG. 4 is an implementation flowchart of a method for detecting an abnormality in interface traffic provided by another embodiment of the present application. With respect to the embodiment corresponding to FIG. 1 , after step S40, the interface traffic anomaly detection method provided in this embodiment includes:
步骤S50,获取所述异常流量对应的请求对象,并对获取到的所述请求对象进行异常标记。Step S50: Acquire a request object corresponding to the abnormal traffic, and mark the acquired request object as abnormal.
其中,该请求对象为该异常流量对应的访问用户,该步骤中,通过对获取到的请求对象进行异常标记,有效的提高了后续对请求对象禁止进行地址访问的准确性。The request object is the access user corresponding to the abnormal traffic. In this step, by marking the acquired request object with abnormality, the accuracy of subsequent prohibition of address access to the request object is effectively improved.
步骤S60,若所述请求对象在预设时间内的异常标记次数大于次数阈值,则获取所述异常流量对应的访问地址,并在预设时间间隔内禁止所述请求对象对所述访问地址的访问。Step S60, if the number of abnormal marking times of the requesting object within a preset time is greater than the number of thresholds, obtain the access address corresponding to the abnormal traffic, and prohibit the requesting object from accessing the access address within a preset time interval. access.
其中,该预设时间、次数阈值和预设时间间隔均可以根据需求进行设置,例如,该预设时间可以设置为1小时、10小时或1天等,该次数阈值可以设置为5次、10次或20次等,该预设时间间隔可以设置为1小时、10小时或1天等。Wherein, the preset time, the number of times threshold and the preset time interval can be set according to requirements, for example, the preset time can be set to 1 hour, 10 hours or 1 day, etc., the number of times threshold can be set to 5 times, 10 times times or 20 times, etc., the preset time interval can be set to 1 hour, 10 hours or 1 day, etc.
具体的,该步骤中,若请求对象在预设时间内的异常标记次数大于次数阈值,则判定该请求对象为异常访问对象,通过获取异常流量对应的访问地址,并在预设时间间隔内禁止请求对象对访问地址的访问,有效的防止了该异常访问对象对异常流量对应访问地址的网络攻击,提高了待检测接口上数据访问的安全性。Specifically, in this step, if the number of abnormal marks of the request object within the preset time is greater than the number of times threshold, it is determined that the request object is an abnormal access object, and the access address corresponding to the abnormal traffic is obtained by obtaining the access address and prohibiting it within the preset time interval. The access of the request object to the access address effectively prevents the network attack of the abnormal access object on the access address corresponding to the abnormal traffic, and improves the security of data access on the interface to be detected.
可选的,针对图1中的步骤S20,所述对所述接口访问图像进行分割,直至每个所述图像点均被孤立,得到每个所述图像点对应的分割路径之后,还包括:Optionally, for step S20 in FIG. 1 , the interface access image is segmented until each of the image points is isolated, and after the segmentation path corresponding to each of the image points is obtained, the method further includes:
计算所述分割路径的长度的算术平均值和标准差,并根据计算到的所述算术平均值和所述标准差对所述分割路径进行标准化处理;calculating the arithmetic mean and standard deviation of the lengths of the divided paths, and standardizing the divided paths according to the calculated arithmetic mean and standard deviation;
所述根据所述算术平均值和所述标准差对所述分割路径进行标准化处理所采用的 标准化公式为:The standardization formula used to perform standardization processing on the segmentation path according to the arithmetic mean and the standard deviation is:
A=(B-C)/D;A=(B-C)/D;
其中,A是标准化处理后的所述分割路径的长度,B是标准化处理前的所述分割路径的长度,C是所述算术平均值,D是所述标准差。Wherein, A is the length of the divided path after normalization, B is the length of the divided path before normalization, C is the arithmetic mean, and D is the standard deviation.
本实施例中,通过获取异常流量对应的请求对象,并对获取到的请求对象进行异常标记,提高了对请求对象禁止进行地址访问的准确性,若请求对象在预设时间内的异常标记次数大于次数阈值,通过获取异常流量对应的访问地址,并在预设时间间隔内禁止请求对象对访问地址的访问,有效的防止了异常访问对象对异常流量对应访问地址的网络攻击。In this embodiment, by acquiring the request object corresponding to the abnormal traffic, and marking the acquired request object as abnormal, the accuracy of prohibiting address access to the request object is improved. If the number of times is greater than the threshold, by obtaining the access address corresponding to the abnormal traffic, and prohibiting the request object from accessing the access address within a preset time interval, the network attack of the abnormal access object on the access address corresponding to the abnormal traffic is effectively prevented.
在本申请的所有实施例中,基于分割路径得到图像点的异常指数,具体来说,图像点的异常指数由分割路径得到。将图像点的异常指数上传至区块链可保证其安全性和对用户的公正透明性。用户设备可以从区块链中下载得到该图像点的异常指数,以便查证图像点的异常指数是否被篡改。本示例所指区块链是分布式数据存储、点对点传输、共识机制、加密算法等计算机技术的新型应用模式。区块链(Blockchain),本质上是一个去中心化的数据库,是一串使用密码学方法相关联产生的数据块,每一个数据块中包含了一批次网络交易的信息,用于验证其信息的有效性(防伪)和生成下一个区块。区块链可以包括区块链底层平台、平台产品服务层以及应用服务层等。In all the embodiments of the present application, the abnormality index of the image point is obtained based on the segmentation path, and specifically, the abnormality index of the image point is obtained by the segmentation path. Uploading the anomaly index of image points to the blockchain ensures its security and fairness and transparency to users. The user equipment can download the abnormal index of the image point from the blockchain, so as to verify whether the abnormal index of the image point has been tampered with. The blockchain referred to in this example is a new application mode of computer technology such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm. Blockchain, essentially a decentralized database, is a series of data blocks associated with cryptographic methods. Each data block contains a batch of network transaction information to verify its Validity of information (anti-counterfeiting) and generation of the next block. The blockchain can include the underlying platform of the blockchain, the platform product service layer, and the application service layer.
请参阅图5,图5是本申请实施例提供的一种接口流量异常检测装置100的结构框图。本实施例中该接口流量异常检测装置100包括的各单元用于执行图1、图2、图4对应的实施例中的各步骤。具体请参阅图1、图2、图4以及图1、图2、图4所对应的实施例中的相关描述。为了便于说明,仅示出了与本实施例相关的部分。参见图5,接口流量异常检测装置100包括:访问图像绘制单元10、图像分割单元11、异常指数计算单元12和异常判定单元13,其中:Please refer to FIG. 5 . FIG. 5 is a structural block diagram of an apparatus 100 for detecting an abnormality in interface traffic provided by an embodiment of the present application. In this embodiment, each unit included in the device 100 for detecting an abnormality in interface traffic is used to execute each step in the embodiment corresponding to FIG. 1 , FIG. 2 , and FIG. 4 . For details, please refer to the related descriptions in FIG. 1 , FIG. 2 , FIG. 4 and the embodiments corresponding to FIG. 1 , FIG. 2 , and FIG. 4 . For convenience of description, only the parts related to this embodiment are shown. Referring to FIG. 5 , the interface traffic abnormality detection device 100 includes: an access image drawing unit 10, an image segmentation unit 11, an abnormality index calculation unit 12, and an abnormality determination unit 13, wherein:
访问图像绘制单元10,用于获取待检测接口的流量数据,并根据所述流量数据绘制接口访问图像,所述接口访问图像包括所述流量数据中不同时间段与对应接口流量之间所形成的图像点。The access image drawing unit 10 is configured to acquire the traffic data of the interface to be detected, and draw the interface access image according to the traffic data, and the interface access image includes the data formed between different time periods in the traffic data and the corresponding interface traffic. image point.
其中,访问图像绘制单元10还用于:根据预设时间间隔对所述流量数据中的时间参数进行分割,得到不同时间段,并分别获取不同日期中相同所述时间段对应的所述接口流量;The access image drawing unit 10 is further configured to: segment the time parameters in the traffic data according to preset time intervals to obtain different time periods, and respectively acquire the interface traffic corresponding to the same time period in different dates ;
针对同一所述时间段,将对应获取到的所述接口流量为纵坐标值、所述接口流量对应的日期为横坐标值进行坐标点绘制,得到所述图像点。For the same time period, draw the coordinate points corresponding to the acquired interface traffic as the ordinate value and the date corresponding to the interface traffic as the abscissa value to obtain the image point.
图像分割单元11,用于对所述接口访问图像进行分割,直至每个所述图像点均被孤立,得到每个所述图像点对应的分割路径,所述分割路径的长度用于表征孤立对应所述图像点的难易程度。The image segmentation unit 11 is configured to segment the interface access image until each of the image points is isolated to obtain a segmentation path corresponding to each of the image points, and the length of the segmentation path is used to represent the isolated correspondence The difficulty level of the image point.
其中,图像分割单元11还用于:计算所述待检测接口的接口总流量,所述接口总流量为所述待检测接口在不同日期中相同所述时间段之间对应接口流量的和;Wherein, the image segmentation unit 11 is further configured to: calculate the total interface traffic of the interface to be detected, where the total interface traffic is the sum of the corresponding interface traffic of the interface to be detected in the same time period in different dates;
根据所述接口总流量计算所述时间段对应的流量平均值;Calculate the average traffic corresponding to the time period according to the total traffic of the interface;
根据所述流量平均值生成所述接口访问图像的图像分割线,并根据所述图像分割线对所述接口访问图像进行图像分割,得到访问分割图像;Generate an image segmentation line of the interface access image according to the traffic average value, and perform image segmentation on the interface access image according to the image segmentation line to obtain an access segmentation image;
分别计算所述访问分割图像中不同时间段对应接口流量的和,并根据所述访问分割图像中不同时间段对应接口流量的和计算所述访问分割图像的流量平均值;Calculate the sum of the interface traffic corresponding to different time periods in the access segmented image respectively, and calculate the traffic average value of the access segmented image according to the sum of the interface traffic corresponding to different time periods in the access segmented image;
根据所述访问分割图像的流量平均值生成对应所述访问分割图像中的图像分割线,并根据所述访问分割图像中的图像分割线对所述访问分割图像进行图像分割,得到分割子图像;Generate image segmentation lines corresponding to the access segmented images according to the traffic average value of the access segmented images, and perform image segmentation on the access segmented images according to the image segmentation lines in the access segmented images to obtain segmented sub-images;
若所述分割子图像中的所述图像点的数量大于数量阈值,则分别计算所述分割子图像中不同时间段对应接口流量的和,并根据所述分割子图像中不同时间段对应接口 流量的和计算所述分割子图像的流量平均值;If the number of the image points in the segmented sub-image is greater than the number threshold, the sum of the interface traffic corresponding to different time periods in the segmented sub-image is calculated respectively, and the interface traffic corresponding to the different time periods in the segmented sub-image is calculated according to the and calculate the flow average of the segmented sub-images;
根据所述分割子图像的流量平均值生成对应所述分割子图像中的图像分割线,并根据所述分割子图像中的图像分割线对所述分割子图像进行图像分割;Generate image segmentation lines corresponding to the segmented sub-images according to the flow average value of the segmented sub-images, and perform image segmentation on the segmented sub-images according to the image segmentation lines in the segmented sub-images;
若所述分割子图像中的所述图像点的数量小于或等于数量阈值,则停止所述分割子图像的分割;If the number of the image points in the segmented sub-image is less than or equal to the number threshold, stop the segmentation of the segmented sub-image;
若分割后所述分割子图像中的所述图像点的数量大于数量阈值,则持续对分割后所述分割子图像进行图像分割,直至分割后所述分割子图像中的所述图像点的数量小于或等于数量阈值;If the number of the image points in the divided sub-image after division is greater than the number threshold, continue to perform image segmentation on the divided sub-image after division until the number of the image points in the divided sub-image after division less than or equal to the quantity threshold;
根据所述图像分割线生成对应所述图像点的所述分割路径。The segmentation path corresponding to the image point is generated according to the image segmentation line.
可选的,图像分割单元11还用于:获取用于孤立所述图像点的所述图像分割线,并将获取到的所述图像分割线进行矢量合并,得到所述分割路径。Optionally, the image segmentation unit 11 is further configured to: acquire the image segmentation line used to isolate the image point, and perform vector combination of the acquired image segmentation lines to obtain the segmentation path.
进一步地,图像分割单元11还用于:计算所述分割路径的长度的算术平均值和标准差,并根据计算到的所述算术平均值和所述标准差对所述分割路径进行标准化处理;Further, the image segmentation unit 11 is further configured to: calculate the arithmetic mean and standard deviation of the length of the segmented path, and perform standardization processing on the segmented path according to the calculated arithmetic mean and the standard deviation;
所述根据所述算术平均值和所述标准差对所述分割路径进行标准化处理所采用的标准化公式为:The normalization formula used for performing the normalization processing on the segmentation path according to the arithmetic mean and the standard deviation is:
A=(B-C)/D;A=(B-C)/D;
其中,A是标准化处理后的所述分割路径的长度,B是标准化处理前的所述分割路径的长度,C是所述算术平均值,D是所述标准差。Wherein, A is the length of the divided path after normalization, B is the length of the divided path before normalization, C is the arithmetic mean, and D is the standard deviation.
异常指数计算单元12,用于根据所述分割路径的长度计算对应所述图像点的异常指数,所述异常指数用于表征所述图像点的异常程度。The abnormality index calculation unit 12 is configured to calculate the abnormality index corresponding to the image point according to the length of the segmentation path, where the abnormality index is used to represent the abnormality degree of the image point.
其中,所述根据所述分割路径的长度计算对应所述图像点的异常指数所采用的计算公式为:Wherein, the calculation formula used to calculate the abnormality index corresponding to the image point according to the length of the segmentation path is:
Figure PCTCN2021091088-appb-000002
Figure PCTCN2021091088-appb-000002
其中,E(h(x))是第x个图像点对应的分割路径的长度,C(Ψ)是预设分割路径的长度,Score(x)是第x个图像点对应的异常指数。Among them, E(h(x)) is the length of the segmentation path corresponding to the xth image point, C(Ψ) is the length of the preset segmentation path, and Score(x) is the anomaly index corresponding to the xth image point.
异常判定单元13,用于若任一所述图像点对应的所述异常指数大于异常阈值,则判定所述待检测接口在所述图像点对应时间段内的流量是异常流量。The abnormality determination unit 13 is configured to determine that the traffic of the interface to be detected in the time period corresponding to the image point is abnormal traffic if the abnormality index corresponding to any of the image points is greater than the abnormality threshold.
其中,异常判定单元13还用于:获取所述异常流量对应的请求对象,并对获取到的所述请求对象进行异常标记;Wherein, the abnormality determination unit 13 is further configured to: acquire the request object corresponding to the abnormal traffic, and mark the acquired request object abnormally;
若所述请求对象在预设时间内的异常标记次数大于次数阈值,则获取所述异常流量对应的访问地址,并在预设时间间隔内禁止所述请求对象对所述访问地址的访问。If the number of abnormal marking times of the requesting object within a preset time is greater than the number of thresholds, the access address corresponding to the abnormal traffic is obtained, and the access of the requesting object to the access address is prohibited within a preset time interval.
本实施例中,通过获取待检测接口的流量数据,并根据流量数据绘制接口访问图像,能有效的生成表征待检测接口在不同时间段与接口流量之间对应关系的接口访问图像,通过对接口访问图像进行分割,直至每个图像点均被孤立,能有效的得到孤立图像点的过程所形成的分割路径,基于该分割路径能有效的区分不同图像点之间被孤立的难易程度,通过根据分割路径计算对应图像点的异常指数,基于异常指数能有效的图像点的异常程度,若任一图像点对应的异常指数大于异常阈值,则判定待检测接口在图像点对应时间段内的流量是异常流量,本申请实施例基于接口访问图像的绘制、图像点的孤立和异常指数的计算,能自动对待检测接口进行接口流量异常的检测,无需依赖人工经验设置流量检测阈值,方便了用户的操作,提高了接口流量异常检测的准确性。In this embodiment, by acquiring the traffic data of the interface to be detected, and drawing the interface access image according to the traffic data, the interface access image representing the corresponding relationship between the interface to be detected and the interface traffic in different time periods can be effectively generated. Access the image for segmentation until each image point is isolated, and the segmentation path formed by the process of the isolated image point can be effectively obtained. Calculate the abnormality index of the corresponding image point according to the segmentation path, and based on the abnormality degree of the image point that can be effective based on the abnormality index, if the abnormality index corresponding to any image point is greater than the abnormality threshold, the traffic of the interface to be detected in the time period corresponding to the image point is determined. It is abnormal traffic. Based on the drawing of the interface access image, the isolation of image points, and the calculation of the abnormality index, the embodiment of the present application can automatically detect the abnormal interface traffic on the interface to be detected, and does not need to rely on manual experience to set the traffic detection threshold, which is convenient for users. This improves the accuracy of interface traffic anomaly detection.
图6是本申请另一实施例提供的一种终端设备2的结构框图。如图6所示,该实施例的终端设备2包括:处理器20、存储器21以及存储在所述存储器21中并可在所述处理器20上运行的计算机程序22,例如接口流量异常检测方法的程序。处理器20 执行所述计算机程序23时实现上述各个接口流量异常检测方法各实施例中的步骤,例如图1所示的S10至S40,或者图2所示的S21至S28,或者图4所示的S50至S60。或者,所述处理器20执行所述计算机程序22时实现上述图5对应的实施例中各单元的功能,例如,图5所示的单元10至13的功能,具体请参阅图6对应的实施例中的相关描述,此处不赘述。FIG. 6 is a structural block diagram of a terminal device 2 provided by another embodiment of the present application. As shown in FIG. 6 , the terminal device 2 of this embodiment includes: a processor 20, a memory 21, and a computer program 22 stored in the memory 21 and running on the processor 20, such as a method for detecting abnormality in interface traffic program of. When the processor 20 executes the computer program 23, it implements the steps in the various embodiments of the above-mentioned methods for detecting abnormal interface traffic, such as S10 to S40 shown in FIG. 1 , or S21 to S28 shown in FIG. 2 , or shown in FIG. 4 . S50 to S60. Alternatively, when the processor 20 executes the computer program 22, the functions of the units in the embodiment corresponding to FIG. 5 are implemented, for example, the functions of the units 10 to 13 shown in FIG. 5, please refer to the corresponding implementation in FIG. 6 for details. The relevant descriptions in the examples will not be repeated here.
示例性的,所述计算机程序22可以被分割成一个或多个单元,所述一个或者多个单元被存储在所述存储器21中,并由所述处理器20执行,以完成本申请。所述一个或多个单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述所述计算机程序22在所述终端设备2中的执行过程。例如,所述计算机程序22可以被分割成访问图像绘制单元10、图像分割单元11、异常指数计算单元12和异常判定单元13,各单元具体功能如上所述。Exemplarily, the computer program 22 may be divided into one or more units, and the one or more units are stored in the memory 21 and executed by the processor 20 to complete the present application. The one or more units may be a series of computer program instruction segments capable of performing specific functions, and the instruction segments are used to describe the execution process of the computer program 22 in the terminal device 2 . For example, the computer program 22 can be divided into accessing the image rendering unit 10, the image segmentation unit 11, the abnormality index calculation unit 12 and the abnormality determination unit 13, and the specific functions of each unit are as described above.
所述终端设备可包括,但不仅限于,处理器20、存储器21。本领域技术人员可以理解,图6仅仅是终端设备2的示例,并不构成对终端设备2的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述终端设备还可以包括输入输出设备、网络接入设备、总线等。The terminal device may include, but is not limited to, the processor 20 and the memory 21 . Those skilled in the art can understand that FIG. 6 is only an example of the terminal device 2, and does not constitute a limitation on the terminal device 2, and may include more or less components than those shown in the figure, or combine some components, or different components For example, the terminal device may further include an input and output device, a network access device, a bus, and the like.
所称处理器20可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The so-called processor 20 may be a central processing unit (Central Processing Unit, CPU), or other general-purpose processors, digital signal processors (Digital Signal Processors, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), Off-the-shelf programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
所述存储器21可以是所述终端设备2的内部存储单元,例如终端设备2的硬盘或内存。所述存储器21也可以是所述终端设备2的外部存储设备,例如所述终端设备2上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器21还可以既包括所述终端设备2的内部存储单元也包括外部存储设备。所述存储器21用于存储所述计算机程序以及所述终端设备所需的其他程序和数据。所述存储器21还可以用于暂时地存储已经输出或者将要输出的数据。The memory 21 may be an internal storage unit of the terminal device 2 , such as a hard disk or a memory of the terminal device 2 . The memory 21 can also be an external storage device of the terminal device 2, such as a plug-in hard disk equipped on the terminal device 2, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, Flash Card, etc. Further, the memory 21 may also include both an internal storage unit of the terminal device 2 and an external storage device. The memory 21 is used to store the computer program and other programs and data required by the terminal device. The memory 21 can also be used to temporarily store data that has been output or will be output.
本申请实施例还提供了一种存储介质,所述存储介质存储有计算机程序,所述计算机程序被处理器执行时实现上述任一方案提供的接口流量异常检测方法的各步骤,该存储介质可以为计算机可读存储介质,所述计算机可读存储介质可以是非易失性,也可以是易失性。An embodiment of the present application further provides a storage medium, where a computer program is stored in the storage medium, and when the computer program is executed by a processor, implements each step of the method for detecting an abnormality in interface traffic provided by any of the above solutions, and the storage medium may As a computer-readable storage medium, the computer-readable storage medium may be non-volatile or volatile.
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-mentioned embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the above-mentioned embodiments, those of ordinary skill in the art should understand that: it can still be used for the above-mentioned implementations. The technical solutions described in the examples are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions in the embodiments of the application, and should be included in the within the scope of protection of this application.

Claims (20)

  1. 一种接口流量异常检测方法,其中,包括:A method for detecting anomaly in interface traffic, comprising:
    获取待检测接口的流量数据,并根据所述流量数据绘制接口访问图像,所述接口访问图像包括所述流量数据中不同时间段与对应接口流量之间所形成的图像点;acquiring traffic data of the interface to be detected, and drawing an interface access image according to the traffic data, where the interface access image includes image points formed between different time periods in the traffic data and corresponding interface traffic;
    对所述接口访问图像进行分割,直至每个所述图像点均被孤立,得到每个所述图像点对应的分割路径,所述分割路径的长度用于表征孤立对应所述图像点的难易程度;The interface access image is segmented until each image point is isolated, and a segmentation path corresponding to each image point is obtained, and the length of the segmentation path is used to represent the difficulty of isolating the corresponding image point. degree;
    根据所述分割路径的长度计算对应所述图像点的异常指数,所述异常指数用于表征所述图像点的异常程度;Calculate an anomaly index corresponding to the image point according to the length of the segmentation path, where the anomaly index is used to characterize the degree of anomaly of the image point;
    若任一所述图像点对应的所述异常指数大于异常阈值,则判定所述待检测接口在所述图像点对应时间段内的流量是异常流量。If the abnormality index corresponding to any of the image points is greater than the abnormality threshold, it is determined that the traffic of the interface to be detected in the time period corresponding to the image point is abnormal traffic.
  2. 根据权利要求1所述的接口流量异常检测方法,其中,所述根据所述流量数据绘制接口访问图像,包括:The method for detecting anomaly in interface traffic according to claim 1, wherein the drawing an interface access image according to the traffic data comprises:
    根据预设时间间隔对所述流量数据中的时间参数进行分割,得到不同时间段,并分别获取不同日期中相同所述时间段对应的所述接口流量;Divide the time parameter in the traffic data according to the preset time interval to obtain different time periods, and obtain the interface traffic corresponding to the same time period on different dates respectively;
    针对同一所述时间段,将对应获取到的所述接口流量为纵坐标值、所述接口流量对应的日期为横坐标值进行坐标点绘制,得到所述图像点。For the same time period, draw the coordinate points corresponding to the acquired interface traffic as the ordinate value and the date corresponding to the interface traffic as the abscissa value to obtain the image point.
  3. 根据权利要求1所述的接口流量异常检测方法,其中,所述对所述接口访问图像进行分割,直至每个所述图像点均被孤立,得到每个所述图像点对应的分割路径,包括:The method for detecting anomaly in interface traffic according to claim 1, wherein the interface access image is segmented until each image point is isolated, and a segmentation path corresponding to each image point is obtained, comprising: :
    计算所述待检测接口的接口总流量,所述接口总流量为所述待检测接口在不同日期中相同所述时间段之间对应接口流量的和;Calculate the total interface traffic of the interface to be detected, where the total interface traffic is the sum of the corresponding interface traffic between the same time period of the interface to be detected in different dates;
    根据所述接口总流量计算所述时间段对应的流量平均值;Calculate the average traffic corresponding to the time period according to the total traffic of the interface;
    根据所述流量平均值生成所述接口访问图像的图像分割线,并根据所述图像分割线对所述接口访问图像进行图像分割,得到访问分割图像;Generate an image segmentation line of the interface access image according to the traffic average value, and perform image segmentation on the interface access image according to the image segmentation line to obtain an access segmentation image;
    分别计算所述访问分割图像中不同时间段对应接口流量的和,并根据所述访问分割图像中不同时间段对应接口流量的和计算所述访问分割图像的流量平均值;Calculate the sum of the interface traffic corresponding to different time periods in the access segmented image respectively, and calculate the traffic average value of the access segmented image according to the sum of the interface traffic corresponding to different time periods in the access segmented image;
    根据所述访问分割图像的流量平均值生成对应所述访问分割图像中的图像分割线,并根据所述访问分割图像中的图像分割线对所述访问分割图像进行图像分割,得到分割子图像;Generate image segmentation lines corresponding to the access segmented images according to the traffic average value of the access segmented images, and perform image segmentation on the access segmented images according to the image segmentation lines in the access segmented images to obtain segmented sub-images;
    若所述分割子图像中的所述图像点的数量大于数量阈值,则分别计算所述分割子图像中不同时间段对应接口流量的和,并根据所述分割子图像中不同时间段对应接口流量的和计算所述分割子图像的流量平均值;If the number of the image points in the segmented sub-image is greater than the number threshold, the sum of the interface traffic corresponding to different time periods in the segmented sub-image is calculated respectively, and the interface traffic corresponding to the different time periods in the segmented sub-image is calculated according to the and calculate the flow average of the segmented sub-images;
    根据所述分割子图像的流量平均值生成对应所述分割子图像中的图像分割线,并根据所述分割子图像中的图像分割线对所述分割子图像进行图像分割;Generate image segmentation lines corresponding to the segmented sub-images according to the flow average value of the segmented sub-images, and perform image segmentation on the segmented sub-images according to the image segmentation lines in the segmented sub-images;
    若所述分割子图像中的所述图像点的数量小于或等于数量阈值,则停止所述分割子图像的分割;If the number of the image points in the segmented sub-image is less than or equal to the number threshold, stop the segmentation of the segmented sub-image;
    若分割后所述分割子图像中的所述图像点的数量大于数量阈值,则持续对分割后所述分割子图像进行图像分割,直至分割后所述分割子图像中的所述图像点的数量小于或等于数量阈值;If the number of the image points in the divided sub-image after division is greater than the number threshold, continue to perform image segmentation on the divided sub-image after division until the number of the image points in the divided sub-image after division less than or equal to the quantity threshold;
    根据所述图像分割线生成对应所述图像点的所述分割路径。The segmentation path corresponding to the image point is generated according to the image segmentation line.
  4. 根据权利要求3所述的接口流量异常检测方法,其中,所述根据所述图像分割线生成对应所述图像点的所述分割路径,包括:The interface traffic anomaly detection method according to claim 3, wherein the generating the segmentation path corresponding to the image point according to the image segmentation line comprises:
    获取用于孤立所述图像点的所述图像分割线,并将获取到的所述图像分割线进行矢量合并,得到所述分割路径。Obtaining the image dividing line for isolating the image point, and performing vector combination of the obtained image dividing line to obtain the dividing path.
  5. 根据权利要求1所述的接口流量异常检测方法,其中,所述判定所述待检测接口在所述图像点对应时间段内的流量是异常流量之后,所述方法还包括:The interface traffic abnormality detection method according to claim 1, wherein after determining that the traffic of the interface to be detected in the time period corresponding to the image point is abnormal traffic, the method further comprises:
    获取所述异常流量对应的请求对象,并对获取到的所述请求对象进行异常标记;Obtain the request object corresponding to the abnormal traffic, and mark the obtained request object with exception;
    若所述请求对象在预设时间内的异常标记次数大于次数阈值,则获取所述异常流量对应的访问地址,并在预设时间间隔内禁止所述请求对象对所述访问地址的访问。If the number of abnormal marking times of the requesting object within a preset time is greater than the number of thresholds, the access address corresponding to the abnormal traffic is obtained, and the access of the requesting object to the access address is prohibited within a preset time interval.
  6. 根据权利要求1所述的接口流量异常检测方法,其中,所述根据所述分割路径的长度计算对应所述图像点的异常指数所采用的计算公式为:The interface traffic anomaly detection method according to claim 1, wherein the calculation formula used for calculating the anomaly index corresponding to the image point according to the length of the segmented path is:
    Figure PCTCN2021091088-appb-100001
    Figure PCTCN2021091088-appb-100001
    其中,E(h(x))是第x个图像点对应的分割路径的长度,C(Ψ)是预设分割路径的长度,Score(x)是第x个图像点对应的异常指数。Among them, E(h(x)) is the length of the segmentation path corresponding to the xth image point, C(Ψ) is the length of the preset segmentation path, and Score(x) is the anomaly index corresponding to the xth image point.
  7. 根据权利要求1所述的接口流量异常检测方法,其中,所述对所述接口访问图像进行分割,直至每个所述图像点均被孤立,得到每个所述图像点对应的分割路径之后,还包括:The method for detecting anomaly in interface traffic according to claim 1, wherein the interface access image is segmented until each of the image points is isolated, and after a segmentation path corresponding to each of the image points is obtained, Also includes:
    计算所述分割路径的长度的算术平均值和标准差,并根据计算到的所述算术平均值和所述标准差对所述分割路径进行标准化处理;calculating the arithmetic mean and standard deviation of the lengths of the divided paths, and standardizing the divided paths according to the calculated arithmetic mean and standard deviation;
    所述根据所述算术平均值和所述标准差对所述分割路径进行标准化处理所采用的标准化公式为:The normalization formula used for performing the normalization processing on the segmentation path according to the arithmetic mean and the standard deviation is:
    A=(B-C)/D;A=(B-C)/D;
    其中,A是标准化处理后的所述分割路径的长度,B是标准化处理前的所述分割路径的长度,C是所述算术平均值,D是所述标准差。Wherein, A is the length of the divided path after normalization, B is the length of the divided path before normalization, C is the arithmetic mean, and D is the standard deviation.
  8. 一种接口流量异常检测装置,其中,包括:An interface traffic abnormality detection device, comprising:
    访问图像绘制单元,用于获取待检测接口的流量数据,并根据所述流量数据绘制接口访问图像,所述接口访问图像包括所述流量数据中不同时间段与对应接口流量之间所形成的图像点;An access image drawing unit, configured to acquire traffic data of the interface to be detected, and draw an interface access image according to the traffic data, where the interface access image includes images formed between different time periods in the traffic data and corresponding interface traffic point;
    图像分割单元,用于对所述接口访问图像进行分割,直至每个所述图像点均被孤立,得到每个所述图像点对应的分割路径,所述分割路径的长度用于表征孤立对应所述图像点的难易程度;The image segmentation unit is used to segment the interface access image until each of the image points is isolated to obtain a segmentation path corresponding to each of the image points, and the length of the segmentation path is used to represent the isolation corresponding to the The difficulty of describing the image point;
    异常指数计算单元,用于根据所述分割路径的长度计算对应所述图像点的异常指数,所述异常指数用于表征所述图像点的异常程度;an anomaly index calculation unit, configured to calculate an anomaly index corresponding to the image point according to the length of the segmentation path, where the anomaly index is used to characterize the degree of anomaly of the image point;
    异常判定单元,用于若任一所述图像点对应的所述异常指数大于异常阈值,则判定所述待检测接口在所述图像点对应时间段内的流量是异常流量。An abnormality determination unit, configured to determine that the traffic of the interface to be detected in the time period corresponding to the image point is abnormal traffic if the abnormality index corresponding to any of the image points is greater than an abnormality threshold.
  9. 一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其中,所述处理器执行所述计算机程序时实现:A terminal device, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor implements when the processor executes the computer program:
    获取待检测接口的流量数据,并根据所述流量数据绘制接口访问图像,所述接口访问图像包括所述流量数据中不同时间段与对应接口流量之间所形成的图像点;acquiring traffic data of the interface to be detected, and drawing an interface access image according to the traffic data, where the interface access image includes image points formed between different time periods in the traffic data and corresponding interface traffic;
    对所述接口访问图像进行分割,直至每个所述图像点均被孤立,得到每个所述图像点对应的分割路径,所述分割路径的长度用于表征孤立对应所述图像点的难易程度;The interface access image is segmented until each image point is isolated, and a segmentation path corresponding to each image point is obtained, and the length of the segmentation path is used to represent the difficulty of isolating the corresponding image point. degree;
    根据所述分割路径的长度计算对应所述图像点的异常指数,所述异常指数用于表征所述图像点的异常程度;Calculate an anomaly index corresponding to the image point according to the length of the segmentation path, where the anomaly index is used to characterize the degree of anomaly of the image point;
    若任一所述图像点对应的所述异常指数大于异常阈值,则判定所述待检测接口在所述图像点对应时间段内的流量是异常流量。If the abnormality index corresponding to any of the image points is greater than the abnormality threshold, it is determined that the traffic of the interface to be detected in the time period corresponding to the image point is abnormal traffic.
  10. 根据权利要求9所述的终端设备,其中,所述根据所述流量数据绘制接口访问图像,包括:The terminal device according to claim 9, wherein the drawing an interface access image according to the traffic data comprises:
    根据预设时间间隔对所述流量数据中的时间参数进行分割,得到不同时间段,并分别获取不同日期中相同所述时间段对应的所述接口流量;Divide the time parameter in the traffic data according to the preset time interval to obtain different time periods, and obtain the interface traffic corresponding to the same time period on different dates respectively;
    针对同一所述时间段,将对应获取到的所述接口流量为纵坐标值、所述接口流量 对应的日期为横坐标值进行坐标点绘制,得到所述图像点。For the same time period, the corresponding acquired interface traffic is the ordinate value, and the date corresponding to the interface traffic is the abscissa value, and coordinate points are drawn to obtain the image points.
  11. 根据权利要求9所述的终端设备,其中,所述对所述接口访问图像进行分割,直至每个所述图像点均被孤立,得到每个所述图像点对应的分割路径,包括:The terminal device according to claim 9, wherein the dividing the interface access image until each of the image points is isolated, and obtaining a segmentation path corresponding to each of the image points, comprising:
    计算所述待检测接口的接口总流量,所述接口总流量为所述待检测接口在不同日期中相同所述时间段之间对应接口流量的和;Calculate the total interface traffic of the interface to be detected, where the total interface traffic is the sum of the corresponding interface traffic between the same time period of the interface to be detected in different dates;
    根据所述接口总流量计算所述时间段对应的流量平均值;Calculate the average traffic corresponding to the time period according to the total traffic of the interface;
    根据所述流量平均值生成所述接口访问图像的图像分割线,并根据所述图像分割线对所述接口访问图像进行图像分割,得到访问分割图像;Generate an image segmentation line of the interface access image according to the traffic average value, and perform image segmentation on the interface access image according to the image segmentation line to obtain an access segmentation image;
    分别计算所述访问分割图像中不同时间段对应接口流量的和,并根据所述访问分割图像中不同时间段对应接口流量的和计算所述访问分割图像的流量平均值;Calculate the sum of the interface traffic corresponding to different time periods in the access segmented image respectively, and calculate the traffic average value of the access segmented image according to the sum of the interface traffic corresponding to different time periods in the access segmented image;
    根据所述访问分割图像的流量平均值生成对应所述访问分割图像中的图像分割线,并根据所述访问分割图像中的图像分割线对所述访问分割图像进行图像分割,得到分割子图像;Generate image segmentation lines corresponding to the access segmented images according to the traffic average value of the access segmented images, and perform image segmentation on the access segmented images according to the image segmentation lines in the access segmented images to obtain segmented sub-images;
    若所述分割子图像中的所述图像点的数量大于数量阈值,则分别计算所述分割子图像中不同时间段对应接口流量的和,并根据所述分割子图像中不同时间段对应接口流量的和计算所述分割子图像的流量平均值;If the number of the image points in the segmented sub-image is greater than the number threshold, the sum of the interface traffic corresponding to different time periods in the segmented sub-image is calculated respectively, and the interface traffic corresponding to the different time periods in the segmented sub-image is calculated according to the and calculate the flow average of the segmented sub-images;
    根据所述分割子图像的流量平均值生成对应所述分割子图像中的图像分割线,并根据所述分割子图像中的图像分割线对所述分割子图像进行图像分割;Generate image segmentation lines corresponding to the segmented sub-images according to the flow average value of the segmented sub-images, and perform image segmentation on the segmented sub-images according to the image segmentation lines in the segmented sub-images;
    若所述分割子图像中的所述图像点的数量小于或等于数量阈值,则停止所述分割子图像的分割;If the number of the image points in the segmented sub-image is less than or equal to the number threshold, stop the segmentation of the segmented sub-image;
    若分割后所述分割子图像中的所述图像点的数量大于数量阈值,则持续对分割后所述分割子图像进行图像分割,直至分割后所述分割子图像中的所述图像点的数量小于或等于数量阈值;If the number of the image points in the divided sub-image after division is greater than the number threshold, continue to perform image segmentation on the divided sub-image after division until the number of the image points in the divided sub-image after division less than or equal to the quantity threshold;
    根据所述图像分割线生成对应所述图像点的所述分割路径。The segmentation path corresponding to the image point is generated according to the image segmentation line.
  12. 根据权利要求11所述的终端设备,其中,所述根据所述图像分割线生成对应所述图像点的所述分割路径,包括:The terminal device according to claim 11, wherein the generating the segmentation path corresponding to the image point according to the image segmentation line comprises:
    获取用于孤立所述图像点的所述图像分割线,并将获取到的所述图像分割线进行矢量合并,得到所述分割路径。Obtaining the image dividing line for isolating the image point, and performing vector combination of the obtained image dividing line to obtain the dividing path.
  13. 根据权利要求9所述的终端设备,其中,所述判定所述待检测接口在所述图像点对应时间段内的流量是异常流量之后,还包括:The terminal device according to claim 9, wherein after determining that the traffic of the interface to be detected in the time period corresponding to the image point is abnormal traffic, the method further comprises:
    获取所述异常流量对应的请求对象,并对获取到的所述请求对象进行异常标记;Obtain the request object corresponding to the abnormal traffic, and mark the obtained request object with exception;
    若所述请求对象在预设时间内的异常标记次数大于次数阈值,则获取所述异常流量对应的访问地址,并在预设时间间隔内禁止所述请求对象对所述访问地址的访问。If the number of abnormal marking times of the requesting object within a preset time is greater than the number of thresholds, the access address corresponding to the abnormal traffic is obtained, and the access of the requesting object to the access address is prohibited within a preset time interval.
  14. 根据权利要求9所述的终端设备,其中,所述根据所述分割路径的长度计算对应所述图像点的异常指数所采用的计算公式为:The terminal device according to claim 9, wherein the calculation formula used for calculating the abnormality index corresponding to the image point according to the length of the segmentation path is:
    Figure PCTCN2021091088-appb-100002
    Figure PCTCN2021091088-appb-100002
    其中,E(h(x))是第x个图像点对应的分割路径的长度,C(Ψ)是预设分割路径的长度,Score(x)是第x个图像点对应的异常指数。Among them, E(h(x)) is the length of the segmentation path corresponding to the xth image point, C(Ψ) is the length of the preset segmentation path, and Score(x) is the anomaly index corresponding to the xth image point.
  15. 一种存储介质,所述存储介质存储有计算机程序,其中,所述计算机程序被处理器执行时实现:A storage medium storing a computer program, wherein the computer program is implemented when executed by a processor:
    获取待检测接口的流量数据,并根据所述流量数据绘制接口访问图像,所述接口访问图像包括所述流量数据中不同时间段与对应接口流量之间所形成的图像点;acquiring traffic data of the interface to be detected, and drawing an interface access image according to the traffic data, where the interface access image includes image points formed between different time periods in the traffic data and corresponding interface traffic;
    对所述接口访问图像进行分割,直至每个所述图像点均被孤立,得到每个所述图像点对应的分割路径,所述分割路径的长度用于表征孤立对应所述图像点的难易程度;The interface access image is segmented until each image point is isolated, and a segmentation path corresponding to each image point is obtained, and the length of the segmentation path is used to represent the difficulty of isolating the corresponding image point. degree;
    根据所述分割路径的长度计算对应所述图像点的异常指数,所述异常指数用于表征所述图像点的异常程度;Calculate an anomaly index corresponding to the image point according to the length of the segmentation path, where the anomaly index is used to characterize the degree of anomaly of the image point;
    若任一所述图像点对应的所述异常指数大于异常阈值,则判定所述待检测接口在所述图像点对应时间段内的流量是异常流量。If the abnormality index corresponding to any of the image points is greater than the abnormality threshold, it is determined that the traffic of the interface to be detected in the time period corresponding to the image point is abnormal traffic.
  16. 根据权利要求15所述的存储介质,其中,所述根据所述流量数据绘制接口访问图像,包括:The storage medium according to claim 15, wherein the drawing an interface access image according to the traffic data comprises:
    根据预设时间间隔对所述流量数据中的时间参数进行分割,得到不同时间段,并分别获取不同日期中相同所述时间段对应的所述接口流量;Divide the time parameter in the traffic data according to the preset time interval to obtain different time periods, and obtain the interface traffic corresponding to the same time period on different dates respectively;
    针对同一所述时间段,将对应获取到的所述接口流量为纵坐标值、所述接口流量对应的日期为横坐标值进行坐标点绘制,得到所述图像点。For the same time period, draw the coordinate points corresponding to the acquired interface traffic as the ordinate value and the date corresponding to the interface traffic as the abscissa value to obtain the image point.
  17. 根据权利要求15所述的存储介质,其中,所述对所述接口访问图像进行分割,直至每个所述图像点均被孤立,得到每个所述图像点对应的分割路径,包括:The storage medium according to claim 15, wherein the dividing the interface access image until each of the image points is isolated, and obtaining a division path corresponding to each of the image points, comprising:
    计算所述待检测接口的接口总流量,所述接口总流量为所述待检测接口在不同日期中相同所述时间段之间对应接口流量的和;Calculate the total interface traffic of the interface to be detected, where the total interface traffic is the sum of the corresponding interface traffic between the same time period of the interface to be detected in different dates;
    根据所述接口总流量计算所述时间段对应的流量平均值;Calculate the average traffic corresponding to the time period according to the total traffic of the interface;
    根据所述流量平均值生成所述接口访问图像的图像分割线,并根据所述图像分割线对所述接口访问图像进行图像分割,得到访问分割图像;Generate an image segmentation line of the interface access image according to the traffic average value, and perform image segmentation on the interface access image according to the image segmentation line to obtain an access segmentation image;
    分别计算所述访问分割图像中不同时间段对应接口流量的和,并根据所述访问分割图像中不同时间段对应接口流量的和计算所述访问分割图像的流量平均值;Calculate the sum of the interface traffic corresponding to different time periods in the access segmented image respectively, and calculate the traffic average value of the access segmented image according to the sum of the interface traffic corresponding to different time periods in the access segmented image;
    根据所述访问分割图像的流量平均值生成对应所述访问分割图像中的图像分割线,并根据所述访问分割图像中的图像分割线对所述访问分割图像进行图像分割,得到分割子图像;Generate image segmentation lines corresponding to the access segmented images according to the traffic average value of the access segmented images, and perform image segmentation on the access segmented images according to the image segmentation lines in the access segmented images to obtain segmented sub-images;
    若所述分割子图像中的所述图像点的数量大于数量阈值,则分别计算所述分割子图像中不同时间段对应接口流量的和,并根据所述分割子图像中不同时间段对应接口流量的和计算所述分割子图像的流量平均值;If the number of the image points in the segmented sub-image is greater than the number threshold, the sum of the interface traffic corresponding to different time periods in the segmented sub-image is calculated respectively, and the interface traffic corresponding to the different time periods in the segmented sub-image is calculated according to the and calculate the flow average of the segmented sub-images;
    根据所述分割子图像的流量平均值生成对应所述分割子图像中的图像分割线,并根据所述分割子图像中的图像分割线对所述分割子图像进行图像分割;Generate image segmentation lines corresponding to the segmented sub-images according to the flow average value of the segmented sub-images, and perform image segmentation on the segmented sub-images according to the image segmentation lines in the segmented sub-images;
    若所述分割子图像中的所述图像点的数量小于或等于数量阈值,则停止所述分割子图像的分割;If the number of the image points in the segmented sub-image is less than or equal to the number threshold, stop the segmentation of the segmented sub-image;
    若分割后所述分割子图像中的所述图像点的数量大于数量阈值,则持续对分割后所述分割子图像进行图像分割,直至分割后所述分割子图像中的所述图像点的数量小于或等于数量阈值;If the number of the image points in the divided sub-image after division is greater than the number threshold, continue to perform image segmentation on the divided sub-image after division until the number of the image points in the divided sub-image after division less than or equal to the quantity threshold;
    根据所述图像分割线生成对应所述图像点的所述分割路径。The segmentation path corresponding to the image point is generated according to the image segmentation line.
  18. 根据权利要求17所述的存储介质,其中,所述根据所述图像分割线生成对应所述图像点的所述分割路径,包括:The storage medium according to claim 17, wherein the generating the segmentation path corresponding to the image point according to the image segmentation line comprises:
    获取用于孤立所述图像点的所述图像分割线,并将获取到的所述图像分割线进行矢量合并,得到所述分割路径。Obtaining the image dividing line for isolating the image point, and performing vector combination of the obtained image dividing line to obtain the dividing path.
  19. 根据权利要求15所述的存储介质,其中,所述判定所述待检测接口在所述图像点对应时间段内的流量是异常流量之后,还包括:The storage medium according to claim 15, wherein after determining that the traffic of the interface to be detected in the time period corresponding to the image point is abnormal traffic, the method further comprises:
    获取所述异常流量对应的请求对象,并对获取到的所述请求对象进行异常标记;Obtain the request object corresponding to the abnormal traffic, and mark the obtained request object with exception;
    若所述请求对象在预设时间内的异常标记次数大于次数阈值,则获取所述异常流量对应的访问地址,并在预设时间间隔内禁止所述请求对象对所述访问地址的访问。If the number of abnormal marking times of the requesting object within a preset time is greater than the number of thresholds, the access address corresponding to the abnormal traffic is obtained, and the access of the requesting object to the access address is prohibited within a preset time interval.
  20. 根据权利要求15所述的存储介质,其中,所述根据所述分割路径的长度计算对应所述图像点的异常指数所采用的计算公式为:The storage medium according to claim 15, wherein the calculation formula used for calculating the abnormality index corresponding to the image point according to the length of the segmentation path is:
    Figure PCTCN2021091088-appb-100003
    Figure PCTCN2021091088-appb-100003
    其中,E(h(x))是第x个图像点对应的分割路径的长度,C(Ψ)是预设分割路径的长度,Score(x)是第x个图像点对应的异常指数。Among them, E(h(x)) is the length of the segmentation path corresponding to the xth image point, C(Ψ) is the length of the preset segmentation path, and Score(x) is the anomaly index corresponding to the xth image point.
PCT/CN2021/091088 2020-11-16 2021-04-29 Interface traffic anomaly detection method and apparatus, terminal device, and storage medium WO2022100028A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011281595.4A CN112383554B (en) 2020-11-16 2020-11-16 Interface flow abnormity detection method and device, terminal equipment and storage medium
CN202011281595.4 2020-11-16

Publications (1)

Publication Number Publication Date
WO2022100028A1 true WO2022100028A1 (en) 2022-05-19

Family

ID=74585602

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/091088 WO2022100028A1 (en) 2020-11-16 2021-04-29 Interface traffic anomaly detection method and apparatus, terminal device, and storage medium

Country Status (2)

Country Link
CN (1) CN112383554B (en)
WO (1) WO2022100028A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116545650A (en) * 2023-04-03 2023-08-04 中国华能集团有限公司北京招标分公司 Network dynamic defense method

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112383554B (en) * 2020-11-16 2023-04-18 平安科技(深圳)有限公司 Interface flow abnormity detection method and device, terminal equipment and storage medium
CN115208797A (en) * 2022-09-16 2022-10-18 深圳行云创新科技有限公司 Interface flow detection method based on service grid technology

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109658699A (en) * 2019-02-20 2019-04-19 张家港江苏科技大学产业技术研究院 The method and apparatus for determining exception vehicle flowrate data
CN109802960A (en) * 2019-01-08 2019-05-24 深圳中兴网信科技有限公司 Firewall policy processing method and processing device, computer equipment and storage medium
WO2019129977A1 (en) * 2017-12-28 2019-07-04 Worldline Detection of anomalies by an approach combining supervised and non-supervised learning
CN110032480A (en) * 2019-01-17 2019-07-19 阿里巴巴集团控股有限公司 A kind of server exception detection method, device and equipment
CN112383554A (en) * 2020-11-16 2021-02-19 平安科技(深圳)有限公司 Interface flow abnormity detection method and device, terminal equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101219538B1 (en) * 2009-07-29 2013-01-08 한국전자통신연구원 Apparatus for detecting network attack based on visual data analysis and its method thereof
US20190347808A1 (en) * 2018-05-09 2019-11-14 Ford Global Technologies, Llc Monocular Visual Odometry: Speed And Yaw Rate Of Vehicle From Rear-View Camera
CN111526119B (en) * 2020-03-19 2022-06-14 北京三快在线科技有限公司 Abnormal flow detection method and device, electronic equipment and computer readable medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019129977A1 (en) * 2017-12-28 2019-07-04 Worldline Detection of anomalies by an approach combining supervised and non-supervised learning
CN109802960A (en) * 2019-01-08 2019-05-24 深圳中兴网信科技有限公司 Firewall policy processing method and processing device, computer equipment and storage medium
CN110032480A (en) * 2019-01-17 2019-07-19 阿里巴巴集团控股有限公司 A kind of server exception detection method, device and equipment
CN109658699A (en) * 2019-02-20 2019-04-19 张家港江苏科技大学产业技术研究院 The method and apparatus for determining exception vehicle flowrate data
CN112383554A (en) * 2020-11-16 2021-02-19 平安科技(深圳)有限公司 Interface flow abnormity detection method and device, terminal equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
YUAN YI-FANG, LI YAN, CHEN XU, GAO YONG-LONG, XI XIN: "Research on Mobile Police Network Traffic Monitoring Method Based on Isolated Forest Algorithm ", RUANJIAN = SOFTWARE MAGAZINE, ZHONGGUO DIANZI XUEHUI, TIANJIN, CN, vol. 40, no. 12, 15 December 2019 (2019-12-15), Tianjin, CN , pages 229 - 232, XP055929381, ISSN: 1003-6970 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116545650A (en) * 2023-04-03 2023-08-04 中国华能集团有限公司北京招标分公司 Network dynamic defense method
CN116545650B (en) * 2023-04-03 2024-01-30 中国华能集团有限公司北京招标分公司 Network dynamic defense method

Also Published As

Publication number Publication date
CN112383554A (en) 2021-02-19
CN112383554B (en) 2023-04-18

Similar Documents

Publication Publication Date Title
WO2022100028A1 (en) Interface traffic anomaly detection method and apparatus, terminal device, and storage medium
WO2021057848A1 (en) Network training method, image processing method, network, terminal device and medium
WO2020207190A1 (en) Three-dimensional information determination method, three-dimensional information determination device, and terminal apparatus
WO2021218314A1 (en) Event identification method and apparatus based on position locating, and device and storage medium
WO2020252920A1 (en) Picture correction method and apparatus, computer device and computer-readable storage medium
CN106778453B (en) Method and device for detecting glasses wearing in face image
CN109697414B (en) Text positioning method and device
US12086982B2 (en) Method for confirming cup-disc ratio based on neural network, apparatus, device, and computer readable storage medium
CN112651953B (en) Picture similarity calculation method and device, computer equipment and storage medium
CN109492435B (en) Privacy disclosure risk assessment method, device and system based on data open sharing
CN110570390B (en) Image detection method and device
CN109657543B (en) People flow monitoring method and device and terminal equipment
WO2021180245A1 (en) Server, data processing method and apparatus, and readable storage medium
CN111402120A (en) Method and device for processing annotated image
WO2019056496A1 (en) Method for generating picture review probability interval and method for picture review determination
CN111428978A (en) Subsidy calculation method and device, electronic equipment and storage medium
CN112395630A (en) Data encryption method and device based on information security, terminal equipment and medium
CN117150233B (en) Power grid abnormal data management method, system, equipment and medium
CN118094450A (en) Fault early warning method and related equipment
CN112949697B (en) Method and device for confirming pipeline abnormity and computer readable storage medium
CN114297665A (en) Intelligent contract vulnerability detection method and device based on deep learning
CN110569114A (en) Service processing method, device, equipment and storage medium
CN112632052B (en) Heterogeneous data sharing method and intelligent sharing system
CN109446054B (en) Processing method and terminal equipment for override operation request based on big data
CN113572721A (en) Abnormal access detection method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE