Abnormality detection method and related equipment
By obtaining the key parameter set of the API message for anomaly detection, the problem of insufficient API message detection in the existing technology is solved, comprehensive and accurate anomaly detection of the API message is achieved, and network security is improved.
Patent Information
- Application Number
- CN202310335740.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-29
- Publication Date
- 2024-10-01
AI Technical Summary
Existing technologies are difficult to effectively detect anomalies in API messages, resulting in insufficient network security. Especially in the case of multiple parameters and complex business logic, single-dimensional parameter detection cannot comprehensively and accurately detect attack behaviors.
By obtaining the key parameter set of the API message, anomaly detection is performed based on the values of these parameters, and the abnormality detection results of the API message are determined using parameter configuration templates or trained detection models to ensure the accuracy and comprehensiveness of the detection results.
It achieves comprehensive and accurate anomaly detection of API messages, improves network security, avoids the shortcomings of single-dimensional parameter detection, and can detect attack behaviors without understanding the business logic.
Smart Images

Figure CN118740403A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of network security technology, and in particular to an anomaly detection method and related equipment. Background Art
[0002] With the continuous development of the Internet, more and more companies provide services to the outside world through open application programming interfaces (APIs). In order to ensure the normal provision of services, it is necessary to perform security testing on the service APIs. Summary of the invention
[0003] Based on this, the present application provides an anomaly detection method and related equipment, which can perform anomaly detection on API messages, thereby improving the security of the network.
[0004] In the first aspect, the present application provides an anomaly detection method. The method can be performed by a computer device. The computer device, such as a gateway (such as an API gateway), a controller, a firewall, a probe, etc., can collect and parse API messages. The computer device obtains a first key parameter set based on a first API mode of a first API message, obtains first detection information of the first API message based on the first key parameter set, and determines the anomaly detection result of the first API message based on the first API mode and the first detection information. The first key parameter set includes multiple key parameters, and the first detection information includes the value of each key parameter in the first key parameter set in the first API message.
[0005] This solution obtains a set of key parameters based on the API mode of the API message, and detects the API message based on the value of each key parameter in the key parameter set in the API message, so that anomaly detection of the API message can be achieved, providing network security. Furthermore, anomaly detection of API messages based on multiple key parameters can avoid the problem that a single-dimensional parameter cannot reflect the business logic, making the anomaly detection results more comprehensive and accurate.
[0006] In a possible implementation, the computer device obtains the first key parameter set based on the first API mode and the API key parameter library, wherein the API key parameter library includes at least one API mode and a key parameter set corresponding to each API mode in the at least one API mode. In this way, the key parameter set corresponding to each API mode is maintained through the API key parameter library, which facilitates the anomaly detection method provided by the present application.
[0007] As an example, the key parameter set corresponding to each API mode maintained on the computer device can be obtained based on the configuration of the staff, and the staff can be, for example, an operation and maintenance personnel familiar with the API business. For any API mode in the at least one API mode, the method can also include: obtaining the key parameter set corresponding to the any API mode. In this way, there is no need for the computer device to determine the key parameter set of each API mode by calculation, which reduces the storage, processing and other resources required for the anomaly detection.
[0008] As another example, the key parameter set corresponding to each API mode maintained on the computer device can be determined based on the candidate key parameter set calculated by the analysis platform or computer device. For any API mode in the at least one API mode, the method may also include: obtaining multiple second API messages corresponding to the any API mode; determining the candidate key parameter set corresponding to the any API mode based on the values of multiple parameters of each second API message in the multiple second API messages, the uncertainty of the candidate key parameters in the candidate key parameter set meets the first preset condition; determining the key parameter set corresponding to the any API mode based on the candidate key parameter set. In this way, by analyzing the API messages of each API mode by the analysis platform or computer device, the key parameter set corresponding to the API mode is determined, and the determined key parameter set is more reasonable, making accurate anomaly detection of API messages possible.
[0009] In a possible implementation, the determination of the set of candidate key parameters corresponding to any one of the API modes based on the values of multiple parameters of each of the multiple second API messages may include, for example: obtaining the values of multiple parameters of each of the second API messages; for any one of the multiple parameters, determining the first value of any one of the multiple parameters based on the value of any one of the multiple parameters in the multiple second API messages, wherein the first value is used to indicate the uncertainty (which can also be understood as a probability distribution) corresponding to the value of any one of the multiple parameters, and the set of candidate key parameters corresponding to any one of the API modes includes the parameters whose first values among the multiple parameters satisfy the first preset condition. The first value may be, for example, information entropy and / or a Gini coefficient. The first preset condition may be, for example, a critical condition for defining the uncertainty of a parameter determined based on experience or a preset rule.
[0010] In a possible implementation, for determining the key parameter set corresponding to any API mode based on the candidate key parameter set, in one case, the candidate key parameter set can be directly determined as the corresponding key parameter set; in another case, in order to be more flexible, the candidate key parameters in the candidate key parameter set can also be presented to the staff, and the staff obtains the corresponding key parameter set by confirming the candidate key parameters; in yet another case, the key parameter set corresponding to any API mode can also be determined based on the detection model corresponding to any API mode and the values of the key parameters in the candidate key parameter set in each second API message.
[0011] As an example, determining the key parameter set corresponding to any API mode based on the detection model and the values of the key parameters in the candidate key parameter set in each second API message may include: obtaining multiple first training samples, each of the multiple first training samples including the values of the key parameters in the candidate key parameter set in any second API message; obtaining the detection difference corresponding to any API mode based on the first training sample corresponding to the any API mode in the multiple first training samples and the detection model corresponding to the any API mode; if the detection difference meets the baseline value of the detection model corresponding to the any API mode, determining that the candidate key parameters corresponding to the any API mode are the key parameters in the key parameter set corresponding to the any API mode; if the detection difference does not meet the target difference of the detection model, updating the candidate parameter set corresponding to any API mode, and returning to execute the steps of obtaining multiple first training samples and subsequent steps.
[0012] In a possible implementation, the determining of the abnormality detection result of the first API message based on the first API mode and the first detection information may include, for example: obtaining a parameter configuration template corresponding to the first API mode, the parameter configuration template including a correspondence between any key parameter in the first key parameter set and a reference value range of any key parameter; and determining the abnormality detection result of the first API message based on the first detection information and the parameter configuration template. In this way, accurate abnormality detection of API messages can be achieved through a preset parameter configuration mode.
[0013] As an example, if an abnormality detection result is found to be wrong, for example, when a staff member checks the abnormality detection result displayed on the interface, it is found that the first API message is actually normal but the abnormality detection result indicates that the first API message is abnormal, or it is found that the first API message is actually abnormal but the abnormality detection result indicates that the first API message is normal, then the method may also include: updating the parameter configuration template corresponding to the first API mode. In this way, by checking whether there is an error in the abnormality detection result, the corresponding parameter configuration template is updated when the abnormality detection result is found to be wrong, thereby further improving the accuracy of abnormality detection.
[0014] In another possible implementation, determining the abnormality detection result of the first API message based on the first API mode and the first detection information may include, for example: obtaining a first detection model corresponding to the first API mode; inputting the first detection information into the first detection model, and determining the abnormality detection result of the first API message based on the output result of the first detection model. In this way, accurate abnormality detection of API messages can be achieved through the trained detection model.
[0015] As an example, if it is found that the anomaly detection result is erroneous, then the method may also include: updating the first detection model corresponding to the first API mode. For example, the updating of the first detection model may include: updating the key parameter set corresponding to the first API mode to the second key parameter set according to the error of the anomaly detection result; obtaining multiple second training samples, the multiple second training samples include the values of the key parameters in the second key parameter set in any third API message, and the third API message is the message corresponding to the first API mode in the second training sample; based on the second training samples corresponding to the first API model in the multiple second training samples, the first detection model is trained. In this way, by checking whether there is an error in the anomaly detection result, the corresponding detection model is updated when the anomaly detection result is found to be erroneous, thereby further improving the accuracy of anomaly detection.
[0016] In the second aspect, the present application also provides an anomaly detection method. The method can be performed, for example, by an analysis platform. The analysis platform can be a cloud-based big data platform, a cloud-based artificial intelligence (AI) training platform, an analyzer, or other platform that includes a deep learning training framework. The analysis platform obtains multiple first training samples, and trains a preset detection model based on the multiple first training samples to determine a first detection model corresponding to the first API mode. Each of the multiple first training samples includes the value of a key parameter in a first key parameter set corresponding to the first API mode in a first API message belonging to the first API mode, the first key parameter set includes multiple key parameters, and the first detection model is used to perform anomaly detection on API messages belonging to the first API mode.
[0017] In this solution, by pre-learning the multi-dimensional association of the parameters of the API message under each API mode, the key parameter set of the API message under each API mode is determined, and based on multiple training samples of each API mode and the key set of the corresponding API mode, the detection model of the corresponding API mode is trained, so that accurate anomaly detection of the first API message to be detected becomes possible. When performing anomaly detection on the first API message to be detected, the first key parameter set under the first API mode corresponding to the first API message can be quickly determined, so that the values of each key parameter in the first key parameter set in the first API message are input into the trained first detection model, and the anomaly detection result of the first API message is determined based on the output result of the first detection model, thereby achieving accurate and comprehensive anomaly detection of the API message and improving the security of the network.
[0018] In a possible implementation, the above description uses the training of the detection model of the first API mode as an example, and the training of the detection modes of other API modes is similar. The training process of the detection model of the second API mode may include, for example: obtaining multiple second training samples, each of the multiple second training samples includes the value of the key parameters in the second key parameter set corresponding to the second API mode in the API message belonging to the second API mode; based on the multiple second training samples, the preset detection model is trained to obtain the second detection model corresponding to the second API mode, and the second detection model is used to perform anomaly detection on the API message belonging to the second API mode. In this way, the method provided in the present application can be used to train the detection model of each API mode, and a detection model capable of performing anomaly detection on each API mode can be obtained, which is prepared for the anomaly detection provided in the present application.
[0019] In a possible implementation, the method may also include: obtaining multiple first verification samples, each of the multiple first verification samples includes the value of the key parameter in the first key parameter set corresponding to the first API mode in the second API message belonging to the first API mode; based on the multiple first verification samples and the first detection model, determining the first baseline value of the first detection model, the probability that the difference between the output result of each first verification sample in the multiple first verification samples after the first detection model and the corresponding first verification sample is less than or equal to the first baseline value satisfies the first preset condition, and the first baseline value is used to cooperate with the first detection model to perform anomaly detection on the API message belonging to the first API mode. Among them, the first preset condition can be, for example, that the probability is greater than or equal to a preset value (such as 95%). In this way, by determining the baseline value of the detection model based on the verification sample for the detection model trained with the training sample, preparations are made for the subsequent configuration of the detection model to determine the abnormal detection result of the API message.
[0020] In a possible implementation, the method may further include: obtaining a plurality of first test samples, each of the plurality of first test samples including the value of a key parameter in a first key parameter set corresponding to the first API mode in a third API message belonging to the first API mode; testing the first detection model based on the plurality of first test samples to determine a test result of the first detection model, and the probability that the difference between the output result of each first test sample in the plurality of first test samples after the first detection model and the corresponding first test sample is less than or equal to the first baseline value satisfies the first preset condition, then the test result indicates that the first detection model is qualified. In this way, by testing the detection model trained with the training sample to determine whether the detection model is qualified, a qualified detection model can be recommended to a computer device for anomaly detection, and further training or model optimization is performed on an unqualified detection model, so that the quality of the inspection model for user anomaly detection on the computer device is guaranteed.
[0021] In a possible implementation, the method may further include: obtaining a fourth API message belonging to the first API mode; determining an abnormal detection result of the fourth API message based on the first detection model, the first baseline value, and the values of the key parameters in the first key parameter set in the fourth API message. As an example, the method may further include: in response to determining that the abnormal detection result of the fourth API message is erroneous, updating the multiple first training samples and / or the first key parameter set, and retraining the first detection model. For relevant instructions on this implementation, please refer to the corresponding description of the first aspect.
[0022] In a possible implementation, the method may further include: acquiring the first key parameter set corresponding to the first API mode.
[0023] In another possible implementation, the method may further include: obtaining multiple fifth API messages corresponding to the first API mode; determining a set of candidate key parameters corresponding to the first API mode based on the values of multiple parameters of each fifth API message in the multiple fifth API messages, the uncertainty of the candidate key parameters in the candidate key parameter set meets a second preset condition; and determining the first key parameter set corresponding to the first API mode based on the candidate key parameter set.
[0024] As an example, determining the set of candidate key parameters corresponding to the first API mode based on the values of multiple parameters of each fifth API message in the multiple fifth API messages may include: obtaining the values of multiple parameters of each fifth API message; for any parameter among the multiple parameters, determining a first value of any parameter based on the value of any parameter in the multiple fifth API messages, the first value being used to indicate uncertainty corresponding to the value of any parameter, and the set of candidate key parameters corresponding to any API mode includes parameters among the multiple parameters whose first values satisfy the second preset condition.
[0025] As another example, the key parameter set corresponding to any one of the API modes is determined based on the candidate key parameter set. In one case, the candidate key parameter set can be directly determined as the corresponding key parameter set; in another case, in order to be more flexible, the candidate key parameters in the candidate key parameter set can also be presented to the staff, and the staff obtains the corresponding key parameter set by confirming the candidate key parameters; in yet another case, the key parameter set corresponding to any one of the API modes can also be determined based on the detection model corresponding to any one of the API modes and the values of the key parameters in the candidate key parameter set in each second API message. Among them, the key parameter set corresponding to any API mode is determined based on the detection model and the values of the key parameters in the candidate key parameter set in each fifth API message, for example, may include: obtaining multiple first training samples, each first training sample in the multiple first training samples includes the values of the key parameters in the candidate key parameter set in any fifth API message; based on the first training sample corresponding to the any API mode in the multiple first training samples and the detection model corresponding to the any API mode, obtaining the detection difference corresponding to the any API mode; if the detection difference meets the baseline value of the detection model corresponding to the any API mode, then, determining that the candidate key parameters corresponding to the any API mode are the key parameters in the key parameter set corresponding to the any API mode; if the detection difference does not meet the target difference of the detection model, then, updating the candidate parameter set corresponding to the any API mode, and returning to execute the steps of obtaining multiple first training samples and subsequent steps.
[0026] In a third aspect, the present application also provides an anomaly detection device, which may include: an acquisition unit and a determination unit. The acquisition unit is used to acquire a first key parameter set based on a first API mode of a first application program interface API message, wherein the first key parameter set includes multiple key parameters; the acquisition unit is also used to acquire first detection information of the first API message based on the first key parameter set, wherein the first detection information includes the value of each key parameter in the first key parameter set in the first API message; the determination unit is used to determine the anomaly detection result of the first API message based on the first API mode and the first detection information.
[0027] In a possible implementation, the acquisition unit is specifically used to acquire the first key parameter set based on the first API mode and an API key parameter library, wherein the API key parameter library includes at least one API mode and a key parameter set corresponding to each API mode in the at least one API mode.
[0028] As an example, the acquisition unit is further used to acquire, for any API mode among the at least one API mode, a set of key parameters corresponding to the any API mode.
[0029] As another example, for any API mode in the at least one API mode, the acquisition unit is further used to acquire multiple second API messages corresponding to the any API mode. The determination unit is further used to determine a set of candidate key parameters corresponding to the any API mode based on the values of multiple parameters of each second API message in the multiple second API messages, and the uncertainty of the candidate key parameters in the candidate key parameter set meets the first preset condition; and determine the set of key parameters corresponding to the any API mode based on the candidate key parameter set.
[0030] For example, the determination unit is specifically used to: obtain the values of multiple parameters of each second API message; for any parameter among the multiple parameters, based on the value of any parameter in the multiple second API messages, determine the first value of any parameter, the first value is used to indicate the uncertainty corresponding to the value of any parameter, and the candidate key parameter set corresponding to any API mode includes the parameters whose first values among the multiple parameters satisfy the first preset condition.
[0031] For example, the determination unit is specifically used to: determine the key parameter set corresponding to any API mode based on the detection model and the values of the key parameters in the candidate key parameter set in each second API message. Wherein, the determination unit is specifically used to: obtain multiple first training samples, each of the multiple first training samples includes the values of the key parameters in the candidate key parameter set in any second API message; based on the first training samples corresponding to the any API mode in the multiple first training samples and the detection model corresponding to the any API mode, obtain the detection difference corresponding to the any API mode; if the detection difference meets the baseline value of the detection model corresponding to the any API mode, then, determine that the candidate key parameters corresponding to the any API mode are the key parameters in the key parameter set corresponding to the any API mode.
[0032] In a possible implementation, the determination unit is specifically used to: obtain a parameter configuration template corresponding to the first API mode, the parameter configuration template including a correspondence between any key parameter in the first key parameter set and a benchmark value range of any key parameter; based on the first detection information and the parameter configuration template, determine the abnormal detection result of the first API message.
[0033] As an example, the device further includes an updating unit, and the updating unit is configured to update the parameter configuration template corresponding to the first API mode if an error occurs in the abnormality detection result.
[0034] In a possible implementation, the determination unit is specifically used to: obtain a first detection model corresponding to the first API mode; input the first detection information into the first detection model, and determine the abnormal detection result of the first API message based on the output result of the first detection model.
[0035] As an example, the device further includes an updating unit, and the updating unit is configured to update the first detection model if an error occurs in the abnormality detection result.
[0036] For example, the updating unit is specifically used to: update the key parameter set corresponding to the first API mode to a second key parameter set according to the error of the abnormal detection result; obtain multiple second training samples, the multiple second training samples include the values of the key parameters in the second key parameter set in any third API message, and the third API message is the message in the second training sample corresponding to the first API mode; train the first detection model based on the second training sample corresponding to the first API model in the multiple second training samples.
[0037] The device provided in the third aspect corresponds to the method provided in the first aspect. For the specific implementation method and the technical effects achieved, please refer to the relevant description of the first aspect.
[0038] In a fourth aspect, the present application also provides an anomaly detection device, which may include: an acquisition unit and a determination unit. The acquisition unit is used to acquire multiple first training samples, each of which includes the value of a key parameter in a first key parameter set corresponding to a first API mode in a first API message belonging to the first API mode, and the first key parameter set includes multiple key parameters; the determination unit is used to train a preset detection model based on the multiple first training samples, determine a first detection model corresponding to the first API mode, and the first detection model is used to perform anomaly detection on the API message belonging to the first API mode.
[0039] In one possible implementation, the acquisition unit is also used to acquire multiple first verification samples, each of the first verification samples includes the value of a key parameter in a first key parameter set corresponding to the first API mode in a second API message belonging to the first API mode; the determination unit is also used to determine a first baseline value of the first detection model based on the multiple first verification samples and the first detection model, and the probability that the difference between the output result of each first verification sample in the multiple first verification samples after the first detection model and the corresponding first verification sample is less than or equal to the first baseline value satisfies a first preset condition, and the first baseline value is used to cooperate with the first detection model to perform anomaly detection on the API message belonging to the first API mode.
[0040] In a possible implementation, the acquisition unit is also used to acquire multiple first test samples, each of the multiple first test samples includes the value of a key parameter in a first key parameter set corresponding to the first API mode in a third API message belonging to the first API mode; the determination unit is also used to test the first detection model based on the multiple first test samples to determine the test result of the first detection model, and if the probability that the difference between the output result of each first test sample in the multiple first test samples after the first detection model and the corresponding first test sample is less than or equal to the first baseline value satisfies the first preset condition, then the test result indicates that the first detection model is qualified.
[0041] In a possible implementation, the acquisition unit is also used to acquire a fourth API message belonging to the first API mode; the determination unit is also used to determine the abnormality detection result of the fourth API message based on the first detection model, the first baseline value and the values of the key parameters in the first key parameter set in the fourth API message.
[0042] In one possible implementation, the device may further include an updating unit, which is used to update the multiple first training samples and / or the first key parameter set and retrain the first detection model in response to determining that the abnormal detection result of the fourth API message is erroneous.
[0043] In a possible implementation, the acquisition unit is further used to acquire the first key parameter set corresponding to the first API mode.
[0044] In a possible implementation, the acquisition unit is also used to acquire multiple fifth API messages corresponding to the first API mode; the determination unit is also used to determine the candidate key parameter set corresponding to the first API mode based on the values of multiple parameters of each fifth API message in the multiple fifth API messages, and the uncertainty of the candidate key parameters in the candidate key parameter set meets the second preset condition; the determination unit is also used to determine the first key parameter set corresponding to the first API mode based on the candidate key parameter set.
[0045] As an example, when the determination unit executes the determination of the candidate key parameter set corresponding to the first API mode based on the values of multiple parameters of each fifth API message in the multiple fifth API messages, the determination unit is specifically used to: obtain the values of multiple parameters of each fifth API message; for any parameter among the multiple parameters, determine the first value of any parameter based on the value of any parameter in the multiple fifth API messages, the first value is used to indicate the uncertainty corresponding to the value of any parameter, and the candidate key parameter set corresponding to any API mode includes parameters among the multiple parameters whose first values satisfy the second preset condition.
[0046] The device provided in the fourth aspect corresponds to the method provided in the second aspect. For the specific implementation method and the technical effect achieved, please refer to the relevant description of the second aspect.
[0047] In the above scheme, the detection model may include, for example, an unsupervised autoencoder or a deep support vector data description (Deep Support Vector Data Description, Deep-SVDD) model.
[0048] In a fifth aspect, the present application further provides a computer device. The computer device includes a processor and a memory. The processor is used to execute instructions stored in the memory, so that the computer device performs the method provided by the first aspect or any possible implementation of the first aspect, or the method provided by the second aspect or any possible implementation of the second aspect.
[0049] In a sixth aspect, the present application further provides a computer-readable storage medium. The storage medium stores instructions, and when the instructions are executed on a processor, the method provided by the first aspect or any possible implementation of the first aspect is executed, or the method provided by the second aspect or any possible implementation of the second aspect is executed. The storage medium may be, for example, a computer-readable storage medium.
[0050] In a seventh aspect, the present application provides a program product, which, when running on a processor, executes the method provided by the first aspect or any possible implementation of the first aspect, or the method provided by the second aspect or any possible implementation of the second aspect. The program product may be, for example, a computer program product. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 A schematic diagram of an architecture structure of an applicable network scenario provided in an embodiment of the present application;
[0052] Figure 2 A flowchart of an anomaly detection method 100 provided in an embodiment of the present application;
[0053] Figure 3 A flowchart of another anomaly detection method 200 provided in an embodiment of the present application;
[0054] Figure 4 A schematic diagram of an unsupervised autoencoder provided in an embodiment of the present application;
[0055] Figure 5 A schematic diagram of a Deep-SVDD model provided in an embodiment of the present application;
[0056] Figure 6 A schematic diagram of the structure of an abnormality detection device 600 provided in an embodiment of the present application;
[0057] Figure 7 A schematic diagram of the structure of a communication device 700 provided in an embodiment of the present application;
[0058] Figure 8 A schematic diagram of the structure of another communication device 800 provided in an embodiment of the present application. DETAILED DESCRIPTION
[0059] With the continuous development of the Internet, users provide services through open APIs. While this method brings convenience, API security issues have also become an unavoidable problem with the development of API technology. An API request message or an API response message can be called an API message. An API message usually includes multiple parameters. Attackers can attack API messages by modifying one or some parameters in the API message to threaten API security. In order to overcome the risks caused by tampering with parameters in API messages, it is necessary to detect the parameters of API messages. However, due to the complexity and diversity of actual business, the types of parameters in API messages are diverse and constantly changing. Moreover, the legal value ranges of different types of parameters in API messages are also flexible. Only staff who are very familiar with business logic know the true meaning and legal value range of each parameter, which brings difficulties to the parameter detection of API messages. If only the value of a single-dimensional parameter in an API message is detected to see if it is abnormal, some attacks may be missed, resulting in incomplete and inaccurate API anomaly detection. For example, for a user who has activated membership (also known as VIP) rights for Application A, if the user needs to renew the membership of Application A, then the parameters of the user's API message for requesting renewal of the membership rights for Application A may include at least: whether the user is a member and whether there is a coupon for a 10 yuan discount. The rules for using the coupon for a 10 yuan discount are as follows: if the values of the above two parameters are both "yes", that is, the user is both a member and has a coupon for a 10 yuan discount, then the user can use the coupon for a 10 yuan discount when renewing the membership of Application A. Otherwise, the coupon for a 10 yuan discount is not available when the user needs to become a member of Application A. Without knowing the usage rules of the 10 yuan discount coupon, the attacker may maliciously modify the value of the parameter "whether there is a 10 yuan discount coupon" in the parameters of the API message used to request renewal of the membership rights of Application A to "yes". In this case, the API message is detected using a single-dimensional parameter detection method. The values of the single-dimensional parameters "whether there is a 10 yuan discount coupon" or "whether the user is a member" in the modified API message are normal, and the attack cannot be discovered. The attacker, who is not a member, has successfully used the 10 yuan discount coupon to activate membership of Application A.
[0060] Based on this, an embodiment of the present application provides an anomaly detection method. A device having the anomaly detection function provided by the embodiment of the present application, when obtaining the first API message to be detected, first, based on the first API mode corresponding to the first API message, obtains a first key parameter set, the first key parameter set including multiple key parameters; then, based on the first key parameter set, obtains the first detection information of the first API message, the first detection information including the value of each key parameter in the first key parameter set in the first API message; then, based on the first API mode and the first detection information, determines the anomaly detection result of the first API message. It can be seen that this scheme obtains a key parameter set based on the API mode of the API message, and detects the API message based on the value of each key parameter in the key parameter set in the API message, so that anomaly detection of the API message can be realized, providing network security. Furthermore, anomaly detection of the API message based on multiple key parameters can avoid the problem that the single-dimensional parameter cannot reflect the business logic, making the anomaly detection result more comprehensive and accurate.
[0061] Still taking the API message of the user renewing the membership of application A as an example, the key parameter set of the API mode corresponding to the API message in the embodiment of the present application may include two key parameters: "whether you are a member" and "whether there is a coupon for a 10 yuan discount", and the normal combination of the values of the above two key parameters includes: combination 1 (yes, yes), combination 2 (no, no) and combination 3 (yes, no). Without knowing the usage rules of the 10 yuan discount coupon, the attacker maliciously modifies the value of the parameter "whether there is a coupon for a 10 yuan discount" in the parameters of the API message used to request renewal of the membership rights of application A to "yes". The values of "whether you are a member" and "whether there is a coupon for a 10 yuan discount" in the API message are "no" and "yes", respectively. Then, the method provided in the embodiment of the present application is used to perform anomaly detection on the API message, and it is determined that the values of each key parameter in the key parameter set of the API message do not match the normal combination of key parameter values, thereby determining that the API message is abnormal. It can be seen that the anomaly detection method provided in the embodiment of the present application takes into account multiple key parameters in the API message that are associated with each other in business logic, and matches the values of multiple key parameters in the API message with the normal combination of the corresponding multiple key parameter values under the expected business logic. It is possible to comprehensively and accurately discover attacks, and the attacking user cannot implement the attack when he does not understand the business logic. For example, only changing the value of "Is there a coupon for a 10 yuan discount" to "Yes" does not allow the user to successfully use the coupon for a 10 yuan discount to activate membership of application A.
[0062] The following is an exemplary description of a possible architecture of a network scenario applicable to the method provided in the embodiment of the present application. Figure 1The network scenario may include: a device 100 and an analysis platform 200, wherein the device 100 may be a device capable of collecting and parsing API messages, and the device 100 may be, for example, a gateway (such as an API gateway), a controller, a firewall, a probe, etc.; the analysis platform 200 may be a platform including a deep learning training framework, and the analysis platform 200 may include any one or more of an analysis device, a management device, or a control device, and the analysis platform 200 may be, for example, a cloud big data platform, a cloud artificial intelligence (AI) training platform, an analyzer, etc.
[0063] Combination Figure 1 , the overall implementation process of the embodiment of the present application is introduced: before the device 100 performs anomaly detection on the API message to be detected, on the one hand, the device 100 can obtain the key parameter set corresponding to each API mode from the analysis platform 200, and the device 100 can save the obtained key parameter set corresponding to each API mode in the API key parameter library 110; on the other hand, the device 100 can also obtain the parameter configuration template or detection model corresponding to each API mode from the analysis platform 200, and the device 100 can save the obtained parameter configuration template or detection model corresponding to each API mode in the anomaly detection module 120. In addition, the device 100 can also include a parsing module 130, which is used to parse the collected original API message or the flow log of the original API message to obtain the "API message" mentioned in this article. It should be noted that the API message in the embodiment of the present application can refer to the original API message or the flow log of the original API message received or generated by the device 100, or it can also refer to the information obtained after parsing the "original API message" and other processing, as shown in Table 1 below.
[0064] The abnormality detection process of the device 100 for the API message 1 to be detected may include: S11, determining the key parameter set 1 corresponding to the API mode 1 to which the API message 1 belongs from the API key parameter library 110; S12, obtaining the values of each key parameter in the key parameter set 1 from the API message 1, recorded as the detection information 1 corresponding to the API message 1; S13, determining the parameter configuration template 1 or detection model 1 corresponding to the API mode 1 to which the API message 1 belongs from the abnormality detection module 120. It should be noted that the execution order of S13 and S11 to S12 is not limited in the embodiment of the present application. If the parameter configuration template 1 is determined in S13, then after the above steps, it may also include: S14, judging whether the detection information 1 matches the parameter configuration template 1, and determining the abnormality detection result 1 of the API message 1 based on the matching result. If the detection model 1 is determined in S13, then after the above steps, it may also include: S14, inputting the detection information 1 into the detection model 1, and determining the abnormality detection result 1 of the API message 1 based on the output result of the detection model 1. For relevant descriptions of the parameter configuration template and the detection model, please refer to the corresponding description in the following embodiments.
[0065] The analysis platform 200 may include, for example: a key parameter determination module 210 and a training module 220. For the description of the functions and acquisition methods of each part of the analysis platform 200, please refer to the following description.
[0066] The key parameter set corresponding to each API mode sent by the analysis platform 200 to the device 100, as a first example, can be obtained by the analysis platform 200 from the configuration information, and the configuration information can be entered by the staff on the configuration interface 300 connected to the analysis platform 200, and the staff can be, for example, an operation and maintenance personnel familiar with the API business. As a second example, it can also be obtained by the analysis platform 200 from the key parameter determination module 210. In one case of the second example, the key parameter determination module 210 can directly calculate the key parameter set corresponding to each API mode based on the values of the parameters in the multiple training API messages corresponding to each API mode. In another case of the second example, the key parameter determination module 210 calculates the candidate key parameter set corresponding to each API mode based on the values of the parameters in the multiple training API messages corresponding to each API mode, and then displays the candidate key parameter set corresponding to each API mode on the configuration interface 300. The staff confirms the key parameter set corresponding to each API mode based on the candidate key parameter set of each API mode on the configuration interface 300, so that the key parameter determination module 210 obtains the key parameter set corresponding to each API mode that is finally confirmed by the staff from the configuration interface 300. In another case of the second example, the key parameter determination module 210 calculates a candidate key parameter set corresponding to each API mode based on the parameter values in multiple training API messages corresponding to each API mode, and then inputs the value of each candidate key parameter in the candidate key parameter set of the training API message corresponding to each API mode into the trained detection model corresponding to the API mode. Thus, the key parameter determination module 210 determines whether the selection of the candidate key parameter set for each API mode is reasonable based on the output result of the detection model corresponding to each API mode. If the selection of the candidate key parameter set for an API mode is determined to be reasonable based on the output result of the detection model corresponding to an API mode, then the candidate key parameter set for the API mode is recorded as the key parameter set corresponding to the API mode; if the selection of the candidate key parameter set for an API mode is determined to be unreasonable based on the output result of the detection model corresponding to an API mode, then the process is re-executed for the API mode until the key parameter set for the API mode is determined, wherein, when the process is re-executed, the multiple training API messages corresponding to the API mode may be updated, or the calculation method for calculating the candidate key parameter set corresponding to the API mode may also be updated. It should be noted that for the relevant description of the key parameter sets corresponding to each API mode, please refer to the corresponding description in the following embodiments.
[0067] The parameter configuration template or detection model corresponding to each API mode sent by the analysis platform 200 to the device 100, as a first example, can be obtained by the analysis platform 200 from the configuration information, and the configuration information can be entered by the staff on the configuration interface 300 connected to the analysis platform 200, and the staff can be, for example, an operation and maintenance personnel familiar with the API business. As a second example, it can be obtained by the training module 220 in the analysis platform 200. In one case of the second example, the training module 220 can determine the parameter configuration template corresponding to each API mode based on the analysis of multiple training API messages for each API mode; in another case of the second example, the training module 220 can use the values of each key parameter in the key parameter set corresponding to the API mode in the multiple training API messages corresponding to each API mode as training samples, train the initial model corresponding to the API mode, and obtain the detection model corresponding to the API mode. It should be noted that for the relevant description of the parameter configuration template or detection model corresponding to each API mode, please refer to the corresponding description in the following embodiments.
[0068] It should be noted that the above Figure 1 The network scenario shown only takes the separate deployment of the analysis platform 200 and the device 100 as an example to illustrate the network scenario applicable to the embodiment of the present application, and the key parameter determination module 210 and the training model 220 that require powerful processing capabilities are implemented on the analysis platform 200, which alleviates the processing pressure of the device 100 to a certain extent. In other implementations, the analysis platform 200 can be integrated into the device 100 according to other actual needs, or some functions in the analysis platform 200 can be migrated to the device 100 for implementation, or some functions in the device 100 can be migrated to the analysis platform 200 for implementation. For example, in order to further alleviate the storage pressure of the device 100, when the API message to be detected is determined, the key parameter set corresponding to the API model to which the API message belongs can be loaded from the analysis platform 200, as well as the parameter configuration template or detection model corresponding to the API model to which the API message belongs.
[0069] The method provided in the embodiments of the present application is described below with reference to the accompanying drawings.
[0070] Figure 2 The flowchart of an abnormality detection method 100 provided in the embodiment of the present application is shown below. The execution subject of the method 100 is not shown below. The execution subject of the method 100 can be any device having the function of the method 100 provided in the embodiment of the present application, for example, the above-mentioned Figure 1 The device 100 in FIG. Figure 2 As shown, the method 100 may include, for example, the following S101 to S103.
[0071] S101, based on a first API mode of a first API message, obtain a first key parameter set, where the first key parameter set includes multiple key parameters.
[0072] The first API message is an API message to be detected. Based on different protocol types, the protocol type corresponding to the first API message may include: Hyper Text Transfer Protocol (HTTP) or File Transfer Protocol (FTP), etc. The following description is made by taking the API message as an HTTP message as an example.
[0073] As an example, before S101, the method 100 may also include: filtering Internet traffic and collecting original API messages by configuring the Internet address (Internet Protocol, IP), port and protocol type of the API server; parsing each original API message, and extracting relevant fields including the Uniform Resource Locator (Uniform Resource Locator, URL) and the request body (body) part, and mining all parameters of the original API message and the value of each parameter. Since the anomaly detection in the embodiment of the present application focuses on the parameters related to the business logic in the API message, parsing the original API message, for example, can be parsing the application layer content of the original API message. The application layer content of the original API message may include: URL field and body part. Among them, the URL field may include: protocol (scheme), host (host), path (path) and query (query), the content of scheme indicates the protocol adopted by the original API message, the content of host and path indicates the API pattern (API pattern) corresponding to the original API message, and the content of query indicates some parameters of the API message and the values of the parameters. For example, query may include the following parameters: user serial number (userNo), page size (PageSize), count (Count) and user name (username); the body part may include the following parameters: user login identification (id), whether it is an administrator (Is_admin), role (role), user type (User_type) and performed action (ops).
[0074] For example, assuming that the original API message corresponding to the first API message can be expressed as:
[0075] API URL: http: / / www.test.com / login / index.html? userNo=aa&PageSize=10&Count=1000&username=bb
[0076] API body: {"id":"5deb09097","Is_admin":True,"role":"client","User_type":0,"ops":delete}
[0077] For the original API message, the scheme is http, the host corresponds to www.test.com, the path corresponds to login / index.html, and the query is userNo=aa&PageSize=10&Count=1000&username=bb. Based on the parsing and field extraction of the original API message, the mode of the first API message and the parameters and parameter values included in the first API message can be shown in Table 1 below:
[0078] Table 1
[0079]
[0080] It should be noted that, since each API message includes different parameter types, it is necessary to extract the API mode of the API message as the key to the index key parameter set, parameter configuration template or detection model. Because the business functions of each API interface are different, the parameters contained in each API interface are also different. Using API modes to represent different types of API interfaces facilitates the distinction of the parameters contained in each API. For example, the API mode can be composed of the host and path in the URL field.
[0081] In some implementations, before S101, the execution subject of the method 100 may maintain the key parameter set corresponding to each API mode to provide a data basis for the execution of S101. Among them, the way to maintain the key parameter set corresponding to each API mode may be an API key parameter library, that is, the key parameter set corresponding to each API mode is saved in the API key parameter library, and the key parameter set corresponding to each API mode includes at least two key parameters. Then, S101 may, for example, include: obtaining a first key parameter set matching the first API mode from the API key parameter library. For example, the API key parameter library includes: API mode 1-key parameter set 1 {key parameter 11 and key parameter 12}, API mode 2-key parameter set 2 {key parameter 21, key parameter 22 and key parameter 23}, ..., API mode n-key parameter set n {key parameter n1, key parameter n2, ..., key parameter nm}, wherein n and m are both integers greater than 1. If the first API mode of the first API message in S101 corresponds to API mode 2, then the first key parameter set is key parameter set 2, and the multiple key parameters included in the first key parameter set are: key parameter 21, key parameter 22 and key parameter 23.
[0082] Methods for obtaining the key parameter set corresponding to each API mode maintained in the API key parameter library include but are not limited to the following possible implementation methods.
[0083] Method 1: Based on the key parameter sets corresponding to each API mode configured by the staff, an API key parameter library is obtained, wherein the API key parameter library includes the key parameter sets corresponding to each configured API mode. The staff may be, for example, an operation and maintenance staff familiar with the API business.
[0084] Method 2: The first step is to calculate the candidate key parameter set corresponding to each API mode, and the second step is to determine the key parameter set corresponding to the API mode based on the candidate key parameter set of each API mode.
[0085] For the implementation of the first step of the second method, taking any API mode in each API mode as an example, it can include: S21, obtaining multiple second API messages corresponding to any API mode; S22, based on the values of multiple parameters of each second API message in the multiple second API messages, determining the candidate key parameter set corresponding to any API mode, and the uncertainty of the candidate key parameters in the candidate key parameter set meets the first preset condition. Before S21, the collected multiple original API messages can be parsed and field extracted to obtain the second API message corresponding to each original API message. The second API message can be maintained in a parameter value sample library, and each second API message in the parameter value sample library corresponds to a data in the form of Table 1, or each second API message in the parameter value sample library can also correspond to a part of the parameters in the data in the form of Table 1 and the corresponding values of the parameters. The parameters reflected in the parameter value sample library can be extracted according to the needs of all parameters. Part of the parameters that are more concerned (such as more closely related to the business) are extracted. Then, S21 can include: for the multiple second API messages in the parameter value sample library, the multiple second API messages belonging to the same API mode are divided into a group. Taking the arbitrary API mode in S21 as www.test.com / login / index.html as an example, the plurality of second API messages corresponding to the arbitrary API mode may be as shown in the following Table 2:
[0086] Table 2
[0087] API pattern userNo PageSize Count username Is_admin www.test.com / login / index.html aa 10 1000 bb True www.test.com / login / index.html cc 10 500 dd False www.test.com / login / index.html ee 10 1000 ff False
[0088] For S22, for example, it may include: extracting the values of multiple parameters of each second API message; for any parameter among the multiple parameters, based on the value of any parameter in the multiple second API messages, calculating the first value of any parameter, the first value is used to indicate the uncertainty of the corresponding value of any parameter, and the candidate key parameter set corresponding to any API mode includes the parameter whose first value meets the first preset condition among the multiple parameters. Among them, the uncertainty of the parameter can be understood as the probability distribution of the value of the parameter, or the stability of the value of the parameter. The first value may include at least one of the following: information entropy or Gini coefficient. It can be understood that among the parameters of the API message, some parameters have relatively random values, such as the values of parameters such as session identifiers and temporary user names, which may be filled by random coding, and the analytical statistical significance of such parameters is relatively weak; while some parameters have relatively fixed values, such as the values of parameters such as the number of returned pages and the amount of page data, which have strong regularity, and the analytical statistical significance of such parameters is relatively strong. The strength of "analytical statistical significance" can be determined according to actual needs. For example, in the embodiment of the present application, it is necessary to select multiple parameters with relatively stable values as a set of key parameters. Therefore, the first preset condition can be the first value of the parameter that can identify the parameter's value regularity and has analytical statistical significance. Parameters that meet the first preset condition can be considered to have strong analytical statistical significance or have analytical statistical significance, while parameters that do not meet the first preset condition can be considered to have weak analytical statistical significance or have no analytical statistical significance.
[0089] Taking the multiple second API messages corresponding to the API mode shown in Table 2 as an example, the implementation of S22 is exemplified. If the first value is information entropy, then the first values of the five parameters userNo, PageSize, Count, username and Is_admin in Table 2 can be calculated based on the following formula (1):
[0090]
[0091] In formula (1), n is the number of second API messages belonging to the API mode. For the API mode shown in Table 2, n=3; p i is the value of the parameter in the second API message of the ith API mode. For example, when the first value of Count is calculated based on formula (1), H Count=-(1000log21000+500log2500+1000log21000). It should be noted that the data type of the parameter value may include numeric type and character type. For the parameter whose value is character type, the character value may be converted into a numeric value by mapping encoding. For example, the value False of Is_admin is mapped to 0 and True is mapped to 1. Information entropy is usually used to measure the uncertainty of a parameter value. The more random the parameter value is, the greater the information entropy of the parameter is. The first preset condition may be less than the first threshold value. Then, the candidate key parameter set for determining the API mode may be: H calculated based on formula (1) userNo , H PageSize , H Count , H username and H Is_admin The parameters that are smaller than the first threshold are recorded into the candidate key parameter set corresponding to the API mode. The first threshold can be set by the staff based on experience; or the first threshold can also be determined according to a certain rule based on the information entropy of multiple parameters obtained by calculation, for example, the information entropy of the parameters obtained by calculation is arranged from small to large or from large to small, and the median of the rearranged information entropy is taken as the first threshold.
[0092] If the first value is the Gini coefficient, then the first values of the five parameters userNo, PageSize, Count, username and Is_admin in Table 2 can be calculated based on the following formula (2):
[0093]
[0094] In formula (1), k is the number of second API messages belonging to the API mode. For the API mode shown in Table 2, k=3; p i is the value of the parameter in the second API message of the ith API mode. For example, when the first value of Count is calculated based on formula (2), G Count =1-(1000 2 +500 2 +1000 2 ). The Gini coefficient is usually used to measure the uncertainty of a parameter value. The more random the parameter value is, the larger the Gini coefficient of the parameter is. Therefore, it is necessary to select a parameter with a smaller Gini coefficient as a candidate key parameter. Then, the first preset condition may be less than the second threshold. Then, the candidate key parameter set for determining the API mode may be: G calculated based on formula (2) userNo , G PageSize , G Count , G username and G Is_adminThe parameters that are less than the second threshold are recorded in the candidate key parameter set corresponding to the API mode. The second threshold can be set by the staff based on experience; or the second threshold can be determined according to a certain rule based on the Gini coefficients of the multiple parameters obtained by calculation, for example, the Gini coefficients of the parameters obtained by calculation are arranged from small to large or from large to small, and the median of the rearranged Gini coefficients is taken as the first threshold.
[0095] If the first value of the parameter includes the Gini coefficient of the parameter and the information entropy of the parameter, then the first preset condition may include: the information entropy in the first value is less than a third threshold and the Gini coefficient in the first value is less than a fourth threshold. When the information entropy of the parameter is less than the third threshold and the Gini coefficient of the parameter is less than the fourth threshold, the first value of the parameter is considered to meet the first preset condition.
[0096] If the first value of the parameter is calculated based on the Gini coefficient of the parameter and the information entropy of the parameter, for example, weights are preset for the information entropy and the Gini coefficient, and the Gini coefficient of the parameter and the information entropy of the parameter are weighted (or weighted averaged) to obtain the first value of the parameter, then the first preset condition may include: the first value is less than the fifth threshold.
[0097] It should be noted that the first threshold, the second threshold, the third threshold, the fourth threshold and the fifth threshold in the above-mentioned first preset condition may be the same or different, and may be flexibly set based on the requirements in each solution.
[0098] It should be noted that the data type of the parameter value can include numeric type and character type. For parameters with character values, mapping encoding can be used to convert the character value into a numeric value. For example, the value False of Is_admin is mapped to 0, and True is mapped to 1, and then the first value of the parameter is calculated based on the above method.
[0099] For the implementation of the second step of the second method, after determining the candidate key parameter sets corresponding to each API mode, as an example, the candidate key parameter sets determined in the first step can be directly recorded as the key parameter sets corresponding to the API mode. As another example, the candidate key parameter sets determined in the first step can be recorded through an interface (such as Figure 1The configuration interface 300 in the configuration interface 300 is displayed to the staff, who confirms the parameters of the candidate key parameter set according to the actual situation (for example, it may include selecting parameters in the candidate key parameter set, adding parameters to the candidate key parameter set, or deleting parameters from the candidate key parameter set), and the staff's confirmation result of the candidate key parameter set is recorded as the key parameter set of the corresponding API mode. As another example, the candidate key parameter set of the API mode can also be verified based on the detection model corresponding to the API mode. If the verification passes, the candidate key parameter set corresponding to the API mode is used as the key parameter set of the API mode. If the verification fails, the first step of method two and the second step of implementing method two in this example are re-executed until the verification passes. Alternatively, the candidate key parameter set can also be manually adjusted according to the verification result, and the result of the manual adjustment of the candidate key parameter set is recorded as the key parameter set of the corresponding API mode.
[0100] Among them, verifying the candidate key parameter set of the API mode based on the detection model corresponding to the API mode can include: for any API mode, based on the detection model of any API mode and the values of key parameters in the candidate key parameter set corresponding to any API mode in each second API message of any API mode, determining the key parameter set corresponding to any API mode. For example, the process of verifying a candidate key parameter set based on a detection model and determining a key parameter set corresponding to an API mode may include: S31, obtaining a plurality of first training samples, each of the plurality of first training samples including the value of a key parameter in the candidate key parameter set in any second API message; S32, obtaining a detection difference corresponding to any API mode based on a first training sample corresponding to any API mode in the plurality of first training samples and a detection model corresponding to any API mode; S33, if the detection difference meets the baseline value of the detection model corresponding to any API mode, then determining that the candidate key parameter corresponding to any API mode is a key parameter in the key parameter set corresponding to any API mode; S34, if the detection difference does not meet the baseline value of the detection model corresponding to any API mode, then updating the candidate key parameter set corresponding to any API mode, and returning to execute S31 to S34 until a key parameter set for each API mode is obtained. The detection difference may refer to the difference between the input content and the output result of the detection model. For a detailed description of the detection difference, see the following Figure 3 Related description of the illustrated embodiment.
[0101] It should be noted that after determining the key parameter set of a certain API mode, you can check in the API key parameter library whether a key parameter set corresponding to the API mode already exists. If so, use the latest determined key parameter set to determine the existing key parameter set to ensure that each API mode has only one more reasonable key parameter set corresponding to it.
[0102] It can be seen that through the above method, the key parameter set of each API mode can be obtained, so that preparations are made for the execution of S101 and subsequent steps.
[0103] Assuming that the first API mode is www.test.com / login / index.html, and the API key parameter library includes the records shown in Table 3 below, then the first key parameter set obtained based on S101 can be expressed as: {PageSize, Count, Is_admin}.
[0104] Table 3
[0105] API pattern Key parameter set www.test.com / login / index.html {PageSize, Count, Is_admin}
[0106] S102: Obtain first detection information of the first API message based on the first key parameter set, where the first detection information includes a value of each key parameter in the first key parameter set in the first API message.
[0107] As an example, S102 may include: extracting the value of each key parameter in the first key parameter set in the first API message to obtain the first detection information of the first API message. Taking the first API mode as www.test.com / login / index.html, the first key parameter set as {PageSize, Count, Is_admin}, and the parameters and the corresponding values of the parameters included in the first API message as: userNo=xx, PageSize=10, Count=800, username=yy and Is_admin=True as an example, the first detection information can be expressed as {PageSize=10, Count=800, Is_admin=True}, or, if the parameters of each input position in the input data of the parameter configuration template or the detection model are known and fixed, then the first detection information can also be expressed as {10, 800, True}.
[0108] S103: Determine an abnormality detection result of the first API message based on the first API mode and the first detection information.
[0109] In a first possible implementation, S103 can be implemented with the aid of a preset parameter configuration template corresponding to the first API mode. In this implementation, before S103, the parameter configuration templates corresponding to each API mode can be maintained in advance, and the parameter configuration template corresponding to any API mode can include: the correspondence between any key parameter in the key parameter set corresponding to any API mode and the benchmark value range of any key parameter, wherein the benchmark value range of any key parameter can be determined based on the value and / or experience of any key parameter in multiple second API messages under the API mode.
[0110] As an example, S103 may include: obtaining a parameter configuration template corresponding to the first API mode, the parameter configuration template including a correspondence between any key parameter in the first key parameter set and a reference value range of any key parameter; determining an abnormality detection result of the first API message based on the first detection information and the parameter configuration template. If the value of any key parameter in the first detection information does not match the corresponding reference value range in the parameter configuration template, then the abnormality detection result of the first API message can be determined to be abnormal, and only if the values of all key parameters in the first detection information match the corresponding reference value range in the parameter configuration template can the abnormality detection result of the first API message be determined to be normal. When determining that the first API message is abnormal, the abnormality detection result of the first API message may also include the cause of the abnormality, for example, the abnormality detection result of the first API message may include a key parameter that does not match the reference value range and the value of the key parameter in the first API message.
[0111] For example, for the API mode shown in Table 3, the parameter configuration template corresponding to the API mode can be expressed as: {PageSize∈(8,15), Count∈(300,1200), Is_admin=True}. If the first detection information is {10, 800, True}, since the values of the key parameters of the first API message indicated in the first detection information all match the corresponding reference value range in the parameter configuration template, the abnormal detection result of the first API message indicates that the first API message is normal. If the first detection information is {9, 10000, True}, since the value of Count in the values of the key parameters of the first API message indicated by the first detection information does not match the corresponding reference value range in the parameter configuration template, the abnormal detection result of the first API message indicates that the first API message is abnormal; in addition, the abnormal detection result of the first API message can also indicate the cause of the abnormality, for example, the abnormal detection result of the first API message can be expressed as: {abnormal, Count=10000}.
[0112] After S103, the method 100 may further include: abnormal detection result confirmation and abnormal blocking operations. The abnormal detection result confirmation can be understood as the confirmation of whether the abnormal detection result output by the parameter configuration template is accurate. For example, the abnormal detection result can be displayed on the interface (such as Figure 1 The configuration interface 300 shown in FIG. Figure 1 The abnormal detection result can be displayed on any display interface connected to the device 100 in the middle), and the staff can view the abnormal detection result on the interface and confirm whether the abnormal detection result is wrong through experience or other means. Abnormal blocking can be understood as blocking the first API message when the staff determines on the interface that the abnormal detection result indicates that the first API message is abnormal, so as to protect the network from attack as much as possible and improve network security.
[0113] As an example, if it is found that the abnormality detection result is wrong, for example, the staff checks the abnormality detection result displayed on the interface and finds that the first API message is actually normal but the abnormality detection result indicates that the first API message is abnormal, or finds that the first API message is actually abnormal but the abnormality detection result indicates that the first API message is normal, then the method 100 may also include: updating the parameter configuration template corresponding to the first API mode. Wherein, updating the parameter configuration template corresponding to the first API mode, for example, can perform corresponding updates based on the error analysis result of the abnormality detection result of the first API message, and the updating method may include: updating the first key parameter set corresponding to the first API mode, and / or updating the reference value range corresponding to all or part of the key parameters in the parameter configuration template corresponding to the first API mode.
[0114] In a second possible implementation, S103 can be implemented with the aid of a first detection model that has been trained and corresponds to the first API mode. In this implementation, before S103, a detection model corresponding to each API mode can be obtained in advance. The detection model can include, for example, an unsupervised autoencoder or a deep support vector data description (Deep Support Vector Data Description, Deep-SVDD) model. For the specific implementation of the detection model and the training process of the model under each specific implementation, please refer to the following Figure 3 The embodiment shown.
[0115] As an example, S103 may include: obtaining a first detection model corresponding to the first API mode; inputting the first detection information into the first detection model, and determining the abnormal detection result of the first API message based on the output result of the first detection model. Taking the first detection model including an unsupervised autoencoder as an example, in one case, if the first detection model only includes an unsupervised autoencoder, then determining the abnormal detection result of the first API message based on the output result of the first detection model in S103 may include: calculating the difference between the output result and the first detection information, comparing whether the difference is less than or equal to the first baseline value of the first detection model, and if so, determining that the abnormal detection result of the first API message is normal; otherwise, determining that the abnormal detection result of the first API message is abnormal. In another case, if the first detection model includes an unsupervised autoencoder and a computing module, then the output result of the first detection model in S103 may be the difference between the first detection information calculated by the computing module and the output result of the unsupervised autoencoder, and determining the abnormal detection result of the first API message based on the output result of the first detection model in S103 may include: comparing whether the difference is less than or equal to the first baseline value of the first detection model; if so, determining that the abnormal detection result of the first API message is normal; otherwise, determining that the abnormal detection result of the first API message is abnormal. In another case, if the first detection model includes an unsupervised autoencoder, a calculation module and a comparison module, then the output result of the first detection model in S103 may be the comparison result of the difference between the first detection information and the output result of the unsupervised autoencoder calculated by the calculation module, and the comparison module comparing the difference with the first baseline value of the first detection model; determining the abnormal detection result of the first API message based on the output result of the first detection model in S103 may include: if the output result indicates that the difference is less than or equal to the first baseline value of the first detection model, then determining that the abnormal detection result of the first API message is normal; otherwise, determining that the abnormal detection result of the first API message is abnormal. Among them, the first baseline value is a value determined when training the first detection model and is used in conjunction with the first detection model to perform abnormality detection. The specific determination method can be found in Figure 3 Related description of the illustrated embodiment.
[0116] For example, taking the case where the first detection model only includes the unsupervised autoencoder, the detection model corresponding to the first API mode is the unsupervised autoencoder 1, and the first baseline value corresponding to the unsupervised autoencoder 1 is 5%. If the first detection information is A, A is input into the unsupervised autoencoder 1, and the output result of the unsupervised autoencoder 1 is B, then the abnormal detection result of the first API message can be determined by judging whether the difference between A and B is less than or equal to 5%. If the judgment result is yes, then it is determined that the abnormal detection result of the first API message indicates that the first API message is normal. If the judgment result is no, then the abnormal detection result of the first API message indicates that the first API message is abnormal. Among them, the difference between A and B can be understood as the proportion of the difference between B and A to the information of A itself after the unsupervised autoencoder 1 compresses A and then restores it to B.
[0117] After S103, the method 100 may further include operations such as abnormality detection result confirmation and abnormality blocking.
[0118] As an example, if an error is found in the anomaly detection result, for example, the staff checks the displayed anomaly detection result on the interface and finds that the first API message is actually normal but the anomaly detection result indicates that the first API message is abnormal, or finds that the first API message is actually abnormal but the anomaly detection result indicates that the first API message is normal, then the method 100 may also include: updating the first detection model. Wherein, updating the first detection model may include: updating the key parameter set corresponding to the first API mode to the second key parameter set according to the error of the anomaly detection result; obtaining multiple second training samples, the multiple second training samples include the values of the key parameters in the second key parameter set in any third API message, and the third API message is the message corresponding to the first API mode in the second training sample; based on the second training sample corresponding to the first API model in the multiple second training samples, the first detection model is trained. In this way, on the one hand, by updating the samples participating in the training, the problem of inaccurate anomaly detection results determined based on the first detection model due to insufficient training samples can be overcome. On the other hand, by updating the key parameters in the key parameter set, the problem of inaccurate anomaly detection results determined based on the first detection model due to unreasonable selection of key parameters can be overcome.
[0119] It should be noted that the method of updating the detection model may also include: updating only the samples involved in the training or updating only the key parameter set. The above example is introduced by taking the updating of both the samples involved in the training and the key parameter set as an example.
[0120] It can be seen that in the method 100, by pre-learning the multi-dimensional association of the parameters of the API messages under each API mode, the key parameter set of the API messages under each API mode is determined. When performing anomaly detection on the first API message to be detected, the first key parameter set under the first API mode corresponding to the first API message can be quickly determined, thereby determining whether the values of each key parameter in the first key parameter set in the first API message conform to the expected business logic of the first API message, for example, determining whether the values of each key parameter in the first key parameter set in the first API message satisfy the normal combination of the values of each key parameter in the first key parameter set, and determining the anomaly detection result of the first API message. In this way, accurate and comprehensive anomaly detection of API messages is achieved, thereby improving the security of the network.
[0121] Figure 3 1 is a flow chart of an anomaly detection method 200 provided in an embodiment of the present application. The method 200 takes the first detection model of the first API model as an example to illustrate the method of training a detection model corresponding to any API mode. The method 200 can be, for example, Figure 1 The training module 220 in the analysis platform 200 is executed. Figure 3 As shown, the method 200 may include, for example, the following S201 to S202.
[0122] S201, obtaining multiple first training samples, each of the multiple first training samples includes values of key parameters in a first key parameter set corresponding to a first API mode in a first API message belonging to the first API mode, and the first key parameter set includes multiple key parameters.
[0123] Before S201, the key parameter sets corresponding to the API modes that need to be maintained and the method for obtaining the key parameter sets corresponding to the API modes can refer to the relevant description of S101.
[0124] Before S201, it is also necessary to collect multiple API messages, parse and extract fields for each API message in the multiple API messages, obtain a parameter value sample corresponding to the API message, and maintain the parameter value samples corresponding to the multiple API messages in a parameter value sample library. Each parameter value sample in the parameter value sample library can be shown in Table 1 above, for example.
[0125] As an example, S201 may include: S41, obtaining multiple parameter value samples corresponding to the first API mode from the parameter value sample library, each parameter value sample corresponding to a first API message; S42, obtaining a first key parameter set corresponding to the first API mode; S43, for any parameter value sample among the multiple parameter value samples obtained in S41, extracting the value of each key parameter in the first key parameter set in any parameter value sample as a first training sample in S201. It should be noted that there is no order restriction for the execution of S41 and S42.
[0126] In some implementations, after S201, the obtained plurality of first training samples may be maintained in a training sample library.
[0127] The first API mode is www.test.com / login / index.html, S41 obtains 3 parameter value samples as shown in Table 3 (which can also be understood as 3 first API messages), and S42 obtains the first key parameter set as {PageSize, Count, Is_admin}. Then, after S43, 3 first training samples are obtained: {10, 1000, True}, {10, 500, False} and {10, 1000, False}. If these 3 first training samples are maintained in the training sample set, the training sample set may include, for example, the following parts shown in Table 4:
[0128]
[0129] S202: Train a preset detection model based on the multiple first training samples to obtain a first detection model corresponding to the first API mode, where the first detection model is used to perform anomaly detection on API messages belonging to the first API mode.
[0130] If the collected training samples meet the start conditions of training, the preset detection model can be trained according to the API mode to obtain a detection model corresponding to each API mode that can be used in the anomaly detection method provided in the embodiment of the present application. In the embodiment of the present application, the first detection model corresponding to the first API mode is obtained as an example for introduction. The training process of the detection models corresponding to other API modes can refer to the implementation of S202.
[0131] For example, the start condition of training may include: the collection time of training samples reaches a preset time (such as 1 week), or the number of training samples in the API mode reaches a preset number (such as 1000).
[0132] The preset detection model may be a neural network model.
[0133] In some possible implementations, the preset detection model may include an unsupervised autoencoder, which can be understood as a neural network that uses a back propagation algorithm to make the output value as close to the input value as possible. Figure 4 As shown, the unsupervised autoencoder may include two parts: an encoder 401 and a decoder 402. The encoder 401 compresses the input X1 into a potential space annotation Z (also referred to as a hidden code), and the learning process is the process of the encoder 401 performing dimensionality reduction encoding on X1; the decoder 402 reconstructs Z to output X2, and the reconstruction process is the process of the decoder 402 performing dimensionality increase decoding on Z. X1 can be expressed as [x11, x12, ..., x1n], and X2 can be expressed as [x21, x22, ..., x2n], where n is an integer greater than 1, and the value of n is consistent with the number of key parameters included in the first key parameter set, x1i is the value of the i-th key parameter in the first key parameter set in the first API message, i = 1, 2, ..., n, and x2i is the restoration result of the unsupervised autoencoder for X1i. Taking the first training sample in Table 4 as an example, X1 may be [x11, x12, x13], and X2 may be [x21, x22, x23], where x11=10, x12=1000, and x13=True (or 1).
[0134] It can be understood that the training of the unsupervised autoencoder is to make the input and output closer, so as to learn a mapping relationship, that is, through the association learning of the values of multiple key parameters in the first key parameter set of the first API mode, the unsupervised autoencoder learns the mapping relationship between multiple key parameters in the first key parameter set and the normal value combination of the multiple key parameters, and the unsupervised autoencoder can restore the value combination of multiple key parameters in the input first key parameter set very well. If the input to the unsupervised autoencoder is the value combination of multiple key parameters in the first key parameter set extracted from the normal API message, since the unsupervised autoencoder has learned the mapping relationship between multiple key parameters in the normal first key parameter set and the normal value combination of the multiple key parameters, the unsupervised autoencoder can restore the value combination of multiple key parameters in the first key parameter set very well. If the input to the unsupervised autoencoder is a combination of values of multiple key parameters in the first key parameter set extracted from an abnormal API message, after the mapping relationship between the multiple key parameters in the first key parameter set learned by the unsupervised autoencoder and the normal value combination of the multiple key parameters, the unsupervised autoencoder cannot restore the value combination of the multiple key parameters in the first key parameter set, or in other words, the output result of the unsupervised autoencoder deviates greatly from the input. The deviation between the input and output of the unsupervised autoencoder can be represented by the distance between X1 and X2, and the following formula (3) can be used to determine whether the deviation D(X1, X2) between the input and output of the unsupervised autoencoder is normal:
[0135]
[0136] Among them, f(X1, X2) can also be understood as the judgment condition for the training convergence of the unsupervised autoencoder.
[0137] For the training samples corresponding to each API mode, they can be divided into three parts: training samples for training, training samples for verification, and training samples for testing. Taking the training samples corresponding to the first API mode as an example, they can be divided into: first training samples, first verification samples, and first test samples. The above-mentioned execution of S202 training is to make the output and input of the first detection model as close as possible; the method 200 may also include determining a first baseline value of the first detection model based on the first verification sample, and a reasonable first baseline value can enable the first detection model to achieve a preset standard for the accuracy of input restoration (such as 95% accuracy in input restoration). In order to determine whether the first detection model can achieve a preset standard for the restoration of the input, the method 200 may also include testing whether the first detection model meets the usage standard of the anomaly detection method in the embodiment of the present application based on the first test sample and the first baseline value.
[0138] As an example, after S202, the method 200 may also include: S203, obtaining multiple first verification samples, each of the first verification samples includes the value of the key parameter in the first key parameter set corresponding to the first API mode in the second API message belonging to the first API mode; S204, based on the multiple first verification samples and the first detection model, determining the first baseline value of the first detection model, the probability that the difference between the output result of each first verification sample in the multiple first verification samples after the first detection model and the corresponding first verification sample is less than or equal to the first baseline value satisfies the second preset condition, and the first baseline value is used to cooperate with the first detection model to perform anomaly detection on the API message belonging to the first API mode. Wherein, the second preset condition may be, for example, that the probability is greater than or equal to a preset value (such as 95%).
[0139] For example, the first baseline value can be calculated based on the mean square error (MSE) of each value in X4 restored by the unsupervised autoencoder of the first verification sample X3 and X3, and the fluctuation of MSE. If X3 is {x31, x32, ..., x3n}, and X4 is {x41, x42, ..., x4n}, then the MSE of X3 and X4 can be calculated by the following formula (4):
[0140]
[0141] Wherein, MSE(X3,X4) is the MSE of X3 and X4, i=1, 2, ..., n. The first baseline value can be calculated based on the following formula (5), for example:
[0142] θ=AVE(MSE(Xopt))+N*STD(MSE(Xopt))…Formula (5)
[0143] Among them, θ is used to represent the first baseline value, AVE() is the average function, STD() is the standard deviation function, STD(MSE()) can also be understood as the fluctuation of MSE(), MSE() is the mean square error function, and Xopt is an array consisting of at least one first verification sample and the restoration result of the first verification sample after the unsupervised autoencoder. For example, Xopt can be the above-mentioned MSE(X3, X4).
[0144] As an example, after S204, the method 200 may further include: S205, obtaining multiple first test samples, each of the multiple first test samples including the value of a key parameter in a first key parameter set corresponding to the first API mode in a third API message belonging to the first API mode; S206, testing the first detection model based on the multiple first test samples to determine a test result of the first detection model, and the probability that the difference between the output result of each first test sample in the multiple first test samples after the first detection model and the corresponding first test sample is less than or equal to the first baseline value θ satisfies the second preset condition, then, the test result indicates that the first detection model is qualified. The first detection model determined to be qualified by this example can be used to execute S103 in method 100, for example, can be obtained from Figure 1 The new management and control platform 200 is sent to the device 100, and the device 100 can complete the anomaly detection of the API message to be detected based on the method 100 and with the help of the first detection model.
[0145] In this implementation, after obtaining the first detection model and the first baseline value according to method 200, anomaly detection can be performed on the API message belonging to the first API mode. For example, the method 200 may also include: obtaining a fourth API message belonging to the first API mode; based on the first detection model, the first baseline value and the value of the key parameter in the first key parameter set in the fourth API message, determining the anomaly detection result of the fourth API message. For the anomaly detection of the fourth API message, please refer to the relevant description in the above method 100.
[0146] In some other possible implementations, the preset detection model may also be a Deep-SVDD model. The basic principle of the Deep-SVDD model is as follows: Figure 5 As shown in the figure, the Deep-SVDD model maps multiple first training samples to a hypersphere with c as the center and R as the radius, ensuring that the first training samples corresponding to normal API messages all fall within Figure 5 Within the sphere shown on the right, the first training samples corresponding to the abnormal API messages all fall outside the sphere, so that the Deep-SVDD model can implement the anomaly detection of the embodiment of the present application. n ={x1,…,x n}, in order to realize the function of mapping all sample points to the hypersphere, the loss function of the Deep-SVDD model can be seen in the following formula (6):
[0147]
[0148] Among them, φ(x i ,W) is the feature mapping function of the Deep-SVDD model, W={W 1 ,…,W L} is the weight of the Deep-SVDD model, Represents the distance from the first training sample to the center of the hypersphere after mapping. Since we hope that the volume of the established hypersphere is as small as possible and the sample points are as close together as possible in the mapping space, the above formula (6) can be understood as minimizing the distance from each point to the center c, and does not involve the process of optimizing the radius of the hypersphere.
[0149] When searching for abnormal points (i.e., testing phase), the distance from each point to the center of the sphere can be calculated and sorted by distance, with anomalies with larger distances being given larger scores. For example, the anomaly score can be calculated based on the following formula (7):
[0150] s=||φ(x;w * )-c|| 2 ...Formula (7)
[0151] Where s represents the anomaly score, W * Represents the weights in the trained Deep-SVDD model.
[0152] In this implementation, after obtaining the first detection model according to method 200, anomaly detection can be performed on the API message belonging to the first API mode. For example, the method 200 may also include: obtaining a fourth API message belonging to the first API mode; determining the anomaly detection result of the fourth API message based on the first detection model and the values of the key parameters in the first key parameter set in the fourth API message. It should be noted that if the points obtained by mapping the values of the key parameters in the first key parameter set in the fourth message through the first detection model fall inside the hypersphere, then the anomaly detection result indicates that the fourth API message is normal. Conversely, if the points obtained by mapping the values of the key parameters in the first key parameter set in the fourth message through the first detection model fall outside the hypersphere, then the anomaly detection result indicates that the fourth API message is abnormal.
[0153] In order to improve the performance of the anomaly detection method, the staff can also confirm the anomaly detection result of the API message and introduce a feedback mechanism for the wrong anomaly detection result, that is, the method 200 can also include: in response to determining that the anomaly detection result of the fourth API message is wrong, updating the multiple first training samples and / or the first key parameter set, and retraining the first detection model. In this way, a more reasonable first key parameter set and first detection model are obtained, so that the anomaly detection of the API in the first API mode is more accurate.
[0154] The above method 200 is illustratively described by taking the first detection model of the first API model as an example. For the training process of the detection models of other API modes, please refer to the relevant description of the method 200.
[0155] It should be noted that the neural network types used by the detection models corresponding to different API modes can be the same or different; alternatively, the API messages of some API modes can use the detection model for anomaly detection, and the API messages of other API modes can use the parameter configuration template for anomaly detection.
[0156] It can be seen that in the method 200, the key parameter set of the API message under each API mode is determined by pre-learning the multi-dimensional association of the parameters of the API message under each API mode, and the detection model of the corresponding API mode is trained based on multiple training samples of each API mode and the key set of the corresponding API mode, so that accurate anomaly detection of the first API message to be detected becomes possible. When performing anomaly detection on the first API message to be detected, the first key parameter set under the first API mode corresponding to the first API message can be quickly determined, so that the values of each key parameter in the first key parameter set in the first API message are input into the trained first detection model, and the anomaly detection result of the first API message is determined based on the output result of the first detection model, thereby achieving accurate and comprehensive anomaly detection of the API message and improving the security of the network.
[0157] Accordingly, the embodiment of the present application also provides an abnormality detection device 600, such as Figure 6 As shown, the device 600 may include an acquiring unit 601 and a determining unit 602 .
[0158] In some possible implementations, the anomaly detection device 600 may execute the method 100 .
[0159] The acquisition unit 601 is configured to acquire a first key parameter set based on a first API mode of a first API message, wherein the first key parameter set includes a plurality of key parameters. The acquisition unit 601 may execute Figure 2 S101 shown.
[0160] The acquisition unit 601 is further configured to acquire first detection information of the first API message based on the first key parameter set, wherein the first detection information includes a value of each key parameter in the first key parameter set in the first API message. Figure 2 S102 shown.
[0161] The determination unit 602 is configured to determine an abnormality detection result of the first API message based on the first API mode and the first detection information. The determination unit 602 may be executed Figure 2 S103 shown.
[0162] In a possible implementation, the acquisition unit 601 is specifically used to acquire the first key parameter set based on the first API mode and the API key parameter library, wherein the API key parameter library includes at least one API mode and a key parameter set corresponding to each API mode in the at least one API mode.
[0163] As an example, the acquisition unit 601 is further configured to acquire, for any API mode in the at least one API mode, a set of key parameters corresponding to the any API mode.
[0164] As another example, for any API mode in the at least one API mode, the acquisition unit 601 is also used to acquire multiple second API messages corresponding to the any API mode. The determination unit 602 is also used to determine a set of candidate key parameters corresponding to the any API mode based on the values of multiple parameters of each second API message in the multiple second API messages, and the uncertainty of the candidate key parameters in the candidate key parameter set meets the first preset condition; determine the set of key parameters corresponding to the any API mode based on the candidate key parameter set.
[0165] For example, the determination unit 602 is specifically used to: obtain the values of multiple parameters of each second API message; for any parameter among the multiple parameters, based on the value of any parameter in the multiple second API messages, determine the first value of any parameter, the first value is used to indicate the uncertainty corresponding to the value of any parameter, and the candidate key parameter set corresponding to any API mode includes the parameters whose first values among the multiple parameters satisfy the first preset condition.
[0166] For example, the determination unit 602 is specifically used to: determine the key parameter set corresponding to any API mode based on the detection model and the values of the key parameters in the candidate key parameter set in each second API message. Wherein, the determination unit 602 is specifically used to: obtain multiple first training samples, each of the multiple first training samples includes the values of the key parameters in the candidate key parameter set in any second API message; based on the first training samples corresponding to the any API mode in the multiple first training samples and the detection model corresponding to the any API mode, obtain the detection difference corresponding to the any API mode; if the detection difference meets the baseline value of the detection model corresponding to the any API mode, then, determine that the candidate key parameters corresponding to the any API mode are the key parameters in the key parameter set corresponding to the any API mode.
[0167] In one possible implementation, the determination unit 602 is specifically used to: obtain a parameter configuration template corresponding to the first API mode, the parameter configuration template including a correspondence between any key parameter in the first key parameter set and a benchmark value range of any key parameter; and determine an abnormal detection result of the first API message based on the first detection information and the parameter configuration template.
[0168] As an example, the device 600 further includes an updating unit, and the updating unit is configured to update the parameter configuration template corresponding to the first API mode if an error occurs in the abnormality detection result.
[0169] In a possible implementation, the determination unit 602 is specifically used to: obtain a first detection model corresponding to the first API mode; input the first detection information into the first detection model, and determine the abnormal detection result of the first API message based on the output result of the first detection model.
[0170] As an example, the device 600 further includes an updating unit, and the updating unit is configured to update the first detection model if an error occurs in the abnormality detection result.
[0171] For example, the updating unit is specifically used to: update the key parameter set corresponding to the first API mode to a second key parameter set according to the error of the abnormal detection result; obtain multiple second training samples, the multiple second training samples include the values of the key parameters in the second key parameter set in any third API message, and the third API message is the message in the second training sample corresponding to the first API mode; train the first detection model based on the second training sample corresponding to the first API model in the multiple second training samples.
[0172] It should be noted that the specific implementation method and technical effect achieved when the device 600 provided in the embodiment of the present application executes the method 100 can be found in the relevant description of the method 100.
[0173] In some possible implementations, the anomaly detection device 600 may execute the method 200 .
[0174] The acquisition unit 601 is configured to acquire a plurality of first training samples, each of which includes a value of a key parameter in a first key parameter set corresponding to a first API mode in a first API message belonging to the first API mode, and the first key parameter set includes a plurality of key parameters. The acquisition unit 601 may execute Figure 3 S201 shown.
[0175] The determination unit 602 is configured to train a preset detection model based on the plurality of first training samples to determine a first detection model corresponding to the first API mode, wherein the first detection model is used to perform anomaly detection on the API message belonging to the first API mode. The determination unit 602 may be executed Figure 3 S202 shown.
[0176] In a possible implementation, the acquisition unit 601 is also used to acquire multiple first verification samples, each of which includes the value of a key parameter in a first key parameter set corresponding to the first API mode in a second API message belonging to the first API mode. The acquisition unit 601 can execute S203 in method 200. The determination unit 602 is also used to determine a first baseline value of the first detection model based on the multiple first verification samples and the first detection model, and the probability that the difference between the output result of each first verification sample in the multiple first verification samples after the first detection model and the corresponding first verification sample is less than or equal to the first baseline value satisfies a first preset condition, and the first baseline value is used to cooperate with the first detection model to perform anomaly detection on the API message belonging to the first API mode. The determination unit 602 can execute S204 in method 200.
[0177] In a possible implementation, the acquisition unit 601 is also used to acquire multiple first test samples, each of the multiple first test samples includes the value of the key parameter in the first key parameter set corresponding to the first API mode in the third API message belonging to the first API mode. The acquisition unit 601 can execute S205 in method 200. The determination unit 602 is also used to test the first detection model based on the multiple first test samples to determine the test result of the first detection model. If the probability that the difference between the output result of each first test sample in the multiple first test samples after the first detection model and the corresponding first test sample is less than or equal to the first baseline value satisfies the first preset condition, then the test result indicates that the first detection model is qualified. The determination unit 602 can execute S206 in method 200.
[0178] In a possible implementation, the acquisition unit 601 is also used to acquire a fourth API message belonging to the first API mode; the determination unit 602 is also used to determine the abnormality detection result of the fourth API message based on the first detection model, the first baseline value and the values of the key parameters in the first key parameter set in the fourth API message.
[0179] In a possible implementation, the device 600 may also include an updating unit, which is used to update the multiple first training samples and / or the first key parameter set and retrain the first detection model in response to determining that the abnormal detection result of the fourth API message is erroneous.
[0180] In a possible implementation, the acquisition unit 601 is further used to acquire the first key parameter set corresponding to the first API mode.
[0181] In one possible implementation, the acquisition unit 601 is also used to acquire multiple fifth API messages corresponding to the first API mode; the determination unit 602 is also used to determine a set of candidate key parameters corresponding to the first API mode based on the values of multiple parameters of each fifth API message in the multiple fifth API messages, and the uncertainty of the candidate key parameters in the candidate key parameter set meets the second preset condition; the determination unit 602 is also used to determine the first key parameter set corresponding to the first API mode based on the candidate key parameter set.
[0182] As an example, when the determination unit 602 executes the determination of the candidate key parameter set corresponding to the first API mode based on the values of multiple parameters of each fifth API message in the multiple fifth API messages, the determination unit 602 is specifically used to: obtain the values of multiple parameters of each fifth API message; for any parameter among the multiple parameters, based on the value of any parameter in the multiple fifth API messages, determine the first value of any parameter, the first value is used to indicate the uncertainty corresponding to the value of any parameter, and the candidate key parameter set corresponding to any API mode includes parameters among the multiple parameters whose first values satisfy the second preset condition.
[0183] It should be noted that the specific implementation method and technical effect achieved by the device 600 provided in the embodiment of the present application can refer to the relevant description of the method 200.
[0184] See also Figure 7 , the present application embodiment provides a communication device 700. The communication device 700 may be any communication unit capable of executing the method provided in the present application embodiment, for example, Figure 1 The communication device 700 includes at least one processor 701 , a bus system 702 , a memory 703 and at least one communication interface 704 .
[0185] The communication device 700 is a hardware structure device that can be used to implement Figure 6 The functional modules in the abnormality detection device 600 shown in FIG. 6 are implemented by, for example, the at least one processor 701 calling the code in the memory 703. Figure 6 The acquisition unit 601 or the determination unit 602 in the abnormality detection device 600 shown.
[0186] Optionally, the communication device 700 may also be used to implement the functions of the network device in any of the above embodiments.
[0187] Optionally, the processor 701 may be a general-purpose central processing unit (CPU), a network processor (NP), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present application.
[0188] The bus system 702 may include pathways for transmitting information between the components.
[0189] The communication interface 704 is used to communicate with other devices or communication networks.
[0190] The memory 703 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory may exist independently and be connected to the processor via a bus. The memory may also be integrated with the processor.
[0191] The memory 703 is used to store the application code for executing the solution of the present application, and the execution is controlled by the processor 701. The processor 701 is used to execute the application code stored in the memory 703, so as to realize the functions in the method of the present application.
[0192] In a specific implementation, as an embodiment, the processor 701 may include one or more CPUs, such as Figure 7 CPU0 and CPU1 in.
[0193] In a specific implementation, as an embodiment, the communication device 700 may include multiple processors, such as Figure 7 701 and processor 707 in the embodiment of the present invention. Each of these processors may be a single-CPU processor or a multi-CPU processor. The processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).
[0194] Figure 8 800 is a schematic diagram of the structure of another communication device 800 provided in an embodiment of the present application. The communication device 800 may be any communication unit capable of executing the method provided in an embodiment of the present application, for example, Figure 1 The communication device 800 may implement the functions of various network devices or servers in the above embodiments.
[0195] The communication device 800 includes a main control board 810 and an interface board 830 .
[0196] The main control board 810 is also called a main processing unit (MPU) or a route processor card. The main control board 810 controls and manages various components in the communication device 800, including route calculation, device management, device maintenance, and protocol processing functions. The main control board 810 includes: a central processing unit 811 and a memory 812.
[0197] The interface board 830 is also called a line processing unit (LPU), a line card or a service board. The interface board 830 is used to provide various service interfaces and realize the forwarding of data packets. The service interface includes but is not limited to an Ethernet interface, a POS (Packet over SONET / SDH) interface, etc., and the Ethernet interface is, for example, a Flexible Ethernet Clients (FlexE Clients) service interface. The interface board 830 includes: a central processing unit 831, a network processor 832, a forwarding table entry memory 834 and a physical interface card (PIC) 833.
[0198] The central processor 831 on the interface board 830 is used to control and manage the interface board 830 and communicate with the central processor 811 on the main control board 810 .
[0199] The network processor 832 is used to implement message forwarding processing. The network processor 832 may be in the form of a forwarding chip. Specifically, the processing of uplink messages includes: message inbound interface processing, forwarding table search; the processing of downlink messages: forwarding table search, etc.
[0200] The physical interface card 833 is used to implement the docking function of the physical layer, from which the original traffic enters the interface board 830, and the processed message is sent from the physical interface card 833. The physical interface card 833 includes at least one physical interface, which is also called a physical port. The physical interface card 833 corresponds to the FlexE physical interface in the system architecture. The physical interface card 833 is also called a daughter card, which can be installed on the interface board 830 and is responsible for converting the optical signal into a message and forwarding the message to the network processor 832 for processing after checking the legitimacy of the message. In some embodiments, the central processor 831 of the interface board 830 can also perform the functions of the network processor 832, such as implementing software forwarding based on a general-purpose CPU, so that the network processor 832 is not required in the physical interface card 833.
[0201] Optionally, the communication device 800 includes a plurality of interface boards. For example, the communication device 800 further includes an interface board 840 . The interface board 840 includes a central processor 841 , a network processor 842 , a forwarding table entry memory 844 , and a physical interface card 843 .
[0202] Optionally, the communication device 800 further includes a switching fabric board 820. The switching fabric board 820 may also be referred to as a switch fabric unit (SFU). When the communication device 800 has multiple interface boards 830, the switching fabric board 820 is used to complete data exchange between the interface boards. For example, the interface board 830 and the interface board 840 may communicate via the switching fabric board 820.
[0203] The main control board 810 is coupled to the interface board 830. For example, the main control board 810, the interface board 830, the interface board 840, and the switching network board 820 are connected to the system backplane through a system bus to achieve intercommunication. In a possible implementation, an inter-process communication (IPC) channel is established between the main control board 810 and the interface board 830, and the main control board 810 and the interface board 830 communicate through the IPC channel.
[0204] Logically, the communication device 800 includes a control plane and a forwarding plane. The control plane includes a main control board 810 and a central processing unit 831. The forwarding plane includes various components for performing forwarding, such as a forwarding table entry memory 834, a physical interface card 833, and a network processor 832. The control plane performs functions such as a router, generating a forwarding table, processing signaling and protocol messages, and configuring and maintaining the status of the device. The control plane sends the generated forwarding table to the forwarding plane. On the forwarding plane, the network processor 832 forwards the message received by the physical interface card 833 based on the forwarding table sent by the control plane. The forwarding table sent by the control plane can be stored in the forwarding table entry memory 834. In some embodiments, the control plane and the forwarding plane can be completely separated and not on the same device.
[0205] If the communication device 800 is configured as a device for executing method 100, the central processor 811 can obtain a first set of key parameters based on a first API mode of a first API message, obtain first detection information of the first API message based on the first set of key parameters, and determine an abnormal detection result of the first API message based on the first API mode and the first detection information.
[0206] It should be understood that the acquisition unit 601 and the determination unit 602 in the abnormality detection device 600 may be equivalent to the central processing unit 811 or the central processing unit 831 in the communication device 800 .
[0207] It should be understood that the communication device 800 of this embodiment may correspond to the abnormality detection device 600 in the above-mentioned embodiments. The main control board 810, interface board 830 and / or interface board 840 in the communication device 800 can realize the functions and / or various steps implemented in the abnormality detection device 600 in the above-mentioned embodiments. For the sake of brevity, they will not be repeated here.
[0208] It should be understood that the operation on the interface board 840 in the embodiment of the present application is consistent with the operation of the interface board 830, and for the sake of brevity, it will not be repeated. It should be understood that the main control board 810, the interface board 830 and / or the interface board 840 in the communication device 800 of this embodiment can implement the functions and / or various steps implemented in the communication device 700 in the above-mentioned various embodiments, and for the sake of brevity, it will not be repeated here.
[0209] It should be understood that there may be one or more main control boards, and when there are multiple boards, they may include a primary main control board and a backup main control board. There may be one or more interface boards. The stronger the data processing capability of the network device, the more interface boards are provided. There may also be one or more physical interface cards on the interface board. There may be no switching network board, or there may be one or more switching network boards. When there are multiple switching network boards, they can jointly realize load sharing and redundant backup. Under a centralized forwarding architecture, the network device may not need a switching network board, and the interface board is responsible for the processing function of the business data of the entire system. Under a distributed forwarding architecture, the network device may have at least one switching network board, and the switching network board is used to realize data exchange between multiple interface boards, providing large-capacity data exchange and processing capabilities. Therefore, the data access and processing capabilities of network devices with a distributed architecture are greater than those of devices with a centralized architecture. Optionally, the network device may have only one board, that is, no switching board, and the functions of the interface board and the main control board are integrated on the board. In this case, the central processor on the interface board and the central processor on the main control board can be combined into one central processor on the board to perform the functions of the two. This type of device has low data exchange and processing capabilities (for example, low-end switches or routers and other network devices). The specific architecture to be adopted depends on the specific networking deployment scenario.
[0210] In some possible embodiments, each of the above-mentioned network devices or network devices can be implemented as a virtualized device. For example, a virtualized device can be a virtual machine (English: Virtual Machine, VM) running a program for sending message functions, and the virtual machine is deployed on a hardware device (for example, a physical server). A virtual machine refers to a complete computer system with complete hardware system functions simulated by software and running in a completely isolated environment. The virtual machine can be configured as each network device or server in the embodiments of the present application. For example, each network device or network device can be implemented based on a general physical server in combination with network function virtualization (NFV) technology. Each network device or network device is a virtual host, a virtual router or a virtual switch. Those skilled in the art can virtualize each network device or network device with the above-mentioned functions on a general physical server in combination with NFV technology by reading this application, which will not be repeated here.
[0211] It should be understood that the network devices in the above-mentioned various product forms have any functions of the network devices or communication devices in the above-mentioned method embodiments, which will not be repeated here.
[0212] The embodiment of the present application also provides a chip, including a processor and an interface circuit, the interface circuit is used to receive instructions and transmit them to the processor; the processor, for example, can be a specific implementation form of the message processing device in the embodiment of the present application, and can be used to execute the above-mentioned routing method. Wherein, the processor is coupled with a memory, and the memory is used to store programs or instructions. When the program or instruction is executed by the processor, the chip system implements the method in any of the above-mentioned method embodiments.
[0213] Optionally, the processor in the chip system may be one or more. The processor may be implemented by hardware or by software. When implemented by hardware, the processor may be a logic circuit, an integrated circuit, etc. When implemented by software, the processor may be a general-purpose processor implemented by reading software code stored in a memory.
[0214] Optionally, the memory in the chip system may be one or more. The memory may be integrated with the processor or may be separately provided with the processor, which is not limited in the present application. Exemplarily, the memory may be a non-transient processor, such as a read-only memory ROM, which may be integrated with the processor on the same chip or may be provided on different chips. The present application does not specifically limit the type of memory and the arrangement of the memory and the processor.
[0215] Exemplarily, the chip system can be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a microcontroller unit (MCU), a programmable logic device (PLD) or other integrated chips.
[0216] In addition, the embodiment of the present application further provides an anomaly detection system, which includes a computer device and an analysis platform. The device is used to execute a method of any implementation of method 100; the analysis platform is used to execute a method of any implementation of method 200.
[0217] In addition, the embodiment of the present application further provides a storage medium, in which program codes or instructions are stored, and when the program codes or instructions are run on a processor, the above Figure 2 or Figure 3 A method under any one of the implementation modes in the illustrated embodiments.
[0218] In addition, an embodiment of the present application also provides a program product, which, when running on a processor, executes any one of the implementation methods of the aforementioned method 100 or method 200.
[0219] It should be understood that "based on determining B according to A" mentioned in the embodiments of the present application does not mean that B is determined only according to A, but B can also be determined according to A and / or other information.
[0220] In the embodiments of the present application, the parameters or fields in the API message refer to the same meaning and can be understood and used interchangeably.
[0221] The "first" in the names of "first API mode", "first API message" and the like mentioned in this application is only used as a name identifier and does not mean the first in order. The same rule applies to "second" and the like.
[0222] Through the description of the above implementation methods, it can be known that those skilled in the art can clearly understand that all or part of the steps in the above-mentioned embodiment method can be implemented by means of software plus a general hardware platform. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a storage medium, such as a read-only memory (ROM) / RAM, a magnetic disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network communication device such as a router) to execute the methods described in each embodiment of the present application or some parts of the embodiments.
[0223] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for system embodiments and device embodiments, since they are basically similar to method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. The device and system embodiments described above are merely schematic, in which the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0224] The above is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application. It should be noted that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the present application, and these improvements and modifications should also be regarded as the protection scope of the present application.
Claims
1. An anomaly detection method, characterized in that: The method comprises: Acquire a first key parameter set based on a first API mode of a first application programming interface API message, where the first key parameter set includes a plurality of key parameters; Acquire first detection information of the first API message based on the first key parameter set, where the first detection information includes a value of each key parameter in the first key parameter set in the first API message; Based on the first API mode and the first detection information, an abnormality detection result of the first API message is determined.
2. The method according to claim 1, characterized in that The acquiring of a first key parameter set based on a first API mode of a first application program interface API message includes: Based on the first API mode and an API key parameter library, the first key parameter set is acquired, where the API key parameter library includes at least one API mode and a key parameter set corresponding to each API mode in the at least one API mode.
3. The method according to claim 2, characterized in that The method further comprises: For any API mode among the at least one API mode: obtain a key parameter set corresponding to the any API mode.
4. The method according to claim 2, characterized in that: The method further comprises: For any API mode of the at least one API mode: Obtain multiple second API messages corresponding to any one of the API modes; Determine, based on the values of multiple parameters of each second API message in the multiple second API messages, a set of candidate key parameters corresponding to any one of the API modes, wherein the uncertainty of the candidate key parameters in the set of candidate key parameters meets the first preset condition; A key parameter set corresponding to any one of the API modes is determined based on the candidate key parameter set.
5. The method according to claim 4, characterized in that The determining, based on the values of the multiple parameters of each second API message in the multiple second API messages, a candidate key parameter set corresponding to any one of the API modes includes: Obtaining values of multiple parameters of each second API message; For any parameter among the multiple parameters, a first value of the parameter is determined based on the value of the parameter in the multiple second API messages, wherein the first value is used to indicate the uncertainty of the value corresponding to the parameter, and the candidate key parameter set corresponding to the any API mode includes the parameters whose first values among the multiple parameters satisfy the first preset condition.
6. The method according to claim 4 or 5, characterized in that: The determining, according to the candidate key parameter set, a key parameter set corresponding to any one of the API modes includes: Based on the detection model and the values of the key parameters in the candidate key parameter set in each second API message, the key parameter set corresponding to any one of the API modes is determined.
7. The method according to claim 6, characterized in that The determining, based on the detection model and the values of the key parameters in the candidate key parameter set in each second API message, the key parameter set corresponding to any one of the API modes includes: Acquire a plurality of first training samples, each of the plurality of first training samples comprising a value of a key parameter in the candidate key parameter set in any second API message; Based on a first training sample corresponding to the any API mode among the plurality of first training samples and a detection model corresponding to the any API mode, obtaining a detection difference corresponding to the any API mode; If the detection difference meets the baseline value of the detection model corresponding to any API mode, then the candidate key parameter corresponding to any API mode is determined to be a key parameter in the key parameter set corresponding to any API mode.
8. The method according to any one of claims 1 to 7, characterized in that: The determining, based on the first API mode and the first detection information, an abnormality detection result of the first API message includes: Acquire a parameter configuration template corresponding to the first API mode, the parameter configuration template including a correspondence between any key parameter in the first key parameter set and a reference value range of the any key parameter; Based on the first detection information and the parameter configuration template, determine an abnormality detection result of the first API message.
9. The method according to claim 8, characterized in that The method further comprises: If an error occurs in the abnormality detection result, the parameter configuration template corresponding to the first API mode is updated.
10. The method according to any one of claims 1 to 7, characterized in that: The determining, based on the first API mode and the first detection information, an abnormality detection result of the first API message includes: Acquire a first detection model corresponding to the first API mode; The first detection information is input into the first detection model, and an abnormality detection result of the first API message is determined based on an output result of the first detection model.
11. The method according to claim 10, characterized in that The method further comprises: If the abnormality detection result is wrong, then the first detection model is updated.
12. The method according to claim 11, characterized in that The updating of the first detection model comprises: According to the error of the abnormal detection result, updating the key parameter set corresponding to the first API mode to a second key parameter set; Acquire multiple second training samples, where the multiple second training samples include values of key parameters in the second key parameter set in any third API message, where the third API message is a message in the second training sample corresponding to the first API mode; The first detection model is trained based on a second training sample among the multiple second training samples corresponding to the first API model.
13. An anomaly detection method, characterized in that: The method comprises: Acquire a plurality of first training samples, each of the plurality of first training samples comprising a value of a key parameter in a first key parameter set corresponding to a first API mode in a first API message belonging to the first API mode, the first key parameter set comprising a plurality of key parameters; A preset detection model is trained based on the multiple first training samples to determine a first detection model corresponding to the first API mode, where the first detection model is used to perform anomaly detection on API messages belonging to the first API mode.
14. The method according to claim 13, characterized in that The method further comprises: Acquire multiple first verification samples, each of the multiple first verification samples including a value of a key parameter in a first key parameter set corresponding to the first API mode in a second API message belonging to the first API mode; Based on the multiple first verification samples and the first detection model, a first baseline value of the first detection model is determined, and the probability that the difference between the output result of each first verification sample in the multiple first verification samples after the first detection model and the corresponding first verification sample is less than or equal to the first baseline value satisfies a first preset condition, and the first baseline value is used to cooperate with the first detection model to perform anomaly detection on API messages belonging to the first API mode.
15. The method according to claim 14, characterized in that The method further comprises: Acquire a plurality of first test samples, each of the plurality of first test samples comprising a value of a key parameter in a first key parameter set corresponding to the first API mode in a third API message belonging to the first API mode; The first detection model is tested based on the multiple first test samples to determine the test result of the first detection model. If the probability that the difference between the output result of each first test sample in the multiple first test samples after the first detection model and the corresponding first test sample is less than or equal to the first baseline value satisfies the first preset condition, then the test result indicates that the first detection model is qualified.
16. The method according to claim 14 or 15, characterized in that The method further comprises: Obtaining a fourth API message belonging to the first API mode; An abnormality detection result of the fourth API message is determined based on the first detection model, the first baseline value, and the values of the key parameters in the first key parameter set in the fourth API message.
17. The method according to claim 16, characterized in that The method further comprises: In response to determining that the anomaly detection result of the fourth API message is erroneous, the multiple first training samples and / or the first key parameter set are updated, and the first detection model is retrained.
18. The method according to any one of claims 13 to 17, characterized in that: The method further comprises: Get the first key parameter set corresponding to the first API mode.
19. The method according to any one of claims 13 to 17, characterized in that: The method further comprises: Acquire multiple fifth API messages corresponding to the first API mode; Determining a set of candidate key parameters corresponding to the first API mode based on values of multiple parameters of each fifth API message in the multiple fifth API messages, where uncertainties of candidate key parameters in the set of candidate key parameters meet a second preset condition; The first key parameter set corresponding to the first API mode is determined according to the candidate key parameter set.
20. The method according to claim 19, characterized in that The determining, based on the values of the multiple parameters of each fifth API message in the multiple fifth API messages, a candidate key parameter set corresponding to the first API mode includes: Obtaining values of multiple parameters of each fifth API message; For any parameter among the multiple parameters, a first value of the parameter is determined based on the value of the parameter in the multiple fifth API messages, wherein the first value is used to indicate the uncertainty of the value corresponding to the parameter, and the candidate key parameter set corresponding to the any API mode includes the parameters whose first values among the multiple parameters satisfy the second preset condition.
21. An abnormality detection device, characterized in that: The device comprises: An acquisition unit, configured to perform an acquisition operation in the method according to any one of claims 1 to 20; A determination unit, used to perform the determination operation in the method according to any one of claims 1 to 20.
22. A computer device, characterized in that: The computer device includes a processor and a memory; The processor is configured to execute instructions stored in the memory so that the computer device executes the method according to any one of claims 1 to 20.
23. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed on a processor, the method according to any one of claims 1 to 20 is executed.
24. A program product, characterized in that The program product comprises a program, and when the program is run on a processor, the method according to any one of claims 1 to 20 is executed.
Citation Information
Cited By
Service flow compliance detection method, device, equipment, medium and product
CN119628934A
Heuristic online log analysis method and system based on adaptive deep analysis tree
CN119835142A
