Intelligent evaluation system for equal protection process based on AI large model

By combining a LoRA-tuned large-scale model specifically for cybersecurity level protection with a graph constraint mask matrix, the problem of unstable attention weights in large language models during cybersecurity level protection assessments was solved, achieving consistency and accuracy in control item judgment results and reducing the workload of manual review.

CN123139277APending Publication Date: 2026-11-20HANGZHOU ANXIN TESTING TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611301845.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-26
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

In existing technologies, large language models suffer from unstable attention weight allocation during the self-attention calculation stage in cybersecurity level protection assessments. This leads to significant fluctuations in the judgment results of the same control item under different evidence inputs. Furthermore, knowledge graphs fail to effectively distinguish between mandatory national standards and recommended constraints, affecting the consistency and accuracy of assessment results.

Method used

The large-scale model dedicated to information security protection is fine-tuned by LoRA low-rank adaptation. It combines two types of mask matrices: mandatory lower bound and recommended soft weighting, generated by graph constraint mask. The scheduling module introduces LoRA fine-tuning to update parameters with graph constraint mask as the regularization term. The multimodal evidence parsing module binds the evaluation index number. The risk reasoning module applies the mask matrix to intervene in the attention score during the self-attention calculation stage. The report generation module performs cross-chapter verification.

Benefits of technology

It improves the consistency of judgment results for the same control item under different evidence inputs, reflects the semantic hierarchy differences between mandatory and recommended constraints in national standards, reduces the workload of manual review, and enhances the accuracy and stability of evaluation results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123139277A_ABST
    Figure CN123139277A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of network security level protection evaluation, in particular to an AI big model-based equal protection full-process intelligent evaluation system, which comprises a big model scheduling module, a knowledge graph construction module and the like, wherein the big model scheduling module is used for scheduling an equal protection special big model which is fine-tuned through LoRA low-rank adaptation, the LoRA fine-tuning takes a graph constraint mask as a regular term to constrain parameter updating, the knowledge graph construction module is used for calling the big model to analyze national standard extraction evaluation objects, control items and compliance threshold entities, identifying forced dependencies and recommended correlations between entities, and constructing a double-layer equal protection knowledge graph, in the application, the graph constraint mask is added as a regular term into a LoRA fine-tuning loss function in a training stage, so that the LoRA parameter updating direction is aligned with the graph constraint, and the mask matrix and the aligned model parameters are cooperatively effective in an inference stage. The application solves the problem that an external mask and internal parameters of a big model are not jointly optimized and the constraint effect is unstable in the prior art, and the consistency of judgment results of the same control item under different evidence inputs is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of cybersecurity level protection assessment technology, and in particular to an intelligent assessment system for the entire level protection process based on an AI big data model. Background Technology

[0002] The cybersecurity level protection assessment, based on GB / T 22239, verifies each security control item of the tested information system, outputting compliance conclusions, risk levels, and rectification suggestions. Large language models have been introduced into this field to parse standard text, identify assessment evidence, and generate assessment reports, thereby reducing manual workload.

[0003] Existing technical solutions have several problems. For example, knowledge graphs are only used as reference information at the input end of large models, and entity embedding vectors are concatenated with text vectors before being input into the model. Large models can still freely allocate attention weights during the self-attention calculation stage. When the semantics of the evidence text conflict with the mandatory constraints of the knowledge graph, the model may arrive at conclusions inconsistent with national standards based on statistical patterns in the pre-training data. For instance, if a national standard requires a control item to "should" use two-factor authentication, but evidence shows the system only uses password authentication, the model may determine it as partially compliant rather than non-compliant due to the high proportion of single-factor authentication scenarios in historical cases. Furthermore, some solutions use external attention mask matrices during inference, but these matrices are pre-generated based on the knowledge graph structure and are unrelated to the internal attention distribution formed by the large model through pre-training and fine-tuning. When the constraints imposed by the mask conflict with the model's own attentional tendencies, the model can bypass the mask through other attention heads or nonlinear transformations of deep networks, causing the constraints to fail in the actual output. This results in significant fluctuations in the judgment results for the same control item under different evidence inputs. Moreover, the national standard for information security protection divides control items into two categories: "should" (mandatory) and "should be" (recommended), with fundamentally different constraint effectiveness. Existing knowledge graphs typically classify relation types according to semantic relationships (such as belonging, dependency, mutual exclusion), without binding them to the mandatory / recommended semantics of national standards. During inference, both types of control items are subject to equal constraints, leading to over-constraint of recommended items that limits the flexibility of industry practice, or insufficient constraints of mandatory items that cause the model to ignore mandatory requirements. Summary of the Invention

[0004] To address the technical problems existing in the prior art, embodiments of the present invention provide an intelligent evaluation system for the information security compliance process based on an AI large-scale model, including: The large model scheduling module is used to schedule large-scale models dedicated to information security protection that have been fine-tuned by LoRA low-rank adaptation. The LoRA fine-tuning updates the regularization constraint parameters using the graph constraint mask as the regularization term. The knowledge graph construction module is used to call large models to parse national standards to extract evaluation objects, control items, and compliance threshold entities, identify mandatory dependencies and recommended associations between entities, and construct a two-layer information security compliance knowledge graph. The graph constraint attention mask generation module is used to align graph entities with tokens and generate two mask matrices, a forced lower bound and a recommended soft weighting, based on the two layers of edges respectively. The multimodal evidence parsing module is used to collect multimodal raw evidence, normalize it, extract and bind the evaluation index numbers, and then input them into the large model for classification. The risk reasoning module is used in the self-attention calculation stage to apply the two mask matrices element by element to the attention score and output the weights through softmax. It forces the weight of the token pair corresponding to the edge to be no less than the mask threshold, recommends the weight of the token pair corresponding to the edge according to the mask coefficient, and outputs the compliance conclusion and risk level. The report generation and review module is used to generate structured reports and determine the effectiveness of rectification.

[0005] As a further aspect of the present invention, in the large model scheduling module, the LoRA fine-tuning training data source includes three categories: information security standards, past evaluation cases, and industry rectification documents. The fine-tuning process uses the accuracy of control item entity recognition, the accuracy of forced dependency extraction, and the accuracy of compliance judgment logic as joint optimization objectives.

[0006] As a further aspect of the present invention, in the graph-constrained attention mask generation module, the entity and token alignment method is as follows: after the entity description text is segmented by the large model, the first token is taken as the entity anchor token; in the forced lower bound mask matrix, the corresponding positions of the anchor tokens at both ends of the forced edge are set to the mask threshold, and the remaining positions are set to zero; in the recommended soft weighted mask matrix, the corresponding positions of the anchor tokens at both ends of the recommended edge are set to the mask coefficient, and the remaining positions are set to zero; the dimensions of the two matrices are consistent with the self-attention weight matrix of the large model.

[0007] As a further aspect of the present invention, in the large model scheduling module, the loss function is a weighted sum of the original task loss of the large model and the graph constraint regularization term; the graph constraint regularization term calculates the deviation between the actual update amount of the forced edge association parameter and the mask threshold, and the deviation between the actual update amount of the recommended edge association parameter and the mask coefficient, and applies the deviation gradient to the LoRA low-rank matrix through backpropagation.

[0008] As a further aspect of the present invention, it also includes an adaptive index matching module, which calls the multi-task scenario classification head of the large model to identify four types of systems: cloud computing, big data, medical, and Internet of Things. Each type of system is pre-configured with a corresponding subset of graded protection extended evaluation indicators. When the tested system hits multiple scenarios at the same time, the union of each subset is taken and injected into the inference context, and the graph entity range is expanded and the mask matrix dimension is updated according to the extended index set.

[0009] As a further aspect of the present invention, in the risk reasoning module, if the mandatory edge-associated control item is determined to be non-compliant by the large model, the risk level is directly increased by at least one level; if the comprehensive score of the recommended edge-associated control item is lower than the threshold, the risk level is adjusted according to the score difference ratio.

[0010] As a further aspect of the present invention, in the report generation and review module, after the report is generated, the large model uses the control item entity as the semantic anchor point to verify the consistency of the control item evaluation conclusions and the rationality of the risk level-rectification suggestion matching across chapters, marks logical contradictions and outputs correction prompts.

[0011] As a further aspect of the present invention, in the report generation and review module, the determination of the effectiveness of rectification is as follows: the large model calculates the semantic similarity between the rectification plan and the historical standard template to obtain the rectification coverage; the re-reasoning of the retest evidence yields the retest compliance; the rectification coverage and the retest compliance are multiplied to obtain a comprehensive value; when the comprehensive value reaches a preset threshold and the retest compliance alone reaches the minimum threshold, a standardized rectification confirmation form is output; when the retest compliance contradicts the initial test conclusion, the original evidence backtracking verification of the corresponding control item is triggered.

[0012] The present invention also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, performs the following steps: The LoRA-tuned dedicated large model for information security compliance is used to parse the national standard and construct a two-layer information security compliance knowledge graph; Align the graph entities with the tokens to generate two mask matrices: a forced lower bound and a recommended soft weighting. Collect multimodal raw evidence, normalize and extract the bound evaluation index numbers, and then input them into the large model for classification; During the self-attention calculation phase, the two mask matrices are applied element by element to the attention weights to output compliance conclusions and risk levels. Generate a structured evaluation report and determine the effectiveness of the rectification.

[0013] Compared with the prior art, the advantages and positive effects of the present invention are as follows: In this invention, during the training phase, the graph constraint mask is added as a regularization term to the LoRA fine-tuning loss function, aligning the LoRA parameter update direction with the graph constraints. During the inference phase, the mask matrix works synergistically with the aligned model parameters. This solves the problem in existing technologies where the external mask and the internal parameters of the large model are not jointly optimized, resulting in unstable constraint effects. The consistency of judgment results for the same control term under different evidence inputs is improved.

[0014] This approach distinguishes between mandatory constraints from national standards and recommended industry best practices, dividing them into mandatory edge layers and recommended edge layers, and generating lower bound masks and soft-weighted masks respectively. Mandatory edges ensure that the attention weight of "should" control items in the national standards is not lower than the threshold, while recommended edges guide the model to focus on industry practices with enhancement coefficients. This reflects the semantic hierarchy difference between "should" and "appropriate" in the cybersecurity standards, avoiding the insufficient mandatory constraints or excessive recommended constraints caused by treating both types of constraints equally in existing solutions.

[0015] The masking intervention applies to the attention score before softmax, and outputs the attention weights after softmax. The sum of the weights in each row is naturally 1, without the need for additional normalization, thus avoiding the probability distribution disruption caused by direct intervention after softmax output.

[0016] After the multimodal evidence is extracted and normalized, it is bound to the evaluation indicator number. During inference, the mask anchor token corresponds to the indicator number to ensure that the evidence is accurately associated with the control item. After the report is generated, the control item number is used as the semantic anchor for cross-chapter verification, reducing the workload of manual review. Attached Figure Description

[0017] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0018] Figure 1 This is a schematic diagram of the process of the present invention; Figure 2 This is a detailed schematic diagram illustrating the construction of the two-layer information security level protection knowledge graph of the present invention; Figure 3 This is a detailed schematic diagram of the graph-constrained attention mask generation method of the present invention. Detailed Implementation

[0019] The technical solution of the present invention will now be described with reference to the accompanying drawings.

[0020] In embodiments of the present invention, words such as "exemplarily," "for example," etc., are used to indicate that something is an example, illustration, or description. Any embodiment or design described as "exemplary" in the present invention should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of the word "exemplary" is intended to present the concept in a concrete manner. Furthermore, in embodiments of the present invention, the meaning expressed by "and / or" can be both, or either one.

[0021] To make the technical problems, technical solutions and advantages of the present invention clearer, a detailed description will be given below in conjunction with the accompanying drawings and specific embodiments.

[0022] Please see Figure 1 , Figure 2 and Figure 3 This invention provides an intelligent evaluation system for the information security compliance process based on an AI large model, including: The large model scheduling module is used to schedule large-scale models dedicated to information security protection that have been fine-tuned by LoRA low-rank adaptation. The LoRA fine-tuning updates the regularization constraint parameters using the graph constraint mask as the regularization term. The knowledge graph construction module is used to call large models to parse national standards to extract evaluation objects, control items, and compliance threshold entities, identify mandatory dependencies and recommended associations between entities, and construct a two-layer information security compliance knowledge graph. The graph constraint attention mask generation module is used to align graph entities with tokens and generate two mask matrices, a forced lower bound and a recommended soft weighting, based on the two layers of edges respectively. The multimodal evidence parsing module is used to collect multimodal raw evidence, normalize it, extract and bind the evaluation index numbers, and then input them into the large model for classification. The risk reasoning module is used in the self-attention calculation stage to apply the two mask matrices element by element to the attention score and output the weights through softmax. It forces the weight of the token pair corresponding to the edge to be no less than the mask threshold, recommends the weight of the token pair corresponding to the edge according to the mask coefficient, and outputs the compliance conclusion and risk level. The report generation and review module is used to generate structured reports and determine the effectiveness of rectification.

[0023] This embodiment takes the Level 3 Information Security Assessment of a provincial-level tertiary hospital as an example. The system under test includes three subsystems: HIS, EMR, and LIS, which are deployed on the hospital's private cloud platform and cover both cloud computing and medical scenarios.

[0024] Specifically, this system consists of six modules, and the processes are as follows: The large model scheduling module schedules a 7B-parameter dedicated large model for information security compliance. This model is fine-tuned using LoRA low-rank adaptation, with rank r=8 and scaling factor alpha=16. The model is trained iteratively: first, the base model is used to parse the national standard to construct an initial graph and generate an initial mask; then, LoRA fine-tuning is performed using the initial mask as a regularization term; finally, the fine-tuned model is used to update the graph and mask, iterating until the graph entity overlap reaches over 95% and then converging. During the fine-tuning phase, the graph constrains the mask as a regularization term to constrain the LoRA parameter updates. Specific training parameters and loss functions are described in the following embodiment (weight 5). The knowledge graph construction module calls the large model to parse the full text of the Level 3 requirements of GB / T 22239-2019, extracting three types of entities: 286 assessment object entities (such as identity authentication module, access control module, and security audit module), 211 control item entities (corresponding to the control items in chapters 8.1 to 8.10 of the standard), and 156 compliance threshold entities (such as password length not less than 8 characters and login failure processing number not exceeding 5 times). The large model identifies the relationships between entities, including 423 mandatory dependency relationships (corresponding to the "should" category requirements in the standard) and 187 recommended association relationships (corresponding to the "appropriate" category requirements in the standard and best practices in the medical industry), constructing a two-layer information security compliance knowledge graph. The graph-constrained attention mask generation module segments the descriptive text of each entity in the graph using a large model word segmenter, and takes the first token as the anchor token of that entity. A forced lower bound mask matrix is ​​generated based on the forced edge layer, and a recommended soft-weighted mask matrix is ​​generated based on the recommended edge layer. In this embodiment, the input sequence length is 512, and both mask matrices are 512×512 in dimension. In the forced lower bound mask matrix, the anchor tokens at both ends of the forced edge have a mask threshold value of 0.15, and the remaining positions have a value of zero; in the recommended soft-weighted mask matrix, the anchor tokens at both ends of the recommended edge have a mask coefficient value of 0.8, and the remaining positions have a value of zero. The multimodal evidence analysis module collects original evidence from the tested system: 32,000 system logs, 47 network device configuration files, 1 asset ledger, and 23 scanned copies of paper-based security management regulations. After OCR recognition, the scanned paper documents, along with the logs, configuration files, and ledger, are extracted using a unified template. Each evidence record includes five fields: evidence type, timestamp, source, content summary, and evaluation indicator number. After normalization, the large model performs semantic matching between the evidence content summary and the evaluation indicator description, automatically assigning the most relevant evaluation indicator number (e.g., 8.1.2.1, 8.1.4.2). Evidence with a matching confidence level below 0.7 is marked as requiring manual verification. Evidence bound to the evaluation indicator number is then input into the large model for asset classification. In the self-attention calculation stage of the large model, the risk reasoning module applies the mandatory lower bound mask matrix and the recommended soft-weighted mask matrix element-wise to the attention score before softmax. The specific calculation method is described in the weighted example below. The attention score after mask intervention is output as attention weights via softmax, where the output weight of the token pair corresponding to the mandatory edge is not less than the mask threshold of 0.15, and the attention score of the token pair corresponding to the recommended edge is enhanced by the mask coefficient. The large model outputs the compliance conclusion (compliant / non-compliant / partially compliant) and the corresponding compliance confidence level (a value between 0 and 1) for each control item, and classifies the risk level (high / medium / low) accordingly. The report generation and review module generates a structured assessment report based on the compliance conclusions and risk levels output by the large model. The report includes five chapters: assessment overview, asset list, control item assessment results, risk analysis, and rectification suggestions. It also performs a determination of the effectiveness of rectification. The specific process is described in the following embodiment (Rule 9).

[0025] In the large model scheduling module, the LoRA fine-tuning training data sources include three categories: information security standards, past evaluation cases, and industry rectification documents. The fine-tuning process uses the accuracy of control item entity recognition, the accuracy of forced dependency extraction, and the accuracy of compliance judgment logic as joint optimization objectives.

[0026] Specifically, the LoRA fine-tuning training data sources include three categories: the first category is GB / T 22239-2019 and its supporting classification guidelines, implementation guidelines, and other information security standard texts; the second category is 1,200 completed information security assessment case reports from the past five years; and the third category is 800 rectification documents from the medical, financial, and government sectors.

[0027] The fine-tuning process set three optimization objectives: accuracy of control item entity recognition, accuracy of forced dependency extraction, and accuracy of compliance judgment logic. The total loss was calculated by weighted summation of the three objectives, with weights of 0.3, 0.3, and 0.4, respectively. The training batch size was 16, the learning rate was 2e-4, and the training epochs were 3. After fine-tuning, the accuracy of control item entity recognition improved from 78.2% in the base model to 91.5%, the accuracy of forced dependency extraction improved from 71.8% to 88.3%, and the accuracy of compliance judgment logic improved from 69.4% to 86.7%.

[0028] In the two-layer information security knowledge graph, the mandatory edge layer stores the national standard mandatory constraint relations, and the recommended edge layer stores the industry best practice association relations; the mandatory edge layer and the recommended edge layer share the same entity set, and the layer to which the edge belongs is distinguished by relation type labels.

[0029] Specifically, in the two-layer information security knowledge graph, the mandatory edge-layer storage corresponds to the constraints of the "should" category requirements in the national standard, such as the mandatory dependency edge between the identity authentication module and password complexity requirements, indicating that this control item is a mandatory option for Level 3 systems. The recommended edge-layer storage corresponds to the "preferable" category requirements and industry best practices, such as the recommended association edge between the security audit module and off-site backup of audit logs, indicating that this measure is a recommended practice in the medical industry but not a mandatory requirement of the national standard.

[0030] The mandatory and recommended edge layers share the same set of entities; that is, the three types of entities—assessment objects, control items, and compliance thresholds—are uniformly numbered in both layers. Each edge carries a relationship type label, with the label value being either mandatory or recommended, thereby distinguishing the layer to which the edge belongs. Edges in both layers can be queried independently or traversed together.

[0031] In the graph-constrained attention mask generation module, the entity and token alignment method is as follows: the first token of the entity description text is taken as the entity anchor token after being segmented by the large model; in the forced lower bound mask matrix, the corresponding positions of the anchor tokens at both ends of the forced edge are set to the mask threshold, and the other positions are set to zero; in the recommended soft weighted mask matrix, the corresponding positions of the anchor tokens at both ends of the recommended edge are set to the mask coefficient, and the other positions are set to zero; the dimensions of the two matrices are consistent with the self-attention weight matrix of the large model.

[0032] Specifically, the entity and token alignment method is as follows: Input the description text of each entity into the large model tokenizer to obtain a token sequence. Take the first token in the sequence as the entity anchor token. For example, after the entity identity authentication module is segmented, we get [identity, authentication, module]. Take the token corresponding to identity as the entity anchor.

[0033] Construction of the forced lower bound mask matrix M1: Traverse all edges of the forced edge layer, for the two endpoint entities of each edge, find the position indices i and j of their anchor token in the input sequence, assign M1[i][j] and M1[j][i] to the mask threshold of 0.15, and assign zero to the remaining positions of the matrix.

[0034] The construction of the recommended soft weighted mask matrix M2 is as follows: traverse all edges in the recommended edge layer, find the anchor token position indices i and j for the two endpoint entities of each edge, assign the mask coefficient 0.8 to M2[i][j] and M2[j][i], and assign the value of zero to the rest of the matrix.

[0035] Both M1 and M2 have a dimension of 512×512, consistent with the dimension of the self-attention weight matrix of the large model. When the length of the input sequence changes, the two mask matrices are dynamically pruned or padded according to the actual sequence length.

[0036] The mask matrix and attention score are calculated as follows: Let the original attention score matrix be S (512×512). For the forced lower bound mask M1, iterate through the non-zero element positions (i,j) in M1 and apply a positive bias b to S[i][j], so that the output weight at that position after softmax is not less than 0.15. The bias b is dynamically determined based on the score distribution of other positions in the current row, and is taken as b = max(0, logit(0.15) - S[i][j] + mean(S[i,:])), where logit(0.15) = ln(0.15 / 0.85) ≈ -1.73. After applying the bias, S1[i][j] = S[i][j] + b.

[0037] For the recommended soft-weighted mask M2, iterate through the non-zero element positions (i,j) in M2, and multiply S1[i][j] by (1+M2[i][j]), i.e., S2[i][j] = S1[i][j]×1.8, which enhances the attention score of the recommended edge-related positions by 80%. For positions where M2 is zero, keep S2[i][j] = S1[i][j].

[0038] Finally, the attention weight matrix A is calculated using the softmax function from S2, where A[i][j] = exp(S2[i][j]) / Σ_k exp(S2[i][k]). Since the masking intervention is applied before softmax, the sum of each row of the output weights A is naturally 1, requiring no additional normalization.

[0039] In the large model scheduling module, the loss function is a weighted sum of the original task loss of the large model and the graph constraint regularization term. The graph constraint regularization term calculates the deviation between the actual update amount of the forced edge association parameter and the mask threshold, and the deviation between the actual update amount of the recommended edge association parameter and the mask coefficient. The deviation gradient is applied to the LoRA low-rank matrix through backpropagation.

[0040] Specifically, LoRA fine-tuning employs an iterative training process, with the following steps: Step 1: Use the base large model (without LoRA fine-tuning) to parse the GB / T 22239 text, construct the initial two-layer information security knowledge graph, and generate the initial forced lower bound mask matrix and the recommended soft weighted mask matrix.

[0041] Step 2: Using the initial mask as the regularization term, perform the first round of LoRA fine-tuning.

[0042] Step 3: Use the model fine-tuned in the first round to re-parse the GB / T 22239 text, construct an updated graph, and regenerate the mask matrix.

[0043] Step four: Compare the entity overlap between the updated graph and the previous graph. If the overlap is less than 95%, return to step two to perform the next round of fine-tuning; if the overlap reaches or exceeds 95%, training converges and iteration stops. In this embodiment, after two rounds of fine-tuning, the overlap reaches 96.2%, and training stops.

[0044] The loss function consists of a weighted sum of two parts: L = L_task + λ・L_mask, where L_task is the original task loss of the large model (the weighted cross-entropy loss of the three tasks: entity recognition, relation extraction, and compliance determination), L_mask is the graph constraint regularization term, and λ is the regularization term coefficient. In this embodiment, λ = 0.1 is taken.

[0045] Calculation of the graph constraint regularization term L_mask: During the training forward propagation phase, for each training sample, a corresponding mask matrix is ​​generated based on the current graph. The attention weights A_masked after mask intervention are calculated according to the operation method described in the weight 4 embodiment above. The mask target value matrix T is defined as follows: the target value at the forced edge position is the mask threshold of 0.15, the target value at the recommended edge position is the original attention weight × 1.8 (the value after softmax normalization), and the target value at other positions is the original attention weight. L_mask = mean (|A_masked[i][j] - T[i][j]|), which is the average absolute deviation between the attention weights and the target values ​​after mask intervention.

[0046] During training, L_mask applies the bias gradient to the low-rank LoRA matrices A and B through backpropagation, ensuring that the update direction of the forced edge association parameters satisfies the constraint that the output weight is no less than 0.15, and that the update direction of the recommended edge association parameters satisfies the constraint that the attention score is enhanced by 80%. After iterative fine-tuning, the LoRA parameters are aligned with the two-layer graph constraints, and the mask matrix works synergistically with the model's internal parameters during inference.

[0047] It also includes an adaptive index matching module, which calls the multi-task scenario classification head of the large model to identify four types of systems: cloud computing, big data, medical, and Internet of Things. Each type of system is pre-configured with a corresponding extended evaluation index subset. When the tested system hits multiple scenarios at the same time, the union of each subset is taken and injected into the inference context, and the graph entity range is expanded and the mask matrix dimension is updated according to the extended index set.

[0048] Specifically, the adaptive index matching module calls the multi-task scenario classification head of the large model. This classification head is the top-level linear classification layer of the large model, outputting the probability distribution of four types of systems: cloud computing, big data, healthcare, and the Internet of Things. In this embodiment, after the hospital information system inputs the system description text, the classification head outputs a probability of 0.72 for cloud computing, 0.91 for healthcare, 0.23 for big data, and 0.08 for the Internet of Things. Categories with probabilities higher than 0.5 are selected, thus matching the cloud computing and healthcare scenarios.

[0049] Each system type is pre-configured with a corresponding subset of extended security compliance assessment indicators: 32 extended indicators for cloud computing scenarios (corresponding to 8.1.2 Cloud Computing Security Extension Requirements in GB / T 22239), and 18 extended indicators for medical scenarios (corresponding to Supplementary Requirements for Security Compliance Assessment in the Health Industry). When the tested system simultaneously hits both scenarios, the union of the two extended indicator subsets, totaling 50 items, is taken and injected into the large model's inference context.

[0050] After the extended indicator set was determined, the knowledge graph construction module supplemented the corresponding control item entities and compliance threshold entities based on the 50 newly added extended indicators, expanding the total number of graph entities from 653 to 703. 47 new mandatory edges and 22 new recommended edges were added. The mask matrix dimension remained 512×512 (sequence length unchanged), but the positions of non-zero elements increased, and the mask threshold or mask coefficient was filled into the corresponding positions of the newly added anchor tokens.

[0051] In the risk reasoning module, if the mandatory edge-associated control item is determined to be non-compliant by the large model, the risk level is directly increased by at least one level; if the comprehensive score of the recommended edge-associated control item is lower than the threshold, the risk level is adjusted according to the score difference ratio.

[0052] Specifically, when the risk reasoning module outputs a risk level, the following linkage rules are executed: If a control item associated with a forced edge is deemed non-compliant by the large model, its risk level is directly increased by at least one level. For example, if the control item "8.1.2.1 Identity Authentication" is deemed non-compliant, its initial risk level is medium, but due to the association with a forced edge, it is directly increased to high.

[0053] The recommended control item is associated with a specific edge, and a comprehensive score is calculated: Comprehensive Score = Compliance Confidence Score Output by the Large Model × Asset Importance Coefficient of that Control Item. The asset importance coefficient is preset according to the importance of the evaluated object: 1.0 for core business systems, 0.7 for general business systems, and 0.4 for auxiliary systems. In this embodiment, the threshold is set to 0.6.

[0054] A certain recommended edge-related control item has a compliance confidence level of 0.6, an asset importance coefficient of 0.7, and a comprehensive score of 0.42. The difference from the threshold is 0.18, and the difference ratio is 0.18 / 0.6 = 0.3. When the difference ratio reaches or exceeds 0.3, the risk level is increased by one level from the initial level; when the difference ratio is less than 0.3, the original risk level is maintained. In this embodiment, the difference ratio is 0.3, resulting in an increase of one level.

[0055] In the report generation and review module, after the report is generated, the large model uses the control item entity as the semantic anchor point to verify the consistency of the control item evaluation conclusions and the rationality of the risk level-rectification suggestion matching across chapters, marks logical contradictions and outputs correction prompts.

[0056] Specifically, after the report is generated, the large model performs cross-chapter dual validation using control item entities as semantic anchors: The first verification step is a consistency check of the control item assessment conclusions. The large model uses the control item number (e.g., 8.1.2.1) as the precise matching anchor point, locating the position of this number in the three sections of the report: "Control Item Assessment Results," "Risk Analysis," and "Rectification Recommendations." It then compares the conclusion statements for that control item in each section. If the labeling in the assessment results section is inconsistent, but the control item number does not appear in the rectification recommendations section, it is marked as a logical contradiction, and a correction prompt is output: "Control item 8.1.2.1 lacks corresponding measures in the rectification recommendations section."

[0057] The second verification step is to check the reasonableness of the match between the risk level and the rectification recommendations. The large model compares whether each high-risk item is accompanied by clear rectification measures and a rectification deadline, whether medium-risk items are accompanied by rectification recommendations, and whether low-risk items are marked with observation recommendations. If a high-risk item is only marked with a suggestion to pay attention without specific rectification measures, it is marked as an unreasonable match, and a correction prompt is output.

[0058] In this embodiment, a total of 1 report was generated. The verification found 2 logical contradictions and 1 unreasonable match. Correction prompts were output for the evaluation personnel to confirm.

[0059] In the report generation and review module, the effectiveness of rectification is determined as follows: the large model calculates the semantic similarity between the rectification plan and the historical standard template to obtain the rectification coverage; the re-reasoning of the retest evidence yields the retest compliance; the rectification coverage and the retest compliance are multiplied to obtain a comprehensive value; when the comprehensive value reaches a preset threshold and the retest compliance alone reaches the minimum threshold, a standardized rectification confirmation form is output; when the retest compliance contradicts the initial test conclusion, the original evidence of the corresponding control item is backtracked for verification.

[0060] Specifically, the process for determining the effectiveness of rectification is as follows: The first step is to calculate the semantic similarity between the rectification plan and the historical standard template in the large model. The rectification plan text and the standard rectification template text for the same control item in the historical sample library are encoded into vectors respectively, and the cosine similarity is calculated as the rectification coverage. In this embodiment, the rectification plan for the control item "8.1.2.1 Identity Authentication" has a similarity of 0.82 with the standard template, meaning the rectification coverage is 0.82.

[0061] The second step involves re-reasoning with the retested evidence. After the tested system is rectified, new evidence is collected (such as screenshots of the updated identity authentication configuration and log records), input into the large model, and compliance reasoning is re-executed. The large model outputs a compliance conclusion and a compliance confidence level. The retest compliance level is mapped according to the following rules: when the conclusion is compliant, the retest compliance level is the compliance confidence level; when the conclusion is partially compliant, the retest compliance level is the compliance confidence level × 0.6; when the conclusion is non-compliant, the retest compliance level is the compliance confidence level × 0.2. In this embodiment, the retest conclusion is compliant, and the compliance confidence level is 0.87, i.e., the retest compliance level is 0.87.

[0062] The third step is to multiply the rectification coverage by the retest compliance to obtain a comprehensive value: 0.82 × 0.87 = 0.7134. The threshold for the comprehensive value is set to 0.65, and the minimum threshold for retest compliance is set to 0.80. In this embodiment, the comprehensive value 0.7134 ≥ 0.65 and the retest compliance 0.87 ≥ 0.80, both thresholds are met, and a standardized rectification confirmation form is output to confirm that the rectification of this control item is effective.

[0063] The backtesting is triggered under any of the following conditions: (a) the initial compliance conclusion is inconsistent with the retest compliance conclusion (e.g., the initial test was non-compliant, the retest was compliant, or the initial test was compliant, the retest was non-compliant); (b) the rectification coverage meets the standard, but the retest compliance is below the minimum threshold. After triggering, the original evidence from the initial test and the retest evidence are retrieved and displayed side by side. The large model then re-compares the evidence differences and outputs a difference analysis report.

[0064] A computer-readable storage medium having a computer program stored thereon, the computer program performing the following steps when executed by a processor: The LoRA-tuned dedicated large model for information security compliance is used to parse the national standard and construct a two-layer information security compliance knowledge graph; Align the graph entities with the tokens to generate two mask matrices: a forced lower bound and a recommended soft weighting. Collect multimodal raw evidence, normalize and extract the bound evaluation index numbers, and then input them into the large model for classification; During the self-attention calculation phase, the two mask matrices are applied element by element to the attention weights to output compliance conclusions and risk levels. Generate a structured evaluation report and determine the effectiveness of the rectification.

[0065] Specifically, a computer-readable storage medium, such as a solid-state drive, USB flash drive, or optical disc, stores a computer program. When this program is executed by a processor, it performs the following steps: Step 1: Use the LoRA-tuned dedicated large model for information security compliance to parse the GB / T 22239 text, extract three types of entities: assessment objects, control items, and compliance thresholds, identify mandatory dependencies and recommended associations between entities, and construct a two-layer information security compliance knowledge graph; Step 2: After segmenting the graph entity description text, take the first token as the anchor point, generate a forced lower bound mask matrix based on the forced edge layer, and generate a recommended soft weighted mask matrix based on the recommended edge layer. Step 3: Collect multimodal raw evidence such as system logs, configurations, ledgers, and paper documents. After normalization and extraction, the large model semantics are used to bind the evaluation indicator numbers and input into the large model classification. Step 4: In the self-attention calculation stage of the large model, the two mask matrices are applied element by element to the attention score before softmax. A positive bias is forced to be applied to the corresponding position of the edge so that the output weight is not lower than the mask threshold. It is recommended that the corresponding position of the edge be multiplied by the enhancement coefficient, and the attention weight is output through softmax. The large model outputs the compliance conclusion and risk level. Step 5: Generate a structured evaluation report and perform cross-chapter consistency verification and determination of the effectiveness of rectification.

[0066] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A fully intelligent assessment system for information security compliance based on an AI-powered large-scale model, characterized in that: include: The large model scheduling module is used to schedule large-scale models dedicated to information security protection that have been fine-tuned by LoRA low-rank adaptation. The LoRA fine-tuning updates the regularization constraint parameters using the graph constraint mask as the regularization term. The knowledge graph construction module is used to call large models to parse national standards to extract evaluation objects, control items, and compliance threshold entities, identify mandatory dependencies and recommended associations between entities, and construct a two-layer information security compliance knowledge graph. The graph constraint attention mask generation module is used to align graph entities with tokens and generate two mask matrices, a forced lower bound and a recommended soft weighting, based on the two layers of edges respectively. The multimodal evidence parsing module is used to collect multimodal raw evidence, normalize it, extract and bind the evaluation index numbers, and then input them into the large model for classification. The risk reasoning module is used in the self-attention calculation stage to apply the two mask matrices element by element to the attention score and output the weights through softmax. It forces the weight of the token pair corresponding to the edge to be no less than the mask threshold, recommends the weight of the token pair corresponding to the edge according to the mask coefficient, and outputs the compliance conclusion and risk level. The report generation and review module is used to generate structured reports and determine the effectiveness of rectification.

2. The intelligent evaluation system for the full compliance process based on an AI large model as described in claim 1, characterized in that, In the large model scheduling module, the LoRA fine-tuning training data sources include three categories: information security standards, past evaluation cases, and industry rectification documents. The fine-tuning process uses the accuracy of control item entity recognition, the accuracy of forced dependency extraction, and the accuracy of compliance judgment logic as joint optimization objectives.

3. The intelligent evaluation system for the full compliance process based on an AI large model as described in claim 1, characterized in that, In the two-layer information security knowledge graph, the mandatory edge layer stores the national standard mandatory constraint relations, and the recommended edge layer stores the industry best practice association relations; the mandatory edge layer and the recommended edge layer share the same entity set, and the layer to which the edge belongs is distinguished by relation type labels.

4. The intelligent evaluation system for the full compliance process based on an AI large model as described in claim 1, characterized in that, In the graph-constrained attention mask generation module, the entity and token alignment method is as follows: the first token of the entity description text is taken as the entity anchor token after being segmented by the large model; in the forced lower bound mask matrix, the corresponding positions of the anchor tokens at both ends of the forced edge are set to the mask threshold, and the other positions are set to zero; in the recommended soft weighted mask matrix, the corresponding positions of the anchor tokens at both ends of the recommended edge are set to the mask coefficient, and the other positions are set to zero; the dimensions of the two matrices are consistent with the self-attention weight matrix of the large model.

5. The intelligent evaluation system for the full compliance process based on an AI large model as described in claim 1, characterized in that, In the large model scheduling module, the loss function is a weighted sum of the original task loss of the large model and the graph constraint regularization term. The graph constraint regularization term calculates the deviation between the actual update amount of the forced edge association parameter and the mask threshold, and the deviation between the actual update amount of the recommended edge association parameter and the mask coefficient. The deviation gradient is applied to the LoRA low-rank matrix through backpropagation.

6. The intelligent evaluation system for the information security compliance process based on an AI large model as described in claim 1, characterized in that, It also includes an adaptive index matching module, which calls the multi-task scenario classification head of the large model to identify four types of systems: cloud computing, big data, medical, and Internet of Things. Each type of system is pre-configured with a corresponding extended evaluation index subset. When the tested system hits multiple scenarios at the same time, the union of each subset is taken and injected into the inference context, and the graph entity range is expanded and the mask matrix dimension is updated according to the extended index set.

7. The intelligent evaluation system for the full compliance process based on an AI large model as described in claim 1, characterized in that, In the risk reasoning module, if the mandatory edge-associated control item is determined to be non-compliant by the large model, the risk level is directly increased by at least one level; if the comprehensive score of the recommended edge-associated control item is lower than the threshold, the risk level is adjusted according to the score difference ratio.

8. The intelligent evaluation system for the full compliance process based on an AI large model as described in claim 1, characterized in that, In the report generation and review module, after the report is generated, the large model uses the control item entity as the semantic anchor point to verify the consistency of the control item evaluation conclusions and the rationality of the risk level-rectification suggestion matching across chapters, marks logical contradictions and outputs correction prompts.

9. The intelligent evaluation system for the full compliance process based on an AI large model as described in claim 1, characterized in that, In the report generation and review module, the effectiveness of rectification is determined as follows: the large model calculates the semantic similarity between the rectification plan and the historical standard template to obtain the rectification coverage; the re-reasoning of the retest evidence yields the retest compliance; the rectification coverage and the retest compliance are multiplied to obtain a comprehensive value; when the comprehensive value reaches a preset threshold and the retest compliance alone reaches the minimum threshold, a standardized rectification confirmation form is output; when the retest compliance contradicts the initial test conclusion, the original evidence of the corresponding control item is backtracked for verification.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it performs the following steps: The LoRA-tuned dedicated large model for information security compliance is used to parse the national standard and construct a two-layer information security compliance knowledge graph; Align the graph entities with the tokens to generate two mask matrices: a forced lower bound and a recommended soft weighting. Collect multimodal raw evidence, normalize and extract the bound evaluation index numbers, and then input them into the large model for classification; During the self-attention calculation phase, the two mask matrices are applied element by element to the attention weights to output compliance conclusions and risk levels. Generate a structured evaluation report and determine the effectiveness of the rectification.