A data life cycle security management method, device and storage medium
Through tamper-proof verification and abnormal data judgment in the data life cycle, combined with hash algorithm and blockchain, the problem of insufficient security in the data collection and storage stages is solved, and efficient and safe management of data is achieved.
Patent Information
- Application Number
- CN202411026860.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-07-30
AI Technical Summary
The existing technology lacks effective security protection measures in the security management of the data life cycle, especially in the data collection and storage stages, resulting in insufficient security.
By receiving the target data, perform tamper-proof verification and abnormal data judgment, determine the data status, and perform persistent storage based on the status, use hash algorithms and blockchains to perform data anti-tamper verification, and select storage devices that comply with safe storage rules for storage. .
It improves the security of data in the collection, storage and processing stages, ensures the integrity and availability of data, and enhances the stability of the system and the reliability of data management.
Smart Images

Figure CN118551405B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of data security technology, and in particular, to a data lifecycle security management method, device, and storage medium. Background Art
[0002] The data lifecycle covers the entire process from data creation, storage, use, sharing, archiving to final destruction. Each stage involves different management and security requirements, such as data classification and labeling, access control, encrypted transmission, regular backup, and secure destruction. These steps are designed to ensure the confidentiality, integrity, and availability of data to support business operations and compliance requirements.
[0003] Although data lifecycle security management has become a standard practice for many organizations, there are still many challenges in the implementation process. In existing technologies, many organizations do not take security measures during the data collection stage, the collected data does not always meet security requirements, and the security measures for data storage and subsequent processing are often not in place. Data lifecycle management often faces the challenge of insufficient security. Summary of the invention
[0004] The embodiments of the present application provide a data lifecycle security management method, device and storage medium, which can improve security.
[0005] A first aspect of an embodiment of the present application provides a data lifecycle security management method, including:
[0006] receiving target data from a target device;
[0007] Performing tamper-proof verification on the target data to obtain a verification result;
[0008] When the verification result is characterized as passed, determining whether the target data is abnormal data;
[0009] If not, the target data is persistently stored;
[0010] Determining a data state of the target data;
[0011] The target data is processed according to the data state.
[0012] Optionally, the determining whether the target data is abnormal data includes:
[0013] Acquire the number of data types, data type combinations and data volume of each data type of the target data;
[0014] Determining whether the target data has a first anomaly according to the number of data types, the combination of data types, and the data volume;
[0015] If the first abnormality exists, the target data is determined to be abnormal data.
[0016] Optionally, after determining whether the target data has a first anomaly according to the number of data types, the combination of data types and the data volume, the method further includes:
[0017] If the first abnormality does not exist, judging whether the target data has a second abnormality according to the value of the target data;
[0018] If the second anomaly exists, the target data is determined to be abnormal data.
[0019] Optionally, if there is a second anomaly, after determining that the target data is abnormal data, the method further includes:
[0020] The target data is input into a second anomaly model to obtain an anomaly result output by the second anomaly model.
[0021] Optionally, after determining that the target data is abnormal data, the method further includes:
[0022] The number of data types, the combination of data types and the data volume are input into a first anomaly model to obtain an anomaly result output by the first anomaly model.
[0023] Optionally, the persistent storage of the target data includes:
[0024] Determining a pre-storage device according to the target data;
[0025] Determining whether the pre-storage device complies with the security storage rules;
[0026] If it is in compliance, the target data is stored in the pre-storage device.
[0027] Optionally, determining the data state of the target data includes:
[0028] Acquire the validity period of the target data;
[0029] The data status of the target data is determined according to the validity period at every preset time interval.
[0030] Optionally, determining the data state of the target data includes:
[0031] When a change instruction is received, the data state of the target data is determined according to the change instruction.
[0032] Optionally, the performing tamper-proof verification on the target data to obtain a verification result includes:
[0033] Determining a hash algorithm and a blockchain according to the target device;
[0034] Performing a hash operation on the target data using the hash algorithm to obtain a corresponding hash value;
[0035] The target data is tamper-proof verified using the hash value and the blockchain to obtain a verification result.
[0036] Optionally, performing a hash operation on the target data using the hash algorithm to obtain a corresponding hash value includes:
[0037] Extracting the generation time of each value in the target data;
[0038] Acquire a time splicing code of the target data;
[0039] Determine a splicing method of generating time of each value according to the time splicing code;
[0040] splicing the generation time of each of the values according to the splicing method to obtain a time chain;
[0041] The hash algorithm is used to perform a hash operation on the time chain to obtain a corresponding hash value.
[0042] A second aspect of an embodiment of the present application provides a data lifecycle security management device, including:
[0043] A receiving unit, used for receiving target data from a target device;
[0044] A verification unit, used to perform tamper-proof verification on the target data to obtain a verification result;
[0045] A judging unit, configured to judge whether the target data is abnormal data when the verification result is characterized as passed;
[0046] a storage unit, configured to persistently store the target data when the judgment unit determines that the target data is not abnormal data;
[0047] A determination unit, configured to determine a data state of the target data;
[0048] A processing unit is used to process the target data according to the data state.
[0049] Optionally, the judging unit includes:
[0050] An acquisition module, used to acquire the number of data types, data type combinations and data volume of each data type of the target data;
[0051] A first judgment module, configured to judge whether the target data has a first anomaly according to the number of data types, the combination of data types and the data volume;
[0052] The first determination module is used to determine that the target data is abnormal data when the judgment module determines that the target data has a first abnormality.
[0053] Optionally, the judging unit further includes:
[0054] The second judgment module is used to judge whether the target data has a second abnormality according to the value of the target data when the judgment module determines that the target data does not have the first abnormality; if the second abnormality exists, determine that the target data is abnormal data.
[0055] Optionally, the judging unit further includes:
[0056] The second input module is used to input the target data into a second anomaly model to obtain an anomaly result output by the second anomaly model.
[0057] Optionally, the judging unit further includes:
[0058] The first input module is used to input the number of data types, the combination of data types and the data volume into a first anomaly model to obtain an anomaly result output by the first anomaly model.
[0059] Optionally, the storage unit includes:
[0060] A second determining module, configured to determine a pre-storage device according to the target data;
[0061] A third judgment module is used to judge whether the pre-storage device complies with the security storage rules;
[0062] A storage module is configured to store the target data in the pre-storage device when the third judgment module determines that the pre-storage device complies with the security storage rule.
[0063] Optionally, the determining unit is specifically configured to:
[0064] Acquire the validity period of the target data;
[0065] The data status of the target data is determined according to the validity period at every preset time interval.
[0066] Optionally, the determining unit is specifically configured to:
[0067] When a change instruction is received, the data state of the target data is determined according to the change instruction.
[0068] Optionally, the verification unit includes:
[0069] A third determination module, configured to determine a hash algorithm and a blockchain from a local database according to the name or identification of the target device;
[0070] A computing module, configured to perform a hash operation on the target data using the hash algorithm to obtain a corresponding hash value;
[0071] A verification module, used to perform tamper-proof verification on the target data using the hash value and the blockchain to obtain a verification result;
[0072] The verification module is specifically used for:
[0073] Query the blockchain using the hash value to obtain a query result;
[0074] A verification result of the anti-tampering verification is determined according to the query result.
[0075] Optionally, the computing module is specifically used for:
[0076] Extracting the generation time of each value in the target data;
[0077] Parsing the target data to obtain a time splicing code included in the target data;
[0078] According to the time splicing code, a locally stored time splicing code table is searched to determine the splicing mode of the generation time of each value; the time splicing code table stores the corresponding relationship between the time splicing code and the splicing mode;
[0079] splicing the generation time of each of the values according to the splicing method to obtain a time chain;
[0080] The hash algorithm is used to perform a hash operation on the time chain to obtain a corresponding hash value.
[0081] A third aspect of an embodiment of the present application provides a data lifecycle security management device, including:
[0082] Processor, memory, input-output unit, and bus;
[0083] The processor is connected to the memory, the input and output unit, and the bus;
[0084] A program is stored in the memory, and the processor calls the program to execute the method in the first aspect and any possible implementation manner of the first aspect.
[0085] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, on which a program is stored. When the program is executed on a computer, the computer executes the method in the first aspect and any possible implementation of the first aspect.
[0086] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:
[0087] The method provided in the embodiment of the present application performs security protection in the data collection stage, the data storage stage and the data processing stage, which is conducive to improving security. BRIEF DESCRIPTION OF THE DRAWINGS
[0088] Figure 1 A flowchart of an embodiment of a method for secure management of data lifecycle in an embodiment of the present application;
[0089] Figure 2 A flowchart of an embodiment of determining whether target data is abnormal data in an embodiment of the present application;
[0090] Figure 3 A schematic diagram of a process for persistently storing target data in an embodiment of the present application;
[0091] Figure 4 This is a flow chart of an embodiment of performing tamper-proof verification on the target data in the embodiment of the present application;
[0092] Figure 5 A schematic diagram of the structure of an embodiment of a data lifecycle security management device in an embodiment of the present application;
[0093] Figure 6 This is a structural diagram of another embodiment of the data lifecycle security management device in the embodiment of the present application. DETAILED DESCRIPTION
[0094] The embodiments of the present application provide a data lifecycle security management method, device and storage medium, which can improve security.
[0095] The method of the present application can be applied to a server, a terminal or other devices with logic processing capabilities, and the present application does not limit this. For the convenience of description, the following description is made by taking the execution subject as a server as an example.
[0096] The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0097] See also Figure 1 In an embodiment of the present application, a data lifecycle security management method includes:
[0098] S101, receiving target data from a target device;
[0099] The server obtains data from the specified target devices. These devices can be various sensors, computers, IoT devices, etc. The received data may contain a variety of information, such as temperature, humidity, location, images, text, etc. Ensuring the correct reception of data is the basis for subsequent processing.
[0100] S102, performing tamper-proof verification on the target data to obtain a verification result;
[0101] The purpose of this step is to check whether the received data has been tampered with. The server uses a variety of technical means, such as digital signatures, hash verification, encryption verification, etc., to verify the data against tampering. The verification result will clarify the integrity and authenticity of the data. If the target data has not been tampered with, the verification result will show passed; if the target data has been tampered with, the verification result will show failed.
[0102] S103, when the verification result is characterized as passed, determining whether the target data is abnormal data, if not, executing step S104;
[0103] The purpose of this step is to check whether the received data has been tampered with. The server uses a variety of technical means, such as digital signatures, hash verification, encryption verification, etc., to verify the data against tampering. The verification result will clarify the integrity and authenticity of the data. If the data has not been tampered with, the verification result will show passed; if the data has been tampered with, the verification result will show failed.
[0104] S104, persistently storing the target data;
[0105] If the data is not abnormal data, the server will store it persistently. This means that the server will save the data to a long-term storage device, such as a database or file system, for subsequent access and use. Persistent storage ensures the persistence and availability of data.
[0106] S105, determining the data state of the target data;
[0107] The server then determines the state of the target data. This may involve further analysis or classification of the data to determine its current state. For example, the data may be marked as "processed," "unprocessed," or other status labels for subsequent processing and management.
[0108] In an embodiment of the present application, the server can determine the data status of the target data in a variety of ways. For example, in one possible embodiment, a preset time interval is set in the server, the server obtains the validity period of the target data, and then obtains the current timestamp every preset time interval, compares the current timestamp with the validity period, and if the validity period is earlier than the current timestamp, the server can determine that the data status of the target data is "expired", and if the validity period is later than the current timestamp, the server can determine that the data status of the target data is "not expired". For example, in one possible embodiment, the user can manually specify the data status of the target data. When the server receives the change instruction input by the user, it parses the change instruction and obtains the information of the data status of the changed target data (i.e., status information) from the change instruction. The server determines the data status of the target data through the status information, and uses the status information to overwrite the current data status of the target data.
[0109] S106: Process the target data according to the data status.
[0110] Finally, the server processes the target data according to the data status. Different data status may trigger different processing flows. For example, if the data is marked as "processed", the server may send it to other systems for further analysis; if the data is marked as "unprocessed", the server may perform predefined processing tasks to ensure that the data is processed and utilized correctly.
[0111] In this embodiment, after the server receives the target data from the target device, it first performs anti-tampering verification on the target data to obtain a verification result. If the verification result is characterized as passed, it determines whether the target data is abnormal data. If it is determined that the target data is not abnormal data, the target data is persistently stored. After persistent storage, the server needs to determine the data state of the target data and perform corresponding processing on the target data according to the data state. The server performs anti-tampering verification on the target data, and only performs persistent storage after abnormal data judgment, which ensures the security of the target data in the collection stage and protects the target data from the source, thereby improving security.
[0112] See also Figure 2 In some embodiments of the present application, step S103 in the above embodiment to determine whether the target data is abnormal data may include the following steps S201 to S207:
[0113] S201, obtaining the number of data types, data type combinations and data volume of each data type of the target data;
[0114] The server first needs to obtain detailed information about the target data, including the number of data types (i.e., how many different types of data there are), the combination of data types (i.e., how these data types are combined together), and the amount of data for each data type (i.e., how much data of each type there is). This information will be used for subsequent anomaly detection.
[0115] S202, judging whether the target data has a first anomaly according to the number of data types, the combination of data types and the data volume, if yes, executing steps S203 to S204, if no, executing step S205;
[0116] The server uses a predefined rule or algorithm to determine whether the target data has a first anomaly based on the number of data types, the combination of data types, and the amount of data. If the first anomaly exists, the server will execute steps S203 to S204; if the first anomaly does not exist, the server will skip these steps and directly execute step S205.
[0117] S203, determining that the target data is abnormal data;
[0118] If the first anomaly is found in step S202, the server will mark the target data as abnormal data. This step is to explicitly record and identify the abnormal state of the data for subsequent processing.
[0119] S204, inputting the number of data types, the combination of data types and the data volume into a first anomaly model to obtain an anomaly result output by the first anomaly model;
[0120] The server inputs the previously acquired information about the number of data types, data type combinations, and data volume into a pre-trained first anomaly model. This model analyzes the input data and outputs an anomaly result to help further confirm and understand the anomaly of the data.
[0121] S205, judging whether the target data has a second abnormality according to the value of the target data, and if so, executing steps S206 to S207;
[0122] If the first anomaly is not found in step S202, the server will continue to determine whether there is a second anomaly based on the specific value of the target data. This determination may be based on the specific value range, statistical characteristics, etc. of the data. If the second anomaly is found, the server will execute steps S206 to S207.
[0123] S206, determining that the target data is abnormal data;
[0124] Similar to step S203, if the second anomaly is found, the server will mark the target data as abnormal data. This step is also for recording and identifying the abnormal state of the data.
[0125] S207: Input the target data into a second abnormal model to obtain an abnormal result output by the second abnormal model.
[0126] The server inputs the specific value of the target data into a pre-trained second anomaly model. This model will analyze the data and output an anomaly result to further confirm and understand the anomaly of the data.
[0127] In this embodiment, the server can perform comprehensive detection from multiple dimensions such as data type, combination and data volume, and accurately identify and classify abnormal data through pre-trained abnormal models. This method effectively improves the accuracy and efficiency of data processing and reduces the need for misjudgment and manual intervention. At the same time, data security is enhanced through tamper-proof verification, and persistent storage ensures data integrity and long-term availability, ensuring the stable operation of the system and the reliability of data management.
[0128] See also Figure 3 In some embodiments of the present application, step S104 in the above embodiment of persistently storing the target data may include the following steps S301 to S303:
[0129] S301, determining a pre-storage device according to the target data;
[0130] In this step, the server selects appropriate data storage devices based on the characteristics of the target data (such as data type, data size, data importance, etc.). Pre-storage devices may include different types of databases, file systems, cloud storage, etc. Selecting the right storage device helps optimize storage performance and security.
[0131] S302, determining whether the pre-storage device complies with the security storage rules;
[0132] Before storing data in a pre-storage device, the server needs to determine whether the device complies with predefined security storage rules. These rules may include the device's encryption standards, access control, backup mechanisms, etc. Ensuring that the pre-storage device complies with security rules helps protect the integrity and confidentiality of the data.
[0133] There are many ways for the server to determine whether the pre-storage device complies with the security storage rules. For example, the server can determine whether the pre-storage device complies with the security storage rules by the number of backups. If the number of backups of the pre-storage device is greater than or equal to the preset backup number threshold, the pre-storage device is determined to comply with the security storage rules. Otherwise, the pre-storage device is determined to not comply with the security storage rules. For example, the server can also determine whether the pre-storage device complies with the security storage rules by using an anti-tampering mechanism, an anti-intrusion mechanism, etc. If the pre-storage device does not have an anti-tampering mechanism or an anti-intrusion mechanism, the server can determine that the pre-storage device does not comply with the security storage rules. If the pre-storage device is provided with an anti-tampering mechanism and an anti-intrusion mechanism, the server can determine that the pre-storage device complies with the security storage rules.
[0134] S303: Store the target data in the pre-storage device.
[0135] If the pre-storage device complies with the security storage rules, the server stores the target data on the device. This step ensures that the data is stored safely and reliably for subsequent access and use.
[0136] In this embodiment, a secure and efficient data storage mechanism is provided. First, the server selects a suitable pre-storage device according to the characteristics of the target data to optimize the storage performance. Second, the server ensures the security and compliance of data storage by checking whether the pre-storage device complies with the security storage rules. Finally, the server stores the data in a device that meets the security standards, ensuring the integrity and long-term availability of the data and effectively preventing data leakage and damage.
[0137] See also Figure 4 In some embodiments of the present application, step S102 in the above embodiment performs tamper-proof verification on the target data, and obtaining the verification result may include the following steps S401 to S407:
[0138] S401, determining a hash algorithm and a blockchain according to the target device;
[0139] In this step, the server selects the appropriate hash algorithm and blockchain technology based on the characteristics and requirements of the target device. Different devices may require different hash algorithms (such as SHA-256, MD5, etc.) and blockchain platforms (such as Ethereum, Hyperledger, etc.) to ensure the effectiveness and compatibility of tamper-proof verification.
[0140] In an embodiment of the present application, the server pre-stores the hash algorithm and blockchain corresponding to the target device. The server uses the name or identifier of the target device to query the local database to determine the hash algorithm and blockchain corresponding to the target device.
[0141] S402, extracting the generation time of each value in the target data;
[0142] The server extracts the generation time of each data point from the target data. The generation time can be the timestamp of the data record, which is used to track the specific generation time of each data point and provide a basis for subsequent splicing and verification.
[0143] S403, obtaining a time splicing code of the target data;
[0144] The target data carries information of the time splicing code, so the server can obtain the time splicing code from the target data. This is a predefined encoding rule or format used to splice the generation time of different data points in a specific order.
[0145] In the embodiment of the present application, when the target device completes the generation of the target data, it will randomly generate a time splicing code corresponding to the target data, wherein each time splicing code represents a splicing method, the target device queries the time splicing code table to determine the splicing method, and then uses the splicing method to splice the generation time of each value in the target data into a time chain, and uses a preset hash algorithm to perform a hash operation on the time chain to obtain a corresponding hash value, and stores the hash value in the blockchain. Then, the target device stores the information of the time splicing code in the target data and sends the target data to the server. The time splicing code table is obtained by pre-negotiation between the target device and the server, and the time splicing code table stores the corresponding relationship between the time splicing code and the splicing method. There is a time splicing code table on the target device, and there is also a time splicing code table on the server.
[0146] S404, determining a splicing method for generating time of each value according to the time splicing code;
[0147] The server determines how to splice the generation time of each data point according to the time splicing code. Specifically, the server queries the local time splicing code table to determine the splicing method corresponding to the time splicing code. The splicing method can be linear, tree-shaped or other specific structures to ensure that the generation of the time chain complies with the predetermined rules.
[0148] S405, splicing the generation time of each value according to the splicing method to obtain a time chain;
[0149] The server splices the generation time of all data points in order according to the determined splicing method to form a continuous time chain. The time chain records the time sequence of all data points to ensure the temporal integrity of the data.
[0150] S406, performing a hash operation on the time chain using the hash algorithm to obtain a corresponding hash value;
[0151] The server uses a predetermined hash algorithm to perform a hash operation on the generated time chain to obtain a unique hash value. This hash value is used as the unique identifier of the time chain to verify the integrity and tamper-proof of the data.
[0152] S407: Use the hash value and the blockchain to perform tamper-proof verification on the target data to obtain a verification result.
[0153] Finally, the server combines the generated hash value with the blockchain for tamper-proof verification. The target device writes the hash value into the blockchain to ensure that the data cannot be tampered with. The server calculates the hash value, and then uses the hash value and the target device's identifier to query the blockchain to obtain the query result, and then determines the final verification result based on the query result. If the server uses the hash value as a search keyword to query the record on the blockchain, that is, the query result is that the record is found, then the verification result indicates that the target data has not been tampered with. If the server uses the hash value as a search keyword and cannot query the record on the blockchain, that is, the query result is that the record is not found, then the verification result indicates that the target data has been tampered with.
[0154] This embodiment provides an efficient anti-tampering verification mechanism based on blockchain and hash algorithm. First, the server selects an appropriate hash algorithm and blockchain platform according to the characteristics of the target device to ensure the compatibility and effectiveness of the verification process. Then, the server extracts the data generation time and splices it in order to form a time chain to ensure the integrity of the data sequence. The server uses the hash algorithm to generate a hash value of the time chain, providing a unique identifier for the data. Finally, the server obtains the verification result by querying the blockchain using the hash value, realizing the immutability and integrity verification of the data. This mechanism effectively prevents data tampering and forgery, enhances the security and credibility of data, and provides a solid guarantee for data management and auditing.
[0155] See also Figure 5 In one embodiment of the present application, a device for securely managing the data lifecycle includes:
[0156] The receiving unit 501 is used to receive target data from a target device;
[0157] The verification unit 502 is used to perform tamper-proof verification on the target data to obtain a verification result;
[0158] A judging unit 503, configured to judge whether the target data is abnormal data when the verification result is characterized as passed;
[0159] The storage unit 504 is used to persistently store the target data when the judging unit 503 determines that the target data is not abnormal data;
[0160] A determination unit 505, configured to determine a data state of the target data;
[0161] The processing unit 506 is configured to process the target data according to the data state.
[0162] In this embodiment, after the receiving unit 501 receives the target data from the target device, the verification unit 502 first performs anti-tampering verification on the target data to obtain a verification result. If the verification result is characterized as passed, the judgment unit 503 judges whether the target data is abnormal data. If it is determined that the target data is not abnormal data, the storage unit 504 performs persistent storage on the target data. After persistent storage, the determination unit 505 needs to determine the data state of the target data, and the processing unit 506 performs corresponding processing on the target data according to the data state. The server performs anti-tampering verification on the target data, and only performs persistent storage after abnormal data judgment, which ensures the security of the target data in the collection stage and protects the target data from the source, thereby improving security.
[0163] Optionally, the judging unit 503 includes:
[0164] An acquisition module, used to acquire the number of data types, data type combinations and data volume of each data type of the target data;
[0165] A first judgment module, configured to judge whether the target data has a first anomaly according to the number of data types, the combination of data types and the data volume;
[0166] The first determination module is used to determine that the target data is abnormal data when the judgment module determines that the target data has a first abnormality.
[0167] Optionally, the judging unit 503 further includes:
[0168] The second judgment module is used to judge whether the target data has a second abnormality according to the value of the target data when the judgment module determines that the target data does not have the first abnormality; if the second abnormality exists, determine that the target data is abnormal data.
[0169] Optionally, the judging unit 503 further includes:
[0170] The second input module is used to input the target data into a second anomaly model to obtain an anomaly result output by the second anomaly model.
[0171] Optionally, the judging unit 503 further includes:
[0172] The first input module is used to input the number of data types, the combination of data types and the data volume into a first anomaly model to obtain an anomaly result output by the first anomaly model.
[0173] Optionally, the storage unit 504 includes:
[0174] A second determining module, configured to determine a pre-storage device according to the target data;
[0175] A third judgment module is used to judge whether the pre-storage device complies with the security storage rules;
[0176] A storage module is configured to store the target data in the pre-storage device when the third judgment module determines that the pre-storage device complies with the security storage rule.
[0177] Optionally, the determining unit 505 is specifically configured to:
[0178] Obtaining the validity period of the target data;
[0179] The data status of the target data is determined according to the validity period at every preset time interval.
[0180] Optionally, the determining unit 505 is specifically configured to:
[0181] When a change instruction is received, the data state of the target data is determined according to the change instruction.
[0182] Optionally, the verification unit 502 includes:
[0183] A third determination module, configured to determine a hash algorithm and a blockchain from a local database according to the name or identification of the target device;
[0184] A computing module, configured to perform a hash operation on the target data using the hash algorithm to obtain a corresponding hash value;
[0185] A verification module, used to perform tamper-proof verification on the target data using the hash value and the blockchain to obtain a verification result;
[0186] The verification module is specifically used for:
[0187] Query the blockchain using the hash value to obtain a query result;
[0188] A verification result of the anti-tampering verification is determined according to the query result.
[0189] Optionally, the computing module is specifically used for:
[0190] Extracting the generation time of each value in the target data;
[0191] Parsing the target data to obtain a time splicing code included in the target data;
[0192] According to the time splicing code, a locally stored time splicing code table is searched to determine the splicing mode of the generation time of each value; the time splicing code table stores the corresponding relationship between the time splicing code and the splicing mode;
[0193] splicing the generation time of each of the values according to the splicing method to obtain a time chain;
[0194] The hash algorithm is used to perform a hash operation on the time chain to obtain a corresponding hash value.
[0195] See also Figure 6 Another embodiment of the data lifecycle security management device in the embodiment of the present application includes:
[0196] Processor 601, memory 602, input and output unit 603 and bus 604;
[0197] The processor 601 is connected to the memory 602, the input and output unit 603 and the bus 604;
[0198] The memory 602 stores a program, and the processor 601 calls the program to execute Figures 1 to 4 Steps in the illustrated embodiment.
[0199] In this embodiment, the function of the processor 601 is the same as that of the aforementioned Figures 1 to 4 The steps in the illustrated embodiments correspond to each other and will not be described again here.
[0200] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0201] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as 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 an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0202] 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.
[0203] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0204] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), disk or optical disk and other media that can store program code.
Claims
1. A data life cycle security management method, characterized in that: include: receiving target data from a target device; Performing tamper-proof verification on the target data to obtain a verification result; When the verification result is characterized as passed, determining whether the target data is abnormal data; If not, the target data is persistently stored; Determining a data state of the target data; Processing the target data according to the data state; The anti-tampering verification of the target data to obtain the verification result includes: Determining a hash algorithm and a blockchain from a local database according to the name or identification of the target device; Performing a hash operation on the target data using the hash algorithm to obtain a corresponding hash value; Using the hash value and the blockchain to perform tamper-proof verification on the target data to obtain a verification result; The tamper-proof verification of the target data using the hash value and the blockchain to obtain the verification result includes: Query the blockchain using the hash value to obtain a query result; Determine the verification result of the tamper-proof verification according to the query result; The using the hash algorithm to perform a hash operation on the target data to obtain a corresponding hash value includes: Extracting the generation time of each value in the target data; Parsing the target data to obtain a time splicing code included in the target data; According to the time splicing code, a locally stored time splicing code table is searched to determine the splicing mode of the generation time of each value; the time splicing code table stores the corresponding relationship between the time splicing code and the splicing mode; splicing the generation time of each of the values according to the splicing method to obtain a time chain; Performing a hash operation on the time chain using the hash algorithm to obtain a corresponding hash value; The determining whether the target data is abnormal data comprises: Acquire the number of data types, data type combinations and data volume of each data type of the target data; Determining whether the target data has a first anomaly according to the number of data types, the combination of data types, and the data volume; If the first anomaly exists, determining that the target data is abnormal data; After determining whether the target data has a first anomaly according to the number of data types, the combination of data types and the data volume, the method further includes: If the first abnormality does not exist, judging whether the target data has a second abnormality according to the value of the target data; If a second anomaly exists, determining that the target data is abnormal data; The persistent storage of the target data includes: Determining a pre-storage device according to the target data; Determining whether the pre-storage device complies with the security storage rule according to the number of backups of the pre-storage device; If it is in compliance, the target data is stored in the pre-storage device.
2. The method according to claim 1, characterized in that: If there is a second anomaly, after determining that the target data is abnormal data, the method further includes: The target data is input into a second anomaly model to obtain an anomaly result output by the second anomaly model.
3. The method according to claim 1, characterized in that After determining that the target data is abnormal data, the method further includes: The number of data types, the combination of data types and the data volume are input into a first anomaly model to obtain an anomaly result output by the first anomaly model.
4. The method according to claim 1, characterized in that: Determining the data state of the target data includes: Obtaining the validity period of the target data; Get the current timestamp at every preset time interval; The data state of the target data is determined according to the current timestamp and the validity period.
5. The method according to claim 1, characterized in that Determining the data state of the target data includes: When receiving a change instruction, obtaining status information from the change instruction; The data state of the target data is determined according to the state information.
6. A data life cycle security management device, characterized in that: include: A receiving unit, used for receiving target data from a target device; A verification unit, used to perform tamper-proof verification on the target data to obtain a verification result; A judging unit, configured to judge whether the target data is abnormal data when the verification result is characterized as passed; a storage unit, configured to persistently store the target data when the judgment unit determines that the target data is not abnormal data; A determination unit, configured to determine a data state of the target data; a processing unit, configured to process the target data according to the data state; The verification unit comprises: A third determination module, configured to determine a hash algorithm and a blockchain from a local database according to the name or identification of the target device; A computing module, configured to perform a hash operation on the target data using the hash algorithm to obtain a corresponding hash value; A verification module, used to perform tamper-proof verification on the target data using the hash value and the blockchain to obtain a verification result; The verification module is specifically used for: Query the blockchain using the hash value to obtain a query result; Determine the verification result of the tamper-proof verification according to the query result; The operation module is specifically used for: Extracting the generation time of each value in the target data; Parsing the target data to obtain a time splicing code included in the target data; According to the time splicing code, a locally stored time splicing code table is searched to determine the splicing mode of the generation time of each value; the time splicing code table stores the corresponding relationship between the time splicing code and the splicing mode; splicing the generation time of each of the values according to the splicing method to obtain a time chain; Performing a hash operation on the time chain using the hash algorithm to obtain a corresponding hash value; The judging unit comprises: An acquisition module, used to acquire the number of data types, data type combinations and data volume of each data type of the target data; A first judgment module, configured to judge whether the target data has a first anomaly according to the number of data types, the combination of data types and the data volume; A first determination module, configured to determine that the target data is abnormal data when the judgment module determines that the target data has a first abnormality; The judging unit further includes: A second judgment module is used to judge whether the target data has a second abnormality according to the value of the target data when the judgment module determines that the target data does not have the first abnormality; if the second abnormality exists, determine that the target data is abnormal data; The storage unit comprises: A second determining module, configured to determine a pre-storage device according to the target data; A third judgment module is used to judge whether the pre-storage device complies with the security storage rules; A storage module is configured to store the target data in the pre-storage device when the third judgment module determines that the pre-storage device complies with the security storage rule.
7. A data life cycle security management device, characterized in that: include: Processor, memory, input-output unit, and bus; The processor is connected to the memory, the input and output unit, and the bus; A program is stored in the memory, and the processor calls the program to execute the method according to any one of claims 1 to 5. 8 . A computer-readable storage medium having a program stored thereon, wherein when the program is executed on a computer, the computer is caused to execute the method according to claim 1 .
Citation Information
Patent Citations
Sewage treatment sample data management method and system based on block chain and big data
CN113919971A
Database security auditing method and device, electronic equipment and storage medium
CN118153059A
Time certification apparatus, time certification request accepting apparatus, time certification method, time certification request accepting method, time certification program, time certification request acceptance program, time certification verification program, and program recording medium
JP2005130488A
Authenticating data associated with a data intake and query system using a distributed ledger system
US11062042B1
