Parameter tuning method, device and electronic equipment

By loading confidential files into a trusted execution environment in the cloud virtual machine and using remote proof service for secure authentication, the problem of low security of confidential files when tuning parameters in the virtual machine by cloud service providers is solved, and the confidential files are realized Effective protection.

CN118445835BActive Publication Date: 2024-11-12ALIBABA CLOUD COMPUTING CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410917276.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-09
Publication Date
2024-11-12
Estimated Expiration
2044-07-09

AI Technical Summary

Technical Problem

When cloud service providers use parameter tuning in cloud virtual machines, confidential files are low in security and are easily tracked and obtained by users or friendly companies, resulting in loss of commercial value.

Method used

By obtaining the target confidential file and loading it into a trusted execution environment in the virtual machine, using a confidential computer system to tune parameters in the trusted execution environment, ensuring that confidential files are only accessed and executed in the trusted domain, and using remote Proof Services perform secure authentication and key management to prevent unauthorized access to non-trusted execution environments.

Benefits of technology

It effectively protects confidential files, improves their security, prevents unauthorized access and theft, and ensures the security of confidential files in cloud virtual machines.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118445835B_ABST
    Figure CN118445835B_ABST
Patent Text Reader

Abstract

The present application discloses a parameter tuning method, device and electronic device. It relates to the field of Internet technology. The method comprises: obtaining a target confidential file, wherein the target confidential file is a confidential file required for parameter tuning of an application running in a virtual machine; loading the target confidential file into a trusted execution environment in the virtual machine; and performing parameter tuning of the application based on the target confidential file in the trusted execution environment. The present application solves the technical problem in the related art that a cloud virtual machine directly uses the confidential file required for parameter tuning to tune the application parameters, resulting in low security of the confidential file.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet technology, and in particular to a parameter tuning method, device and electronic device. Background Art

[0002] When cloud service providers provide cloud services to customers, they use some commercially valuable files, such as files containing tuning experience used in application acceleration tools. Once such files are obtained by users or friendly companies, they can be quickly copied and used in a short period of time, thus affecting the industry advancement of cloud service providers' products and may also cause certain economic losses to cloud service providers. Therefore, these commercially valuable files need to be kept confidential and protected.

[0003] At present, related technologies usually directly use these confidential files when tuning application parameters, which makes the confidential files easy to be tracked by users or friendly companies, resulting in low security.

[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0005] The embodiments of the present application provide a parameter tuning method, device and electronic device to at least solve the technical problem in the related art that a cloud virtual machine directly uses the confidentiality files required for parameter tuning to perform parameter tuning on an application, resulting in low security of the confidentiality files.

[0006] According to one aspect of an embodiment of the present application, a parameter tuning method is provided, including: obtaining a target confidentiality file, wherein the target confidentiality file is a confidentiality file required for parameter tuning of an application running in a virtual machine; loading the target confidentiality file into a trusted execution environment in the virtual machine; and performing parameter tuning of the application based on the target confidentiality file in the trusted execution environment.

[0007] Furthermore, obtaining the target confidential file includes: obtaining a target compressed package, wherein the target compressed package includes the target confidential file, and the target confidential file is in an encrypted state in the target compressed package; when a target key is received, decrypting the target compressed package based on the target key to obtain the target confidential file, wherein the target key is a key generated when the trusted execution environment is securely authenticated.

[0008] Furthermore, before decrypting the target compressed package based on the target key to obtain the target confidential file, the parameter tuning method also includes: collecting environmental information of the trusted execution environment; sending the environmental information of the trusted execution environment to a remote attestation service, wherein the remote attestation service performs security authentication on the trusted execution environment based on the environmental information, and after the security authentication passes, feeds back the target key to the virtual machine through the key proxy service.

[0009] Furthermore, the virtual machine also includes a non-trusted execution environment, and parameter tuning of the application based on the target confidential file in the trusted execution environment includes: upon receiving a first parameter tuning request for the application from a user through the non-trusted execution environment, requesting a remote attestation service to perform security authentication on the non-trusted execution environment, wherein the remote attestation service generates a parameter tuning instruction after the security authentication passes; upon receiving the parameter tuning instruction, performing parameter tuning on the application based on the target confidential file in the trusted execution environment to process the first parameter tuning request.

[0010] Furthermore, requesting the remote attestation service to perform security authentication on the non-trusted execution environment includes: determining environmental information of the non-trusted execution environment; generating a second parameter tuning request based on the environmental information of the non-trusted execution environment, and sending the second parameter tuning request to the remote attestation service to request the remote attestation service to perform security authentication on the non-trusted execution environment based on the environmental information of the non-trusted execution environment.

[0011] Furthermore, generating a second parameter tuning request based on environmental information of the untrusted execution environment includes: determining file information of a target tuning file based on the first parameter tuning request, wherein the target tuning file is a file required for parameter tuning of an application, and the target tuning file includes a target confidential file; generating a second parameter tuning request based on the file information and environmental information of the untrusted execution environment, wherein the remote attestation service generates a parameter tuning instruction based on the file information after the security authentication of the untrusted execution environment is passed.

[0012] Furthermore, obtaining the target compressed package includes: upon receiving a function expansion instruction from the user for the virtual machine, determining the target compressed package to be downloaded according to the function expansion instruction; downloading the target compressed package from the first storage area to the second storage area in the virtual machine, wherein the second storage area has access restrictions.

[0013] Furthermore, the target confidential file decrypted from the target compressed package is stored in the second storage area. After the target confidential file is loaded into the trusted execution environment in the virtual machine, the parameter tuning method also includes: if the virtual machine executes a restart, then when it is detected that the restart of the virtual machine is completed, the target confidential file in the second storage area is reloaded into the trusted execution environment of the virtual machine.

[0014] According to another aspect of an embodiment of the present application, a parameter tuning device is also provided, including: an acquisition unit, used to acquire a target confidentiality file, wherein the target confidentiality file is a confidentiality file required for performing parameter tuning on an application running in a virtual machine; a first processing unit, used to load the target confidentiality file into a trusted execution environment in the virtual machine; and a second processing unit, used to perform parameter tuning on the application based on the target confidentiality file in the trusted execution environment.

[0015] Furthermore, the acquisition unit includes: an acquisition sub-unit, used to obtain a target compressed package, wherein the target compressed package includes a target confidential file, and the target confidential file is in an encrypted state in the target compressed package; a first processing sub-unit, used to decrypt the target compressed package based on the target key when a target key is received to obtain the target confidential file, wherein the target key is a key generated when the trusted execution environment is securely authenticated.

[0016] Furthermore, the parameter tuning device also includes: a collection subunit, used to collect environmental information of the trusted execution environment; a sending subunit, used to send the environmental information of the trusted execution environment to a remote attestation service, wherein the remote attestation service performs security authentication on the trusted execution environment based on the environmental information, and after the security authentication is passed, feeds back the target key to the virtual machine through the key proxy service.

[0017] Furthermore, the virtual machine also includes a non-trusted execution environment, and the second processing unit includes: a request sub-unit, which is used to request the remote attestation service to perform security authentication on the non-trusted execution environment when a first parameter tuning request for an application from a user is received through the non-trusted execution environment, wherein the remote attestation service generates a parameter tuning instruction after the security authentication is passed; and a second processing sub-unit, which is used to perform parameter tuning on the application based on the target confidential file in the trusted execution environment when the parameter tuning instruction is received, so as to process the first parameter tuning request.

[0018] Furthermore, the request sub-unit includes: a first determination module, used to determine the environmental information of the non-trusted execution environment; a request module, used to generate a second parameter tuning request based on the environmental information of the non-trusted execution environment, and send the second parameter tuning request to the remote attestation service to request the remote attestation service to perform security authentication on the non-trusted execution environment based on the environmental information of the non-trusted execution environment.

[0019] Furthermore, the request module includes: a determination submodule, used to determine file information of a target tuning file based on a first parameter tuning request, wherein the target tuning file is a file required for performing parameter tuning on an application, and the target tuning file includes a target confidential file; a generation submodule, used to generate a second parameter tuning request based on the file information and environmental information of an untrusted execution environment, wherein the remote attestation service generates a parameter tuning instruction based on the file information after the security authentication of the untrusted execution environment is passed.

[0020] Furthermore, the acquisition sub-unit includes: a second determination module, which is used to determine the target compressed package to be downloaded according to the function expansion instruction when receiving the user's function expansion instruction for the virtual machine; a download module, which is used to download the target compressed package from the first storage area to the second storage area in the virtual machine, wherein the second storage area has access restrictions.

[0021] Furthermore, the target confidential file decrypted from the target compressed package is stored in the second storage area, and the parameter tuning device also includes: a third processing unit, which is used to reload the target confidential file in the second storage area to the trusted execution environment of the virtual machine when the virtual machine restarts and detects that the restart of the virtual machine is completed.

[0022] According to another aspect of an embodiment of the present invention, an electronic device is provided, including: a memory storing an executable program; and a processor for running the program, wherein any one of the above parameter tuning methods is executed when the program is running.

[0023] According to another aspect of an embodiment of the present invention, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, any one of the above parameter tuning methods is implemented.

[0024] In the embodiment of the present application, by obtaining a target confidential file, wherein the target confidential file is a confidential file required for parameter tuning of an application running in a virtual machine; loading the target confidential file into a trusted execution environment in the virtual machine; and performing parameter tuning of the application based on the target confidential file in the trusted execution environment, the target confidential file is loaded into the trusted execution environment in the virtual machine, so that the target confidential file can only be accessed and executed in a trusted domain, and by performing parameter tuning of the application based on the target confidential file in the trusted execution environment, the target confidential file is effectively protected during the execution process of parameter tuning, thereby improving the security of the confidential file. The purpose of protecting the target confidential file in a virtual machine in the cloud is achieved, and the technical effect of improving the security of the confidential file is achieved, thereby solving the technical problem in the related art that the cloud virtual machine directly uses the confidential file required for parameter tuning to tune the application parameters, resulting in low security of the confidential file. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0026] Figure 1 is a schematic diagram of a computer terminal provided according to Embodiment 1 of the present application;

[0027] Figure 2 is a flow chart of a parameter tuning method provided in the related art;

[0028] Figure 3 This is the process of the parameter tuning method provided in Example 1 of this application. Figure 1 ;

[0029] Figure 4 This is the process of the parameter tuning method provided in Example 1 of this application. Figure 2 ;

[0030] Figure 5 is a schematic diagram of a parameter tuning device provided according to Embodiment 2 of the present application;

[0031] Figure 6 It is a structural block diagram of an electronic device provided according to Embodiment 3 of the present application. DETAILED DESCRIPTION

[0032] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0033] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0034] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards in the relevant regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0035] First, some nouns or terms that appear in the description of the embodiments of the present application are subject to the following explanations:

[0036] Confidential computing: A cloud computing technology that isolates sensitive data in an encrypted CPU enclave during data processing.

[0037] Example 1

[0038] According to an embodiment of the present application, a parameter tuning method is also provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0039] The method embodiment provided in the first embodiment of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Figure 1 FIG. 1 shows a hardware structure block diagram of a computer terminal (or mobile device) for implementing a parameter tuning method. Figure 1 As shown, the computer terminal (or mobile device) 10 may include a processor set 102 (the processor set 102 may include but is not limited to a processing device such as a microprocessor (Microcontroller Unit, referred to as MCU) or a programmable logic device (Field Programmable Gate Array, referred to as FPGA), and the processor set 102 may include a processor set, Figure 1 102a, 102b, ..., 102n are used to illustrate), a memory 104 for storing data, and a transmission device 106 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a Universal Serial Bus (USB) port (which may be included as one of the ports of the BUS bus), a network interface, a power supply and / or a camera. Those skilled in the art can understand that Figure 1 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 1More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0040] It should be noted that the one or more processors 102 and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuits may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 10 (or mobile device).

[0041] The memory 104 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the parameter tuning method in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, realizing the above-mentioned parameter tuning method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the computer terminal 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.

[0042] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0043] The display may be a touch screen type liquid crystal display, which may enable a user to interact with a user interface of the computer terminal 10 (or mobile device).

[0044] When cloud service providers provide cloud services to customers, they use some commercially valuable files, such as files containing tuning experience used in application acceleration tools. Once such files are obtained by users or friendly companies, they can be quickly copied and used in a short period of time, thus affecting the industry advancement of cloud service providers' products and may also cause certain economic losses to cloud service providers. Therefore, these commercially valuable files need to be kept confidential and protected.

[0045] At present, related technologies usually use these confidential files directly when tuning application parameters. For example, Figure 2 is a flow chart of a parameter tuning method provided in the related art, such as Figure 2 As shown, in the related technology, users use a cloud computing technology-based platform (i.e. Figure 2 If the user selects the application acceleration function, after the cloud virtual machine is created, the platform will control the virtual machine through relevant instructions to download the file compression package corresponding to the application acceleration function from the storage area, and then decompress the file compression package in the virtual machine, and install and run the decompressed file to achieve application acceleration. The files corresponding to the application acceleration function usually contain some files containing tuning experience. These files are equivalent to confidential files and are not expected to be directly seen and taken away by users or friendly companies. Therefore, certain protection measures are required. Figure 2 As shown, the current method is to delete the confidential files and the file compression package after the tuning is completed.

[0046] However, the above method has certain security issues. After the virtual machine downloads the file compression package and performs installation and deployment, the user / companies can directly log in to the virtual machine to obtain the corresponding confidential files. In addition, in order to meet the needs of online operation and maintenance, the tuning process must be logged, and users / companies can also track the content of the confidential files through the information in the log. Therefore, the above method makes it easy for users or competitors to track confidential files, which has the problem of low security.

[0047] In the above technical background, the present application provides Figure 3 The parameter tuning method shown. Figure 3 This is the process of the parameter tuning method provided in Example 1 of this application. Figure 1 .like Figure 3 As shown, the method includes:

[0048] Step S301, obtaining a target confidentiality file, wherein the target confidentiality file is a confidentiality file required for parameter tuning of an application running in a virtual machine.

[0049] Optionally, the parameter tuning method in this embodiment is performed through a virtual machine in the cloud. The virtual machine in the cloud can be a virtual machine created by a customer of a cloud service provider through a platform based on cloud computing technology provided by the cloud service provider. The above-mentioned applications allowed in the virtual machine include but are not limited to database applications, server applications, big data applications, etc.

[0050] In order to improve the application performance of applications running in virtual machines in the cloud, users can issue function extension instructions to the created virtual machines, so that when the virtual machines receive the function extension instructions, they can obtain the target confidential file and tune the application parameters based on the target confidential file to achieve application acceleration and improve application performance.

[0051] Optionally, the target confidential file may refer to a confidential file in the files required for parameter tuning of an application running in a virtual machine. In this embodiment, the confidential file may be understood as a file that is not desired to be directly accessible to users or friendly businesses. For example, the target confidential file may be a file that records tuning experience.

[0052] Step S302: Load the target confidential file into the trusted execution environment in the virtual machine.

[0053] Optionally, in this embodiment, the virtual machine in the cloud supports confidential computing, and the trusted execution environment is implemented based on the confidential computing mechanism. For example, based on the confidential computing function, the memory space in the virtual machine can be divided into an untrusted memory space and an encrypted and protected trusted memory space, and the trusted execution environment at least includes the aforementioned trusted memory space.

[0054] Since the trusted execution environment can only be accessed by trusted user identities, for example, it is allowed to be accessed by user identities owned by the cloud service provider, but not allowed to be accessed by user identities corresponding to users other than the cloud service provider (including but not limited to the cloud service provider's customers, friendly companies, etc.). In other words, it is allowed to be accessed by the user identity corresponding to the login account of the cloud service provider, but not allowed to be accessed by the user identity corresponding to the login account of other objects (such as: the cloud service provider's customers, friendly companies, etc.). Therefore, in order to protect the target confidential file from being accessed by untrusted users, in this embodiment, after obtaining the target confidential file, the virtual machine can load the target confidential file into the trusted execution environment in the virtual machine. It should be noted that the user identity proposed in this embodiment refers to the user identity defined in the operating system in the virtual machine.

[0055] For example, the virtual machine also includes an untrusted execution environment, which at least includes the aforementioned untrusted memory space, and the target confidential file is loaded into the trusted execution environment in the virtual machine through the first user process in the untrusted execution environment. The first user identity corresponding to the first user process is a user identity trusted (or understood as authorized) by the trusted execution environment, for example, the first user identity can be a user identity owned by the cloud service provider.

[0056] Optionally, the virtual machine may also load program codes and files required for using the target confidential file into the trusted execution environment, so as to achieve normal use of the target confidential file in the trusted execution environment.

[0057] Step S303: Optimize application parameters based on the target confidential file in the trusted execution environment.

[0058] Optionally, after the target confidential file is loaded in the trusted execution environment, the trusted execution environment of the virtual machine may perform parameter tuning on the application based on the target confidential file in the trusted execution environment when receiving a parameter tuning request.

[0059] Optionally, the parameter tuning request can be sent to the trusted execution environment in the following manner. For example, a first user process in a non-trusted execution environment initiates a parameter tuning request to the trusted execution environment when a specific condition is triggered. The specific trigger condition may be the detection that the target confidential file is loaded into the trusted execution environment. For another example, in the case where a parameter tuning request sent by a user is received through a second user process in a non-trusted execution environment, the second user process requests security authentication from a remote attestation service, and when the remote attestation service passes the security authentication, the remote attestation service initiates a parameter tuning request to the trusted execution environment. Among them, the second user identity corresponding to the second user process is a user identity that is not trusted (or understood to be unauthorized) by the trusted execution environment.

[0060] Optionally, the user identity corresponding to the above remote attestation service is also the user identity owned by the cloud service provider. The remote attestation service is installed on the target environment, which is maintained by the cloud service provider and is outside the virtual machine in the cloud. For example, the target environment can be the intranet environment of the cloud service provider. The remote attestation service is used to implement the remote authentication function of confidential computing. The remote attestation service can perform security authentication on the non-trusted execution environment to control the users who can access the target confidential files.

[0061] In this solution, the target confidential file is loaded into the trusted execution environment in the virtual machine, so that the target confidential file can only be accessed and executed in the trusted domain. By tuning the parameters of the application based on the target confidential file in the trusted execution environment, the target confidential file is effectively protected during the execution of the parameter tuning, thereby improving the security of the confidential file. The purpose of protecting the target confidential file in the cloud virtual machine is achieved, and the technical effect of improving the security of the confidential file is achieved, thereby solving the technical problem in the related technology that the cloud virtual machine directly uses the confidential file required for parameter tuning to tune the application parameters, resulting in low security of the confidential file.

[0062] How to obtain the target confidential file is crucial. Therefore, in the parameter tuning method provided in Example 1 of the present application, obtaining the target confidential file includes: obtaining a target compressed package, wherein the target compressed package includes the target confidential file, and the target confidential file is in an encrypted state in the target compressed package; when a target key is received, the target compressed package is decrypted based on the target key to obtain the target confidential file, wherein the target key is a key generated when the trusted execution environment is securely authenticated.

[0063] The target compressed package at least includes the target confidential file. Optionally, the target compressed package may also include non-confidential files required for parameter tuning of the application, for example, programs and files required when using the target confidential file, and programs and files used to implement auxiliary functions such as logging and information communication in parameter tuning. Optionally, the target compressed package may also include files required for the application to be parameter tuned when running. The aforementioned non-confidential files and files required for the application to run may be in an encrypted state or in an unencrypted state in the target compressed package. The aforementioned files include but are not limited to configuration files.

[0064] In an optional embodiment, the target compressed package may be actively uploaded to the virtual machine by an external server. For example, when the external server detects that the virtual machine is created, it sends the target compressed package to the first user process in the virtual machine. The external server may be a server maintained by a cloud service provider.

[0065] In an optional embodiment, the target compressed package can also be downloaded by the virtual machine from the first storage area, and the first storage area can be a cloud storage service. For example, the user sends a function extension instruction to the created virtual machine, and the function extension instruction is received by the first user process in the virtual machine, and the target compressed package is downloaded from the first storage area according to the function extension instruction.

[0066] Optionally, different target compressed packages correspond to different applications to be tuned, and the target compressed packages of different applications may be pre-generated by a cloud service provider and uploaded to the aforementioned external server or virtual machine.

[0067] Optionally, after obtaining the target compressed package, if the virtual machine receives the target key, the virtual machine can decrypt the target compressed package based on the target key to obtain the target confidential file. For example, when the external server detects that the virtual machine is created, it sends an instruction to the virtual machine to instruct the virtual machine to provide the environment information of the trusted execution environment, so that the external server performs security authentication on the trusted execution environment based on the received environment information of the trusted execution environment, and then, when the security authentication passes, the external server generates a target key and sends the target key to the first user process.

[0068] For another example, the first user process in the virtual machine requests an external trusted service to perform security authentication on the trusted execution environment. When the security authentication passes, the external trusted service generates a target key and feeds the target key back to the first user process, wherein the target key may be a key for decrypting a target compressed package, and the aforementioned external trusted service may include the aforementioned remote attestation service.

[0069] Optionally, the target key used by the cloud service provider when generating the target compressed package can be preset, and the cloud service provider can send the target key used when generating the target compressed package to the target key provider in advance, so that the target key provider can subsequently provide the virtual machine with an accurate target key. The target key provider can be the aforementioned external server or external trusted service.

[0070] It should be noted that the target confidential file can be decrypted only after obtaining the encrypted target confidential file and passing the security authentication in the trusted execution environment, which further ensures the security of the target confidential file and avoids the situation where the target confidential file is directly allowed to be decompressed when the trusted execution environment is not secure. In this case, the target confidential file can only be used in an untrusted execution environment, and thus can be easily obtained by untrusted users.

[0071] In order to improve the reliability of security authentication of the trusted execution environment, in the parameter tuning method provided in Example 1 of the present application, before decrypting the target compressed package based on the target key to obtain the target confidential file, environmental information of the trusted execution environment is collected and sent to a remote attestation service, wherein the remote attestation service performs security authentication on the trusted execution environment based on the environmental information, and after the security authentication is passed, the target key is fed back to the virtual machine through the key proxy service.

[0072] Optionally, the virtual machine can collect the environment information of the trusted execution environment when the creation is completed, and the virtual machine can also collect the environment information of the trusted execution environment after obtaining the target compressed package. In the process of collecting the environment information of the trusted execution environment, the first user process of the virtual machine can request the trusted execution environment to collect the environment information of the trusted execution environment, and then the first user process sends the environment information of the trusted execution environment to the remote attestation service.

[0073] Optionally, the environment information of the trusted execution environment includes, but is not limited to, information such as the security version number of the trusted execution environment, the working mode, and the product serial number of the central processor corresponding to the trusted execution environment.

[0074] In an optional embodiment, the virtual machine may directly send the environment information of the trusted execution environment to the remote attestation service, and then the remote attestation service performs security authentication. For example, the remote attestation service is preset with the environment information of the secure trusted execution environment. If the environment information sent by the virtual machine matches the environment information preset in the remote attestation service, it is determined that the trusted execution environment of the virtual machine has passed the security authentication. On the contrary, if the environment information sent by the virtual machine does not match the environment information preset in the remote attestation service, it is determined that the trusted execution environment of the virtual machine has not passed the security authentication.

[0075] In an optional embodiment, in order to improve the reliability of security authentication and prevent illegal virtual machines from pretending to send the correct environment information of the trusted execution environment, the virtual machine can also be combined with the key service in confidential computing for security authentication. For example, the virtual machine first performs hash processing on the environment information of the trusted execution environment to obtain a first hash value, and then uses a derived key to encrypt the first hash value to obtain a signature result. Among them, the aforementioned derived key can be assigned to the virtual machine by the remote attestation service. After that, the signature result and the environment information of the trusted execution environment are sent to the remote attestation service together. After the remote attestation service obtains the signature result and the environment information of the trusted execution environment, the remote attestation service can determine the derived key corresponding to the virtual machine according to the key allocation record, and then use the derived key to decrypt the signature result to obtain a first hash value, and then hash the received environment information of the trusted execution environment to obtain a second hash value. If the first hash value and the second hash value are the same, it is determined that the trusted execution environment of the virtual machine has passed the security authentication. On the contrary, if the first hash value and the second hash value are different, it is determined that the trusted execution environment of the virtual machine has not passed the security authentication.

[0076] Optionally, after the remote attestation service performs security authentication on the trusted execution environment based on the environment information, the remote attestation service can send the security authentication result to the key broker service (KBS) using the confidential computing mechanism. The key broker service will feedback the target key to the virtual machine if the security authentication result indicates that the trusted execution environment security authentication has passed. If the security authentication result indicates that the trusted execution environment security authentication has not passed, the target key will be prohibited from being fed back to the virtual machine. The key broker service can be understood as a remote authentication function that cooperates with the remote attestation service to implement confidential computing. The above-mentioned external trusted service can also include a key broker service. The target key stored in the key broker service can be sent to the key broker service in advance by the cloud service provider.

[0077] Optionally, for the same virtual machine on the cloud, the target keys corresponding to different target compressed packages obtained by the virtual machine are the same; for different virtual machines on the cloud, the target keys corresponding to target compressed packages obtained by different virtual machines may be the same or different.

[0078] In the case where the target keys corresponding to the target compressed packages obtained by different virtual machines are the same, the key proxy service does not need to select a key, but only needs to feedback a unique target key. In the case where the target keys corresponding to the target compressed packages obtained by different virtual machines are different, for the same application, the cloud service provider can predetermine the different target keys corresponding to different virtual machines, and then generate the target compressed packages corresponding to the virtual machine under the application according to the target keys corresponding to the virtual machine, so that when the virtual machine requests the target compressed package of a certain application, the corresponding target compressed package is fed back to the virtual machine. Optionally, the cloud service provider can send the corresponding relationship between the virtual machine and the target key to the key proxy service, for example, the corresponding relationship between the virtual machine identifier and the target key is sent to the key proxy service, so that the remote attestation service can send the security authentication result and the virtual machine information (such as: virtual machine identifier) ​​to the key proxy service when the security authentication is passed, so that the key proxy service can determine the target key that needs to be fed back.

[0079] Optionally, a remote attestation agent may be provided in the virtual machine, and the remote attestation agent is used for the process in the virtual machine to communicate with the remote attestation service or the key proxy service. The user identities corresponding to the remote attestation service, the remote attestation agent, and the key proxy service are all user identities owned by the cloud service provider.

[0080] It should be noted that by having the remote attestation service perform security authentication on the trusted execution environment based on the environment information, the reliability of the security authentication is improved, thereby improving the security of the target confidential file.

[0081] In order to improve the security of the target confidential file during the parameter tuning process, in the parameter tuning method provided in Example 1 of the present application, the virtual machine also includes a non-trusted execution environment, and parameter tuning of the application based on the target confidential file in the trusted execution environment includes: upon receiving a first parameter tuning request for the application from the user through the non-trusted execution environment, requesting a remote attestation service to perform security authentication on the non-trusted execution environment, wherein the remote attestation service generates a parameter tuning instruction after the security authentication passes; upon receiving the parameter tuning instruction, performing parameter tuning on the application based on the target confidential file in the trusted execution environment to process the first parameter tuning request.

[0082] Optionally, when a user's first parameter tuning request for an application is received through a non-trusted execution environment, the virtual machine may request a remote attestation service to perform security authentication on the non-trusted execution environment. For example, the first parameter tuning request is received through a second user process in the non-trusted execution environment, and when the first parameter tuning request is received, the remote attestation service is requested to perform security authentication on the non-trusted execution environment. For example, the second user process may send environmental information of the non-trusted execution environment to the remote attestation service to request the remote attestation service to perform security authentication on the non-trusted execution environment based on the environmental information. For another example, the second user process may send a preset string encrypted using a preset public key to the remote attestation service to request the remote attestation service to perform security authentication on the non-trusted execution environment based on the preset string encrypted using the preset public key.

[0083] In an optional embodiment, the second user process may request a remote attestation service to perform security authentication on the second user process in the untrusted execution environment. Optionally, the environment information of the untrusted execution environment includes at least the IP (Internet Protocol) address of the virtual machine to which the untrusted execution environment belongs, that is, the IP address of the virtual machine to which the second user process belongs. The environment information of the untrusted execution environment may also include identity information of the user identity corresponding to the second user process, for example, an ID matched by the user identity, etc.

[0084] Optionally, the remote attestation service may perform security authentication on the non-trusted execution environment based on the received information. For example, the remote attestation service is preset with environmental information of a secure non-trusted execution environment. If the remote attestation service receives environmental information of a non-trusted execution environment, when the environmental information of the non-trusted execution environment matches the environmental information preset in the remote attestation service, it is determined that the non-trusted execution environment of the virtual machine has passed the security authentication. On the contrary, when the environmental information of the non-trusted execution environment does not match the environmental information preset in the remote attestation service, it is determined that the trusted execution environment of the virtual machine has not passed the security authentication. For another example, the remote attestation service is preset with a private key and a string. If the remote attestation service receives a preset string encrypted with a preset public key, the remote attestation service may decrypt the encrypted preset string with a preset private key. If the decrypted string is the same as the string preset in the remote attestation service, it is determined that the non-trusted execution environment of the virtual machine has passed the security authentication. On the contrary, if the decrypted string is different from the string preset in the remote attestation service, it is determined that the trusted execution environment of the virtual machine has not passed the security authentication.

[0085] When it is determined that the security authentication of the non-trusted execution environment has passed, the remote attestation service can generate parameter tuning instructions and feed the parameter tuning instructions back to the virtual machine. For example, a remote attestation agent is set in the virtual machine, and the remote attestation agent is used for the process in the virtual machine to communicate with the remote attestation service or the key agent service. The remote attestation service can send the parameter tuning instructions to the remote attestation agent, and then the remote attestation agent directly sends the parameter tuning instructions to the trusted execution environment.

[0086] Optionally, when the virtual machine receives the parameter tuning instruction, the virtual machine performs parameter tuning on the application based on the target confidential file in the trusted execution environment to process the first parameter tuning request. For example, when the trusted execution environment receives the parameter tuning instruction, the virtual machine performs parameter tuning on the application based on the target confidential file to process the first parameter tuning request.

[0087] Optionally, after the trusted execution environment completes application parameter tuning, the trusted execution environment can feed back the parameter tuning result to the non-trusted execution environment, so that the parameter tuning result is fed back to the user through the non-trusted execution environment. For example, the trusted execution environment sends the parameter tuning result to the second user process, and then the second user process feeds back the parameter tuning result to the user. The tuning result is at least used to indicate whether the parameter tuning is successful.

[0088] It should be noted that, by first requesting the remote attestation service for security authentication upon receiving a parameter tuning request from the user, effective authentication of the process requesting to use the target confidential file is achieved, and by generating parameter tuning instructions to call the trusted execution environment only after the authentication is passed, access control to the trusted execution environment based on the remote attestation service is achieved, effectively improving the security of the target confidential file and avoiding the phenomenon that, when a parameter tuning request is received, the parameter tuning is performed directly based on the target confidential file in the trusted execution environment. If an external attacker imitates the process in the virtual machine to call the trusted execution environment, the target confidential file may be easily stolen.

[0089] In order to improve the reliability of authentication of a non-trusted execution environment, in the parameter tuning method provided in Example 1 of the present application, requesting a remote attestation service to perform security authentication on the non-trusted execution environment includes: determining environmental information of the non-trusted execution environment; generating a second parameter tuning request based on the environmental information of the non-trusted execution environment, and sending the second parameter tuning request to the remote attestation service to request the remote attestation service to perform security authentication on the non-trusted execution environment based on the environmental information of the non-trusted execution environment.

[0090] Optionally, requesting a remote attestation service to perform security authentication on a non-trusted execution environment may refer to requesting a remote attestation service to perform security authentication on a second user process in the non-trusted execution environment, where the second user process is a process for receiving the first parameter tuning request. Optionally, the environmental information of the non-trusted execution environment includes at least the IP (Internet Protocol) address of the virtual machine to which the non-trusted execution environment belongs, that is, the IP address of the virtual machine to which the second user process belongs. The environmental information of the non-trusted execution environment may also include identity information of a user identity corresponding to the second user process, such as an ID matched by the user identity, etc.

[0091] Optionally, the virtual machine may generate a second parameter tuning request based on the environment information of the non-trusted execution environment through a second user process. For example, the second user process may directly generate the second parameter tuning request based on the environment information of the non-trusted execution environment. For another example, the second user process may generate the second parameter tuning request based on the environment information of the non-trusted execution environment and the file information of the target tuning file, wherein the target tuning file is a file required for parameter tuning of an application running in the virtual machine, and the target tuning file includes a target confidentiality file.

[0092] In an optional embodiment, one or more target applications may be running in the virtual machine, and the target application refers to an application that supports parameter tuning. The second user process may generate a second parameter tuning request directly based on the environmental information of the non-trusted execution environment when there is only one target application in the virtual machine, or may generate a second parameter tuning request directly based on the environmental information of the non-trusted execution environment when the first parameter tuning instruction indicates that all target applications in the virtual machine are to be parameter tuned. The second user process may generate a second parameter tuning request based on the environmental information of the non-trusted execution environment and the file information of the target tuning file when there are multiple target applications in the virtual machine, or may generate a second parameter tuning request based on the environmental information of the non-trusted execution environment and the file information of the target tuning file when the first parameter tuning instruction indicates that some target applications in the virtual machine are to be parameter tuned.

[0093] Optionally, the remote attestation service may perform security authentication on the untrusted execution environment based on the received environmental information of the untrusted execution environment. For example, the remote attestation service has a preset IP address corresponding to the secure untrusted execution environment. When the environmental information of the untrusted execution environment only includes the IP address, if there is an IP address preset in the remote attestation service that is the same as the IP address received by the remote attestation service, it is determined that the security authentication of the untrusted execution environment has passed. Conversely, if there is no IP address preset in the remote attestation service that is the same as the IP address received by the remote attestation service, it is determined that the security authentication of the untrusted execution environment has failed.

[0094] For another example, the remote attestation service is preset with an IP address corresponding to a secure non-trusted execution environment and an ID of a user identity of a secure second user process. When the environmental information of the non-trusted execution environment includes the IP address and the ID of the user identity, if an IP address preset in the remote attestation service is the same as the IP address received by the remote attestation service, and an ID preset in the remote attestation service is the same as the ID received by the remote attestation service, then it is determined that the security authentication of the non-trusted execution environment has passed. Conversely, if an IP address preset in the remote attestation service is not the same as the IP address received by the remote attestation service, or if an ID preset in the remote attestation service is not the same as the ID received by the remote attestation service, then it is determined that the security authentication of the non-trusted execution environment has failed.

[0095] After the security authentication of the non-trusted execution environment is completed, if the non-trusted execution environment passes the security authentication, the remote attestation service generates parameter tuning instructions. Conversely, if the non-trusted execution environment fails the security authentication, the remote attestation service prohibits the generation of parameter tuning instructions.

[0096] Optionally, the parameter tuning instruction is used to instruct the trusted execution environment to perform parameter tuning on the application based on the target confidential file. In the process of generating the parameter tuning instruction, if the second parameter tuning request is generated based on the environmental information of the untrusted execution environment, the remote attestation service can generate the parameter tuning instruction based on a preset instruction format to instruct the trusted execution environment to perform parameter tuning on the application based on all confidential files in the trusted execution environment and the codes and files on which the confidential files depend; if the second parameter tuning request is generated based on the environmental information of the untrusted execution environment and the file information of the target tuning file, the remote attestation service can generate the parameter tuning instruction based on the preset instruction format and the file information of the target tuning file to instruct the trusted execution environment to perform parameter tuning on the application based on the target tuning file in the trusted execution environment.

[0097] It should be noted that by generating a second parameter tuning request based on the environmental information of the non-trusted execution environment to request security authentication of the non-trusted execution environment, the reliability of the security authentication is improved, thereby further improving the security of the target confidential file.

[0098] In order to improve the reliability of parameter tuning performed in a trusted execution environment, in the parameter tuning method provided in Example 1 of the present application, generating a second parameter tuning request based on environmental information of an untrusted execution environment includes: determining file information of a target tuning file based on the first parameter tuning request, wherein the target tuning file is a file required for parameter tuning of an application, and the target tuning file includes a target confidential file; generating a second parameter tuning request based on the file information and environmental information of the untrusted execution environment, wherein the remote attestation service generates a parameter tuning instruction based on the file information after the security authentication of the untrusted execution environment is passed.

[0099] Optionally, the first parameter tuning request includes at least information about the application to be parameter tuned, and the virtual machine can determine the file information of the target tuning file based on the information about the application to be parameter tuned, and the file information can include the file name of the target tuning file. For example, the virtual machine stores a matching relationship between the application and the target tuning file, and the second user process can determine the file information of the target tuning file based on the matching relationship and the information about the application in the first parameter request.

[0100] Afterwards, the virtual machine can generate a second parameter tuning request based on the file information and the environment information of the untrusted execution environment. For example, the second user process can directly generate a second parameter tuning request based on the file information and the environment information of the untrusted execution environment. For another example, the second user process can also process the file information and the environment information of the untrusted execution environment and generate a second parameter tuning request based on the processed data. Optionally, the aforementioned processing method includes but is not limited to at least one of the following: hashing, encryption, etc.

[0101] After the remote attestation service completes the security authentication of the non-trusted execution environment, if the non-trusted execution environment passes the security authentication, the remote attestation service generates a parameter tuning instruction. Conversely, if the non-trusted execution environment fails the security authentication, the remote attestation service prohibits the generation of the parameter tuning instruction. Optionally, in the process of generating the parameter tuning instruction, the remote attestation service can generate the parameter tuning instruction based on a preset instruction format and the file information of the target tuning file to instruct the trusted execution environment to perform parameter tuning on the application based on the target tuning file in the trusted execution environment.

[0102] It should be noted that the second parameter tuning request is generated based on the file information and the environmental information of the non-trusted execution environment, so that after the remote attestation service determines that the security authentication of the non-trusted execution environment has passed, it can generate a parameter tuning instruction including the file information, thereby accurately instructing the trusted execution environment to perform application tuning, thereby improving the reliability of application tuning.

[0103] In order to further improve the security of the target confidential file, in the parameter tuning method provided in Example 1 of the present application, obtaining the target compressed package includes: when receiving a function expansion instruction from the user to the virtual machine, determining the target compressed package to be downloaded according to the function expansion instruction; downloading the target compressed package from the first storage area to the second storage area in the virtual machine, wherein the second storage area has access restrictions.

[0104] Optionally, the user can send a function extension instruction to the virtual machine through a cloud computing technology-based platform provided by the cloud service, and then the virtual machine determines the target compressed package to be downloaded based on the function extension instruction. For example, the function extension instruction is received by the first user process in the virtual machine, and the function extension instruction may include the compressed package name of the target compressed package to be downloaded, so that the first user process downloads the target compressed package from the first storage area according to the compressed package name. For another example, the function extension instruction is received by the first user process in the virtual machine, and the function extension instruction may include application information of the application to be parameter tuned. The first user process can determine the compressed package information (such as: compressed package name) of the target compressed package to be downloaded based on the preset correspondence between the application to be tuned and the compressed package, so as to download the target compressed package from the first storage area according to the compressed package information.

[0105] Optionally, the first storage area may be a cloud storage service, which may be maintained by a cloud service provider. Optionally, the first storage area may also be other storage areas outside the virtual machine.

[0106] Optionally, the first user process can download the target compressed package from the first storage area to a second storage area in the virtual machine, and the second storage area can be a disk of a physical server where the virtual machine is located. There is an access restriction on the second storage area, and optionally, the access restriction is set to allow the first user process to access the second storage area and prohibit the second user process from accessing the second storage area.

[0107] In an optional embodiment, it is possible to use Figure 4 The schematic diagram shown in FIG. 1 is used to optimize the application parameters. Figure 4 This is the process of the parameter tuning method provided in Example 1 of this application. Figure 2 ,like Figure 4 As shown, users use the cloud computing technology-based platform (i.e. Figure 4 The cloud initialization tool in the target platform in the cloud creates a virtual machine in the cloud. When the user has the need for application acceleration, the user sends a function extension instruction through the platform, which may include the application information of the application to be accelerated. When the virtual machine receives the function extension instruction, it downloads the target compressed package corresponding to the application to be accelerated from the cloud storage service (i.e., the first storage area) and stores it in the second storage area with access restrictions. Figure 4 As shown, the cloud storage service can store compressed file packages corresponding to various applications.

[0108] Afterwards, if Figure 4 As shown, the first user process in the virtual machine can communicate with the remote attestation service and the key agent service through the remote attestation agent to request the remote attestation service to perform security authentication on the trusted execution environment, so that when the security authentication passes, the target compressed package is decrypted in the second storage area based on the target key fed back by the key agent service to obtain the target confidential file, and the target confidential file in the second storage area is loaded into the trusted execution environment.

[0109] Optionally, the target compressed package includes at least the target confidential file, and the target compressed package may also include non-confidential files required for parameter tuning of the application, for example, programs and files required for using the target confidential file, programs and files used to implement auxiliary functions such as logging and information communication in parameter tuning, etc., and the target compressed package may also include files required for the application to be parameter tuned when running. The aforementioned non-confidential files and files required for the application to run may be in an encrypted state or in an unencrypted state in the target compressed package.

[0110] Therefore, after decompressing the target compressed package, the first user process can also load the programs and files required for using the target confidential file into the trusted execution environment to ensure the normal use of the target confidential file in the trusted execution environment. Figure 4 As shown, the programs and files used to implement auxiliary functions such as logging and information communication and the files required for application runtime are loaded into the non-trusted execution environment to implement the installation and deployment of the auxiliary functions in parameter tuning and the application to be parameter tuned.

[0111] Alternatively, if Figure 4 As shown, upon receiving the user's first parameter tuning request for the application, the second user process in the virtual machine can communicate with the remote attestation service through the remote attestation agent to request the remote attestation service to perform security authentication on the non-trusted execution environment. When the non-trusted execution environment passes the security authentication, the remote attestation service sends parameter tuning instructions to the trusted execution environment through the remote attestation agent to implement parameter tuning of the application and achieve application acceleration effect.

[0112] It should be noted that, through the above method, the target compressed package can be accessed only by trusted users, and the process of decrypting the target compressed package to obtain the target confidential file is also executed in the trusted domain, thereby avoiding customers, friendly companies, etc. from obtaining the target compressed package to decrypt the target confidential file, thereby further improving the security of the target confidential file and realizing the protection of the target confidential file throughout the life cycle of parameter tuning.

[0113] In order to achieve application acceleration after the virtual machine is restarted, in the parameter tuning method provided in Example 1 of the present application, the target confidential file decrypted from the target compressed package is stored in the second storage area. After the target confidential file is loaded into the trusted execution environment in the virtual machine, the parameter tuning method includes: if the virtual machine executes a restart, then when it is detected that the restart of the virtual machine is completed, the target confidential file in the second storage area is reloaded into the trusted execution environment of the virtual machine.

[0114] Optionally, the virtual machine may decompress the target confidential file in the target compressed package to the second storage area, so as to achieve effective protection of the decompressed target confidential file.

[0115] Optionally, the virtual machine may be restarted upon receiving a restart instruction issued by the user through a platform provided by a cloud service provider. The virtual machine may also determine a restart timing according to a preset restart rule, thereby restarting at the restart timing.

[0116] After the virtual machine is restarted, the application needs to be re-tuned and the data in the virtual machine memory will disappear. Therefore, when the virtual machine detects that its restart is complete, the target confidential file in the second storage area can be reloaded into the trusted execution environment of the virtual machine to re-tuning the parameters of the application in the virtual machine. For example, the target confidential file in the second storage area and the programs and files required when using the target confidential file are reloaded into the trusted execution environment of the virtual machine through the first user process.

[0117] It should be noted that by using the second storage area to protect the decompressed target confidential file, the virtual machine does not need to delete the target compressed package and the target confidential file from the second storage area after loading the target confidential file into the virtual machine memory. This avoids the re-download and decompression of the target compressed package, and avoids the deletion of the target compressed package and the target confidential file after re-tuning the parameters, thereby improving the parameter tuning efficiency after the virtual machine is restarted and reducing the occupation of the processing resources of the virtual machine.

[0118] In the embodiment of the present application, by obtaining a target confidential file, wherein the target confidential file is a confidential file required for parameter tuning of an application running in a virtual machine; loading the target confidential file into a trusted execution environment in the virtual machine; and performing parameter tuning of the application based on the target confidential file in the trusted execution environment, the target confidential file is loaded into the trusted execution environment in the virtual machine, so that the target confidential file can only be accessed and executed in a trusted domain, and by performing parameter tuning of the application based on the target confidential file in the trusted execution environment, the target confidential file is effectively protected during the execution process of parameter tuning, thereby improving the security of the confidential file. The purpose of protecting the target confidential file in a virtual machine in the cloud is achieved, and the technical effect of improving the security of the confidential file is achieved, thereby solving the technical problem in the related art that the cloud virtual machine directly uses the confidential file required for parameter tuning to tune the application parameters, resulting in low security of the confidential file.

[0119] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0120] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, disk, CD), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.

[0121] Example 2

[0122] According to an embodiment of the present application, a parameter tuning device for implementing the above parameter tuning method is also provided. Figure 5 is a schematic diagram of a parameter tuning device provided according to Embodiment 2 of the present application, such as Figure 5 As shown, the device includes: an acquisition unit 501, a first processing unit 502, and a second processing unit 503.

[0123] The acquisition unit 501 is used to acquire a target confidentiality file, wherein the target confidentiality file is a confidentiality file required for parameter tuning of an application running in a virtual machine;

[0124] The first processing unit 502 is used to load the target confidential file into the trusted execution environment in the virtual machine;

[0125] The first determining unit 503 is configured to perform parameter tuning on the application based on the target confidentiality file in the trusted execution environment.

[0126] In the parameter tuning device provided in the second embodiment of the present application, the target confidential file is obtained by the acquisition unit 501, wherein the target confidential file is a confidential file required for parameter tuning of an application running in a virtual machine; the first processing unit 502 loads the target confidential file into the trusted execution environment in the virtual machine; the first determination unit 503 performs parameter tuning of the application based on the target confidential file in the trusted execution environment. In this solution, the target confidential file is loaded into the trusted execution environment in the virtual machine, so that the target confidential file can only be accessed and executed in the trusted domain, and the target confidential file is effectively protected during the execution process of parameter tuning by tuning the application based on the target confidential file in the trusted execution environment, thereby improving the security of the confidential file. The purpose of protecting the target confidential file in the virtual machine in the cloud is achieved, and the technical effect of improving the security of the confidential file is achieved, thereby solving the technical problem that the cloud virtual machine in the related technology directly uses the confidential file required for parameter tuning to tune the application parameters, resulting in low security of the confidential file.

[0127] Optionally, in the parameter tuning device provided in Example 2 of the present application, the acquisition unit includes: an acquisition sub-unit, used to obtain a target compressed package, wherein the target compressed package includes a target confidential file, and the target confidential file is in an encrypted state in the target compressed package; a first processing sub-unit, used to decrypt the target compressed package based on the target key when a target key is received to obtain the target confidential file, wherein the target key is a key generated when the security authentication of the trusted execution environment is passed.

[0128] Optionally, in the parameter tuning device provided in Example 2 of the present application, the parameter tuning device also includes: a collection subunit, used to collect environmental information of the trusted execution environment; a sending subunit, used to send the environmental information of the trusted execution environment to a remote attestation service, wherein the remote attestation service performs security authentication on the trusted execution environment based on the environmental information, and after the security authentication is passed, feeds back the target key to the virtual machine through the key proxy service.

[0129] Optionally, in the parameter tuning device provided in Example 2 of the present application, the virtual machine also includes a non-trusted execution environment, and the second processing unit includes: a request sub-unit, which is used to request a remote attestation service to perform security authentication on the non-trusted execution environment when a first parameter tuning request for an application from a user is received through the non-trusted execution environment, wherein the remote attestation service generates a parameter tuning instruction after the security authentication is passed; and a second processing sub-unit, which is used to perform parameter tuning on the application based on a target confidential file in the trusted execution environment when the parameter tuning instruction is received, so as to process the first parameter tuning request.

[0130] Optionally, in the parameter tuning device provided in Example 2 of the present application, the request sub-unit includes: a first determination module, used to determine the environmental information of the non-trusted execution environment; a request module, used to generate a second parameter tuning request based on the environmental information of the non-trusted execution environment, and send the second parameter tuning request to the remote attestation service to request the remote attestation service to perform security authentication on the non-trusted execution environment based on the environmental information of the non-trusted execution environment.

[0131] Optionally, in the parameter tuning device provided in Example 2 of the present application, the request module includes: a determination submodule, used to determine the file information of the target tuning file based on the first parameter tuning request, wherein the target tuning file is a file required for performing parameter tuning on the application, and the target tuning file includes a target confidential file; a generation submodule, used to generate a second parameter tuning request based on the file information and the environmental information of the non-trusted execution environment, wherein the remote attestation service generates the parameter tuning instructions based on the file information after the security authentication of the non-trusted execution environment is passed.

[0132] Optionally, in the parameter tuning device provided in Example 2 of the present application, the acquisition sub-unit includes: a second determination module, used to determine the target compressed package to be downloaded according to the function expansion instruction when receiving the user's function expansion instruction for the virtual machine; a download module, used to download the target compressed package from the first storage area to the second storage area in the virtual machine, wherein the second storage area has access restrictions.

[0133] Optionally, in the parameter tuning device provided in Example 2 of the present application, the target confidential file decrypted from the target compressed package is stored in the second storage area, and the parameter tuning device also includes: a third processing unit, which is used to reload the target confidential file in the second storage area to the trusted execution environment of the virtual machine when the virtual machine executes a restart and detects that the restart of the virtual machine is completed.

[0134] It should be noted that the acquisition unit 501, the first processing unit 502, and the second processing unit 503 correspond to steps S301 to S303 in Example 1, and the examples and application scenarios implemented by the above units and corresponding steps are the same, but are not limited to the contents disclosed in the above Example 1. It should be noted that the above modules, as part of the device, can be run in the computer terminal 10 provided in Example 1.

[0135] It should be noted that the preferred implementation scheme involved in the above embodiments of the present application is the same as the scheme provided in Example 1, as well as the application scenario and implementation process, but is not limited to the scheme provided in Example 1.

[0136] Example 3

[0137] The embodiment of the present application may provide an electronic device, which may be any electronic device in a group of electronic devices. Optionally, in this embodiment, the electronic device may also be replaced by a terminal device such as a mobile terminal.

[0138] Optionally, in this embodiment, the electronic device may be located in at least one network device among a plurality of network devices of a computer network.

[0139] In this embodiment, the above-mentioned electronic device can execute the program code of the following steps in the parameter tuning method: obtaining a target confidentiality file, wherein the target confidentiality file is a confidentiality file required for parameter tuning of an application running in a virtual machine; loading the target confidentiality file into a trusted execution environment in the virtual machine; and performing parameter tuning of the application based on the target confidentiality file in the trusted execution environment.

[0140] The above-mentioned electronic device can also execute the program code of the following steps in the parameter tuning method: obtaining a target compressed package, wherein the target compressed package includes a target confidential file, and the target confidential file is in an encrypted state in the target compressed package; when a target key is received, decrypting the target compressed package based on the target key to obtain the target confidential file, wherein the target key is a key generated when the trusted execution environment is securely authenticated.

[0141] The above-mentioned electronic device can also execute the program code of the following steps in the parameter tuning method: before decrypting the target compressed package based on the target key to obtain the target confidential file, collecting the environmental information of the trusted execution environment; sending the environmental information of the trusted execution environment to the remote attestation service, wherein the remote attestation service performs security authentication on the trusted execution environment based on the environmental information, and after the security authentication is passed, feedbacks the target key to the virtual machine through the key agent service.

[0142] The above-mentioned electronic device can also execute the program code of the following steps in the parameter tuning method: when receiving a first parameter tuning request for an application from a user through a non-trusted execution environment, requesting a remote attestation service to perform security authentication on the non-trusted execution environment, wherein the remote attestation service generates a parameter tuning instruction after the security authentication passes; when receiving the parameter tuning instruction, performing parameter tuning on the application based on the target confidential file in the trusted execution environment to process the first parameter tuning request.

[0143] The above-mentioned electronic device can also execute the program code of the following steps in the parameter tuning method: determining the environmental information of the non-trusted execution environment; generating a second parameter tuning request based on the environmental information of the non-trusted execution environment, and sending the second parameter tuning request to the remote attestation service to request the remote attestation service to perform security authentication on the non-trusted execution environment based on the environmental information of the non-trusted execution environment.

[0144] The electronic device can also execute the program code of the following steps in the parameter tuning method: determining the file information of the target tuning file based on the first parameter tuning request, wherein the target tuning file is a file required for parameter tuning of the application, and the target tuning file includes a target confidential file; generating a second parameter tuning request based on the file information and the environmental information of the untrusted execution environment, wherein the remote attestation service generates a parameter tuning instruction based on the file information after the security authentication of the untrusted execution environment is passed.

[0145] The above-mentioned electronic device can also execute the program code of the following steps in the parameter tuning method: when receiving a function expansion instruction from the user to the virtual machine, determining the target compressed package to be downloaded according to the function expansion instruction; downloading the target compressed package from the first storage area to the second storage area in the virtual machine, wherein the second storage area has access restrictions.

[0146] The above-mentioned electronic device can also execute the program code of the following steps in the parameter tuning method: after loading the target confidential file into the trusted execution environment in the virtual machine, if the virtual machine executes a restart, then when it is detected that the restart of the virtual machine is completed, the target confidential file in the second storage area is reloaded into the trusted execution environment of the virtual machine.

[0147] Optionally, Figure 6 is a structural block diagram of an electronic device according to an embodiment of the present application. Figure 6 As shown, the electronic device 20 may include: one or more ( Figure 6 Only one is shown in the figure) processor 202, memory 204. The electronic device 20 may also include a storage controller, through which the memory 204 is controlled and managed; the electronic device 20 may also include a peripheral interface, through which the radio frequency module, audio module and display screen are connected.

[0148] Among them, the memory can be used to store software programs and modules, such as the program instructions / modules corresponding to the parameter tuning method and device in the embodiment of the present application. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, realizing the above-mentioned parameter tuning method. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories can be connected to the computer terminal 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0149] The processor can call the information and application programs stored in the memory through the transmission device to execute the following steps: obtain the target confidential file, wherein the target confidential file is a confidential file required for parameter tuning of the application running in the virtual machine; load the target confidential file into the trusted execution environment in the virtual machine; and perform parameter tuning of the application based on the target confidential file in the trusted execution environment.

[0150] Optionally, the processor may also execute the program code of the following steps: obtaining a target compressed package, wherein the target compressed package includes a target confidential file, and the target confidential file is in an encrypted state in the target compressed package; upon receiving a target key, decrypting the target compressed package based on the target key to obtain the target confidential file, wherein the target key is a key generated when security authentication of the trusted execution environment is passed.

[0151] Optionally, the processor may also execute the following program code: before decrypting the target compressed package based on the target key to obtain the target confidential file, collecting environmental information of the trusted execution environment; sending the environmental information of the trusted execution environment to a remote attestation service, wherein the remote attestation service performs security authentication on the trusted execution environment based on the environmental information, and after the security authentication is passed, feeds back the target key to the virtual machine through the key agent service.

[0152] Optionally, the processor may also execute the program code of the following steps: upon receiving a first parameter tuning request for an application from a user through a non-trusted execution environment, requesting a remote attestation service to perform security authentication on the non-trusted execution environment, wherein the remote attestation service generates a parameter tuning instruction after the security authentication passes; upon receiving the parameter tuning instruction, performing parameter tuning on the application based on a target confidential file in a trusted execution environment to process the first parameter tuning request.

[0153] Optionally, the processor may also execute program code of the following steps: determining environmental information of a non-trusted execution environment; generating a second parameter tuning request based on the environmental information of the non-trusted execution environment, and sending the second parameter tuning request to a remote attestation service to request the remote attestation service to perform security authentication on the non-trusted execution environment based on the environmental information of the non-trusted execution environment.

[0154] Optionally, the processor may also execute program code of the following steps: determining file information of a target tuning file based on a first parameter tuning request, wherein the target tuning file is a file required for performing parameter tuning on an application, and the target tuning file includes a target confidential file; generating a second parameter tuning request based on the file information and environmental information of an untrusted execution environment, wherein the remote attestation service generates a parameter tuning instruction based on the file information after the security authentication of the untrusted execution environment is passed.

[0155] Optionally, the processor may also execute the program code of the following steps: upon receiving a function expansion instruction from a user for a virtual machine, determining a target compressed package to be downloaded according to the function expansion instruction; downloading the target compressed package from the first storage area to a second storage area in the virtual machine, wherein the second storage area has access restrictions.

[0156] Optionally, the processor may also execute the program code of the following steps: after loading the target confidential file into the trusted execution environment in the virtual machine, if the virtual machine is restarted, upon detecting that the restart of the virtual machine is complete, reloading the target confidential file in the second storage area into the trusted execution environment of the virtual machine.

[0157] It can be understood by those skilled in the art that Figure 6 The structure shown is for illustration only, and the electronic device may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (Mobile Internet Devices, MID), a PAD, and other terminal devices. Figure 6 The structure of the electronic device is not limited. Figure 6 More or fewer components (such as network interfaces, display devices, etc.) shown in, or with Figure 6 Different configurations are shown.

[0158] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0159] Example 4

[0160] The embodiment of the present application further provides a computer program product. Optionally, in this embodiment, the computer program product may include a computer program, and when the computer program is executed by a processor, the parameter tuning method provided in the first embodiment is implemented.

[0161] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0162] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0163] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units 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 units or modules, which can be electrical or other forms.

[0164] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0165] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0166] If the integrated unit 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 all or 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, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.

[0167] The above are only preferred implementations of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A parameter tuning method, characterized in that: The method is applied to a virtual machine in the cloud, and includes: Obtaining a target confidentiality file, wherein the target confidentiality file is a confidentiality file required for parameter tuning of an application running in the virtual machine; Loading the target confidential file into the trusted execution environment in the virtual machine; Performing parameter tuning on the application based on the target confidentiality file in the trusted execution environment; The virtual machine also includes a non-trusted execution environment, and in the trusted execution environment, parameter tuning of the application based on the target confidential file includes: In the case of receiving a first parameter tuning request of the user for the application through the non-trusted execution environment, requesting a remote attestation service to perform security authentication on the non-trusted execution environment, wherein the remote attestation service generates a parameter tuning instruction after the security authentication passes; When the parameter tuning instruction is received, the application is parameter tuned based on the target confidentiality file in the trusted execution environment to process the first parameter tuning request.

2. The method according to claim 1, characterized in that Obtaining target confidential documents includes: Obtaining a target compressed package, wherein the target compressed package includes the target confidential file, and the target confidential file is in an encrypted state in the target compressed package; When the target key is received, the target compressed package is decrypted based on the target key to obtain the target confidential file, wherein the target key is a key generated when the trusted execution environment passes security authentication.

3. The method according to claim 2, characterized in that Before decrypting the target compressed package based on the target key to obtain the target confidential file, the method further includes: Collecting environmental information of the trusted execution environment; The environment information of the trusted execution environment is sent to a remote attestation service, wherein the remote attestation service performs security authentication on the trusted execution environment based on the environment information, and feeds back the target key to the virtual machine through a key proxy service after the security authentication passes.

4. The method according to claim 1, characterized in that Requesting a remote attestation service to perform security authentication on the non-trusted execution environment includes: Determining environmental information of the untrusted execution environment; A second parameter tuning request is generated based on the environmental information of the non-trusted execution environment, and the second parameter tuning request is sent to the remote attestation service to request the remote attestation service to perform security authentication on the non-trusted execution environment based on the environmental information of the non-trusted execution environment.

5. The method according to claim 4, characterized in that Generating a second parameter tuning request according to the environment information of the non-trusted execution environment includes: Determining file information of a target tuning file according to the first parameter tuning request, wherein the target tuning file is a file required for parameter tuning of the application, and the target tuning file includes the target confidentiality file; A second parameter tuning request is generated based on the file information and the environment information of the non-trusted execution environment, wherein the remote attestation service generates the parameter tuning instruction based on the file information after the security authentication of the non-trusted execution environment passes.

6. The method according to claim 2, characterized in that Get the target compressed package including: In case of receiving a function extension instruction from a user for the virtual machine, determining a target compressed package to be downloaded according to the function extension instruction; The target compressed package is downloaded from the first storage area to a second storage area in the virtual machine, wherein the second storage area has access restrictions.

7. The method according to claim 6, characterized in that The target confidential file decrypted from the target compressed package is stored in the second storage area. After the target confidential file is loaded into the trusted execution environment in the virtual machine, the method further includes: If the virtual machine is restarted, then upon detecting that the restart of the virtual machine is complete, the target confidential file in the second storage area is reloaded into the trusted execution environment of the virtual machine.

8. A parameter tuning device, characterized in that: include: An acquisition unit, configured to acquire a target confidentiality file, wherein the target confidentiality file is a confidentiality file required for parameter tuning of an application running in a virtual machine; A first processing unit, configured to load the target confidential file into a trusted execution environment in the virtual machine; A second processing unit, configured to perform parameter tuning on the application based on the target confidential file in the trusted execution environment; The virtual machine also includes a non-trusted execution environment, and the second processing unit includes: a request subunit, configured to, upon receiving a first parameter tuning request from a user for the application through the non-trusted execution environment, request a remote attestation service to perform security authentication on the non-trusted execution environment, wherein the remote attestation service generates a parameter tuning instruction after the security authentication passes; The second processing sub-unit is used to, upon receiving the parameter tuning instruction, perform parameter tuning on the application based on the target confidential file in the trusted execution environment to process the first parameter tuning request.

9. An electronic device, characterized in that: include: A memory storing an executable program; A processor is used to run the program, wherein the parameter tuning method of any one of claims 1 to 7 is executed when the program is run.

10. A computer program product, characterized in that The method comprises a computer program or an instruction, which implements the parameter tuning method according to any one of claims 1 to 7 when executed by a processor.