A test system based on artificial intelligence large model

By designing the test system in the large artificial intelligence model, the problem that the evaluation parameters are no longer representative and the test results are inaccurate during the data migration process is solved, the security assessment and risk control of the data migration process are realized, and information security is ensured. .

CN118410499BActive Publication Date: 2024-08-30GANSU ROOT NETWORK TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410885196.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-03
Publication Date
2024-08-30
Estimated Expiration
2044-07-03

AI Technical Summary

Technical Problem

During the data migration process, large artificial intelligence models face the problem that evaluation parameters are no longer representative and test results are inaccurate, resulting in reduced information security.

Method used

A test system based on a large model of artificial intelligence is designed, including a data collection module, a data migration assessment module, a security testing module, a security assessment module and a processing module. It collects network traffic data in real time, detects vulnerabilities, evaluates recovery capabilities, and calculates data. Migration index, data migration and security assessment to ensure the integrity and security of data during the migration process.

Benefits of technology

It effectively reduces the risk of large models, improves the accuracy of test results, and ensures the security and integrity of data during the migration process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118410499B
    Figure CN118410499B
Patent Text Reader

Abstract

The present invention relates to the field of model testing, and discloses a testing system based on an artificial intelligence large model, which is used to solve the problem that when the large model needs to perform data migration, the previous security test evaluation parameters are no longer representative. The method comprises: collecting network traffic and system data in real time, calculating network stability and system security, calculating a recovery capacity coefficient through systematic testing, and comprehensively evaluating to obtain a data migration index, judging data migration according to the data migration index, migrating data for cases where the judgment passes, testing the migrated data, and obtaining a data risk coefficient, a vulnerability risk coefficient and a migration risk coefficient according to the test results, and comprehensively evaluating to obtain a security index, and evaluating the current security according to the security index, and repairing according to the evaluation results, so as to effectively reduce the risk of the large model and improve the accuracy of the test results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of model testing, and more specifically to a testing system based on an artificial intelligence large model. Background Art

[0002] Artificial intelligence big models (AI big models) are machine learning models with large-scale parameters and complex structures that can demonstrate excellent performance in multiple tasks. They are usually based on deep learning architectures, especially neural networks, and are trained on large amounts of data to be able to process and understand complex patterns and relationships.

[0003] Large models usually need to process a large amount of sensitive data, such as user information, medical records, financial data, etc. Security testing of large models can ensure that the model does not leak user privacy when processing this data, prevent data from being accessed or abused without authorization, and malicious attackers may try to interfere with the normal operation of the model by inputting specific data or modifying model inputs, such as injecting malicious code, adversarial sample attacks, etc. Security testing can identify and mitigate these attacks and improve the model's ability to resist interference.

[0004] Existing large model security tests usually test the specific targets of each test, test the existing vulnerabilities and the security of data integrity, and conduct a comprehensive assessment to obtain the security of the large model. However, large artificial intelligence models usually face data migration. The use of previous testing methods will cause the evaluation parameters to no longer be representative, increase the risk of the model, and the test results will be inaccurate, reducing information security.

[0005] In view of the above problems, the present invention proposes a solution. Summary of the invention

[0006] In order to overcome the above-mentioned defects of the prior art, the present invention provides a testing system based on an artificial intelligence large model to solve the problems existing in the above-mentioned background technology.

[0007] To achieve the above object, the present invention provides the following technical solutions:

[0008] A test system based on an artificial intelligence large model includes a data acquisition module, a data migration evaluation module, a data migration module, a security test module, a security evaluation module and a processing module. The modules are connected by signals. The steps of data processing between the modules are as follows:

[0009] The data collection module is used to use the collector to collect network traffic data in real time and calculate the network stability. It uses static analysis tools to perform vulnerability analysis and detection, detects vulnerabilities before data migration, and evaluates system security based on the vulnerability situation. It evaluates and calculates the recovery capacity coefficient through systematic testing.

[0010] The system security calculation steps are as follows:

[0011] Use static analysis tools to detect vulnerabilities before data migration, including the number and location of currently unpatched low-, medium-, and high-risk vulnerabilities;

[0012] The system security is obtained based on the vulnerability assessment, and the calculation formula is: , where SF stands for system security, NUM f1 Indicates the number of low-risk vulnerabilities, NUM f2 Indicates the number of medium-risk vulnerabilities, NUM f3 It is expressed as the number of high-risk vulnerabilities, s1, s2, and s3 are the weights of low-, medium-, and high-risk vulnerabilities. , , ,and ;

[0013] The data migration assessment module is used to comprehensively evaluate network stability, system security, and recovery capacity coefficient to obtain the data migration index, which is calculated as follows: , where DM represents the data migration index, NS represents network stability, SF represents system security, RCC represents the recovery capacity coefficient, a1, a2, a3 represent the weight coefficients of network stability, system security and recovery capacity coefficient, and data migration is judged according to the data migration index;

[0014] A data migration module is used to migrate data if the judgment is passed;

[0015] The security testing module is used to test the integrity and consistency of the migrated data and calculate the data risk factor based on the test results; use static analysis tools to perform vulnerability analysis and detection, detect the vulnerability situation after data migration, and evaluate the vulnerability risk factor based on the vulnerability situation after data migration; set up real-time monitoring, detect the number of unauthorized access attempts, and use the test environment to test the time taken for migration and calculate the migration risk factor;

[0016] The security assessment module is used to obtain a security index based on the data risk factor, vulnerability risk factor, and migration risk factor, and to assess the current security based on the security index;

[0017] The processing module is used to perform repairs according to the assessment results, including data repairs, vulnerability repairs, and migration risk repairs, and continue security testing until the security assessment passes.

[0018] Preferably, the network stability calculation step is:

[0019] Use network monitoring tools to collect network traffic data in real time, the traffic data including bandwidth usage, packet loss rate and delay data;

[0020] Calculate the mean and standard deviation of bandwidth usage and latency data;

[0021] The bandwidth fluctuation rate is calculated based on the bandwidth utilization rate, and its calculation formula is: , where BV is the bandwidth volatility, Expressed as the standard deviation of bandwidth usage, Expressed as the average value of bandwidth usage;

[0022] The delay volatility is calculated based on the delay data, and its calculation formula is: , where LV is the delayed volatility, Expressed as the standard deviation of the delayed data, Expressed as the average of the delayed data;

[0023] The network stability is calculated by combining bandwidth fluctuation rate, packet loss rate and delay fluctuation rate. The calculation formula is: , where NS represents network stability, BV represents bandwidth fluctuation rate, PLR represents packet loss rate, and LV represents delay fluctuation rate.

[0024] Preferably, the steps of evaluating and calculating the recovery capacity coefficient by systematic testing are:

[0025] Count the total data volume of the system and define recovery objectives, which include recovery time objectives and recovery point objectives;

[0026] Back up data and record the backup time, simulate data loss in the test environment, use the predetermined recovery methods and tools to recover data, and record the total time from starting recovery to completing recovery;

[0027] After data recovery, check the consistency between the recovered data and the backup data, and count the amount of data lost after recovery;

[0028] The data loss ratio is calculated by comparing the amount of data lost after recovery to the total amount of data. The recovery capacity coefficient is calculated based on the total recovery time and the data loss ratio. The calculation formula is: , where RCC is the recovery capacity coefficient, T restore Expressed as the total time of recovery, F loss Expressed as a percentage of data loss.

[0029] Preferably, the step of judging data migration based on the data migration index is to compare the data migration index with a preset threshold. If the data migration index is less than the preset threshold, it is determined that the current data migration risk is high, and data migration is not performed. If the data migration index is greater than the preset threshold, it is determined that the current data migration risk is low, and data migration is performed.

[0030] Preferably, the step of calculating the data risk coefficient according to the test results is:

[0031] Before data migration, execute a query statement to obtain the total number of data records in the source system. After data migration is completed, execute a query statement to obtain the total number of data records in the target system. Calculate the total number of data records before migration and the total number of data records after migration to obtain the integrity change rate.

[0032] Find all foreign key relationships in the database, where the foreign key relationships include foreign key columns and referenced primary key columns. For each foreign key column, check whether its value exists in the referenced primary key column, and count the number of values ​​in the foreign key column that do not exist in the referenced primary key column.

[0033] Obtain the definitions of all foreign key constraints, including the constraint name, foreign key columns, and referenced tables and columns, confirm that the definitions of all foreign key constraints in the target system are consistent with those in the source system, and check whether the values ​​in the foreign key columns exist in the referenced primary key columns;

[0034] Filter out all unique constraint columns in the database, count the number of occurrences of each unique column, and filter out the number of values ​​with a number of occurrences greater than 1;

[0035] Filter out all columns in the database that do not allow null values, count the number of null values ​​for each non-null column, and find out the number of null values ​​in the non-null column;

[0036] Filter out all check constraints in the database, count the number of values ​​that do not satisfy the condition for each check constraint, and find out the number of values ​​that do not satisfy the check constraint;

[0037] Record all constraint violations, including the number of records that do not satisfy referential integrity, foreign key constraints, unique constraints, non-null constraints, and check constraints. Calculate the ratio of all constraint violations to the total number of data records after migration to obtain the consistency change rate.

[0038] Combining the integrity change rate and consistency change rate, the data risk coefficient is calculated. The calculation formula is: , where DR is the data risk factor, R iy Expressed as the integrity change rate, R cy Expressed as the consistency change rate.

[0039] Preferably, the step of obtaining a vulnerability risk coefficient according to the vulnerability situation evaluation after data migration is:

[0040] Collect vulnerability data, including the total number of vulnerabilities before migration, the total number of vulnerabilities after migration, the number of high-risk vulnerabilities before migration, and the number of high-risk vulnerabilities after migration;

[0041] Calculate the change ratio of the total number of vulnerabilities, the calculation formula is: , where R total Expressed as the change ratio of the total number of vulnerabilities, V pre It is expressed as the total number of vulnerabilities before migration, V post is the total number of vulnerabilities after migration, and ;

[0042] Calculate the ratio of high-risk vulnerabilities to the total number of vulnerabilities before data migration and the ratio of high-risk vulnerabilities to the total number of vulnerabilities after data migration, and calculate the change rate of the ratio of high-risk vulnerabilities to the total number of vulnerabilities. The calculation formula is: , where R nature It is expressed as the ratio of high-risk vulnerabilities to total vulnerabilities, P pre It is expressed as the ratio of high-risk vulnerabilities to total vulnerabilities before migration, P post It is expressed as the ratio of high-risk vulnerabilities to total vulnerabilities after migration;

[0043] The vulnerability risk coefficient is calculated based on the change ratio of the total number of vulnerabilities and the change ratio of the proportion of high-risk vulnerabilities to the total vulnerabilities. The calculation formula is: , where VR is the vulnerability risk factor, R total Expressed as the change ratio of the total number of vulnerabilities, R nature It is expressed as the change rate of the proportion of high-risk vulnerabilities to total vulnerabilities.

[0044] Preferably, the migration risk coefficient calculation step is:

[0045] Set up real-time monitoring to detect and respond to unauthorized access attempts, and use a test environment to test the time it takes to perform the migration.

[0046] Normalize the number of unauthorized access attempts and the time taken for migration, set the expected value of the number of unauthorized access attempts and the time taken for migration, and calculate the migration risk coefficient. The calculation formula is: , where MR represents the migration risk coefficient, NUM ur is the number of unauthorized access attempts, ur 预 is the expected number of unauthorized access attempts, mt is the time taken for migration, and mt 预 The expected time for the migration.

[0047] Preferably, the step of evaluating the current security based on the security index is to compare the security index with a preset threshold. If the security index is greater than the preset threshold, the current security is determined to be high and it is immediately released and put into use. If the security index is less than the preset threshold, the current security is determined to be low and cannot be released.

[0048] Technical effects and advantages of the present invention:

[0049] Collect network traffic and system data in real time, calculate network stability and system security, calculate the recovery capacity coefficient through systematic testing, and comprehensively evaluate the data migration index. Judge data migration based on the data migration index, migrate data if the judgment passes, test the migrated data, and obtain the data risk coefficient, vulnerability risk coefficient and migration risk coefficient based on the test results. Comprehensively evaluate and obtain the security index, and evaluate the current security based on the security index. Repair according to the evaluation results, effectively reduce the risk of large models and improve the accuracy of test results. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 It is the overall flow chart of the present invention.

[0051] Figure 2 It is a flow chart of the system of the present invention. DETAILED DESCRIPTION

[0052] The technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the present invention. In addition, the forms of the various structures recorded in the following embodiments are only examples. The test system based on the artificial intelligence big model involved in the present invention is not limited to the various structures recorded in the following embodiments. All other implementations obtained by ordinary technicians in this field without making creative work belong to the scope of protection of the present invention.

[0053] The present invention provides a test system based on an artificial intelligence large model, including a data acquisition module, a data migration evaluation module, a data migration module, a security test module, a security evaluation module and a processing module, and the modules are connected by signals, such as Figure 2 As shown in the figure, the steps of data processing between modules are as follows:

[0054] The data collection module is used to use the collector to collect network traffic data in real time and calculate the network stability. It uses static analysis tools to perform vulnerability analysis and detection, detects vulnerabilities before data migration, and evaluates system security based on the vulnerability situation. It evaluates and calculates the recovery capacity coefficient through systematic testing.

[0055] In this embodiment, it should be specifically explained that the network stability calculation steps are:

[0056] Use network monitoring tools (such as Wireshark, Nagios, Zabbix, etc.) to collect network traffic data in real time, including bandwidth usage, packet loss rate, and latency data. Network monitoring tools are software or hardware systems used to monitor and manage computer networks. They can collect, analyze, and report the status and performance data of network devices and network traffic in real time to help network administrators and operation and maintenance teams effectively manage and maintain network operations;

[0057] Remove irrelevant data to ensure data accuracy, and calculate the average and standard deviation of bandwidth usage and latency data;

[0058] The bandwidth fluctuation rate is calculated based on the bandwidth utilization rate, and its calculation formula is: , where BV is the bandwidth volatility, Expressed as the standard deviation of bandwidth usage, Expressed as the average value of bandwidth usage;

[0059] The delay volatility is calculated based on the delay data, and its calculation formula is: , where LV is the delayed volatility, Expressed as the standard deviation of the delayed data, Expressed as the average value of delay data, the delay fluctuation measures the degree of change in network delay;

[0060] The network stability is calculated by combining bandwidth fluctuation rate, packet loss rate and delay fluctuation rate. The calculation formula is: , where NS represents network stability, BV represents bandwidth fluctuation rate, PLR represents packet loss rate, and the packet loss rate is directly obtained through network monitoring tools, and LV represents delay fluctuation rate.

[0061] In this embodiment, it should be specifically explained that the system security calculation steps are:

[0062] Use Fortify static analysis tools to perform vulnerability analysis and detection to detect vulnerabilities before data migration, including the number and location of currently unpatched low-, medium-, and high-risk vulnerabilities;

[0063] The system security is obtained based on the vulnerability assessment, and the calculation formula is: , where SF stands for system security, NUM f1 Indicated as the number of low-risk vulnerabilities, NUM f2 Indicates the number of medium-risk vulnerabilities, NUM f3It is expressed as the number of high-risk vulnerabilities, s1, s2, and s3 are the weights of low-, medium-, and high-risk vulnerabilities. , , ,and In this embodiment It should be noted that the values ​​of s1, s2, and s3 are not fixed and can be modified as needed. Fortify is a static application security testing (SAST) tool provided by Micro Focus, which is used to identify security vulnerabilities in software. By analyzing source code, binary code, or bytecode, Fortify can detect potential security issues in the early stages of development, helping developers resolve these issues before code submission, thereby improving software security.

[0064] In this embodiment, it should be specifically explained that the steps of evaluating and calculating the recovery capacity coefficient through systematic testing are:

[0065] Count the total data volume of the system and define recovery objectives, which include recovery time objectives and recovery point objectives;

[0066] The recovery time objective is the maximum time it takes for the system to resume normal operation after an interruption, and the recovery point objective is the maximum time interval for acceptable data loss;

[0067] Simulate system failures or data loss events, check the response and recovery time of data recovery mechanisms, build a test environment similar to the production environment, and prepare test data and necessary recovery tools;

[0068] Back up data, ensure that all data has been backed up before testing, record the backup time, and simulate data loss or system failure in the test environment;

[0069] Use the predetermined recovery methods and tools to recover data and record the total time from starting recovery to completing recovery;

[0070] After data recovery, check the consistency between the recovered data and the backup data, and count the amount of data lost after recovery;

[0071] The data loss ratio is calculated based on the total data volume and the amount of data lost after recovery. The calculation formula is: , where F loss Expressed as the data loss ratio, V lost It is expressed as the amount of data lost after recovery, V total It is expressed as the total amount of data. The recovery capacity coefficient is calculated based on the total recovery time and the data loss ratio. The calculation formula is: , where RCC is the recovery capacity coefficient, T restoreExpressed as the total time of recovery, F loss Expressed as a percentage of data loss.

[0072] The resilience factor is evaluated and calculated through systematic testing, which refers to a series of tests performed in a planned and step-by-step manner to comprehensively evaluate specific aspects or capabilities of a system or application.

[0073] Security risks during data migration may lead to data leakage, corruption or loss. Through risk assessment, these risks can be identified and mitigated in advance to ensure that data remains secure during the migration process. Through risk assessment, the best migration time and method can be determined to minimize the impact on the production environment. By assessing and reducing risks, high costs caused by data loss, system failure or business interruption can be avoided.

[0074] The data migration assessment module is used to comprehensively evaluate the network stability, system security and recovery capacity coefficient to obtain the data migration index, and judge the data migration based on the data migration index;

[0075] In this embodiment, it should be specifically explained that the data migration index obtained by comprehensively evaluating the network stability, system security and recovery capacity coefficient is: the data migration index is obtained by weighted summing the network stability, system security and recovery capacity coefficient, and its calculation formula is: , where DM is the data migration index, NS is the network stability, and the network stability is proportional to the data migration index, which means that the more stable the network is, the smoother and more reliable the data migration process is. In a highly stable network, the probability of packet loss, delay, and jitter during data transmission is low, which reduces the risk of data damage or loss and improves migration efficiency. Therefore, ensuring the high stability of the network is a key factor in achieving efficient and secure data migration. In short, the more stable the network is, the higher the success rate and efficiency of data migration will be. SF is the system security, and the system security is proportional to the data migration index, which means that the higher the security of the system is, the greater the reliability and success rate of the data migration process will be. In a high-security system, data is strictly protected during the migration process, avoiding risks such as unauthorized access, data tampering, and leakage, thereby ensuring the integrity and confidentiality of the data. Therefore, improving the security of the system is the key to achieving safe and efficient data migration. In short, the more secure the system is, the higher the reliability and success rate of data migration will be. RCC is expressed as the recovery capacity coefficient. The data recovery capacity coefficient is proportional to the data migration index, which means that the stronger the data recovery capacity is, the higher the reliability and success rate of the data migration process will be. A system with high data recovery capability can quickly and accurately recover from failures or data loss, ensuring that it can effectively respond to unexpected situations during the data migration process, reducing the risk of data loss or damage. Therefore, enhancing data recovery capability is a key factor in ensuring the security and reliability of data migration. a1, a2, and a3 are expressed as weight coefficients of network stability, system security, and recovery capacity coefficient, and this embodiment does not perform specific calculations on the specific values ​​of a1, a2, and a3.

[0076] In the present embodiment, it should be specifically explained that the step of judging data migration based on the data migration index is to compare the data migration index with a preset threshold value. If the data migration index is smaller than the preset threshold value, it is determined that the current data migration risk is high and data migration is not performed. If the data migration index is larger than the preset threshold value, it is determined that the current data migration risk is low and data migration is performed.

[0077] A data migration module is used to migrate data if the judgment is passed;

[0078] In this embodiment, it should be specifically explained that the steps of performing data migration are:

[0079] Determine the data set or system to be migrated, including the type (structured, unstructured), size, and storage location of the source data. Develop an appropriate migration strategy based on the migration goals and data characteristics, and analyze the costs that may be encountered during the migration process.

[0080] Clean, deduplicate and pre-process the source data to ensure data quality and consistency, improve migration efficiency and accuracy, and perform necessary data backup before actual migration to prevent data loss or damage;

[0081] Select appropriate migration tools and technologies based on the migration strategy, such as ETL tools, data replication tools, migration services provided by the cloud platform, etc., migrate the prepared data from the source system or storage location to the target system or target storage location, and monitor the progress and performance indicators of the migration process in real time, such as data transmission rate, success rate and failure rate.

[0082] The security testing module is used to test the integrity and consistency of the migrated data and calculate the data risk factor based on the test results; use static analysis tools to perform vulnerability analysis and detection, detect the vulnerability situation after data migration, and evaluate the vulnerability risk factor based on the vulnerability situation after data migration; set up real-time monitoring, detect the number of unauthorized access attempts, and use the test environment to test the time taken for migration and calculate the migration risk factor;

[0083] In this embodiment, it should be specifically explained that the step of calculating the data risk coefficient according to the test results is:

[0084] Before data migration, execute a query statement to obtain the total number of data records in the source system. After data migration is completed, execute a query statement to obtain the total number of data records in the target system. Calculate the total number of data records before migration and the total number of data records after migration to obtain the integrity change rate. The calculation formula is: , where R iy Expressed as the integrity change rate, N pre Represents the total number of data records before migration, N post Represented as the total number of data records after migration;

[0085] Find all foreign key relationships in the database, where the foreign key relationships include foreign key columns and referenced primary key columns. For each foreign key column, check whether its value exists in the referenced primary key column, and count the number of values ​​in the foreign key column that do not exist in the referenced primary key column.

[0086] Obtain the definitions of all foreign key constraints, including the constraint name, foreign key columns, and referenced tables and columns, confirm that the definitions of all foreign key constraints in the target system are consistent with those in the source system, and check whether the values ​​in the foreign key columns exist in the referenced primary key columns;

[0087] Filter out all unique constraint columns in the database, count the number of occurrences of each unique column, and filter out the number of values ​​with a number of occurrences greater than 1;

[0088] Filter out all columns in the database that do not allow null values, count the number of null values ​​for each non-null column, and find out the number of null values ​​in the non-null column;

[0089] Filter out all check constraints in the database, count the number of values ​​that do not satisfy the condition for each check constraint, and find out the number of values ​​that do not satisfy the check constraint;

[0090] Record all constraint violations, including the number of records that do not satisfy referential integrity, foreign key constraints, unique constraints, non-null constraints, and check constraints. Calculate the ratio of all constraint violations to the total number of data records after migration to obtain the consistency change rate, which is calculated as follows: , where R cy Expressed as the consistency change rate, C fail is the number of times the constraint is violated, N post Represented as the total number of data records after migration;

[0091] Combining the integrity change rate and consistency change rate, the data risk coefficient is calculated. The calculation formula is: , where DR is the data risk factor, R iy Expressed as the integrity change rate, R cy Expressed as the consistency change rate.

[0092] In this embodiment, it should be specifically explained that the step of obtaining the vulnerability risk coefficient according to the vulnerability situation after data migration is:

[0093] Collect vulnerability data, including the total number of vulnerabilities before migration, the total number of vulnerabilities after migration, the number of high-risk vulnerabilities before migration, and the number of high-risk vulnerabilities after migration;

[0094] Calculate the change ratio of the total number of vulnerabilities, the calculation formula is: , where R total Expressed as the change ratio of the total number of vulnerabilities, V pre It is expressed as the total number of vulnerabilities before migration, V post It is expressed as the total number of vulnerabilities after migration, and the ;

[0095] Calculate the ratio of high-risk vulnerabilities to the total number of vulnerabilities before data migration and the ratio of high-risk vulnerabilities to the total number of vulnerabilities after data migration, and calculate the change rate of the ratio of high-risk vulnerabilities to the total number of vulnerabilities. The calculation formula is: , where R nature It is expressed as the ratio of high-risk vulnerabilities to total vulnerabilities, P pre It is expressed as the ratio of high-risk vulnerabilities to total vulnerabilities before migration, P postIt is expressed as the ratio of high-risk vulnerabilities to total vulnerabilities after migration;

[0096] The vulnerability risk coefficient is calculated based on the change ratio of the total number of vulnerabilities and the change ratio of the proportion of high-risk vulnerabilities to the total vulnerabilities. The calculation formula is: , where VR is the vulnerability risk factor, R total Expressed as the change ratio of the total number of vulnerabilities, R nature It is expressed as the change rate of the proportion of high-risk vulnerabilities to total vulnerabilities.

[0097] In this embodiment, it should be specifically explained that the steps for calculating the migration risk coefficient are:

[0098] Set up detailed audit logs and real-time monitoring to detect and respond to unauthorized access attempts. A high frequency of unauthorized access attempts may indicate that existing security measures (such as firewalls, intrusion detection systems, etc.) are not effective enough to prevent attackers' attempts. Frequent unauthorized access attempts may indicate that attackers are more interested in the system and may more actively try to destroy or obtain system data. Use a test environment to test the time it takes to perform the migration. The longer the migration takes, the longer the data is exposed during the transmission process, increasing the risk of data being intercepted or attacked.

[0099] Normalize the number of unauthorized access attempts and the time taken for migration, define baseline values ​​(such as average values ​​or expected values) for the number of unauthorized access attempts and the time taken for migration, measure the normal levels of the number of unauthorized access attempts and the time taken for migration, and calculate the migration risk factor, which is calculated as follows: , where MR represents the migration risk coefficient, NUM ur is the number of unauthorized access attempts, ur 预 is the expected number of unauthorized access attempts, mt is the time taken for migration, and mt 预 The expected time for the migration.

[0100] Security testing after data migration plays an important role in ensuring that the migrated data is not damaged, lost or tampered with, and that all data is consistent before and after migration without duplication or omission. During the migration process, the system environment, configuration or code may change, resulting in new security vulnerabilities. Through security testing, these vulnerabilities can be discovered and fixed in a timely manner, and it can be confirmed whether the vulnerabilities discovered before the migration have been effectively fixed after the migration. Through security testing, system defects introduced during the migration process can be discovered and fixed to ensure the stable operation of the system, identify and resolve security issues in a timely manner, and reduce the risk of system downtime due to security incidents.

[0101] The security assessment module is used to obtain a security index based on the data risk factor, vulnerability risk factor, and migration risk factor, and to assess the current security based on the security index;

[0102] The security index is obtained by comprehensive evaluation of the data risk factor, vulnerability risk factor and migration risk factor, and its calculation formula is: , where ST represents the security index, DR represents the data risk factor. When the data risk in the system increases, the overall security of the system will be weakened, which may make the system more vulnerable to security threats or suffer from data leakage, service interruption and other problems. Therefore, monitoring and managing the data risk factor is an important measure to ensure the continuous and safe operation of the system. By reducing the data risk factor, the security index of the system can be improved, thereby enhancing the system's ability to resist potential threats and stability. VR represents the vulnerability risk factor. When the vulnerability risk factor increases, the security index of the system will decrease, which means that the system is more vulnerable to security attacks or the risk of security vulnerabilities being exploited. A high vulnerability risk factor may lead to security issues such as data leakage, system service interruption or unauthorized access. Therefore, in order to improve the security of the system, it is crucial to manage and reduce the vulnerability risks in the system. Regular vulnerability scanning, repair and security updates are important steps to maintain the system security index. By reducing the vulnerability risk factor, the security and stability of the system can be effectively enhanced to ensure that the system can effectively respond to various security threats and risks. MR represents the migration risk factor. When the migration risk factor increases, the security index of the system will decrease, which means that migration may bring more security risks and challenges. A high migration risk factor may lead to data loss, data leakage, service interruption or data integrity issues, which will directly affect the stability of the system and the trust of users. b1, b2, and b3 are weight coefficients of the data risk factor, the vulnerability risk factor, and the migration risk factor. In this embodiment, the specific values ​​of b1, b2, and b3 are not specifically calculated.

[0103] The security index is compared with the preset threshold. If the security index is greater than the preset threshold, it is determined that the current security is high and can be released and put into use immediately. If the security index is less than the preset threshold, it is determined that the current security is low and cannot be released.

[0104] A processing module is used to perform repairs according to the assessment results, including data repair, vulnerability repair, and migration risk repair, and continue security testing until the security assessment passes;

[0105] If it is determined that the system cannot be released at the moment, it needs to be repaired immediately. After the repair, the safety index assessment will continue until the safety index is greater than the preset threshold, and then it will be released and put into use.

[0106] The repairs include data repair measures, vulnerability repair measures and migration risk repair measures;

[0107] The data repair measures specifically include restoring data from backup to ensure data integrity, re-verifying data to ensure data consistency;

[0108] The vulnerability repair measures specifically include repairing high-risk vulnerabilities first and applying relevant security patches and updates based on the vulnerability risk factor;

[0109] The migration risk remediation measures specifically include optimizing the migration plan, reducing risks during the migration process, increasing monitoring during the migration process, and promptly discovering and handling problems.

[0110] Finally: The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

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

Claims

1. A test system based on an artificial intelligence large model, characterized in that: It includes data acquisition module, data migration assessment module, data migration module, security test module, security assessment module and processing module. The modules are connected by signals. The steps of data processing between modules are as follows: The data collection module is used to use the collector to collect network traffic data in real time and calculate the network stability. It uses static analysis tools to perform vulnerability analysis and detection, detects vulnerabilities before data migration, and evaluates system security based on the vulnerability situation. It evaluates and calculates the recovery capacity coefficient through systematic testing. The system security calculation steps are as follows: Use static analysis tools to detect vulnerabilities before data migration, including the number and location of currently unpatched low-, medium-, and high-risk vulnerabilities; The system security is obtained based on the vulnerability assessment, and the calculation formula is: , where SF stands for system security, NUM f1 Indicates the number of low-risk vulnerabilities, NUM f2 Indicates the number of medium-risk vulnerabilities, NUM f3 It is expressed as the number of high-risk vulnerabilities, s1, s2, and s3 are the weights of low-, medium-, and high-risk vulnerabilities. , , ,and ; The data migration assessment module is used to comprehensively evaluate network stability, system security, and recovery capacity coefficient to obtain the data migration index, which is calculated as follows: , where DM represents the data migration index, NS represents network stability, SF represents system security, RCC represents the recovery capacity coefficient, a1, a2, a3 represent the weight coefficients of network stability, system security and recovery capacity coefficient, and data migration is judged according to the data migration index; A data migration module, used to migrate data in the case of passing the judgment, wherein the case of passing the judgment is that the data migration index is greater than a preset threshold; The security testing module is used to perform integrity and consistency tests on the migrated data and calculate the data risk factor based on the test results; Use static analysis tools to perform vulnerability analysis and detection, detect the vulnerability situation after data migration, and evaluate the vulnerability risk coefficient based on the vulnerability situation after data migration; Set up real-time monitoring to detect and respond to unauthorized access attempts, use the test environment to test the time taken for migration, and calculate the migration risk factor; The security assessment module is used to obtain a security index based on the data risk factor, vulnerability risk factor, and migration risk factor, and to assess the current security based on the security index; The processing module is used to perform repairs according to the assessment results, including data repairs, vulnerability repairs, and migration risk repairs, and continue security testing until the security assessment passes.

2. The test system based on artificial intelligence large model according to claim 1, characterized in that: The network stability calculation steps are: Use network monitoring tools to collect network traffic data in real time, the traffic data including bandwidth usage, packet loss rate and delay data; Calculate the mean and standard deviation of bandwidth usage and latency data; The bandwidth fluctuation rate is calculated based on the bandwidth utilization rate, and its calculation formula is: , where BV is the bandwidth volatility, Expressed as the standard deviation of bandwidth usage, Expressed as the average value of bandwidth usage; The delay volatility is calculated based on the delay data, and its calculation formula is: , where LV is the delayed volatility, Expressed as the standard deviation of the delayed data, Expressed as the average of the delayed data; The network stability is calculated by combining bandwidth fluctuation rate, packet loss rate and delay fluctuation rate. The calculation formula is: , where NS represents network stability, BV represents bandwidth fluctuation rate, PLR represents packet loss rate, and LV represents delay fluctuation rate.

3. The test system based on artificial intelligence large model according to claim 1 is characterized in that: The steps for evaluating and calculating the recovery capacity coefficient through systematic testing are: Count the total data volume of the system and define recovery objectives, which include recovery time objectives and recovery point objectives; Back up data and record the backup time, simulate data loss in the test environment, use the predetermined recovery methods and tools to recover data, and record the total time from starting recovery to completing recovery; After data recovery, check the consistency between the recovered data and the backup data, and count the amount of data lost after recovery; The data loss ratio is calculated by comparing the amount of data lost after recovery to the total amount of data. The recovery capacity coefficient is calculated based on the total recovery time and the data loss ratio. The calculation formula is: , where RCC is the recovery capacity coefficient, T restore Expressed as the total time of recovery, F loss Expressed as a percentage of data loss.

4. The test system based on artificial intelligence large model according to claim 1 is characterized in that: The step of judging data migration based on the data migration index is to compare the data migration index with a preset threshold. If the data migration index is less than the preset threshold, it is determined that the current data migration risk is high, and data migration is not performed. If the data migration index is greater than the preset threshold, it is determined that the current data migration risk is low, and data migration is performed.

5. The test system based on artificial intelligence large model according to claim 1 is characterized in that: The steps of calculating the data risk coefficient according to the test results are as follows: Before data migration, execute a query statement to obtain the total number of data records in the source system. After data migration is completed, execute a query statement to obtain the total number of data records in the target system. Calculate the total number of data records before migration and the total number of data records after migration to obtain the integrity change rate. Find all foreign key relationships in the database, where the foreign key relationships include foreign key columns and referenced primary key columns. For each foreign key column, check whether its value exists in the referenced primary key column, and count the number of values ​​in the foreign key column that do not exist in the referenced primary key column. Obtain the definitions of all foreign key constraints, including the constraint name, foreign key columns, and referenced tables and columns, confirm that the definitions of all foreign key constraints in the target system are consistent with those in the source system, and check whether the values ​​in the foreign key columns exist in the referenced primary key columns; Filter out all unique constraint columns in the database, count the number of occurrences of each unique column, and filter out the number of values ​​with a number of occurrences greater than 1; Filter out all columns in the database that do not allow null values, count the number of null values ​​for each non-null column, and find out the number of null values ​​in the non-null column; Filter out all check constraints in the database, count the number of values ​​that do not satisfy the condition for each check constraint, and find out the number of values ​​that do not satisfy the check constraint; Record all constraint violations, including the number of records that do not satisfy referential integrity, foreign key constraints, unique constraints, non-null constraints, and check constraints. Calculate the ratio of all constraint violations to the total number of data records after migration to obtain the consistency change rate. Combining the integrity change rate and consistency change rate, the data risk coefficient is calculated. The calculation formula is: , where DR is the data risk factor, R iy Expressed as the integrity change rate, R cy Expressed as the consistency change rate.

6. The test system based on artificial intelligence big model according to claim 1 is characterized in that: The steps of obtaining the vulnerability risk coefficient according to the vulnerability situation after data migration are as follows: Collect vulnerability data, including the total number of vulnerabilities before migration, the total number of vulnerabilities after migration, the number of high-risk vulnerabilities before migration, and the number of high-risk vulnerabilities after migration; Calculate the change ratio of the total number of vulnerabilities, the calculation formula is: , where R total Expressed as the change ratio of the total number of vulnerabilities, V pre It is expressed as the total number of vulnerabilities before migration, V post is the total number of vulnerabilities after migration, and ; Calculate the ratio of high-risk vulnerabilities to the total number of vulnerabilities before data migration and the ratio of high-risk vulnerabilities to the total number of vulnerabilities after data migration, and calculate the change rate of the ratio of high-risk vulnerabilities to the total number of vulnerabilities. The calculation formula is: , where R nature It is expressed as the ratio of high-risk vulnerabilities to total vulnerabilities, P pre It is expressed as the ratio of high-risk vulnerabilities to total vulnerabilities before migration, P post It is expressed as the ratio of high-risk vulnerabilities to total vulnerabilities after migration; The vulnerability risk coefficient is calculated based on the change ratio of the total number of vulnerabilities and the change ratio of the proportion of high-risk vulnerabilities to the total vulnerabilities. The calculation formula is: , where VR is the vulnerability risk factor, R total Expressed as the change ratio of the total number of vulnerabilities, R nature It is expressed as the change rate of the proportion of high-risk vulnerabilities to total vulnerabilities.

7. The test system based on artificial intelligence large model according to claim 1 is characterized in that: The migration risk coefficient calculation steps are: Set up real-time monitoring to detect and respond to unauthorized access attempts, and use a test environment to test the time it takes to perform the migration. Normalize the number of unauthorized access attempts and the time taken for migration, set the expected value of the number of unauthorized access attempts and the time taken for migration, and calculate the migration risk coefficient. The calculation formula is: , where MR represents the migration risk coefficient, NUM ur is the number of unauthorized access attempts, ur 预 is the expected number of unauthorized access attempts, mt is the time taken for migration, and mt 预 The expected time for the migration.

8. The test system based on artificial intelligence large model according to claim 1 is characterized in that: The step of evaluating the current security according to the security index is to compare the security index with a preset threshold. If the security index is greater than the preset threshold, the current security is determined to be high and it is immediately released and put into use. If the security index is less than the preset threshold, the current security is determined to be low and cannot be released.

Citation Information

Patent Citations

  • Partition positioning risk assessment method for mimicry network

    CN116743450A

  • Industrial control vulnerability repairing method and system based on reinforcement learning value calculation

    CN117896106A