Application program interface security management method and API management platform
Obtaining and adjusting security measures at each stage of the entire life cycle through the API management platform solves the problem of API data leakage and achieves security and reliability throughout the API life cycle.
Patent Information
- Application Number
- CN202310308939.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-27
- Publication Date
- 2024-10-11
AI Technical Summary
Existing technologies are difficult to effectively manage data security throughout the entire life cycle of APIs, resulting in an exponential growth trend in API data leakage problems.
Obtain security information of target data resources through the API management platform, determine security measures at each stage of the life cycle, adjust security measures based on inspection results, and take targeted measures to prevent data leakage.
It achieves the security and reliability of the entire API life cycle, reduces data leakage problems, and improves the security and reliability of data resources.
Smart Images

Figure CN118760461A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of application programming interface (API) security, and more specifically, to a method for application programming interface (API) security management and an API management platform. Background Art
[0002] In the digital age, API has become the source of competitiveness of many corporate technologies and economic models. API is not only applicable to digital scenarios such as cloud services, the Internet of Things, and big data analysis, but can also help companies tap and maintain customers and build a new business ecosystem. As the huge value of API is realized, API has become the most frequently used carrier for cyber attackers. By attacking API, they can use the company's application data without authorization. API attacks are showing an exponential growth trend.
[0003] However, at the current stage, data resources need to circulate and interact between enterprises and users, and between enterprises through APIs, which leads to the problem of API data leakage. Summary of the invention
[0004] The embodiments of the present application provide a method for secure management of an application programming interface (API) and an API management platform, which improves the security and reliability of API access to data resources by performing security management on some or all stages of multiple stages in the entire API life cycle.
[0005] In a first aspect, a method for security management of an application programming interface (API) is provided, which is applied to an API management platform, and includes: the API management platform obtains security information of a target data resource to be accessed by a target API, where the security information of the target data resource is used to describe the security classification of the target data resource in a data security dimension; the API management platform determines, based on the security information of the target data resource, security measures corresponding to some or all stages of multiple stages of the target API life cycle, where the multiple stages of the target API life cycle include at least two of a design stage, a development stage, a testing stage, a registration management stage, and an operation stage; the API management platform takes security measures corresponding to the target data resource in the partial or full stages, and obtains inspection results of the security measures corresponding to the partial or full stages; the API management platform adjusts the security measures corresponding to the target data resource in the second stage based on the inspection results of the security measures of the target data resource in the first stage, where the first stage and the second stage are respectively one stage of multiple stages; the API management platform takes the adjusted security measures for the target data resource in the second stage, so as to perform security detection or security protection on the target data resource in the second stage.
[0006] According to the technical solution provided in this application, the security measures of the target data resource in multiple stages of the API life cycle are determined based on the security information of the target data resource, thereby ensuring the security and reliability of the target data resource in the API life cycle.
[0007] In combination with the first aspect, in certain implementations of the first aspect, the adjusted security measures include repair measures for repairing security issues existing in the target data resource in the second stage and / or protective measures for protecting the target data resource from security risks existing in the second stage.
[0008] According to the technical solution provided in this application, by adding security measures for repairing security issues or protecting against security risks, the data leakage problem existing in multiple stages of the API life cycle is reduced, thereby achieving the security and reliability of the API throughout its life cycle.
[0009] In combination with the first aspect, in certain implementations of the first aspect, the security measures corresponding to this part of the stages or all of the stages include at least one of the following: in the design stage, a security field related to the security information of the target data resource is added to the description file of the target API; in the development stage, a consistency check is performed on the security information of the target data resource and the code corresponding to the security measures corresponding to this part of the stages or all of the stages; in the testing stage, security issues existing when the target API accesses the target data resource are checked by executing test cases, and the test cases are designed based on the security information of the target data resource; in the registration and management stage, the target data resource is identified and marked based on the security information of the target data resource; in the operation stage, the entry and exit security status of the target data resource is identified and monitored based on the security information of the target data resource.
[0010] According to the technical solution provided in this application, targeted measures are taken at multiple stages of the API life cycle to ensure data security when the API accesses data resources, thereby preventing the occurrence of API data leakage problems from the root.
[0011] In combination with the first aspect, in certain implementations of the first aspect, the security information of the target data resource includes one or more security level values corresponding to the target data resource, and the security level value corresponding to the target data resource is used to describe the security classification of the target data resource in the dimension of data sensitivity.
[0012] According to the technical solution provided in this application, the security classification on the data security dimension is described by the security level value, making the data classification clearer and easier to identify.
[0013] In combination with the first aspect, in certain implementations of the first aspect, one or more security level values correspond to one or more security labels, and the one or more security labels include any one or more of a data label, a desensitizing label, and an encryption label. The data label is used to describe the importance of data of the target data resource, the desensitizing label is used to describe whether the target data resource needs to be desensitized, and the encryption label is used to describe whether the target data resource needs to be encrypted. The API management platform takes security measures corresponding to some stages or all stages for the target data resource, including any one or more of the following: taking one or more protection measures for the target data resource, and the one or more protection measures are determined based on the security level value corresponding to the data label of the target data resource; desensitizing the target data resource based on the security level value corresponding to the desensitizing label of the target data resource, wherein the security level value corresponding to the desensitizing label of the target data resource is greater than or equal to the first threshold; encrypting the target data resource based on the security level value corresponding to the encryption label of the target data resource, wherein the security level value corresponding to the encryption label of the target data resource is greater than or equal to the second threshold.
[0014] According to the technical solution provided in the present application, by introducing multiple security level values and dividing them using security labels, the types of security measures are enriched, and targeted security measures can be taken according to different security level values.
[0015] In combination with the first aspect, in certain implementations of the first aspect, the data resources to be accessed by the target API include K data resources, the K data resources include the target data resources, the security information of the target data resources also includes a security level value corresponding to the target API, the security level value corresponding to the target API is determined based on the security level values corresponding to the K data resources, and the API management platform determines the security measures corresponding to the target data resources in some or all of the multiple stages of the target API's entire life cycle based on the security information of the target data resources, including: the API management platform determines the security measures corresponding to the target data resources in some or all of the multiple stages of the target API's entire life cycle based on the security level value corresponding to the target API.
[0016] According to the technical solution provided in this application, the same security measures are taken for multiple data resources to be accessed by the target API at multiple stages of the API life cycle, avoiding the waste of security protection resources.
[0017] In combination with the first aspect, in certain implementations of the first aspect, the security level value corresponding to the target API is determined based on the highest value among the security level values corresponding to the K data resources.
[0018] According to the technical solution provided in this application, the above-mentioned same security measures are determined based on the highest value of the security level values corresponding to the multiple data resources to be accessed by the target API, so that the above-mentioned same security measures can protect all data resources among the above-mentioned multiple data resources.
[0019] In a second aspect, an API management platform is provided, which includes: an acquisition module, used to acquire security information of a target data resource to be accessed by a target API, wherein the security information of the target data resource is used to describe the security classification of the target data resource in the data security dimension; a processing module, used to determine the security measures corresponding to the target data resource in some or all stages of multiple stages of the target API life cycle based on the security information of the target data resource, wherein the multiple stages of the target API life cycle include at least two of the design stage, the development stage, the testing stage, the registration management stage, and the operation stage, and take security measures corresponding to some or all stages on the target data resource in some or all stages, and obtain inspection results of the security measures corresponding to some or all stages; the processing module is also used to adjust the security measures corresponding to the target data resource in the second stage according to the inspection results of the security measures of the target data resource in the first stage, wherein the first stage and the second stage are respectively one stage of multiple stages, and take the adjusted security measures on the target data resource in the second stage to perform security detection or security protection on the target data resource in the second stage.
[0020] In combination with the second aspect, in certain implementations of the second aspect, the adjusted security measures include repair measures for repairing security issues existing in the target data resources in at least one second stage and / or protective measures for protecting against security risks existing in the target data resources in at least one second stage.
[0021] In combination with the second aspect, in some implementations of the second aspect, the security measures corresponding to these partial or all stages include at least one of the following: in the design stage, a security field related to the security information of the target data resource is added to the description file of the target API; in the development stage, a consistency check is performed on the security information of the target data resource and the code corresponding to one or more security measures corresponding to multiple stages; in the testing stage, security issues existing when the target API accesses the target data resource are checked by executing test cases, and the test cases are designed based on the security information of the target data resource; in the registration and management stage, the target data resource is identified and marked based on the security information of the target data resource; in the operation stage, the entry and exit security status of the target data resource is identified and monitored based on the security information of the target data resource.
[0022] In combination with the second aspect, in certain implementations of the second aspect, the security information of the target data resource includes one or more security level values corresponding to the target data resource, and the security level value corresponding to the target data resource is used to describe the security classification of the target data resource in the dimension of data sensitivity.
[0023] In combination with the second aspect, in certain implementations of the second aspect, one or more security level values correspond to one or more security labels, and the one or more security labels include any one or more of a data label, a desensitizing label, and an encryption label. The data label is used to describe the importance of the data of the target data resource, the desensitizing label is used to describe whether the target data resource needs to be desensitized, and the encryption label is used to describe whether the target data resource needs to be encrypted. Security measures corresponding to the partial or all stages are taken for the target data resource, including any one or more of the following: one or more protection measures are taken for the target data resource, and the one or more protection measures are determined based on the security level value corresponding to the data label of the target data resource; the target data resource is desensitized based on the security level value corresponding to the desensitizing label of the target data resource, wherein the security level value corresponding to the desensitizing label of the target data resource is greater than or equal to the first threshold; the target data resource is encrypted based on the security level value corresponding to the encryption label of the target data resource, wherein the security level value corresponding to the encryption label of the target data resource is greater than or equal to the second threshold.
[0024] In combination with the second aspect, in certain implementations of the second aspect, the data resources to be accessed by the target API include K data resources, the K data resources include the target data resources, the security information of the target data resources also includes a security level value corresponding to the target API, the security level value corresponding to the target API is determined based on the security level values corresponding to the K data resources, and the processing module is specifically used to determine the security measures corresponding to the target data resources in some or all of the multiple stages of the entire life cycle of the target API based on the security level value corresponding to the target API.
[0025] In combination with the second aspect, in certain implementations of the second aspect, the security level value corresponding to the target API is determined based on the highest value among the security level values corresponding to the K data resources.
[0026] In a third aspect, a computing device is provided, comprising a processor and a memory, wherein the memory is used to store instructions, and the processor is used to execute the instructions stored in the memory, so that the computing device executes the method in the first aspect or any possible implementation of the first aspect.
[0027] In a fourth aspect, a computing device cluster is provided, comprising at least two computing devices, each computing device comprising a processor and a memory, wherein the memory is used to store instructions, and the processor is used to call and execute the instructions from the memory, so that the computing device cluster executes the method in the first aspect or any possible implementation of the first aspect.
[0028] Optionally, the processor may be a general-purpose processor, which may be implemented by hardware or 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, which is implemented by reading software codes stored in a memory, which may be integrated in the processor or may be located outside the processor and exist independently.
[0029] In a fifth aspect, a chip is provided, which obtains instructions and executes the instructions to implement the method in the above-mentioned first aspect or any possible implementation manner of the first aspect.
[0030] Optionally, as an implementation, the chip includes a processor and a data interface, and the processor reads instructions stored in the memory through the data interface to execute the method in the above-mentioned first aspect or any possible implementation of the first aspect.
[0031] Optionally, as an implementation method, the chip may also include a memory, in which instructions are stored, and the processor is used to execute the instructions stored in the memory. When the instructions are executed, the processor is used to execute the method in the above-mentioned first aspect or any possible implementation method of the first aspect.
[0032] In a sixth aspect, a computer program product comprising instructions is provided. When the instructions are executed by a computing device or a computing device cluster, the computing device or the computing device cluster executes the method in the above-mentioned first aspect or any possible implementation manner of the first aspect.
[0033] In the seventh aspect, a computer-readable storage medium is provided, comprising computer program instructions. When the computer instructions are executed by a computing device or a computing device cluster, the computing device or the computing device cluster executes the method in the above-mentioned first aspect or any possible implementation manner of the first aspect.
[0034] By way of example, these computer-readable storage media include, but are not limited to, one or more of the following: read-only memory (ROM), programmable ROM (PROM), erasable PROM (EPROM), Flash memory, electrically EPROM (EEPROM), and hard drive.
[0035] Optionally, as an implementation manner, the above-mentioned storage medium may specifically be a non-volatile storage medium. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 It is a system diagram based on a cloud server system provided in an embodiment of the present application.
[0037] Figure 2 It is a schematic block diagram of the entire life cycle of an API provided in an embodiment of the present application.
[0038] Figure 3 It is a schematic flowchart of an API security management method provided in an embodiment of the present application.
[0039] Figure 4 This is an example diagram of an API security management method provided in an embodiment of the present application.
[0040] Figure 5 It is a schematic structural block diagram of an API management platform provided in an embodiment of the present application.
[0041] Figure 6 It is a schematic structural block diagram of a computing device provided in an embodiment of the present application.
[0042] Figure 7 It is a schematic structural block diagram of a computing device cluster provided in an embodiment of the present application.
[0043] Figure 8 It is a schematic structural block diagram of another computing device cluster provided in an embodiment of the present application. DETAILED DESCRIPTION
[0044] The following will describe the technical solutions in the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0045] Unless otherwise specified, all technical and scientific terms used in the embodiments of the present application have the same meaning as those commonly understood by those skilled in the art of the present application. The terms used in this application are only for the purpose of describing specific embodiments and are not intended to limit the scope of this application.
[0046] It should be understood that in the various embodiments of the present application, the size of the serial number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0047] In addition, in the embodiments of the present application, words such as "exemplary" and "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of the word "exemplary" is intended to present concepts in a concrete way.
[0048] In the embodiments of the present application, "corresponding (corresponding, relevant)" and "corresponding (corresponding)" can sometimes be used interchangeably. It should be pointed out that when the distinction between them is not emphasized, the meanings they intend to express are consistent.
[0049] The network architecture and business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. A person of ordinary skill in the art can appreciate that with the evolution of the network architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are equally applicable to similar technical problems.
[0050] References to "one embodiment" or "some embodiments" etc. described in this specification mean that a particular feature, structure or characteristic described in conjunction with the embodiment is included in one or more embodiments of the present application. Thus, the phrases "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear at different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0051] In the present application, "at least one" means one or more, and "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: including the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.
[0052] As enterprises continue to move to the Internet, more and more businesses are being migrated to the Internet. A large number of business interactions and external services have led to a large number of applications programming interfaces (APIs) being used by enterprises or teams. APIs are predefined functions. Applications encapsulate their service capabilities into APIs and open them to users.
[0053] There are various reasons for using APIs, including extracting data from a database, sending and saving data to a database, and pushing tasks to a queue, but the main purpose of APIs is to help users interact with applications in an automated way by using programs or scripts. When working in a virtual environment without API support, each step of the operation must be called manually by the user. Therefore, APIs become a key component of the business.
[0054] API is not only applicable to digital scenarios such as cloud services, the Internet of Things, and big data analysis, but can also help companies explore and maintain customers and build a new business ecosystem. For example, cloud services include multiple cloud applications or cloud products. Developers can develop cloud APIs to provide tenants with service interfaces for various resources of cloud applications or cloud products. Cloud APIs have the advantages of easy automation, easy remote calls, strong compatibility, and low system requirements. Tenants can call cloud APIs directly on the cloud platform, thereby improving the efficiency of calling frequently used functions.
[0055] To understand the cloud environment, Figure 1 A schematic diagram of a system based on a cloud server system is shown. Figure 1 As shown, the cloud management platform 110 is used to manage the infrastructure that provides multiple cloud services. The infrastructure includes multiple cloud data centers, each cloud data center includes multiple servers, and each server includes cloud service resources to provide corresponding cloud services to tenants.
[0056] The cloud management platform 110 provides an access interface (such as an interface or an application program interface (API)). The tenant can operate the client remote access access interface to register a cloud account and password on the cloud management platform and log in to the cloud management platform. After the cloud management platform successfully authenticates the cloud account and password, the tenant can further pay to select and purchase a virtual machine with specific specifications (processor, memory, disk) on the cloud management platform. After the payment is successful, the cloud management platform provides the remote login account and password of the purchased virtual machine, and the client can remotely log in to the virtual machine, install and run the tenant's application in the virtual machine. Tenants of cloud services can be individuals, enterprises, schools, hospitals, administrative agencies, etc.
[0057] The functions of the cloud management platform 110 include, but are not limited to, user console, computing management service, network management service, storage management service, authentication service, and image management service. The user console provides an interface or API to interact with tenants, the computing management service is used to manage servers running virtual machines and containers and bare metal servers, the network management service is used to manage network services (such as gateways, firewalls, etc.), the storage management service is used to manage storage services (such as data bucket services), the authentication service is used to manage tenant accounts and passwords, and the image management service is used to manage virtual machine images. Tenants can use the client 130 to log in to the cloud management platform 110 through the Internet 120 to manage the rented cloud services.
[0058] For example, in an embodiment of the present application, a tenant can call a cloud API through a cloud management platform, or can implement complete API life cycle management through an API gateway service or an API management application provided by the cloud management platform.
[0059] Since API is an application interface with service capabilities, API is the same as application program and also has the process of design and testing. That is, API also has a life cycle process from demand design to R&D and then to online launch. In order to achieve standardized management and efficient development of API, enterprises or R&D teams usually use API management platforms to manage multiple stages of the API's full life cycle. The API life cycle includes at least API design, API development, API testing, API operation and other stages. Figure 2 A schematic block diagram of the entire API life cycle provided by the present application is shown, which includes five stages: requirements analysis, security design, API development, security testing, and API operation.
[0060] It is worth noting that Figure 2 The API life cycle is only an example provided in the embodiments of the present application, and does not limit the scope of protection of the present application. The API life cycle may also include other stages, such as registration management, management and operation and maintenance. For example, users or tenants can view / go offline / copy / modify / delete the target API in the management and operation stage, or can monitor the user usage of the target API to achieve traffic management, or can expand and update the target API after going offline to improve the business value of the target API.
[0061] Below Figure 2The content of the multiple stages of the API life cycle contained in the article is introduced in detail. For the convenience of expression and considering that API is suitable for multiple digital scenarios such as cloud services, Internet of Things and big data analysis, the enterprises or design teams, developers or management and operation personnel who manage the multiple stages of the API life cycle are collectively referred to as "users or tenants" below.
[0062] During the demand analysis phase, users or tenants can determine the requirements of the target API, such as the actual usage scenarios of the target API, the input parameters of the target API, the value range of each input parameter, the return value of the target API, the data resources that the target API can access, the authentication and permission definition of the target API, etc. For another example, developers can also determine the services, functions or specific business requirements related to the business aspects of the API.
[0063] During the API design phase, users or tenants can generate an API specification based on the requirements of the target API determined during the requirements analysis phase. The API specification can describe the methods, operations, or any technical constraints supported by the interface, and output it as an interface definition description file. Developers can clarify the function, name, nature (functional services, data exchange, file exchange, etc.) of the target API, the input parameters and data types of the interface functions, the returned result data type, and other contents in the interface definition description file. Based on high-quality interface definition description files, front-end developers and back-end developers can collaborate efficiently and improve version iteration efficiency.
[0064] During the API development phase, users or tenants can design the internal business logic of the target API, that is, the design of the target API code, based on the interface definition description file in the security design phase. At this stage, developers can use plug-ins with specific functions to achieve personalized development of the target API. For example, developers pass the interface definition description file to the code warehouse, and the code automatic generation plug-in can automatically generate the framework code of the target API based on the content in the descriptive file. Based on this development model, when developing a new version, iterating functions or optimizing, developers only need to update the interface definition description file to automatically generate project engineering code or API interface documents.
[0065] During the security testing phase, users or tenants can generate test cases through data construction, and use test cases to perform localized testing or mock testing on the target API. For example, developers can arrange and combine the definitions of the target API in the interface definition description document to automatically generate test cases for various situations, such as boundary values, exception types, missing parameters, etc., to check whether the target API meets basic performance requirements.
[0066] During the API operation phase, users or tenants can monitor the performance, availability, call volume and other parameters of the target API runtime, thereby helping developers or managers analyze the details and indicators of the interface from a technical and business perspective to ensure that the performance and availability of the interface meet the standards.
[0067] In other embodiments of the present application, the multiple stages of the above API life cycle can be managed separately through multiple components of the API management platform. Figure 2 Correspondingly, the API management platform can include demand analysis components, API design components, development components, testing components, operation components, management and operation components, etc.
[0068] Although the full life cycle management of APIs can improve the efficiency of internal and external cooperation or cross-departmental collaboration, the security burden of API development by enterprises or R&D teams is relatively large. For example, users or tenants determine in the demand analysis phase that the target API needs to access sensitive data resources. These sensitive data resources may be subject to injection attacks, data leakage, parameter tampering and other risks during the API operation phase. For another example, users or tenants use framework code in the API development phase. The framework code only contains the process of obtaining data resources for the target API. When the API is obtaining or transmitting data resources, there is a risk that the data resources will be crawled. However, most monitoring methods in the API operation phase only consider the performance of the API runtime, and do not consider data resources. Therefore, enterprises or R&D teams must optimize and supervise APIs to improve the performance, reliability and security of APIs.
[0069] In order to solve the above-mentioned problems of API data security and API information leakage, the present application proposes a method 300 for API full life cycle security management. Based on the data resources accessed by the API, targeted measures are taken at multiple stages of the API full life cycle to ensure API data security. Figure 3 A schematic diagram of an API full lifecycle security management method 300 is shown, wherein the method 300 includes steps 310, 320, and 330. The method 300 can not only improve the availability, reliability, usability, and overall response performance of the API, but also improve the security of the API when accessing data resources from the source of the API data resources.
[0070] Optionally, the method 300 may be applied to an API management platform or a cloud management platform 110 . For example, the method 300 may be implemented through an API gateway service or an application provided by the cloud management platform 110 .
[0071] Step 310: Obtain security information of a target data resource to be accessed by a target API, where the security information of the target data resource is used to describe a security classification of the target data resource in a data security dimension.
[0072] It should be understood that the target data resource is the data resource to be accessed by the target API. In other words, the target data resource can be the data resource that the target API may access, as determined by the user or tenant during the demand analysis phase. The security information of the target data resource is used to describe the type of security classification of the target data resource in one or more data security dimensions. For example, the data resource can be application service data in the application field dimension, or confidential data in terms of data sensitivity. The security information and security classification of data resources will be introduced in detail below, so I will not go into details here.
[0073] The method for obtaining the security information of the target data resource may be to obtain the target data resource and the target data security information input by the user or tenant, or to obtain the target data resource input by the user or tenant, and then determine the security information of the target data resource based on the security information of all data resources stored in the database or data cache. This application does not limit the method of obtaining.
[0074] Step 320: Based on the security information of the target data resource, determine the security measures corresponding to some or all stages of the target data resource in the multiple stages of the target API life cycle, and take the security measures corresponding to some or all stages on the target data resource in these parts or all stages, and obtain the security measures inspection results corresponding to the target data resource in these parts or all stages.
[0075] It should be understood that the security measures corresponding to the multiple stages of the target API's life cycle are determined based on the security information of the target data resources. In other words, the security measures corresponding to target data resources of different data types at multiple stages of the target API's life cycle may be different. These security measures can conduct a comprehensive inspection or monitoring of the target data resources at multiple stages of the target API's life cycle, and identify security issues or possible security risks that may exist in the data resources from the root of the target API's data resources, that is, the security measures inspection results. The following article will introduce in detail the security measures corresponding to each of the multiple stages, which will not be elaborated here.
[0076] Step 330: Based on the security measures check results of the target data resources in the first stage, the corresponding security measures of the target data resources in the second stage are adjusted, and the adjusted security measures are taken for the target data resources in the second stage to perform security detection or security protection on the target data resources in the second stage.
[0077] It should be understood that the security measure inspection result may include the inspection result obtained after the security measure is used to check the possible security risks or existing security issues of the target data resources. In the case where the inspection result of the first stage in the multiple stages includes information such as security issues, security warnings, repair opinions or adjustment suggestions, the security measures corresponding to the second stage in the multiple stages can be adjusted to more comprehensive and reliable security measures.
[0078] The first stage and the second stage can be the same stage or different stages, that is, the security measures inspection results corresponding to each stage can not only play a repair role in that stage, but also provide feedback or guidance for other stages. For example, if the security issues in the first stage point to one or more unchecked security measures in the second stage, users can adjust the security measures in the second stage through the API management platform, such as adding repair measures to repair the security issues, adding inspection measures to check security risks, or adding inspection measures to further avoid the security issues in one or more stages after the first and second stages. Finally, by adopting the adjusted security measures in the second stage, the possible data leakage problem of the target API is further avoided.
[0079] Method 300 introduces the security information of the target data resources and takes targeted measures in some or all stages of the multiple stages of the target API's entire life cycle, thereby achieving full-process traceability of data security and refined security management throughout the entire life cycle, effectively improving the security and reliability of the target API.
[0080] The specific process of method 300 will be introduced below through a specific embodiment provided by the present application. Figure 4 The following is a schematic diagram of an API full life cycle management provided by this application. Figure 4 The example of the target data resource shown in is a personal credit record, and the examples of security information are data category, data level, desensitization level and encryption level. In multiple stages of the API life cycle, one or more security measures determined based on the security information of the personal credit record are also shown. It is worth noting that Figure 4 The target data resources, security information of the target data resources, multiple stages of the API life cycle, and security measures corresponding to the multiple stages are only examples and are not intended to limit this application. In the embodiments of this application, the number of target data resources can be multiple and each target data resource can correspond to different security information. The stages of the life cycle can also include only some stages instead of Figure 4All stages shown. The following will also introduce other possible implementations of the target data resources, the security information of the target data resources, the multiple stages of the API life cycle, and the security measures corresponding to the multiple stages. For the sake of convenience, the following will use the API management platform as the execution entity to manage the API life cycle.
[0081] First, in step 310, the target data resource and security information of the target data resource need to be determined.
[0082] Optionally, in other embodiments of the present application, the target data resource to be accessed by the target API may be determined according to an application field or application scenario of the target API.
[0083] Exemplarily, the target API can be an API in the financial field, and the target data resources can be identity authentication data, such as passwords, digital signatures, personal data of financial customers, such as ID number, name, financial account number, bank card number, etc., or customer data, such as the customer's mobile phone number, landline number and office address, etc.
[0084] Exemplarily, the target API may be an API in the field of life services, and the target data resource may be the user's personal data, such as name, ID number, mobile phone number, etc., or the user's real-time information data, such as the location of the mobile phone signal, network access records, etc. Figure 4 The personal credit record shown in can be regarded as a kind of real-time information data of the user.
[0085] For example, the target API may be an API corresponding to an application, the target data resource may be data stored in the application, and the application may also provide application services to users through the target API. For example, if the application is a weather forecast, users may access data resources in the weather forecast application, such as temperature, humidity, weather, wind direction, etc., through the target API.
[0086] After determining the data content of the target data resource, the user or tenant needs to determine the security information of the target data resource. The security information of the target data resource is used to describe the security classification corresponding to the target data resource.
[0087] like Figure 4 As shown, the target data resource may correspond to security information of multiple data dimensions, for example, the category on the data domain dimension is personal data, and the categories on the data sensitivity dimension and importance dimension are L4 data, data that does not require desensitization, and data that requires encryption. In other embodiments of the present application, the target data resource may correspond to only one security information, for example, a personal credit record may have only one security information, "Category: Personal Information". The present application does not limit the number of security classification types included in the security information.
[0088] Alternatively, if Figure 4 The "category: personal data" shown can be classified according to the field of the data. For example, the data in the three examples mentioned above can be classified as financial data, user information data, application data, or further classified as identity authentication data, personal information data, real-time data, weather data, etc. In other embodiments of the present application, the classification method can be divided into structured data with clearly defined data types, unstructured data with no unified internal structure of data types, and semi-structured data with a basic fixed structure model according to structural features. For example, pictures or videos in various formats can be classified as unstructured data, and log files, extensible markup language (XML) documents, and JavaScript object notation (JSON) documents can be classified as semi-structured data. In an embodiment of the present application, the classification method can also be other methods, such as classification into primary data, reference data, etc. according to data types, and the classification method is not limited here.
[0089] Table 1 shows a specific classification method for data. Different types of data resources are divided into financial data, market data, personal data and other security information. For example, if the target data resource to be accessed by the target API is a financial report, the security information of the financial report can be determined as financial data according to the classification method in Table 1. Similarly, Figure 4 The security information of personal credit reports can be identified as personal data. In the subsequent management of the API life cycle, data resources with different security information can correspond to different security measures. For example, the security measures corresponding to financial data and consumer data can be more comprehensive and detailed than those corresponding to market data and macroeconomic data.
[0090] Table 1
[0091] Data resource security information Data resources Financial Data Financial statements, financial reports, financial indicators Market Data Stock prices, trading volume, market analysis, investment risks Personal Data Personal credit records, personal credit reports, financial behavior analysis Macroeconomic data Exchange rate, trade volume …… ……
[0092] Optionally, in addition to classification based on the data category dimension, security information can also be used to describe the classification of data resources based on the data importance or sensitivity dimension.
[0093] Exemplarily, Table 2 and Table 3 show other possible classification methods of the data resources in Table 1. Data resources can be classified into different data types according to the value, sensitivity or scope of influence of the data. For example, the data resources in Table 2 are classified into public data, confidential data, and top secret data according to the degree of confidentiality, or the data resources in Table 3 are classified into domestic data, cross-border data, etc. according to the scope of influence.
[0094] Table 2
[0095] Data resource security information Data resources Top secret data Financial statements, financial indicators, personal credit records, personal credit reports Confidential Data Market analysis, investment risks, financial reports Public Data Exchange rates, trade volume, stock prices, trading volume …… ……
[0096] For example, the personal credit records in Table 1 are all personal data, but in Table 2, personal credit records are top secret data. Therefore, in addition to taking security measures for the above target data resources according to the classification method in Table 1, the API management platform can also take further security measures related to data resource confidentiality for the target data resources according to the classification method in Table 2.
[0097] Table 3
[0098] Data resource security information Data resources Domestic data Financial statements, financial indicators, personal credit records, personal credit reports Cross-border data Exchange rates, trade volume, stock prices, trading volume …… ……
[0099] For example, Table 3 shows the classification of data resources in Tables 1 and 2 according to the data impact scope. Similar to Table 2, the API management platform can add security measures related to domestic data or cross-border data in Table 3 based on Tables 1 and 2.
[0100] Alternatively, if Figure 4 The classification of data resources in terms of data importance or sensitivity can be displayed through the security level of the data resources. For example, the public data, confidential data, and top secret data mentioned above can be distinguished by the first level, the second level, and the third level. In other embodiments of the present application, the division of security levels can also be determined based on the degree of adverse effects caused by the leakage of data resources. Table 4 shows an example of classifying and grading data resources according to security levels.
[0101] Table 4
[0102] Security Level Level Definition Data resources L4 Data breaches can have significant impacts Personal credit record, financial indicators, ... L3 Data breaches can have a serious impact Financial statements, personal credit reports,... L2 Data breaches will have limited impact Financial behavior analysis, trading volume, ... L1 Data breaches will have a minor impact Exchange rates, trade volumes, stock prices, ...
[0103] For example, according to Table 4, Figure 4 The security level of personal credit records in the API management platform is L4. Figure 4 The security level value in the data resource is used to take security measures corresponding to the security level value. For example, the four security levels L1 to L4 correspond to the four security measures of "no inspection required", "careful inspection required", "repeated and careful review required", and "key inspection and key monitoring required".
[0104] Alternatively, if Figure 4The desensitization level and encryption level shown, the security information of the data resource may also include multiple types of security levels, or the security information may include multiple security labels. Each security label corresponds to one or more security levels. Security labels are used to distinguish different types of security levels, such as Figure 4 The security labels in can be data labels, desensitizing labels and encryption labels, wherein the data labels are used to describe the importance of the data of the target data resource, the desensitizing labels are used to describe whether the target data resource needs to be desensitized, and the encryption labels are used to describe whether the target data resource needs to be encrypted. Each security label corresponds to a security level value, namely, the data level, desensitizing level and encryption level. The method for determining the security level value of each security label can be similar to Table 4, that is, the security level of each security label corresponding to the data resource can be determined according to the table corresponding to more security labels.
[0105] Optionally, the security information of the data resource may have the above-mentioned multiple classification categories, or may have only one classification category. The API management platform may determine the security information of the data resource according to Tables 1 to 4 above, including: Figure 4 The four data categories of the personal credit record shown can also select one or more tables as a classification method for determining the security information of the data resource according to Tables 1 to 4. For example, if Table 4 has the highest weight among the four tables, the security information of the personal credit record can be determined as "L4" instead of all the security information contained in the four tables.
[0106] Optionally, the classification rules corresponding to the security classification can be the reuse of existing classification methods or classification rules mentioned above, can be different classification standards artificially formulated according to different business contents of the API, such as the classification table mentioned above, or can be the identification and classification of data resources through natural language processing (NLP), data mining and machine learning (ML) and other technologies. This application does not limit the process of how to perform security classification.
[0107] Optionally, the classification table shown above may not have a column of data resources but only evaluation criteria. For example, the third column "Data Resources" in Table 4 may be changed to "Evaluation Criteria", and the content of the "Evaluation Criteria" may be an evaluation of the impact of leakage of data resources. For example, when the security level is L4, the evaluation criteria corresponding to L4 may be "sensitive personal data defined by law, personal data defined in the technical specifications for personal financial protection". This application does not limit the specific representation of the table.
[0108] It is worth noting that the classification methods in all the tables shown above are examples, and the classification methods of this application are not limited in any way. Moreover, the application fields of the above tables can not only be the financial field shown in the embodiment, but also the application service field, etc.
[0109] Secondly, in step 320, after determining the target data resource and the security information corresponding to the target data resource, the API management platform determines the security measures corresponding to the target data resource at multiple stages in the entire life cycle of the target API after obtaining the target data resource and the security information corresponding to the target data resource.
[0110] In the embodiments of the present application, the target data resource may have corresponding security measures at all stages of the target API life cycle, or may have corresponding security measures at some stages of the target API life cycle, which is not limited by the present application. Figure 2 and Figure 4 Several of the multiple stages shown may also be Figure 2 and Figure 4 In addition to the multiple phases shown, there are other phases, such as the registration management phase. Figure 4 Taking the API as an example, this paper introduces the security measures that may correspond to multiple stages of the API life cycle, and how to determine the security measures based on the security information of the target data resources.
[0111] Optionally, the security measures corresponding to the demand analysis phase may include restricting users, restricting data resources, etc. For example, when determining the target data resources that may be accessed based on the usage scenario of the target API, the API full life cycle management platform can limit the amount of data of the target data resources to prevent excessive data from increasing the possibility of data resource leakage or reducing the efficiency of the data security processing process. For another example, when determining potential users who may use the target data resources, the API full life cycle management platform can clarify and define the permissions of all users in advance, screen out users who may have network attack behaviors based on strict analysis of user categories, and authorize access to users with high security.
[0112] For example, Figure 4As shown, the corresponding security measures for personal credit records in the demand analysis phase can be that the amount of data accessed by the target API to the personal credit record is small according to the "category: personal data" of the personal credit record, so the API management platform does not need to limit the amount of data on the personal credit record. If the target data resource is a corporate credit record, the category is "category: corporate data", such as the credit records of all branches or divisions of a company, then the API management platform can restrict the corporate credit record, for example, only displaying the credit records of half of the branches or divisions to facilitate the confidentiality of the information of some branches or divisions. In addition, the API management platform can also limit the user type accessing the personal credit record to corporate users related to financial services based on the user type of the personal credit record and the "data level: L4, encryption level: 1" in the security information, thereby screening out individual users with security risks.
[0113] Optionally, the security measures taken during the security design phase may be that the API management platform adds a field corresponding to the security information of the target data resource in the interface definition descriptive file. For example, if the security information of the target data resource includes data level L1, the API management platform can add a field corresponding to the security level "x-api-data:L1" in the interface definition descriptive file. For another example, if the security information of the target data resource includes that the target data resource is a non-public important resource, the API management platform can add a field corresponding to the security level "x-api-data:non-public,important" in the interface definition descriptive file. This security field can not only be used to describe security information from the perspective of API design, but can also be used in subsequent stages to formulate different security measures according to different types of data resources.
[0114] For example, according to Figure 4 For the security information of personal credit records shown, "x-api-data-type: personal data", "x-api-data-security: L4", "x-api-data-desensitization: 0" and "x-api-data-encryption: 1" can be added to the interface definition descriptive file. The security measures in other subsequent stages can be determined based on the information in this field, which will be described in detail below and will not be repeated here.
[0115] Optionally, the security measures taken in the API development phase can be that the API management platform automatically generates API framework codes containing security measures based on the code in the security code library and the interface definition descriptive file in the security design phase. For data levels L1 to L4, the API management platform can determine the framework codes of the security protection measures corresponding to L1 to L4 respectively. For the desensitization level and encryption level, the API management platform determines the level value corresponding to the target data packet resource to determine the corresponding framework code of the security measure. For example, the desensitization level may include three security level values of 0 (no desensitization required), 0.5 (to be determined) and 1 (desensitization required). When the API management platform determines that the desensitization level of the target data resource is 1 or greater than or equal to 0.5, it is determined that the target data resource needs to be desensitized, and the framework code corresponding to the security measure "needs desensitization" is generated. For another example, the encryption level may include three security level values of 0 (no encryption required), 0.5 (to be determined) and 1 (needs encryption). When the API management platform determines that the encryption level of the target data resource is 1 or greater than or equal to 0.5, it is determined that the target data resource needs to be encrypted, and the framework code corresponding to the security measure "needs encryption" is generated. In addition, the API management platform can also perform consistency checks on the codes corresponding to the target data resources and the corresponding field information of the target data resources in the interface definition descriptive file during the API development phase.
[0116] Exemplarily, the security measures corresponding to "x-api-data:L4" of personal credit records can be the above-mentioned "need to be verified in advance, need to be pre-tested before access", and the security measures corresponding to "encryption level: 1" can be the use of one or more encryption algorithms. The API management platform adds the framework code corresponding to "need to be verified in advance, need to be pre-tested before access" and "use one or more encryption algorithms" to the design code of the target API, so that when the target API accesses personal credit records, it can automatically verify and pre-test before access, and encrypt the personal credit records. Furthermore, by adding the framework code corresponding to the target data resource in the security design stage, the target API can pre-protect the target data resource before accessing the target data resource, avoiding the problem of data leakage in the process of transmitting the target data resource by the target API.
[0117] Optionally, the security measures taken during the security testing phase may be that the API management platform executes a test case. The test case is designed based on the security information of the target data resource, such as determining the test environment of the test case based on the security classification field of the target data resource, or determining the number of test steps and test parameters of the test case based on the data type of the target data resource.
[0118] Exemplarily, the security information of the test case can be exactly the same as the security information of the personal credit record, or the security level value included in the security information of the test case can be lower than the security level value included in the security information of the personal credit record. The API management platform determines whether there is a security risk in the process of the target API accessing the personal credit record by executing the test case accessed by the target API in a specific test environment, number of test steps, and test parameters during the security testing phase. Furthermore, the test cases in the security testing phase also have security information, rather than randomly generated test cases or test cases with different parameters, and the testing process is more targeted.
[0119] Optionally, the security measures taken during the API operation phase can be to perform security protection or status monitoring on the process when the target API accesses the target data resource according to the data type of the target data resource. For example, if the security classification of the target data resource is important data, the API management platform can automatically desensitize the target data resource when the target API accesses the target data resource, and detect the target data resource's entry and exit security status in the target API.
[0120] For example, since the security information of personal credit records includes "Category: personal data" and "Data level: L4", the API management platform focuses on monitoring the data entry and exit security status of personal credit records when the target API accesses personal credit records, such as displaying the traffic changes of personal credit records in real time, notifying events of drastic changes in traffic, or highlighting the entry and exit status of personal credit records.
[0121] In the embodiments of the present application, the multiple stages of the API life cycle and the corresponding security measures of the multiple stages are not limited to those mentioned above. For example, the API life cycle may also include a registration management stage for authentication. The security measures corresponding to the registration management stage may be to identify and mark the target data resources accessed during the registration process. The marked content may be the security level value of the target data resources. For another example, the security measures corresponding to the API operation stage may also be to limit the flow of some data resources with higher security levels.
[0122] Optionally, in some other embodiments of the present application, when the security information of the target data resource includes a security level value, the security information of the target data resource may also include a security level value corresponding to the target API. The data resource to be accessed by the target API may include multiple data resources, the multiple data resources include the target data resource, and the security information of each data resource in the multiple data resources includes a security level value. The security level value of the target API may be determined based on the security level values of the multiple data resources.
[0123] Exemplarily, if the multiple data resources to be accessed by the target API include personal credit records, personal credit reports and transaction volumes shown in Table 4, where the data level of the personal credit report is L3, the desensitization level is 1, and the encryption level is 0, and the data level of the transaction volume is L2, the desensitization level is 1, and the encryption level is 1. The security level value of the target API can be determined according to the average or maximum value of the security level values of the above data resources. For example, according to the maximum value, the data level of the target API can be L4, the desensitization level is 1, and the encryption level is 1. The API management platform takes security measures for all target data resources according to the security level value of the target API. For example, the desensitization level of personal credit records is 0, but the desensitization level of the target API is 1, so the API management platform desensitizes the personal credit records according to the desensitization level of the target API. For another example, the API management platform can track and monitor the target API for different degrees of inventory, vulnerabilities, failures or misconfigurations according to the security level value of the target API. For example, if the security level value of the target API is determined according to the average value of the security level values of multiple data resources, the API management platform can also track and monitor data resources with security level values higher than the target API.
[0124] Finally, in step 330, based on the security measures inspection results of the first phase of the API life cycle, the API management platform can adjust the security measures of the second phase and take the adjusted security measures for the target data resources of the second phase to perform security detection or security protection on the target data resources of the second phase.
[0125] Optionally, when the security measures inspection results of multiple stages in the API life cycle include security issues or security risks existing in one or more stages, the API management platform can add remediation measures for remediating the security issues or security risks. The stage where the security issues or security risks occur can be the same as the stage corresponding to the security measures inspection results, or can be before the stage corresponding to the security measures inspection results.
[0126] For example, during the consistency check of security fields and framework codes in the API development phase, the API management platform found that the framework code corresponding to the personal credit record was generated incorrectly, for example, a personal credit record with a data level of L4 corresponds to the framework code of the security measure with a data level of L3. At this time, the API management platform can add corresponding repair measures for the API development phase, such as re-performing the framework code generation process in the API development phase, or replacing the wrong framework code.
[0127] Exemplarily, in the test case execution results of the security testing phase, the API management platform detects that there is data leakage when the target API accesses the test case. For example, the data of the test case may still be crawled when the target API accesses the test case. At this time, the API management platform can adjust the security information of the personal credit record to a higher security level value, such as adjusting the desensitization level to 1, and modify the security fields and field values accordingly in the security design phase. The API management platform can also add framework code corresponding to the security measures for personal credit records during the API development phase, that is, increase the protection measures taken by the target API for personal credit records when accessing personal credit records.
[0128] Optionally, the security measures inspection results for multiple stages in the API life cycle may also include security protection guidance for one or more stages. The stage of adding or adjusting security measures may be before the stage of giving guidance, at the stage of giving guidance, or after the stage of giving guidance.
[0129] Exemplarily, the stage of adding or adjusting security measures may be before the stage of giving guidance, and may be the stage of giving guidance. For example, the guidance given in the in-and-out security status report of personal credit records during the API operation phase may be the need to limit the amount of data in personal credit records and the need to strengthen the monitoring and protection of personal credit records. According to the above guidance, the API management platform can adjust the data volume threshold and user type of personal credit records during the demand analysis phase, adjust the security field values corresponding to personal credit records during the security design phase, add attack behavior simulation tests to test cases during the security testing phase, add in-and-out status monitoring of test cases during the security testing phase for comparison with the in-and-out status of personal credit records during the API operation phase, and add data monitoring measures when the target API accesses personal credit records during the API operation phase.
[0130] Exemplarily, the stage of adding or adjusting security measures may be after the stage of guidance. For example, the guidance given during the security testing stage may be that there may be undiscovered security risks when the test case is running. The API management platform may add or adjust security measures during the API operation stage after the security testing stage, for example, adding or adjusting monitoring objects during the API operation stage such as the resource path of the API access to personal credit records or the number of incorrect API calls by each application.
[0131] Combined with the following Figure 5 The API management platform of the embodiment of the present application is introduced. It should be noted that: Figure 5 The API management platform shown can perform Figure 3It should be understood that the API management platform described below can execute the method of the aforementioned embodiment of the present application. In order to avoid unnecessary repetition, the repeated description is appropriately omitted when introducing the API management platform of the embodiment of the present application. Optionally, Figure 5 The API management platform in can be the cloud management platform in the cloud service.
[0132] Figure 5 is a schematic diagram of an API management platform according to an embodiment of the present application. Figure 5 The API management platform 500 shown includes: an acquisition module 510 and a processing module 520 .
[0133] Specifically, the acquisition module 510 is used to: acquire security information of a target data resource to be accessed by a target API, where the security information of the target data resource is used to describe a security classification of the target data resource in a data security dimension.
[0134] Specifically, processing module 520 is used to: determine, based on the security information of the target data resource, the security measures corresponding to the target data resource in some or all of the multiple stages of the target API life cycle, where the multiple stages of the target API life cycle include at least two of the design stage, the development stage, the testing stage, the registration management stage, and the operation stage, and take the security measures corresponding to the some or all of the stages on the target data resource in the some or all of the stages to obtain the inspection results of the security measures corresponding to the some or all of the stages.
[0135] Specifically, the processing module 520 is also used to: adjust the corresponding security measures of the target data resources in the second stage according to the inspection results of the security measures of the target data resources in the first stage, the first stage and the second stage are respectively a stage of multiple stages, and take the adjusted security measures for the target data resources of the second stage to perform security detection or security protection on the target data resources of the second stage.
[0136] The specific functions and beneficial effects of the acquisition module 510 and the processing module 520 are described in the above embodiments, and will not be repeated here for the sake of brevity.
[0137] The above modules can be implemented by software or hardware. For example, the implementation of the processing module 520 is described below by taking the processing module 520 as an example. Similarly, the implementation of the acquisition module 510 can refer to the implementation of the processing module 520.
[0138] As an example of a software functional unit, the processing module 520 may include code running on a computing instance. Among them, the computing instance may include at least one of a physical host (computing device), a virtual machine, and a container. Further, the above-mentioned computing instance may be one or more. For example, the processing module 520 may include code running on multiple hosts / virtual machines / containers. It should be noted that the multiple hosts / virtual machines / containers used to run the code may be distributed in the same region (region) or in different regions. Furthermore, the multiple hosts / virtual machines / containers used to run the code may be distributed in the same availability zone (AZ) or in different AZs, each AZ including a data center or multiple data centers with similar geographical locations. Among them, usually a region may include multiple AZs.
[0139] Similarly, multiple hosts / virtual machines / containers used to run the code can be distributed in the same virtual private cloud (VPC) or in multiple VPCs. Usually, a VPC is set up in a region. For cross-region communication between two VPCs in the same region and between VPCs in different regions, a communication gateway needs to be set up in each VPC to achieve interconnection between VPCs through the communication gateway.
[0140] As an example of a hardware functional unit, the processing module 520 may include at least one computing device, such as a server, etc. Alternatively, the processing module 520 may also be a device implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The PLD may be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.
[0141] The multiple computing devices included in the processing module 520 can be distributed in the same region or in different regions. The multiple computing devices included in the processing module 520 can be distributed in the same AZ or in different AZs. Similarly, the multiple computing devices included in the processing module 520 can be distributed in the same VPC or in multiple VPCs. The multiple computing devices included in the processing module 520 can be any combination of computing devices such as servers, ASICs, PLDs, CPLDs, FPGAs, and GALs.
[0142] The present application also provides a computing device 600. Figure 6 As shown, computing device 600 includes: bus 602, processor 604, memory 606 and communication interface 608. Processor 604, memory 606 and communication interface 608 communicate through bus 602. Computing device 600 can be a server or a terminal device. It should be understood that the present application does not limit the number of processors and memories in computing device 600.
[0143] The bus 602 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 The bus 602 may include a path for transmitting information between various components of the computing device 600 (eg, the memory 606, the processor 604, and the communication interface 608).
[0144] The processor 604 may include any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).
[0145] The memory 606 may include a volatile memory, such as a random access memory (RAM). The processor 904 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid state drive (SSD).
[0146] The memory 606 stores executable program codes, and the processor 604 executes the executable program codes to respectively implement the functions of the acquisition module 610 and the processing module 620, thereby implementing the above-mentioned method for managing the security of the application program interface API. That is, the memory 606 stores instructions for executing the above-mentioned method for managing the security of the application program interface API.
[0147] The communication interface 608 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the computing device 600 and other devices or communication networks.
[0148] The embodiment of the present application also provides a computing device cluster. The computing device cluster includes at least two computing devices. The computing device can be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device can also be a terminal device such as a desktop computer, a laptop computer, or a smart phone.
[0149] like Figure 7 As shown, the computing device cluster includes at least two computing devices 600. The memory 606 in the multiple computing devices 600 in the computing device cluster may store the same instructions for executing the above-mentioned method for managing application program interface API security.
[0150] In some possible implementations, the memory 606 of the multiple computing devices 600 in the computing device cluster may also store partial instructions for executing the above-mentioned method for managing application program interface API security. In other words, the combination of one or more computing devices 600 can jointly execute the instructions for executing the above-mentioned method for managing application program interface API security.
[0151] It should be noted that the memory 606 in different computing devices 600 in the computing device cluster can store different instructions, which are respectively used to execute part of the functions of the above-mentioned apparatus. That is, the instructions stored in the memory 606 in different computing devices 600 can implement the functions of one or more modules in the acquisition module and the processing module.
[0152] In some possible implementations, multiple computing devices in a computing device cluster may be connected via a network, which may be a wide area network or a local area network. Figure 8 A possible implementation is shown. Figure 8 As shown, two computing devices 600A and 600B are connected via a network. Specifically, the network is connected via a communication interface in each computing device. In this type of possible implementation, the memory 606 in the computing device 600A stores instructions for the functions of the acquisition module. At the same time, the memory 606 in the computing device 600B stores instructions for the functions of the execution processing module.
[0153] It should be understood that Figure 8 The functions of the computing device 600A shown in FIG. 6A may also be completed by multiple computing devices 600. Similarly, the functions of the computing device 600B may also be completed by multiple computing devices 600.
[0154] An embodiment of the present application also provides a chip, which includes a processor and a data interface. The processor reads instructions stored in a memory through the data interface to execute the above-mentioned method of application program interface API security management.
[0155] The embodiment of the present application also provides a computer program product including instructions. The computer program product may be a software or program product including instructions that can be run on a computing device or stored in any available medium. When the computer program product is run on at least one computing device, the at least one computing device executes the above-mentioned method for API security management.
[0156] The embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that can be stored by the computing device or a data storage device such as a data center containing one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk). The computer-readable storage medium includes instructions that instruct the computing device to execute the above-mentioned method for application program interface API security management.
[0157] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0158] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the protection scope of the technical solutions of the embodiments of the present application.
[0159] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and modules described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0160] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0161] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0162] In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
[0163] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program codes.
[0164] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for security management of an application program interface (API), characterized in that: The method is applied to an API management platform, and the method includes: The API management platform obtains security information of a target data resource to be accessed by a target API, where the security information of the target data resource is used to describe a security classification of the target data resource in a data security dimension; The API management platform determines, based on the security information of the target data resource, security measures corresponding to some or all of the multiple stages of the target API life cycle, where the multiple stages of the target API life cycle include at least two of the design stage, the development stage, the testing stage, the registration management stage, and the operation stage; The API management platform takes security measures corresponding to the partial or all stages on the target data resource in the partial or all stages, and obtains inspection results of the security measures corresponding to the partial or all stages; The API management platform adjusts the security measures corresponding to the target data resource in the second stage according to the inspection results of the security measures of the target data resource in the first stage, wherein the first stage and the second stage are respectively one stage of the multiple stages; The API management platform takes adjusted security measures for the target data resources in the second phase to perform security detection or security protection on the target data resources in the second phase.
2. The method according to claim 1, characterized in that The adjusted security measures include repair measures for repairing security issues existing in the target data resource in the second stage and / or protection measures for protecting against security risks existing in the target data resource in the second stage.
3. The method according to claim 1 or 2, characterized in that: The security measures corresponding to some or all of the stages include at least one of the following: In the design phase, security fields related to the security information of the target data resource are added to the description file of the target API; During the development phase, a consistency check is performed on the security information of the target data resource and the codes corresponding to the security measures corresponding to some or all stages; During the testing phase, security issues existing when the target API accesses the target data resource are checked by executing test cases, wherein the test cases are designed based on security information of the target data resource; In the registration management stage, the target data resource is identified and marked according to the security information of the target data resource; During the operation phase, the entry and exit security status of the target data resource is identified and monitored based on the security information of the target data resource.
4. The method according to any one of claims 1 to 3, characterized in that: The security information of the target data resource includes one or more security level values corresponding to the target data resource, and the security level value corresponding to the target data resource is used to describe the security classification of the target data resource in the dimension of data sensitivity.
5. The method according to claim 4, characterized in that The one or more security level values correspond to one or more security labels, and the one or more security labels include any one or more of a data label, a desensitizing label, and an encryption label. The data label is used to describe the importance of the data of the target data resource. The desensitizing label is used to describe whether the target data resource needs to be desensitized. The encryption label is used to describe whether the target data resource needs to be encrypted. The API management platform takes security measures corresponding to some or all of the stages for the target data resource, including any one or more of the following: Taking one or more protection measures for the target data resource, wherein the one or more protection measures are determined according to the security level value corresponding to the data tag of the target data resource; Desensitizing the target data resource according to the security level value corresponding to the desensitizing label of the target data resource, wherein the security level value corresponding to the desensitizing label of the target data resource is greater than or equal to a first threshold; The target data resource is encrypted according to a security level value corresponding to the encryption tag of the target data resource, wherein the security level value corresponding to the encryption tag of the target data resource is greater than or equal to a second threshold.
6. The method according to claim 4 or 5, characterized in that: The data resources to be accessed by the target API include K data resources, the K data resources include the target data resource, the security information of the target data resource also includes a security level value corresponding to the target API, and the security level value corresponding to the target API is determined according to the security level values corresponding to the K data resources, The API management platform determines, based on the security information of the target data resource, security measures corresponding to some or all of the multiple stages of the target API life cycle, including: The API management platform determines the security measures corresponding to some or all stages of the target data resource in multiple stages of the entire life cycle of the target API according to the security level value corresponding to the target API.
7. The method according to claim 6, characterized in that The security level value corresponding to the target API is determined according to the highest value of the security level values corresponding to the K data resources.
8. An API management platform, characterized in that: include: An acquisition module is used to: acquire security information of a target data resource to be accessed by a target API, wherein the security information of the target data resource is used to describe a security classification of the target data resource in a data security dimension; A processing module, used to: determine, according to the security information of the target data resource, security measures corresponding to some or all of the multiple stages of the target API life cycle, wherein the multiple stages of the target API life cycle include at least two of a design stage, a development stage, a testing stage, a registration management stage, and an operation stage, and take security measures corresponding to some or all of the stages for the target data resource in the partial or all of the stages, and obtain inspection results of the security measures corresponding to the partial or all of the stages; The processing module is also used to: adjust the corresponding security measures of the target data resources in the second stage according to the inspection results of the security measures of the target data resources in the first stage, the first stage and the second stage are respectively one stage of the multiple stages, and take the adjusted security measures for the target data resources in the second stage to perform security detection or security protection on the target data resources in the second stage.
9. The API management platform according to claim 8, characterized in that: The adjusted security measures include repair measures for repairing security issues existing in the target data resource in the second stage and / or protection measures for protecting against security risks existing in the target data resource in the second stage.
10. The API management platform according to claim 8 or 9, characterized in that: The security measures corresponding to some or all of the stages include at least one of the following: In the design phase, security fields related to the security information of the target data resource are added to the description file of the target API; During the development phase, a consistency check is performed on the security information of the target data resource and the codes corresponding to the security measures corresponding to some or all stages; During the testing phase, security issues existing when the target API accesses the target data resource are checked by executing test cases, wherein the test cases are designed based on security information of the target data resource; In the registration management stage, the target data resource is identified and marked according to the security information of the target data resource; During the operation phase, the entry and exit security status of the target data resource is identified and monitored based on the security information of the target data resource.
11. The API management platform according to any one of claims 8 to 10, characterized in that: The security information of the target data resource includes one or more security level values corresponding to the target data resource, and the security level value corresponding to the target data resource is used to describe the security classification of the target data resource in the dimension of data sensitivity.
12. The API management platform according to claim 11, characterized in that: The one or more security level values correspond to one or more security labels, and the one or more security labels include any one or more of a data label, a desensitizing label, and an encryption label. The data label is used to describe the importance of the data of the target data resource. The desensitizing label is used to describe whether the target data resource needs to be desensitized. The encryption label is used to describe whether the target data resource needs to be encrypted. The security measures corresponding to the partial or all stages are taken on the target data resource, including any one or more of the following: Taking one or more protection measures for the target data resource, wherein the one or more protection measures are determined according to the security level value corresponding to the data tag of the target data resource; Desensitizing the target data resource according to the security level value corresponding to the desensitizing label of the target data resource, wherein the security level value corresponding to the desensitizing label of the target data resource is greater than or equal to a first threshold; The target data resource is encrypted according to a security level value corresponding to the encryption tag of the target data resource, wherein the security level value corresponding to the encryption tag of the target data resource is greater than or equal to a second threshold.
13. The API management platform according to claim 11 or 12, characterized in that: The data resources to be accessed by the target API include K data resources, the K data resources include the target data resource, the security information of the target data resource also includes a security level value corresponding to the target API, and the security level value corresponding to the target API is determined according to the security level values corresponding to the K data resources, The processing module is specifically used to determine the security measures corresponding to some or all stages of the target data resource in multiple stages of the entire life cycle of the target API according to the security level value corresponding to the target API.
14. The API management platform according to claim 13, characterized in that: The security level value corresponding to the target API is determined according to the highest value of the security level values corresponding to the K data resources.
15. A computing device, characterized in that: The computer comprises a processor and a memory, wherein the processor is configured to execute instructions stored in the memory so that the computing device executes the method according to any one of claims 1 to 7.
16. A computing device cluster, characterized in that: include: at least two computing devices, each computing device comprising a processor and a memory; The processors of the at least two computing devices are configured to execute instructions stored in the memories of the at least two computing devices, so that the computing device cluster executes the method according to any one of claims 1 to 7.
17. A computer program product comprising instructions, characterized in that When the instructions are executed by a computing device, the computing device is caused to perform the method according to any one of claims 1 to 7; Alternatively, when the instruction is executed by a computing device cluster, the computing device cluster executes the method as claimed in any one of claims 1 to 7.
18. A computer readable medium, characterized in that comprising a computer program which, when executed on a computing device, causes the computer to perform the method as claimed in any one of claims 1 to 7; Alternatively, when the computer program is executed on a computing device cluster, the computer is enabled to execute the method according to any one of claims 1 to 7.
Citation Information
Cited By
API (Application Program Interface) data security implementation method and gateway
CN120200813A
Method for application program interface security management and API management platform
EP4668106A1
Method for application program interface security management and API management platform
WO2024198691A1
