Data processing method, device, electronic device and storage medium

By generating and verifying encrypted task logs of virtual machine tasks, the problem that virtual machine task logs are easily tampered with is solved, a trusted and traceable log service for virtual machines is realized, and the security protection of virtual machines is enhanced.

CN115934258BActive Publication Date: 2024-08-30BEIJING VOLCANO ENGINE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211732134.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-30
Publication Date
2024-08-30
Estimated Expiration
2042-12-30

AI Technical Summary

Technical Problem

Traditional virtualization technology cannot resist the security risks introduced by operation and maintenance personnel during operation and maintenance operations. Task logs are easily tampered with, making it difficult to locate the cause of the fault and unable to ensure the security of virtual machines.

Method used

When executing a virtual machine task, the task log text is generated, and the hash value of the historical encrypted log and the identity character of the virtual machine task are used to generate the header file information of the encrypted task log. The task log text and remote certification information are combined to form an encrypted task log. , ensure the credibility and traceability of logs.

Benefits of technology

By verifying the remote attestation information, the credibility of the header file information and task log text can be proven to form a chain structure. Users can check whether the chain structure is correct and determine whether the encrypted task log has been modified, thus providing the trustworthiness and security of the virtual machine. Traceable safety certificate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115934258B
    Figure CN115934258B
Patent Text Reader

Abstract

The present disclosure provides a data processing method, device, electronic device and storage medium, the method comprising: acquiring and executing a virtual machine task; generating a task log text corresponding to the virtual machine task; generating header file information of the encrypted task log of the virtual machine task based on a hash value of a historical encrypted log and a first identity character corresponding to the virtual machine task; the historical encrypted log is an encrypted log of a previous historical task of the currently executed virtual machine task; generating first remote certification information corresponding to the virtual machine task based on the header file information and the task log text; splicing the header file information, the task log text, and the first remote certification information to generate an encrypted task log of the virtual machine task; the encrypted task log is used to prove the credibility of the relevant task log text.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a data processing method, device, electronic device and storage medium. Background Art

[0002] A virtual machine is a complete computer system that is simulated by software and has complete hardware system functions and runs in a completely isolated environment. By running a virtual machine to perform related tasks, it provides stronger isolation for workloads on the same host, which can greatly reduce the ability of malicious programs to obtain confidential data from other virtual machines running on the same host.

[0003] However, traditional virtualization technology cannot resist the security risks caused by the operation and maintenance personnel when performing operation and maintenance operations. For example, the operation and maintenance personnel will perform operation and maintenance operations such as task configuration and startup on the virtual machine. When implementing these operation and maintenance operations, some security risks may be introduced. Since the operation and maintenance operations are usually recorded through task logs, the cause of the fault can be traced through the task logs, but the task logs may be tampered with. Once tampered with, it is difficult to locate the cause of the fault, making it difficult to ensure the security of the virtual machine. Based on this technical scenario, a reliable and traceable log service for virtual machines is needed to enhance the security protection of virtual machines. Therefore, how to ensure the credibility of task logs is a problem worth solving. Summary of the invention

[0004] The disclosed embodiments at least provide a data processing method, device, electronic device and storage medium. When executing a virtual machine task, a task log text corresponding to the virtual machine task is generated. The header file information of the encrypted task log is generated by using the hash value of the historical encrypted log and the first identity character corresponding to the virtual machine task. The header file information and the task log text are then used to generate the first remote certification information. The header file information, the task log text and the first remote certification information are spliced ​​to obtain an encrypted task log. The header file information in the encrypted task can reflect the encrypted log of the previous historical task. The header file information can be used to verify the credibility of the historical encrypted log, and the remote certification information can reflect the header file information and the task log text, thereby proving the credibility of the header file information and the task log text, thereby realizing a reliable and traceable task log.

[0005] In a first aspect, an embodiment of the present disclosure provides a data processing method, including:

[0006] Get and execute virtual machine tasks;

[0007] Generate a task log text corresponding to the virtual machine task;

[0008] Based on the hash value of the historical encrypted log and the first identity character corresponding to the virtual machine task, the header file information of the encrypted task log of the virtual machine task is generated; the historical encrypted log is the encrypted log of the previous historical task of the currently executed virtual machine task;

[0009] Generate first remote certification information corresponding to the virtual machine task based on the header file information and the task log text;

[0010] The header file information, the task log text, and the first remote certification information are spliced ​​to generate an encrypted task log of the virtual machine task; the encrypted task log is used to prove the credibility of the relevant task log text.

[0011] In an optional implementation, the generating the first remote attestation information corresponding to the virtual machine task based on the header file information and the task log text includes:

[0012] The header file information is concatenated with the task log text to obtain first verification information corresponding to the header file information;

[0013] The physical hardware corresponding to the virtual machine is used to sign the hash value of the first verification information and the operating environment information of the virtual machine to obtain first remote certification information.

[0014] In an optional implementation manner, obtaining the virtual machine task includes:

[0015] In response to the communication connection instruction, based on the second identity character carried in the communication connection instruction and the first key corresponding to the current virtual machine, determine the first communication credential corresponding to the virtual machine;

[0016] Sending the first communication credential to a target communication terminal, and establishing a communication connection with the target communication terminal after the target communication terminal successfully verifies the first communication credential;

[0017] Based on the communication connection, the virtual machine task of the target communication end is obtained.

[0018] In an optional implementation, determining the first communication credential corresponding to the virtual machine based on the second identity character carried by the communication connection instruction and the first key corresponding to the current virtual machine includes:

[0019] Based on the second identity character carried by the communication connection instruction and the first key corresponding to the current virtual machine, generate second verification information corresponding to the second identity character;

[0020] Using a signature key corresponding to the physical hardware running the virtual machine, the second verification information and the operating environment information of the virtual machine are signed to obtain second remote certification information;

[0021] Based on the second remote certification information and the first key, a first communication credential corresponding to the virtual machine is determined.

[0022] In an optional implementation, the generating, based on the second identity character carried by the communication connection instruction and the first key corresponding to the current virtual machine, the second verification information corresponding to the second identity character includes:

[0023] Concatenate the second identity character with the first key to obtain initial second verification information;

[0024] Determine a hash value of the initial second verification information, and use the determined hash value as the second verification information corresponding to the second identity character.

[0025] In an optional implementation, the virtual machine task includes a virtual service loading task and / or a virtual service configuration task.

[0026] In an optional implementation, executing a virtual machine task includes:

[0027] When the virtual machine task is a loading task of a virtual service, sending a key acquisition request to a key management terminal;

[0028] Based on the third identity character fed back by the key management terminal and the second key corresponding to the current virtual machine, generate third verification information corresponding to the third identity character;

[0029] Using the physical hardware corresponding to the virtual machine, the third verification information and the operating environment information of the virtual machine are signed to obtain third remote certification information;

[0030] Determining a third communication credential corresponding to the virtual machine based on the third remote attestation information and the second key;

[0031] Sending the third communication credential to the key management end, and obtaining from the key management end a third key for decrypting the program to be loaded corresponding to the loading task after the key management end successfully verifies the third communication credential;

[0032] Based on the third key, the program to be loaded is loaded.

[0033] In a second aspect, an embodiment of the present disclosure further provides a data processing device, including:

[0034] An execution module, used to obtain and execute virtual machine tasks;

[0035] A first generating module, used to generate a task log text corresponding to the virtual machine task;

[0036] A second generating module is used to generate header file information of the encrypted task log of the virtual machine task based on the hash value of the historical encrypted log and the first identity character corresponding to the virtual machine task; the historical encrypted log is the encrypted log of the previous historical task of the currently executed virtual machine task;

[0037] A third generating module, used to generate first remote certification information corresponding to the virtual machine task based on the header file information and the task log text;

[0038] The fourth generation module is used to splice the header file information, the task log text, and the first remote certification information to generate an encrypted task log of the virtual machine task; the encrypted task log is used to prove the credibility of the relevant task log text.

[0039] In a third aspect, an embodiment of the present disclosure further provides an electronic device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus, and when the machine-readable instructions are executed by the processor, the above-mentioned data processing method, or steps in any possible implementation of the data processing method, are performed.

[0040] In a fourth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned data processing method, or the steps in any possible implementation of the data processing method, is executed.

[0041] The data processing method, device, electronic device and storage medium provided by the embodiments of the present disclosure obtain and execute virtual machine tasks; generate a task log text corresponding to the virtual machine task; generate header file information of the encrypted task log of the virtual machine task based on the hash value of the historical encrypted log and the first identity character corresponding to the virtual machine task; the historical encrypted log is the encrypted log of the previous historical task of the currently executed virtual machine task; based on the header file information and the task log text, generate the first remote certification information corresponding to the virtual machine task; splice the header file information, the task log text, and the first remote certification information to generate an encrypted task log of the virtual machine task; the encrypted task log is used to prove the credibility of the relevant task log text. The encrypted task log of the disclosed embodiment can prove the security of the header file information and the task log text by verifying its corresponding first remote proof information, and the header file information can verify the security of the historical encrypted log, so that each adjacent encrypted task log forms a chain structure. Any tampering of the historical encrypted log will be reflected in the chain structure. When the user views the encrypted task log, he only needs to check whether the chain structure is correct to know whether the encrypted task log has been modified, which can provide a reliable and traceable security proof for the virtual machine.

[0042] In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following is a brief introduction to the drawings required for use in the embodiments. The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used together with the specification to illustrate the technical solutions of the present disclosure. It should be understood that the following drawings only illustrate certain embodiments of the present disclosure and should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can also be obtained based on these drawings without creative work.

[0044] Figure 1 A flow chart of a data processing method provided by an embodiment of the present disclosure is shown;

[0045] Figure 2 A schematic diagram of an encrypted task log provided by an embodiment of the present disclosure is shown;

[0046] Figure 3 A flowchart showing the steps of obtaining a virtual machine task provided by an embodiment of the present disclosure is shown;

[0047] Figure 4A schematic diagram of a data processing system provided by an embodiment of the present disclosure is shown;

[0048] Figure 5 A schematic diagram of a key management terminal provided by an embodiment of the present disclosure is shown;

[0049] Figure 6 A flowchart of a deployment data processing system provided by an embodiment of the present disclosure is shown;

[0050] Figure 7 A schematic diagram of multi-virtual machine deployment provided in an embodiment of the present disclosure is shown;

[0051] Figure 8 A schematic diagram of a data processing device provided by an embodiment of the present disclosure is shown;

[0052] Fig. 9 A schematic diagram of an electronic device provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0053] In order to make the purpose, technical scheme and advantages of the embodiments of the present disclosure clearer, the technical scheme in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. The components of the embodiments of the present disclosure generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure provided in the drawings is not intended to limit the scope of the present disclosure for protection, but merely represents the selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present disclosure.

[0054] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0055] The term "and / or" herein only describes an association relationship, indicating that three relationships may exist. For example, A and / or B may represent the following three situations: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C may represent including any one or more elements selected from the set consisting of A, B, and C.

[0056] In order to solve the technical problem that the security of virtual machine task logs in the prior art cannot be guaranteed, the embodiment of the present disclosure provides a data processing method. When executing a virtual machine task, a task log text corresponding to the virtual machine task is generated, and the header file information of the encrypted task log is generated by using the hash value of the historical encrypted log and the first identity character corresponding to the virtual machine task. The header file information and the task log text are then used to generate the first remote proof information. The header file information, the task log text and the first remote proof information are spliced ​​to obtain the encrypted task log. The header file information in the encrypted task can reflect the encrypted log of the previous historical task. The header file information can be used to verify the credibility of the historical encrypted log, and the remote proof information can reflect the header file information and the task log text, thereby proving the credibility of the header file information and the task log text, thereby realizing a reliable and traceable task log.

[0057] To facilitate understanding of this embodiment, a data processing method disclosed in an embodiment of the present disclosure is first introduced in detail. The execution subject of the data processing method provided in the embodiment of the present disclosure is generally a computer device with certain computing capabilities. In some possible implementations, the data processing method can be implemented by a processor calling a computer-readable instruction stored in a memory.

[0058] See also Figure 1 As shown, it is a flow chart of a data processing method provided by an embodiment of the present disclosure. The execution subject of the method takes a virtual machine as an example, and includes steps S101 to S105, wherein:

[0059] S101, obtaining and executing a virtual machine task.

[0060] In this step, the virtual machine can obtain the virtual machine task from the corresponding target communication end. The virtual machine task may include the virtual service loading task and / or the virtual service configuration task. The virtual service loading task enables the virtual machine to load the virtual service image and thus run the virtual service, while the virtual service configuration task can configure and maintain some parameters of the virtual machine or the running virtual service.

[0061] The target communication terminal may be a computer device running the virtual machine. The administrator may send a virtual machine task to the virtual machine through the target communication terminal to configure the virtual machine.

[0062] Before acquiring the virtual machine task, a communication connection may be established between the virtual machine and the target communication end. The target communication end may send a communication connection instruction to the virtual machine to start establishing the communication connection. After that, the target communication end and the virtual machine may communicate using the established communication connection.

[0063] S102: Generate a task log text corresponding to the virtual machine task.

[0064] Exemplarily, when a virtual machine executes a virtual machine task, a task log text corresponding to the virtual machine task may be generated, and the task log text may record the operation instructions received by the virtual machine, the operation results, the hash value of the operation command, and other data.

[0065] S103, generating header file information of the encrypted task log of the virtual machine task based on the hash value of the historical encrypted log and the first identity character corresponding to the virtual machine task; the historical encrypted log is the encrypted log of the previous historical task of the currently executed virtual machine task.

[0066] In order to ensure the traceability of the virtual machine task, a task log text corresponding to the virtual machine task can be generated. In order to ensure that the task log text is not tampered with, the task log can be encrypted.

[0067] The disclosed embodiment may adopt ring encryption, that is, the new encrypted log may include the information of the previous encrypted log. If the previous encrypted log is modified, it cannot match the information in the next encrypted log. To achieve this effect, the disclosed embodiment may generate the header file information of the encrypted task log based on the historical encrypted log of the previous historical task of the currently executed virtual machine task and the first identity character corresponding to the virtual machine task.

[0068] The above-mentioned header file information can be spliced ​​by the hash value of the historical encrypted log and the above-mentioned first identity character. When the first identity character is held, the hash value of the historical encrypted log in the header file information can be verified. If the hash value of the historical encrypted log is different from the hash value extracted from the header file information, it means that the historical encrypted log has been modified.

[0069] S104. Generate first remote certification information corresponding to the virtual machine task based on the header file information and the task log text.

[0070] Among them, remote attestation is a feature of the trusted execution environment. The attesting party can measure a series of dimensions such as its operating environment, hardware version, and execution code through physical hardware. At the same time, the measurement value can be generated by the trusted hardware into an unalterable digital signature endorsed by the hardware provider. The digital signature can be verified by the hardware provider and can be used as proof of the security of the physical hardware after verification.

[0071] In a specific implementation, the header file information can be spliced ​​with the task log text to obtain the first verification information corresponding to the header file information. Then, the hash value of the first verification information and the operating environment information of the virtual machine can be signed using the physical hardware corresponding to the virtual machine to obtain the first remote proof information.

[0072] Specifically, the hash value of the first verification information, the task log text, and the operating environment of the virtual machine may be measured, and the obtained measurement value may be signed.

[0073] Exemplarily, the above-mentioned physical hardware may be a processor that runs a virtual machine. The operating environment information of the virtual machine may include information such as the identification of the physical hardware that runs the virtual machine, the system version of the virtual machine, the execution code of the virtual machine, etc. These operating environment information may usually be pre-configured, and whether the virtual machine has been tampered with can be determined by verifying whether the operating environment is consistent with the pre-configuration.

[0074] In actual application, in addition to providing security verification of physical hardware, the above-mentioned first remote certification information can also verify whether the header file information and task log text information are modified by judging whether the header file information and task log text information match the header file information and task log text in the signed first remote certification information.

[0075] S105. Concatenate the header file information, the task log text, and the first remote certification information to generate an encrypted task log of the virtual machine task; the encrypted task log is used to prove the credibility of the relevant task log text.

[0076] In this step, the above header file information, task log text information and the first remote attestation information can be spliced ​​to obtain an encrypted task log. The task log text in the encrypted task log records the task execution process of the virtual machine executing the virtual machine task, the header file information in the encrypted task log is used to prove the credibility of the historical encrypted log, and the first remote attestation information is used to prove the credibility of the generated task log text and the header file information.

[0077] For details, see Figure 2 As shown, it is a schematic diagram of the encrypted task log provided by the embodiment of the present disclosure. The encrypted task log may include three components, namely a header, a middle part, and a tail part. The header may include the hash value of the historical encrypted log of the previous historical task, and a random string, that is, the above-mentioned header file information. The middle part may include the above-mentioned task log text, and the tail part may include the above-mentioned first remote proof information.

[0078] In order to ensure the data security of the encrypted task log, the encrypted task log can be encrypted again when it is transmitted, and the key used for encryption is saved by the key management end. When the target communication end decrypts the encrypted task log, it can request the key used for decryption from the key management end.

[0079] In one embodiment, a virtual machine task can be obtained from a target communication terminal through a communication connection. A communication agent module can be running in the virtual machine. The communication agent module can establish a communication connection with the target communication terminal in response to a communication connection instruction sent by the target communication terminal. The target communication terminal can be a host running the virtual machine, or other host. The target communication terminal can run a communication agent service. Before establishing a communication connection with the target communication terminal, the target communication terminal can first verify the security of the virtual machine.

[0080] See also Figure 3 As shown, it is a flowchart of the steps of obtaining virtual machine tasks provided in an embodiment of the present application, and the steps include S301 to S304, wherein:

[0081] S301. In response to a communication connection instruction, determine a first communication credential corresponding to the virtual machine based on a second identity character carried in the communication connection instruction and a first key corresponding to the current virtual machine.

[0082] The target communication end can generate a random string, that is, the second identity character. The communication agent module can send the second identity character to the communication agent module along with the communication connection instruction. The communication agent module can generate a public key and a private key. Using the public key, that is, the first key, the first communication credential information of the virtual machine can be generated using the second identity character set first key.

[0083] When generating the first communication credential information, the first key and the second identity character may be concatenated to obtain initial second verification information, and then a hash value of the initial second verification information may be calculated to obtain the second verification information.

[0084] Exemplarily, before obtaining the communication connection instruction, for the sake of communication security, the target communication end can pre-configure a certificate indicating the identity of the target communication end on the communication agent module, and the target communication end retains the private key corresponding to the certificate. Then, when the communication agent module is started on the virtual machine, the communication agent module generates its corresponding public key and private key, and sends a request to establish a connection to the target communication end, along with a random string. After obtaining the request to establish a connection, the target communication end can generate a second identity character, and then concatenate the second identity character generated by itself, the random string generated by the communication agent module, and its own public key, and sign it using the private key corresponding to the certificate stored in the communication agent module. Finally, the second identity character, the public key for communication stored by itself, the random string generated by the communication agent module with the certificate signature, and the signature are sent to the communication agent module.

[0085] Afterwards, the communication agent module may verify the received signature using the stored certificate and generate the second verification information mentioned above.

[0086] Then, after obtaining the second verification information, the communication agent module can use the signature key corresponding to the physical hardware running the virtual machine to sign the second verification information and the operating environment information of the virtual machine to obtain the second remote certification information.

[0087] Afterwards, the first communication credential corresponding to the virtual machine may be determined based on the second remote certification information and the first key.

[0088] Exemplarily, the second remote certification information and the first key may be directly used as the first communication credential corresponding to the virtual machine.

[0089] S302: Send the first communication credential to a target communication terminal, and establish a communication connection with the target communication terminal after the target communication terminal successfully verifies the first communication credential.

[0090] In this step, the first communication credential can be sent to the target communication end. The target communication end can first verify the signature in the first communication credential to prove the security of the physical hardware of the virtual machine, and then verify the signed data to verify whether the second identity authentication information therein is consistent with the second identity authentication information sent by itself to the communication agent module, and whether the environmental information of the virtual machine is correct, thereby verifying the security of the virtual machine.

[0091] After the target communication end successfully verifies the first communication credential, a communication connection can be established with the target communication end to exchange public keys and achieve secure communication.

[0092] S303: Based on the communication connection, obtain the virtual machine task of the target communication end.

[0093] After establishing the communication connection, data can be transmitted between the target communication end and the communication agent module. The target communication end or the communication agent module can generate a random string, encrypt the random string and the information to be sent through any symmetric encryption algorithm, and then encrypt the random string and the data to be transmitted using an asymmetric encryption algorithm, splice the data encrypted by the symmetric algorithm with the data encrypted by the asymmetric algorithm, and send the spliced ​​data to the other party to realize data transmission.

[0094] After establishing a communication connection with the target communication terminal, the target communication terminal can use the established communication connection to send a virtual machine task to the communication proxy module to implement configuration of the virtual machine.

[0095] When the virtual machine task is a loading task for a virtual service, the communication agent module will receive the encrypted image of the virtual service. In order to decrypt the encrypted image, a key acquisition request can be sent to the key management end. In the process of obtaining the key, the key management end and the communication agent module can first prove their own security to each other, and the proof method can be similar to that of the target communication end.

[0096] Exemplarily, the communication agent module may first send a key acquisition request to the key management end; then, based on the third identity character fed back by the key management end and the second key corresponding to the current virtual machine, generate third verification information corresponding to the third identity character; then, use the physical hardware corresponding to the virtual machine to sign the third verification information and the operating environment information of the virtual machine to obtain third remote certification information; then, based on the third remote certification information and the second key, determine the second communication credential corresponding to the current virtual machine; finally, send the second communication credential to the key management end, and after the key management end successfully verifies the second communication credential, obtain from the key management end the third key for decrypting the program to be loaded corresponding to the loading task; then, the program to be loaded can be loaded based on the third key.

[0097] The way in which the key management end proves its own security to the communication proxy module is similar to the above steps, and the above second key can be replaced by data determined based on the common parameters and private parameters in the key exchange protocol.

[0098] After the first communication credential is sent to the target communication end, the target communication end needs to verify the first communication credential. The detailed verification process may be as follows:

[0099] 1. Send a communication connection instruction to the virtual machine; the communication connection instruction carries a second identity character.

[0100] 2. Obtain a first communication credential fed back by the virtual machine; the first communication credential includes second remote certification information obtained by signing the second verification information and the operating environment information of the virtual machine by the physical hardware corresponding to the virtual machine, and a first communication credential determined based on the second remote certification information and the first key of the virtual machine; the second verification information is generated based on the second identity character and the first key.

[0101] 3. Request the service provider corresponding to the physical hardware to perform signature authentication on the second remote certification information carried in the first communication credential, and extract the first key from the first communication credential when the second remote certification information passes the signature authentication; concatenate the extracted first key and the second identity character sent to the virtual machine to obtain the character to be verified, and verify the first communication credential based on the character to be verified and the second verification information carried in the first communication credential.

[0102] In this step, the target communication end can request the service provider corresponding to the physical hardware, such as the hardware provider, to perform signature authentication on the first remote proof information to determine whether the signature is signed by the physical hardware provided by the service provider. After passing the signature authentication, the first identity character can be verified.

[0103] In this step, the first verification information is a hash value of the initial first verification information obtained by concatenating the first verification character and the first key. The first communication credential can be verified based on the hash value of the verification character and the first verification information.

[0104] 4. When the first communication credential is successfully verified and the operating environment information carried in the first remote certification information is correct, establish a communication connection with the virtual machine.

[0105] In this step, if the first communication credential is successfully verified and the operating environment information of the virtual machine is consistent with the pre-configured operating environment information, it can be determined that the virtual machine is safe and a communication connection can be established with the target communication end.

[0106] The data processing method provided by the present invention can prove the security of the virtual machine by verifying the first remote proof information corresponding to the encrypted task log, and the first remote information proof is determined based on the task log text and the historical encryption log of the previous historical task of the currently executing virtual machine task, so that each adjacent encrypted task log forms a chain structure, and any tampering of the historical encrypted log will be reflected in the chain structure. When the user views the encrypted task log, he only needs to check whether the chain structure is correct to know whether the encrypted task log has been modified, which can provide a valid and tamper-proof security proof for the virtual machine.

[0107] See also Figure 4As shown, it is a schematic diagram of a data processing system provided by an embodiment of the present disclosure, the data processing system is composed of a virtual machine, a host machine (target communication end) running the virtual machine, and a key management end. Task loads and communication agent modules can be run in the virtual machine, and a load monitoring module, an encryption / decryption module, a load loading module and a log module are deployed in the communication agent module. A communication agent service can be run in the host machine, and the communication between the communication agent service and the communication agent module can be based on the Virtual Machine Communication Interface Sockets (VSOCK) technology. The communication agent service can obtain the task log from the communication agent module and display it through the trusted log module. The user can use the service update module of the communication agent module to publish virtual machine tasks to the virtual machine. The virtual machine and the password management end can establish trusted proofs with each other and transmit the keys required for decryption. The password management end can use the trusted root service to ensure the security of the stored keys.

[0108] See also Figure 5 As shown, it is a schematic diagram of the key management terminal provided by the embodiment of the present disclosure. The key management terminal includes an authentication module, a remote proof module and a trusted storage module, and can interact with a key access client, such as a virtual machine or a host machine. The key access client can have a secure communication module and a remote proof module. The key management terminal and the key access client can also use the trust root service to obtain the trust root to achieve trusted data interaction. Prepare the virtual machine image, implant the communication proxy module, close other external access structures, complete the measurement of the image, determine the pre-configured operating environment of the virtual machine, and complete the information registration of the key management terminal

[0109] See also Figure 6 As shown, it is a flow chart of deploying a data processing system provided by an embodiment of the present disclosure. As shown in the figure, the deployment of the data processing system first needs to be initialized, the virtual machine and the host machine are configured, the virtualization program is installed, the operating environment is updated, and the communication agent service is installed. Then, the virtual machine image is prepared, and the communication agent module is implanted in the virtual machine image, other external access structures are closed, the image is measured, the pre-configured operating environment of the virtual machine is determined, and the information registration of the key management end is completed. Then, the virtual machine is started, and the configuration command is sent to the communication agent module through the communication agent service to complete the environment preparation for running the task load. The communication agent module generates a task log. After that, the communication agent service encrypts the image of the task load, registers the load decryption key at the key management end, and then sends the image of the task load to the communication agent module. The communication agent module and the key management end remotely prove the credibility of both parties, then obtain the key, decrypt the task load, and finally start the task load.

[0110] See also Figure 7 As shown, it is a schematic diagram of the deployment of multiple virtual machines provided in an embodiment of the present disclosure, which includes multiple host machines, each of which can run multiple virtual machines, and each host machine can deploy a communication proxy service. Each virtual machine running on the host machine communicates with the communication proxy service through its own communication proxy module.

[0111] Those skilled in the art will appreciate that, in the above method of specific implementation, the order in which the steps are written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of the steps should be determined by their functions and possible internal logic.

[0112] Based on the same inventive concept, a data processing device corresponding to the data processing method is also provided in the embodiment of the present disclosure. Since the principle of solving the problem by the device in the embodiment of the present disclosure is similar to the above-mentioned data processing method in the embodiment of the present disclosure, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.

[0113] Reference Figure 8 FIG. 1 is a schematic diagram of a data processing device provided by an embodiment of the present disclosure, wherein the device includes:

[0114] An execution module 810 is used to obtain and execute virtual machine tasks;

[0115] A first generating module 820, configured to generate a task log text corresponding to the virtual machine task;

[0116] The second generating module 830 is used to generate header file information of the encrypted task log of the virtual machine task based on the hash value of the historical encrypted log and the first identity character corresponding to the virtual machine task; the historical encrypted log is the encrypted log of the previous historical task of the currently executed virtual machine task;

[0117] A third generating module 840 is used to generate first remote certification information corresponding to the virtual machine task based on the header file information and the task log text;

[0118] The fourth generation module 850 is used to splice the header file information, the task log text, and the first remote certification information to generate an encrypted task log of the virtual machine task; the encrypted task log is used to prove the credibility of the relevant task log text.

[0119] In an optional implementation manner, the third generating module 840 is specifically configured to:

[0120] The header file information is concatenated with the task log text to obtain first verification information corresponding to the header file information;

[0121] The physical hardware corresponding to the virtual machine is used to sign the hash value of the first verification information and the operating environment information of the virtual machine to obtain first remote certification information.

[0122] In an optional implementation manner, the execution module 810 is specifically configured to:

[0123] In response to the communication connection instruction, based on the second identity character carried in the communication connection instruction and the first key corresponding to the current virtual machine, determine the first communication credential corresponding to the virtual machine;

[0124] Sending the first communication credential to a target communication terminal, and establishing a communication connection with the target communication terminal after the target communication terminal successfully verifies the first communication credential;

[0125] Based on the communication connection, the virtual machine task of the target communication end is obtained.

[0126] In an optional implementation, when the execution module 810 determines the first communication credential corresponding to the virtual machine based on the second identity character carried by the communication connection instruction and the first key corresponding to the current virtual machine, it is used to:

[0127] Based on the second identity character carried by the communication connection instruction and the first key corresponding to the current virtual machine, generate second verification information corresponding to the second identity character;

[0128] Using a signature key corresponding to the physical hardware running the virtual machine, the second verification information and the operating environment information of the virtual machine are signed to obtain second remote certification information;

[0129] Based on the second remote certification information and the first key, a first communication credential corresponding to the virtual machine is determined.

[0130] In an optional implementation, when the execution module 810 generates the second verification information corresponding to the second identity character based on the second identity character carried by the communication connection instruction and the first key corresponding to the current virtual machine, it is used to:

[0131] Concatenate the second identity character with the first key to obtain initial second verification information;

[0132] Determine a hash value of the initial second verification information, and use the determined hash value as the second verification information corresponding to the second identity character.

[0133] In an optional implementation, the virtual machine task includes a virtual service loading task and / or a virtual service configuration task.

[0134] In an optional implementation, when executing a virtual machine task, the execution module 810 is used to:

[0135] When the virtual machine task is a loading task of a virtual service, sending a key acquisition request to a key management terminal;

[0136] Based on the third identity character fed back by the key management terminal and the second key corresponding to the current virtual machine, generate third verification information corresponding to the third identity character;

[0137] Using the physical hardware corresponding to the virtual machine, the third verification information and the operating environment information of the virtual machine are signed to obtain third remote certification information;

[0138] Determining a third communication credential corresponding to the virtual machine based on the third remote attestation information and the second key;

[0139] Sending the third communication credential to the key management end, and obtaining from the key management end a third key for decrypting the program to be loaded corresponding to the loading task after the key management end successfully verifies the third communication credential;

[0140] Based on the third key, the program to be loaded is loaded.

[0141] For descriptions of the processing flow of each module in the device and the interaction flow between each module, reference may be made to the relevant descriptions in the above method embodiment, which will not be described in detail here.

[0142] Corresponds to Figure 1 The data processing method in the present disclosure also provides an electronic device 900, such as Fig. 9 FIG. 1 is a schematic diagram of the structure of an electronic device 900 provided in an embodiment of the present disclosure, including:

[0143] Processor 91, memory 92, and bus 93; memory 92 is used to store execution instructions, including internal memory 921 and external memory 922; the internal memory 921 is also called internal memory, which is used to temporarily store the operation data in the processor 91 and the data exchanged with the external memory 922 such as a hard disk. The processor 91 exchanges data with the external memory 922 through the internal memory 921. When the electronic device 900 is running, the processor 91 communicates with the memory 92 through the bus 93, so that the processor 91 executes the following instructions:

[0144] Get and execute virtual machine tasks;

[0145] Generate a task log text corresponding to the virtual machine task;

[0146] Based on the hash value of the historical encrypted log and the first identity character corresponding to the virtual machine task, the header file information of the encrypted task log of the virtual machine task is generated; the historical encrypted log is the encrypted log of the previous historical task of the currently executed virtual machine task;

[0147] Generate first remote certification information corresponding to the virtual machine task based on the header file information and the task log text;

[0148] The header file information, the task log text, and the first remote certification information are spliced ​​to generate an encrypted task log of the virtual machine task; the encrypted task log is used to prove the credibility of the relevant task log text.

[0149] In an optional implementation, in the instructions executed by the processor 91, generating the first remote attestation information corresponding to the virtual machine task based on the header file information and the task log text includes:

[0150] The header file information is concatenated with the task log text to obtain first verification information corresponding to the header file information;

[0151] The physical hardware corresponding to the virtual machine is used to sign the hash value of the first verification information and the operating environment information of the virtual machine to obtain first remote certification information.

[0152] In an optional implementation manner, the instructions executed by the processor 91 to obtain the virtual machine task include:

[0153] In response to the communication connection instruction, based on the second identity character carried in the communication connection instruction and the first key corresponding to the current virtual machine, determine the first communication credential corresponding to the virtual machine;

[0154] Sending the first communication credential to a target communication terminal, and establishing a communication connection with the target communication terminal after the target communication terminal successfully verifies the first communication credential;

[0155] Based on the communication connection, the virtual machine task of the target communication end is obtained.

[0156] In an optional implementation, in the instruction executed by the processor 91, determining the first communication credential corresponding to the virtual machine based on the second identity character carried by the communication connection instruction and the first key corresponding to the current virtual machine includes:

[0157] Based on the second identity character carried by the communication connection instruction and the first key corresponding to the current virtual machine, generate second verification information corresponding to the second identity character;

[0158] Using a signature key corresponding to the physical hardware running the virtual machine, the second verification information and the operating environment information of the virtual machine are signed to obtain second remote certification information;

[0159] Based on the second remote certification information and the first key, a first communication credential corresponding to the virtual machine is determined.

[0160] In an optional implementation, in the instruction executed by the processor 91, the generating, based on the second identity character carried by the communication connection instruction and the first key corresponding to the current virtual machine, the second verification information corresponding to the second identity character includes:

[0161] Concatenate the second identity character with the first key to obtain initial second verification information;

[0162] Determine a hash value of the initial second verification information, and use the determined hash value as the second verification information corresponding to the second identity character.

[0163] In an optional implementation, the virtual machine task includes a virtual service loading task and / or a virtual service configuration task.

[0164] In an optional implementation manner, the instructions executed by the processor 91 include executing a virtual machine task, including:

[0165] When the virtual machine task is a loading task of a virtual service, sending a key acquisition request to a key management terminal;

[0166] Based on the third identity character fed back by the key management terminal and the second key corresponding to the current virtual machine, generate third verification information corresponding to the third identity character;

[0167] Using the physical hardware corresponding to the virtual machine, the third verification information and the operating environment information of the virtual machine are signed to obtain third remote certification information;

[0168] Determining a third communication credential corresponding to the virtual machine based on the third remote attestation information and the second key;

[0169] Sending the third communication credential to the key management end, and obtaining from the key management end a third key for decrypting the program to be loaded corresponding to the loading task after the key management end successfully verifies the third communication credential;

[0170] Based on the third key, the program to be loaded is loaded.

[0171] The present disclosure also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the data processing method described in the above method embodiment are executed. The storage medium can be a volatile or non-volatile computer-readable storage medium.

[0172] The embodiments of the present disclosure also provide a computer program product, which carries a program code. The instructions included in the program code can be used to execute the steps of the data processing method described in the above method embodiment. For details, please refer to the above method embodiment, which will not be repeated here.

[0173] The computer program product may be implemented in hardware, software or a combination thereof. In one optional embodiment, the computer program product is implemented as a computer storage medium. In another optional embodiment, the computer program product is implemented as a software product, such as a software development kit (SDK).

[0174] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. In the several embodiments provided in the present disclosure, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. 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 communication interfaces, and the indirect coupling or communication connection of the device or unit can be electrical, mechanical or other forms.

[0175] 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.

[0176] In addition, each functional unit in each embodiment of the present disclosure 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.

[0177] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0178] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The protection scope of the present disclosure is not limited thereto. Although the present disclosure is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed in the present disclosure, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.

Claims

1. A data processing method, characterized in that: include: Get and execute virtual machine tasks; Generate a task log text corresponding to the virtual machine task; Based on the hash value of the historical encrypted log and the first identity character corresponding to the virtual machine task, the header file information of the encrypted task log of the virtual machine task is generated; the historical encrypted log is the encrypted log of the previous historical task of the currently executed virtual machine task; Generate first remote certification information corresponding to the virtual machine task based on the header file information and the task log text; The header file information, the task log text, and the first remote proof information are spliced ​​to generate an encrypted task log of the virtual machine task; the encrypted task log is used to prove the credibility of the relevant task log text; Among them, the first remote certification information carries the operating environment information of the virtual machine.

2. The data processing method according to claim 1, characterized in that: The generating, based on the header file information and the task log text, first remote attestation information corresponding to the virtual machine task comprises: The header file information is concatenated with the task log text to obtain first verification information corresponding to the header file information; The physical hardware corresponding to the virtual machine is used to sign the hash value of the first verification information and the operating environment information of the virtual machine to obtain the first remote certification information.

3. The data processing method according to claim 1, characterized in that: Obtaining the virtual machine task includes: In response to the communication connection instruction, based on the second identity character carried in the communication connection instruction and the first key corresponding to the current virtual machine, determine the first communication credential corresponding to the virtual machine; Sending the first communication credential to a target communication terminal, and establishing a communication connection with the target communication terminal after the target communication terminal successfully verifies the first communication credential; Based on the communication connection, the virtual machine task of the target communication end is obtained.

4. The data processing method according to claim 3, characterized in that: The determining, based on the second identity character carried by the communication connection instruction and the first key corresponding to the current virtual machine, the first communication credential corresponding to the virtual machine includes: Based on the second identity character carried by the communication connection instruction and the first key corresponding to the current virtual machine, generate second verification information corresponding to the second identity character; Using a signature key corresponding to the physical hardware running the virtual machine, the second verification information and the operating environment information of the virtual machine are signed to obtain second remote certification information; Based on the second remote certification information and the first key, a first communication credential corresponding to the virtual machine is determined.

5. The data processing method according to claim 4, characterized in that: The generating, based on the second identity character carried by the communication connection instruction and the first key corresponding to the current virtual machine, second verification information corresponding to the second identity character includes: Concatenate the second identity character with the first key to obtain initial second verification information; Determine a hash value of the initial second verification information, and use the determined hash value as the second verification information corresponding to the second identity character.

6. The data processing method according to claim 1, characterized in that: The virtual machine task includes a virtual service loading task and / or a virtual service configuration task.

7. The data processing method according to claim 6, characterized in that: Perform virtual machine tasks, including: When the virtual machine task is a loading task of a virtual service, sending a key acquisition request to a key management terminal; Based on the third identity character fed back by the key management terminal and the second key corresponding to the current virtual machine, generate third verification information corresponding to the third identity character; Using the physical hardware corresponding to the virtual machine, the third verification information and the operating environment information of the virtual machine are signed to obtain third remote certification information; Determining a third communication credential corresponding to the virtual machine based on the third remote attestation information and the second key; Sending the third communication credential to the key management end, and obtaining from the key management end a third key for decrypting the program to be loaded corresponding to the loading task after the key management end successfully verifies the third communication credential; Based on the third key, the program to be loaded is loaded.

8. A data processing device, characterized in that: include: An execution module, used to obtain and execute virtual machine tasks; A first generating module, used to generate a task log text corresponding to the virtual machine task; A second generating module is used to generate header file information of the encrypted task log of the virtual machine task based on the hash value of the historical encrypted log and the first identity character corresponding to the virtual machine task; the historical encrypted log is the encrypted log of the previous historical task of the currently executed virtual machine task; A third generating module, used to generate first remote certification information corresponding to the virtual machine task based on the header file information and the task log text; A fourth generation module, used to splice the header file information, the task log text, and the first remote proof information to generate an encrypted task log of the virtual machine task; the encrypted task log is used to prove the credibility of the relevant task log text; Among them, the first remote certification information carries the operating environment information of the virtual machine.

9. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the data processing method as described in any one of claims 1 to 7 are performed.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the data processing method according to any one of claims 1 to 7 are executed.

Citation Information

Patent Citations

  • Plaintext log-based receipt storage method, node and system

    CN110245489A

  • Operation record storage method and device based on trusted execution environment, and equipment

    CN110457898A