Database abnormal access detection method based on artificial intelligence
Through the database abnormal access detection method based on artificial intelligence, log analysis and in-depth analysis are used to generate abnormal signals, which solves the time-consuming, labor-intensive and error-prone problems of traditional methods, achieves efficient and accurate anomaly detection and security threat response, and enhances system security. sex.
Patent Information
- Application Number
- CN202410104113.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-25
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-01-25
AI Technical Summary
Traditional database abnormal access detection methods rely on manual analysis, are time-consuming, labor-intensive and error-prone, and cannot effectively deal with the security threats brought by increased database access and hacker attacks.
Adopt an artificial intelligence-based database abnormal access detection method to generate abnormal signals through log collection, information verification, log preprocessing, log analysis and in-depth analysis, and restrict user access rights based on abnormal signals, using pre-trained information verification models and artificial intelligence Intelligent processing model for automatic detection.
It achieves real-time monitoring and timely detection of abnormal conditions, improves detection accuracy and efficiency, reduces misjudgments and missed judgments, enhances system security, can respond to potential security threats in a timely manner and reduces the probability of security incidents.
Smart Images

Figure CN117972684B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of access detection, and in particular to a method for detecting abnormal database access based on artificial intelligence. Background Art
[0002] With the rapid development of the Internet, databases are the core of enterprise data storage and management. Security is the foundation of industrial Internet of Things databases and an important indicator for evaluating databases. Industrial real-time databases store a large amount of key equipment operation and manufacturing process data, so the system must have a highly reliable security strategy to prevent data leakage and damage.
[0003] However, due to the increasing number of database accesses, hacker attacks and malicious behaviors are becoming increasingly rampant, causing huge losses to enterprises. Traditional abnormal access detection methods mainly rely on manual analysis and monitoring, which is time-consuming, labor-intensive, and prone to errors. Therefore, it is necessary to develop an artificial intelligence-based database abnormal access detection method to improve the accuracy and efficiency of detection. Summary of the invention
[0004] The purpose of the present invention is to provide a database abnormal access detection method based on artificial intelligence, which solves the technical problems raised in the background technology.
[0005] The purpose of the present invention can be achieved through the following technical solutions:
[0006] The method for detecting abnormal database access based on artificial intelligence includes the following steps:
[0007] Step 1: Log Collection
[0008] Collect access logs in the database, which include user IP, user ID, and access time;
[0009] Step 2: Information Verification
[0010] Import all collected access logs into the pre-trained information verification model. The information verification model matches the corresponding user IP and user ID from the security policy area in the preset rule policy library, and then obtains the user IP and user ID in the security policy area.
[0011] Step 3: Log preprocessing
[0012] Import all collected access logs into the pre-trained artificial intelligence processing model. The artificial intelligence processing model matches multiple access times corresponding to the user ID in the user-side IP with the time rule policy in the preset rule policy library, and obtains the corresponding access time that is not in the time rule policy. Then, according to the maximum time parameter and minimum time parameter corresponding to the preset normal access time range in the access time and time rule policy, calculate the analysis time difference corresponding to each access time;
[0013] Step 4: Log Analysis
[0014] By using the variance analysis method, the analysis time differences that lead to excessive dispersion between the analysis time differences are analyzed and obtained, and then corresponding abnormal signals are generated based on them;
[0015] Step 5: In-depth analysis
[0016] Based on the user IP and user ID, secondary analysis is performed through the time rule strategy and the corresponding analysis time difference, and the corresponding generated abnormal signal is obtained based on the analysis results;
[0017] Step 6: Exception Management
[0018] According to the corresponding abnormal signal, the corresponding access time, user terminal IP and user ID are transmitted to the administrator and / or the preset management terminal, and the access rights of the user terminal IP and user ID corresponding to the abnormal signal are restricted.
[0019] As a further solution of the present invention: the specific verification method of the second step is as follows:
[0020] First, the information verification model extracts all user IPs and user IDs from all access logs;
[0021] Then, each client IP and user ID is matched with the security policy area in the preset rule policy library:
[0022] When the corresponding user IP and user ID are in the preset security policy area, proceed to the next step;
[0023] The security policy area includes access rights corresponding to the user-side IP and user ID. When the user-side IP and user ID match the security policy area respectively, the security policy area contains corresponding access rights, indicating that it is in the preset security policy area.
[0024] As a further solution of the present invention: when the corresponding user-side IP and user ID are not in the preset security policy area, that is, the security policy area does not contain the corresponding access rights, a corresponding abnormal signal is generated and transmitted to the administrator and / or the preset management terminal.
[0025] As a further solution of the present invention: the specific pretreatment method of the third step is as follows:
[0026] SS1, select a user IP, obtain the user IP, preset all access times within the target period and their corresponding user IDs;
[0027] SS2. Mark the access time corresponding to each user ID as FS i,j , i = 1, 2, ... m, m represents the number of corresponding user IDs, j = 1, 2, ... n, n represents the number of corresponding access times;
[0028] SS3, let the value of i be 1, and then the FS corresponding to the user ID 1,j Match the time rule strategies in the preset rule strategy library respectively: and obtain the corresponding FS that is not in the time rule strategy 1,j ;
[0029] The time rule strategy includes a corresponding preset normal access time range, and the normal access time range is set in a plurality of standard time periods pre-divided in the target cycle, that is, each standard time period includes a corresponding normal azimuth time range;
[0030] SS4. At the same time, obtain the maximum time parameter S of the normal access time range from the time rule policy max and the minimum time parameter S min ;
[0031] SS5. Calculate the FS values corresponding to the user ID in each standard period. 1,j With S max The time difference SC max,j , and calculate the FS corresponding to the user ID 1,j With S min The time difference SC min,j ;
[0032] SS6, from the same FS 1,j The corresponding SC max,j and SC min,j Among them, the group with the smallest difference is selected as the analysis time difference;
[0033] As a further solution of the present invention: the specific analysis method of the fourth step is as follows:
[0034] SG1. Select a standard time period and obtain the analysis time difference corresponding to all access times of all user IDs of each user terminal IP within the same standard time period;
[0035] SG2, mark the analysis time difference corresponding to each user ID in each user terminal IP twice, and the marking result is SCt , t = 1, 2, ... r, r represents the number of corresponding analysis time differences of all access times in the same standard period;
[0036] SG3, use the variance calculation formula to calculate each SC t The variance value FC between them;
[0037] SG4. Compare the variance value FC obtained in step SG3 with the preset discreteness threshold Cy:
[0038] If FC>Cy, it means that each SC t The degree of dispersion between them is too large, then according to |SC t -SC p | Delete the corresponding SC in order from large to small t The remaining variance values are calculated accordingly until FC≤Cy;
[0039] Among them, SC p Indicates all SCs used to calculate the corresponding variance value t The average value of
[0040] SG5. Get the corresponding SC to be deleted t , and then according to the deleted SC t Corresponding secondary tags, obtain their corresponding access time, user IP and user ID;
[0041] Among them, the deleted SC t , indicating that the corresponding access time, user IP and user ID are abnormal, and a corresponding abnormal signal is generated.
[0042] As a further solution of the present invention: the secondary analysis method is as follows:
[0043] Based on the user IP, the corresponding method is as follows:
[0044] SK11, the deleted SC obtained in step SG5 t Among the corresponding user IPs, a user IP is selected, and the number q1 of all analysis time differences corresponding to all user IDs corresponding to the user IP within the preset target period that are not in the time rule strategy, and the number q2 of all analysis time differences corresponding to the time rule strategy are obtained;
[0045] SK12. Obtain the first abnormality proportion parameter Y1 by Y1=[q1+1 / (q1+q2+1)]+α1, where α1 is the corresponding preset compensation factor;
[0046] SK13. Then compare the first abnormality ratio parameter Y1 with the preset abnormality ratio threshold value By1:
[0047] If Y1>By1, it means that the corresponding user IP access is abnormal, and a corresponding abnormal signal is generated;
[0048] Based on the user ID, the corresponding method is as follows:
[0049] SK21, the deleted SC obtained in step SG5 t Select a user ID from the corresponding user IDs, and obtain the number p1 of all analysis time differences corresponding to all user-end IP addresses that are not in the time rule strategy within the preset target period, and the number p2 of all analysis time differences corresponding to the time rule strategy;
[0050] SK22. Obtain the second abnormality proportion parameter Y2 by Y2=[p1+1 / (p1+p2+1)]+α2, where α2 is the corresponding preset compensation factor;
[0051] SK23. Then compare the second abnormality ratio parameter Y2 with the preset abnormality ratio threshold value By2:
[0052] If Y2>By2, it means that the corresponding user ID access is abnormal, and a corresponding abnormal signal is generated.
[0053] As a further solution of the present invention: in step SK13, if Y1≤By1, no corresponding abnormal signal is generated, and in step SK23, if Y2≤By2, no corresponding abnormal signal is generated.
[0054] Beneficial effects of the present invention:
[0055] The present invention can monitor the access logs in the database in real time, discover abnormal situations in time and generate corresponding abnormal signals, which is helpful to quickly respond to potential security threats. The user IP and user ID are automatically extracted through the information verification model, and matched with the preset rule policy library, which can accurately determine whether the user has access rights, avoid the occurrence of misjudgment and missed judgment, reduce the need for manual intervention, and improve processing efficiency. According to the abnormal signal, measures can be taken in time to limit the access rights of the user IP and user ID corresponding to the abnormal signal, effectively protecting the security of the system;
[0056] The present invention can reasonably divide and filter log data by setting preset target cycles, standard time periods and normal access time ranges, reduce the impact of irrelevant information, and in the log analysis process, can find abnormal access behaviors and generate abnormal signals by correlating the analysis time differences of each user ID in different standard time periods, which helps to timely discover and deal with security issues, discover potential security risks, take preventive measures in advance, and reduce the probability of security incidents.
[0057] By secondary analysis of the user IP and user ID, the present invention can more comprehensively understand abnormal access behavior and improve the accuracy of abnormal detection; by comparing the abnormal proportion parameters of different user IPs and user IDs, potential security risks can be discovered, and preventive measures can be taken in advance to reduce the probability of security incidents.
[0058] The present invention can effectively identify and prevent potential security risks and improve the security of the system. The method adopts a multi-step analysis process, including information verification, log preprocessing, log analysis and deep analysis, so that anomaly detection is more comprehensive and accurate. Matching is performed according to preset security policy areas and time rule policies, which improves the accuracy and efficiency of anomaly detection. At the same time, detailed anomaly signals can be generated to facilitate administrators to carry out subsequent processing and decision-making. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] The present invention will be further described below in conjunction with the accompanying drawings.
[0060] Figure 1 It is a flow chart of the abnormal database access detection method based on artificial intelligence of the present invention.
[0061] Figure 2 It is a schematic diagram of the secondary analysis flow of the abnormal database access detection method based on artificial intelligence of the present invention. DETAILED DESCRIPTION
[0062] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0063] Embodiment 1
[0064] See also Figure 1 As shown, the present invention is a method for detecting abnormal database access based on artificial intelligence, comprising the following steps:
[0065] Step 1: Log Collection
[0066] Collect access logs in the database, which include user IP, user ID, and access time;
[0067] Step 2: Information Verification
[0068] First, all collected access logs are imported into the pre-trained information verification model, which extracts all user IPs and user IDs from all access logs.
[0069] Then, each client IP and user ID is matched with the security policy area in the preset rule policy library:
[0070] When the corresponding user IP and user ID are not in the preset security policy area, an abnormal signal 1 is generated;
[0071] The security policy area contains the access rights corresponding to the user IP and user ID. When the user IP and user ID match the security policy area, the security policy area contains the corresponding access rights, which means that it is in the preset security policy area. Otherwise, it is the opposite.
[0072] Step 3: Exception Management
[0073] According to the corresponding abnormal signal, the corresponding access time, user terminal IP and user ID are transmitted to the administrator and / or the preset management terminal, and the administrator limits the access rights of the user terminal IP and user ID corresponding to the abnormal signal through operation, and / or the management terminal limits the access rights of the user terminal IP and user ID corresponding to the abnormal signal through the pre-trained management model;
[0074] This embodiment can monitor the access logs in the database in real time, discover abnormal situations in time and generate corresponding abnormal signals, which is helpful to quickly respond to potential security threats. The user-side IP and user ID are automatically extracted through the information verification model, and matched with the preset rule policy library. It can accurately determine whether the user has access rights, avoid misjudgment and missed judgment, reduce the need for manual intervention, and improve processing efficiency. According to the abnormal signal, measures can be taken in time to limit the access rights of the user-side IP and user ID corresponding to the abnormal signal, effectively protecting the security of the system.
[0075] Embodiment 2
[0076] As the second embodiment of the present invention, when the present application is specifically implemented, compared with the first embodiment, the technical solution of the present embodiment is different from the first embodiment only in that, on the basis of the first embodiment: when the corresponding user terminal IP and user ID are in the preset security policy area, the steps of log preprocessing and log analysis are also performed in sequence;
[0077] Corresponding steps: Log preprocessing method is as follows:
[0078] Import all collected access logs into the pre-trained artificial intelligence processing model for pre-processing. The pre-processing method is as follows:
[0079] SS1. In a user IP, obtain all access times and their corresponding user IDs within a preset target period;
[0080] SS2. Mark the access time corresponding to each user ID as FS i,j , i = 1, 2, ... m, m represents the number of corresponding user IDs, j = 1, 2, ... n, n represents the number of corresponding access times;
[0081] SS3, let the value of i be 1, and then the FS corresponding to the user ID 1,j Match the time rule strategies in the preset rule strategy library respectively:
[0082] And get the corresponding FS that is not in the time rule strategy 1,j ;
[0083] The time rule strategy includes a corresponding preset normal access time range, and the normal access time range is set in a plurality of standard time periods pre-divided in the target cycle, that is, each standard time period includes a corresponding normal azimuth time range;
[0084] In this embodiment, the preset target period is 5 days, the standard period is 1 day, and the normal access time range is the time range of 8:00-18:00 in each standard period;
[0085] SS4. At the same time, obtain the maximum time parameter S of the normal access time range from the time rule policy max and the minimum time parameter S min ;
[0086] In this embodiment, the maximum time parameter S max is 18:00, the minimum time parameter S min 8:00;
[0087] SS5. Calculate the FS values corresponding to the user ID in each standard period. 1,j With S max The time difference SC max,j , and calculate the FS corresponding to the user ID 1,j With S min The time difference SC min,j ;
[0088] In this embodiment, if a FS corresponding to the user ID 1,jis 23:00, then it corresponds to SC max,j is 9 hours, and the corresponding SC min,j 5 hours;
[0089] SS6, from the same FS 1,j The corresponding SC max,j and SC min,j Among them, the group with the smallest difference is selected as the analysis time difference;
[0090] In this embodiment, corresponding to SC max,j and SC min,j They are 9 hours and 5 hours respectively, i.e. the corresponding analysis time difference is 5 hours;
[0091] SS7, in other user end IPs, obtain the analysis time difference corresponding to each user ID in each standard time period according to steps SS1 to SS6;
[0092] Corresponding steps: The log analysis method is as follows:
[0093] Based on the analysis time difference obtained by log preprocessing, correlation analysis is performed on abnormal database access as follows:
[0094] SG1. Select a standard time period and obtain the analysis time difference corresponding to all access times of all user IDs of each user terminal IP within the same standard time period;
[0095] SG2, mark the analysis time difference corresponding to each user ID in each user terminal IP twice, and the marking result is SC t , t = 1, 2, ... r, r represents the number of corresponding analysis time differences of all access times in the same standard period;
[0096] SG3, use the variance calculation formula to calculate each SC t The variance value FC between them;
[0097] SG4. Compare the variance value FC obtained in step SG3 with the preset discreteness threshold Cy:
[0098] If FC>Cy, it means that each SC t The degree of dispersion between them is too large, then according to |SC t -SC p | Delete the corresponding SC in order from large to small t The remaining variance values are calculated accordingly until FC≤Cy;
[0099] Among them, SC p Indicates all SCs used to calculate the corresponding variance value t The average value of
[0100] SG5. Get the corresponding SC to be deleted t , and then according to the deleted SC t Corresponding secondary tags, obtain their corresponding access time, user IP and user ID;
[0101] Among them, the deleted SC t , indicating that the corresponding access time, user IP and user ID are abnormal, and abnormal signal 2 is generated.
[0102] This embodiment can reasonably divide and filter log data by setting preset target cycles, standard time periods and normal access time ranges, reduce the impact of irrelevant information, and in the log analysis process, by correlating the analysis time differences of each user ID in different standard time periods, abnormal access behaviors can be discovered and abnormal signals can be generated, which helps to timely discover and deal with security issues, discover potential security risks, take preventive measures in advance, and reduce the probability of security incidents.
[0103] Embodiment 3
[0104] See also Figure 2 As shown, as the third embodiment of the present invention, when the present application is specifically implemented, compared with the first and second embodiments, the technical solution of this embodiment is to combine the solutions of the first and second embodiments, and the difference between the technical solution of this embodiment and the first and second embodiments is that, on the basis of the first and second embodiments, this embodiment further performs the steps: in-depth analysis, the method is as follows:
[0105] Based on the user IP benchmark, a secondary analysis of abnormal database access is performed, and the corresponding methods are as follows:
[0106] SK11, the deleted SC obtained in step SG5 t Among the corresponding user IPs, a user IP is selected, and the number q1 of all analysis time differences corresponding to all user IDs corresponding to the user IP within the preset target period that are not in the time rule strategy, and the number q2 of all analysis time differences corresponding to the time rule strategy are obtained;
[0107] SK12. Obtain the first abnormality proportion parameter Y1 by Y1=[q1+1 / (q1+q2+1)]+α1; wherein α1 is the corresponding preset compensation factor;
[0108] SK13. Then compare the first abnormality ratio parameter Y1 with the preset abnormality ratio threshold value By1:
[0109] If Y1>By1, it means that the corresponding user IP access is abnormal, and abnormal signal 3 is generated, otherwise no corresponding abnormal signal is generated;
[0110] Embodiment 4
[0111] As the fourth embodiment of the present invention, when the present application is specifically implemented, compared with the first embodiment, the second embodiment and the third embodiment, the difference between the present embodiment and the first embodiment, the second embodiment and the third embodiment is that, on the basis of the third embodiment, the present embodiment further performs a secondary analysis on the abnormal access to the database according to the user end IP benchmark, and the corresponding method is as follows:
[0112] SK21, the deleted SC obtained in step SG5 t Select a user ID from the corresponding user IDs, and obtain the number p1 of all analysis time differences corresponding to all user-end IP addresses that are not in the time rule strategy within the preset target period, and the number p2 of all analysis time differences corresponding to the time rule strategy;
[0113] SK22. Obtain the second abnormality proportion parameter Y2 by Y2=[p1+1 / (p1+p2+1)]+α2; wherein α2 is the corresponding preset compensation factor;
[0114] SK23. Then compare the second abnormality ratio parameter Y2 with the preset abnormality ratio threshold value By2:
[0115] If Y2>By2, it means that the corresponding user ID access is abnormal and an abnormal signal four is generated. Otherwise, the corresponding abnormal signal is not generated.
[0116] Embodiment 3 and Embodiment 4 can more comprehensively understand abnormal access behavior and improve the accuracy of abnormal detection by secondary analysis of user-side IP and user ID; by comparing the abnormal proportion parameters of different user-side IP and user ID, potential security risks can be discovered, and preventive measures can be taken in advance to reduce the probability of security incidents.
[0117] Embodiment 5
[0118] As the fifth embodiment of the present invention, when the present application is specifically implemented, compared with the first, second, third and fourth embodiments, the technical solution of this embodiment is to combine and implement the solutions of the above-mentioned first, second, third and fourth embodiments.
[0119] The artificial intelligence-based database abnormal access detection method can effectively identify and prevent potential security risks and improve the security of the system. This method adopts a multi-step analysis process, including information verification, log preprocessing, log analysis and deep analysis, making anomaly detection more comprehensive and accurate. It matches according to the preset security policy area and time rule strategy, which improves the accuracy and efficiency of anomaly detection. At the same time, it can generate detailed abnormal signals to facilitate administrators to carry out subsequent processing and decision-making.
[0120] The above formulas are all dimensionless and numerical calculations. The formula is a formula for the most recent real situation obtained by collecting a large amount of data and performing software simulation. The preset parameters and thresholds in the formula are set by technicians in this field according to actual conditions.
[0121] 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. Database abnormal access detection method based on artificial intelligence, It is characterized in that The following steps are involved: The first step is to collect access logs in the database. The access logs include the user IP, user ID, and access time. The second step is to import all the collected access logs into the pre-trained information verification model. The information verification model will match the security policy corresponding to the user IP and user ID from the preset rule policy library: the matching method is as follows: First, the information verification model extracts all user IPs and user IDs from all access logs; Then, each client IP and user ID is matched with the security policy in the preset rule policy library: When the corresponding user IP and user ID are in the preset security policy, proceed to the next step; The security policy includes access rights corresponding to the user IP and user ID. When the user IP and user ID match the security policy respectively, the security policy contains the corresponding access rights, which means that it is within the preset security policy. Then obtain the user's IP and user ID in the security policy; The third step is to import all the collected access logs into the pre-trained artificial intelligence processing model. The artificial intelligence processing model will match multiple access times of the corresponding user ID in the user-side IP in the security policy with the time rule policy in the preset rule policy library, and obtain the corresponding access time that is not in the time rule policy. Then, according to the maximum time parameter and minimum time parameter corresponding to the preset normal access time range in the access time and time rule policy, the analysis time difference corresponding to each access time is calculated; The specific preprocessing methods are as follows: SS1, select a user IP, obtain the user IP, preset all access times within the target period and their corresponding user IDs; SS2. Mark the access time corresponding to each user ID as FS i,j , i=1, 2, ...m, m represents the number of corresponding user IDs, j=1, 2, ...n, n represents the number of corresponding access times; SS3, let the value of i be 1, and then the FS corresponding to the user ID 1,j Match the time rule strategies in the preset rule strategy library respectively: and obtain the corresponding FS that is not in the time rule strategy 1,j ; The time rule strategy includes a corresponding preset normal access time range, and the normal access time range is set to a plurality of standard time periods pre-divided in the target cycle, that is, each standard time period includes a corresponding normal access time range; SS4. At the same time, obtain the maximum time parameter S of the normal access time range from the time rule policy max and the minimum time parameter S min ; SS5. Calculate the FS values corresponding to the user ID in each standard period. 1,j With S max The time difference SC max,j , and calculate the FS corresponding to the user ID 1,j With S min The time difference SC min,j ; SS6, from the same FS 1,j The corresponding SC max,j and SC min,j Among them, the group with the smallest difference is selected as the analysis time difference; Step 4: Analyze and obtain the analysis time differences that lead to excessive dispersion between the analysis time differences through variance analysis method, and then generate corresponding abnormal signals based on them; Step 5: According to the corresponding abnormal signal, the access rights of the user IP and user ID at the corresponding access time are restricted.
2. According to the method for detecting abnormal database access based on artificial intelligence in claim 1, It is characterized in that When the corresponding user IP and user ID are not in the preset security policy, that is, the security policy does not contain the corresponding access rights, a corresponding abnormal signal is generated and transmitted to the administrator and / or the preset management terminal.
3. According to the method for detecting abnormal database access based on artificial intelligence in claim 1, It is characterized in that The specific analysis method of the fourth step is as follows: SG1. Select a standard time period and obtain the analysis time difference corresponding to all access times of all user IDs of each user end IP in the same standard time period; SG2, mark the analysis time difference corresponding to each user ID in each user terminal IP twice, and the marking result is SC t , t = 1, 2, ... r, r represents the number of corresponding analysis time differences of all access times in the same standard period; SG3, use the variance calculation formula to calculate each SC t The variance value FC between them; SG4. Compare the variance value FC obtained in step SG3 with the preset discreteness threshold Cy: If FC>Cy, it means that each SC t The degree of dispersion between them is too large, then according to |SC t -SC p |Delete the corresponding SC in order from large to small t The remaining variance values are calculated accordingly until FC≤Cy; Among them, SC p Indicates all SCs used to calculate the corresponding variance value t The average value of SG5. Get the corresponding SC to be deleted t , and then according to the deleted SC t Corresponding secondary tags, obtain their corresponding access time, user IP and user ID; Among them, the deleted SC t , indicating that the corresponding access time, user IP and user ID are abnormal, and a corresponding abnormal signal is generated.
4. According to the method for detecting abnormal database access based on artificial intelligence in claim 3, It is characterized in that On the basis of the fourth step, this method also takes the user-side IP and user ID as the benchmark, and performs secondary analysis through the time rule strategy and the corresponding analysis time difference, and obtains the corresponding generated abnormal signal based on the analysis result.
5. According to the method for detecting abnormal database access based on artificial intelligence in claim 4, It is characterized in that Based on the user IP, the corresponding method is as follows: SK11, the deleted SC obtained in step SG5 t Select a user IP from the corresponding user IPs, and obtain the number of analysis time differences q corresponding to all user IDs corresponding to the user IP within the preset target period that are not in the time rule strategy 1 , and the number of corresponding analysis time differences q in all time rule strategies 2 ; SK12, through Y 1 =[q 1 +1 / (q 1 +q 2 +1)]+α 1 , get the first abnormal proportion parameter Y 1 , where α 1 is the corresponding preset compensation factor; SK13, then the first abnormal proportion parameter Y 1 By the preset abnormal proportion threshold 1 For comparison: If Y 1 >By 1 , it means that the corresponding user IP access is abnormal and a corresponding abnormal signal is generated.
6. According to the artificial intelligence-based database abnormal access detection method of claim 5, It is characterized in that Based on the user ID, the corresponding method is as follows: SK21, the deleted SC obtained in step SG5 t Select a user ID from the corresponding user IDs, and obtain the number of analysis time differences p corresponding to all user IP addresses of the user ID that are not in the time rule strategy within the preset target period. 1 , and the number of corresponding analysis time differences p in all time rule strategies 2 ; SK22, through Y 2 =[p 1 +1 / (p 1 +p 2 +1)]+α 2 , get the second abnormal proportion parameter Y 2 , where α 2 is the corresponding preset compensation factor; SK23, then the second abnormal proportion parameter Y 2 By the preset abnormal proportion threshold 2 For comparison: If Y 2 >By 2 , it means that the corresponding user ID access is abnormal and a corresponding abnormal signal is generated.
7. The method for detecting abnormal database access based on artificial intelligence according to claim 6, It is characterized in that In step SK13, if Y 1 ≤By 1 , then no corresponding abnormal signal is generated, and in step SK23, if Y 2 ≤By 2 , no corresponding exception signal is generated.
