A method for controlling data access rights
By dynamically adjusting the time window and combining the dynamic image verification mechanism, using the access rights model and the effective judgment model of verification actions, the problem of insufficient personalized judgment in cross-domain access rights control is solved, achieving more precise rights control and improving system security. .
Patent Information
- Application Number
- CN202411110623.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-14
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-08-14
AI Technical Summary
The existing technology lacks a personalized determination method in cross-domain access permission control, resulting in inaccurate determination of permission levels and inability to effectively distinguish the access patterns of different visitors, affecting system security and efficiency.
By dynamically adjusting the time window and combining the dynamic image verification mechanism, the access permission model and the verification action effective judgment model are used to personalizedly determine the visitor's permission level, avoid one-size-fits-all permission determination, and improve access security and system resource utilization efficiency.
It achieves more precise access rights control, enhances system security, prevents unauthorized access, improves work efficiency and information security, and reduces the risk of malicious attacks.
Smart Images

Figure CN118646603B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of computer information security, and in particular to a data access authority control method. Background Art
[0002] With the rapid development of information technology and the digital transformation of the financial industry, many financial institutions have begun to adopt advanced information systems to manage their complex business operations and office processes. Since different business departments in the financial industry have unique functions and information security requirements, the system divides different security level domains to ensure the safe operation of the entire business system. However, in order to improve business collaboration efficiency and service quality, effective information sharing and interaction need to be achieved between business subsystems of different security levels. Therefore, how to achieve efficient management of cross-domain access while ensuring information security has become a key issue that needs to be urgently addressed in the financial industry.
[0003] The invention patent with patent application number 202110830145.4 discloses an adaptive cross-domain access authentication method, which determines the visitor's access rights through the visitor's cross-domain access data, and further automatically adjusts the visitor's rights in combination with image verification information, avoiding the inaccuracy of one-size-fits-all recognition or denial of rights. However, since the historical cross-domain access data between different visitors must have different cross-domain access rules, there is no differentiated limitation and selection for the cross-domain access data for determining the permission level. Instead, the fixed standard for the data used to determine the permission level of all visitors is directly unified, lacking a personalized permission determination method. Summary of the invention
[0004] This application provides a data access permission control method that can improve the accuracy of access permission determination and enhance system security based on the visitor's personalized cross-domain access to data and combined with a dynamic image verification mechanism.
[0005] The present application provides a data access permission control method, comprising: S101, obtaining historical cross-domain access data of a visitor within a preset time period and a preset initial time window, and obtaining an access mode change index according to the historical cross-domain access data;
[0006] S102, determining a scaling factor according to the visitor's access pattern change index, and adaptively adjusting the initial time window to obtain a dynamic time window;
[0007] S103, inputting the cross-domain access data in the dynamic time window into a pre-trained access permission model, outputting the access permission level of the visitor, the permission level including high, medium and low, and updating the cross-domain access data in the dynamic time window;
[0008] S104, when the permission level is high, grant the visitor subsystem administrator access rights; when the permission level is medium, grant the visitor subsystem ordinary user access rights; when receiving a permission upgrade request or when the permission level is low, jump to step S105;
[0009] S105, prompting the visitor to perform dynamic image verification through the dynamic image verification mechanism set by the client, and obtaining the visitor's verification result image;
[0010] S106, input the verification result image and the cross-domain access data in the dynamic time window into the access permission model, output the visitor's permission level and update its access permission.
[0011] Preferably, the cross-domain access data includes the access time and access duration of each cross-domain access, and obtaining the access pattern change index according to the historical cross-domain access data specifically includes:
[0012] A1. According to the historical cross-domain access data of the preset time period and the preset initial time window, the cross-domain access frequency and cross-domain access duration situation value of the preset time period and the preset initial time window are obtained respectively;
[0013] A2. Calculate the access pattern change index according to the following formula: in, is the access pattern change index, and They are the cross-domain access frequency and cross-domain access duration status values in the preset time period. and They are the cross-domain access frequency and cross-domain access duration situation values of the preset initial time window, and They are the weight values of the impact of the cross-domain access frequency and cross-domain access duration situation values on the access pattern change index.
[0014] Preferably, the S102 specifically includes:
[0015] B1. Based on the preset change index interval, obtain a stretch factor: when the access mode change index is greater than the upper limit of the interval, obtain a stretch factor a; when the access mode change index is less than the lower limit of the interval, obtain a stretch factor b; otherwise, obtain a stretch factor 1, a>1 and 0<b<1;
[0016] B2. Multiply the expansion factor by the length of the initial time window to obtain the length of the dynamic time window, which replaces the initial time window.
[0017] Preferably, the dynamic image verification mechanism is specifically used to: select a dynamic verification image from a pre-stored dynamic verification image library to prompt the visitor to perform a verification action, and obtain a verification result image;
[0018] Among them, all dynamic verification images in the pre-stored dynamic verification image library are stored and classified according to their complexity, and each storage classification corresponds to a difficulty coefficient range. Selecting a dynamic verification image in the pre-stored dynamic verification image library prompts the visitor to perform a verification action, including:
[0019] S201, obtaining the cross-domain probability value and cross-domain trial and error value of the visitor within the dynamic time window, and calculating the verification difficulty coefficient value of the matching visitor according to the following formula: Among them, p is the verification difficulty coefficient value of matching visitors, G is the cross-domain probability value, and W is the cross-domain trial and error value. and They are the weights of the cross-domain probability value and the cross-domain trial and error value on the difficulty coefficient value;
[0020] S202, selecting a dynamic verification image to prompt the visitor to perform a verification action according to the difficulty coefficient range into which the verification difficulty coefficient value of the matching visitor falls in the pre-stored dynamic verification image library.
[0021] Preferably, the cross-domain probability value is the ratio of the number of cross-domain visits within the dynamic time window to the total number of visits, the cross-domain trial and error value is the ratio of the number of successful verifications within the dynamic time window to the total number of verifications, and the judgment of successful verification is set as: the visitor performs a verification action on the dynamic verification image, which enables him to obtain access rights to the corresponding subsystem.
[0022] Preferably, the input end of the access permission model is connected to the output end of a pre-trained verification action validity judgment model, and the pre-trained verification action validity judgment model is used to determine the validity of the verification action performed by the visitor on the dynamic verification image.
[0023] Preferably, before S106, the method further includes:
[0024] S301, obtaining the unique number of the dynamic verification image corresponding to the visitor's verification result image and the completion time of the visitor's verification action, inputting them into a pre-trained verification action validity judgment model, and outputting a valid result label of the verification result image, where the valid result label includes valid and invalid;
[0025] S302, when the valid result label of the verification result image is valid, execute step S106; otherwise, jump to step S202, update the dynamic verification image to prompt the visitor to perform the verification action again, obtain the verification result image, and repeat steps S301 to S302 until the number of times the visitor performs the verification action reaches the maximum attempt number threshold, and generate an early warning message and send it to the administrator of the subsystem.
[0026] Preferably, in said S302, when the valid result label of the verification result image is invalid, the process jumps to step S202, and step S202 further includes:
[0027] When the visitor's last verification result image is invalid, a dynamic verification image sequence is constructed according to the preset difficulty coefficient gradient rule, and the dynamic verification image sequence is presented to the visitor in sequence to perform the verification action to obtain a verification result image sequence, and each verification result image in the verification result image sequence corresponds one-to-one to each dynamic verification image sequence in the dynamic verification image sequence.
[0028] Preferably, when the visitor's last verification result image is invalid, a dynamic verification image sequence is constructed according to a preset difficulty coefficient gradient rule, specifically including:
[0029] S401, determining the difficulty coefficient interval to which the verification difficulty coefficient value originally matched the visitor belongs as the reference interval, and selecting a preset number of difficulty coefficient intervals before and after the reference interval as interference intervals in the pre-stored dynamic verification image library;
[0030] S402, selecting a dynamic verification image from the reference interval and each interference interval respectively, and sorting them in ascending order of the difficulty coefficient interval to which they belong to obtain an initial sequence;
[0031] S403, using a preset difficulty coefficient gradient rule to intervene in the initial sequence to obtain a dynamic verification image sequence.
[0032] Preferably, the preset difficulty coefficient gradient rule is specifically:
[0033] C1. Obtain the number of times the current visitor's verification result image is invalid, and generate N jump paths;
[0034] C2, use N jump paths to perform N exchange actions on the initial sequence respectively, and each jump path corresponds to one exchange action;
[0035] Among them, each dynamic verification image in the initial sequence is assigned a unique position number in order, and each jump path consists of two position numbers, which is represented by the exchange of the positions of the corresponding two dynamic verification images; the jump path is formed by randomly selecting and combining two by two based on all the position numbers in the initial sequence.
[0036] One or more technical solutions provided in this application have at least the following technical effects or advantages:
[0037] By dynamically adjusting the length of the time window, the selection of cross-domain access data is more in line with the actual access habits of visitors, avoiding excessive or insufficient data input, which not only saves resources but also improves the personalization of cross-domain access data, making the access rights control of visitors more accurate; combining the dynamic image verification mechanism and cross-domain access data, using the access rights model, the access security of visitors is determined in multiple dimensions, effectively preventing unauthorized access, improving work efficiency, and ensuring the information security of the system;
[0038] The dynamic image verification mechanism is optimized by introducing the difficulty coefficient of the verification image, and the difficulty of the dynamic verification image is personalized according to the actual access behavior and cross-domain access rules of the visitor, so that the dynamic image verification mechanism has differentiation and personalization;
[0039] By introducing the verification action validity judgment model, the validity of the verification action performed by the visitor is judged. According to the output result of the verification action validity judgment model, the access permission model controls whether the port used to input the verification result image is started. After the organic combination of the two models, malicious attackers are effectively prevented from completing the verification process by bypassing the verification mechanism through automated tools or cracking software, which improves the security of the system and effectively avoids the subsequent invalid judgment of invalid verification actions caused by the visitor's accidental touch or other reasons, thereby optimizing the use of model system resources.
[0040] According to the number of invalid verification actions of the visitor, the dynamic image verification mechanism is optimized, and a dynamic verification image sequence is generated. The sequence is sorted and intervened according to the difficulty coefficient gradient rule. The more invalid verifications a visitor has, the more complex and disordered the next verification difficulty coefficient gradient will be. This significantly increases the complexity of the verification image execution action and the difficulty of cracking it, making it difficult for software cracking tools to crack it through methods such as pattern recognition, thereby improving the reliability of visitor security verification and effectively obtaining their access rights. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 Schematic diagram of the flow of a method for controlling data access rights according to an embodiment of the present invention. DETAILED DESCRIPTION
[0042] To facilitate the understanding of the present invention, the present application will be described more comprehensively below with reference to the relevant drawings; the drawings show preferred embodiments of the present invention, but the present invention can be implemented in many different forms and is not limited to the embodiments described herein; on the contrary, the purpose of providing these embodiments is to enable a more thorough and comprehensive understanding of the disclosed content of the present invention.
[0043] It should be noted that the terms “vertical”, “horizontal”, “up”, “down”, “left”, “right” and similar expressions used in this document are only for illustrative purposes and do not represent the only implementation method.
[0044] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which the present invention belongs; the terms used in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention; the term "and / or" used herein includes any and all combinations of one or more related listed items.
[0045] Embodiment 1: Figure 1 It is a flowchart of a method for controlling data access rights according to an embodiment of the present invention.
[0046] like Figure 1 As shown, a data access permission control method is applied to a financial business system, comprising the following steps:
[0047] S101, obtaining historical cross-domain access data of visitors within a preset time period and a preset initial time window, and obtaining an access pattern change index according to the historical cross-domain access data.
[0048] Among them, each cross-domain access of the visitor corresponds to a cross-domain access data, which includes but is not limited to the account permissions (administrator permissions, ordinary user permissions) of each cross-domain access, login IP address, access time and access duration, access scenario (the time period type to which the access time belongs, which can be a working time period or a rest time period), mobilization resource information (the type and quantity of resources mobilized during the cross-domain access process), and the association between the subsystems of the cross-domain access.
[0049] Specifically, the preset time period can be set to nearly six months, and the length of the preset initial time window can be set to nearly one week. When a visitor logs into the office system to access a cross-domain subsystem, the historical cross-domain data of the access in the past six months and the past week is obtained for analysis to obtain the access pattern change index.
[0050] In some embodiments, obtaining the access pattern change index based on historical cross-domain access data specifically includes:
[0051] A1. According to the historical cross-domain access data of the preset time period and the preset initial time window, the cross-domain access frequency and the cross-domain access duration situation value of the preset time period and the preset initial time window are obtained respectively.
[0052] Among them, the cross-domain access frequency is the ratio of the total number of cross-domain accesses to the total number of days in the corresponding time period, or the fluctuation trend value between the number of daily accesses in the corresponding time period; the cross-domain access duration trend value is the ratio of the total duration of cross-domain accesses to the total number of days in the corresponding time period, or the fluctuation trend value between the total duration of daily accesses in the corresponding time period.
[0053] It should be noted that the above-mentioned fluctuation trend value can be set to the standard deviation of several data, which will not be elaborated in the present invention.
[0054] A2. Calculate the access pattern change index according to the following formula: in, is the access pattern change index, and They are the cross-domain access frequency and cross-domain access duration status values in the preset time period. and They are the cross-domain access frequency and cross-domain access duration situation values of the preset initial time window, and They are the weight values of the impact of the cross-domain access frequency and cross-domain access duration situation values on the access pattern change index.
[0055] S102, determining a scaling factor according to the visitor's access pattern change index, and adaptively adjusting the initial time window to obtain a dynamic time window.
[0056] Specifically, step S102 includes:
[0057] B1. Based on the preset change index interval, a stretch factor is obtained: when the access mode change index is greater than the upper limit of the interval, the stretch factor is a; when the access mode change index is less than the lower limit of the interval, the stretch factor is b; otherwise, the stretch factor is 1.
[0058] Among them, a>1 and 0<b<1, the values of a and b are set and adjusted according to the actual situation. If the access mode change index is small, it indicates that the visitor's cross-domain access habits or rules are relatively stable, and the length of the initial time window is adjusted by the telescopic amplitude factor to slightly reduce it; if the access mode change index is large, it indicates that the visitor's cross-domain access habits or rules have fluctuated greatly, and the length of the initial time window is adjusted by the telescopic amplitude factor to expand its adaptability; thereby, the personalization of the visitor's cross-domain access data is improved by controlling the length of the time window.
[0059] B2. Multiply the expansion factor by the length of the initial time window to obtain the length of the dynamic time window, which replaces the initial time window.
[0060] S103, input the cross-domain access data in the dynamic time window into the pre-trained access permission model, output the visitor's permission level, which includes high, medium and low, and update the cross-domain access data in the dynamic time window.
[0061] Specifically, the pre-trained access permission model is provided with two input ports, which are used to input cross-domain access data and verification result images respectively. A large amount of historical cross-domain access data and verification result images are used for training respectively, to optimize network parameters and output permission levels. The model structure used can refer to the existing deep learning network structure, which will not be elaborated in the present invention.
[0062] When the input is cross-domain access data, the rules for access permission model training can be: when the administrator account of other subsystems is granted access rights and frequently accesses from a fixed IP address within a period of time, its permission level is judged as "high"; when the administrator account of other subsystems accesses across domains for the first time, its permission level is judged as "medium"; when ordinary users of other subsystems attempt cross-domain access, or when the administrator account of other subsystems changes IP addresses in a short period of time or frequently accesses subsystems with low correlation, or the IP address is an unfamiliar or malicious address, its permission level is judged as "low". When the input is a verification result image, the rules for access permission model training can be: according to the degree of difference between the verification result image and the standard result image, the permission level is determined. The higher the degree of difference, the lower the permission level. When there are two inputs, the two permission level results are combined, that is, according to the preset comprehensive rules, the visitor's permission level is determined.
[0063] Among them, the preset comprehensive rules are set according to the actual scenario. In some other embodiments, the output of the access permission model can be set to a number or percentage to represent the level score of the access permission. Each permission level corresponds to a score range. The output result values corresponding to the two input ports are weighted and summed to obtain a comprehensive level score. The visitor's permission level is determined according to the score range in which the comprehensive level score falls.
[0064] S104, when the authority level is high, grant the visitor subsystem administrator access rights; when the authority level is medium, grant the visitor subsystem ordinary user access rights; when receiving an authority upgrade request or when the authority level is low, jump to step S105.
[0065] S105, prompting the visitor to perform dynamic image verification through the dynamic image verification mechanism set by the client, and obtaining the visitor verification result image.
[0066] The dynamic image verification mechanism set at the client is specifically used to: select a dynamic verification image from a pre-stored dynamic verification image library to prompt the visitor to perform a verification action, and obtain a final verification result image, which is used to further determine the visitor's access security.
[0067] S106, input the verification result image and the cross-domain access data in the dynamic time window into the access permission model, output the visitor's permission level and update its access permission.
[0068] Specifically, if the updated permission level is high, the visitor is granted access rights as a subsystem administrator; when the permission level is medium, the visitor is granted access rights as a normal user of the subsystem; when the permission level is low, an early warning message is generated and sent to the corresponding subsystem administrator.
[0069] The technical solutions in the above embodiments of the present application have at least the following technical effects or advantages:
[0070] Traditional access permission control methods often determine visitor access permissions based on cross-domain access data within a unified and fixed time period. Since different visitors may have different access rules or habits for different systems, a unified determination standard ignores the differences and variability of cross-domain access rules among visitors. Too much data input may cause resource congestion and waste, while too little data input may not be able to determine visitor permission levels more intuitively and comprehensively. By dynamically adjusting the length of the time window, the selection of cross-domain access data is more in line with the visitor's actual access habits and rules, avoiding too much or too little data input, which not only saves resources but also improves the personalization of cross-domain access data, making visitor access permission control more accurate. Combining dynamic image verification and cross-domain access data, using access permission models, the visitor's access security is determined in multiple dimensions, effectively preventing unauthorized access, improving work efficiency, and ensuring the information security of the system.
[0071] Embodiment 2: In embodiment 1, there is no specific selection criteria for the selection of dynamic verification images. Different visitors have different familiarity with the system and access habits. Random and unpredictable verification images may be too cumbersome for some visitors and too simple for other visitors. It is impossible to effectively prevent unauthorized access and it is impossible to perform personalized verification settings according to the actual situation of the visitor, resulting in the image verification link not playing a significant security defense role. Therefore, it is extremely critical to personalize the dynamic verification image according to the visitor's actual access behavior.
[0072] Therefore, the embodiments of the present application are optimized to a certain extent based on the above embodiments.
[0073] In some embodiments, in step S105, all dynamic verification images in the pre-stored dynamic verification image library are stored and classified according to their complexity, each storage classification corresponds to a difficulty coefficient interval, each dynamic verification image is assigned a unique number, and the dynamic image verification mechanism is used to select a dynamic verification image in the pre-stored dynamic verification image library to prompt the visitor to perform a verification action, specifically including:
[0074] S201, obtaining the cross-domain probability value and cross-domain trial and error value of the visitor within the dynamic time window, and calculating the verification difficulty coefficient value of the matching visitor according to the following formula: Among them, p is the verification difficulty coefficient value of matching visitors, G is the cross-domain probability value, and W is the cross-domain trial and error value. and They are the weight values of the influence of the cross-domain probability value and the cross-domain trial and error value on the difficulty coefficient value.
[0075] Specifically, the cross-domain probability value is the ratio of the number of cross-domain visits within the dynamic time window to the total number of visits (the sum of the number of cross-domain visits and the number of non-cross-domain visits), and the cross-domain trial and error value is the ratio of the number of successful verifications within the dynamic time window to the total number of verifications. The judgment of successful verification is set as: the visitor performs a verification action on the dynamic verification image, which enables him to obtain access rights to the corresponding subsystem.
[0076] It can be understood that when a visitor's cross-domain probability value is higher, it means that the frequency of his cross-domain access is higher, which means that the visitor has greater job responsibilities and needs to interact between multiple financial businesses frequently. Therefore, the verification difficulty coefficient value of matching the visitor is lower; when the visitor's cross-domain trial and error value is higher, it means that the visitor's historical dynamic image verification performance is better and the visitor has higher access security. Therefore, the verification difficulty coefficient value of matching the visitor is lower.
[0077] S202, selecting a dynamic verification image to prompt the visitor to perform a verification action according to the difficulty coefficient range into which the verification difficulty coefficient value of the matching visitor falls in the pre-stored dynamic verification image library.
[0078] The technical solutions in the above embodiments of the present application have at least the following technical effects or advantages:
[0079] The dynamic image verification mechanism is optimized by introducing the difficulty coefficient of the verification image, and the difficulty of the dynamic verification image is personalized according to the actual access behavior and cross-domain access rules of the visitor, so that the dynamic image verification mechanism has differentiation and personalization;
[0080] For visitors with low cross-domain probability values or poor historical verification performance, a dynamic verification image with a higher difficulty coefficient value is selected in a personalized manner to effectively prevent unauthorized access; for visitors with high cross-domain probability values or good historical verification performance, a dynamic verification image with a lower difficulty coefficient value is selected to improve user experience.
[0081] Example 3: With the development of automation tools and artificial intelligence technology, malicious attackers may use these technologies to bypass traditional manual dynamic image verification mechanisms, thereby automatically executing or cracking the corresponding verification mechanisms, posing a security threat to system access. At the same time, the existence of invalid verification behaviors will also lead to a waste of system resources and inaccurate access rights determination.
[0082] Therefore, the embodiments of the present application are optimized to a certain extent based on the above embodiments.
[0083] In some embodiments, the input end of the access permission model is connected to the output end of a pre-trained verification action validity judgment model, and the pre-trained verification action validity judgment model is used to determine the validity of the visitor's verification action performed on the dynamic verification image.
[0084] Specifically, the method for obtaining the pre-trained verification action validity judgment model is as follows: a training set is constructed based on the unique numbers of all dynamic verification images in a pre-stored dynamic verification image library and the completion time of the verification actions performed by historical users, and the training set is assigned a valid result label (valid, invalid) according to expert experience. The model is trained and the parameters are optimized using the training set, and finally a trained verification action validity judgment model is obtained, which is used to output the corresponding valid result label according to the unique number of the input dynamic verification image and the completion time of the verification action performed by the visitor.
[0085] In some embodiments, before step S106, the method further includes:
[0086] S301, obtain the unique number of the dynamic verification image corresponding to the visitor's verification result image and the completion time of the visitor's verification action, input them into the pre-trained verification action validity judgment model, and output the valid result label of the verification result image.
[0087] S302, when the valid result label of the verification result image is valid, execute step S106; otherwise, jump to step S202, update the dynamic verification image to prompt the visitor to perform the verification action again, obtain the verification result image, and repeat steps S301 to S302 until the number of times the visitor performs the verification action reaches the maximum attempt number threshold, and generate an early warning message and send it to the administrator of the subsystem.
[0088] The technical solutions in the above embodiments of the present application have at least the following technical effects or advantages:
[0089] By introducing the verification action validity judgment model, the validity of the verification action performed by the visitor is judged. According to the output result of the verification action validity judgment model, the access permission model controls whether the port used to input the verification result image is started. After the organic combination of the two models, malicious attackers are effectively prevented from completing the verification process by bypassing the verification mechanism through automated tools or cracking software, which improves the security of the system and effectively avoids the subsequent invalid judgment of invalid verification actions caused by the visitor's accidental touch or other reasons, thereby optimizing the use of model system resources.
[0090] In response to invalid verification actions, the dynamic verification image is updated in a limited number of times, effectively preventing automated tools from attempting to brute force the verification code. A new verification image is used to guide visitors to re-verify, avoiding subsequent meaningless input determination of access permission levels, and providing a more accurate and effective result verification image for level determination.
[0091] Embodiment 4: In embodiment 3, when the dynamic image verification mechanism faces multiple invalid verifications, it only replaces the dynamic verification image within the corresponding difficulty range. There is a lack of targeted difficulty adjustment strategies, resulting in insufficient reliability and security of the verification. A single verification image is very easy to be hacked by malware to break the human body verification rules and imitate the verification, thereby obtaining false verification information, resulting in granting access rights that do not meet the requirements of the visitor.
[0092] Therefore, the embodiments of the present application are optimized to a certain extent based on the above embodiments.
[0093] In some embodiments, in step S302, when the valid result label of the verification result image is invalid, the process jumps to step S202, and step S202 further includes:
[0094] When the visitor's last verification result image is invalid, a dynamic verification image sequence is constructed according to the preset difficulty coefficient gradient rule, and the dynamic verification image sequence is presented to the visitor in sequence to perform the verification action to obtain a verification result image sequence, and each verification result image in the verification result image sequence corresponds one-to-one to each dynamic verification image sequence in the dynamic verification image sequence.
[0095] In some embodiments, when the visitor's last verification result image is invalid, a dynamic verification image sequence is constructed according to a preset difficulty coefficient gradient rule, specifically including:
[0096] S401, determining the difficulty coefficient interval to which the verification difficulty coefficient value originally matched the visitor belongs as the reference interval, and selecting a preset number of difficulty coefficient intervals before and after the reference interval from the pre-stored dynamic verification image library as interference intervals.
[0097] Among them, all difficulty coefficient intervals in the dynamic verification image library are arranged in ascending order. In addition, the preset number can be gradually increased according to the number of invalid verifications of the visitor to enhance the security of the verification.
[0098] S402, selecting a dynamic verification image from the reference interval and each interference interval respectively, and sorting them in ascending order of the difficulty coefficient interval to which they belong to obtain an initial sequence.
[0099] S403, using a preset difficulty coefficient gradient rule to intervene in the initial sequence to obtain a dynamic verification image sequence.
[0100] Among them, the preset difficulty coefficient gradient rules are as follows:
[0101] C1. Obtain the number of times N that the current visitor's verification result image is invalid (less than the maximum attempt number threshold), and generate N jump paths.
[0102] Among them, each dynamic verification image in the initial sequence is assigned a unique position number in order, and each jump path consists of two position numbers, which is represented by the exchange of the positions of the corresponding two dynamic verification images. For example, assuming that the initial sequence is [A, B, C, D, E], the visitor has invalidated the verification twice, and when the second verification is invalid, two jump paths are generated, such as 2-4 and 1-5. First, B and D are exchanged to obtain [C, D, A, B, E], and then C and E are exchanged to obtain the final dynamic verification image sequence [E, D, A, B, C], thereby realizing the difficulty coefficient gradient rule, so that the more times the visitor invalidates the verification, the more complex and disordered the next verification difficulty coefficient gradient is, thereby improving the reliability of the visitor's security verification.
[0103] Specifically, the jump paths are formed by randomly selecting and combining two by two based on all position numbers in the initial sequence, and each jump path is ensured to be different.
[0104] C2. Use N jump paths to perform N exchange actions on the initial sequence respectively, and each jump path corresponds to one exchange action.
[0105] Specifically, the input of the verification action validity judgment model can also be: the unique number corresponding to each verification result image in the verification result image sequence, the completion time of the visitor's verification action, and the output of the valid result label of each verification result image. The effective rate (the percentage of effective numbers) is compared with the preset effective rate threshold to determine the effective result label of the verification result image sequence. For example, if the effective rate is greater than the preset effective rate threshold of 80%, the verification result image sequence is determined to be valid.
[0106] Similarly, the input of the access permission model can also be: each verification result image in the verification result image sequence, and the permission level result of each verification result image and the permission level result of cross-domain access data are combined to obtain the permission level of the final visitor. This invention will not be elaborated in detail.
[0107] The technical solutions in the above embodiments of the present application have at least the following technical effects or advantages:
[0108] According to the number of invalid verification actions of the visitor, the dynamic image verification mechanism is optimized, and a dynamic verification image sequence is generated. The sequence is sorted and intervened according to the difficulty coefficient gradient rule. The more invalid verifications a visitor has, the more complex and disordered the next verification difficulty coefficient gradient will be. This significantly increases the complexity of the verification image execution action and the difficulty of cracking it, making it difficult for software cracking tools to crack it through methods such as pattern recognition, thereby improving the reliability of visitor security verification and effectively obtaining their access rights.
[0109] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A data access permission control method, characterized in that: include: S101, obtaining historical cross-domain access data of visitors within a preset time period and a preset initial time window, and obtaining an access pattern change index according to the historical cross-domain access data; S102, determining a scaling factor according to the visitor's access pattern change index, and adaptively adjusting the initial time window to obtain a dynamic time window; S103, inputting the cross-domain access data within the dynamic time window into a pre-trained access permission model, outputting the access permission level of the visitor, which includes high, medium, and low, and updating the cross-domain access data within the dynamic time window; S104, when the permission level is high, grant the visitor subsystem administrator access rights; when the permission level is medium, grant the visitor subsystem ordinary user access rights; when receiving a permission upgrade request or when the permission level is low, jump to step S105; S105, prompting the visitor to perform dynamic image verification through the dynamic image verification mechanism set by the client, and obtaining the visitor's verification result image; S106, inputting the verification result image and the cross-domain access data in the dynamic time window into the access permission model, outputting the access permission level of the visitor and updating the access permission; The dynamic image verification mechanism is specifically used to: select a dynamic verification image from a pre-stored dynamic verification image library to prompt the visitor to perform a verification action, and obtain a verification result image; Among them, all dynamic verification images in the pre-stored dynamic verification image library are stored and classified according to their complexity, and each storage classification corresponds to a difficulty coefficient range. Selecting a dynamic verification image in the pre-stored dynamic verification image library prompts the visitor to perform a verification action, including: S201, obtaining the cross-domain probability value and cross-domain trial and error value of the visitor within the dynamic time window, and calculating the verification difficulty coefficient value of the matching visitor according to the following formula: Among them, p is the verification difficulty coefficient value of matching visitors, G is the cross-domain probability value, and W is the cross-domain trial and error value. and They are the weights of the cross-domain probability value and the cross-domain trial and error value on the difficulty coefficient value; S202, selecting a dynamic verification image to prompt the visitor to perform a verification action according to the difficulty coefficient range in which the verification difficulty coefficient value of the matching visitor falls in the pre-stored dynamic verification image library; Before S106, the method further includes: S301, obtaining the unique number of the dynamic verification image corresponding to the visitor's verification result image and the completion time of the visitor's verification action, inputting them into a pre-trained verification action validity judgment model, and outputting a valid result label of the verification result image, where the valid result label includes valid and invalid; S302, when the valid result label of the verification result image is valid, execute step S106; otherwise, jump to step S202, update the dynamic verification image to prompt the visitor to perform the verification action again, obtain the verification result image, and repeat steps S301 to S302 until the number of times the visitor performs the verification action reaches the maximum attempt number threshold, and generate an early warning message to send to the administrator of the subsystem; In the S302, when the valid result label of the verification result image is invalid, jump to step S202, and step S202 further includes: When the visitor's last verification result image is invalid, a dynamic verification image sequence is constructed according to a preset difficulty coefficient gradient rule, and the dynamic verification image sequence is presented to the visitor in sequence to perform the verification action, so as to obtain a verification result image sequence, wherein each verification result image in the verification result image sequence corresponds to each dynamic verification image sequence in the dynamic verification image sequence; When the visitor's last verification result image is invalid, a dynamic verification image sequence is constructed according to a preset difficulty coefficient gradient rule, specifically including: S401, determining the difficulty coefficient interval to which the verification difficulty coefficient value originally matched the visitor belongs as the reference interval, and selecting a preset number of difficulty coefficient intervals before and after the reference interval as interference intervals in the pre-stored dynamic verification image library; S402, selecting a dynamic verification image from the reference interval and each interference interval respectively, and sorting them in ascending order of the difficulty coefficient interval to which they belong to obtain an initial sequence; S403, using a preset difficulty coefficient gradient rule to intervene in the initial sequence to obtain a dynamic verification image sequence.
2. The data access permission control method according to claim 1, characterized in that: The cross-domain access data includes the access time and access duration of each cross-domain access. The access pattern change index obtained according to the historical cross-domain access data specifically includes: A1. According to the historical cross-domain access data of the preset time period and the preset initial time window, the cross-domain access frequency and cross-domain access duration situation value of the preset time period and the preset initial time window are obtained respectively; A2. Calculate the access pattern change index according to the following formula: in, is the access pattern change index, and They are the cross-domain access frequency and cross-domain access duration status values in the preset time period. and They are the cross-domain access frequency and cross-domain access duration situation values of the preset initial time window, and They are the weight values of the impact of the cross-domain access frequency and cross-domain access duration situation values on the access pattern change index.
3. The data access permission control method according to claim 1, characterized in that: The S102 specifically includes: B1. Based on the preset change index interval, obtain a stretch factor: when the access mode change index is greater than the upper limit of the interval, obtain a stretch factor a; when the access mode change index is less than the lower limit of the interval, obtain a stretch factor b; otherwise, obtain a stretch factor 1, a>1 and 0<b<1; B2. Multiply the expansion factor by the length of the initial time window to obtain the length of the dynamic time window, which replaces the initial time window.
4. The data access permission control method according to claim 1, characterized in that: The cross-domain probability value is the ratio of the number of cross-domain visits to the total number of visits within the dynamic time window, the cross-domain trial and error value is the ratio of the number of successful verifications to the total number of verifications within the dynamic time window, and the judgment of successful verification is set as: the visitor performs a verification action on the dynamic verification image, which enables him to obtain access rights to the corresponding subsystem.
5. The data access permission control method according to claim 1, characterized in that: The input end of the access permission model is connected to the output end of a pre-trained verification action validity judgment model, and the pre-trained verification action validity judgment model is used to determine the validity of the visitor's verification action performed on the dynamic verification image.
6. The data access permission control method according to claim 1, characterized in that: The preset difficulty coefficient gradient rule is specifically: C1. Obtain the number of times the current visitor's verification result image is invalid, and generate N jump paths; C2, use N jump paths to perform N exchange actions on the initial sequence respectively, and each jump path corresponds to one exchange action; Among them, each dynamic verification image in the initial sequence is assigned a unique position number in order, and each jump path consists of two position numbers, which is represented by the exchange of the positions of the corresponding two dynamic verification images; the jump path is formed by randomly selecting and combining two by two based on all the position numbers in the initial sequence.
Citation Information
Patent Citations
Dynamic cross-domain access control method based on trust valuation mechanism
CN101729321A
Cross-domain authorized access control system for safe interoperation between different domains
CN111314318A
Self-adaptive cross-domain access authentication method and system, terminal and storage medium
CN113676455A
Cross-domain picture propagation access control method and system based on block chain
CN113938477A
Database authority management system and method
CN117874826A
