Audit data security storage method and system based on block chain
Through the blockchain-based audit data security storage method, smart contracts are used to manage blockchain and classify storage based on the attribute information of audit data, solving the problems of insufficient security and flexibility of traditional storage methods, and achieving high efficiency, Secure audit data management.
Patent Information
- Application Number
- CN202411571424.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-06
- Publication Date
- 2024-12-03
AI Technical Summary
Traditional audit data storage methods have insufficient security, are difficult to meet the storage needs of different types of data, and lack flexibility and scalability, resulting in high storage costs and complex management.
Using a blockchain-based audit data security storage method, the storage type is determined by analyzing the basic attribute information of audit data (time attributes, data types and access frequency), building a corresponding blockchain and managing security level through smart contracts, realizing Classification and secure storage of data.
It improves the storage security of audit data, simplifies management processes, adapts to the needs of diversified audit scenarios, and reduces storage costs and management complexity.
Smart Images

Figure CN119066131A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data storage, and in particular to a method and system for securely storing audit data based on blockchain. Background Art
[0002] With the rapid development of information technology, the amount of data generated during the audit process is becoming increasingly large, and the types of data are diverse and have different security requirements. Traditional audit data storage methods usually rely on centralized storage modes, which are prone to security issues such as data leakage and tampering, and it is difficult to accurately meet the storage requirements of different types of data. At the same time, traditional storage methods lack flexibility and scalability when dealing with the long-term preservation and management of audit data, resulting in high storage costs, complex management, and difficulty in dealing with diverse audit scenarios. Therefore, how to improve the storage security of audit data and simplify the management process has become an urgent problem to be solved. Summary of the invention
[0003] The present application provides a blockchain-based audit data security storage method and system, which solves the technical problem of insufficient audit data storage security in the prior art.
[0004] In view of the above problems, this application provides a blockchain-based audit data secure storage method and system.
[0005] The first aspect of the present application provides a blockchain-based audit data security storage method, the method comprising: The received audit data is parsed to obtain basic attribute information, wherein the basic attribute information includes time attribute, data type and access frequency; the audit data is analyzed according to the basic attribute information to determine the storage type of the audit data, wherein the type of the audit data includes a first storage type and a second storage type, wherein the first storage type is short-term storage and the second storage type is long-term storage; according to the first storage type and the second storage type, a first storage blockchain and a second storage blockchain are correspondingly constructed, wherein the first storage blockchain and the second storage blockchain are managed at different security levels through smart contracts; the storage type of the audit data is input into the smart contract for storage blockchain matching to obtain a matching storage blockchain, wherein the matching storage blockchain is the first storage blockchain or the second storage blockchain; the smart contract securely stores the audit data according to the storage path of the matching storage blockchain.
[0006] The second aspect of the present application provides a blockchain-based audit data security storage system, the system comprising: A parsing module, the parsing module is used to parse the received audit data and obtain basic attribute information, wherein the basic attribute information includes time attribute, data type and access frequency; an analysis module, the analysis module is used to analyze the audit data according to the basic attribute information and determine the storage type of the audit data, wherein the type of the audit data includes a first storage type and a second storage type, the first storage type is short-term storage, and the second storage type is long-term storage; a blockchain construction module, the blockchain construction module is used to construct a first storage blockchain and a second storage blockchain according to the first storage type and the second storage type, and the first storage blockchain and the second storage blockchain are managed at different security levels through smart contracts; a matching module, the matching module is used to input the storage type of the audit data into the smart contract for storage blockchain matching, and obtain a matching storage blockchain, wherein the matching storage blockchain is the first storage blockchain or the second storage blockchain; a storage module, the storage module is used by the smart contract to securely store the audit data according to the storage path of the matching storage blockchain.
[0007] One or more technical solutions provided in this application have at least the following technical effects or advantages: First, the received audit data is parsed to obtain basic attribute information, which includes time attribute, data type and access frequency. Then, the audit data is analyzed according to the basic attribute information to determine the storage type of the audit data, wherein the type of the audit data includes a first storage type and a second storage type, the first storage type is short-term storage, and the second storage type is long-term storage. Further, according to the first storage type and the second storage type, a first storage blockchain and a second storage blockchain are correspondingly constructed, and the first storage blockchain and the second storage blockchain are managed at different security levels through smart contracts. Then, the storage type of the audit data is input into the smart contract for storage blockchain matching, and a matching storage blockchain is obtained, and the matching storage blockchain is the first storage blockchain or the second storage blockchain. Finally, the smart contract securely stores the audit data according to the storage path of the matching storage blockchain. The technical problem of insufficient security of audit data storage in the prior art is solved, the storage type is divided by the audit data attribute information, and the classified and secure storage of audit data is realized by combining blockchain technology, thereby achieving the technical effect of improving the security of data storage. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0009] Figure 1 A flowchart of a blockchain-based audit data security storage method provided in an embodiment of the present application.
[0010] Figure 2 A schematic diagram of the structure of a blockchain-based audit data security storage system provided in an embodiment of the present application.
[0011] Explanation of the accompanying drawings: parsing module 11, analysis module 12, blockchain construction module 13, matching module 14, storage module 15. DETAILED DESCRIPTION
[0012] This application solves the technical problem of insufficient audit data storage security in the prior art by providing a blockchain-based audit data security storage method and system.
[0013] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0014] It should be noted that the terms "including" and "having" are intended to cover non-exclusive inclusions. For example, a process, method, system, product or server that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or modules that are not explicitly listed or are inherent to these processes, methods, products or devices.
[0015] Embodiment 1, as Figure 1 As shown, the present application provides a blockchain-based audit data security storage method, wherein the method includes: The received audit data is parsed to obtain basic attribute information, which includes time attribute, data type and access frequency.
[0016] The received audit data is parsed to obtain the basic attribute information of the audit data, including time attribute, data type and access frequency. Among them, time attribute refers to the time information of the audit data generation, including the creation time of the data, the last modification time, and the validity period or retention length of the data. According to the timeliness of the data, it can be determined whether it should be stored for a short period of time or for a long period of time; data type refers to the specific type of audit data, such as log files, images, texts, videos, etc.; access frequency refers to the frequency with which the audit data is accessed in the system. The access frequency determines whether the data should be stored for a short period of time for frequent reading or for a long period of time suitable for cold storage.
[0017] The audit data is analyzed according to the basic attribute information to determine a storage type of the audit data, wherein the type of the audit data includes a first storage type and a second storage type, the first storage type is short-term storage, and the second storage type is long-term storage.
[0018] According to the basic attribute information obtained, the audit data is analyzed for time attributes, data type, and access frequency to determine the storage type of the audit data. The storage type of the audit data includes the first storage type and the second storage type. The first storage type is short-term storage, which is suitable for data that needs to be accessed frequently or has a high timeliness; the second storage type is long-term storage, which is suitable for data that is less frequently accessed or needs to be stored for a long time.
[0019] Furthermore, the audit data is analyzed according to the basic attribute information to determine the storage type of the audit data, and the method includes: Identify the information gain of the time attribute, the data type and the access frequency, divide the features into tree nodes according to the size of the information gain, and recursively construct a discriminant decision tree, wherein each node of the discriminant decision tree stores a discriminant threshold of the corresponding feature, and the discriminant threshold is used to discriminate between short-term storage and long-term storage; perform feature vector conversion on the time attribute, the data type and the access frequency, and output a time feature vector, a type feature vector and an access feature vector; input the time feature vector, the type feature vector and the access feature vector into the discriminant decision tree for analysis to determine the storage type of the audit data.
[0020] Specifically, identify the basic attribute information of audit data, including time attribute, data type and access frequency, and calculate their information gain in different storage type discrimination. Information gain can measure the contribution of features to classification. The larger the information gain, the more important the feature is. According to the information gain of each feature, construct the nodes of the decision tree. For each node, divide the corresponding features and recursively construct the decision tree. Each node stores the discrimination threshold of the feature to determine whether the audit data should be classified as short-term storage or long-term storage. Perform numerical processing on the time attribute, data type and access frequency of audit data, and convert these attributes into feature vectors. Time attribute can be converted into time-related feature vectors, such as the difference between the data creation time and the current time, the length of validity period, etc.; data type can be converted into feature vectors through classification coding, for example, different data types are assigned different coding values (such as 1 for text, 2 for pictures, 3 for videos, etc.); the feature of access frequency can be generated by statistics of historical access records of data to generate access frequency feature vectors to reflect the access frequency of data. The converted time feature vector, type feature vector and access feature vector are input into the discriminant decision tree, and judgment and classification are performed according to the discriminant threshold stored in each node of the decision tree; each node in the discriminant decision tree will recursively make judgments along the path of the decision tree based on the comparison result of the feature vector value and the threshold, and finally determine whether the storage type of the audit data is short-term storage or long-term storage.
[0021] Exemplarily, the storage type of audit data is determined as shown in Table 1. If the time attribute is greater than 500 days, it is directly classified as long-term storage. If the time attribute is less than 500 days, the data type is further determined. If it is an image or video, it is classified as short-term storage. If it is text or log, the storage type is further determined based on the access frequency. If the access frequency is greater than 30 times / day, it is classified as short-term storage. If the access frequency is less than or equal to 30 times / day, it is classified as long-term storage.
[0022] Table 1
[0023] According to the first storage type and the second storage type, a first storage blockchain and a second storage blockchain are constructed correspondingly, and the first storage blockchain and the second storage blockchain are managed at different security levels through smart contracts.
[0024] According to the first storage type (short-term storage) and the second storage type (long-term storage), the first storage blockchain and the second storage blockchain are constructed respectively. The first storage blockchain is used to store data of the short-term storage type, and the second storage blockchain is used for long-term storage data. The smart contract automatically matches the corresponding storage blockchain (the first storage blockchain or the second storage blockchain) according to the storage type of the data, and configures different security levels and encryption methods for different storage types, and sets corresponding access control policies.
[0025] Furthermore, the type of audit data also includes a third storage type, which is medium-term storage; based on the third storage type, a third storage blockchain is constructed, and the first storage blockchain, the second storage blockchain and the third storage blockchain are managed at different security levels through smart contracts; wherein, the first storage blockchain, the second storage blockchain and the third storage blockchain perform different security level management including at least encryption policy level and access control authority level.
[0026] The type of audit data can also be subdivided into a third storage type according to storage requirements, namely medium-term storage, which is used to store data that is not as frequently accessed as short-term storage but needs to be accessed earlier than long-term storage. A third storage blockchain is constructed based on the third storage type to manage and store data of the medium-term storage type; compared with short-term storage, the data encryption policy and access control of medium-term storage are more stringent, but compared with long-term storage, its response speed is relatively fast; through smart contracts, the third storage blockchain can dynamically adjust the encryption policy and access rights of data to meet the needs of medium-term storage. The smart contracts of the first storage blockchain, the second storage blockchain, and the third storage blockchain manage data at different security levels, mainly including encryption policy levels and access control permission levels. For example, the encryption policy levels of the first storage blockchain, the second storage blockchain, and the third storage blockchain are set to primary, advanced, and intermediate respectively. By introducing the third storage type, constructing the corresponding third storage blockchain, and managing different security levels between the three storage blockchains through smart contracts, it can better adapt to the access needs and security requirements of different data and provide a more refined and dynamic storage management strategy.
[0027] Furthermore, if the type of the audit data includes a third storage type; according to the third storage type, each node of the discrimination decision tree is reconfigured to store the discrimination threshold of the corresponding feature, including a first discrimination threshold and a second discrimination threshold, the first discrimination threshold is used to discriminate between short-term storage and medium-term storage, and the second discrimination threshold is used to discriminate between medium-term storage and long-term storage.
[0028] If the type of audit data includes the third storage type, a new discrimination threshold is set in the discrimination decision tree, including the first discrimination threshold and the second discrimination threshold. If it is less than or equal to the first discrimination threshold, it is classified as short-term storage. If it is greater than the first discrimination threshold and less than or equal to the second discrimination threshold, it is classified as medium-term storage. If it is greater than the second discrimination threshold, it is classified as long-term storage.
[0029] Exemplarily, the storage type of audit data is determined as shown in Table 2. If the time attribute is less than or equal to 300 days, it is classified as short-term storage; if the time attribute is greater than 600 days, it is classified as long-term storage; if the time attribute is greater than 300 days and less than or equal to 600, it is further judged based on the access frequency. If the access frequency is greater than 50 times / day, it is classified as short-term storage; if the access frequency is 10-50 times / day, it is classified as medium-term storage; if the access frequency is less than 10 times / day, it is classified as long-term storage.
[0030] Table 2
[0031] Furthermore, the smart contract includes a migration module, and the method includes: The data access logs of the first storage blockchain and the second storage blockchain are scanned regularly. If the gradient change of the audit data access frequency of a certain storage type is greater than a preset threshold, a migration instruction is obtained; if the gradient change is a gradient decrease, the smart contract migrates the data from the first storage blockchain to the second storage blockchain according to the migration instruction; if the gradient change is a gradient increase, the data is migrated from the second storage blockchain to the first storage blockchain; The migration process is automatically triggered by the smart contract and recorded on the corresponding blockchain.
[0032] Scan the data access logs on the first storage blockchain and the second storage blockchain to obtain the access frequency of each audit data. If the gradient change of the access frequency of audit data of a certain storage type exceeds the preset threshold, obtain the migration instruction, which is used for data migration between the first storage blockchain and the second storage blockchain; if the gradient change is a gradient decrease, it means that the access frequency of the data is decreasing, and the smart contract migrates the data from the first storage blockchain to the second storage blockchain according to the migration instruction; if the gradient change is a gradient increase, it means that the access frequency of the data is increasing, and the smart contract migrates the data from the second storage blockchain to the first storage blockchain according to the migration instruction. The migration process is automatically triggered by the smart contract and executed by the smart contract. The smart contract will ensure that the data migration is carried out without affecting the overall performance of the system.
[0033] For example, the access frequency of a piece of data in the first storage blockchain gradually decreases from 50 times / day to 5 times / day, and the gradient change exceeds the preset threshold. At this time, the smart contract will automatically trigger the migration instruction to migrate the data from the first storage blockchain to the second storage blockchain because it no longer needs to be accessed frequently.
[0034] For example, the access frequency of a piece of data originally stored in the second storage blockchain increases from 5 times / day to 60 times / day, exceeding the set gradient change threshold. The smart contract recognizes that the data needs to be accessed more frequently, so it triggers a migration instruction to migrate the data from the second storage blockchain to the first storage blockchain to provide faster access speed.
[0035] Furthermore, the smart contract also includes a cache module, and the method includes: Among them, the cache module establishes connections with the first storage blockchain and the second storage blockchain; when the smart contract detects that the access frequency gradient of audit data of a certain storage type in the first storage blockchain or the second storage blockchain increases, the predicted associated access data is obtained and the predicted associated access data is cached in the cache module.
[0036] The cache module is connected to the first storage blockchain and the second storage blockchain, and can cache and manage the data in the two types of blockchains; the cache module is used to temporarily store audit data that will be frequently accessed, reduce the time to extract data from the blockchain each time it is accessed, and improve data reading efficiency. When the smart contract detects that the access frequency of audit data of a certain storage type has increased gradually (that is, the access frequency of the data suddenly increases), the smart contract will make a prediction that the data and its associated data may be frequently accessed in the short term, and cache the predicted associated access data in the cache module.
[0037] For example, the access frequency of audit data stored in the second storage blockchain suddenly increases from once a week to 10 times a day; the smart contract determines that the data is about to enter a high-frequency access state; based on historical records, the smart contract finds that other data that is often queried together with this data also exists in the blockchain, so it predicts that these related data may also be accessed; the smart contract caches these related data in the cache module so that it can respond quickly when the user accesses it, reducing the time to extract data from the blockchain and improving access efficiency.
[0038] Furthermore, the smart contract also includes a backtracking module, and the method includes: Receive backtrace request information from an authorized user; the backtrace module configures a first backtrace step and a second backtrace step for the first storage blockchain and the second storage blockchain, wherein the backtrace step is obtained by analyzing the query complexity of the backtrace request information; the smart contract calls the first storage blockchain for audit data according to the first backtrace step, and calls the second storage blockchain for audit data according to the second backtrace step.
[0039] The smart contract also includes a backtracking module, which is used to process backtracking requests from authorized users and to perform audit data calls on data in different storage blockchains at different backtracking steps. Specifically, an authorized user refers to a user with access and operation permissions who can initiate a backtracking request for audit data; when an authorized user makes a backtracking request, the system will receive the request information, which includes the data time range that the user wishes to query, the query complexity, and specific audit requirements; the backtracking module will configure appropriate backtracking steps for the first storage blockchain and the second storage blockchain according to the storage characteristics and request information of different blockchains; the backtracking step refers to the time range or amount of data covered by a single call or query operation of the system, and the size of the step is determined by analyzing the query complexity in the backtracking request information; the first backtracking step is suitable for short-term For stored data, the access frequency of this type of data is high, and the backtracking step can be relatively short to ensure accurate and fast search for the required data; the second backtracking step is suitable for long-term stored data. This type of data usually has a large time span. When querying, a longer backtracking step can be set to facilitate rapid positioning of the data range; the query complexity depends on the time range and data volume requested by the user. For example, if the user requests a short time period to go back (such as a few days or weeks), the query complexity is low and the step size can be set to be small. If the user requests a long time span to go back (such as a few months or years), the query complexity is high and the step size should be appropriately increased to speed up the query. According to the configured first backtracking step, the smart contract retrieves audit data from the short-term stored blockchain; according to the second backtracking step, the smart contract retrieves audit data from the long-term stored blockchain.
[0040] The storage type of the audit data is input into the smart contract to perform storage blockchain matching, and a matching storage blockchain is obtained, where the matching storage blockchain is the first storage blockchain or the second storage blockchain.
[0041] By inputting the storage type of audit data into the smart contract, the smart contract can automatically match the corresponding first storage blockchain (short-term storage) or second storage blockchain (long-term storage) according to the rules, thereby achieving efficient and intelligent data management.
[0042] The smart contract securely stores the audit data according to the storage path of the matching storage blockchain.
[0043] After matching the appropriate storage blockchain, the smart contract will encrypt and securely store the audit data according to the blockchain's storage path. The immutability of the blockchain and the automated execution of smart contracts ensure the security, integrity and efficient management of audit data. Every storage operation is accurately recorded on the blockchain, making the data storage process transparent and traceable.
[0044] In summary, the embodiments of the present application have at least the following technical effects: First, the received audit data is parsed to obtain basic attribute information, which includes time attribute, data type and access frequency. Then, the audit data is analyzed according to the basic attribute information to determine the storage type of the audit data, wherein the type of the audit data includes a first storage type and a second storage type, the first storage type is short-term storage, and the second storage type is long-term storage. Further, according to the first storage type and the second storage type, a first storage blockchain and a second storage blockchain are correspondingly constructed, and the first storage blockchain and the second storage blockchain are managed at different security levels through smart contracts. Then, the storage type of the audit data is input into the smart contract for storage blockchain matching, and a matching storage blockchain is obtained, and the matching storage blockchain is the first storage blockchain or the second storage blockchain. Finally, the smart contract securely stores the audit data according to the storage path of the matching storage blockchain. The technical problem of insufficient security of audit data storage in the prior art is solved, the storage type is divided by the audit data attribute information, and the classified and secure storage of audit data is realized by combining blockchain technology, thereby achieving the technical effect of improving the security of data storage.
[0045] Embodiment 2 is based on the same inventive concept as the blockchain-based audit data security storage method in the previous embodiment. Figure 2 As shown, the present application provides a blockchain-based audit data security storage system, wherein the system includes: A parsing module 11, the parsing module 11 is used to parse the received audit data and obtain basic attribute information, wherein the basic attribute information includes time attribute, data type and access frequency; an analysis module 12, the analysis module 12 is used to analyze the audit data according to the basic attribute information and determine the storage type of the audit data, wherein the type of the audit data includes a first storage type and a second storage type, the first storage type is short-term storage, and the second storage type is long-term storage; a blockchain construction module 13, the blockchain construction module 13 is used to construct a first storage blockchain and a second storage blockchain according to the first storage type and the second storage type, and the first storage blockchain and the second storage blockchain are managed at different security levels through smart contracts; a matching module 14, the matching module 14 is used to input the storage type of the audit data into the smart contract for storage blockchain matching, and obtain a matching storage blockchain, wherein the matching storage blockchain is the first storage blockchain or the second storage blockchain; a storage module 15, the storage module 15 is used for the smart contract to securely store the audit data according to the storage path of the matching storage blockchain.
[0046] Furthermore, the analysis module 12 is used to perform the following method: Identify the information gain of the time attribute, the data type and the access frequency, divide the features into tree nodes according to the size of the information gain, and recursively construct a discriminant decision tree, wherein each node of the discriminant decision tree stores a discriminant threshold of the corresponding feature, and the discriminant threshold is used to discriminate between short-term storage and long-term storage; perform feature vector conversion on the time attribute, the data type and the access frequency, and output a time feature vector, a type feature vector and an access feature vector; input the time feature vector, the type feature vector and the access feature vector into the discriminant decision tree for analysis to determine the storage type of the audit data.
[0047] Furthermore, the analysis module 12 is used to perform the following method: According to the third storage type, a third storage blockchain is constructed, and the first storage blockchain, the second storage blockchain and the third storage blockchain are managed at different security levels through smart contracts; wherein, the first storage blockchain, the second storage blockchain and the third storage blockchain are managed at different security levels including at least encryption policy level and access control authority level.
[0048] Furthermore, the analysis module 12 is used to perform the following method: According to the third storage type, each node of the discriminant decision tree is reconfigured to store the discriminant thresholds of the corresponding features, including a first discriminant threshold and a second discriminant threshold, wherein the first discriminant threshold is used to discriminate between short-term storage and medium-term storage, and the second discriminant threshold is used to discriminate between medium-term storage and long-term storage.
[0049] Furthermore, the blockchain construction module 13 is used to execute the following method: The data access logs of the first storage blockchain and the second storage blockchain are scanned regularly. If the gradient change of the audit data access frequency of a certain storage type is greater than a preset threshold, a migration instruction is obtained; if the gradient change is a gradient decrease, the smart contract migrates the data from the first storage blockchain to the second storage blockchain according to the migration instruction; if the gradient change is a gradient increase, the data is migrated from the second storage blockchain to the first storage blockchain; wherein the migration process is automatically triggered by the smart contract and recorded on the corresponding blockchain.
[0050] Furthermore, the blockchain construction module 13 is used to execute the following method: Among them, the cache module establishes connections with the first storage blockchain and the second storage blockchain; when the smart contract detects that the access frequency gradient of audit data of a certain storage type in the first storage blockchain or the second storage blockchain increases, the predicted associated access data is obtained and the predicted associated access data is cached in the cache module.
[0051] Furthermore, the blockchain construction module 13 is used to execute the following method: Receive backtrace request information from an authorized user; the backtrace module configures a first backtrace step and a second backtrace step for the first storage blockchain and the second storage blockchain, wherein the backtrace step is obtained by analyzing the query complexity of the backtrace request information; the smart contract calls the first storage blockchain for audit data according to the first backtrace step, and calls the second storage blockchain for audit data according to the second backtrace step.
[0052] It should be noted that the above-mentioned sequence of the embodiments of the present application is only for description and does not represent the advantages and disadvantages of the embodiments. And the above-mentioned specific embodiments of this specification are described. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0053] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
[0054] This specification and drawings are merely exemplary illustrations of the present application and are deemed to cover any and all modifications, variations, combinations or equivalents within the scope of the present application. Obviously, a person skilled in the art may make various modifications and variations to the present application without departing from the scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the present application and its equivalents, the present application intends to include these modifications and variations.
Claims
1. A blockchain-based audit data security storage method, characterized in that: The method comprises: Parsing the received audit data to obtain basic attribute information, wherein the basic attribute information includes time attribute, data type and access frequency; Analyze the audit data according to the basic attribute information to determine the storage type of the audit data, wherein the type of the audit data includes a first storage type and a second storage type, the first storage type is short-term storage, and the second storage type is long-term storage; According to the first storage type and the second storage type, a first storage blockchain and a second storage blockchain are correspondingly constructed, and the first storage blockchain and the second storage blockchain are managed at different security levels through smart contracts; Input the storage type of the audit data into the smart contract to perform storage blockchain matching, and obtain a matching storage blockchain, where the matching storage blockchain is the first storage blockchain or the second storage blockchain; The smart contract securely stores the audit data according to the storage path of the matching storage blockchain.
2. The method according to claim 1, characterized in that Analyzing the audit data according to the basic attribute information to determine the storage type of the audit data, the method includes: Identify the information gain of the time attribute, the data type and the access frequency, divide the features into tree nodes according to the size of the information gain, and recursively construct a discriminant decision tree, wherein each node of the discriminant decision tree stores a discriminant threshold of the corresponding feature, and the discriminant threshold is used to discriminate between short-term storage and long-term storage; Performing feature vector conversion on the time attribute, the data type and the access frequency, and outputting a time feature vector, a type feature vector and an access feature vector; The time feature vector, type feature vector and access feature vector are input into the discrimination decision tree for analysis to determine the storage type of the audit data.
3. The method according to claim 2, characterized in that The type of audit data also includes a third storage type, and the third storage type is medium-term storage; According to the third storage type, a third storage blockchain is constructed, and the first storage blockchain, the second storage blockchain, and the third storage blockchain are managed at different security levels through smart contracts; Among them, the different security level management of the first storage blockchain, the second storage blockchain and the third storage blockchain at least includes encryption policy level and access control authority level.
4. The method according to claim 3, characterized in that If the type of the audit data includes a third storage type; According to the third storage type, each node of the discriminant decision tree is reconfigured to store the discriminant thresholds of the corresponding features, including a first discriminant threshold and a second discriminant threshold, wherein the first discriminant threshold is used to discriminate between short-term storage and medium-term storage, and the second discriminant threshold is used to discriminate between medium-term storage and long-term storage.
5. The method according to claim 4, characterized in that The smart contract includes a migration module, and the method includes: The data access logs of the first storage blockchain and the second storage blockchain are scanned regularly, and if the gradient change of the audit data access frequency of a certain storage type is greater than a preset threshold, a migration instruction is obtained; If the gradient change is a gradient decrease, the smart contract migrates the data from the first storage blockchain to the second storage blockchain according to the migration instruction; if the gradient change is a gradient increase, the smart contract migrates the data from the second storage blockchain to the first storage blockchain; The migration process is automatically triggered by the smart contract and recorded on the corresponding blockchain.
6. The method according to claim 1, characterized in that The smart contract also includes a cache module, a method include: Wherein, the cache module establishes a connection with the first storage blockchain and the second storage blockchain; When the smart contract detects that the access frequency gradient of audit data of a certain storage type in the first storage blockchain or the second storage blockchain increases, the predicted associated access data is obtained, and the predicted associated access data is cached in the cache module.
7. The method according to claim 1, characterized in that The smart contract also includes a backtracking module, and the method includes: Receive the backtracking request information from the authorized user; The backtracking module configures a first backtracking step length and a second backtracking step length for the first storage blockchain and the second storage blockchain, wherein the backtracking step length is obtained by analyzing the query complexity of the backtracking request information; The smart contract calls the first storage blockchain for audit data according to the first backtracking step, and calls the second storage blockchain for audit data according to the second backtracking step.
8. The blockchain-based audit data security storage system is characterized by: A method for securely storing audit data based on blockchain according to any one of claims 1 to 7, the system comprising: A parsing module, the parsing module is used to parse the received audit data to obtain basic attribute information, the basic attribute information includes time attribute, data type and access frequency; An analysis module, the analysis module is used to analyze the audit data according to the basic attribute information to determine the storage type of the audit data, wherein the type of the audit data includes a first storage type and a second storage type, the first storage type is short-term storage, and the second storage type is long-term storage; A blockchain construction module, wherein the blockchain construction module is used to construct a first storage blockchain and a second storage blockchain according to the first storage type and the second storage type, and the first storage blockchain and the second storage blockchain are managed at different security levels through smart contracts; A matching module, wherein the matching module is used to input the storage type of the audit data into the smart contract for storage blockchain matching, and obtain a matching storage blockchain, wherein the matching storage blockchain is the first storage blockchain or the second storage blockchain; A storage module is used by the smart contract to securely store the audit data according to the storage path of the matching storage blockchain.
Citation Information
Patent Citations
A user data storage and query method and a user data processing device
CN109597822A
Method and system for storing, using and auditing unstructured data based on block chain
CN115080988A
Encrypted data storage and query method based on block chain
CN117009988A
Performance evaluation system and method for multi-stage RAID system
CN117909198A
Database security auditing method and device, electronic equipment and storage medium
CN118153059A
