Security vulnerability identification method and device, equipment and storage medium
By identifying API security vulnerabilities at the gateway layer of the microservice system and using the interface parameter field to determine vulnerability types and rules, the problem of the back-end service layer requiring the deployment of multiple protection components is solved, and development efficiency and code reusability are improved.
Patent Information
- Application Number
- CN202310551468.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-16
- Publication Date
- 2024-11-22
AI Technical Summary
In the prior art, the back-end service layer of the microservice system needs to deploy various types of security vulnerability protection components separately, resulting in developers having to write a large amount of duplicate code, which is inefficient.
By implementing the security vulnerability identification method at the gateway layer of the microservice system, the API interface parameter field is used to determine the target security vulnerability type and vulnerability identification rules, establish the corresponding relationship of the vulnerability identification reference parameters, and realize integrated protection of multiple security vulnerabilities.
Reduces the code duplication when developing API security protection functions, improves the development efficiency of developers, and achieves simultaneous protection of multiple security vulnerabilities.
Smart Images

Figure CN119004469A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of computer technology, and in particular to a security vulnerability identification method, device, equipment and storage medium. Background Art
[0002] With the evolution of microservice system architecture, the microservice system architecture has evolved from a front-end and back-end coupled structure to a three-layer front-end and back-end separated new architecture, which includes the front-end display layer, the gateway layer and the back-end service layer. At present, in order to achieve system security protection, the back-end service layer can identify security vulnerabilities encountered during system operation.
[0003] However, in the process of implementing the present invention, it was found that there are at least the following problems in the prior art: since various types of security vulnerabilities need to be identified, the back-end service layer needs to deploy protection components for various types of security vulnerabilities respectively, and developers need to write codes for different protection components respectively, the code duplication is too high, and the development efficiency is very low. Summary of the invention
[0004] The embodiments of the present invention provide a security vulnerability identification method, apparatus, device and storage medium, which can reduce code duplication when developing security protection functions for APIs and improve the development efficiency of developers.
[0005] In the first aspect, an embodiment of the present invention provides a security vulnerability identification method that can be applied to the gateway layer of a microservice system, and the method may include: obtaining a data processing request; the data processing request carries an interface input parameter field of an API; based on the interface input parameter field, determining at least one target security vulnerability type to be identified for the API, and vulnerability identification reference parameters corresponding to each target security vulnerability type, and determining the correspondence between the vulnerability identification rules corresponding to each target security vulnerability type and the vulnerability identification reference parameters corresponding to each target security vulnerability type; determining the security vulnerability identification result of the API based on the correspondence.
[0006] In a second aspect, an embodiment of the present invention further provides a security vulnerability identification device, which can be configured at a gateway layer of a microservice system, and the device can include: an acquisition module and a determination module;
[0007] Specifically, the acquisition module is used to obtain a data processing request; the data processing request carries the interface input parameter field of the API; the determination module is used to determine at least one target security vulnerability type to be identified for the API based on the interface input parameter field, and the vulnerability identification reference parameters corresponding to each target security vulnerability type, and determine the correspondence between the vulnerability identification rules corresponding to each target security vulnerability type and the vulnerability identification reference parameters corresponding to each target security vulnerability type; the determination module is also used to determine the security vulnerability identification result of the API based on the correspondence.
[0008] In a third aspect, an embodiment of the present invention provides a security vulnerability identification device, the security vulnerability identification device comprising:
[0009] one or more processors;
[0010] A memory for storing one or more programs;
[0011] When the one or more programs are executed by the one or more processors, the one or more processors implement the security vulnerability identification method provided by any embodiment of the present invention.
[0012] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a security vulnerability identification method as provided in any embodiment of the present invention.
[0013] The embodiments of the above invention have the following advantages or beneficial effects:
[0014] In the technical solution provided by the embodiment of the present invention, the gateway layer of the microservice system can identify security vulnerabilities of the API. Specifically, after the gateway layer obtains the data processing request carrying the interface input parameter field of the API, it can first determine at least one target security vulnerability type to be identified for the API based on the interface input parameter field, and each target security vulnerability type can be a plurality of security vulnerability types that need to be identified for the API configured in advance according to business scenario requirements. At the same time, based on the interface input parameter field, the vulnerability identification reference parameters required to be referenced when identifying each target security vulnerability type of the API can be determined. In addition, the corresponding relationship between the vulnerability identification rules corresponding to each target security vulnerability type and the vulnerability identification reference parameters corresponding to each target security vulnerability type can be associated. Among them, the vulnerability identification rules corresponding to the target security vulnerability type can specifically be the identification rules based on which the vulnerability identification reference parameters of the target security vulnerability type are identified. Then, after obtaining the corresponding relationship between the vulnerability identification rules and the vulnerability identification reference parameters, the security vulnerability identification result for the API can be determined based on the corresponding relationship. It can be seen that in the technical solution provided by the embodiment of the present invention, the integration capability of the gateway layer is utilized to integrate the security vulnerability identification process for the API at the gateway layer, and multiple types of security vulnerabilities can be identified for the API at the same time based on the interface input parameter fields of the API, so as to achieve protection against multiple security vulnerabilities at the same time. Since multiple types of security vulnerabilities can be identified for the API at the same time, only one set of development code for protection components needs to be deployed. Compared with the existing technical solution for security protection at the back-end service layer (that is, deploying protection components for various types of security vulnerabilities separately at the back-end), it can reduce the code duplication when developing security protection functions for the API, and improve the development efficiency of developers. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 It is a flowchart of a security vulnerability identification method provided by an embodiment of the present invention;
[0016] Figure 2 It is a flowchart of another security vulnerability identification method provided by an embodiment of the present invention;
[0017] Figure 3 It is a flowchart of another security vulnerability identification method provided by an embodiment of the present invention;
[0018] Figure 4 It is a flowchart of another security vulnerability identification method provided by an embodiment of the present invention;
[0019] Figure 5 It is a schematic diagram of a task thread for identifying and processing security vulnerabilities provided by an embodiment of the present invention;
[0020] Figure 6 It is a structural diagram of a security vulnerability identification system provided by an embodiment of the present invention;
[0021] Figure 7 It is a structural schematic diagram of a security vulnerability identification device provided by an embodiment of the present invention;
[0022] Figure 8 It is a structural diagram of a security vulnerability identification device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0023] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0024] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0025] In addition, the terms "including" and "having" and any variations thereof mentioned in the description of the embodiments of the present invention are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.
[0026] It should be noted that, in the embodiments of the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0027] In the description of the embodiments of the present invention, unless otherwise specified, “plurality” or “each” means two or more than two.
[0028] Figure 1A flowchart of a security vulnerability identification method provided by an embodiment of the present invention, which can be applied to application scenarios where an application programming interface (API) needs to be protected when it is called. The method can be executed by a security vulnerability identification device provided by an embodiment of the present invention, which can be implemented in software and / or hardware and integrated in a security vulnerability identification device.
[0029] The security vulnerability identification method provided in the embodiment of the present invention can be applied to a microservice system including a front-end display layer, a gateway layer and a back-end service layer. Specifically, the security vulnerability identification device that executes the method can be configured in the gateway layer of the microservice system, and correspondingly, the security vulnerability identification device integrated with the security vulnerability identification device can be the corresponding device of the gateway layer, such as the server of the gateway layer. In addition, the gateway type of the gateway layer is not limited in the embodiment of the present application, and the specific gateway type is related to the network protocol between the layers in the system. Exemplarily, when the communication protocol between the front-end display layer and the gateway layer is Hypertext Transfer Protocol (HTTP), the gateway type can be an HTTP gateway.
[0030] like Figure 1 As shown, the security vulnerability identification method provided by the embodiment of the present invention specifically includes the following steps:
[0031] S110: Obtain a data processing request.
[0032] The security vulnerability identification method provided by the embodiment of the present invention can be applied to the gateway layer. In a possible implementation, when a client corresponding to the front-end display layer needs to call an API to obtain resources from the back-end service layer, the client can initiate a data processing request for the API to the gateway layer. After receiving the data processing request, the gateway layer can call the API to obtain the corresponding resources from the back-end service layer, and then return the obtained resources to the client.
[0033] Among them, the data processing request carries the interface input parameter field of the API. Exemplarily, the interface input parameter field may include information of the requester and the requested party. The requester is the client that initiates the data processing request, and the requested party is the API to be called by the data processing request. It is understandable that in actual applications, the interface input parameter field may also include other information, which is not limited in the embodiments of the present application. For example, the interface input parameter field may also include information about the resources currently requested by the requester.
[0034] S120. Determine at least one target security vulnerability type to be identified for the API and vulnerability identification reference parameters corresponding to each target security vulnerability type based on the interface input parameter field, and determine the correspondence between the vulnerability identification rules corresponding to each target security vulnerability type and the vulnerability identification reference parameters corresponding to each target security vulnerability type.
[0035] Currently, some attackers will launch illegal attacks on the API when calling the API through the gateway layer. For example, the attacker will steal the API data or obtain the API calling permission to illegally obtain the resources of the backend service layer. In order to protect the security of the API, in an embodiment of the present invention, a protection function for the API can be deployed at the gateway layer. During the API publishing stage, multiple target security vulnerability types can be configured for the API according to the needs of the application scenario. When the client requests resources from the API through the gateway layer, the gateway layer can determine which security vulnerability needs to be identified for the API based on the interface input parameter field in the data processing request initiated by the client.
[0036] For different types of security vulnerabilities, the basis for determining whether such a security vulnerability occurs is different. In an embodiment of the present invention, vulnerability identification rules for various security vulnerabilities can be configured in advance. When it is necessary to identify a certain security vulnerability in an API, the vulnerability identification rules configured in advance for such a security vulnerability can be directly called. In addition, the data categories attacked or stolen by different types of security vulnerabilities are different, so when determining whether a security vulnerability corresponding to the vulnerability identification rule occurs based on the vulnerability identification rule, it is necessary to find the data category that may be attacked or stolen by such a security vulnerability from the interface input parameter field, that is, the vulnerability identification reference parameter in the embodiment of the present invention. Afterwards, the corresponding relationship between the vulnerability identification rule and the vulnerability identification reference parameter can be associated, and based on the corresponding relationship, it can be determined whether such a security vulnerability occurs in the API.
[0037] Optionally, in an embodiment of the present invention, the gateway layer may locally store the mapping relationship between the API and the target security vulnerability type to be identified by the API. When a new API is released, the publisher may write the mapping relationship between the API and the target security vulnerability type configured for the API into the gateway layer. Alternatively, the gateway layer may also store the mapping relationship between the API and the target security vulnerability type to be identified by the API in other ways, and store the mapping relationship synchronously during the API publishing phase. In this way, after receiving a data processing request, the gateway layer may first determine the API to be called by the data processing request based on the interface input parameter field, and then determine at least one target security vulnerability type to be identified for the current API based on the mapping relationship between the API and the target security vulnerability type to be identified by the API stored in advance.
[0038] Optionally, determining at least one target security vulnerability type to be identified for the API and vulnerability identification reference parameters corresponding to each target security vulnerability type based on the interface input parameter field may include: locating each security identifier in the interface input parameter field; based on the located security identifiers, determining each target security vulnerability type corresponding to each security identifier from at least one candidate security vulnerability type; determining the target fields corresponding to each target security vulnerability type, and determining the vulnerability identification reference parameters corresponding to each target security vulnerability type from the interface input parameter field based on the target fields.
[0039] Among them, a security identifier is used to uniquely represent a type of security vulnerability.
[0040] When publishing an API, the publisher of the API can disclose the target security vulnerability types configured for the API. In one possible implementation, the API publisher can publish multiple security identifiers corresponding to each target security vulnerability type. When a client needs to call an API, it can determine the security field containing the multiple security identifiers based on the multiple security identifiers corresponding to the API, and then embed the security field into the interface input parameter field. In another possible implementation, the API publisher can publish the security fields corresponding to each target security vulnerability type. When a client needs to call an API, it can directly embed the security fields disclosed by the API into the interface input parameter field. After receiving the data processing request, the gateway layer can determine the target security vulnerability types that need to be identified for the API by locating the security identifiers in the interface input parameter field.
[0041] In an embodiment of the present invention, when an API is released, each target security vulnerability type configured for the API can be made public simultaneously. When a client requests to call an API, the security field of the security identifier used to characterize each target security vulnerability type can be embedded into the interface input parameter field. The gateway layer can directly determine the target security vulnerability types that need to be identified for the currently called API based on the interface input parameter field. In this way, the gateway layer does not need to store the mapping relationship between the API and the target security vulnerability type to be identified by the API, which can save its storage resources. In addition, by locating the security identifier to determine the target security vulnerability types that the API needs to identify, the target security vulnerability types corresponding to the API can be quickly locked, thereby improving the efficiency of security protection.
[0042] In addition, since different types of security vulnerability attacks or stolen data categories are different, in an embodiment of the present invention, when configuring the corresponding target security vulnerability types for the API, the corresponding target fields can also be pre-configured according to the data categories attacked or stolen by each target security vulnerability type. There may be one or more data categories attacked or stolen by a security vulnerability, and correspondingly, one or more target fields can be configured for a target security vulnerability type. After receiving the data processing request, the gateway layer can also search for the vulnerability identification reference parameters corresponding to each target field from the interface input parameter field based on the target fields corresponding to each target security vulnerability type.
[0043] Optionally, the security vulnerability identification method provided by the embodiment of the present invention may further include: obtaining a rule configuration request; and performing at least one configuration operation of modifying, adding, and deleting configurations on the candidate security vulnerability type based on the security identifier to be configured, the security vulnerability type to be configured, and the vulnerability identification rule to be configured. The rule configuration request carries the security identifier to be configured, the security vulnerability type to be configured, and the vulnerability identification rule to be configured.
[0044] For example, after the system has been running for a period of time, the developer finds that the attacker has used a new attack method to attack certain APIs, that is, a new type of security vulnerability to be configured is found, which is not in the previously configured candidate security vulnerability type. Then, the developer can create a corresponding security identifier to be configured for the security vulnerability type to be configured in the configuration interface provided by the system, and configure the vulnerability identification rule to be configured accordingly, and then trigger the rule configuration request by triggering a certain configuration control determined in advance in the configuration interface. After the gateway layer receives the rule configuration request, it can complete the new configuration of the security vulnerability type to be configured based on the security identifier to be configured, the security vulnerability type to be configured, and the vulnerability identification rule to be configured carried in the rule configuration request. After that, according to the application scenario requirements of each API, the API to which the security protection function corresponding to the security vulnerability type to be configured needs to be added can be determined, and then these APIs can be associated with the security vulnerability type to be configured to improve the security protection function of the published API. Similarly, the process of modifying and deleting the configuration of the candidate security vulnerability type can refer to the above-mentioned description of the new configuration of the candidate security vulnerability type, and the embodiment of the present invention will not be repeated here.
[0045] It can be seen that in the embodiment of the present invention, in order to adapt to the application scenario change requirements of the API and the change of the attack method, it can support dynamic adjustment of the candidate security vulnerability types such as adding, modifying and deleting. In addition, in the embodiment of the present invention, after the gateway layer determines the corresponding relationship, when determining the security vulnerability identification result of the API based on the corresponding relationship, if it is necessary to call the processing logic of which vulnerability identification rule, the processing logic of the vulnerability identification rule can be dynamically loaded locally according to the corresponding relationship. In this way, it is convenient for developers to adjust the vulnerability identification rules at any time according to business needs.
[0046] Optionally, each target security vulnerability type includes at least one of a cross-site scripting (XSS) vulnerability, an unauthorized access vulnerability, a cross-origin resource sharing (CORS) vulnerability, and a structured query language (SQL) injection vulnerability.
[0047] As the application of API becomes more and more widespread, attackers have various ways to attack API. In an embodiment of the present invention, the possible types of security vulnerabilities that attack API can be enumerated in advance to obtain various candidate security vulnerability types, and the target fields and vulnerability identification rules corresponding to each candidate security vulnerability type can be configured in advance. In the actual application process, at the API release stage, developers can select one or more target security vulnerability types from each candidate security vulnerability type for the current API according to the application scenario requirements of the API, so as to realize the synchronization of multiple security protection functions corresponding to each target security vulnerability type for the API at the gateway layer.
[0048] S130: Determine a security vulnerability identification result of the API based on the corresponding relationship.
[0049] In the embodiment of the present invention, the corresponding relationship is the corresponding relationship between the vulnerability identification rule and the vulnerability identification reference parameter. Among them, the vulnerability identification reference parameter is the vulnerability identification reference parameter required to refer to when identifying the target security vulnerability type of the API, and the vulnerability identification rule is the identification rule based on the vulnerability identification reference parameter of the target security vulnerability type. Then, based on the corresponding relationship, the security vulnerability identification result of the API can be obtained.
[0050] For example, if it is determined based on the corresponding relationship that the API has a security vulnerability, the data processing request initiated by the client can be rejected to achieve security protection for the API. If it is determined based on the corresponding relationship that there is no security vulnerability, the gateway layer can call the API normally to obtain the resources requested by the client from the backend service layer, and then return the corresponding resources to the client.
[0051] In the security vulnerability identification method provided by the embodiment of the present invention, the gateway layer of the microservice system can identify the security vulnerability of the API. Specifically, after the gateway layer obtains the data processing request carrying the interface input parameter field of the API, it can first determine at least one target security vulnerability type to be identified for the API based on the interface input parameter field, and each target security vulnerability type can be a plurality of security vulnerability types that need to be identified for the API configured in advance according to business scenario requirements. At the same time, based on the interface input parameter field, the vulnerability identification reference parameters required to be referenced when identifying each target security vulnerability type of the API can be determined. In addition, the corresponding relationship between the vulnerability identification rules corresponding to each target security vulnerability type and the vulnerability identification reference parameters corresponding to each target security vulnerability type can be associated. Among them, the vulnerability identification rules corresponding to the target security vulnerability type can specifically be the identification rules based on which the vulnerability identification reference parameters of the target security vulnerability type are identified. Then, after obtaining the corresponding relationship between the vulnerability identification rules and the vulnerability identification reference parameters, the security vulnerability identification result for the API can be determined based on the corresponding relationship. It can be seen that in the embodiment of the present invention, the integration capability of the gateway layer is utilized to integrate the security vulnerability identification process for the API at the gateway layer, and multiple types of security vulnerabilities can be identified for the API at the same time based on the interface input parameter fields of the API, so as to achieve protection against multiple security vulnerabilities at the same time. Since multiple types of security vulnerabilities can be identified for the API at the same time, only one set of development code for protection components needs to be deployed. Compared with the existing technical solutions for security protection at the back-end service layer (that is, deploying protection components for various types of security vulnerabilities separately at the back-end), it can reduce the code duplication when developing security protection functions for the API, and improve the development efficiency of developers.
[0052] Reference Figure 2 , is a flow chart of another security vulnerability identification method provided by an embodiment of the present invention. The method in this embodiment can be combined with various optional solutions in the security vulnerability identification method provided by the previous embodiment to further optimize the security vulnerability identification method provided by the previous embodiment. Figure 2 As shown, the specific steps include:
[0053] S210: Obtain a data processing request.
[0054] S220: Verify the validity of the API access credentials.
[0055] In one possible implementation, after the client successfully logs into the system, it will obtain a ticket value, which can be used as the client's access credential to access the API. The ticket value corresponds to an expiration date, such as 10 minutes. When the client accesses the API, the gateway layer can verify the expiration date of the ticket value. If the ticket value is within the expiration date, it means that the client's access credential to the API is valid, and the API can be further identified for security vulnerabilities; conversely, if the ticket value is not within the expiration date, it means that the client's access credential to the API is invalid, and the data processing request initiated by the client can be rejected.
[0056] S230. When it is determined that the access credentials are valid, determine at least one target security vulnerability type to be identified for the API based on the interface input parameter field, and the vulnerability identification reference parameters corresponding to each target security vulnerability type, and determine the correspondence between the vulnerability identification rules corresponding to each target security vulnerability type and the vulnerability identification reference parameters corresponding to each target security vulnerability type.
[0057] S240: Determine a security vulnerability identification result of the API based on the corresponding relationship.
[0058] In an embodiment of the present invention, based on the aforementioned embodiment, before performing security vulnerability identification processing on the API, the validity of the API access credentials may be verified first. When the API access credentials are invalid, the request may be directly rejected. When the API access credentials are valid, the API may be further processed for security vulnerability identification. It can be seen that in an embodiment of the present invention, it is possible to determine whether the current data processing request initiated by the client needs to be identified for security vulnerabilities based on the validity of the API access credentials. For data processing requests that do not require security vulnerability identification, they may be directly skipped. In this way, the response efficiency of the gateway layer to data processing requests may be improved, and computing resources may be saved.
[0059] It should be noted that the security vulnerability identification method proposed in the embodiment of the present invention and the aforementioned embodiment belong to the same inventive concept. The technical details not fully described in this embodiment can be referred to the aforementioned embodiment, and the beneficial effects of the aforementioned embodiment are also applicable to this embodiment.
[0060] Reference Figure 3 , is a flow chart of another security vulnerability identification method provided by an embodiment of the present invention. The method in this embodiment can be combined with various optional solutions in the security vulnerability identification method provided by the previous embodiment to further optimize the security vulnerability identification method provided by the previous embodiment. Figure 3 As shown, the specific steps include:
[0061] S310: Obtain a data processing request.
[0062] S320. Determine at least one target security vulnerability type to be identified for the API and vulnerability identification reference parameters corresponding to each target security vulnerability type based on the interface input parameter field, and determine the correspondence between the vulnerability identification rules corresponding to each target security vulnerability type and the vulnerability identification reference parameters corresponding to each target security vulnerability type.
[0063] S330: Based on the corresponding relationship, create identification tasks corresponding to each target security vulnerability type.
[0064] Among them, the task content of any identification task includes: based on the vulnerability identification rules corresponding to the target security vulnerability type, performing security vulnerability identification processing on the vulnerability identification reference parameters corresponding to the target security vulnerability type.
[0065] S340, executing each identification task in parallel, and determining the security vulnerability identification result of the API according to the execution result.
[0066] Exemplarily, if the target security vulnerability types corresponding to the current API include security vulnerability type A and security vulnerability type B. Among them, security vulnerability type A corresponds to vulnerability identification rule A, security vulnerability type B corresponds to vulnerability identification rule B, and security vulnerability type A corresponds to vulnerability identification reference parameter A, and security vulnerability type B corresponds to vulnerability identification reference parameter B. Vulnerability identification reference parameter A and vulnerability identification reference parameter B may respectively include one or more parameters, which are not limited in the embodiment of the present invention. The gateway layer may associate vulnerability identification rule A with vulnerability identification reference parameter A based on security vulnerability type A to obtain a corresponding relationship A, and may associate vulnerability identification rule B with vulnerability identification reference parameter B based on security vulnerability type B to obtain a corresponding relationship B. Afterwards, an identification task A may be created based on corresponding relationship A, and an identification task B may be created based on corresponding relationship B. The task content of identification task A includes: performing security vulnerability identification processing on vulnerability identification reference parameter A based on vulnerability identification rule A to identify whether security vulnerability type A appears in the API; the task content of identification task B includes: performing security vulnerability identification processing on vulnerability identification reference parameter B based on vulnerability identification rule B to identify whether security vulnerability type B appears in the API. After creating identification task A and identification task B, the gateway layer can execute these two identification tasks at the same time. If no security vulnerability is identified in either of the two identification tasks, it means that the data processing request initiated by the client is a normal request, and the gateway layer can call the API normally to obtain the corresponding resources from the backend service layer and return them to the client. If any of the two identification tasks identifies the corresponding security vulnerability, it means that the data processing request initiated by the client is an abnormal attack request, and the gateway layer can reject the request to achieve security protection for the API.
[0067] Optional, such as Figure 4 As shown, Figure 3 The S320 in can be replaced by S3201-S3203:
[0068] S3201. Determine at least one target security vulnerability type to be identified for the API based on the interface input parameter field, and vulnerability identification reference parameters corresponding to each target security vulnerability type.
[0069] S3202. Determine at least one rule dimension corresponding to each target security vulnerability type, and determine the vulnerability identification rule corresponding to each rule dimension.
[0070] Exemplarily, taking the unauthorized vulnerability as an example, when the embodiment of the present invention identifies the unauthorized vulnerability of the API, it can be identified through multiple rule dimensions. For example, if the API currently called by the client only allows user accounts corresponding to certain departments to access, then the vulnerability identification rules for the unauthorized vulnerability can be configured with the vulnerability identification rules corresponding to the rule dimension of the department unauthorized vulnerability. Specifically, the vulnerability identification rules corresponding to the rule dimension of the department unauthorized vulnerability can include the departments that the API allows access to, and the target field corresponding to the unauthorized vulnerability can be the corresponding field of the user account. The gateway layer can identify the user account (i.e., the vulnerability identification reference parameter) from the target field, and then determine whether the user account belongs to the department that the API allows access to in the vulnerability identification rules corresponding to the department unauthorized vulnerability. If it belongs, it means that there is no department unauthorized vulnerability; conversely, if it does not belong, it means that there is a department unauthorized vulnerability. For another example, if the API currently called by the client only allows user accounts corresponding to certain operating projects to access, then the vulnerability identification rules for the unauthorized vulnerability can also be configured with the vulnerability identification rules corresponding to the rule dimension of the operation unauthorized vulnerability. Specifically, the vulnerability identification rule corresponding to the rule dimension of the operational overauthorization vulnerability may include operational items that the API allows access to, and the target field corresponding to the overauthorization vulnerability may be the corresponding field of the user account. The gateway layer may determine, based on the target field, whether the user account belongs to the operational items that the API allows access to in the vulnerability identification rule corresponding to the operational overauthorization vulnerability. If so, it indicates that no operational overauthorization vulnerability has been identified; otherwise, if not, it indicates that an operational overauthorization vulnerability has been identified.
[0071] S3203. Determine the correspondence between each rule dimension corresponding to each target security vulnerability type, the vulnerability identification rule corresponding to each rule dimension, and the vulnerability identification reference parameter corresponding to each target security vulnerability type.
[0072] In order to adapt to the diverse needs of API application scenarios, in an embodiment of the present invention, different rule dimensions can be determined for different security vulnerability types, and different vulnerability identification rules can be configured for different rule dimensions. In this way, no matter which rule dimension the attacker launches the attack from for each target security vulnerability type, security protection for the target security vulnerability type can be achieved. It can be seen that the embodiment of the present invention can improve the accuracy of security vulnerability identification by dividing different rule dimensions for each target security vulnerability type, thereby improving the security protection performance of the API.
[0073] Optionally, in the embodiment of the present invention, the identification task created for the target security vulnerability type may include at least one identification subtask. Figure 4 As shown, Figure 3 The S330 in can be replaced by S3301. Figure 3 The S340 in can be replaced by S3401:
[0074] S3301. Based on the corresponding relationship, create identification subtasks corresponding to each rule dimension.
[0075] Among them, the task content of any identification subtask includes: based on the vulnerability identification rules of the corresponding rule dimension, performing security vulnerability identification processing on the vulnerability identification reference parameters of the corresponding target security vulnerability type.
[0076] S3401. Execute each identification task in parallel, and execute the identification subtasks in the same identification task in serial; determine the security vulnerability identification result of the API according to the execution result.
[0077] In actual applications, there may be a hierarchical relationship between the multiple rule dimensions corresponding to the target security vulnerability type. Taking the unauthorized vulnerability as an example, the multiple rule dimensions corresponding to it can correspond to different permission levels respectively. When handling the unauthorized vulnerability, it is necessary to first identify the vulnerability of the rule dimension corresponding to the high permission level, and then identify the vulnerability of the rule dimension corresponding to the low permission level. Alternatively, there may be a correlation between the multiple rule dimensions corresponding to the target security vulnerability type. For example, when identifying the vulnerability of a certain rule dimension, the identification results of other rule dimensions may be needed. Based on this, in an embodiment of the present invention, for multiple identification subtasks in the same identification task, a serial method can be used for processing. In this way, the processing process of the identification task can be made more organized, and the identification efficiency of the identification task can be improved, thereby improving the efficiency of identifying security vulnerabilities of the API.
[0078] For example, the target security vulnerability types corresponding to the current API include security vulnerability type A, security vulnerability type B, and security vulnerability type C. Figure 5, is a schematic diagram of a task thread for identifying and processing security vulnerabilities provided by an embodiment of the present invention. Figure 5 As shown, the task thread of the current API includes identification task A, identification task B and identification task C. Identification task A is used to identify security vulnerability type A, identification task B is used to identify security vulnerability type B, and identification task C is used to identify security vulnerability type C.
[0079] Specifically, for security vulnerability type A, there are three rule dimensions, namely rule dimension A, rule dimension B and rule dimension C. Rule dimension A corresponds to vulnerability identification rule A1, rule dimension B corresponds to vulnerability identification rule A2, rule dimension C corresponds to vulnerability identification rule A3, and security vulnerability type A corresponds to vulnerability identification reference parameter A. Then, if Figure 5 As shown, for the identification task A of the security vulnerability type A, the gateway layer can create three identification subtasks of the identification task A: identification subtask A1, identification subtask A2 and identification subtask A3. The task content of identification subtask A1 includes: performing security vulnerability identification processing on vulnerability identification reference parameter A based on vulnerability identification rule A1; the task content of identification subtask A2 includes: performing security vulnerability identification processing on vulnerability identification reference parameter A based on vulnerability identification rule A2; the task content of identification subtask A3 includes: performing security vulnerability identification processing on vulnerability identification reference parameter A based on vulnerability identification rule A3. Figure 5 As shown, the gateway layer can execute recognition task A, recognition task B and recognition task C in parallel, but for each recognition subtask in recognition task A, recognition subtask A1, recognition subtask A2 and recognition subtask A3 need to be executed serially in the order of the recognition subtasks.
[0080] In an embodiment of the present invention, based on the aforementioned embodiment, when it is necessary to identify multiple security vulnerabilities of an API, corresponding identification tasks can be created for each target security vulnerability type based on the corresponding relationship between the vulnerability identification rules corresponding to each target security vulnerability type and the vulnerability identification reference parameters corresponding to each target security vulnerability type. Since the identification and processing processes for different security vulnerability types are independent and do not affect each other, in an embodiment of the present invention, the gateway layer can execute the identification tasks corresponding to each target security vulnerability type in parallel, so that the efficiency of identifying security vulnerabilities of the API can be improved, thereby improving the efficiency of security protection for the API.
[0081] It should be noted that the security vulnerability identification method proposed in the embodiment of the present invention and the aforementioned embodiment belong to the same inventive concept. The technical details not fully described in this embodiment can be referred to the aforementioned embodiment, and the beneficial effects of the aforementioned embodiment are also applicable to this embodiment.
[0082] Figure 6A schematic diagram of the structure of a security vulnerability identification system provided by an embodiment of the present invention. Figure 6 As shown in FIG. 1 , the system includes a front-end display layer, a gateway layer, and a back-end service layer. The gateway layer includes a pipeline engine (i.e. Figure 6 The pipeline engine in the pipeline engine) processes the request as a processing link, which contains multiple link nodes, such as Figure 6 In the embodiment of the present invention, a node for security protection can be added to the processing link of the gateway layer according to the requirements of the application scenario (ie Figure 6 A unified security protection component (i.e. Figure 6 The SecurityEngine in the security pipe can identify a variety of security vulnerabilities, such as XSS vulnerabilities, unauthorized vulnerabilities, CORS vulnerabilities, and SQL injection vulnerabilities. After the front-end display layer initiates a data processing request to the gateway layer, the gateway layer can process the data processing request according to the order of each link node in the processing link. When the node reaches the security pipe, the SecurityEngine deployed in the node can identify XSS vulnerabilities, unauthorized vulnerabilities, CORS vulnerabilities, and SQL injection vulnerabilities in the API called by the data processing request. If any security vulnerability is identified, the processing node is paused and will not be executed to the next link node; conversely, if no security vulnerability is identified, the next link node can be executed. After all link nodes of the gateway layer are executed, the corresponding resources can be requested from the back-end service layer.
[0083] The security vulnerability identification system provided by the embodiment of the present invention and the security vulnerability identification methods of the aforementioned embodiments belong to the same inventive concept. For details not fully described in the embodiment of the security vulnerability identification system, reference can be made to the embodiments of the aforementioned security vulnerability identification method.
[0084] In order to more clearly describe the security vulnerability identification method provided by the embodiment of the present invention, Figure 6 The security protection components in the security vulnerability identification system provided (i.e. Figure 6The function of SecurityEngine in is described in detail. Specifically, the security protection component can be divided into four parts, namely, the permission control part, the data parsing part, the computing execution engine part and the dynamic configuration part. Among them, the permission control part is used to verify the validity of the API access credentials. When the API access credentials are determined to be valid, the data parsing part is triggered to parse the interface input parameter field. The data parsing part provides the function of parsing the interface input parameter field in the data processing request. The security identifier in the interface input parameter field can be located first to determine the target security vulnerability types to be identified for the API, and the rule dimensions corresponding to each target security vulnerability type, the vulnerability identification rules corresponding to each rule dimension, and the vulnerability identification reference parameters corresponding to each target security vulnerability type can be determined. Then, the corresponding relationship between the rule dimensions corresponding to each target security vulnerability type, the vulnerability identification rules corresponding to each rule dimension, and the vulnerability identification reference parameters corresponding to each target security vulnerability type is injected into the container context of the network layer. The computing execution engine part can create identification tasks for each target security vulnerability type based on the corresponding relationship in the container context, and each identification task contains identification subtasks for different rule dimensions. The computation execution engine part can execute each identification task in parallel and the identification subtasks in the same identification task in serial. During the processing, the security vulnerability identification result of the API is determined according to the execution result. The dynamic configuration part is used to provide dynamic configuration function for candidate security vulnerability types, and when a vulnerability identification rule needs to be called, the processing logic of the vulnerability identification rule can be dynamically loaded locally.
[0085] Figure 7 A schematic diagram of the structure of a security vulnerability identification device provided by an embodiment of the present invention, the function of which is equivalent to Figure 6 The security protection components in Figure 6 The device comprises: an acquisition module 710 and a determination module 720.
[0086] Exemplarily, the acquisition module 710 may execute S110 in the above method embodiment, and the determination module 720 may execute S120 and S130 in the above method embodiment.
[0087] Specifically, the acquisition module 710 is used to obtain a data processing request; the data processing request carries the interface input parameter field of the API; the determination module 720 is used to determine at least one target security vulnerability type to be identified for the API based on the interface input parameter field, and the vulnerability identification reference parameters corresponding to each target security vulnerability type, and determine the correspondence between the vulnerability identification rules corresponding to each target security vulnerability type and the vulnerability identification reference parameters corresponding to each target security vulnerability type; the determination module 720 is also used to determine the security vulnerability identification result of the API based on the correspondence.
[0088] Optionally, in a possible implementation manner, the determining module 720 is specifically configured to:
[0089] Based on the corresponding relationship, create identification tasks corresponding to each target security vulnerability type; the task content of any identification task includes: based on the vulnerability identification rules of the corresponding target security vulnerability type, perform security vulnerability identification processing on the vulnerability identification reference parameters of the corresponding target security vulnerability type;
[0090] Each identification task is executed in parallel, and the API security vulnerability identification result is determined based on the execution result.
[0091] Optionally, in another possible implementation, the determining module 720 is further configured to:
[0092] Determine at least one rule dimension corresponding to each target security vulnerability type, and determine vulnerability identification rules corresponding to each rule dimension;
[0093] Determine the correspondence between each rule dimension corresponding to each target security vulnerability type, the vulnerability identification rule corresponding to each rule dimension, and the vulnerability identification reference parameter corresponding to each target security vulnerability type.
[0094] Optionally, in another possible implementation, the recognition task includes at least one recognition subtask, and the determination module 720 is further configured to:
[0095] Based on the corresponding relationship, create identification subtasks corresponding to each rule dimension; execute each identification task in parallel, and execute the identification subtasks in the same identification task in serial; determine the security vulnerability identification result of the API based on the execution result; wherein the task content of any identification subtask includes: based on the vulnerability identification rules of the corresponding rule dimensions, perform security vulnerability identification processing on the vulnerability identification reference parameters of the corresponding target security vulnerability type.
[0096] Optionally, in another possible implementation, the determining module 720 is further configured to:
[0097] Locate each security identifier in the interface input parameter field;
[0098] Based on the located security identifiers, determining target security vulnerability types corresponding to the security identifiers from at least one candidate security vulnerability type;
[0099] Determine the target fields corresponding to each target security vulnerability type, and determine the vulnerability identification reference parameters corresponding to each target security vulnerability type from the interface input parameter field based on the target field.
[0100] Optionally, in another possible implementation manner, the security vulnerability identification device provided by the embodiment of the present invention may further include a configuration module;
[0101] The acquisition module 710 is further used to acquire a rule configuration request; the rule configuration request carries a security identifier to be configured, a security vulnerability type to be configured, and a vulnerability identification rule to be configured;
[0102] The configuration module is used to perform at least one configuration operation of modifying configuration, adding configuration and deleting configuration on the candidate security vulnerability type based on the security identifier to be configured, the security vulnerability type to be configured and the vulnerability identification rule to be configured.
[0103] Optionally, in another possible implementation manner, the security vulnerability identification device provided by the embodiment of the present invention may further include a verification module;
[0104] The verification module is used to: after the acquisition module 710 obtains the data processing request, before the determination module 720 determines at least one target security vulnerability type to be identified for the API and the vulnerability identification reference parameters corresponding to each target security vulnerability type based on the interface input parameter field, verify the validity of the API access credentials; when it is determined that the access credentials are valid, trigger the execution of the operation of determining at least one target security vulnerability type to be identified for the API and the vulnerability identification reference parameters corresponding to each target security vulnerability type based on the interface input parameter field.
[0105] Optionally, in another possible implementation, each target security vulnerability type includes at least one of a cross-site scripting vulnerability, an unauthorized access vulnerability, a cross-domain resource sharing vulnerability, and a structured query language injection vulnerability.
[0106] The security vulnerability identification device provided in the embodiment of the present invention belongs to the same inventive concept as the security vulnerability identification method provided in the aforementioned embodiments. For details not fully described in the embodiment of the security vulnerability identification device, reference can be made to the relevant contents of the aforementioned method embodiments, and the corresponding beneficial effects can also be referred to the beneficial effect analysis of the aforementioned method embodiments.
[0107] Figure 8 A schematic diagram of the structure of a security vulnerability identification device provided by an embodiment of the present invention. Figure 8A block diagram of an exemplary security vulnerability identification device 12 suitable for implementing embodiments of the present invention is shown. Figure 8 The security vulnerability identification device 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0108] like Figure 8 As shown, the security vulnerability identification device 12 is in the form of a general computing device. The components of the security vulnerability identification device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 connecting different system components (including the system memory 28 and the processing unit 16).
[0109] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
[0110] The security vulnerability identification device 12 typically includes a variety of computer system readable media, which can be any available media that can be accessed by the security vulnerability identification device 12, including volatile and non-volatile media, removable and non-removable media.
[0111] System memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory (i.e., Figure 8 The security vulnerability identification device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 8 not shown, usually called a "hard drive"). Although Figure 8 Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The system memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.
[0112] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. Program modules 42 generally perform the functions and / or methods of the embodiments described herein.
[0113] The security vulnerability identification device 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, etc.), one or more devices that enable a user to interact with the security vulnerability identification device 12, and / or any device that enables the security vulnerability identification device 12 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed through an input / output (I / O) interface 22. Furthermore, the security vulnerability identification device 12 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) through a network adapter 20. Figure 8 As shown, the network adapter 20 communicates with other modules of the security vulnerability identification device 12 via the bus 18. It should be understood that although Figure 8 Not shown, other hardware and / or software modules may be used in conjunction with the security vulnerability identification device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0114] The processing unit 16 executes various functional applications and data processing by running the program stored in the system memory 28, for example, implementing the steps of the security vulnerability identification method provided in an embodiment of the present invention, the method comprising: obtaining a data processing request; the data processing request carries an interface input parameter field of the API; based on the interface input parameter field, determining at least one target security vulnerability type to be identified for the API, and vulnerability identification reference parameters corresponding to each target security vulnerability type, and determining the correspondence between the vulnerability identification rules corresponding to each target security vulnerability type and the vulnerability identification reference parameters corresponding to each target security vulnerability type; and determining the security vulnerability identification result of the API based on the correspondence.
[0115] Of course, those skilled in the art can understand that the processor can also implement the technical solution of the security vulnerability identification method provided by any embodiment of the present invention.
[0116] The present embodiment provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the program implements the steps of a security vulnerability identification method as provided in the aforementioned embodiment of the present invention, the method comprising: obtaining a data processing request; the data processing request carries an interface input parameter field of an API; based on the interface input parameter field, determining at least one target security vulnerability type to be identified for the API, and vulnerability identification reference parameters corresponding to each target security vulnerability type, and determining the correspondence between the vulnerability identification rules corresponding to each target security vulnerability type and the vulnerability identification reference parameters corresponding to each target security vulnerability type; and determining the security vulnerability identification result of the API based on the correspondence.
[0117] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.
[0118] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0119] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0120] Computer program code for performing the operations of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or security vulnerability identification device. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0121] It should be understood by those skilled in the art that the modules or steps of the present invention described above can be implemented by a general-purpose computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, optionally, they can be implemented by a program code executable by a computer device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0122] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A security vulnerability identification method, characterized in that: Applied to the gateway layer of a microservice system, the method comprises: Obtaining a data processing request; the data processing request carries an interface input parameter field of an application programming interface API; Determine at least one target security vulnerability type to be identified for the API and vulnerability identification reference parameters corresponding to each target security vulnerability type based on the interface input parameter field, and determine the corresponding relationship between the vulnerability identification rules corresponding to each target security vulnerability type and the vulnerability identification reference parameters corresponding to each target security vulnerability type; A security vulnerability identification result of the API is determined based on the corresponding relationship.
2. The security vulnerability identification method according to claim 1, characterized in that: The determining the security vulnerability identification result of the API based on the corresponding relationship includes: Based on the corresponding relationship, creating identification tasks corresponding to each of the target security vulnerability types; the task content of any of the identification tasks includes: based on the vulnerability identification rules corresponding to the target security vulnerability type, performing security vulnerability identification processing on the vulnerability identification reference parameters corresponding to the target security vulnerability type; The identification tasks are executed in parallel, and the security vulnerability identification results of the API are determined according to the execution results.
3. The security vulnerability identification method according to claim 2, characterized in that: The determining of the correspondence between the vulnerability identification rules corresponding to each of the target security vulnerability types and the vulnerability identification reference parameters corresponding to each of the target security vulnerability types includes: Determine at least one rule dimension corresponding to each of the target security vulnerability types, and determine a vulnerability identification rule corresponding to each of the rule dimensions; Determine the correspondence between each of the rule dimensions corresponding to each of the target security vulnerability types, the vulnerability identification rules corresponding to each of the rule dimensions, and the vulnerability identification reference parameters corresponding to each of the target security vulnerability types.
4. The security vulnerability identification method according to claim 3, characterized in that: The identification task includes at least one identification subtask, and the creation of identification tasks corresponding to each of the target security vulnerability types based on the corresponding relationship includes: Based on the corresponding relationship, creating identification subtasks corresponding to each of the rule dimensions; the task content of any of the identification subtasks includes: based on the vulnerability identification rules of the corresponding rule dimensions, performing security vulnerability identification processing on the vulnerability identification reference parameters corresponding to the target security vulnerability type; The step of executing each of the identification tasks in parallel and determining the security vulnerability identification result of the API according to the execution result includes: The identification tasks are executed in parallel, and the identification subtasks in the same identification task are executed in serial; and the security vulnerability identification result of the API is determined according to the execution result.
5. The security vulnerability identification method according to claim 1, characterized in that: The determining, based on the interface input parameter field, at least one target security vulnerability type to be identified for the API and vulnerability identification reference parameters corresponding to each target security vulnerability type includes: Locating each security identifier in the interface input parameter field; Based on the located security identifiers, determining the target security vulnerability types corresponding to the security identifiers from at least one candidate security vulnerability type; Determine the target fields corresponding to each of the target security vulnerability types, and determine the vulnerability identification reference parameters corresponding to each of the target security vulnerability types from the interface input parameter field based on the target fields.
6. The security vulnerability identification method according to claim 5, characterized in that: The method further comprises: Obtain a rule configuration request; the rule configuration request carries a security identifier to be configured, a security vulnerability type to be configured, and a vulnerability identification rule to be configured; Based on the security identifier to be configured, the security vulnerability type to be configured and the vulnerability identification rule to be configured, at least one configuration operation of modifying configuration, adding configuration and deleting configuration is performed on the candidate security vulnerability type.
7. The security vulnerability identification method according to claim 1, characterized in that: After obtaining the data processing request, before determining at least one target security vulnerability type to be identified for the API based on the interface input parameter field and vulnerability identification reference parameters corresponding to each target security vulnerability type, the method further includes: Verify the validity of the API access credentials; When it is determined that the access credential is valid, an operation is triggered to determine at least one target security vulnerability type to be identified for the API based on the interface input parameter field, and vulnerability identification reference parameters corresponding to each target security vulnerability type.
8. The security vulnerability identification method according to any one of claims 1 to 7, characterized in that: Each of the target security vulnerability types includes at least one of a cross-site scripting vulnerability, an unauthorized access vulnerability, a cross-domain resource sharing vulnerability, and a structured query language injection vulnerability.
9. A security vulnerability identification device, characterized in that: The gateway layer configured in the microservice system includes: An acquisition module is used to acquire a data processing request; the data processing request carries an API interface input parameter field; A determination module, used to determine at least one target security vulnerability type to be identified for the API based on the interface input parameter field, and vulnerability identification reference parameters corresponding to each target security vulnerability type, and determine the corresponding relationship between the vulnerability identification rules corresponding to each target security vulnerability type and the vulnerability identification reference parameters corresponding to each target security vulnerability type; The determination module is further used to determine the security vulnerability identification result of the API based on the corresponding relationship.
10. A security vulnerability identification device, characterized in that: The security vulnerability identification device comprises: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the security vulnerability identification method as described in any one of claims 1-8.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the security vulnerability identification method as described in any one of claims 1 to 8 is implemented.
