A data security collection method based on blockchain
Through the blockchain-based data security collection method, combined with the user characteristics analysis platform and dynamic role access control model, the problem of insufficient account permissions in the cloud server is solved, the dynamic control of user behavior and the improvement of data security are achieved, ensuring Improve the security and traceability of enterprise data.
Patent Information
- Application Number
- CN202210672828.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-14
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2042-06-14
AI Technical Summary
The level of granting account permissions in cloud servers is low, making it difficult to ensure data security. Especially when high-privilege accounts are cracked, a large amount of data security may be compromised. A dynamic access control method needs to be designed to reduce enterprise risks.
Adopt a blockchain-based data security collection method, including user characteristics analysis platform, risk assessment model and dynamic role access control model, and collect and evaluate user behavior through identity verification login module, user behavior collection module and data storage module, dynamic Adjust the user's trust level and operation permissions, and use the HDFS distributed file system to enhance data security.
By dynamically adjusting the user's trust level and operating permissions, the security of the data is improved, the legality of the user's behavior and the security of the data are ensured, the security of the system is increased, and each adjustment is recorded through the blockchain to facilitate Subsequent behavior tracing and liability determination.
Smart Images

Figure CN115086028B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of blockchain, and in particular to a data security collection method based on blockchain. Background Art
[0002] In the development and operation of an enterprise, it is necessary to establish a large number of information systems to meet the needs of enterprise activities such as production and operation management. A large amount of data will be generated in these information systems, and these data are closely related to the production and operation of the enterprise. Therefore, the security of enterprise data must be guaranteed at all times. Common methods include access control and dynamic management of data to ensure data security; with the development of information technology, cloud computing has gradually become the most important resource allocation and data collection method for enterprises. Enterprises upload data to private or public cloud servers. Although the efficiency of data regulation and collection has been improved, security is still difficult to guarantee. At present, the level of account authority granting in cloud servers is relatively low. Once a high-authority account is cracked, it will cause the security of a large amount of data to be difficult to guarantee. Therefore, it is necessary to design a blockchain-based data security collection method that dynamically controls access and reduces enterprise risks. Summary of the invention
[0003] The purpose of the present invention is to provide a data security collection method based on blockchain to solve the problems raised in the above background technology.
[0004] In order to solve the above technical problems, the present invention provides the following technical solutions: a data security collection method based on blockchain, applicable to a data security collection system based on blockchain, the system comprising a user feature analysis platform, a risk assessment model, and a dynamic role access control model, the user feature analysis platform is used to characterize user access information in a private cloud environment and define user behavior, the risk assessment model is used to calculate the risk value of user behavior, and the dynamic role access control model proposes an access control model that can dynamically regulate the user's trust level according to the user behavior security value, and the output of the user feature analysis platform is electrically connected to the input end of the risk assessment model and the dynamic role access control model respectively; the user feature analysis platform comprises an identity authentication login module, a user behavior collection module, and a data storage module, the identity authentication login module is used to perform single-point login after the user passes the identity authentication, the user behavior collection module is used to classify and collect data related to user behavior, and the data storage module is used to establish an HDFS distributed file system and store the collected data; the data related to user behavior includes employee position, employee trust level, activity time, terminal ID, read and write records, and the identity authentication login module is electrically connected to the user behavior collection module and the data storage module.
[0005] According to the above technical solution, the risk assessment model includes an asset assessment module, a vulnerability calculation module, and a behavioral security calculation module. The asset assessment module is used to assess enterprise information assets, the vulnerability calculation module is used to calculate the vulnerability of enterprise information, and the behavioral security calculation module is used to calculate the asset loss risk under employee behavior; the dynamic role access control model includes a high-risk behavior response module, a trust level adjustment module, and an operation authority adjustment module. The high-risk behavior response module is used to make risk assessments on user behaviors, the trust level adjustment module is used to dynamically adjust the user's trust level, and the operation authority adjustment module is used to adjust operation authorities according to the trust level adjustment caused by user behaviors; the asset assessment module, the vulnerability calculation module and the behavioral security calculation module are electrically connected, and the high-risk behavior response module and the trust level adjustment module are electrically connected to the operation authority adjustment module.
[0006] According to the above technical solution, the blockchain-based data security collection method specifically includes the following steps:
[0007] Step S1: Establish a user feature analysis platform to collect operation feature data of users who access private cloud data;
[0008] Step S2: Building a risk assessment model, and matching the collected operation feature data into the model to conduct operation risk assessment;
[0009] According to the above technical solution, in step S1, the method for collecting user operation characteristic data for accessing private cloud data includes the following steps:
[0010] Step S11: The user logs in to the private cloud verification system according to the generated random identity, and is granted data operation permissions after passing the verification; the user's operation permissions are packaged into the random identity, and the user can read and write data in the private cloud only after passing the verification, thereby increasing the security of the system;
[0011] Step S12: Collect the user's operation behavior, including the behavior time, behavior subject, behavior object, and operation type, and save all operation attributes in the form of attribute sets; split the user's behavior in the process of accessing enterprise data resources in the private cloud, and seal each specific attribute in the form of a set to facilitate data collection and subsequent traceability;
[0012] Step S13: Select features of the collected data according to correlation and analyze user behavior; in order to analyze the user's operation behavior, it is necessary to select features to characterize and measure the user, and select a feature subset with the best evaluation criteria from the original feature set;
[0013] Step S14: Establish an HDFS distributed file system and store the obtained data therein; the HDFS distributed file system has the characteristics of high capacity and high fault tolerance, stores data in the form of data blocks, and physically divides the data into multiple parts to increase writing speed and security.
[0014] According to the above technical solution, in the steps S12-S13, the method for establishing a user operation attribute set and selecting features includes the following steps:
[0015] Step A: The subject of user access i The number of visits is counted, and the probability of being visited is calculated through machine learning neural network based on the visit frequency. Where i is the behavior subject number;
[0016] Step B: Calculate the importance of individual entities Specifically, the probability of being visited The function of The greater the probability of an entity being accessed, the more important it is. According to the internal connection between various entities in the enterprise private cloud, the user's access behavior to data in a certain information system will increase the probability of the entity being accessed. Statistics of a large number of behavior records can obtain a more realistic probability distribution.
[0017] Step C: Through computer program analysis, the legitimacy of the user's behavior is judged and described by the legitimacy characteristic value L, where L is 0 for an illegal user and 1 for a legal user; according to the computer program, the user's attribute characteristics, including username, password verification, account authority and data importance matching degree, are screened and verified, and after being processed by the output layer, the legitimacy characteristics of the behavior subject are obtained;
[0018] Step D: Collect data for each user's operation behavior Statistics, specifically represented as a collection of matrices containing multiple eigenvalues;
[0019] Step E: According to the importance weight w of each entity i , and set the level protection bias b i , calculate the weighted average of each entity's importance The weighted average of the importance of each entity is used to represent the importance of the entity set, and a threshold is set to determine the degree of match between user behavior permissions and data importance, so as to facilitate the establishment of early warning signs.
[0020] According to the above technical solution, in step E, the weighted average of the importance of each entity The calculation formula is:
[0021]
[0022] Where b i It is the entity weight bias, which is used to limit the importance level range to prevent data overflow. The value range changes dynamically according to the entity weight. The larger the weighted average of each entity's importance, the higher the importance of the entity set to which the entity belongs. The corresponding user access rights should also be adjusted according to this value. For data in the enterprise private cloud, the higher its importance, the more cautious the user's access rights should be granted to strengthen the security and uniformity of the data.
[0023] According to the above technical solution, in the steps S2-S3, the method for establishing the risk assessment model and the corresponding method for operating the risk assessment results include the following steps:
[0024] Step S21: weighted average of the obtained entity importance Evaluate the enterprise data asset Q, and the specific relationship is the weighted average of the entity importance Proportional, the specific formula satisfies
[0025] Step S22: Evaluate the behavioral security R of the enterprise data after being accessed by the user, and assign a grade based on the evaluation result;
[0026] Step S23: Identify high-risk access behaviors according to the set threshold and behavior security assessment value, and respond to high-risk behaviors;
[0027] Step S24: Adjust the user's trust level and the corresponding operation authority.
[0028] According to the above technical solution, in step S22, the calculation formula of the behavior security R of the enterprise data after being accessed by the user is:
[0029]
[0030] In the formula, when the user behavior legitimacy characteristic value L is 0, the behavior safety R is 0, and the user's operation behavior is at a high-risk operation level. It means that the risk value is normalized to a dimensionless value in the interval [0,1] that increases in a positive direction. α is the attenuation factor, which ranges from [0.5,1] and is used to regulate the attenuation rate of the risk value of user behavior. For operations identified as illegal users, the calculation result is 0, indicating that the risk is extremely high. When the calculation result is 0, the data protection mechanism is triggered, the user being operated is marked, and all operation permissions of the user are revoked to increase security.
[0031] According to the above technical solution, in step S24, the method for adjusting the trust level of the user is: according to the calculated safety value of this behavior, combined with the average risk of the user's historical behavior, the trust level is decreased in a positive direction until it is reduced to 0, then the user's access rights are cancelled, and each adjustment record is stored in the blockchain. By utilizing the leaderless feature of the blockchain, each adjustment record is stored, and the user cannot tamper with the adjustment record, which facilitates subsequent behavior tracing and responsibility determination, and improves data security.
[0032] Compared with the prior art, the beneficial effects achieved by the present invention are:
[0033] (1) By setting up an identity authentication login module, the user's operation permissions are packaged into a random identity. Only after verification can the data in the private cloud be read and written, thereby increasing the security of the system; by setting up an HDFS distributed file system, the user's attribute characteristics, including username, password verification, account permissions and the degree of matching with data importance, are screened and verified according to computer programs. After processing by the output layer, the legitimacy characteristics of the subject of the behavior are obtained. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:
[0035] Figure 1 It is a schematic diagram of the system module composition of the present invention. DETAILED DESCRIPTION
[0036] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0037] See also Figure 1The present invention provides a technical solution: a data security collection method based on blockchain, which is applicable to a data security collection system based on blockchain. The system includes a user feature analysis platform, a risk assessment model, and a dynamic role access control model. The user feature analysis platform is used to characterize user access information in a private cloud environment and define user behavior. The risk assessment model is used to calculate the risk value of user behavior. The dynamic role access control model proposes an access control model that can dynamically adjust the user's trust level according to the user behavior security value. The output of the user feature analysis platform is electrically connected to the input end of the risk assessment model and the dynamic role access control model respectively; the user feature analysis platform includes an identity authentication login module, a user behavior collection module, and a data storage module. The identity authentication login module is used to perform single-point login after the user is authenticated. The user behavior collection module is used to classify and collect data related to user behavior. The data storage module is used to establish an HDFS distributed file system and store the collected data; the data related to user behavior includes employee position, employee trust level, activity time, terminal ID, read and write records, and the identity authentication login module is electrically connected to the user behavior collection module and the data storage module.
[0038] The risk assessment model includes an asset assessment module, a vulnerability calculation module, and a behavioral security calculation module. The asset assessment module is used to assess enterprise information assets, the vulnerability calculation module is used to calculate the vulnerability of enterprise information, and the behavioral security calculation module is used to calculate the asset loss risk under employee behavior; the dynamic role access control model includes a high-risk behavior response module, a trust level adjustment module, and an operation authority adjustment module. The high-risk behavior response module is used to make risk assessments on user behavior, the trust level adjustment module is used to dynamically adjust the user's trust level, and the operation authority adjustment module is used to adjust the operation authority according to the trust level adjustment caused by the user behavior; the asset assessment module, the vulnerability calculation module and the behavioral security calculation module are electrically connected, and the high-risk behavior response module and the trust level adjustment module are electrically connected to the operation authority adjustment module.
[0039] The data security collection method based on blockchain specifically includes the following steps:
[0040] Step S1: Establish a user feature analysis platform to collect operation feature data of users who access private cloud data;
[0041] Step S2: Building a risk assessment model, and matching the collected operation feature data into the model to conduct operation risk assessment;
[0042] In step S1, the method for collecting user operation characteristic data for accessing private cloud data includes the following steps:
[0043] Step S11: The user logs in to the private cloud verification system according to the generated random identity, and is granted data operation permissions after passing the verification; the user's operation permissions are packaged into the random identity, and the user can read and write data in the private cloud only after passing the verification, thereby increasing the security of the system;
[0044] Step S12: Collect the user's operation behavior, including the behavior time, behavior subject, behavior object, and operation type, and save all operation attributes in the form of attribute sets; split the user's behavior in the process of accessing enterprise data resources in the private cloud, and seal each specific attribute in the form of a set to facilitate data collection and subsequent traceability;
[0045] Step S13: Select features of the collected data according to correlation and analyze user behavior; in order to analyze the user's operation behavior, it is necessary to select features to characterize and measure the user, and select a feature subset with the best evaluation criteria from the original feature set;
[0046] Step S14: Establish an HDFS distributed file system and store the obtained data therein; the HDFS distributed file system has the characteristics of high capacity and high fault tolerance, stores data in the form of data blocks, and physically divides the data into multiple parts to increase writing speed and security.
[0047] In steps S12-S13, the method for establishing a user operation attribute set and selecting features includes the following steps:
[0048] Step A: The subject of user access i The number of visits is counted, and the probability of being visited is calculated through machine learning neural network based on the visit frequency. Where i is the behavior subject number;
[0049] Step B: Calculate the importance of individual entities Specifically, the probability of being visited The function of The greater the probability of an entity being accessed, the more important it is. According to the internal connection between various entities in the enterprise private cloud, the user's access behavior to data in a certain information system will increase the probability of the entity being accessed. Statistics of a large number of behavior records can obtain a more realistic probability distribution.
[0050] Step C: Through computer program analysis, the legitimacy of the user's behavior is judged and described by the legitimacy characteristic value L, where L is 0 for an illegal user and 1 for a legal user; according to the computer program, the user's attribute characteristics, including username, password verification, account authority and data importance matching degree, are screened and verified, and after being processed by the output layer, the legitimacy characteristics of the behavior subject are obtained;
[0051] Step D: Collect data for each user's operation behavior Statistics, specifically represented as a collection of matrices containing multiple eigenvalues;
[0052] Step E: According to the importance weight w of each entity i , and set the level protection bias b i , calculate the weighted average of each entity's importance The weighted average of the importance of each entity is used to represent the importance of the entity set, and a threshold is set to determine the degree of match between user behavior permissions and data importance, so as to facilitate the establishment of early warning signs.
[0053] In step E, the weighted average of the importance of each entity The calculation formula is:
[0054]
[0055] Where b i It is the entity weight bias, which is used to limit the importance level range to prevent data overflow. The value range changes dynamically according to the entity weight. The larger the weighted average of each entity's importance, the higher the importance of the entity set to which the entity belongs. The corresponding user access rights should also be adjusted according to this value. For data in the enterprise private cloud, the higher its importance, the more cautious the user's access rights should be granted to strengthen the security and uniformity of the data.
[0056] In steps S2-S3, the method for establishing the risk assessment model and the corresponding risk assessment result operation method include the following steps:
[0057] Step S21: weighted average of the obtained entity importance Evaluate the enterprise data asset Q, and the specific relationship is the weighted average of the entity importance Proportional, the specific formula satisfies
[0058] Step S22: Evaluate the behavioral security R of the enterprise data after being accessed by the user, and assign a grade based on the evaluation result;
[0059] Step S23: Identify high-risk access behaviors according to the set threshold and behavior security assessment value, and respond to high-risk behaviors;
[0060] Step S24: Adjust the user's trust level and the corresponding operation authority.
[0061] In step S22, the calculation formula of the behavior security R of the enterprise data after being accessed by the user is:
[0062]
[0063] In the formula, when the user behavior legitimacy characteristic value L is 0, the behavior safety R is 0, and the user's operation behavior is at a high-risk operation level. It means that the risk value is normalized to a dimensionless value in the interval [0,1] that increases in a positive direction. α is the attenuation factor, which ranges from [0.5,1] and is used to regulate the attenuation rate of the risk value of user behavior. For operations identified as illegal users, the calculation result is 0, indicating that the risk is extremely high. When the calculation result is 0, the data protection mechanism is triggered, the user being operated is marked, and all operation permissions of the user are revoked to increase security.
[0064] In step S24, the method for adjusting the user's trust level is: according to the calculated safety value of this behavior, combined with the average risk of the user's historical behavior, the trust level is reduced in a positive direction until it is reduced to 0, then the user's access rights are cancelled, and each adjustment record is stored in the blockchain. By utilizing the leaderless feature of the blockchain, each adjustment record is stored, and the user cannot tamper with the adjustment record, which facilitates subsequent behavior tracing and responsibility determination, and improves data security.
[0065] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0066] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A data security collection method based on blockchain, applied to a data security collection system based on blockchain, Features: The system includes a user feature analysis platform, a risk assessment model, and a dynamic role access control model. The user feature analysis platform is used to characterize user access information in a private cloud environment and define user behavior. The risk assessment model is used to calculate the risk value of user behavior. The dynamic role access control model is an access control model that can dynamically adjust the user's trust level according to the user's behavior security value. The output of the user feature analysis platform is electrically connected to the input ends of the risk assessment model and the dynamic role access control model respectively; the user feature analysis platform includes an identity authentication login module, a user behavior collection module, and a data storage module. The identity authentication login module is used to perform single-point login after the user is authenticated. The user behavior collection module is used to classify and collect data related to user behavior. The data storage module is used to establish an HDFS distributed file system and store the collected data; the data related to user behavior includes employee position, employee trust level, activity time, terminal ID, and read and write records. The identity authentication login module is electrically connected to the user behavior collection module and the data storage module; The risk assessment model includes an asset assessment module, a vulnerability calculation module, and a behavior security calculation module. The asset assessment module is used to assess enterprise information assets, the vulnerability calculation module is used to calculate the vulnerability of enterprise information, and the behavior security calculation module is used to calculate the asset loss risk under employee behavior; the dynamic role access control model includes a high-risk behavior response module, a trust level adjustment module, and an operation authority adjustment module. The high-risk behavior response module is used to make risk assessments on user behaviors, the trust level adjustment module is used to dynamically adjust the user's trust level, and the operation authority adjustment module is used to adjust the operation authority according to the trust level adjustment caused by the user behavior; the asset assessment module, the vulnerability calculation module and the behavior security calculation module are electrically connected, and the high-risk behavior response module and the trust level adjustment module are electrically connected to the operation authority adjustment module; The blockchain-based data security collection method specifically includes the following steps: Step S1: Establish a user feature analysis platform to collect operation feature data of users who access private cloud data; Step S2: Building a risk assessment model, and matching the collected operation feature data into the model to conduct operation risk assessment; Step S3: Based on the risk assessment results, take regulatory measures for users who exhibit high-risk behaviors; In step S1, collecting operation characteristic data of users accessing private cloud data includes the following steps: Step S11: The user logs in to the private cloud verification system according to the generated random identity. After passing the verification, the user is granted data operation permissions, and the user's operation permissions are packaged into the random identity. Only after passing the verification can the data in the private cloud be read and written, thereby increasing the security of the system; Step S12: collecting the user's operation behavior, the operation behavior includes the behavior time, behavior subject, behavior object, and operation type, and saving all operation attributes in the form of an attribute set; Step S13: Select features of the collected data according to relevance and analyze user behavior; Step S14: Establish an HDFS distributed file system and store the obtained data therein; In step S3, if the user behavior safety value obtained by the evaluation is 0, it means that the risk is extremely high, and the data protection mechanism is triggered to mark the corresponding user and revoke all operation permissions of the user; Wherein, in the step S3, according to the set threshold and behavior security value, high-risk access behavior is identified and high-risk behavior response is performed; then the trust level of the user is adjusted, and the corresponding operation authority is adjusted at the same time; The trust level of the user is adjusted as follows: based on the assessed safety value of the current behavior and the average risk of the user's historical behavior, the trust level is decreased in a positive direction until it is reduced to 0, then the user's access rights are revoked, and each adjustment record is stored in the blockchain.
2. According to the data security collection method based on blockchain according to claim 1, Features: In the steps S12-S13, the method for establishing a user operation attribute set and selecting features includes the following steps: Step A: Entities accessed by users The number of visits is counted, and the probability of being visited is calculated through machine learning neural network based on the visit frequency. ,in is the label of the entity; Step B: Calculate the importance of individual entities , specifically the probability of being visited The function of ; Step C: Use computer program analysis to determine the legitimacy of the user's behavior and use the legitimacy feature value to determine the legitimacy of the user's behavior. Description, where When the value is 0, it indicates an illegal user, and when the value is 1, it indicates a legal user; Step D: Collect data for each user's operation behavior Statistics, specifically represented as a collection of matrices containing multiple eigenvalues; Step E: Weight each entity according to its importance , and the entity weight bias set , calculate the weighted average of each entity's importance .
3. According to the data security collection method based on blockchain according to claim 2, Features: In step E, the weighted average of the importance of each entity The calculation formula is: In the formula, It is the entity weight bias, which is used to limit the range of importance levels to prevent data overflow. The value range changes dynamically according to the entity weight. The larger the weighted average of the importance of each entity, the higher the importance of the entity set to which the entity belongs. The corresponding user access rights should also be adjusted according to this value.
