A security operation method based on data access relationship
By classifying labels and permission mapping for access accounts and data blocks, and correcting access permissions based on environmental information, the problems of high system load, complex permission management, and large resource investment in existing data security operation methods are solved, and security and efficiency are achieved. improvement.
Patent Information
- Application Number
- CN202410940444.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-15
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-15
AI Technical Summary
When ensuring data security and availability, existing data security operation methods face problems such as increased system load in the encryption and decryption process, cumbersome operations due to complex permission management, reduced data practicality due to data desensitization, and high investment in behavioral monitoring resources.
Through a security operation method based on data access relationships, access accounts and data blocks are classified into role type labels and data type labels respectively, a data role permission mapping table is generated, and access permissions are corrected based on user access environment information and role historical access environment information, using Feature deviation values and content correlation algorithms are used for permission correction and anomaly detection.
It reduces the authorization workload, discovers potential access risks, quantifies access rights corrections, improves security and operational efficiency, and reduces the risks of misoperation and unauthorized access.
Smart Images

Figure CN118484834B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data security, and in particular to a security operation method based on data access relationships. Background Art
[0002] In the digital age, data security operations have become an indispensable part of enterprises and organizations. The main purpose is to protect sensitive data from unauthorized access and leakage, while ensuring the integrity, confidentiality and availability of data. With the frequent occurrence of data leakage incidents and the strengthening of regulatory requirements, effective data security strategies are particularly critical to avoid financial losses, comply with laws and regulations, protect customer information security and maintain corporate reputation.
[0003] Currently, data security operations mainly rely on several methods to achieve data protection. First, data encryption technology can ensure the security of data during storage and transmission, preventing data from being stolen or leaked to unauthorized third parties. However, the encryption and decryption process may increase system load, thereby affecting performance.
[0004] Second, access control and authentication mechanisms ensure that only authorized users can access sensitive data, and multi-factor authentication further strengthens this security. Nevertheless, complex permission management may make operations too cumbersome and, if not managed properly, can easily lead to excessive allocation of permissions.
[0005] In addition, data desensitization and anonymization can reduce the risk of leakage by removing or hiding sensitive information in the data, but this method may reduce the practicality of the data and affect the accuracy of decision-making analysis. Behavior monitoring and anomaly detection technology can monitor data access behavior in real time, promptly detect and respond to anomalies or potential security threats, but it may cause privacy issues and require a large investment of resources. Summary of the invention
[0006] This application provides a security operation method based on data access relationship, including the following steps:
[0007] A1, generating corresponding data type labels according to the data summary information corresponding to each preset data block using a preset data classification method;
[0008] A2, generating corresponding role type labels according to the role description information corresponding to each preset access account using a preset role classification method;
[0009] A3, generating a corresponding data role permission mapping table according to each role type label and each data type label;
[0010] A4, assigning a data type label to each data block;
[0011] A5, assigning a corresponding role type label to each access account;
[0012] A6, when the access account issues an access request to the data block, collects the user access environment information corresponding to the access account, and generates corresponding access matching information according to the role type label of the access account and the data type label of the data block;
[0013] A7, determining the corresponding access rights according to the permission matching information in the data role permission mapping table;
[0014] A8, obtaining the corresponding role historical access environment information from the database according to the role type label of the access account;
[0015] A9, modifying the access permission according to the user access environment information and the role historical access environment information to generate modified access permission;
[0016] A10, grants the access account the modification access right to the data block.
[0017] By adopting the above technical solution, the security operation method based on data access relationship can classify access accounts and data blocks respectively and set corresponding role type labels and data type labels, and set corresponding data access permission mapping relationships according to the role type labels and data type labels, thereby avoiding one-to-one permission setting for each access account and each data block. On the one hand, it reduces the workload of authorization, and on the other hand, it can also discover potential access risks and perform data risk control based on the access habits of other access accounts corresponding to the role type labels.
[0018] Optionally, the security operation method based on data access relationship further includes the following steps for generating modified access rights:
[0019] B1, obtaining sub-feature data of each environment respectively when the user accesses the environment information;
[0020] B2, obtaining corresponding role historical environment sub-feature data from the role historical access environment information according to each environment sub-feature data and the role type label corresponding to the access account;
[0021] B3, calculating the corresponding character historical sub-feature range according to the character historical environment sub-feature data corresponding to the environment sub-feature data;
[0022] B4, if the environment sub-feature data is not within the corresponding character history sub-feature range, then calculating the corresponding feature deviation value according to the environment sub-feature data and the corresponding character history sub-feature range;
[0023] B5, if the environment sub-feature data is within the corresponding character history sub-feature range, assigning a preset deviation default value to the feature deviation value corresponding to the environment sub-feature data;
[0024] B6, calculating the comprehensive deviation value of the environmental characteristics according to the characteristic deviation values corresponding to all environmental sub-characteristic data;
[0025] B7, if the comprehensive deviation value of the environmental characteristics is greater than the preset deviation threshold, the access rights are modified according to the comprehensive deviation value of the environmental characteristics and the preset permission modification comparison table to generate corresponding modified access rights.
[0026] By adopting the above technical solution, the security operation method based on data access relationship can determine the corresponding feature deviation value by comparing the corresponding environmental sub-feature data in the user access environment information of the access account and the historical access environment information of the role, and determine the corresponding environmental feature comprehensive deviation value based on the feature deviation value statistics of all environmental sub-features, and then quantitatively correct the access rights of the access account to reduce potential data risks.
[0027] Optionally, the security operation method based on data access relationship further comprises the following steps:
[0028] C1, if the comprehensive deviation value of the environmental characteristics is greater than the preset deviation threshold, the data summary information of the accessed data block accessed by the access account and the corresponding access time are continuously recorded within the preset monitoring period to generate a user access data type record;
[0029] C2, determining the comprehensive irrelevance of the corresponding access content according to the user access data type record using a preset content relevance algorithm;
[0030] C3, calculating the user access frequency according to the access time in the user access data type record using a preset access frequency algorithm;
[0031] C4, if the comprehensive irrelevance of the access content is greater than the preset relevance threshold, the preset user authentication process is executed for the access account;
[0032] C5, if the user access frequency is greater than a preset access frequency threshold, the modified access rights of the access account are set to the preset minimum access rights within the preset suspension period.
[0033] By adopting the above technical solution, the security operation method based on data access relationship can record the user access data type records that generate access accounts, and analyze the existing abnormal situations based on the user access data type records, and then control the access rights of the access accounts to reduce data risks.
[0034] Optionally, the content relevance algorithm includes the following steps:
[0035] D1, sorting all access times in the user access data type record to generate an access time sequence list;
[0036] D2, sequentially obtain two adjacent access times in the access time sequence table and define them as the first access time and the second access time respectively;
[0037] D3, obtaining corresponding data summary information from the user access data type record according to the first access time and defining it as first data summary information;
[0038] D4, obtaining corresponding data summary information from the user access data type record according to the second access time and defining it as second data summary information;
[0039] D5, calculating the corresponding text relevance according to the first data summary information and the second data summary information using a preset text relevance algorithm and defining it as access continuity;
[0040] D6, calculate the comprehensive irrelevance of the access content by finding the standard deviation based on all access continuity.
[0041] By adopting the above technical solution, the security operation method based on data access relationship can calculate the correlation between the data summary information of the data blocks accessed twice by the access account, and calculate the comprehensive irrelevance of the access account according to the correlation of all adjacent accesses, which is used to judge the abnormal situation of the access user. It not only increases the depth of security monitoring, but also enables more reasonable and accurate security response based on in-depth analysis of the actual data content, thereby improving the security of the overall system and the targeted response.
[0042] Optionally, the data classification method comprises the following steps:
[0043] E1, classifying each data block according to the role type label of the data creator corresponding to each data block to determine the corresponding data creation role classification information;
[0044] E2, obtaining data summary information corresponding to each data block of the same classification in the data creation role classification information and defining it as summary information of assumed similar data;
[0045] E3, generating corresponding summary information translations according to each assumed similar data summary information using a preset translation method;
[0046] E4, generating summary information enhanced text according to the summary information of each hypothetical similar data and the corresponding summary information translation;
[0047] E5, generating corresponding summary cleaned texts according to each summary information enhanced text by using a preset text cleaning method;
[0048] E6, generating corresponding summary information segmentation texts according to each summary cleaning text using a preset segmentation algorithm;
[0049] E7, generating a corresponding data summary text vector according to each summary information segmentation text using a preset vectorization algorithm;
[0050] E8, classifying the corresponding data blocks according to the data summary text vectors corresponding to the data summary information of each assumed similar type using a preset clustering algorithm to generate corresponding classification clusters of each data block;
[0051] E9, determining the corresponding cluster center vector according to each data block classification cluster, and determining the data summary text vector closest to the cluster center vector according to the cluster center vector and defining it as the classification representative text vector;
[0052] E10, determining the corresponding data type label according to the assumed similar data summary information corresponding to the classification representative text vector corresponding to each data block classification cluster, and assigning the data type label to the data block corresponding to each data block classification cluster.
[0053] By adopting the above technical solution, the security operation method based on data access relationship can classify each data block according to the role type label of the data creator, and further classify and generate corresponding classification clusters through clustering algorithm according to the data summary information in each classification, and then find representative data summary information according to the classification cluster, so as to determine the data classification of the corresponding data block, and give each data block a clear and appropriate data type label.
[0054] Optionally, the text relevance algorithm comprises the following steps:
[0055] F1, obtaining a corresponding data summary text vector according to the first data summary information and defining it as a first data summary text vector;
[0056] F2, obtaining a corresponding data summary text vector according to the second data summary information and defining it as a second data summary text vector;
[0057] F3, calculating vector similarity based on the first data summary text vector and the second data summary text vector using a preset cosine similarity algorithm and defining it as text association.
[0058] By adopting the above technical solution, the security operation method based on data access relationship can accurately and intuitively calculate and evaluate the content relevance between different data blocks. This method can effectively identify and quantify the semantic connection between information, thereby achieving more refined access control and security analysis.
[0059] Optionally, the security operation method based on data access relationship further includes the following steps:
[0060] G1, generates the corresponding role description text vector according to the role description information corresponding to the role type label;
[0061] G2, calculates the corresponding text relevance based on the role description text vector and each category representative text vector using the text relevance algorithm and defines it as the role classification data relevance;
[0062] G3, if the role classification data association degree is not less than the preset role classification data association threshold, then grant the preset access rights corresponding to the role type label to access all data blocks in each data block classification cluster corresponding to the classification representative text vector.
[0063] By adopting the above technical solution, the security operation method based on data access relationship can compare the color description text vector of the role description information with the representative text vector of each category respectively, determine the degree of correlation between the role label information and the data label information, and then determine the default access rights of each access user under the role label information to each data block under the data label information, so that the data access rights are more in line with the actual needs of the role and the relevance of the data content, effectively reducing the risk of misoperation or unauthorized access, while improving the overall security and operation efficiency of the system.
[0064] Optionally, the data access relationship-based security operation method further includes a potential access risk identification strategy, including the following steps:
[0065] H1, if the role classification data association degree is not less than the preset role classification data association threshold, then the last user access environment information of each access account is obtained from the role historical access environment information;
[0066] H2, based on the last user access environment information, calculate the corresponding environmental feature comprehensive deviation value and define it as the last access environmental feature comprehensive deviation value;
[0067] H3, if the comprehensive deviation value of the last access environment feature is greater than the deviation threshold, the set access account does not have the corresponding preset access rights.
[0068] By adopting the above technical solution, the security operation method based on data access relationship can analyze the role historical access environment information collected when the access account last accessed the data block to determine whether the preset access rights can be obtained, so as to avoid unnecessary data risks after authorization.
[0069] In summary, the present application includes at least one of the following beneficial technical effects:
[0070] 1. By classifying access accounts and data blocks and setting corresponding role type labels and data type labels respectively, and setting corresponding data access permission mapping relationships according to the role type labels and data type labels, one-to-one permission setting for each access account and each data block can be avoided. On the one hand, the workload of authorization is reduced, and on the other hand, potential access risks can be discovered and data risk control can be performed based on the access habits of other access accounts corresponding to the role type labels.
[0071] 2. The corresponding feature deviation value can be determined by comparing the corresponding environmental sub-feature data in the user access environment information and the role's historical access environment information, and the corresponding environmental feature comprehensive deviation value can be determined based on the feature deviation value statistics of all environmental sub-features. Then, the access rights of the access account can be quantitatively modified to reduce potential data risks.
[0072] 3. You can record the type of user access data that generates the access account, analyze any anomalies based on the type of user access data, and then control the access rights of the access account to reduce data risks. BRIEF DESCRIPTION OF THE DRAWINGS
[0073] Figure 1 It is a flow chart of a security operation method based on data access relationship of the present invention. DETAILED DESCRIPTION
[0074] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0075] The embodiments of the present application are further described in detail below in conjunction with the drawings in the specification.
[0076] refer to Figure 1 , the present invention provides a security operation method based on data access relationship, which is used to manage the access rights of data access accounts to prevent sensitive data from being accessed and obtained by irrelevant personnel.
[0077] The security operation method based on data access relationship includes the following steps:
[0078] A1, generating corresponding data type labels according to the data summary information corresponding to each preset data block using a preset data classification method;
[0079] A data block is data content pre-stored in a database for access by each user. A data block can represent an accessible file or a collection of multiple files with related content. A data block can be uploaded by a user and accessed and read by other authorized users to achieve data sharing.
[0080] Data summary information is an introduction or summary of the content contained in the data block, which is used to quickly identify the main information content contained in the data block; data summary information can be generated by manual induction or by certain algorithms. For example, extractive summary algorithms include TextRank and LexRank, and generative summary algorithms include sequence-to-sequence (Seq2Seq) models based on deep learning. Common models include attention-based models, such as Transformer and BERT. Pre-trained models based on GPT (such as GPT-3), T5, and BART can also be widely used to generate summaries;
[0081] The data classification method is a pre-set method used to classify each data block according to the data summary information. The data classification method can be a manual classification method or an algorithm-based data classification method. The data can be classified by comparing the text similarity between the data summary information, and the corresponding classification information can be set after the classification is completed. The existing text similarity algorithms include cosine similarity algorithm, TF-IDF model, word frequency TF algorithm, inverse document frequency IDF algorithm, etc.
[0082] The data type label is a label set for each data block after it is classified. It is used to identify the content type of the data block. After the data block is classified, the corresponding type label can be summarized manually or by an algorithm.
[0083] A2, generating corresponding role type labels according to the role description information corresponding to each preset access account using a preset role classification method;
[0084] The access account is the account used by each user to access data. By setting different access permissions for different accounts, data permission management can be achieved;
[0085] The role description information is the description information content of the role name, which is used to roughly understand the background information of the corresponding role name to facilitate classification;
[0086] The role classification method is a pre-set classification method, which is used to classify each role name according to the role description information. The role classification method can be a manual classification method or an algorithm-based classification method. By identifying and comparing the role description information corresponding to each role name, the algorithm can find out the text similarity between them for classification, and finally manually summarize and set corresponding labels for each classification;
[0087] The role type label is a role label determined based on the classification of role description information. For example, software engineers, product managers, and quality assurance engineers can be classified as R&D role labels. Then, access rights to corresponding data blocks can be obtained based on the role label of the access account without the need to authorize each access account one by one.
[0088] A3, generating a corresponding data role permission mapping table according to each role type label and each data type label;
[0089] The data role permission mapping table is a relationship table of access permissions for data blocks corresponding to each data type tag, and the access permissions corresponding to each role type tag can be set manually or by a specific algorithm. There may be a large number of data blocks, but the number of data type tags generated after each data block is classified is controllable. There may also be a large number of access accounts, but the number of role type tags generated after each access account is classified is also controllable. Therefore, manually setting the access permissions between each role type tag and each data type tag is also a reasonable and feasible approach.
[0090] A4, assigning a data type label to each data block;
[0091] Assign data type labels to each classified data block to accurately identify its data type.
[0092] A5, assigning a corresponding role type label to each access account;
[0093] Assign role type labels to each access account after corresponding classification so as to accurately identify its role type.
[0094] A6, when the access account issues an access request to the data block, collects the user access environment information corresponding to the access account, and generates corresponding access matching information according to the role type label of the access account and the data type label of the data block;
[0095] User access environment information refers to the environment information when the access account issues an access request, such as the IP address and the physical address corresponding to the IP address, GPS location, the time of the device issuing the access request, the time zone of the device issuing the access request, the system language of the device issuing the access request, the software and browser used to issue the access request, and other related data;
[0096] The access matching information is a collection of the role type label of the access account and the data type label of the data block, which is used for subsequent verification of the access user's access rights to the data block.
[0097] A7, determining the corresponding access rights according to the permission matching information in the data role permission mapping table;
[0098] The access rights of the access account to the data block can be determined by substituting the access matching information into the data role permission mapping table.
[0099] A8, obtaining the corresponding role historical access environment information from the database according to the role type label of the access account;
[0100] The historical access environment information of a role is the historical data of the user access environment information of all access accounts corresponding to the role type label.
[0101] A9, modifying the access permission according to the user access environment information and the role historical access environment information to generate modified access permission;
[0102] Modified access rights are access rights that are modified based on a comparison between the user's access environment information and the role's historical access environment information. If the user's access environment information is abnormal compared to the role's historical access environment information, the access account's permissions can be reduced to a certain extent to avoid data risks. For example, if an access account accesses a data block on a new device at an abnormal time, its access rights can be temporarily revoked or forcibly verified to protect data security. In particular, when an access account is stolen, the user's access environment information will undergo significant changes. By modifying the access rights, data security can be effectively protected.
[0103] A10, grants the access account the modification access right to the data block.
[0104] Modify the access permissions of an access account by revising access permissions.
[0105] Through the above steps, the security operation method based on data access relationship can classify the access accounts and data blocks respectively and set corresponding role type labels and data type labels, and set corresponding data access permission mapping relationships according to the role type labels and data type labels, thereby avoiding one-to-one permission setting for each access account and each data block. On the one hand, it reduces the workload of authorization, and on the other hand, it can also discover potential access risks and perform data risk control based on the access habits of other access accounts corresponding to the role type labels.
[0106] Furthermore, the security operation method based on data access relationship also includes the following steps for generating modified access rights:
[0107] B1, obtaining sub-feature data of each environment respectively when the user accesses the environment information;
[0108] Environmental sub-feature data is data of a single feature in the user's access environment information, for example, one of the feature data in the user's IP address, IP location data, GPS location data, access time and other information.
[0109] B2, obtaining corresponding role historical environment sub-feature data from the role historical access environment information according to each environment sub-feature data and the role type label corresponding to the access account;
[0110] The character's historical environment sub-feature data is the feature data in the character's historical access environment information that is the same as the environment sub-feature data. For example, if a certain environment sub-feature data is IP location data, then the corresponding character's historical environment sub-feature data is the historical IP location data of all other access accounts in the character's historical access environment information.
[0111] B3, calculating the corresponding character historical sub-feature range according to the character historical environment sub-feature data corresponding to the environment sub-feature data;
[0112] The character's historical sub-feature range is the data range calculated based on the character's historical environmental sub-feature data, which is used to reflect the reasonable data access corresponding to the environmental sub-feature data. For example, the corresponding confidence interval can be calculated by a confidence interval algorithm, or the corresponding probability interval can be calculated by a normal distribution algorithm, etc., both of which can determine a reasonable numerical range, which has been used to determine whether a certain environmental sub-feature data of the accessing user is reasonable.
[0113] B4, if the environment sub-feature data is not within the corresponding character history sub-feature range, then calculating the corresponding feature deviation value according to the environment sub-feature data and the corresponding character history sub-feature range;
[0114] The feature deviation value is a numerical value calculated based on the environment sub-feature data and the corresponding character historical sub-feature range, which is used to quantitatively reflect the difference between the environment sub-feature data and the character historical sub-feature range. There are many ways to calculate the feature deviation value. For example, the absolute value of the difference between the environment sub-feature data and the upper and lower limits of the character historical sub-feature range can be calculated and the minimum value can be taken, that is, the minimum value of the distance from the environment sub-feature data to the upper and lower limits of the character historical sub-feature range is calculated, which can reflect the gap between the environment sub-feature data and the character historical sub-feature range; or the absolute value of the difference between the environment sub-feature data and the upper and lower limits of the character historical sub-feature range is calculated, that is, the distance from the environment sub-feature data to the median of the character historical sub-feature range is calculated, which can also reflect the gap between the environment sub-feature data and the character historical sub-feature range.
[0115] B5, if the environment sub-feature data is within the corresponding character history sub-feature range, assigning a preset deviation default value to the feature deviation value corresponding to the environment sub-feature data;
[0116] The deviation from the default value is a pre-set default value, which is used to assign a feature deviation value when the environmental sub-feature data is within the corresponding character historical sub-feature range. It is used to indicate that there is no difference or the difference is small between the environmental sub-feature data and the character historical sub-feature range. For example, the deviation from the default value can be 0.
[0117] B6, calculating the comprehensive deviation value of the environmental characteristics according to the characteristic deviation values corresponding to all environmental sub-characteristic data;
[0118] The comprehensive deviation value of environmental characteristics is a statistical value of the characteristic deviation value corresponding to each environmental sub-feature data, which can be calculated by a variety of statistical methods, for example, it can be a summation calculation, a mean calculation, a variance calculation, a standard deviation calculation, etc., to comprehensively reflect the characteristics of the characteristic deviation value corresponding to the environmental sub-feature data.
[0119] B7, if the comprehensive deviation value of the environmental characteristics is greater than the preset deviation threshold, the access rights are modified according to the comprehensive deviation value of the environmental characteristics and the preset permission modification comparison table to generate corresponding modified access rights;
[0120] The deviation threshold is a pre-set reference value used to determine whether the comprehensive deviation value of environmental characteristics is a reasonable value;
[0121] The permission modification comparison table is a pre-set comparison table used to determine the degree of permission modification based on the comparison of the comprehensive deviation value of environmental characteristics with the deviation threshold. For example, the degree to which the comprehensive deviation value of environmental characteristics is greater than the deviation threshold can be used to determine the degree of reduction in access rights. Different permission modifications can be made to different degrees, up to and including prohibiting access.
[0122] Through the above steps, the security operation method based on data access relationship can determine the corresponding feature deviation value by comparing the corresponding environmental sub-feature data in the user access environment information of the access account and the role's historical access environment information, and determine the corresponding environmental feature comprehensive deviation value based on the feature deviation value statistics of all environmental sub-features, and then quantitatively correct the access rights of the access account to reduce potential data risks.
[0123] Furthermore, the security operation method based on data access relationship also includes the following steps:
[0124] C1, if the comprehensive deviation value of the environmental characteristics is greater than the preset deviation threshold, the data summary information of the accessed data block accessed by the access account and the corresponding access time are continuously recorded within the preset monitoring period to generate a user access data type record;
[0125] The monitoring duration is a pre-set duration for determining the corresponding duration to collect the access records of the accessing users;
[0126] The user access data type record is the data summary information of the access data blocks accessed by all accessed accounts within the monitoring period and the data collection of the corresponding access time.
[0127] C2, determining the comprehensive irrelevance of the corresponding access content according to the user access data type record using a preset content relevance algorithm;
[0128] The content relevance algorithm is an algorithm for comparing the relevance of text content, and is used to compare the text relevance of data summary information of data blocks accessed by an access account in a user access data type record;
[0129] The comprehensive irrelevance of access content is a value calculated based on the user access data type record, and is used to reflect the comprehensive relevance between the data summary information of each data block in the user access data type record.
[0130] C3, calculating the user access frequency according to the access time in the user access data type record using a preset access frequency algorithm;
[0131] The access frequency algorithm is a pre-set algorithm used to calculate the frequency of access to data blocks by the access account within the monitoring period;
[0132] User access frequency refers to the frequency with which an access account accesses a data block within the monitoring period. It is used to reflect the speed at which an access account accesses a data block. Usually, real people access data files slowly and need a certain amount of time to read, while automated programs can capture data files very quickly. By calculating the corresponding access frequency, it can be used to determine whether the access account is controlled by an automated program, and then certain risk control measures can be taken.
[0133] C4, if the comprehensive irrelevance of the access content is greater than the preset relevance threshold, the preset user authentication process is executed for the access account;
[0134] The relevance threshold is a pre-set reference value used to determine whether the comprehensive irrelevance of the accessed content meets reasonable conditions;
[0135] The user authentication process is a pre-set process for authenticating the person who uses the access account to determine whether he or she is the real owner of the access account. For example, user authentication can be performed by methods such as face recognition;
[0136] Generally speaking, when a user retrieves useful data, he or she will usually access data with high content relevance. These data contents all have a certain continuity. If the data contents continuously accessed by the access account are not highly correlated, it can be considered that there is an abnormality, and the permissions can be restricted to reduce data risks.
[0137] C5, if the user access frequency is greater than the preset access frequency threshold, the modified access rights of the access account are set to the preset minimum access rights within the preset suspension period;
[0138] The access frequency threshold is a pre-set threshold used to determine whether the user's access frequency meets reasonable conditions;
[0139] The suspension duration is a pre-set length of time that determines the duration of the temporary modification of access rights to the account;
[0140] The minimum access permission is a pre-set permission. For example, the minimum access permission can be set to only read the data summary information of the data block. When an abnormal access account is found, its access permission can be reduced to the minimum access permission. While protecting the data, it also prevents real users from being unable to retrieve the data.
[0141] Through the above steps, the security operation method based on data access relationship can record the user access data type records that generate access accounts, and analyze the existing abnormal situations based on the user access data type records, and then control the access rights of the access accounts to reduce data risks.
[0142] Furthermore, the content relevance algorithm includes the following steps:
[0143] D1, sorting all access times in the user access data type record to generate an access time sequence list;
[0144] The access time sequence list is a sequential list generated by sorting all access times in the user access data type records.
[0145] D2, sequentially obtain two adjacent access times in the access time sequence table and define them as the first access time and the second access time respectively;
[0146] The first access time is the earlier access time of two adjacent access times;
[0147] The second access time is the later access time of two adjacent access times.
[0148] D3, obtaining corresponding data summary information from the user access data type record according to the first access time and defining it as first data summary information;
[0149] The first data summary information is data summary information corresponding to a data block accessed by the access account at a first access time.
[0150] D4, obtaining corresponding data summary information from the user access data type record according to the second access time and defining it as second data summary information;
[0151] The second data summary information is data summary information corresponding to the data block accessed by the access account at the second access time.
[0152] D5, calculating the corresponding text relevance according to the first data summary information and the second data summary information using a preset text relevance algorithm and defining it as access continuity;
[0153] The text relevance algorithm is a preset algorithm used to calculate the similarity between two or more different texts. Existing algorithms include cosine similarity algorithm, Jaccard similarity coefficient algorithm, Word2Vec, etc.
[0154] Text relevance is a quantity that reflects the correlation between different texts;
[0155] The access continuity, namely the text association between the first data summary information and the second data summary information, can reflect the continuity of the access account between two consecutive data accesses.
[0156] D6, calculate the comprehensive irrelevance of the access content by finding the standard deviation based on all access continuity;
[0157] The comprehensive irrelevance of visit content is the standard deviation of all visit continuity.
[0158] Through the above steps, the security operation method based on data access relationship can calculate the correlation between the data summary information of the data blocks accessed twice by the access account, and calculate the comprehensive irrelevance of the access account according to the correlation of all adjacent accesses, which is used to judge the abnormal situation of the access user. It not only increases the depth of security monitoring, but also enables more reasonable and accurate security response based on in-depth analysis of the actual data content, thereby improving the security of the overall system and the targeted response.
[0159] Furthermore, the data classification method comprises the following steps:
[0160] E1, classifying each data block according to the role type label of the data creator corresponding to each data block to determine the corresponding data creation role classification information;
[0161] The data creator is the creator of the data block. When the data block is created or uploaded, the corresponding access account can be recorded and defined as the data creator;
[0162] By using the role type label of the data creator, each data block can be pre-classified, because data creators with the same role type label have a greater probability of uploading data with a higher degree of relevance;
[0163] The data creation role classification information is a classification result of classifying data blocks according to the role type label of the data creator.
[0164] E2, obtaining data summary information corresponding to each data block of the same classification in the data creation role classification information and defining it as summary information of assumed similar data;
[0165] It is assumed that the same type of data summary information is the data summary information corresponding to each data block in the same category in the data creation role classification information.
[0166] E3, generating corresponding summary information translations according to each assumed similar data summary information using a preset translation method;
[0167] The translation method is a pre-set method or algorithm for translating hypothetical similar data summary information into other languages, such as translating Chinese into English, or English into Chinese, or other languages, which can be achieved through some existing translation software or corresponding translation API interfaces.
[0168] E4, generating summary information enhanced text according to the summary information of each hypothetical similar data and the corresponding summary information translation;
[0169] The abstract information enhanced text is a collection of hypothetical homogeneous data abstract information and corresponding translated abstract information. On the one hand, the translated text can enrich the content of the hypothetical homogeneous data abstract information. On the other hand, the generated translated text can also be read by access users with different language backgrounds for easy data retrieval.
[0170] E5. Generate corresponding abstract cleaning texts according to each abstract information enhanced text with a preset text cleaning method;
[0171] The text cleaning method is a preset algorithm used to remove irrelevant text content from the text, such as special characters, numbers, stop words (such as "of", "and", etc.);
[0172] The abstract cleaning text is the abstract information enhanced text after text cleaning.
[0173] E6. Generate corresponding abstract information tokenized texts according to each abstract cleaning text with a preset tokenization algorithm;
[0174] The tokenization algorithm is a preset algorithm used to split the text content into smaller units (usually words or phrases) for subsequent processing. Existing common tokenization algorithm tools include jieba, HanLP, and THULAC, etc.;
[0175] The abstract information tokenized text is the text content after the tokenization algorithm. Usually, sentences are split into multiple words or phrases. For example, the text "The weather is nice today. Let's go for a walk in the park." generates "The weather / is / nice / today / Let's / go / for / a / walk / in / the / park." after the tokenization algorithm. Through the tokenization algorithm, each word can be clearly split. Especially in Chinese content where there is no splitting symbol between words, the tokenization step is particularly important.
[0176] E7. Generate corresponding data abstract text vectors according to each abstract information tokenized text with a preset vectorization algorithm;
[0177] The vectorization algorithm is a preset algorithm used to generate corresponding vectors according to the text content. Existing text vectorization algorithms include term frequency (TF) vectorization, TF-IDF vectorization, word embeddings, and context word embeddings (such as BERT embeddings), etc., all of which can better achieve text vectorization;
[0178] The data abstract text vector is the vector corresponding to each abstract information tokenized text.
[0179] E8. Classify the corresponding data blocks according to each data abstract text vector corresponding to the hypothetical homogeneous data abstract information with a preset clustering algorithm to generate corresponding classification clusters of each data block;
[0180] The clustering algorithm is a pre-set algorithm used to classify each data summary text vector to generate corresponding classification clusters. Existing clustering algorithms include K-means clustering algorithm, hierarchical clustering and DBSCAN;
[0181] The data block classification clusters are clusters generated after the data summary text vectors corresponding to the data summary information of each assumed similar type are classified by the clustering algorithm.
[0182] E9, determining the corresponding cluster center vector according to each data block classification cluster, and determining the data summary text vector closest to the cluster center vector according to the cluster center vector and defining it as the classification representative text vector;
[0183] The cluster center vector is the vector corresponding to the center point of the data block classification cluster, which can be calculated based on the data vectors in the cluster;
[0184] The classification representative text vector is the data summary text vector closest to the cluster center vector, that is, the data summary text vector that best represents this classification cluster.
[0185] E10, determining a corresponding data type label according to the summary information of the assumed same type of data corresponding to the classification representative text vector corresponding to each data block classification cluster, and assigning the data type label to the data block corresponding to each data block classification cluster;
[0186] The data type label can be manually classified and determined by the summary information of the assumed same type of data corresponding to the classification representative text vector, or it can be classified and generated through a specific algorithm. Because the number of classification representative text vectors is usually small, manual classification is also a relatively efficient and feasible method.
[0187] Through the above steps, the security operation method based on data access relationship can classify each data block according to the role type label of the data creator, and further classify and generate corresponding classification clusters according to the data summary information in each classification through a clustering algorithm, and then find representative data summary information based on the classification cluster, so as to determine the data classification of the corresponding data block, and give each data block a clear and appropriate data type label.
[0188] Furthermore, the text relevance algorithm comprises the following steps:
[0189] F1, obtaining a corresponding data summary text vector according to the first data summary information and defining it as a first data summary text vector;
[0190] The first data summary text vector is a data summary text vector corresponding to the first data summary information, and the corresponding data summary text vector can be directly obtained after each data block is classified without further processing and generation.
[0191] F2, obtaining a corresponding data summary text vector according to the second data summary information and defining it as a second data summary text vector;
[0192] The second data summary text vector is a data summary text vector corresponding to the second data summary information. The corresponding data summary text vector can be directly obtained after each data block is classified without further processing and generation.
[0193] F3, calculating vector similarity based on the first data summary text vector and the second data summary text vector using a preset cosine similarity algorithm and defining it as text association;
[0194] The cosine similarity algorithm is a commonly used algorithm for comparing the similarity between texts. It calculates the similarity of two vectors in direction. The value range of cosine similarity is from -1 (completely opposite) to 1 (completely identical), where 0 indicates no similarity between the two. Of course, other algorithms can also be used to calculate vector similarity, such as Euclidean distance, Manhattan distance, etc., or statistical calculations can be used to determine the similarity between two texts.
[0195] The vector similarity is the degree of similarity between the first data summary text vector and the second data summary text vector;
[0196] The text relevance is the vector similarity between the first data summary text vector and the second data summary text vector.
[0197] Through the above steps, the security operation method based on data access relationship can accurately and intuitively calculate and evaluate the content relevance between different data blocks. This method can effectively identify and quantify the semantic connection between information, thereby achieving more refined access control and security analysis.
[0198] Furthermore, the security operation method based on data access relationship also includes the following steps:
[0199] G1, generates the corresponding role description text vector according to the role description information corresponding to the role type label;
[0200] The role description text vector is a text vector corresponding to the role description information, and can be generated through some steps in the above data classification method.
[0201] G2, calculates the corresponding text relevance based on the role description text vector and each category representative text vector using the text relevance algorithm and defines it as the role classification data relevance;
[0202] The role classification data correlation is the direct correlation degree between the role description text vector and the classification representative text vector, which quantitatively reflects the direct correlation degree between the role description information and the data summary information corresponding to the classification representative text vector, and further reflects the direct correlation degree between the role type label and the data type label.
[0203] G3, if the role classification data association degree is not less than the preset role classification data association threshold, grant the preset access rights corresponding to the role type label to access all data blocks in each data block classification cluster corresponding to the classification representative text vector;
[0204] The role classification data association threshold is a pre-set reference value used to determine whether the role classification data association degree meets the conditions for authorization;
[0205] The preset access rights are pre-set rights. For example, the preset access rights can be set to read data summary information, read the entire content of a data block, not write, etc., so that the corresponding access account with the relevant role type label can have the access right to access the relevant data blocks by default without the need for authorization one by one.
[0206] Through the above steps, the security operation method based on data access relationship can compare the color description text vector of the role description information with the representative text vector of each category respectively, determine the degree of correlation between the role label information and the data label information, and then determine the default access rights of each access user under the role label information to each data block under the data label information, so that the data access rights are more in line with the actual needs of the role and the relevance of the data content, effectively reducing the risk of misoperation or unauthorized access, while improving the overall security and operational efficiency of the system.
[0207] Furthermore, the security operation method based on data access relationship also includes a potential access risk identification strategy, including the following steps:
[0208] H1, if the role classification data association degree is not less than the preset role classification data association threshold, then the last user access environment information of each access account is obtained from the role historical access environment information;
[0209] The last user access environment information is the role historical access environment information collected when the access account last accessed the data block.
[0210] H2, based on the last user access environment information, calculate the corresponding environmental feature comprehensive deviation value and define it as the last access environmental feature comprehensive deviation value;
[0211] The last access environment feature comprehensive deviation value is the last user access environment feature comprehensive deviation value corresponding to the user's environment information.
[0212] H3, if the comprehensive deviation value of the last access environment feature is greater than the deviation threshold, the set access account does not have the corresponding preset access rights;
[0213] When there is an abnormality in the access environment information of the last user who accessed the account, the corresponding preset access rights will not be granted to avoid data risks.
[0214] Through the above steps, the security operation method based on data access relationship can analyze the role historical access environment information collected when the access account last accessed the data block to determine whether the preset access rights can be obtained, so as to avoid unnecessary data risks after authorization.
[0215] The above are all preferred embodiments of the present application, and are not intended to limit the protection scope of the present application. Any feature disclosed in this specification (including the abstract and drawings), unless otherwise stated, can be replaced by other equivalent or alternative features with similar purposes. That is, unless otherwise stated, each feature is only an example of a series of equivalent or similar features.
Claims
1. A security operation method based on data access relationship, It is characterized in that The following steps are involved: A1, generating corresponding data type labels according to the data summary information corresponding to each preset data block using a preset data classification method; A2, generating corresponding role type labels according to the role description information corresponding to each preset access account using a preset role classification method; A3, generating a corresponding data role permission mapping table according to each role type label and each data type label; A4, assigning a data type label to each data block; A5, assigning a role type label to each access account; A6, when the access account issues an access request to the data block, collects the user access environment information corresponding to the access account, and generates corresponding access matching information according to the role type label of the access account and the data type label of the data block; A7, determining the corresponding access rights according to the permission matching information in the data role permission mapping table; A8, obtaining the corresponding role historical access environment information from the database according to the role type label of the access account; A9, modifying the access permission according to the user access environment information and the role historical access environment information to generate modified access permission; A10, granting the access account the modification access right to the data block; The method further includes the following steps for generating the modified access rights: B1, obtaining sub-feature data of each environment respectively when the user accesses the environment information; B2, obtaining corresponding role historical environment sub-feature data from the role historical access environment information according to each environment sub-feature data and the role type label corresponding to the access account; B3, calculating the corresponding character historical sub-feature range according to the character historical environment sub-feature data corresponding to the environment sub-feature data; B4, if the environment sub-feature data is not within the corresponding character history sub-feature range, then calculating the corresponding feature deviation value according to the environment sub-feature data and the corresponding character history sub-feature range; B5, if the environment sub-feature data is within the corresponding character history sub-feature range, assigning a preset deviation default value to the feature deviation value corresponding to the environment sub-feature data; B6, calculating the comprehensive deviation value of the environmental characteristics according to the characteristic deviation values corresponding to all environmental sub-characteristic data; B7, if the comprehensive deviation value of the environmental characteristics is greater than the preset deviation threshold, the access rights are modified according to the comprehensive deviation value of the environmental characteristics and the preset permission modification comparison table to generate corresponding modified access rights; Among them, further comprising the following steps: C1, if the comprehensive deviation value of the environmental characteristics is greater than the preset deviation threshold, the data summary information of the accessed data block accessed by the access account and the corresponding access time are continuously recorded within the preset monitoring period to generate a user access data type record; C2, determining the comprehensive irrelevance of the corresponding access content according to the user access data type record using a preset content relevance algorithm; C3, calculating the user access frequency according to the access time in the user access data type record using a preset access frequency algorithm; C4, if the comprehensive irrelevance of the access content is greater than the preset relevance threshold, the preset user authentication process is executed for the access account; C5, if the user access frequency is greater than a preset access frequency threshold, the modified access rights of the access account are set to the preset minimum access rights within the preset suspension period.
2. The security operation method based on data access relationship according to claim 1, It is characterized in that The content relevance algorithm includes the following steps: D1, sorting all access times in the user access data type record to generate an access time sequence list; D2, sequentially obtain two adjacent access times in the access time sequence table and define them as the first access time and the second access time respectively; D3, obtaining corresponding data summary information from the user access data type record according to the first access time and defining it as first data summary information; D4, obtaining corresponding data summary information from the user access data type record according to the second access time and defining it as second data summary information; D5, calculating the corresponding text relevance according to the first data summary information and the second data summary information using a preset text relevance algorithm and defining it as access continuity; D6, calculate the comprehensive irrelevance of the access content by finding the standard deviation based on all access continuity.
3. The security operation method based on data access relationship according to claim 2, It is characterized in that The data classification method comprises the following steps: E1, classifying each data block according to the role type label of the data creator corresponding to each data block to determine the corresponding data creation role classification information; E2, obtaining data summary information corresponding to each data block of the same classification in the data creation role classification information and defining it as summary information of assumed similar data; E3, generating corresponding summary information translations according to each assumed similar data summary information using a preset translation method; E4, generating summary information enhanced text according to the summary information of each hypothetical similar data and the corresponding summary information translation; E5, generating corresponding summary cleaned texts according to each summary information enhanced text by using a preset text cleaning method; E6, generating corresponding summary information segmentation texts according to each summary cleaning text using a preset segmentation algorithm; E7, generating a corresponding data summary text vector according to each summary information segmentation text using a preset vectorization algorithm; E8, classifying the corresponding data blocks according to the data summary text vectors corresponding to the data summary information of each assumed similar type using a preset clustering algorithm to generate corresponding classification clusters of each data block; E9, determining the corresponding cluster center vector according to each data block classification cluster, and determining the data summary text vector closest to the cluster center vector according to the cluster center vector and defining it as the classification representative text vector; E10, determining the corresponding data type label according to the assumed similar data summary information corresponding to the classification representative text vector corresponding to each data block classification cluster, and assigning the data type label to the data block corresponding to each data block classification cluster.
4. The security operation method based on data access relationship according to claim 3, It is characterized in that The text relevance algorithm comprises the following steps: F1, obtaining a corresponding data summary text vector according to the first data summary information and defining it as a first data summary text vector; F2, obtaining a corresponding data summary text vector according to the second data summary information and defining it as a second data summary text vector; F3, calculating vector similarity based on the first data summary text vector and the second data summary text vector using a preset cosine similarity algorithm and defining it as text association.
5. The security operation method based on data access relationship according to claim 4, It is characterized in that Further comprising the steps of: G1, generates the corresponding role description text vector according to the role description information corresponding to the role type label; G2, calculates the corresponding text relevance based on the role description text vector and each category representative text vector using the text relevance algorithm and defines it as the role classification data relevance; G3, if the role classification data association degree is not less than the preset role classification data association threshold, then grant the preset access rights corresponding to the role type label to access all data blocks in each data block classification cluster corresponding to the classification representative text vector.
6. The security operation method based on data access relationship according to claim 5, It is characterized in that Further includes potential access risk identification strategies, The following steps are involved: H1, if the role classification data association degree is not less than the preset role classification data association threshold, then the last user access environment information of each access account is obtained from the role historical access environment information; H2, based on the last user access environment information, calculate the corresponding environmental feature comprehensive deviation value and define it as the last access environmental feature comprehensive deviation value; H3, if the comprehensive deviation value of the last access environment feature is greater than the deviation threshold, the set access account does not have the corresponding preset access rights.
