Authorization and authentication engine generation method based on secure access control knowledge graph
Through the authorization and authentication engine generation method based on the security access control knowledge graph, the ROBERTA-BiLSTM-CRF and LR-SpERT models are used to identify and extract access control information, build RDF triples and optimize storage, solving the difficulty of manually sorting out data access control. problems, improving system security efficiency and reducing configuration costs.
Patent Information
- Application Number
- CN202111562301.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-20
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2041-12-20
AI Technical Summary
In the existing technology, it is difficult to manually sort out data access control, resulting in high access configuration costs and low system security efficiency.
An authorization and authentication engine generation method based on the security access control knowledge graph is adopted, the access control statement is identified through the ROBERTA-BiLSTM-CRF model, and the Transformer's joint extraction model LR-SpERT is used to jointly extract attribute information, construct an RDF triple, and store it in The neo4j graph database builds an authorization and authentication engine, and optimizes storage and authentication responses through interval decision trees.
It greatly reduces the workload of manual authorization and authentication, improves system security efficiency, and reduces access control configuration costs.
Smart Images

Figure CN114444116B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of artificial intelligence technology and relates to a method for generating an authorization and authentication engine based on a security access control knowledge graph. Background Art
[0002] Since big data was proposed by McKinsey, big data and its related technologies have penetrated into every industry and business function today. With the rapid development of computer technologies such as cloud computing and artificial intelligence and the increasingly mature information industry environment, the efficiency of data sharing and utilization has increased, and the business volume of data analysis and database processing has increased day by day, resulting in more and more data access requests. As the global demand for data increases, data security governance has not received enough attention, resulting in frequent data security incidents and even the abuse or theft of well-managed data. Among them, employees who have important and valuable data may illegally disseminate these sensitive, protected, and commercially valuable data through network transmission, terminal peripherals, storage devices, photography, etc., and then seek profits.
[0003] Access control technology is an important means to ensure data security in the process of data sharing. It was originally designed to prevent unauthorized access to computer system resources. Later, with the development of software technology, it also refers to a technology that provides authorized subjects with access to certain objects, denies unauthorized subjects access to objects, or restricts the right to use functions. At present, access control is done through manual data access control. Since manual data access control is difficult, it results in high access configuration costs and low system security efficiency. Summary of the invention
[0004] The purpose of the present invention is to provide a method for generating an authorization authentication engine based on a security access control knowledge graph, which solves the problem of difficulty in manually combing data access control work in the prior art.
[0005] The technical solution adopted by the present invention is a method for generating an authorization authentication engine based on a secure access control knowledge graph, which is specifically implemented according to the following steps:
[0006] Step 1: Read the specification documents in the system log and project specification text in the cloud platform, and pre-process the corpus information of the access control statement;
[0007] Step 2: Input the preprocessed content in step 1 into the ROBERTA-BiLSTM-CRF model to identify the access control statements; perform domain secondary pre-training and Span-NER corpus task secondary pre-training on the corpus information of the identified access control statements, and input them into the Transformer-based joint extraction model LR-SpERT to perform attribute information joint extraction;
[0008] Step 3: Analyze the access control statements and attribute information identified in step 2 to represent their security features and security labels;
[0009] Step 4: Match the entity data and relationship data in the access control scenario data marked with security tags in step 3 to form an RDF triple in the form of "entity-relationship-entity";
[0010] Step 5: Store the RDF triples obtained in step 4 into the neo4j graph database to obtain a security access control knowledge graph;
[0011] Step 6: Use the security access control knowledge graph obtained in step 5 to establish an authorization and authentication engine;
[0012] Step 7: Perform storage optimization and authentication response optimization on the authorization and authentication engine established in step 6 to complete the generation of the authorization and authentication engine based on the security access control knowledge graph.
[0013] The present invention is also characterized in that:
[0014] Step 1 is specifically implemented as follows: access the system logs and specification documents in the project specification text in the cloud platform, preprocess their corpus information, clean the text, separate punctuation marks in the text, and divide the text with periods.
[0015] Step 2 is specifically implemented as follows: Input the preprocessed content in step 1 into the model trained using the ROBERTA-BiLSTM-CRF algorithm to identify access control statements; perform domain secondary pretraining on the corpus information using bidirectional word masking and the segmentation and combination of the upper and lower sentences in the pretrained model BERT, perform secondary pretraining on the corpus information for the Span-NER corpus task in the pretrained model BERT, and input the secondary pretrained corpus information into the LR-SpERT joint extraction model to train the parameters of the grid embedding, relative position embedding, label classifier, and relationship classifier. Input the pretrained corpus information into the trained model to perform joint extraction of attribute information to obtain entities and relationships.
[0016] Step 3 is specifically implemented as follows: Analyze the security data of the corpus information of the access control scenario to represent its security features and security labels; use the given defined data range to represent the classified security features to identify data attributes, the column security features determined by the data table columns and the row security features determined by the data table rows.
[0017] Step 5 is specifically implemented as follows: store the RDF triples obtained in step 4 into a csv file, move the csv file to the import directory of neo4j, use the neo4j-import statement to import the csv file information of the RDF triples into the neo4j graph database, and neo4j visualizes the security access control knowledge graph.
[0018] Step 6 is specifically implemented as follows: the security access control knowledge graph obtained in step 5 covers all entities and relationships in the specification text, and the authorization method in the established authorization authentication engine is: if the security feature element in the security access control knowledge graph represents a range equal to the input security feature element, data access is allowed; otherwise, access is denied and authorization is completed;
[0019] The authentication method in the established authorization and authentication engine is: if the input data is parsed to be empty and the data table is not protected by the security policy, that is, the data table is not associated with any security policy, therefore, access is allowed; if the input data is not empty after parsing, and the data table is protected by the security policy, if the input data does not contain any security features about the data table columns after parsing, it means that the data table has access restrictions but no corresponding permissions, therefore, access is denied; if the input data is not empty after parsing, the data table is protected by the security policy, and the input data contains security features of the security access control knowledge graph after parsing, if the input data does not contain any security features about the data table rows after parsing, that is, no filter expression is generated from the rule, then it is assumed that there is no access restriction on the data table rows at present, therefore, the next step of judgment is allowed and there is no need to compare the row security features; if the input data is not empty after parsing, and the data table is protected by the security policy, if the SQL statements are all empty after parsing, it means that the SQL syntax is wrong, therefore, the authentication process is terminated and access is denied.
[0020] The beneficial effects of the present invention are as follows: the authorization and authentication engine generation method based on the security access control knowledge graph solves the problems of difficulty in manually combing data access control and low efficiency of system security assurance in the prior art, and greatly reduces the workload of manual authorization and authentication. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 It is a general flow chart of the authorization authentication engine generation method based on the security access control knowledge graph of the present invention;
[0022] Figure 2 It is a BiLSTM structure diagram for identifying access control statements in the authorization authentication engine generation method based on the security access control knowledge graph of the present invention;
[0023] Figure 3It is the authentication response process in the authorization authentication engine generation method based on the security access control knowledge graph of the present invention;
[0024] Figure 4 It is an interval decision tree that is stored and optimized in the authorization and authentication engine generation method based on the security access control knowledge graph of the present invention;
[0025] Figure 5 It is an interval decision tree for authentication optimization in the authorization authentication engine generation method based on the security access control knowledge graph of the present invention. DETAILED DESCRIPTION
[0026] The present invention is described in detail below with reference to the accompanying drawings and specific embodiments.
[0027] The invention provides a method for generating an authorization authentication engine based on a secure access control knowledge graph, such as Figure 1 As shown, the specific implementation steps are as follows:
[0028] Step 1: Read the specification documents in the system log and project specification text in the cloud platform, and pre-process the corpus information of the access control statement;
[0029] Step 1 is specifically implemented as follows: access the system logs and specification documents in the project specification text in the cloud platform, preprocess their corpus information, clean the text, separate punctuation marks in the text, and divide the text with periods.
[0030] Step 2: Input the preprocessed content in step 1 into the ROBERTA-BiLSTM-CRF model to identify the access control statements; perform domain secondary pre-training and Span-NER corpus task secondary pre-training on the corpus information of the identified access control statements, and input them into the Transformer-based joint extraction model LR-SpERT to perform attribute information joint extraction;
[0031] like Figure 2 Therefore, access control statement recognition is implemented as follows:
[0032] 1. Introduce the pre-trained model ROBERTA;
[0033] 1.1 Part-of-speech tagging is performed on the text cleaned in the specific implementation step 1, and the present invention adopts the BIO tagging mode;
[0034] 2. Set train_batch_size (training batch size) to 8;
[0035] 3. Connect to the BiLSTM layer;
[0036] 4. Use three control switches, Input Gate, Forget Gate, and Output Gate to control the long-term state of the LSTM (Long Short-Term Memory) network;
[0037] 5. Use candidate cell parameters to maintain the state of the long short-term memory network;
[0038] 6. Connect to CRF layer;
[0039] 7. Input the preprocessed access control statement training set to train the access control statement recognition model;
[0040] 8. Return the trained access control statement recognition model;
[0041] 9. Input the prepared recognition corpus information into the model;
[0042] 10. Return the access control statement;
[0043] Step 2 is specifically implemented as follows: the content preprocessed in step 1 is input into the model trained using the ROBERTA-BiLSTM-CRF algorithm to identify the access control statements;
[0044] In the pre-trained model BERT, the corpus information is pre-trained twice in the domain by using bidirectional word masking and the segmentation and combination of the upper and lower sentences. In the pre-trained model BERT, the corpus information is pre-trained twice on the Span-NER corpus task. The pre-trained corpus information is input into the LR-SpERT joint extraction model to train the parameters of grid embedding, relative position embedding, label classifier, and relationship classifier. The pre-trained corpus information is input into the trained model to extract attribute information jointly to obtain entities and relationships.
[0045] Specifically, the joint extraction of attribute information is implemented as follows:
[0046] 1. In the pre-trained model BERT, bidirectional word masking and domain secondary pre-training (DAPT) are used to segment and combine the upper and lower sentences in the corpus information;
[0047] 1.1 Use a bidirectional mask word pre-training scheme to allow the token to focus on the bidirectional text content before and after it;
[0048] 1.2 The training corpus was segmented and combined into the upper and lower sentences, and the second half sentence prediction task was trained;
[0049] 2. Perform task-based secondary pre-training (TAPT) of Span-NER corpus on the corpus information in the pre-trained model BERT;
[0050] 2.1 Construct the Span-NER dataset and input it into the model to learn the boundary rules of span classification and represent it in the latent vector;
[0051] 2.2 Save the BERT part of the LR-SpERT model and the subsequent Transformer part;
[0052] 3. Input to the LR-SpERT joint extraction model to train the parameters of lattice embedding, relative-position embedding, span classifier, and relationclassifier;
[0053] 4. Return the trained attribute information joint extraction model;
[0054] 5. Input the pre-trained corpus information into the trained model;
[0055] 6. Return the entities and relationships;
[0056] Step 3: Analyze the access control statements and attribute information identified in step 2 to represent their security features and security labels;
[0057] Step 3 is specifically implemented as follows: Analyze the security data of the corpus information of the access control scenario to represent its security features and security labels; use the given defined data range to represent the classified security features to identify data attributes, the column security features determined by the data table columns and the row security features determined by the data table rows.
[0058] Specifically: Analyze the security data of the corpus information of the access control scenario to represent its security features and security labels. Use the given defined data range to represent the classified security features, which are used to identify data attributes. The column security features are determined by the data table columns, and the row security features are determined by the data table rows. The security labels used are composed of the specific values (security feature elements) of the security features contained in the security policy. In order to distinguish between column security labels and row security labels, the labels are divided into user labels (subject labels) and data labels (object labels) according to the different label holders. It is used to describe the identifier of a specific set of permissions. The security label is the entity concept that is ultimately used for permission matching.
[0059] Step 4: Match the entity data and relationship data in the access control scenario data marked with security tags in step 3 to form an RDF triple in the form of "entity-relationship-entity"; thereby representing the policy triple, i.e., security permissions, and obtaining security policy information.
[0060] Step 5: Store the RDF triples obtained in step 4 into the neo4j graph database to obtain a security access control knowledge graph;
[0061] Step 5 is specifically implemented as follows: store the RDF triples obtained in step 4 into a csv file, move the csv file to the import directory of neo4j, use the neo4j-import statement to import the csv file information of the RDF triples into the neo4j graph database, and neo4j visualizes the security access control knowledge graph.
[0062] The triplet visualization is implemented as follows:
[0063] Input: RDF triples of matching entity-relationship-entity;
[0064] Output: security access control knowledge graph;
[0065] 1. The integrated RDF triples are stored in a csv file;
[0066] 2. Move the csv file to the import directory of neo4j;
[0067] 3. Use the neo4j-import statement to import the csv file information of the RDF triples into the neo4j graph database;
[0068] 4. neo4j visualizes the security access control knowledge graph;
[0069] Step 6: Use the security access control knowledge graph obtained in step 5 to establish an authorization and authentication engine;
[0070] Step 6 is specifically implemented as follows: the security access control knowledge graph obtained in step 5 covers all entities and relationships in the specification text, and the authorization method in the established authorization authentication engine is: if the security feature element in the security access knowledge graph represents a range equal to the input security feature element, data access is allowed; otherwise, access is denied and authorization is completed;
[0071] Authorized Example:
[0072] For example, there are two data table administrators, including A1 (table 1 administrator) and A2 (table 2 and table 3 administrator). A1 can assign security labels to the data table 1 it manages, and can also assign security labels to users who need to access data table 1 to determine the specific data range of data table 1 that users can access. Similarly, A2 can assign security labels to data tables 2 and 3, and can also assign security labels to users who need to access data tables 2 and 3. User labels (UL) and data labels (DL) are input parameters of the authentication function. Assume that there is a security feature element e1 after the data label (DL) is parsed, and there is a security feature element e2 in the user label (UL) that belongs to the same security feature as e1. If e1 indicates that the range is equal to e2 (or e2 has a higher priority, that is, it indicates a larger data range), the user is allowed to access the data. When the accessible data range is the range of the current operation request, an authorization method is proposed for the security access control knowledge graph so that all entities and relationships in the specification text are covered.
[0073] The authentication method in the established authorization and authentication engine is: if the input data is parsed to be empty and the data table is not protected by the security policy, that is, the data table is not associated with any security policy, therefore, access is allowed; if the input data is not empty after parsing, and the data table is protected by the security policy, if the input data does not contain any security features about the data table columns after parsing, it means that the data table has access restrictions but no corresponding permissions, therefore, access is denied; if the input data is not empty after parsing, the data table is protected by the security policy, and the input data contains security features of the security access control knowledge graph after parsing, if the input data does not contain any security features about the data table rows after parsing, that is, no filter expression is generated from the rule, then it is assumed that there is no access restriction on the data table rows at present, therefore, the next step of judgment is allowed and there is no need to compare the row security features; if the input data is not empty after parsing, and the data table is protected by the security policy, if the SQL statements are all empty after parsing, it means that the SQL syntax is wrong, therefore, the authentication process is terminated and access is denied.
[0074] like Figure 3 As shown in the figure, the security access control knowledge graph covers all entities and relationships in the specification text, and the authentication method is implemented as follows:
[0075] 1. If the user tag resolves to empty and the data table is not protected by a security policy, that is, the data table is not associated with any security policy, therefore, access is allowed
[0076] 2. If the user tag is not empty after parsing, and the data table is protected by security policies, if the user tag does not contain any security features about the data table columns after parsing, it means that the data table has access restrictions, but the user does not have the corresponding permissions. Therefore, access is denied.
[0077] 3. If the user tag is not empty after parsing, the data table is protected by security policies, and the user tag contains column security features after parsing (the conditions for early termination of judgment are not met), if the user tag does not contain any security features about the data table row after parsing, that is, no filter condition expression is generated from the rule, then it is assumed that the current user has no access restrictions on the data table row. Therefore, the next step of judgment is allowed without comparing row security features.
[0078] 4. If the user tag is not empty after parsing, and the data table is protected by security policies, if both the "query column" and the "condition column" are empty after the SQL statement is parsed, it means that the SQL syntax is wrong. Therefore, the authentication process is terminated and access is denied.
[0079] Step 7: Perform storage optimization and authentication response optimization on the authorization and authentication engine established in step 6 to complete the generation of the authorization and authentication engine based on the security access control knowledge graph.
[0080] like Figure 4 As shown in the figure, storage optimization is implemented as follows:
[0081] I establish interval decision tree input;
[0082] 1. If the user tag is empty && the requested data table is not protected by a security policy;
[0083] 2. Allow access;
[0084] 3.else;
[0085] 4. Protected, access denied;
[0086] 5. Filter data items and values whose data values are numerical types;
[0087] 6. Classify the data item value set A according to data item I;
[0088] 7. The average value M of all data values of the data item;
[0089] 8. Divide the data item value in A into two parts according to M;
[0090] Left: Values less than M are sorted in descending order;
[0091] Right: Values greater than M are sorted in ascending order;
[0092] Ⅱ Establish interval decision tree;
[0093] 1. Take M as the root node (the root node represents the data range of I=M);
[0094] 2. The left subtree is established;
[0095] 3. The right subtree is established;
[0096] ⅢInterval decision tree optimization;
[0097] 1. Starting from the root node, if the symbols of the branch path range exist as "less than greater than less than" (<><) or "greater than less than" (><>), prune the branches representing the range conflict;
[0098] Authentication response optimization, such as Figure 5 As shown in the figure, when the interval decision tree is split, the security feature element corresponding to the split interval range is continued to be searched in the left branch and the right branch of the current node respectively. When the data range represented by the security feature element is the interval [A, B], when searching for the corresponding security feature element, a node data value is Q, and there is a situation where the interval needs to be split.
[0099] Specifically:
[0100] Interval decision tree splitting:
[0101] 1. When A is greater than Q, that is, the data value of the current node is less than the lower bound of the interval, no splitting is required;
[0102] 2. When B is less than Q, that is, the data value of the current node is greater than the upper limit of the interval, and no splitting is required;
[0103] 3. When Q is greater than A and less than B, that is, Q is between the intervals, the interval range needs to be split into [A, Q] and [Q, B].
[0104] The invention solves the problems of the difficulty of manually combing data access control and the low efficiency of system security protection in the prior art by generating an authorization and authentication engine based on the security access control knowledge graph. The ROBERTA-BiLSTM-CRF model is used to identify access control statements; the joint extraction model LR-SpERT is used to automatically and jointly extract entities and relationships; a representation method for security features and security labels is proposed to represent and store policy triples, and a security access control knowledge graph model is constructed; an authorization and authentication method based on the security access control knowledge graph is proposed, and finally all entities and relationships in the specification text are covered, thereby constructing an authorization and authentication engine; and an interval decision tree is used to optimize the storage and authentication of the engine. The workload of manual authorization and authentication is greatly reduced.
Claims
1. A method for generating an authorization and authentication engine based on a secure access control knowledge graph, characterized in that: Follow the steps below to implement it: Step 1: Read the specification documents in the system log and project specification text in the cloud platform, and pre-process the corpus information of the access control statement; Step 2: Input the preprocessed content in step 1 into the ROBERTA-BiLSTM-CRF model to identify the access control statements; perform domain secondary pre-training and Span-NER corpus task secondary pre-training on the corpus information of the identified access control statements, and input them into the Transformer-based joint extraction model LR-SpERT to perform attribute information joint extraction; Step 3: Analyze the access control statements and attribute information identified in step 2 to represent their security features and security labels; Step 4: Match the entity data and relationship data in the access control scenario data marked with security tags in step 3 to form an RDF triple in the form of "entity-relationship-entity"; Step 5: Store the RDF triples obtained in step 4 into the neo4j graph database to obtain a security access control knowledge graph; Step 6: Use the security access control knowledge graph obtained in step 5 to establish an authorization and authentication engine; Step 7: Perform storage optimization and authentication response optimization on the authorization and authentication engine established in step 6 to complete the generation of the authorization and authentication engine based on the security access control knowledge graph.
2. The method for generating an authorization authentication engine based on a secure access control knowledge graph according to claim 1, characterized in that: The step 1 is specifically implemented as follows: accessing the system logs and the standard documents in the project standard text in the cloud platform, preprocessing the corpus information, cleaning the text, separating the punctuation marks in the text, and dividing the text with periods.
3. The method for generating an authorization authentication engine based on a secure access control knowledge graph according to claim 1, characterized in that: The step 2 is specifically implemented as follows: the content preprocessed in step 1 is input into the model trained using the ROBERTA-BiLSTM-CRF algorithm to identify access control statements; in the pre-trained model BERT, the corpus information is subjected to secondary domain pre-training using bidirectional word masking and the segmentation and combination of the upper and lower sentences, and the corpus information is subjected to secondary task pre-training of the Span-NER corpus in the pre-trained model BERT, and the secondary pre-trained corpus information is input into the LR-SpERT joint extraction model to train the parameters of the grid embedding, relative position embedding, label classifier, and relationship classifier; the pre-trained corpus information is input into the trained model to perform joint extraction of attribute information to obtain entities and relationships.
4. The method for generating an authorization authentication engine based on a secure access control knowledge graph according to claim 1, characterized in that: The step 3 is specifically implemented as follows: analyzing the security data of the corpus information of the access control scenario to represent its security features and security labels; using the given defined data range to represent the classified security features to identify data attributes, the column security features determined by the data table columns and the row security features determined by the data table rows.
5. The method for generating an authorization authentication engine based on a secure access control knowledge graph according to claim 1, characterized in that: The step 5 is specifically implemented as follows: storing the RDF triples obtained in step 4 into a csv file, moving the csv file to the import directory of neo4j, using the neo4j-import statement to import the csv file information of the RDF triples into the neo4j graph database, and neo4j visualizes the security access control knowledge graph.
6. The method for generating an authorization authentication engine based on a secure access control knowledge graph according to claim 1, characterized in that: The authorization method in the authorization authentication engine established in step 6 is: if the security feature element in the security access control knowledge graph represents a range equal to the input security feature element, data access is allowed; Otherwise, access is denied and authorization is completed; The authentication method in the established authorization and authentication engine is: if the input data is parsed to be empty and the data table is not protected by the security policy, that is, the data table is not associated with any security policy, therefore, access is allowed; if the input data is not empty after parsing, and the data table is protected by the security policy, if the input data does not contain any security features about the data table columns after parsing, it means that the data table has access restrictions but no corresponding permissions, therefore, access is denied; if the input data is not empty after parsing, the data table is protected by the security policy, and the input data contains security features of the security access control knowledge graph after parsing, if the input data does not contain any security features about the data table rows after parsing, that is, no filter condition expression is generated from the rule, then it is assumed that there is no access restriction on the data table rows at present, therefore, the next step of judgment is allowed without comparing the row security features; If the input data is not empty after parsing, and the data table is protected by the security policy, if the SQL statement is empty after parsing, it means that the SQL syntax is wrong. Therefore, the authentication process is terminated and access is denied.
Citation Information
Patent Citations
Chinese named entity recognition method based on reading understanding
CN112101027A
Dynamic updating method and device for power grid dispatching knowledge graph
CN112905804A
Security event entity recognition method based on pre-training model
CN113312914A
Track traffic specification entity recognition method based on directory theme classification
CN113642330A
Knowledge graph creation method, device, and system
WO2018072563A1
Cited By
Knowledge base and knowledge graph dynamic access control method and system based on AI classification and grading
CN121580423A
