Method for application program interface security management and API management platform
By obtaining and utilizing the security information of data resources throughout the API life cycle and implementing multi-stage security measures, the problem of API data leakage is solved, and the security management of API data resources and the security and reliability of the entire life cycle are achieved.
Patent Information
- Application Number
- PCT/CN2024/074440
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-27
- Filing Date
- 2024-01-29
- Publication Date
- 2024-10-03
AI Technical Summary
Existing technologies are difficult to effectively manage data security throughout the entire life cycle of APIs, leading to serious API data leakage problems, especially in the API design, development and operation phases, where comprehensive security monitoring and protection measures are lacking.
An API security management method is proposed to obtain the security information of target data resources at multiple stages of the API life cycle, and determine and implement corresponding security measures, including adding security fields in the design stage, code consistency checking in the development stage, Execution of security test cases in the testing phase, identification and marking in the registration management phase, security status monitoring in the running phase, encryption and desensitization according to the security level value to ensure the security of data resources.
It effectively improves data security in the entire API life cycle, reduces the risk of data leakage, prevents API data leakage from the root cause, and enhances the security and reliability of API access to data resources.
Smart Images

Figure CN2024074440_03102024_PF_FP_ABST
Abstract
Description
A method for application program interface security management and API management platform
[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on March 27, 2023, with application number 202310308939.3, and priority to the Chinese patent application entitled “A method for application program interface security management and API management platform”, all contents of which are incorporated by reference into this application. Technical Field
[0002] The present invention relates 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
[0003] In the digital age, APIs have become a source of competitiveness for many companies' technological and economic models. They are not only applicable to digital scenarios like cloud services, the Internet of Things, and big data analytics, but also help companies discover and retain customers and build entirely new business ecosystems. As APIs demonstrate their immense value, they have become a frequent target for cyber attackers, who can exploit them to gain unauthorized access to a company's application data. API attacks are experiencing exponential growth.
[0004] However, at the current stage, data resources need to be circulated and interacted between enterprises and users, and between enterprises through APIs, which leads to the problem of API data leakage.
[0005] Summary of the Invention
[0006] 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 the multiple stages of the API life cycle.
[0007] 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 the 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 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 target data resource in the partial or all stages 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 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 the multiple stages; the API management platform takes 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.
[0008] 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 throughout the API life cycle.
[0009] 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 resources in the second stage and / or protective measures for protecting the target data resources from security risks existing in the second stage.
[0010] 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, and the security and reliability of the API throughout its life cycle are achieved.
[0011] In combination with the first aspect, in some 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.
[0012] 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.
[0013] 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.
[0014] According to the technical solution provided in this application, security classification on the data security dimension is described by security level values, making data classification clearer and easier to identify.
[0015] In combination with the first aspect, in some 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 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. The API management platform takes security measures corresponding to some 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.
[0016] According to the technical solution provided in this 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.
[0017] 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 the 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 stages 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 stages of the multiple stages of the target API's entire life cycle based on the security level value corresponding to the target API.
[0018] 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.
[0019] 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.
[0020] 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.
[0021] In a second aspect, an API management platform is provided, which includes: an acquisition module for acquiring 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 the data security dimension; a processing module for determining, based on the security information of the target data resource, the security measures corresponding to the target data resource in some or all stages 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 taking security measures corresponding to some or all stages on the target data resource in some or all stages, and obtaining 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 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 the multiple stages, and taking 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.
[0022] 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.
[0023] In combination with the second aspect, in some implementations of the second aspect, the security measures corresponding to these stages 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.
[0024] 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 data sensitivity dimension.
[0025] 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 these 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 a 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 a second threshold.
[0026] 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 the 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 target API's entire life cycle based on the security level value corresponding to the target API.
[0027] 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.
[0028] 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.
[0029] 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 run 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.
[0030] Optionally, the processor may be a general-purpose processor, which may be implemented in hardware or software. When implemented in hardware, the processor may be a logic circuit, an integrated circuit, or the like; when implemented in software, the processor may be a general-purpose processor implemented by reading software code stored in a memory, which may be integrated into the processor or located independently of the processor.
[0031] 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.
[0032] 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.
[0033] 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.
[0034] 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 of the first aspect.
[0035] 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 of the first aspect.
[0036] 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 a hard drive.
[0037] Optionally, as an implementation manner, the above-mentioned storage medium may specifically be a non-volatile storage medium. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] FIG1 is a schematic diagram of a system based on a cloud server system provided in an embodiment of the present application.
[0039] FIG2 is a schematic block diagram of the entire life cycle of an API provided in an embodiment of the present application.
[0040] FIG3 is a schematic flowchart of an API security management method provided in an embodiment of the present application.
[0041] FIG4 is an example diagram of an API security management method provided in an embodiment of the present application.
[0042] FIG5 is a schematic structural block diagram of an API management platform provided in an embodiment of the present application.
[0043] FIG6 is a schematic structural block diagram of a computing device provided in an embodiment of the present application.
[0044] FIG7 is a schematic structural block diagram of a computing device cluster provided in an embodiment of the present application.
[0045] FIG8 is a schematic structural block diagram of another computing device cluster provided in an embodiment of the present application. DETAILED DESCRIPTION
[0046] The following will describe the technical solutions in the embodiments of this application in conjunction with the drawings in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0047] 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 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.
[0048] 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.
[0049] Additionally, in the embodiments of this application, words such as "exemplary" and "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described in this application as "exemplary" should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of the word "exemplary" is intended to present concepts in a concrete manner.
[0050] In the embodiments of the present application, “corresponding” and “relevant” may sometimes be used interchangeably. It should be noted that when the distinction between them is not emphasized, the meanings they intend to express are consistent.
[0051] 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 skilled in the art will 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.
[0052] References to "one embodiment" or "some embodiments" in this specification mean that a particular feature, structure, or characteristic described in conjunction with that embodiment is included in one or more embodiments of the present application. Thus, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," and "in yet other embodiments" appearing in various places in this specification do not necessarily refer to the same embodiment, but rather mean "one or more but not all embodiments," unless otherwise specifically emphasized. The terms "including," "comprising," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.
[0053] In this application, "at least one" means one or more, and "more" 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 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.
[0054] As enterprises continue to move online, more and more businesses are migrating to the internet. This massive amount of business interaction and external services has led to companies and teams extensively using application programming interfaces (APIs). APIs are predefined functions that applications encapsulate their service capabilities into and make available to users.
[0055] While APIs can be used for a variety of reasons, including extracting data from a database, sending and storing data in a database, and pushing tasks to a queue, their primary purpose is to help users interact with applications in an automated manner using programs or scripts. When working in a virtual environment without API support, every step must be manually invoked by the user. Therefore, APIs become a critical component of a business.
[0056] APIs are not only applicable to digital scenarios such as cloud services, the Internet of Things, and big data analytics, but can also help companies discover and maintain customers and build new business ecosystems. 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 in these cloud applications or cloud products. Cloud APIs offer advantages such as ease of automation, ease of remote invocation, 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.
[0057] To facilitate understanding of the cloud environment, Figure 1 shows a system diagram based on a cloud server system. As shown in Figure 1, the cloud management platform 110 is used to manage the infrastructure that provides multiple cloud services. The infrastructure includes multiple cloud data centers, each of which includes multiple servers. Each server contains cloud service resources and provides corresponding cloud services to tenants.
[0058] The cloud management platform 110 provides an access interface (such as an interface or application program interface (API)). Tenants can use the client to remotely access the 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 successfully made, the cloud management platform provides the remote login account and password for the purchased virtual machine. The client can remotely log in to the virtual machine and install and run the tenant's application in the virtual machine. Tenants of cloud services can be individuals, enterprises, schools, hospitals, administrative agencies, etc.
[0059] The functions of the cloud management platform 110 include, but are not limited to, a user console, computing management services, network management services, storage management services, authentication services, and image management services. The user console provides an interface or API for interacting with tenants. The computing management service is used to manage servers running virtual machines and containers, as well as bare metal servers. The network management service is used to manage network services (such as gateways and firewalls). 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. 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 via the Internet 120 to manage the rented cloud services.
[0060] For example, in an embodiment of the present application, tenants can call cloud APIs through a cloud management platform, or they can implement complete API lifecycle management through the API gateway service or API management application provided by the cloud management platform.
[0061] Since API is an application-type interface with service capabilities, API is the same as application program and also has processes such as design and testing. That is, API also has a life cycle process from demand design, to research and development, and then to online launch. In order to achieve standardized management and efficient development of APIs, enterprises or R&D teams usually use API management platforms to manage multiple stages of the API's life cycle. The API life cycle includes at least API design, API development, API testing, API operation and other stages. Figure 2 shows a schematic block diagram of the API life cycle provided by this application, which includes five stages: demand analysis, security design, API development, security testing and API operation.
[0062] It is worth noting that the API life cycle in Figure 2 is only an example provided in the embodiment of this application and does not limit the scope of protection of this application. The API life cycle can also include other stages, such as registration management, management and operation and maintenance, etc. For example, users or tenants can view / delete / copy / modify / delete the target API during the management and operation stage, or monitor the user usage of the target API to achieve traffic management, or expand and update the target API after it is offline to improve the business value of the target API.
[0063] The following details the various stages of the API lifecycle shown in Figure 2. For ease of presentation and considering that APIs are applicable to multiple digital scenarios such as cloud services, the Internet of Things, and big data analytics, the following refers to the enterprises, design teams, developers, or management and operations personnel who manage the various stages of the API lifecycle as "users or tenants."
[0064] During the requirements analysis phase, users or tenants can determine the requirements for the target API, such as the actual usage scenarios, the input parameters, the range of values for each input parameter, the return value, the data resources accessible to the target API, and the authentication and permission definitions for the target API. Developers can also identify the business-related services, functions, or specific business requirements of the API.
[0065] 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. This API specification can describe the methods, operations, or any technical constraints supported by the interface and output it as an interface definition description file. In the 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 content. Based on high-quality interface definition description files, front-end developers and back-end developers can collaborate efficiently and improve the efficiency of version iteration.
[0066] During the API development phase, users or tenants can design the target API's internal business logic, specifically the target API code, based on the interface definition file from the security design phase. Currently, developers can customize the development of target APIs using plugins with specific functions. For example, developers can pass the interface definition file to a code repository, and a code generation plugin can automatically generate the target API's framework code based on the content within the file. Based on this development model, when developing new versions, iterating on features, or optimizing them, developers only need to update the interface definition file to automatically generate project engineering code or API interface documentation.
[0067] During the security testing phase, users or tenants can generate test cases based on data construction and use them to perform localized testing or mock testing on the target API. For example, developers can arrange and combine the target API definitions in the interface definition document to automatically generate test cases for various scenarios, such as boundary values, exception types, and missing parameters, to check whether the target API meets basic performance requirements.
[0068] 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 the technical and business levels to ensure that the performance and availability of the interface meet the standards.
[0069] In other embodiments of the present application, the multiple stages of the API lifecycle can be managed separately through multiple components of the API management platform. For example, corresponding to Figure 2, the API management platform can include a requirements analysis component, an API design component, a development component, a testing component, an operation component, and a management and operation component.
[0070] Although full lifecycle management of APIs can improve the efficiency of internal and external collaboration or cross-departmental collaboration within an enterprise, the security burden of developing APIs for enterprises or R&D teams is relatively high. For example, during the requirements analysis phase, a user or tenant determines that the target API needs to access sensitive data resources. These sensitive data resources may be subject to risks such as injection attacks, data leakage, and parameter tampering during the API operation phase. For another example, during the API development phase, a user or tenant uses framework code that only includes 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 during the API operation phase only consider the performance of the API at runtime, and do not consider data resources. Therefore, enterprises or R&D teams must optimize and monitor APIs to improve their performance, reliability, and security.
[0071] In order to solve the above-mentioned problems of API data security and API information leakage, this 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 from multiple stages of the API full life cycle to ensure the data security of the API. Figure 3 shows a schematic diagram of the API full life cycle security management method 300, where the method 300 includes steps 310, 320, and 330. The method 300 can not only improve the availability, reliability, ease of use, 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.
[0072] 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 .
[0073] Step 310: Obtain security information of the target data resource to be accessed by the target API. 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.
[0074] 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 user or tenant determined during the requirements analysis phase may access by the target API. 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 domain dimension, or confidential data in the data sensitivity dimension. The security information and security classification of data resources will be described in detail below and will not be repeated here.
[0075] The method for obtaining the security information of the target data resource can 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.
[0076] 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.
[0077] It should be understood that the security measures corresponding to the various stages of the target API's lifecycle are determined based on the security information of the target data resource. In other words, the security measures corresponding to target data resources of different data types at various stages of the target API's lifecycle may be different. These security measures can comprehensively inspect or monitor the target data resource at multiple stages of the target API's lifecycle, identifying security issues or potential security risks that may exist in the data resource at its root, i.e., the security measures inspection results. The security measures corresponding to each of these multiple stages will be detailed below and will not be elaborated here.
[0078] Step 330: Based on the security measures inspection results of the target data resources in the first stage, adjust the corresponding security measures of the target data resources in the second stage, 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.
[0079] It should be understood that the security measures inspection results may include the inspection results obtained after the security measures have been used to investigate possible security risks or existing security issues in the target data resources. If the inspection results of the first stage of the multiple stages include information such as security issues, security warnings, remediation suggestions, or adjustment recommendations, the security measures corresponding to the second stage of the multiple stages may be adjusted to more comprehensive and reliable security measures.
[0080] The first and second stages 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 fix the security issues, adding inspection measures to check for security risks, or adding inspection measures to further avoid the security issues in one or more stages after the first and second stages. Ultimately, by adopting the adjusted security measures in the second stage, the possible data leakage problem of the target API is further avoided.
[0081] Method 300 introduces the security information of the target data resources and takes targeted measures in some or all stages of the target API's life cycle, thereby achieving full-process traceability of data security and refined security management throughout the life cycle, effectively improving the security and reliability of the target API.
[0082] The specific process of method 300 will be introduced below through a specific embodiment provided by this application. Figure 4 shows a schematic diagram of an API full life cycle management provided by this application. Among them, the example of the target data resource shown in Figure 4 is a personal credit record, and the examples of security information are data category, data level, desensitization level and encryption level. At multiple stages of the API full 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 the target data resource, the security information of the target data resource, the multiple stages of the API full life cycle, and the security measures corresponding to the multiple stages in Figure 4 are only examples and do not limit this application in any way. In the embodiment 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 full life cycle can also include only some stages instead of all the stages shown in Figure 4. Other possible embodiments of the target data resource, the security information of the target data resource, the multiple stages of the API full life cycle, and the security measures corresponding to the multiple stages will also be introduced below. For convenience of expression, the API management platform is used as the execution entity to manage the API full life cycle.
[0083] First, in step 310 , the target data resource and security information of the target data resource need to be determined.
[0084] 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.
[0085] For example, 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.
[0086] For example, the target API can be an API in the field of life services, and the target data resource can be a user's personal data, such as name, ID number, mobile phone number, etc., or a user's real-time information data, such as mobile phone signal location, network access history, etc. The personal credit record shown in Figure 4 can be considered as a type of user's real-time information data.
[0087] For example, the target API can be the API corresponding to an application, the target data resource can be the data stored in the application, and the application can also provide application services to users through the target API. For example, if the application is a weather forecast, users can use the target API to access the data resources in the weather forecast application, such as temperature, humidity, weather, wind direction, etc.
[0088] 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.
[0089] As shown in Figure 4, the target data resource can correspond to security information of multiple data dimensions, for example, the category in the data domain dimension is personal data, and the categories in 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". This application does not limit the number of security classification types included in the security information.
[0090] Optionally, as shown in Figure 4 as "Category: Personal Data", the classification method can be based on 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 structural model based on structural characteristics. 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. based on data type, and the classification method is not limited here.
[0091] Table 1 shows a specific data classification method, where different types of data resources are divided into security information such as financial data, market data, and personal data. For example, if the target data resource to be accessed by the target API is a financial statement, the security information of the financial statement can be determined as financial data based on the classification method in Table 1. Similarly, the security information of the personal credit report in Figure 4 can be determined as personal data. In the subsequent management of the API throughout its lifecycle, 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.
[0092] Table 1
[0093] 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.
[0094] For example, Table 2 and Table 3 show other possible classification methods for 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.
[0095] Table 2
[0096] For example, the personal credit records in Table 1 are all personal data, but in Table 2, they are classified as top-secret data. Therefore, in addition to taking security measures for the target data resources based on the classification in Table 1, the API management platform can also take further security measures related to data resource confidentiality based on the classification in Table 2.
[0097] Table 3
[0098] For example, Table 3 shows the classification of data resources in Tables 1 and 2 according to the scope of data impact. 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.
[0099] Optionally, as shown in the security levels in FIG4 , the classification of data resources in terms of data importance or sensitivity can be displayed by 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 level.
[0100] Table 4
[0101] For example, according to Table 4, the security level of the personal credit record in Figure 4 is L4. The API management platform can take security measures corresponding to the security level values in Figure 4 for the data resources. For example, the four security levels L1 to L4 correspond to the security measures of "no inspection required," "careful inspection required," "requires multiple careful reviews," and "requires focused inspection and monitoring," respectively.
[0102] Optionally, as shown in the desensitization level and encryption level in FIG4 , 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. For example, the security labels in FIG4 may be data labels, desensitization labels, and encryption labels, wherein the data label is used to describe the importance of the data of the target data resource, the desensitization label is used to describe whether the target data resource requires desensitization processing, and the encryption label is used to describe whether the target data resource requires encryption processing. Each security label corresponds to a security level value, namely, the data level, desensitization 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 based on more tables corresponding to security labels.
[0103] Optionally, the security information of the data resource may have multiple classification categories as described above, or may have only one classification category. The API management platform may determine that the security information of the data resource includes the four data categories of the personal credit record as shown in Figure 4 based on Tables 1 to 4 above, or may select one or more tables from Tables 1 to 4 as a classification method for determining the security information of the data resource. For example, if Table 4 has the highest weight among the four tables, the security information of the personal credit record may be determined as "L4" instead of all the security information contained in the four tables.
[0104] Optionally, the classification rules corresponding to security classifications can be the reuse of existing classification methods or classification rules mentioned above, can be different classification standards manually formulated based on the 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) technologies. This application does not limit the process of how security classification is performed.
[0105] Alternatively, the classification table shown above may have only evaluation criteria instead of a data resource column. For example, the third column "Data Resources" in Table 4 could be replaced with "Evaluation Criteria," where the "Evaluation Criteria" could assess the impact of a data resource leak. For example, for a security level of L4, the corresponding evaluation criteria could be "sensitive personal data as defined by law, and personal data as defined in the Technical Specifications for Personal Financial Protection." This application does not limit the specific format of the table.
[0106] It is worth noting that the classification methods in all the tables shown above are examples and do not limit the classification methods of this application. Moreover, the fields of application of the above tables can not only be the financial field shown in the embodiment, but also the application service field, etc.
[0107] 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.
[0108] In an embodiment 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, and this application does not limit this. The multiple stages of the target API life cycle may be several of the multiple stages shown in Figures 2 and 4, or may include other stages on the basis of the multiple stages shown in Figures 2 and 4, such as a registration management stage. The following will take Figure 4 as an example to specifically introduce the security measures that may correspond to the multiple stages of the API life cycle, and how to determine the security measures based on the security information of the target data resource.
[0109] 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.
[0110] For example, as shown in Figure 4, the security measures corresponding to 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 relatively small based on 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 and the category is "Category: Corporate Data", such as the credit records of all branches or divisions of a company, the API management platform can restrict the corporate credit records, for example, only displaying the credit records of half of the branches or divisions in order to keep the information of some branches or divisions confidential. In addition, the API management platform can also limit the user type accessing personal credit records 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.
[0111] Optionally, the security measures taken during the security design phase can 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 an important non-public 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 based on different types of data resources.
[0112] For example, based on the personal credit record security information shown in Figure 4, the interface definition descriptive file can include "x-api-data-type:personal data," "x-api-data-security:L4," "x-api-data-desensitization:0," and "x-api-data-encryption:1." Subsequent security measures at other stages can be determined based on this information, as detailed below and not detailed here.
[0113] Optionally, the security measures implemented during the API development phase can be automatically generated by the API management platform, based on the code in the security code library and the interface definition descriptive file from the security design phase, into API framework code containing the security measures. For data levels L1 to L4, the API management platform can determine the framework code for 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 and determines the framework code for the corresponding security measure. For example, the desensitization level can include three security level values: 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 0.5, it determines that the target data resource requires desensitization and generates the framework code corresponding to the security measure "demensitization required." For another example, the encryption level can include three security level values: 0 (no encryption required), 0.5 (to be determined), and 1 (encryption required). When the API management platform determines that the encryption level of the target data resource is 1 or greater than 0.5, it determines that the target data resource requires encryption and generates the framework code corresponding to the security measure "encryption required." In addition, the API management platform can also perform consistency checks on the code corresponding to the target data resource and the corresponding field information of the target data resource in the interface definition descriptive file during the API development phase.
[0114] For example, the security measure corresponding to "x-api-data:L4" of a personal credit record can be the aforementioned "needs prior verification, requires pre-access testing," and the security measure 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 "needs prior verification, requires pre-access testing" and "uses 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 perform verification and pre-access testing, and encrypt the personal credit records. Furthermore, by adding the framework code corresponding to the target data resource during the security design phase, the target API can pre-protect the target data resource before accessing it, thus avoiding data leakage issues that may occur during the transmission of the target data resource by the target API.
[0115] Optionally, the security measures taken during the security testing phase can include executing test cases on the API management platform. The test cases are designed based on the security information of the target data resource. For example, the test environment of the test case is determined based on the security classification of the target data resource, or the number of test steps and test parameters of the test case are determined based on the data type of the target data resource.
[0116] For example, 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 are security risks in the process of the target API accessing the personal credit record by executing the test case in the security testing phase under a specific test environment, number of test steps, and test parameters. Furthermore, the test cases in the security testing phase also contain security information, rather than randomly generated test cases or test cases with different parameters, making the testing process more targeted.
[0117] Optionally, security measures implemented during the API runtime phase can include security protection or status monitoring of the target data resource's access by the target API based on its data type. For example, if the target data resource's security classification is critical data, the API management platform can automatically desensitize the target data resource when the target API accesses it, and monitor the target data resource's security status when entering and exiting the target API.
[0118] 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 in and out 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 in and out status of personal credit records.
[0119] In the embodiments of this application, the multiple phases of the API lifecycle and the corresponding security measures are not limited to those described above. For example, the API lifecycle may also include a registration management phase for authentication. The security measures corresponding to the registration management phase may include identifying and marking the target data resources accessed during the registration process, where the marking may include the security level of the target data resources. For another example, the security measures corresponding to the API operation phase may include limiting the flow of certain data resources with higher security levels.
[0120] Optionally, in 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 resources to be accessed by the target API may include multiple data resources, including the target data resource, and the security information of each of 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.
[0121] For example, if the multiple data resources to be accessed by the target API include personal credit records, personal credit reports, and transaction volumes as 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 of the target API can be determined based on the average or highest security level of the aforementioned data resources. For example, based on the highest value, the data level of the target API is L4, the desensitization level is 1, and the encryption level is 1. The API management platform takes security measures for all target data resources based on the security level of the target API. For example, if the desensitization level of the personal credit record is 0, but the desensitization level of the target API is 1, the API management platform desensitizes the personal credit record based on the desensitization level of the target API. For another example, the API management platform can track and monitor the target API for different levels of inventory, vulnerabilities, faults, or misconfigurations based on the security level of the target API. For example, if the security level of the target API is determined based on the average security level of multiple data resources, the API management platform can also track and monitor data resources with security levels higher than the target API.
[0122] 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.
[0123] Optionally, when security check results from multiple stages of the API lifecycle include security issues or risks at one or more stages, the API management platform can add remediation measures to address these security issues or risks. The stage where the security issue or risk occurs can be the same as the stage corresponding to the security check results, or it can be before the stage corresponding to the security check results.
[0124] For example, during the consistency check between security fields and framework code during the API development phase, the API management platform detected errors in the generated framework code for personal credit records. For example, a personal credit record with data level L4 might correspond to the framework code for security measures with data level L3. In this case, the API management platform can implement remediation measures corresponding to the API development phase, such as re-generating the framework code from the API development phase or replacing the incorrect framework code.
[0125] For example, in the test case execution results during 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 during 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.
[0126] Optionally, the security measures inspection results for multiple stages in the entire 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, during the stage of giving guidance, or after the stage of giving guidance.
[0127] 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 that the amount of data of personal credit records needs to be limited, and the monitoring and protection of personal credit records needs to be strengthened. 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 value corresponding to the personal credit record during the security design phase, add attack behavior simulation testing 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.
[0128] For example, the phase of adding or adjusting security measures can occur after the guidance phase. For example, the guidance provided during the security testing phase could be that there may be undetected security risks when the test case is running. The API management platform can add or adjust security measures during the API operation phase after the security testing phase, for example, by adding or adjusting monitoring targets during the API operation phase, such as the resource path of the API accessing personal credit records or the number of incorrect API calls per application.
[0129] The following describes the API management platform of an embodiment of the present application in conjunction with Figure 5. It should be noted that the API management platform shown in Figure 5 can execute the method shown in Figure 3. It should be understood that the API management platform described below is capable of executing the method of the aforementioned embodiment of the present application. In order to avoid unnecessary repetition, repeated descriptions are appropriately omitted when introducing the API management platform of an embodiment of the present application. Optionally, the API management platform in Figure 5 can be a cloud management platform in a cloud service.
[0130] FIG5 is a schematic diagram of an API management platform according to an embodiment of the present application. The API management platform 500 shown in FIG5 includes an acquisition module 510 and a processing module 520 .
[0131] Specifically, the acquisition module 510 is used to 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.
[0132] Specifically, the processing module 520 is used to: determine the security measures corresponding to the target data resources in some or all stages of the multiple stages of the target API life cycle based on the security information of the target data resources, where the multiple stages of the target API life cycle include at least two of the design stage, development stage, testing stage, registration management stage and operation stage, and take the security measures corresponding to the some or all stages on the target data resources in the some or all stages to obtain the inspection results of the security measures corresponding to the some or all stages.
[0133] Specifically, the processing module 520 is also used to: adjust the security measures corresponding to 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 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.
[0134] 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.
[0135] The above modules can be implemented by software or hardware. For example, the implementation of the processing module 520 is described below using 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.
[0136] As an example of a software functional unit, the processing module 520 may include code running on a computing instance. The computing instance may include at least one of a physical host (computing device), a virtual machine, and a container. Furthermore, the 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 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 one data center or multiple geographically close data centers. Typically, a region may include multiple AZs.
[0137] Similarly, multiple hosts / virtual machines / containers running the code can be distributed within the same virtual private cloud (VPC) or across multiple VPCs. Typically, a VPC is set up within a region. Cross-region communication between two VPCs within the same region, or between VPCs in different regions, requires a communication gateway within each VPC to interconnect the VPCs.
[0138] As an example of a hardware functional unit, processing module 520 may include at least one computing device, such as a server. Alternatively, processing module 520 may be 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.
[0139] The multiple computing devices included in processing module 520 can be distributed in the same region or in different regions. The multiple computing devices included in processing module 520 can be distributed in the same AZ or in different AZs. Similarly, the multiple computing devices included in processing module 520 can be distributed in the same VPC or in multiple VPCs. The multiple computing devices included in processing module 520 can be any combination of servers, ASICs, PLDs, CPLDs, FPGAs, GALs, and other computing devices.
[0140] This application also provides a computing device 600. As shown in Figure 6, computing device 600 includes a bus 602, a processor 604, a memory 606, and a communication interface 608. Processor 604, memory 606, and communication interface 608 communicate with each other via bus 602. Computing device 600 can be a server or a terminal device. It should be understood that this application does not limit the number of processors and memories in computing device 600.
[0141] Bus 602 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, among others. Buses may be classified as address buses, data buses, control buses, and the like. For ease of illustration, FIG6 shows a single bus line, but this does not imply a single bus or type of bus. Bus 602 may include a path for transmitting information between various components of computing device 600 (e.g., memory 606, processor 604, and communication interface 608).
[0142] The processor 604 may include any one or more processors such as a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).
[0143] The memory 606 may include volatile memory, such as random access memory (RAM). The processor 904 may also include non-volatile memory, such as read-only memory (ROM), flash memory, a hard disk drive (HDD), or a solid state drive (SSD).
[0144] Memory 606 stores executable program code, which processor 604 executes to implement the functions of acquisition module 610 and processing module 620, thereby implementing the aforementioned method for managing application program interface (API) security. In other words, memory 606 stores instructions for executing the aforementioned method for managing application program interface (API) security.
[0145] 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 a communication network.
[0146] Embodiments of the present application also provide 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 smartphone.
[0147] As shown in Figure 7, the computing device cluster includes at least two computing devices 600. The memory 606 of 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.
[0148] In some possible implementations, the memory 606 of each of the multiple computing devices 600 in the computing device cluster may also store partial instructions for executing the aforementioned method for managing application program interface (API) security. In other words, a combination of one or more computing devices 600 may collectively execute instructions for executing the aforementioned method for managing application program interface (API) security.
[0149] It should be noted that the memory 606 in different computing devices 600 in the computing device cluster can store different instructions, each for performing part of the functions of the above-mentioned apparatus. In other words, 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.
[0150] In some possible implementations, multiple computing devices in a computing device cluster can be connected via a network. The network can be a wide area network (WAN) or a local area network (LAN), among others. FIG. 8 illustrates one possible implementation. As shown in FIG. 8 , two computing devices 600A and 600B are connected via a network. Specifically, each computing device is connected to the network via a communication interface within the computing device. In this type of possible implementation, the memory 606 in the computing device 600A stores instructions for obtaining the functions of the module. Simultaneously, the memory 606 in the computing device 600B stores instructions for executing the functions of the processing module.
[0151] It should be understood that the functionality of the computing device 600A shown in FIG8 may also be implemented by multiple computing devices 600. Similarly, the functionality of the computing device 600B may also be implemented by multiple computing devices 600.
[0152] 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.
[0153] The present application also provides a computer program product containing instructions. This computer program product can be software or a program product containing instructions that can be run on a computing device or stored on any available medium. When this computer program product is run on at least one computing device, it causes the at least one computing device to execute the aforementioned method for API security management.
[0154] 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 a computing device or a data storage device such as a data center that contains one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive). The computer-readable storage medium includes instructions that instruct the computing device to execute the above-mentioned method for managing application program interface (API) security.
[0155] The technical features of the above embodiments can 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.
[0156] 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, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. 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.
[0157] Those skilled in the art will 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.
[0158] In the several embodiments provided in this 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 merely schematic. For example, the division of modules is only a logical function division. In actual implementation, there may be other division methods, 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.
[0159] Modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed across multiple network modules. Some or all of these modules may be selected to achieve the purpose of this embodiment based on actual needs.
[0160] 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.
[0161] 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, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0162] The above are merely specific embodiments of the present application, but the scope of protection of this application is not limited thereto. Any modifications or substitutions that can be readily conceived by a person skilled in the art within the technical scope disclosed in this application are intended to be encompassed by the scope of protection of this application. Therefore, the scope of protection of this application shall be subject to the scope of protection 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 level of the target data resource in the target according to the security level value corresponding to the target API. Security measures corresponding to some or all stages of the API life cycle.
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
Patent Citations
Application program interface security management method and API management platform
CN118760461A
An information security management platform
CN101056198A
Security management method and system for application programming interface
CN109150805A
API (Application Programming Interface) security management method and device, equipment and medium
CN113961423A
Safety management method and device for API life cycle
CN115310097A
Cited By
Data security management method and device, electronic equipment and storage medium
CN120387185A
