Data protection method and device, computer equipment and storage medium
By monitoring the device network status in real time, automatically controlling the encryption and decryption of storage partitions, and using composite key technology and two-way authentication, it solves the problems of cumbersome user operations and high operation and maintenance costs in enterprise data protection, and achieves convenient and efficient data protection. Access control improves the level of data security management.
Patent Information
- Application Number
- CN202410640442.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-22
- Publication Date
- 2024-09-03
AI Technical Summary
Existing enterprise data protection methods have cumbersome user operations and high operation and maintenance costs, making it difficult to achieve convenient and efficient data access control.
By obtaining the network identification of the device connection, real-time monitoring of network status, automatic control of the encryption and decryption of storage partitions, and the use of composite key technology and two-way authentication to achieve adaptive responses to different network environments.
It improves the convenience and security of data access, reduces human operation risks, improves the efficiency of enterprise data security management, and meets enterprise management needs.
Smart Images

Figure CN118590271A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data security and network storage technology, and in particular to a data protection method, device, computer equipment and storage medium. Background Art
[0002] As the degree of enterprise informatization increases, the data security of employees' office computers has become an aspect that enterprise managers must pay attention to. Existing enterprises usually need to rely on access control and identity authentication mechanisms to ensure that only authorized employees can access company computers and the data in them. This method has defects such as cumbersome user operations and high operation and maintenance costs, which has brought a lot of trouble to enterprise management.
[0003] In view of this, a more convenient and efficient data protection method is needed. Summary of the invention
[0004] In view of this, the present invention provides a data protection method, apparatus, computer equipment and storage medium to solve the problem of cumbersome and inefficient data access control in data protection.
[0005] In a first aspect, the present invention provides a data protection method, comprising: obtaining a network identifier to which a current device is connected, wherein file data in a local target storage partition is in an encrypted state, and the target storage partition is used to store protected files; determining whether a currently connected network is a secure network based on the network identifier; and if the currently connected network is a secure network, decrypting the encrypted file data in the target storage partition.
[0006] In a second aspect, the present invention provides a data protection device, which includes: an identification acquisition module, used to obtain the network identification to which the current device is connected, wherein the file data in the local target storage partition is in an encrypted state, and the target storage partition is used to store protected files; a network determination module, used to determine whether the currently connected network is a secure network based on the network identification; and a data decryption module, used to decrypt the encrypted file data in the target storage partition if the currently connected network is a secure network.
[0007] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the data protection method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0008] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the protection method of the first aspect or any corresponding embodiment thereof.
[0009] In a fifth aspect, the present invention provides a computer program product, comprising computer instructions, wherein the computer instructions are used to enable a computer to execute the protection method of the first aspect or any corresponding embodiment thereof.
[0010] The technical solution provided by one or more embodiments of the present invention can adapt to changes in network metrics and automatically control the encryption and decryption operations of storage partition data. Specifically, by real-time monitoring of the device network connection status, it is determined whether the user has joined a specific wired or wireless network. If the user has joined a specific wired network, that is, in a secure network environment, the encrypted files in the storage partition are decrypted to allow the user to access them. In an insecure network environment, the encryption measures are strengthened and the composite key technology is used to further protect the data.
[0011] It can be seen that the technical solution proposed in the present invention realizes adaptive response to different network environments. Through automated encryption and decryption operations, it realizes adaptive response to different network environments. It also integrates multiple security measures such as composite key generation and two-way identity authentication, and builds a fast and efficient data protection system for users. It also integrates multiple security measures such as composite key generation and two-way identity authentication, and effectively protects the security of sensitive information of enterprises. When the enterprise device is connected to a specific network, the encrypted partition is automatically decrypted to make it visible in the system; when the enterprise device leaves the specific network, the encrypted partition is automatically encrypted and hidden under the system. This automated encryption and decryption operation improves the convenience of data access and ensures the security of data. It improves the efficiency of enterprise management, and encryption and decryption operations are automatically completed without manual intervention, which reduces the risk of manual operation and strengthens the security management of enterprise data. The intelligent encryption control method is more in line with the actual needs of enterprise management and improves the level of data security management. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0013] Figure 1 is a flowchart of a data protection method according to an embodiment of the present invention;
[0014] Figure 2 is a flowchart of a file data encryption method according to an embodiment of the present invention;
[0015] Figure 3 is a flow chart of a communication verification method according to an embodiment of the present invention;
[0016] Figure 4 is a flowchart of a method for restoring locking according to an embodiment of the present invention;
[0017] Figure 5 is a structural block diagram of a data protection device according to an embodiment of the present invention;
[0018] Figure 6 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0019] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0020] The embodiment of the present invention provides an automated storage partition data encryption and decryption method based on network metrics, which detects network metrics and applies composite key technology to achieve the effect of making data protection more convenient and efficient. According to an embodiment of the present invention, a data protection method embodiment is 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 a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that here.
[0021] In this embodiment, a data protection method is provided. Figure 1 is a flow chart of a data protection method according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:
[0022] Step S101, obtaining a network identifier to which the current device is connected, wherein file data in a local target storage partition is in an encrypted state, and the target storage partition is used to store protected files.
[0023] The system automatically detects and identifies the unique network ID of the network (such as home Wi-Fi, company internal network or public hotspot, etc.) that the current device (such as a personal computer, mobile phone or other network device) is connected to by reading the network configuration. There is a storage partition encrypted by the chip in the system for storing office data, and all file data in this partition is saved in encrypted form.
[0024] Step S102: determining whether the currently connected network is a secure network based on the network identifier.
[0025] Specifically, the above step S102 includes:
[0026] Step S1021, comparing the network identifier with the network identifiers in a predefined secure network list to obtain a comparison result, wherein the predefined secure network list includes secure network identifiers known in the system.
[0027] Step S1022: Based on the comparison result, determine whether the currently connected network is a secure network.
[0028] Each network has its own unique identifier, such as SSID (for Wi-Fi networks), IP address range or network name, which can help the system identify and distinguish different network environments.
[0029] Step S103: if the currently connected network is a secure network, the encrypted file data in the target storage partition is decrypted.
[0030] The decryption operation is to use the corresponding decryption key or algorithm to convert the encrypted files stored in the storage partition back to their original, readable plaintext form, allowing legitimate users to access and use the originally encrypted file data without hindrance.
[0031] The data protection method provided in this embodiment monitors the network status of the enterprise device connection in real time, intelligently determines whether the user has joined a specific wired or wireless network, and automatically controls the encryption and decryption operations of the encrypted partition. This automatic encryption and decryption mechanism based on the network status can more intelligently protect the security of important data and efficiently protect the security of sensitive enterprise information.
[0032] In some optional implementations, a file data encryption method is provided. Figure 2 is a flow chart of a file data encryption method according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:
[0033] Step S201: If it is detected that the local has left the secure network, a composite key is generated.
[0034] Specifically, the above step S201 includes:
[0035] Step S2011, obtaining the cloud key material generated by the server.
[0036] Step S2012, obtaining local key material generated by a local security chip.
[0037] Step S2013: merge the cloud key material and the local key material to obtain a composite key.
[0038] Step S202: Use the composite key to encrypt the file key in plain text to obtain the file key in cipher text.
[0039] Step S203: encrypt the file data in the target storage partition using the file key in the encrypted state.
[0040] For example, the server-side authentication and key management module generates a unique cloud key material A for the client and stores it securely. The client's encryption / decryption processing module uses the security chip in the client's data storage device to generate local key material B, and combines it with the encrypted cloud key material A received from the server to form a composite key A+B. For files that need to be encrypted, the encryption / decryption processing module uses the composite key A+B to encrypt the file key C in plaintext state, obtains the file key in ciphertext state, and stores it securely in the file header. The file content is encrypted using the file key.
[0041] Among them, in the server-side authentication and key management module, the core functions of the server include identity authentication, generation and issuance of digital certificates, and management of key materials. This module is responsible for processing the identity authentication materials (such as security chip ID, public key, etc.) submitted by the client device during the registration process, and securely signing these materials, generating a digital certificate and returning it to the client. At the same time, this module is responsible for generating, storing and managing cloud key material A, and securely transmitting the key material to the client during the authentication and decryption process. The data storage device is used to store office data, including a storage partition encrypted by the chip. The encryption / decryption processing module intelligently controls the encryption and decryption operations of the encrypted partition based on the detection results of the network detection module.
[0042] The file data encryption method provided in this embodiment automatically performs encryption and decryption operations by dynamically adapting to changes in network metrics. When an enterprise device leaves a specific network, the encryption control module automatically encrypts the encrypted partition and hides it under the system, effectively defending against potential internal and external data theft and tampering risks, and improving the security of enterprise data storage. The data storage device uses a partition encrypted by a chip to store sensitive information. Through chip-level encryption protection, the security of data storage is improved, effectively preventing data leakage and illegal access.
[0043] In some optional implementations, a communication verification method is provided. Figure 3 is a flow chart of a communication verification method according to an embodiment of the present invention. Figure 3 As shown, the process includes the following steps:
[0044] Step S301, obtain local identity authentication information, and send the identity authentication information to the server for verification to obtain the corresponding digital certificate after the identity authentication is passed.
[0045] Step S302, storing the digital certificate in a local security chip, and the digital certificate is used for communication verification.
[0046] For example, when the device enables encryption, the network status monitoring client module records the currently connected WiFi SSID and submits an authentication request to the server authentication and key management module through the identity authentication and communication module, including authentication information such as the public key generated from the client security chip. After receiving the authentication information, the server authentication and key management module verifies and generates a digital certificate, which is then returned to the client through a secure channel. After the client receives the digital certificate, the client security chip stores it securely for subsequent communication verification.
[0047] After the device confirms that it is connected to the predefined secure network through the network status monitoring client module, it sends a user authentication request to the server authentication and key management module through the identity authentication and communication module to perform two-way identity authentication between the server authentication and key management module and the client.
[0048] The network status monitoring client module is used to monitor the network status of enterprise equipment in real time and determine whether the user has joined a specific wired or wireless network. This real-time monitoring capability can detect changes in network status in a timely manner and provide accurate judgment basis for the encryption control module.
[0049] The communication verification method provided in this embodiment fundamentally ensures the legitimacy of the communicating parties and the security and accuracy of the communication content, effectively resists man-in-the-middle attacks and information tampering, provides a solid trustworthy foundation for remote data interaction, and improves the overall security defense capability and reliability of the system.
[0050] In some optional implementations, the above step S103 includes:
[0051] Step a1: decrypt the cloud key material and recombine it with the local key material to generate a decryption composite key.
[0052] In step a2, the decryption composite key is used to decrypt the file key in the ciphertext state to generate the file key in the plaintext state.
[0053] Step a3: decrypt the file data in the target storage partition using the file key in plain text to obtain the decrypted file data, and store the decrypted file data in the system cache.
[0054] For example, after the server authentication and the two-way identity authentication between the key management module and the client, the server sends the encrypted cloud key material A to the client. The client encryption / decryption processing module receives and decrypts A using the private key in the client security chip. The decrypted A and the local key material B are used to generate the composite key A+B, which is then used to decrypt the encryption key C in the file header. Finally, the decrypted key C is used to decrypt the file content, and the decrypted data is temporarily stored in the system cache for access.
[0055] The method provided in this embodiment intelligently controls the decryption operation of the encrypted partition according to the detection result of the network detection module. Through the intelligent control capability, the automatic management of data security is realized, and the risk of human operation error is reduced.
[0056] In some optional implementations, a method for restoring a lock is provided. Figure 4 is a flowchart of a method for restoring locking according to an embodiment of the present invention. Figure 4 As shown, the process includes the following steps:
[0057] Step S401: If the local device has been away from the secure network for more than a preset time, a prompt message is sent to save the file data in the target storage partition.
[0058] Step S402, clearing the decrypted file data temporarily stored in the system cache.
[0059] For example, when the device leaves the secure network or is disconnected from the server for more than a predetermined time, the encryption / decryption processing module prompts the user to save data and clears sensitive information in the system cache through the dynamic encryption / decryption management module to ensure data security and prevent it from being leaked.
[0060] The recovery lock method provided in this embodiment not only immediately reminds the user to save the work in progress to avoid data loss, but also automatically and comprehensively cleans up sensitive information in the system cache and temporary files, effectively erasing any traces that may leak data security.
[0061] In this embodiment, a data protection device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and will not be repeated here. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0062] This embodiment provides a data protection device, such as Figure 5 As shown, including:
[0063] The identification acquisition module 501 is used to obtain the network identification to which the current device is connected, wherein the file data in the local target storage partition is in an encrypted state, and the target storage partition is used to store protected files.
[0064] The network determination module 502 is used to determine whether the currently connected network is a secure network based on the network identifier.
[0065] The data decryption module 503 is used to decrypt the encrypted file data in the target storage partition if the currently connected network is a secure network.
[0066] In some optional implementations, the network determination module 502 includes:
[0067] The first network determining unit is used to compare the network identifier with the network identifiers in a predefined secure network list to obtain a comparison result, wherein the predefined secure network list includes secure network identifiers known in the system.
[0068] The second network determination unit is used to determine whether the currently connected network is a secure network based on the comparison result.
[0069] In some optional implementations, a file data encryption module is provided, including:
[0070] The key generation unit is used to generate a composite key if it is detected that the local leaves the security network.
[0071] The key encryption unit is used to encrypt the file key in plain text state using a composite key to obtain the file key in cipher text state.
[0072] The data encryption unit is used to encrypt the file data in the target storage partition using the file key in the ciphertext state.
[0073] The key generation unit includes:
[0074] The first key generation unit is used to obtain the cloud key material generated by the server.
[0075] The second key generation unit is used to obtain local key material generated by a local security chip.
[0076] The third key generation unit is used to merge the cloud key material and the local key material to obtain a composite key.
[0077] In some optional implementations, a communication verification module is provided, including:
[0078] The information acquisition unit is used to obtain local identity authentication information and send the identity authentication information to the server for verification so as to obtain the corresponding digital certificate after the identity authentication is passed.
[0079] The certificate verification unit is used to store the digital certificate in the local security chip. The digital certificate is used for communication verification.
[0080] In some optional implementations, the data decryption module 503 includes:
[0081] The first data decryption unit is used to decrypt the cloud key material and then recombine it with the local key material to generate a decryption composite key.
[0082] The second data decryption unit is used to decrypt the file key in the ciphertext state using the decryption composite key to generate the file key in the plaintext state.
[0083] The third data decryption unit is used to decrypt the file data in the target storage partition using the file key in plain text to obtain the decrypted file data, and the decrypted file data is stored in the system cache.
[0084] In some optional implementations, a recovery lock module is provided, including:
[0085] The information prompt unit is used to send a prompt message to save the file data in the target storage partition if the local area leaves the security network for more than a preset time.
[0086] The cache clearing unit is used to clear the decrypted file data temporarily stored in the system cache.
[0087] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0088] The data protection device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0089] The embodiment of the present invention also provides a computer device having the above Figure 5 Data guard shown.
[0090] See also Figure 6 , Figure 6 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 6As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 6 A processor 10 is taken as an example.
[0091] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0092] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.
[0093] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device 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.
[0094] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0095] The computer device also includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means. Figure 6 The example of connecting through bus is taken in the following.
[0096] The input device 30 can receive input digital or character information, and generate key signal input related to the user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device can be a touch screen.
[0097] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0098] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.
[0099] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A data protection method, characterized in that: The method comprises: Obtaining a network identifier to which the current device is connected, wherein file data in a local target storage partition is in an encrypted state, and the target storage partition is used to store protected files; Determine whether the currently connected network is a secure network based on the network identifier; If the currently connected network is a secure network, the encrypted file data in the target storage partition is decrypted.
2. The method according to claim 1, characterized in that After the step of decrypting the encrypted file data in the target storage partition, the method further includes: If it is detected that the local leaves the secure network, a composite key is generated; The composite key is used to encrypt the file key in a plain text state to obtain the file key in a cipher text state; The file data in the target storage partition is encrypted using the file key in the ciphertext state.
3. The method according to claim 2, characterized in that Generating a composite key comprises: Get the cloud key material generated by the server; Obtain the local key material generated by the local security chip; The cloud key material and the local key material are merged to obtain the composite key.
4. The method according to claim 1, characterized in that: Before the step of decrypting the encrypted file data in the target storage partition, the method further includes: Obtain local identity authentication information, and send the identity authentication information to the server for verification to obtain a corresponding digital certificate after the identity authentication is passed; The digital certificate is stored in a local security chip, and the digital certificate is used for communication verification.
5. The method according to claim 1, characterized in that Decrypting the encrypted file data in the target storage partition includes: Decrypting the cloud key material and recombining it with the local key material to generate a decryption composite key; Decrypt the file key in the ciphertext state using the decryption composite key to obtain the file key in the plaintext state; The file data in the target storage partition is decrypted using the file key in the plain text state to obtain the decrypted file data, and the decrypted file data is stored in the system cache.
6. The method according to claim 2, characterized in that After the step of detecting that the local user has left the secure network, the method further comprises: If the local user leaves the secure network for more than a preset time, a prompt message is sent to save the file data in the target storage partition; Clear the decrypted file data temporarily stored in the system cache.
7. The method according to claim 1, characterized in that Determining whether the currently connected network is a secure network based on the network identifier includes: Comparing the network identifier with network identifiers in a predefined secure network list to obtain a comparison result, wherein the predefined secure network list includes secure network identifiers known in the system; Based on the comparison result, it is determined whether the currently connected network is a secure network.
8. A data protection device, characterized in that: The device comprises: An identification acquisition module, used to acquire a network identification to which the current device is connected, wherein the file data in the local target storage partition is in an encrypted state, and the target storage partition is used to store protected files; A network determination module, used to determine whether the currently connected network is a secure network based on the network identifier; The data decryption module is used to decrypt the encrypted file data in the target storage partition if the currently connected network is a secure network.
9. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method according to any one of claims 1 to 7 by executing the computer instructions.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method according to any one of claims 1 to 7.
