A method for accessing a secret key certificate management system

By dynamically adjusting the user's access permission level and assigning permissions, and combining data mining technology to filter out mutually exclusive constraints between permissions, the problem that traditional access control strategies cannot meet the flexible permission requirements of the secret key certificate management system is solved, and fine-grained The effect of permission control and reduction of permission redundancy.

CN118041547BActive Publication Date: 2024-10-22CHINA HUANENG GRP CO LTD BEIJING TENDERING BRANCH +1
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410068727.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-17
Publication Date
2024-10-22
Estimated Expiration
2044-01-17

AI Technical Summary

Technical Problem

Traditional role-based access control strategies cannot meet the flexible permission allocation requirements in the key certificate management system, resulting in insufficient granularity of permissions and redundant permissions.

Method used

By obtaining the user's secret key certificate management system access request, determine the initial access permission level based on the user's position information, historical abnormal access times and trust level, make corrections based on the access deviation and abnormal access records, and dynamically assign user groups and roles. Set static and dynamic access permissions, filter out mutually exclusive constraints between permissions through data mining, and set constraints on users.

Benefits of technology

It realizes flexible permission allocation to different users, reduces permission redundancy, improves the efficiency and accuracy of permission granting, and ensures fine-grained access control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118041547B_ABST
    Figure CN118041547B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of access control technology, and discloses an access method for a key certificate management system, the method comprising: obtaining a key certificate management system access request from a user, determining the user access permission level according to the key certificate management system access request; assigning user groups according to the user access permission level, determining user roles according to the user groups, and assigning user access permissions according to the user roles; setting constraints on users according to user access permissions, and performing access control on users in combination with user access permissions and constraints. By setting an access permission level for each user, and performing access control on users to a key certificate management system based on roles, the user's access permission is dynamically controlled, and fine-grained control of access permissions is achieved to prevent permission redundancy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of access control technology, and more specifically, to an access method for a key certificate management system. Background Art

[0002] The secret key certificate management system is mainly responsible for providing users with certificate application, certificate generation, certificate storage, certificate query, certificate download, and certificate revocation options. When a user makes an access request to the secret key certificate management system, for security reasons, different access rights need to be set for different users, and sometimes cross-allocation of users and permissions is required. In the existing technology, role-based access control strategies are usually adopted to improve the security of the management system.

[0003] However, traditional role-based access control strategies only assign fixed role permissions to users, which cannot meet the flexible and changeable permission allocation requirements in key and certificate management systems. In addition, the permission granularity constraints are not detailed enough, resulting in a large amount of redundant permissions. Summary of the invention

[0004] The present invention provides a method for accessing a key certificate management system, which is used to solve the technical problem that the access control of the key certificate management system in the prior art is not flexible enough. The method comprises:

[0005] Obtain the user's key certificate management system access request, and determine the user's access permission level based on the key certificate management system access request;

[0006] Assign user groups based on user access rights levels, determine user roles based on user groups, and assign user access rights based on user roles;

[0007] Set constraints on users based on their access rights, and perform access control on users based on their access rights and constraints.

[0008] Further, determining the user access authority level according to the key certificate management system access request includes:

[0009] Determine the user's position information based on the key certificate management system access request, and set the initial access permission level based on the user's position information;

[0010] Obtain abnormal access records based on the user's historical abnormal access times, and set access permission level correction coefficients based on the abnormal access records;

[0011] The initial access level is modified according to the access level modification factor to obtain the final user access level.

[0012] Furthermore, the detection method of abnormal user access is:

[0013] The user access period is calculated based on the difference between the user's end access time and the start access time, and the user's access deviation to the management system access data within the user access period is calculated;

[0014] Determining whether the access deviation is greater than a first preset threshold;

[0015] If the access deviation is greater than the first preset threshold, it is determined that the user has abnormal access;

[0016] If the access deviation is less than or equal to the first preset threshold, it is determined that the user does not have abnormal access.

[0017] Furthermore, the calculation of the access deviation of the user to the management system access data within the user access period includes:

[0018] Set an access deviation calculation formula, and calculate the access deviation of the user to the management system access data according to the access deviation calculation formula. The access deviation calculation formula is:

[0019]

[0020] Among them, P is the access deviation, T n is the access duration of the nth access data that deviates from the user's access target, α n is the deviation weight of the nth access data that deviates from the user's access target, T t The user access time period.

[0021] Furthermore, the step of setting the access authority level correction coefficient according to the abnormal access record includes:

[0022] A first preset period is set according to the total duration of the user's historical visits, and the number of abnormal visits of the user within the first preset period is determined according to the abnormal access records;

[0023] The user trust level is set according to the number of abnormal accesses, and the access permission level correction coefficient is set according to the user trust level.

[0024] Furthermore, it also includes:

[0025] The user's trust level is detected in real time, and when the user's trust level is less than a second preset threshold, an early warning is issued for the user's access behavior.

[0026] Furthermore, allocating user access rights according to user roles includes:

[0027] Determine the user's static access rights based on the user role, and determine the user's access data based on the user's static access rights;

[0028] Assign dynamic access rights to users based on their access data, and set preset access times for accessing target data corresponding to each dynamic permission;

[0029] The dynamic permission access time limit is calculated based on the preset access time of the target data corresponding to each dynamic permission, and the dynamic permission access time limit is adjusted based on the user's trust level.

[0030] Furthermore, the step of calculating the dynamic permission access time limit according to the preset access time of the target data corresponding to each dynamic permission includes:

[0031] Setting a weight value for each target data, and multiplying the weight value for each target data by a preset access time of the target data to obtain a weighted target data access time;

[0032] The access time of each weighted target data is summed up to obtain the dynamic permission access time limit.

[0033] Furthermore, allocating dynamic access rights to users according to user access data includes:

[0034] Acquire historical access data, wherein the historical access data includes user historical access data and corresponding dynamic permission allocation data;

[0035] Preprocess the historical access data to obtain a model training sample set;

[0036] The dynamic permission prediction model is trained according to the model training sample set, and the dynamic permissions corresponding to the user's access data are predicted according to the training results.

[0037] Furthermore, the setting of constraints on the user according to the user access rights includes:

[0038] Get the historical permission allocation information corresponding to the user, and invert the historical permission allocation information bit by bit;

[0039] Set the minimum support threshold to mine the frequent permission item sets after bitwise inversion of the historical permission allocation information;

[0040] Set a minimum confidence threshold and calculate the confidence of any two items in the frequent permission item set;

[0041] Filter out the rules with greater than the minimum confidence level and determine the initial strong association rules;

[0042] Calculate the initial strong association rule lift according to the initial strong association rule, set the lift threshold, filter out the strong association rules that are greater than the lift threshold, and determine the final strong association rule;

[0043] The final strong association rule is set as a mutually exclusive constraint, and the constraint conditions for the user are set according to the corresponding mutually exclusive constraint in the user access rights.

[0044] The beneficial effects of the present invention are:

[0045] By applying the above technical scheme, the present invention realizes the allocation of different access rights for different users, and dynamically adjusts the access right level according to the user's access behavior, timely discovers users with low trust level and issues early warning, and combines static permissions and dynamic permissions according to the assigned roles, thereby solving the limitations of permission division, reducing the number of permissions granted, and preventing permission redundancy. By performing data mining on user access rights, the mutually exclusive constraints between permissions are screened out and constraints on users are set, thereby improving the efficiency of permission granting and ensuring accurate and flexible permission access control, and realizing fine-grained control of access rights. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0047] Figure 1 A schematic flow chart of a method for accessing a key certificate management system proposed in an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0048] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0049] The present application embodiment provides a method for accessing a key certificate management system, such as Figure 1 As shown, the method comprises the following steps:

[0050] S101, obtaining a key certificate management system access request from a user, and determining the user access authority level according to the key certificate management system access request.

[0051] In some embodiments of the present application, determining the user access permission level based on the key certificate management system access request includes: determining the user position information based on the key certificate management system access request, and setting the initial access permission level based on the user position information; obtaining the abnormal access record based on the user's historical abnormal access times, and setting the access permission level correction coefficient based on the abnormal access record; and correcting the initial access permission level based on the access permission level correction coefficient to obtain the final user access permission level.

[0052] In this embodiment, the management server receives a system access request from a user, the system access request includes a user name, a password and corresponding user position information, and the management server assigns an initial access authority level to the user based on the user position information.

[0053] In some embodiments of the present application, a method for detecting abnormal user access is as follows: calculating the user access period based on the difference between the user's end access time and the start access time, and calculating the user's access deviation to the management system access data within the user access period; determining whether the access deviation is greater than a first preset threshold; if the access deviation is greater than the first preset threshold, determining that the user has abnormal access; if the access deviation is less than or equal to the first preset threshold, determining that the user has no abnormal access.

[0054] In this embodiment, the last time the user's access ended and started is detected, and the user's access period is calculated. The access deviation within the user's access period is used to determine whether the user has abnormal access. If it is detected that the user is logging in for the first time, the initial access permission level is not corrected and the initial access permission level is set as the final access permission level.

[0055] In some embodiments of the present application, the calculation of the access deviation of the user to the management system access data during the user access period includes: setting an access deviation calculation formula, and calculating the access deviation of the user to the management system access data according to the access deviation calculation formula, wherein the access deviation calculation formula is:

[0056]

[0057] Among them, P is the access deviation, T n is the access duration of the nth access data that deviates from the user's access target, α n is the deviation weight of the nth access data that deviates from the user's access target, T t The user access time period.

[0058] In this embodiment, the access deviation represents the degree of deviation between the user and the target access data when accessing the key certificate management system. For example, based on the user's initial access permission level, it can be determined that the user's target access data is certificate application or certificate viewing. When the user attempts to perform unauthorized access such as certificate replacement or certificate revocation, the system records the user's unauthorized access duration and calculates the user's access deviation to the management system access data according to the access deviation calculation formula. The deviation weight is set according to the degree of deviation between the unauthorized access data and the target access data. .

[0059] In some embodiments of the present application, setting the access permission level correction coefficient based on abnormal access records includes: setting a first preset period based on the total duration of the user's historical access, and determining the number of abnormal accesses of the user within the first preset period based on the abnormal access records; setting the user's trust level based on the number of abnormal accesses, and setting the access permission level correction coefficient based on the user's trust level.

[0060] In this embodiment, the first preset period is the average of the total duration of historical visits of all users. The total number of abnormal visits of users within the first preset period is determined in the abnormal access record. The user trust level is set to level five, level four, level three, level two, and level one according to the number of abnormal visits. The access permission level correction coefficient is set according to the user trust level. The access permission level correction coefficient is multiplied by the initial access permission level, and the result is rounded to obtain the final access permission level.

[0061] In some embodiments of the present application, it also includes: real-time detection of the user's trust level, and when the user's trust level is less than a second preset threshold, an early warning of the user's access behavior.

[0062] In this embodiment, after the user sends a system access request, the user's trust level is calculated and the user's trust level is detected in real time. When the user's trust level is less than level 2, the user's access behavior is warned and the access behavior is uploaded to the management server.

[0063] S102, assigning user groups according to user access permission levels, determining user roles according to user groups, and assigning user access permission according to user roles;

[0064] In some embodiments of the present application, the method of allocating user access rights based on user roles includes: determining the user's static access rights based on the user role, and determining the user's access data based on the user's static access rights; allocating dynamic access rights to the user based on the user's access data, and setting a preset access time for accessing target data corresponding to each dynamic permission; calculating the dynamic permission access time limit based on the preset access time corresponding to the target data of each dynamic permission, and adjusting the dynamic permission access time limit based on the user's trust level.

[0065] In this embodiment, static access rights are access rights necessary to ensure access is complete, and dynamic access rights are unnecessary access rights generated according to the different roles assigned to users. If these rights are directly associated with roles, it will inevitably lead to redundancy of user rights, thereby causing improper access to system resources. Therefore, these rights that need to be dynamically allocated are associated with specific user access data, and corresponding access time limits are set to prevent redundancy of rights to the greatest extent.

[0066] In some embodiments of the present application, the dynamic permission access limit is calculated based on the preset access time of the target data corresponding to each dynamic permission, including: setting a weight value for each target data, multiplying the weight value of each target data by the preset access time of the target data to obtain a weighted target data access time; summing the weighted target data access times to obtain the dynamic permission access limit.

[0067] In this embodiment, the target data is the access data corresponding to the dynamic access permission. The weight value of each target data is set according to the importance of the target data and the time required to complete the access. The weighted target data access time is calculated, and the access time of each weighted target data is summed to obtain the dynamic permission access time limit.

[0068] In some embodiments of the present application, assigning dynamic access rights to users based on user access data includes: obtaining historical access data, wherein the historical access data includes user historical access data and corresponding dynamic permission allocation data; preprocessing the historical access data to obtain a model training sample set; training a dynamic permission prediction model based on the model training sample set, and predicting the dynamic permissions corresponding to the user access data based on the training results.

[0069] In this embodiment, all users' historical access data and corresponding dynamic permission allocation data are obtained, and the dynamic permission allocation data with the best redundancy is screened out to form a model training sample set. Based on a mixture of one or more algorithms such as convolutional neural networks, deep neural networks, and genetic algorithms, a dynamic permission prediction model is constructed to train the model training sample set, and the dynamic permissions corresponding to the user access data are predicted based on the training results.

[0070] S103, setting constraints on the user according to the user access rights, and performing access control on the user in combination with the user access rights and the constraints.

[0071] In some embodiments of the present application, the constraint conditions for the user are set according to the user access rights, including: obtaining the historical permission allocation information corresponding to the user, and bitwise inverting the historical permission allocation information; setting a minimum support threshold, and mining the frequent permission item set of the historical permission allocation information after bitwise inversion; setting a minimum confidence threshold, and calculating the confidence of any two items in the frequent permission item set; screening out rules greater than the minimum confidence, and determining the initial strong association rule; calculating the initial strong association rule lift according to the initial strong association rule, setting the lift threshold, screening out the strong association rules greater than the lift threshold, and determining the final strong association rule; setting the final strong association rule as a mutually exclusive constraint, and setting the constraint conditions for the user according to the corresponding mutually exclusive constraint in the user access rights.

[0072] In this embodiment, mutually exclusive constraints in historical permission allocation information are screened out through data mining to prevent permission conflicts caused by excessive role allocation, improve the efficiency of permission granting and ensure accurate and flexible permission access control.

[0073] In order to further explain the technical idea of ​​the present invention, the technical solution of the present invention is now described in combination with specific application scenarios.

[0074] By applying the above technical scheme, when the management server receives a management system access request from a user, the present invention sets an initial access permission level by obtaining the user's position information, and calculates the user's trust level based on the user's abnormal access record, issues an early warning to users with too low a trust level, and corrects the initial access permission level based on the trust level, assigns user groups to users based on the corrected access permission level, assigns user roles through user groups, sets the user's static access permission based on the assigned user role, determines a set of user access permissions based on the user's static access permissions, imports the set of user access permissions into a dynamic permission prediction model, thereby assigning the user's dynamic permissions, and after the permission allocation is completed, screens out mutually exclusive constraints in the permission history allocation information through data mining, thereby setting constraints on the user to prevent permission conflicts.

[0075] Through the description of the above implementation methods, those skilled in the art can clearly understand that the present invention can be implemented by hardware, or by software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present invention can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each implementation scenario of the present invention.

[0076] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for accessing a key certificate management system, It is characterized in that The method comprises: Obtain the user's key certificate management system access request, and determine the user's access permission level based on the key certificate management system access request; Assign user groups based on user access rights levels, determine user roles based on user groups, and assign user access rights based on user roles; Set constraints on users based on their access rights, and perform access control on users based on their access rights and constraints; Determining the user access permission level according to the key certificate management system access request includes: Determine the user's position information based on the key certificate management system access request, and set the initial access permission level based on the user's position information; Obtain abnormal access records based on the user's historical abnormal access times, and set access permission level correction coefficients based on the abnormal access records; The initial access permission level is modified according to the access permission level modification coefficient to obtain the final user access permission level; The detection method for abnormal user access is: The user access period is calculated based on the difference between the user's end access time and the start access time, and the user's access deviation to the management system access data within the user access period is calculated; Determining whether the access deviation is greater than a first preset threshold; If the access deviation is greater than the first preset threshold, it is determined that the user has abnormal access; If the access deviation is less than or equal to the first preset threshold, it is determined that the user does not have abnormal access; The calculating of the access deviation of the user to the management system access data within the user access period includes: Set an access deviation calculation formula, and calculate the access deviation of the user to the management system access data according to the access deviation calculation formula. The access deviation calculation formula is: Among them, P is the access deviation, T n is the access duration of the nth access data that deviates from the user's access target, α n is the deviation weight of the nth access data that deviates from the user's access target, T t The user's access period; The step of setting the access permission level correction coefficient according to the abnormal access record includes: A first preset period is set according to the total duration of the user's historical visits, and the number of abnormal visits of the user within the first preset period is determined according to the abnormal access records; Set the user trust level according to the number of abnormal accesses, and set the access permission level correction factor according to the user trust level; The allocating user access rights according to user roles includes: Determine the user's static access rights based on the user role, and determine the user's access data based on the user's static access rights; Assign dynamic access rights to users based on their access data, and set preset access times for accessing target data corresponding to each dynamic permission; Calculate the dynamic permission access time limit based on the preset access time of the target data corresponding to each dynamic permission, and adjust the dynamic permission access time limit based on the user's trust level; The step of calculating the dynamic permission access time limit according to the preset access time of the target data corresponding to each dynamic permission includes: Setting a weight value for each target data, and multiplying the weight value for each target data by a preset access time of the target data to obtain a weighted target data access time; Sum up the access time of each weighted target data to obtain the dynamic permission access time limit; The step of allocating dynamic access rights to users according to user access data includes: Acquire historical access data, wherein the historical access data includes user historical access data and corresponding dynamic permission allocation data; Preprocess the historical access data to obtain a model training sample set; The dynamic permission prediction model is trained according to the model training sample set, and the dynamic permissions corresponding to the user's access data are predicted according to the training results.

2. The method for accessing the key certificate management system according to claim 1, It is characterized in that Also includes: The user's trust level is detected in real time, and when the user's trust level is less than a second preset threshold, an early warning is issued for the user's access behavior.

Citation Information

Patent Citations

  • Dynamic access control improvement method on basis of RBAC (Role-Based policies Access Control) model

    CN102073817A

  • Role-based access control model constructing system

    CN102156833A

  • Dynamic authorization method and system based on user context and strategy

    CN111064718A

  • Power monitoring system access authority control method and device and access control method and device

    CN115883175A

  • Access authority management method and equipment based on access behavior

    CN116992411A