Data access control method and device, terminal equipment, storage medium and computer program product

By dynamically adjusting access permissions based on the user's historical access behavior, the problem of data access security risks in the existing technology is solved, and more efficient data access security control is achieved.

CN118643535APending Publication Date: 2024-09-13CHINA MOBILE INFORMATION TECHNOLOGY CO LTD +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410876539.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-01
Publication Date
2024-09-13

AI Technical Summary

Technical Problem

Among the existing data access control methods, the registration authorization method has data access security risks and cannot effectively dynamically adjust access permissions based on the user's historical access behavior, resulting in the existence of security risks.

Method used

By responding to the user's access instructions, the current actual access permissions are determined based on the user's historical access behavior, and the user's data access behavior is controlled based on the preset access permission threshold, and the user's access permissions are dynamically adjusted.

Benefits of technology

It reduces the security risk of data access, ensures that users' access rights to data are adjusted based on actual historical access behavior, and improves the security of data access.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118643535A
    Figure CN118643535A
Patent Text Reader

Abstract

The invention discloses a data access control method and device, terminal equipment, a storage medium and a computer program product, and relates to the field of data protection, and the method comprises the following steps: in response to an access instruction of a user, determining a current actual access permission of the user based on a historical access behavior of the user; and controlling the current data access behavior of the user according to the current actual access permission of the user and a preset access permission threshold value of to-be-accessed data. The risk of data access can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data protection, and in particular to a data access control method, apparatus, terminal equipment, storage medium and computer program product. Background Art

[0002] With the development and progress of society, the application of information technology has become an indispensable part of modern society. Whether it is government departments, commercial organizations or individual families, a large amount of data is stored on various digital platforms. These data cover a variety of information from personal preferences to business secrets. Their importance is self-evident. Furthermore, with the continuous development of technologies such as cloud computing, big data, and artificial intelligence, the scale and complexity of data are also increasing rapidly. In this case, how to effectively protect data security has become an important challenge.

[0003] However, currently, registration authorization is usually used to control data access security. For example, when a user registers, the system assigns data access rights to the user based on his or her position and other relevant information. When the data is stored, the system also configures the minimum access permission for the user based on the confidentiality of the data. When the user accesses the data, the system determines whether the user has access to the data by comparing whether the user's access permission is lower than the minimum access permission of the data. However, this data access control method still has certain data access security risks. Summary of the invention

[0004] The main purpose of this application is to provide a data access control method, apparatus, terminal device, storage medium and computer program product, aiming to reduce the security risks of data access.

[0005] To achieve the above object, the present application provides a data access control method, the data access control method comprising:

[0006] In response to the user's access instruction, determine the user's current actual access rights based on the user's historical access behavior;

[0007] The user's current data access behavior is controlled according to the user's current actual access rights and a preset access rights threshold for the data to be accessed.

[0008] In one embodiment, the step of determining the user's current actual access rights based on the user's historical access behavior includes:

[0009] Obtaining a permission adjustment value based on the user's historical access behavior;

[0010] The initial access authority of the user is adjusted according to the authority adjustment value to obtain the current actual access authority of the user.

[0011] In one embodiment, the step of obtaining the permission adjustment value based on the user's historical access behavior includes:

[0012] Obtain the total duration of the user's historical access behavior;

[0013] Determine the abnormal value of the user's historical access behavior according to the total duration of the user's historical access behavior;

[0014] The historical access behavior collection duration of the user is determined according to the historical access behavior abnormal value of the user, and the permission adjustment value is obtained according to the historical access behavior collection duration of the user.

[0015] In one embodiment, the step of determining the abnormal value of the user's historical access behavior according to the total duration of the user's historical access behavior includes:

[0016] Based on a preset collection cycle, respectively obtain the amount of historical user access data of each period of at least one period of the user and the maximum value of the access rights of historical user access data of each period of at least one period of the user;

[0017] Determining the period sensitivity value of each period respectively according to the maximum value of the user's historical access data access permission of each period;

[0018] The abnormal value of the historical access behavior of the user is obtained according to the amount of historical user access data of each period of the user, the maximum value of the access permission of the historical user access data of each period of the user, and the period sensitivity value of each period.

[0019] In one embodiment, the step of respectively acquiring the amount of historical user access data of each period of at least one period of the user and the maximum value of the access rights of historical user access data of each period of at least one period of the user based on the preset collection cycle includes:

[0020] Determine whether the total duration of the user's historical access behavior meets a preset duration condition;

[0021] If the total duration of the user's historical access behavior meets the preset duration condition, the amount of historical access data of the user in each period of at least one period and the maximum value of the access rights of the historical access data of the user in each period of at least one period are obtained based on the preset collection period.

[0022] In one embodiment, the step of determining the user's historical access behavior collection duration according to the user's historical access behavior abnormal value comprises:

[0023] Determine the duration of collecting the user's historical access behavior based on a preset abnormal value threshold and the abnormal value of the user's historical access behavior;

[0024] In one embodiment, the step of determining the user's historical access behavior collection duration according to the user's historical access behavior abnormal value comprises:

[0025] Based on the preset first relationship mapping table, obtaining the first user's historical access behavior collection duration according to the total duration of the user's historical access behavior;

[0026] Based on a preset second relationship mapping table, obtaining a second user's historical access behavior collection duration according to the user's historical access behavior abnormal value;

[0027] Determine the historical access behavior collection time of the user according to the historical access behavior collection time of the first user and the historical access behavior collection time of the second user;

[0028] The permission adjustment value is obtained according to the collection duration of the user's historical access behavior.

[0029] In one embodiment, before the step of adjusting the initial access rights of the user according to the permission adjustment value to obtain the current actual access rights of the user, the step includes:

[0030] In response to a registration instruction of the user, determining the initial access rights of the user based on a preset role access control model;

[0031] Based on the initial access rights of the user, a minimum access right for the data to be accessed is determined.

[0032] In one embodiment, the step of controlling the user's current data access behavior according to the user's current actual access rights and a preset access rights threshold for the data to be accessed includes:

[0033] Determine whether the current actual access rights of the user are higher than the minimum access rights of the data to be accessed;

[0034] If the current actual access permission of the user is higher than the minimum access permission of the data to be accessed, the user is allowed to access the data to be accessed;

[0035] If the current actual access permission of the user is not higher than the minimum access permission of the data to be accessed, the user is prohibited from accessing the data to be accessed.

[0036] In addition, to achieve the above purpose, the present application also proposes a data access control device, the data access control device comprising:

[0037] An access rights determination module, for responding to an access instruction of a user and determining the current actual access rights of a user based on the user's historical access behavior;

[0038] The data access behavior control module is used to control the user's current data access behavior according to the user's current actual access rights and a preset access rights threshold for the data to be accessed.

[0039] In addition, to achieve the above objectives, the present application also proposes a data access control device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the data access control method described above.

[0040] In addition, to achieve the above objectives, the present application also proposes a storage medium, which is a computer-readable storage medium, and stores a computer program on the storage medium. When the computer program is executed by a processor, the steps of the data access control method described above are implemented.

[0041] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the data access control method described above are implemented.

[0042] The data access control method, apparatus, terminal device, storage medium and computer program product proposed in the embodiments of the present application determine the user's current actual access rights based on the user's historical access behavior by responding to the user's access instruction; and control the user's current data access behavior according to the user's current actual access rights and the pre-set access rights threshold of the data to be accessed. The present application can determine the user's current actual access rights based on the user's historical access behavior, and then control the user's access behavior to data according to the user's current actual access rights, ensuring that the user's access rights to data are adjusted based on the user's actual data access behavior, thereby reducing the security risk of each data access. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0044] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0045] Figure 1 A flowchart of the first embodiment of the data access control method of this application is provided;

[0046] Figure 2 A flowchart of the second embodiment of the data access control method of this application is provided;

[0047] Figure 3 A flowchart of the third embodiment of the data access control method of this application is provided;

[0048] Figure 4 A flowchart of the fourth embodiment of the data access control method of the present application is provided;

[0049] Figure 5 A flowchart of the fifth embodiment of the data access control method of the present application is provided;

[0050] Figure 6 A flowchart of the sixth embodiment of the data access control method of this application is provided;

[0051] Figure 7 A flowchart of the seventh embodiment of the data access control method of the present application is provided;

[0052] Figure 8 A flowchart of the eighth embodiment of the data access control method of the present application is provided;

[0053] Fig. 9 A flowchart of the ninth embodiment of the data access control method of the present application is provided;

[0054] Fig.10 This is a schematic diagram of the module structure of the data access control device according to an embodiment of the present application;

[0055] Fig.11 Schematic diagram of the device structure of the hardware operating environment involved in the data access control method in the embodiment of the present application.

[0056] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0057] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0058] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0059] The main solution of this application is: by responding to the user's access instructions, based on the user's historical access behavior, determine the user's current actual access rights; according to the user's current actual access rights and the pre-set access rights threshold of the data to be accessed, control the user's current data access behavior. This application determines the user's current actual access rights based on the user's historical access behavior, and then controls the user's access behavior to data based on the user's current actual access rights. This method ensures that the user's access rights to data are adjusted based on the user's actual data access behavior, reducing the security risk of each data access.

[0060] This embodiment takes into account that with the development and progress of society, the application of information technology has become an indispensable part of modern society, and a large amount of data is stored on various digital platforms. However, at present, registration and authorization are usually used to control data access security. For example, when a user registers, the system assigns data access rights to the user based on his or her position and other relevant information. When the data is stored, the system also configures the minimum access permission for the user based on the confidentiality of the data. When the user accesses the data, the system determines whether the user has access rights to the data by comparing whether the user's access rights are lower than the minimum access permission of the data. However, this data access control method still has certain data access security risks.

[0061] Based on this, an embodiment of the present application proposes a solution. When a user needs to access data, the user's current actual access rights are determined based on the user's historical access behavior, and then the user's access behavior is controlled by judging whether the user's current actual access rights meet the pre-set access rights threshold of the data to be accessed, thereby ensuring that the user's access rights to the data are adjusted based on the user's historical access behavior, thereby reducing the security risk of each data access.

[0062] Based on this, this application proposes a data access control method of the first embodiment, please refer to Figure 1 , the data access control method comprises steps S10 to S20:

[0063] Step S10, in response to the user's access instruction, determining the user's current actual access rights based on the user's historical access behavior;

[0064] When a user accesses data, the system responds to the user's access instruction and obtains the user's historical access behavior, wherein the user's historical access behavior refers to the user's behavior of accessing data with different permission value requirements within a certain time range in the past. Specifically, the data access permission value requirements of the data accessed by the user can be obtained through the user's access log of the accessed data to determine whether the user has abnormal data access behavior within a certain period of time, wherein the abnormal data access behavior may be that the user frequently accesses data with a high permission threshold in a short period of time and the user has no access record to the high permission threshold data within a certain period of time in the past. If the user's historical access behavior meets the above abnormal data access behavior, the user can be defined as a user with abnormal data access behavior. At this time, the determined user's current actual access permission is low. If the access permission threshold of the data to be accessed by the user is higher than the user's current actual access permission, the user's data access behavior will be prohibited.

[0065] The current actual access rights of the user refer to the actual access rights of the user when the user performs data access behavior. Specifically, the current actual access rights of the user are represented by specific values.

[0066] As an implementation method, user historical data within a certain time range can be input into a preset anomaly recognition model, and the anomaly recognition model is used to calculate the anomaly value of the user's data access behavior within the time range, and the user's current actual access rights are further determined by the anomaly value.

[0067] Step S20, controlling the user's current data access behavior according to the user's current actual access rights and a preset access rights threshold for the data to be accessed;

[0068] Among them, the access permission threshold of the data to be accessed corresponds to the meaning of the access permission threshold of the data to be accessed. Specifically, the corresponding access permission can be set in advance for each user based on the role-based access control model. The access permission is the minimum access permission value of the data. Based on the setting of the minimum access permission value, when the data is stored, all roles that can access the data will be determined, and the lowest permission value among all access permissions corresponding to all roles will be determined as the minimum access permission threshold of the data.

[0069] Among them, the role-based access control model is a permission management model. Different roles are defined in the system in advance. Different roles have different permissions. A role is actually a collection of permissions. All users of the system will be assigned to different roles. A user may have multiple roles. By using a role-based access control model, the management of permissions can be greatly simplified.

[0070] When a user accesses data, the system obtains the minimum access permission threshold of the data that the user is about to access, that is, the system obtains the minimum access permission threshold of the data to be accessed by the user, and after obtaining the minimum access permission threshold of the data to be accessed, the system compares the user's current actual access permission previously determined with it. If the minimum access permission value of the data to be accessed is higher than the user's current actual access permission, the user's access to the data this time is prohibited. On the contrary, if the minimum access permission value of the data to be accessed is not higher than the user's current actual access permission, the user's access to the data this time is allowed.

[0071] It should be noted that when a user accesses data, the system determines whether the user has access to the data based on the user's current actual access rights. It can be understood that the access right value that ultimately determines whether the user can successfully access the data is based on the user's current actual access rights. This method ensures that each time a user accesses data, the system authenticates the user's current actual access rights based on the user's historical access behavior and is updated in real time.

[0072] The data access control method proposed in the embodiment of the present application determines the user's current actual access rights based on the user's historical access behavior by responding to the user's access instructions; controls the user's current data access behavior according to the user's current actual access rights and a pre-set access rights threshold for the data to be accessed. The user's current actual access rights can be determined based on the user's historical access behavior, and then the user's access behavior to data can be controlled according to the user's current actual access rights. This method ensures that the user's access rights to data are adjusted based on the user's actual data access behavior, thereby reducing the security risk of each data access.

[0073] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 2 , in step S10 of the data access control method, in response to the user's access instruction, based on the user's historical access behavior, determining the user's current actual access rights is refined, wherein the refining steps include S11 and S13:

[0074] Step S11, obtaining a permission adjustment value based on the user's historical access behavior;

[0075] Step S13, adjusting the initial access rights of the user according to the permission adjustment value to obtain the current actual access rights of the user;

[0076] Initial access rights refer to the initial data access rights assigned to a user by the system. The user's initial access rights can be determined based on the user's identity, position, department or other information. Specifically, the user's initial access rights are represented by specific numerical values, and the permission adjustment value refers to the parameter for adjusting the user's initial access rights, which is used to adjust the user's initial access rights to determine the user's current actual access rights. The user's initial access rights can be higher, lower or equal to the user's current actual access rights.

[0077] Before determining the user's current actual access rights, it is necessary to obtain the user's initial access rights. Specifically, the system can divide different data access rights according to the user's role and responsibilities to control the user's access to and operation of the data. For example, when a user registers in the system, the system assigns the user initial data access rights according to the user's position or responsibilities, where the access rights are expressed in numerical form. The higher the data access right value, the higher the data access right the user has, that is, users with higher data access right values ​​can access more sensitive and important data. Therefore, the system can set and manage data access right values ​​to ensure that users can only access data within their permission values, thereby protecting sensitive information in the system from access by users with insufficient permission values.

[0078] As another implementation, if the initial access rights actually set by the system for the user when registering are expressed in the form of permission levels, such as low, medium, and high, the user's initial access rights value can be determined through a preset mapping relationship table, wherein the mapping relationship table pre-records the relationship between the permission level and the access right value, and different permission levels correspond to different access right values, for example, low is 1, medium is 5, and high is 10. The permission level and its corresponding access right value can be set according to actual conditions and are not specifically limited here.

[0079] In a feasible implementation, step S13 may include steps S131 to S133;

[0080] Step S131, determining whether the permission adjustment value is higher than a preset adjustment threshold;

[0081] Step S132, if the permission adjustment value is higher than a preset adjustment threshold, adjusting the initial access rights of the user according to the permission adjustment value to obtain the current actual access rights of the user;

[0082] Step S133, if the permission adjustment value is not higher than the preset adjustment threshold, obtaining the user's current actual access permission according to the user's initial access permission;

[0083] If the permission adjustment value is less than or equal to the preset adjustment threshold, it means that the permission adjustment value is small. At this time, there is no need to adjust the user's initial access permission value according to the permission adjustment value, that is, the user's initial access permission is the user's current actual access permission.

[0084] If the permission adjustment value is higher than the preset adjustment threshold, it means that the user's recent data access behavior is abnormal, and the user's initial access rights need to be adjusted according to the permission adjustment value. Specifically, the user's initial access rights can be adjusted according to the following formula:

[0085] v1=v0*(1-Δv)

[0086] Among them, v1 refers to the user's current actual access permission, v0 refers to the user's initial access permission, and Δv refers to the permission adjustment value.

[0087] According to the above formula, if the permission adjustment value is larger, it means that the user's recent data access behavior is more abnormal, then the user's current actual access rights will be reduced more than the user's initial access rights, thereby reducing the sensitivity of the data that the user can access. In other words, the larger the permission adjustment value, the less likely the user is to access sensitive data. This method can achieve dynamic adjustment of user access rights.

[0088] In addition, the adjustment threshold is an empirical value and can be set according to the actual data security sensitivity. The smaller the adjustment threshold, the more sensitive the adjustment is, and the larger the adjustment threshold, the less sensitive the adjustment is.

[0089] In this implementation, by comparing the adjustment threshold with the permission adjustment value, a more accurate data access permission value that conforms to the actual situation and can be used for subsequent authentication can be obtained, thereby reducing the security risk of data access.

[0090] The above is only a feasible implementation of step S13 provided in this embodiment, and this embodiment does not specifically limit the specific implementation of step S13.

[0091] The data access control method proposed in the embodiment of the present application obtains a permission adjustment value based on the historical access behavior of the user; adjusts the initial access permission of the user according to the permission adjustment value to obtain the user's current actual access permission. The method can obtain the permission adjustment value according to the historical access behavior, and then adjust the user's initial access permission according to the permission adjustment value, thereby ensuring that the user's access permission to data is adjusted based on the user's data access behavior, thereby reducing the security risk of each data access.

[0092] Based on the second embodiment of the present application, in the third embodiment of the present application, the same or similar contents as those in the above-mentioned second embodiment can refer to the above introduction, and will not be repeated in the following. Figure 3 , the step S11 in the data access control method is refined based on the historical access behavior of the user to obtain the permission adjustment value, wherein the refined steps include S111 to S113:

[0093] Step S111, obtaining the total duration of the user's historical access behavior;

[0094] The total duration of a user's historical access behavior refers to the total duration of the user's data access behavior in the past period of time, that is, the total duration from the time node when the user has accessed the data to the time node when the current user accesses the data, where the unit of the total duration of the user's historical access behavior can be days or weeks. For example, taking days as an example, the user registered and accessed the data at the time node of January 1, 2023 (that is, the user had data access behavior), but between the time nodes of January 2, 2023 and April 1, 2023, although the user logged in, the user did not access the data (that is, the user did not have data access behavior), but the user logged in again on the time node of April 2, 2023 and accessed the data, then the total duration of the user's data access behavior is 2 days.

[0095] Specifically, it is possible to determine whether a user has data access behavior based on the data access log so as to obtain the total duration of historical access behaviors of different users.

[0096] Specifically, the step of obtaining the total duration of the user's historical access behavior may include:

[0097] 1. Parse data access logs: Import data access log files into corresponding analysis tools (such as Splunk) for subsequent processing and analysis.

[0098] 2. User identification: Determine the user ID (User Identification) of the user who accessed the data this time, identify the user ID recorded in the log and compare it with the user ID of the user who accessed the data this time.

[0099] 3. Calculate the user's data access duration: For the user who is accessing data this time, calculate the time of his / her past data access. The time can be expressed in hours, days, or weeks. Specifically, if the unit is hours, the user's access duration can be calculated by analyzing the timestamp in the log.

[0100] 4. Summarize the data access duration of users: Summarize the data access duration of users to obtain the total historical access duration of the users who performed the data access behavior this time.

[0101] Step S112, determining the abnormal value of the user's historical access behavior according to the total duration of the user's historical access behavior;

[0102] After obtaining the total duration of the user's historical access behavior, the abnormal value of the user's historical access behavior can be determined based on the total duration of the user's historical access behavior. Specifically, based on the duration of a preset collection cycle (a certain period, such as one day or one week), the amount of historical access data of the user and the maximum value of the minimum access permission of the data for each access can be obtained.

[0103] Furthermore, after obtaining the maximum value of the minimum access permission threshold of the user's historical access data of each period, the period sensitivity value of each period is confirmed respectively according to the maximum value of the minimum access permission threshold of the user's historical access data of each period obtained, wherein the period sensitivity value refers to the difference between the most sensitive data accessed in the two previous and next periods. If the value is a negative number, it means that the sensitivity of accessing the most sensitive data in the next period is lower than that in the previous period. If the value is a positive number, it means that the sensitivity of accessing the most sensitive data in the next period is higher than that in the previous period. If it is 0, it means that the sensitivity of accessing the most sensitive data in the next period is equal to that in the previous period.

[0104] Specifically, as an implementation method, for each cycle, the difference between the maximum value of the minimum access permission value of user access data in the adjacent next cycle and the maximum value of the minimum access permission value of user access data in this cycle is calculated. If it is the last cycle, the difference is set to 0.

[0105] Furthermore, after obtaining the amount of historical user access data of each period of at least one period of the user, the maximum value of the access permission value of the historical user access data of each period of at least one period of the user, and the cycle sensitivity value of each period, the abnormal value of the historical access behavior of the user can be obtained according to the amount of historical user access data in each period, the maximum value of the access permission value of the historical user access data in each period, and the cycle sensitivity value of each period.

[0106] Step S113, determining the historical access behavior collection time of the user according to the historical access behavior abnormal value of the user, and obtaining the permission adjustment value according to the historical access behavior collection time of the user;

[0107] After obtaining the abnormal value of the user's historical access behavior, the user's historical access behavior collection time can be determined according to the preset abnormal value threshold and the abnormal value of the user's historical access behavior. Specifically, the user's historical access behavior collection time T sel It can be calculated according to the following formula:

[0108]

[0109] Among them, AC0 is the abnormal value threshold, which is a threshold obtained by analyzing the access data of normal users through big data. If it is higher than this threshold, it means that the access behavior is abnormal, and if it is not higher than this threshold, it means that the access behavior is normal. is a ceiling function, T0 is the duration of the preset collection period, wherein the ceiling function refers to: a mathematical operation of rounding integers, which is characterized by the rule of rounding, that is, if there is a decimal after the number, the preceding integer is increased by 1, for example, for the number 4.9 or 4.1, the result obtained by using the ceiling operation is 5.

[0110] In order to better meet the characteristics of different environments, the outlier threshold can be dynamically adjusted according to different application environments. In addition, the outlier threshold can also be dynamically adjusted according to the access control strength. When the control strength is strong, the outlier threshold is low, and the historical access behavior collection time is long. When the control strength is weak, the outlier threshold is high, and the historical access behavior collection time is short. It should be noted that the unit of the historical access behavior collection time is the same as the unit of the total historical access behavior time, such as day, week, etc.

[0111] Furthermore, after determining the duration of the user's historical access behavior collection, the user's historical data of the historical access behavior collection duration is obtained based on the time point of the user's current access data, and the collected user historical data is input into a preset anomaly recognition model to obtain a permission adjustment value, wherein the user historical data refers to various parameters corresponding to the user's access to various data, such as the minimum permission value of the accessed data, the time point of the user's access to the data, and the duration of the user's access to the data, etc., which are not listed one by one here, and the specific parameters can be set according to actual conditions.

[0112] The data access control method proposed in the embodiment of the present application obtains the total duration of the user's historical access behavior; determines the abnormal value of the user's historical access behavior according to the total duration of the user's historical access behavior; determines the historical access behavior collection duration of the user according to the abnormal value of the user's historical access behavior, and obtains the permission adjustment value according to the historical access behavior collection duration of the user. The historical access behavior collection duration of the user can be determined according to the abnormal value of the user's historical access behavior, thereby ensuring that the historical access behavior collection duration of the user is determined based on the user's historical access behavior, improving the historical access behavior collection duration of users with higher historical access behavior abnormal values, and reducing the possibility of misjudgment.

[0113] Based on the third embodiment of the present application, in the fourth embodiment of the present application, the same or similar contents as those in the third embodiment can be referred to the above introduction, and will not be described in detail later. Figure 4, for step S112 in the data access control method, the abnormal value of the historical access behavior of the user is determined to be refined according to the total duration of the historical access behavior of the user, wherein the refinement steps include S1121 to S1123:

[0114] Step S1121, based on a preset collection cycle, respectively obtaining the amount of historical user access data of each period of at least one period of the user and the maximum value of the access rights of historical user access data of each period of at least one period of the user;

[0115] After obtaining the total duration of the user's historical access behavior, the user's historical access behavior abnormal value can be determined based on the total duration of the user's historical access behavior. Specifically, the user's historical access data volume and the maximum value of the minimum access permission of each accessed data can be obtained based on the duration of a preset collection cycle (a certain period, such as one day or one week). For example, if the total duration of the user's historical access behavior is 10 days, and the preset collection cycle is 2 days, the user's historical access data volume and the user's historical access data minimum access permission threshold for 5 cycles are obtained respectively. At this time, the maximum value of the user's historical access data minimum access permission threshold for each cycle in the 5 cycles is determined respectively. Among them, the user's historical access data can be understood as the accessed data, that is, the data that the user is about to access. Specifically, the maximum value of the user's historical access data access permission can be understood as the most sensitive data accessed by the user in the cycle, and the user's historical access data volume in each cycle refers to the number of data accessed by the user in each cycle.

[0116] Step S1122, determining the period sensitivity value of each period respectively according to the maximum value of the user's historical access data access rights of each period;

[0117] Furthermore, after obtaining the maximum value of the minimum access permission threshold of the user's historical access data of each period, the period sensitivity value of each period is confirmed respectively according to the obtained maximum value of the minimum access permission threshold of the user's historical access data of each period, wherein the period sensitivity value refers to the difference between the most sensitive data accessed in the two previous and next periods. If the value is a negative number, it means that the sensitivity of accessing the most sensitive data in the next period is lower than that in the previous period. If the value is a positive number, it means that the sensitivity of accessing the most sensitive data in the next period is higher than that in the previous period. If it is 0, it means that the sensitivity of accessing the most sensitive data in the next period is equal to that in the previous period.

[0118] Specifically, as an implementation method, for each cycle, the difference between the maximum value of the minimum access permission for users to access data objects in the adjacent cycle and the maximum value of the minimum access permission for users to access data objects in this cycle is calculated. If it is the last cycle, the difference is set to 0.

[0119] In a feasible implementation, step S1122 may include steps S11221 to S11222;

[0120] Step S11221, obtaining the arrangement order of several cycles;

[0121] Step S11222, calculating the period sensitivity values ​​of the several periods respectively according to the arrangement order and the maximum values ​​of the access rights of the user's historical access to the data object of the several periods, wherein the period sensitivity value is the difference between the maximum values ​​of the access rights of the user's historical access to the data object of two adjacent periods;

[0122] Based on the preset collection cycle, confirm the arrangement order of each cycle, where each cycle can be sorted in natural day order. For example, if the total duration of the user's historical access behavior is 4 days, where each day corresponds to a specific time point, for example, the first day is January 1, 2023, the second day is January 5, 2023, the third day is January 10, 2023, and the fourth day is January 15, 2023. Further, if the preset collection cycle is 2 days, two cycles can be obtained, namely the first day to the second day and the third day to the fourth day. At this time, the cycle from the first day to the second day is the first cycle, and the cycle from the third day to the fourth day is the second cycle because the natural day sequence is earlier than the natural day sequence of the third day and the fourth day. Through this method, the obtained cycles can be sorted so that the corresponding cycle sensitivity values ​​can be calculated according to the sorting of each cycle later.

[0123] Furthermore, after all cycles are sorted, the cycle sensitivity value of each cycle is calculated according to the maximum value of the minimum access permission value of the user access data of each cycle and the arrangement order of the cycles. Specifically, the difference between the maximum value of the minimum access permission value of the user access data of the adjacent subsequent cycle and the maximum value of the minimum access permission value of the user historical access data of the cycle is calculated. Continuing with the above example, the maximum value of the minimum access permission value of the user historical access data of the second cycle is 10, and the maximum value of the minimum access permission value of the user access data of the first cycle is 4. Then the cycle sensitivity value of the first cycle is 6. Since there is no third cycle, the cycle sensitivity value of the second cycle is 0.

[0124] In this implementation, the cycle sensitivity value of each cycle can be calculated according to the arrangement order of the cycles, providing a data basis for the subsequent calculation of the abnormal value of the user's historical access behavior.

[0125] The above is only a feasible implementation of step S1122 provided in this embodiment, and this embodiment does not specifically limit the specific implementation of step S1122.

[0126] Step S1123, obtaining the abnormal value of the historical access behavior of the user according to the amount of historical access data of the user in each period, the maximum value of the access right of the historical access data of the user in each period, and the period sensitivity value of each period;

[0127] Specifically, after respectively obtaining the amount of historical access data of the user in each period, the maximum value of the historical access data access permission value, and the period sensitivity value of each period, the abnormal value AC of the user's historical access behavior can be obtained according to the following formula:

[0128]

[0129] Where N is the number of cycles, ac n is the historical access data volume of the user in the nth period, is the average of the historical access data volume of all cycles of the user. max is the maximum number of consecutive positive differences, N Δ is the total number of differences.

[0130] The larger the abnormal value AC of the user's historical access behavior, the greater the fluctuation of the user's historical access behavior and the more abnormal the behavior. The maximum difference number with consecutive positive difference refers to the maximum number contained in a series of difference values, such as: 1, 4, -1, 3, -2, which is a consecutive positive number substring (such as 1, 4 substring and 3 substring), that is, 4 corresponding to 1 and 4, etc.

[0131] Furthermore, in order to meet the anomaly identification requirements in different environments, the anomaly value of the user's historical access behavior can also be calculated according to the following formula:

[0132]

[0133] Among them, Δ′ max is the maximum difference length when the difference is continuously positive, Δ′ is the sum of the absolute values ​​of the differences, where the maximum difference length when the difference is continuously positive refers to a series of differences, such as: 1, 2, -1, 3, -2, among which there are consecutive positive digital substrings (such as 1, 2 substrings and 3 substrings), the maximum number of numbers contained in the substrings, that is, the number of substrings corresponding to 1 and 2 is 2.

[0134] The data access control method proposed in the embodiment of the present application obtains the amount of historical user access data of each period of at least one period of the user and the maximum value of the access rights of the historical user access data of each period of at least one period of the user through a preset collection period; determines the period sensitivity value of each period according to the maximum value of the access rights of the historical user access data of each period of the user; obtains the abnormal value of the historical access behavior of the user according to the amount of historical user access data of each period of the user, the maximum value of the access rights of the historical user access data of each period of the user, and the period sensitivity value of each period, and can determine the collection time of the historical access behavior of the user according to the abnormal value of the historical access behavior of the user, thereby ensuring that the collection time of the historical access behavior of the user is determined based on the historical access behavior of the user, improving the collection time of the historical access behavior of users with higher abnormal values ​​of historical access behavior, and reducing the possibility of misjudgment.

[0135] Based on the fourth embodiment of the present application, in the fifth embodiment of the present application, the same or similar contents as those in the fourth embodiment can be referred to the above introduction, and will not be repeated in the following. Figure 5 , for step S1121 in the data access control method, based on a preset collection period, respectively obtaining the amount of historical user access data of each period of at least one period of the user and the maximum value of the access rights of historical user access data of each period of at least one period of the user are refined, wherein the refining steps include S11211 to S11212:

[0136] Step S11211, determining whether the total duration of the user's historical access behavior meets a preset duration condition;

[0137] Step S11212: If the total duration of the historical access behavior of the user meets the preset duration condition, then based on the preset collection period, the amount of historical access data of the user in each period of at least one period of the user and the maximum value of the access rights of the historical access data of the user in each period of at least one period of the user are respectively obtained;

[0138] After obtaining the total duration of the user's historical access behavior, the obtained total duration of the historical access behavior can be judged. Specifically, it can be judged whether the total duration of the user's historical access behavior meets the preset duration condition, wherein the preset duration condition is used to determine whether the user is a new user (i.e., the total duration of the historical access behavior is short). If the total duration of the user's historical access behavior meets the preset duration condition, it means that the total duration of the user's historical access behavior is long, and it is necessary to recalculate to obtain the user's historical access behavior collection duration to avoid obtaining excessive data and resulting in low calculation efficiency.

[0139] It should be noted that the duration of collecting the user's historical access behavior refers to the actual duration of collecting historical data, while the total duration of the user's historical access behavior is the basis for determining the duration of collecting the historical access behavior.

[0140] Specifically, if the total duration of the user's historical access behavior meets the preset duration condition, the user's historical access data volume and the minimum access permission for each access data are obtained based on the preset collection period duration (a certain period, such as one day or one week).

[0141] In a feasible implementation manner, after step S11211, step S11213 may also be included;

[0142] Step S11213, if the total duration of the user's historical access behavior does not meet the preset duration condition, determining the user's historical access behavior collection duration according to the total duration of the user's historical access behavior;

[0143] Specifically, if the total duration of the user's historical access behavior does not meet the preset duration condition, it means that the total duration of the user's historical access behavior is relatively short. In this case, the total duration of the user's historical access behavior is directly used as the collection duration of the user's historical access behavior, that is, the user's historical data is obtained based on the total duration of the user's historical access behavior.

[0144] In this implementation, the total duration of the user's historical access behavior is judged by a preset duration condition, thereby improving the efficiency of obtaining the collection duration of the historical access behavior of users who do not meet the duration condition.

[0145] The above is only a feasible implementation method after step S11211 provided in this embodiment, and the specific implementation method after step S11211 in this embodiment is not specifically limited.

[0146] The data access control method proposed in the embodiment of the present application determines whether the total duration of the user's historical access behavior meets the preset duration condition; if the total duration of the user's historical access behavior meets the preset duration condition, then based on the preset collection period, the amount of user historical access data of each period of at least one period of the user and the maximum value of the user historical access data access rights of each period of at least one period of the user are obtained respectively, thereby avoiding obtaining and calculating excessive data and resulting in low computing efficiency.

[0147] Based on the fifth embodiment of the present application, in the sixth embodiment of the present application, the same or similar contents as those in the fifth embodiment can be referred to the above description, and will not be described in detail later. Figure 6, for step S113 in the data access control method, the historical access behavior collection time of the user is determined to be refined according to the abnormal value of the historical access behavior of the user, wherein the refinement steps include S1131 to S1132:

[0148] Step S1131, determining the historical access behavior collection duration of the user based on a preset abnormal value threshold and the historical access behavior abnormal value of the user;

[0149] After obtaining the abnormal value of the user's historical access behavior, the user's historical access behavior collection time can be determined according to the preset abnormal value threshold and the abnormal value of the user's historical access behavior. Specifically, the user's historical access behavior collection time T sel It can be calculated according to the following formula:

[0150]

[0151] Among them, AC0 is the abnormal value threshold, which is a threshold obtained by analyzing the access data of normal users through big data. If it is higher than this threshold, it means that the access behavior is abnormal, and if it is not higher than this threshold, it means that the access behavior is normal. is a ceiling function, T0 is the duration of the preset collection period, wherein the ceiling function refers to: a mathematical operation of rounding integers, which is characterized by the rule of rounding, that is, if there is a decimal after the number, the preceding integer is increased by 1, for example, for the number 4.9 or 4.1, the result obtained by using the ceiling operation is 5.

[0152] In order to more accurately meet the characteristics of different environments, the outlier threshold can be dynamically adjusted according to different application environments. In addition, the outlier threshold can also be dynamically adjusted according to the access control strength. When the control strength is strong, the outlier threshold is low and the historical access behavior collection time is long. When the control strength is weak, the outlier threshold will be high and the historical access behavior collection time will be short. It should be noted that the unit of the historical access behavior collection time is the same as the unit of the total historical access behavior time, such as day, week, etc.

[0153] Step S1132, obtaining a permission adjustment value according to the historical access behavior collection duration of the user;

[0154] Furthermore, after determining the duration of the user's historical access behavior collection, the user's historical data of the historical access behavior collection duration is obtained based on the time point of the user's current access data, and the collected user historical data is input into a preset anomaly recognition model to obtain the permission adjustment value.

[0155] It should be noted that obtaining the user's historical data for the period of historical access behavior collection must be meaningful (i.e., there is actual access data behavior). For example, if the user's historical access behavior collection period is 2 days, and the user's current access data point is January 10, 2023, then obtain the user's data access logs on January 8, 2023 and January 9, 2023 to check whether the user has data access behavior on that day. If the user has no data access behavior on January 8, 2023, then continue to collect the user's data access log on January 7, 2023, and judge Determine whether the user has accessed data on January 7, 2023. If so, terminate the collection of the user's data access log, and finally obtain the user's historical data at two time points, January 7, 2023 and January 9, 2023. If the user has no data access on January 7, 2023, continue to collect the data access log on January 6, 2023, and so on, until the user's historical data for 2 days is collected. Or, it can be understood that the object of the collection time of the user's historical access behavior is a component of the total time of the user's historical access behavior.

[0156] In a feasible implementation, step S1132 may include steps S11321 to S11323;

[0157] Step S11321, obtaining the access time node of the data to be accessed;

[0158] The access time node of the data to be accessed refers to the time point at which the user accesses the current data. For example, when the user logs in to the account and tries to access certain data, the time at this moment is the access time node of the data to be accessed.

[0159] Step S11322, acquiring user historical data according to the historical access behavior collection duration of the user and the access time node of the data to be accessed;

[0160] Step S11323, based on a preset abnormality recognition model, obtaining a permission adjustment value according to the user historical data;

[0161] After determining the user's historical access behavior collection time and the access time node of the data to be accessed, obtain the user's historical data of the user's historical access behavior collection time before the access time node of the data to be accessed, and input the collected user historical data into a preset anomaly recognition model to obtain the permission adjustment value.

[0162] Among them, the anomaly recognition model can be trained by a neural network, and the training process can adopt an existing training scheme, such as inputting sample data of data access behavior that has been prepared to determine whether it is abnormal for training. As an implementation method, the anomaly recognition model can be a classification model, which is used to calculate the possibility that the input data belongs to an abnormal category, and the abnormal value output by the possibility. The larger the abnormal value, the greater the possibility that the input data is abnormal. The abnormal value can be understood as a permission adjustment value.

[0163] In this implementation, user historical data can be obtained based on the abnormal values ​​of the user's historical access behavior, thereby improving the accuracy of the abnormal identification model in calculating the permission adjustment value.

[0164] Specifically, the above step of obtaining the user's initial access permission value is only a feasible implementation of step S1132 provided in this embodiment, and this embodiment does not specifically limit the specific implementation of step S1132.

[0165] The data access control method proposed in the embodiment of the present application determines the duration of collecting the user's historical access behavior based on a preset outlier threshold and the outlier value of the user's historical access behavior; obtains the permission adjustment value according to the duration of collecting the user's historical access behavior, and can limit the duration of collecting the user's historical access behavior by using the preset outlier threshold, thereby ensuring that the obtained permission adjustment value is more accurate.

[0166] Based on the fourth embodiment of the present application, in the seventh embodiment of the present application, the same or similar contents as those in the fourth embodiment can be referred to the above introduction, and will not be described in detail later. Figure 7 , for step S113 in the data access control method, the historical access behavior collection time of the user is determined to be refined according to the abnormal value of the historical access behavior of the user, wherein the refinement steps include S11301 to S11303:

[0167] Step S11301, based on a preset first relationship mapping table, obtaining the first user's historical access behavior collection duration according to the total duration of the user's historical access behaviors;

[0168] Among them, the first relationship mapping table records the correspondence between the total duration of the user's historical access behavior and the collection duration of the first user's historical access behavior, that is, after obtaining the total duration of the user's historical access behavior, the historical access behavior collection duration of the first user corresponding to the total duration of the user's historical access behavior can be obtained by querying the first relationship mapping table. The first user's historical access behavior collection duration can be used to subsequently determine the user's historical access behavior collection duration. It should be noted that the units of the user's total duration of historical access behavior and the first user's historical access behavior collection duration are the same.

[0169] For example, if the total duration of a user's historical access behavior is expressed in days, the first relationship mapping table can be expressed as:

[0170] 1. The total duration of the user's historical access behavior is less than or equal to seven days - the first user's historical access behavior collection duration is equal to the total duration of the user's historical access behavior;

[0171] 2. The total duration of the user's historical access behavior is greater than seven days and less than or equal to thirty days - the first user's historical access behavior collection duration is equal to seven days;

[0172] 3. The total duration of the user's historical access behavior is greater than thirty days and less than or equal to three hundred and sixty-five days - the first user's historical access behavior collection duration is equal to thirty days.

[0173] The above is only the correspondence between the total duration of the historical access behavior of one user in the first relationship mapping table and the collection duration of the historical access behavior of the first user. The specific correspondence can be determined according to the actual situation, that is, the values ​​in the above first relationship mapping table are only examples. In actual application, they can be dynamically adjusted according to the specific situation and are not specifically limited here.

[0174] Step S11302, based on a preset second relationship mapping table, obtaining the second user's historical access behavior collection time according to the user's historical access behavior abnormal value;

[0175] Among them, the second relationship mapping table records the correspondence between the user's historical access behavior abnormal value and the second user's historical access behavior collection time, that is, after obtaining the user's historical access behavior abnormal value, the second user's historical access behavior collection time corresponding to the user's historical access behavior abnormal value can be obtained by querying the second relationship mapping table. The second user's historical access behavior collection time can be used to subsequently combine the first user's historical access behavior collection time to determine the user's historical access behavior collection time. It should be noted that the unit of the second user's historical access behavior collection time and the first user's historical access behavior collection time are the same. For example, the second relationship mapping table can be expressed as:

[0176] 1. The abnormal value of the user's historical access behavior is less than or equal to the preset adjustment threshold - the second user's historical access behavior collection time is equal to seven days;

[0177] 2. The abnormal value of the user's historical access behavior is greater than the preset adjustment threshold and less than or equal to twice the preset adjustment threshold - the second user's historical access behavior collection period is equal to fourteen days;

[0178] 3. The abnormal value of the user's historical access behavior is greater than twice the preset adjustment threshold and less than or equal to three times the preset adjustment threshold - the second user's historical access behavior collection period is equal to twenty-one days;

[0179] The above is only the correspondence between the abnormal value of the historical access behavior of one user in the second relationship mapping table and the collection time of the historical access behavior of the second user. The specific correspondence can be determined according to the actual situation, that is, the values ​​​​in the above second relationship mapping table are only examples. In actual application, they can be dynamically adjusted according to the specific situation and are not specifically limited here.

[0180] Step S11303, determining the historical access behavior collection time of the user according to the historical access behavior collection time of the first user and the historical access behavior collection time of the second user;

[0181] After obtaining the first user's historical access behavior collection time and the second user's historical access behavior collection time, compare the first user's historical access behavior collection time with the second user's historical access behavior collection time. If the first user's historical access behavior collection time is longer than the second user's historical access behavior collection time, the user's historical access behavior collection time is equal to the first user's historical access behavior collection time. If the first user's historical access behavior collection time is less than the second user's historical access behavior collection time, the user's historical access behavior collection time is equal to the second user's historical access behavior collection time. In summary, after obtaining the first user's historical access behavior collection time and the second user's historical access behavior collection time, the user's historical access behavior collection time can be obtained by the following formula:

[0182] T sel =max{T1, T2}

[0183] Among them, T sel It is the duration of collecting the historical access behaviors of users, T1 is the duration of collecting the historical access behaviors of the first user, and T2 is the duration of collecting the historical access behaviors of the second user.

[0184] The data access control method proposed in the embodiment of the present application is based on a preset first relationship mapping table, and obtains the first user's historical access behavior collection time according to the total duration of the user's historical access behavior; based on a preset second relationship mapping table, obtains the second user's historical access behavior collection time according to the user's historical access behavior abnormality value; determines the user's historical access behavior collection time according to the first user's historical access behavior collection time and the second user's historical access behavior collection time; obtains the permission adjustment value according to the user's historical access behavior collection time, which can improve the accuracy of the permission adjustment value and reduce the security risk of data access.

[0185] Based on the first to seventh embodiments of the present application, in the eighth embodiment of the present application, the same or similar contents as those of the first to seventh embodiments can be referred to the above description, and will not be repeated in the following. Figure 8 In step S13 of the data access control method, the initial access rights of the user are adjusted according to the permission adjustment value, and before obtaining the current actual access rights of the user, the method further includes steps S12 and S121:

[0186] Step S12, in response to the user's registration instruction, determining the user's initial access rights based on a preset role access control model;

[0187] Step S121, determining the minimum access permission for the data to be accessed based on the initial access permission of the user;

[0188] When a user registers, the system responds to the user's registration instruction, and then the role-based access control model pre-sets the corresponding access rights for the user. The access rights are the minimum access rights value for the data. Based on the setting of the minimum access rights value, when the data is stored, all roles that can access the data are determined, and the lowest access rights value among all access rights corresponding to all roles is determined as the minimum access rights threshold for the data, that is, the minimum access rights for the data to be accessed.

[0189] Specifically, the step of obtaining the user's initial access permission value may include:

[0190] 1. Registration form design: Design a form on the user registration page, including various information fields related to the user's identity, such as name, email, position, department, etc., and add a field in the form to indicate the user's data access permission level. This field can be a drop-down menu or radio button containing different permission level options.

[0191] 2. Registration process settings: When the user fills in and submits the registration form, the system background processing program automatically assigns the user's initial access permission value based on the information provided by the user. Specifically, this process can be handled by writing an automated script or program to assign corresponding permission values ​​to the user based on the user's position, department and other information, and store these values ​​in the corresponding user's account configuration.

[0192] 3. User account database query: The system queries the user's information, including the initial access permission value, through the user account database. Specifically, when the user logs in to the system and accesses data, the system retrieves the user's initial access permission value from the database according to the user's account configuration.

[0193] The data access control method proposed in the embodiment of the present application determines the initial access rights of the user based on a preset role access control model in response to the user's registration instruction; and determines the minimum access rights of the data to be accessed based on the user's initial access rights, which can not only greatly simplify the management of permissions, but also improve the efficiency of confirming the minimum access rights of the data to be accessed.

[0194] Based on the eighth embodiment of the present application, in the ninth embodiment of the present application, the same or similar contents as those in the eighth embodiment can be referred to the above description, and will not be described in detail later. Fig. 9 , for step S20 in the data access control method, the control of the user's current data access behavior is refined according to the user's current actual access rights and the preset access rights threshold of the data to be accessed, wherein the refined steps include S21 to S23:

[0195] Step S21, determining whether the current actual access permission of the user is higher than the access permission threshold of the data to be accessed;

[0196] After obtaining the user's current actual access rights and determining the access rights threshold of the data to be accessed, the user's current actual access rights are judged based on the access rights threshold of the data to be accessed. Specifically, the judgment result is used to determine whether to control the user's data access behavior this time.

[0197] Step S22: if the current actual access permission of the user is higher than the access permission threshold of the data to be accessed, then the user is allowed to access the data to be accessed;

[0198] Step S23: if the current actual access permission of the user is not higher than the access permission threshold of the data to be accessed, the user is prohibited from accessing the data to be accessed;

[0199] Among them, the user's current actual access permission is judged with reference to the access permission threshold of the data to be accessed. Specifically, if the user's current actual access permission is higher than the access permission threshold of the data to be accessed, the user is allowed to access the data to be accessed. On the contrary, if the user's current actual access permission is not higher than the access permission threshold of the data to be accessed, the user is prohibited from accessing the data to be accessed.

[0200] The data access control method proposed in the embodiment of the present application determines whether the user's current actual access permission is higher than the access permission threshold of the data to be accessed; if the user's current actual access permission is higher than the access permission threshold of the data to be accessed, the user is allowed to access the data to be accessed; if the user's current actual access permission is not higher than the access permission threshold of the data to be accessed, the user is prohibited from accessing the data to be accessed. Access control can be implemented for users whose permission values ​​are lower than the minimum access permission value of the data to be accessed, thereby reducing data access security risks.

[0201] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the data access control method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0202] This application also provides a data access control device, please refer to Fig.10 , the data access control device comprises:

[0203] The access permission determination module 10 is used to determine the current actual access permission of the user based on the user's historical access behavior in response to the user's access instruction;

[0204] The data access behavior control module 20 is used to control the user's current data access behavior according to the user's current actual access rights and a preset access rights threshold for the data to be accessed.

[0205] Optionally, the access authority determination module 10 is further configured to:

[0206] Obtaining a permission adjustment value based on the user's historical access behavior;

[0207] The initial access authority of the user is adjusted according to the authority adjustment value to obtain the current actual access authority of the user.

[0208] Optionally, the access authority determination module 10 is further configured to:

[0209] Obtain the total duration of the user's historical access behavior;

[0210] Determine the abnormal value of the user's historical access behavior according to the total duration of the user's historical access behavior;

[0211] The historical access behavior collection duration of the user is determined according to the historical access behavior abnormal value of the user, and the permission adjustment value is obtained according to the historical access behavior collection duration of the user.

[0212] Optionally, the access authority determination module 10 is further configured to:

[0213] Based on a preset collection cycle, respectively obtain the amount of historical user access data of each period of at least one period of the user and the maximum value of the access rights of historical user access data of each period of at least one period of the user;

[0214] Determining the period sensitivity value of each period respectively according to the maximum value of the user's historical access data access permission of each period;

[0215] The abnormal value of the historical access behavior of the user is obtained according to the amount of historical user access data of each period of the user, the maximum value of the access permission of the historical user access data of each period of the user, and the period sensitivity value of each period.

[0216] Optionally, the access authority determination module 10 is further configured to:

[0217] Determine whether the total duration of the user's historical access behavior meets a preset duration condition;

[0218] If the total duration of the user's historical access behavior meets the preset duration condition, then based on the preset collection period, the amount of user historical access data of each period of at least one period of the user and the maximum value of the user historical access data access rights of each period of at least one period of the user are obtained respectively, as well as the amount of user historical access data of several periods and the maximum value of the user historical access data object access rights.

[0219] Optionally, the access authority determination module 10 is further configured to:

[0220] Determine the duration of collecting the user's historical access behavior based on a preset abnormal value threshold and the abnormal value of the user's historical access behavior;

[0221] The permission adjustment value is obtained according to the collection duration of the user's historical access behavior.

[0222] Optionally, the access authority determination module 10 is further configured to:

[0223] Based on the preset first relationship mapping table, obtaining the first user's historical access behavior collection duration according to the total duration of the user's historical access behavior;

[0224] Based on a preset second relationship mapping table, obtaining a second user's historical access behavior collection duration according to the user's historical access behavior abnormal value;

[0225] Determine the historical access behavior collection time of the user according to the historical access behavior collection time of the first user and the historical access behavior collection time of the second user;

[0226] The permission adjustment value is obtained according to the collection duration of the user's historical access behavior.

[0227] Optionally, the access authority determination module 10 is further configured to:

[0228] In response to a registration instruction of the user, determining the initial access rights of the user based on a preset role access control model;

[0229] Based on the user's initial access rights, determine the minimum access rights for the data to be accessed

[0230] Optionally, the data access behavior control module 20 is further used to:

[0231] Determine whether the current actual access rights of the user are higher than the minimum access rights of the data to be accessed;

[0232] If the current actual access permission of the user is higher than the minimum access permission of the data to be accessed, the user is allowed to access the data to be accessed;

[0233] If the current actual access permission of the user is not higher than the minimum access permission of the data to be accessed, the user is prohibited from accessing the data to be accessed.

[0234] The data access control device provided in the present application adopts the data access control method in the above-mentioned embodiment, which can reduce the risk of data access. Compared with the prior art, the beneficial effects of the data access control device provided in the present application are the same as the beneficial effects of the data access control method provided in the above-mentioned embodiment, and other technical features in the data access control device are the same as the features disclosed in the above-mentioned embodiment method, which will not be repeated here.

[0235] The present application provides a data access control device, which includes: at least one processor; and a memory that is communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the data access control method in the above-mentioned embodiment 1.

[0236] Reference below Fig.11, which shows a schematic diagram of the structure of a data access control device suitable for implementing an embodiment of the present application. The data access control device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig.11 The data access control device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0237] like Fig.11 As shown, the data access control device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the data access control device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the data access control device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a data access control device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.

[0238] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0239] The data access control device provided by the present application adopts the data access control method in the above embodiment to reduce the risk of data access. Compared with the prior art, the beneficial effects of the data access control device provided by the present application are the same as the beneficial effects of the data access control method provided by the above embodiment, and other technical features in the data access control device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0240] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0241] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0242] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, wherein the computer-readable program instructions are used to execute the data access control method in the above-mentioned embodiment.

[0243] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0244] The computer-readable storage medium may be included in the data access control device; or may exist independently without being assembled into the data access control device.

[0245] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the data access control device, the data access control device: responds to the user's access instructions and determines the user's current actual access rights based on the user's historical access behavior; and controls the user's current data access behavior based on the user's current actual access rights and a pre-set access rights threshold for the data to be accessed.

[0246] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0247] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0248] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0249] The readable storage medium provided in this application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned data access control method, and can reduce the risk of data access. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as the beneficial effects of the data access control method provided in the above-mentioned embodiment, and will not be repeated here.

[0250] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned data access control method when executed by a processor.

[0251] The computer program product provided by the present application can reduce the risk of data access. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the data access control method provided by the above embodiment, which will not be described in detail here.

[0252] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A data access control method, characterized in that: The data access control method comprises: In response to the user's access instruction, determine the user's current actual access rights based on the user's historical access behavior; The user's current data access behavior is controlled according to the user's current actual access rights and a preset access rights threshold for the data to be accessed.

2. The method according to claim 1, characterized in that The step of determining the user's current actual access rights based on the user's historical access behavior includes: Obtaining a permission adjustment value based on the user's historical access behavior; The initial access authority of the user is adjusted according to the authority adjustment value to obtain the current actual access authority of the user.

3. The method according to claim 2, characterized in that The step of obtaining the permission adjustment value based on the user's historical access behavior includes: Obtain the total duration of the user's historical access behavior; Determine the abnormal value of the user's historical access behavior according to the total duration of the user's historical access behavior; The historical access behavior collection duration of the user is determined according to the historical access behavior abnormal value of the user, and the permission adjustment value is obtained according to the historical access behavior collection duration of the user.

4. The method according to claim 3, characterized in that The step of determining the abnormal value of the user's historical access behavior according to the total duration of the user's historical access behavior comprises: Based on a preset collection cycle, respectively obtain the amount of historical user access data of each period of at least one period of the user and the maximum value of the access rights of historical user access data of each period of at least one period of the user; Determining the period sensitivity value of each period respectively according to the maximum value of the user's historical access data access permission of each period; The abnormal value of the historical access behavior of the user is obtained according to the amount of historical user access data of each period of the user, the maximum value of the access permission of the historical user access data of each period of the user, and the period sensitivity value of each period.

5. The method according to claim 4, characterized in that The step of respectively acquiring the amount of historical user access data of each period of at least one period of the user and the maximum value of the access rights of historical user access data of each period of at least one period of the user based on the preset collection cycle comprises: Determine whether the total duration of the user's historical access behavior meets a preset duration condition; If the total duration of the user's historical access behavior meets the preset duration condition, the amount of historical access data of the user in each period of at least one period and the maximum value of the access rights of the historical access data of the user in each period of at least one period are obtained based on the preset collection period.

6. The method according to claim 5, characterized in that The step of determining the user's historical access behavior collection duration according to the user's historical access behavior abnormal value comprises: The historical access behavior collection duration of the user is determined based on a preset abnormal value threshold and the historical access behavior abnormal value of the user.

7. The method according to claim 4, characterized in that The step of determining the user's historical access behavior collection duration according to the user's historical access behavior abnormal value comprises: Based on the preset first relationship mapping table, obtaining the first user's historical access behavior collection duration according to the total duration of the user's historical access behavior; Based on a preset second relationship mapping table, obtaining a second user's historical access behavior collection duration according to the user's historical access behavior abnormal value; The historical access behavior collection time of the user is determined according to the historical access behavior collection time of the first user and the historical access behavior collection time of the second user.

8. The method according to any one of claims 1 to 7, characterized in that The step of adjusting the initial access rights of the user according to the permission adjustment value to obtain the current actual access rights of the user includes: In response to a registration instruction of the user, determining the initial access rights of the user based on a preset role access control model; Based on the initial access rights of the user, a minimum access right for the data to be accessed is determined.

9. The method according to claim 8, characterized in that The step of controlling the user's current data access behavior according to the user's current actual access rights and a preset access rights threshold for the data to be accessed includes: Determine whether the current actual access rights of the user are higher than the minimum access rights of the data to be accessed; If the current actual access permission of the user is higher than the minimum access permission of the data to be accessed, the user is allowed to access the data to be accessed; If the current actual access permission of the user is not higher than the minimum access permission of the data to be accessed, the user is prohibited from accessing the data to be accessed.

10. A data access control device, characterized in that: The data access control device comprises: An access rights determination module, for responding to an access instruction of a user and determining the current actual access rights of a user based on the user's historical access behavior; The data access behavior control module is used to control the user's current data access behavior according to the user's current actual access rights and a preset access rights threshold for the data to be accessed.

11. A data access control device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the data access control method according to any one of claims 1 to 9.

12. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the data access control method according to any one of claims 1 to 9 are implemented.

13. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the data access control method according to any one of claims 1 to 9 are implemented.

Citation Information

Cited By

  • Information security management and monitoring system based on big data

    CN118965409A