Server intrusion early warning method and system
The LSTM-CNN real-time warning model is used to analyze the patterns and characteristics of server intrusion data, which solves the problem of missed alarms in traditional IDS systems in monitoring and updating, achieves high-precision detection and timely alarm of new intrusion behaviors, and ensures server security.
Patent Information
- Application Number
- CN202410753436.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-08-23
AI Technical Summary
Traditional IDS systems have the problem of missed alarms in terms of monitoring updates, especially for the latest intrusion attacks such as zero-day vulnerability attacks and advanced persistent threats (APT), which cannot be updated in time, resulting in inaccurate warnings.
The LSTM-CNN real-time early warning model is used to capture and decompose server intrusion and network attack data in real time, split data patterns, sequences and feature profiles, train the model to identify intrusion requests, and detect intrusion requests that have not been identified by the super administrator. Alerts in case of abnormal operation.
Significantly improves the accuracy and coverage of intrusion detection, can detect highly concealed intrusions in a timely manner, and ensure the security and stability of the server system.
Smart Images

Figure CN118540141A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information technology, in particular to a server intrusion early warning method, and also to a server intrusion early warning system. Background Art
[0002] With the development of Internet technology and the widespread application of the network, network security has become an issue that people are paying more and more attention to. As a device that provides computing or other services, the security of the server is particularly important in the current network environment. At present, there are many types of intrusion behaviors on the server, and the intrusion time is highly random. In the existing technology, the method that relies on manual detection by server maintenance personnel has poor real-time performance and low efficiency.
[0003] Traditional IDS is a computer monitoring system. It monitors the system in real time and issues a warning once an abnormal situation is found. It is divided into several categories based on the different information sources and detection methods: based on the information source, it can be divided into host-based IDS and network-based IDS, and based on the detection method, it can be divided into abnormal intrusion detection and misuse intrusion detection. Unlike firewalls, IDS intrusion systems are monitoring devices that are not connected to any links and can work without network traffic flowing through them. Therefore, the only requirement for the deployment of IDS is that IDS should be mounted on the link through which all traffic of concern must flow. Here, "traffic of concern" refers to access traffic from high-risk network areas and network messages that need to be counted and monitored. In today's network topology, it is difficult to find the previous HUB-style shared media collision domain network, and most network areas have been fully upgraded to a switched network structure. Therefore, the location of IDS in a switched network is generally chosen to be as close to the attack source as possible or as close to the protected resource as possible. However, traditional IDS systems have the problem of inaccurate warnings, especially for some of the latest and more technically complex intrusion attacks, such as zero-day vulnerability attacks, advanced persistent threats (APTs), and new attacks based on artificial intelligence technology. These cutting-edge intrusions, the monitoring updates of IDS systems often cannot be updated in a timely manner. These problems lead to missed alarms. Summary of the invention
[0004] The first purpose of the present invention is to provide a server intrusion early warning method, which solves the technical problems that traditional IDS warnings are inaccurate and some cutting-edge intrusions cannot be updated and monitored in a timely manner.
[0005] The second object of the present invention is to provide a server intrusion early warning system.
[0006] The first technical solution adopted by the present invention is a server intrusion early warning method, comprising the following steps:
[0007] Step 1: Capture and store all server intrusion and network attack data on the Internet in real time;
[0008] Step 2: Decompose the captured data into data, data pattern, data sequence and data feature profile;
[0009] Step 3: Store the decomposed and split data, and list the decomposed data as data features to train the LSTM-CNN real-time warning model;
[0010] Step 4: When a request is made to access the server, obtain the server's request data;
[0011] Step 5: Input the acquired request data into the latest real-time warning model for identification, and compare the pattern, sequence and feature profile with the decomposed data. If an intrusion request occurs, proceed to step 7, otherwise proceed to step 6;
[0012] Step 6: Detect the server for operations such as deleting users, deleting files, creating new user files, continuous request times, and deleting logs without the super administrator ID;
[0013] Step 7: Issue an alarm and send a message to notify the server administrator.
[0014] The present invention is also characterized in that:
[0015] The specific process of step 1 is:
[0016] Real-time monitoring and periodic data capture from public systems or forum channels, and extract data related to server intrusion or network attacks. Through entity recognition and keyword extraction, key information related to server intrusion or attack data is extracted. Key information includes IP address, attack source, attack type and means, URL of attack request, access path, request parameters and abnormal system operation information. Finally, the extracted intrusion request data and attack request data are combined into a request data set and stored. The request data set is updated regularly according to the captured data.
[0017] The specific process of step 2 is:
[0018] The specific process of step 2 is: decompose each request data in the request data set obtained in step 1 to obtain several request sources, and further expand the data of each request source to obtain the expanded data set A; perform request pattern data splitting on each request data in the request data set to obtain request pattern data set B; perform data sequence splitting on each request data in the request data set to obtain request sequence data set C; perform data feature profile splitting on each request data in the request data set to obtain request feature profile data set D.
[0019] In step 2, the specific process of decomposing each request data is as follows: first, use text parsing and regular expressions to parse each request data to extract key information, where the key information includes but is not limited to the source IP address, target IP address, request type, request parameters and request path; then, based on the extracted key information, identify the request source corresponding to each request data; cluster or match the features of the request data to classify similar requests as the same request source; finally, decompose each request data into several request sources. If a request data involves multiple request sources, decompose it into multiple independent request sources.
[0020] In step 2, the specific process of data expansion for each request source is as follows: for each request data, first decompose it into multiple basic units, namely, minimum units, where each minimum unit represents an independent request or event; then, for each minimum unit, perform semantic recognition or address position recognition to determine its key features or location information; then, crawl the relevant data that matches the semantics of the first minimum unit from the network as the second minimum unit, and at the same time, obtain the relevant location that matches the address location of the first minimum unit and summarize it into the second minimum unit; finally, summarize the data of the first minimum unit and the second minimum unit to obtain the expanded data set A;
[0021] Semantic recognition is as follows: 1) segment and annotate the request content to extract keywords and key phrases; 2) use word embedding technology to convert keywords and phrases into vector representations; 3) calculate the similarity between vectors and determine the similarity between two request contents using the cosine similarity method;
[0022] Address location identification includes: 1) using an IP address library or a domain name resolution service to convert an IP address or a domain name into a geographic location coordinate; 2) calculating the distance between geographic locations and determining whether the address locations of two requests are close by using the Manhattan distance method;
[0023] In step 2, the specific process of splitting the request pattern data for each request data is as follows: extracting features from each request data, the features including but not limited to the source IP address, target IP address, request time, request type, request parameters and user agent information of the request, and performing pattern recognition on the request based on the extracted features to determine the pattern to which the request belongs;
[0024] Pattern recognition is as follows: define a set of rules to identify common attack patterns; then, add the identified patterns as labels to the request data, so that each request data contains not only the original information, but also its pattern label such as "normal request, SQL injection attack, denial of service attack"; finally, aggregate all the request data that have undergone pattern recognition and labeling to form a request pattern dataset B;
[0025] In step 2, the specific process of splitting the data sequence of each request data is as follows: split each request data into several subsequences in chronological order; the specific steps are as follows: first, split the data into sliding time windows according to the request time, and the request data in each time window constitutes a subsequence; then, split the data in each time window into multiple subsequences according to the characteristics of the request, that is: split according to the source IP address, target IP address, and request type of the request, and each subsequence contains request data with the same characteristics; split the request data into multiple subsequences according to the user's behavior; split according to the user session, and each session contains all the request data of a user within a certain period of time; when a certain abnormal behavior is detected, split the request data within a period of time before and after the event into a subsequence; then, sort and mark the split subsequences in chronological order; finally, aggregate all the split subsequence data to form a request sequence data set C;
[0026] In step 2, the specific process of splitting the data feature profile of each request data is as follows: extracting features from each request data; then, splitting the feature profile of each request data according to the extracted features; the specific steps include: 1) defining the feature profile: determining the feature combination that constitutes the feature profile; that is, defining the combination of source IP address, target IP address, and request type as one feature profile, and defining the combination of request time, request size, and response time as another feature profile; 2) feature clustering: using a clustering algorithm to cluster similar features, that is, clustering request data with similar features together; that is, clustering request data with similar request time and request size into one category, and clustering request data with similar response time and response size into another category; 3) generating feature profiles: generating a feature profile for each feature cluster; each feature profile contains the request data in the cluster and its feature information; the feature profile can be represented as a vector or a matrix, in which each element represents the value or statistical information of a certain feature; finally, summarizing all the generated feature profile data to form a request feature profile data set D.
[0027] In step 3, data set A is used as a training set and input into the LSTM-CNN real-time warning model for training to achieve real-time warning of server intrusion.
[0028] In step 5: put the request data into the trained model obtained in step 3 for intrusion information identification, and compare the request data with the request pattern data set B, the request sequence data set C and the request feature profile data set D one by one. When the recognition or comparison similarity reaches the set data value, it is determined to be an intrusion request.
[0029] The specific process of step 6 is as follows: when setting up the server, it is set that the operations of deleting users, deleting files, creating new user files, continuous request times and deleting diaries all need to have a specific logo of the super administrator; during the operation of the server, if it is detected that there are operations of deleting users, deleting files, creating new user files, continuous request times and deleting diaries without the logo of the super administrator, it is identified as an intrusion operation;
[0030] The specific process of step 7 is as follows: after confirming the existence of the intrusion request in step 5, an alarm will be immediately issued and the server administrator will be notified; the administrator will receive information about the intrusion in a timely manner and take appropriate measures to deal with it to avoid the loss of server information or irreversible consequences.
[0031] The second technical solution adopted by the present invention is a server intrusion early warning system, module 1: used to capture and store all server intrusion and network attack data on the Internet in real time;
[0032] Module 2: used to decompose the captured data into data, data pattern, data sequence and data feature profile;
[0033] Module 3: used to store the decomposed and split data, and list the decomposed data as data features to train the LSTM-CNN real-time warning model;
[0034] Module 4: used to obtain the server's request data when a request is made to access the server;
[0035] Module 5: used to input the acquired request data into the latest real-time warning model for identification, and compare the pattern, sequence and feature profile with the decomposed data. When an intrusion request occurs, it enters module 7, otherwise it enters module 6;
[0036] Module 6: used to detect the server's operations of deleting users, deleting files, creating new user files, continuous request times, and deleting logs without the super administrator ID;
[0037] Module 7: Used to send out alarms and send messages to notify server administrators.
[0038] The present invention is also characterized in that:
[0039] Module 1 is a real-time network data capture module;
[0040] Module 2 is composed of a data decomposition and expansion module, a feature profile splitting module, a feature profile data storage module, a sequence data splitting module, a sequence data storage module, a pattern data splitting module and a pattern data storage module;
[0041] Module 3 is the LSTM-CNN real-time warning model training module;
[0042] Module 4 is a server request acquisition module;
[0043] Module 5 is composed of a feature profile recognition and comparison module, a sequence recognition and comparison module, a pattern recognition and comparison module, and a model recognition module;
[0044] Module 6 is composed of a server operation detection module and a server operation identification data storage module;
[0045] Module 7 is composed of a controller module, a wireless communication module and an alarm module;
[0046] Real-time network data capture module: monitors and captures all server intrusion and network attack data on the Internet in real time and stores them.
[0047] Data decomposition and expansion module: decomposes each request data in the request data set to obtain several request sources, and further expands the data of each request source to enrich the data set.
[0048] Feature profile splitting module: By processing historical intrusion data, a feature profile table is established for each user based on user activities. This module determines the abnormality of the current behavior by comparing the current features with the established features. The user feature profile table is continuously updated based on the latest audit records to optimize security metrics.
[0049] Feature profile data storage module: used to store feature profile data.
[0050] Sequence data splitting module: splits the captured data into data sequences.
[0051] Sequence data storage module: used to store the split sequence data.
[0052] Pattern data splitting module: splits the captured data into pattern data.
[0053] Pattern data storage module: used to store the split pattern data.
[0054] LSTM-CNN real-time warning model training module: Dataset A is used as a training set and input into the LSTM-CNN real-time warning model for training to achieve real-time warning of server intrusion. As data set A is continuously updated, it is integrated into the model for further training to improve and optimize the performance of the LSTM-CNN real-time warning model.
[0055] Server request acquisition module: when a request is made to access the server, it obtains the server's request data;
[0056] Feature profile recognition and comparison module: compares the acquired server request data with the data in the feature profile data storage module one by one. When the similarity reaches the set threshold, it is determined to be an intrusion request.
[0057] Sequence recognition and comparison module: compares the acquired server request data with the data in the sequence data storage module one by one. When the similarity reaches the set threshold, it is determined to be an intrusion request.
[0058] Pattern recognition and comparison module: compares the acquired server request data with the data in the pattern data storage module one by one. When the similarity reaches the set threshold, it is determined to be an intrusion request.
[0059] Model identification module: Input the acquired server request data into the LSTM-CNN real-time warning model for detection and determine whether it is an intrusion request.
[0060] Server operation identification data storage module: used to verify the legitimacy of specific server operations. When a super administrator performs a specific operation on a service, the super administrator identifier must be included, otherwise the operation will be considered an illegal intrusion operation.
[0061] Server operation detection module: used to detect the running operation data of the service in real time. When an intrusion operation is detected, the intrusion information will be immediately transmitted to the controller module.
[0062] Controller module: used to notify the alarm module to alarm when receiving one or more intrusion information, and transmit the information to the server administrator through the wireless communication module.
[0063] Wireless communication module: transmits the alarm information sent by the controller module to the server administrator to ensure that the administrator can respond in time.
[0064] Alarm module: After receiving the command from the controller module, it will issue a local alarm to remind on-site personnel or administrators to take necessary safety measures.
[0065] The beneficial effects of the present invention are:
[0066] The method of the present invention uses the LSTM-CNN real-time warning model as the first layer of detection, and then conducts a comprehensive comparison of feature profiles, sequences and pattern data, which greatly improves the detection accuracy of intrusion data. This comprehensive comparison method can basically achieve intrusion warnings for all requests, ensure comprehensive monitoring of intrusion behaviors, and has a high recognition rate. It can accurately detect even highly concealed intrusion behaviors, providing solid support for the security of the server system.
[0067] In addition, the method of the present invention also has the ability to update the overall data in real time, and can update the data source in time according to different intrusion situations, ensuring that all intrusion events can be detected in time, thereby maintaining the security and stability of the system.
[0068] In addition, the method of the present invention also increases the ability to identify server operations, and can promptly discover and notify the administrator of any requests that may be missed. This server operation identification function helps administrators take timely measures to ensure the normal operation and security protection of the server system. In summary, the method of the present invention has significant advantages in improving the accuracy, coverage and real-time performance of intrusion detection, and is of great significance to server security protection. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] Figure 1 is a flow chart of the method of the present invention;
[0070] Figure 2 It is a system block diagram of the implementation method of the present invention. DETAILED DESCRIPTION
[0071] The present invention is described in detail below with reference to the accompanying drawings and specific embodiments.
[0072] The present invention provides a server intrusion early warning method, such as Figure 1 As shown, the following steps are included:
[0073] Step 1: Capture and store all server intrusion and network attack data on the Internet in real time.
[0074] The specific process of step 1 is:
[0075] Real-time monitoring and periodic data capture from public systems or forum channels, and extract data related to server intrusion or network attacks. Through entity recognition and keyword extraction, key information related to server intrusion or attack data is extracted. Key information includes IP address, attack source, attack type and means, URL of attack request, access path, request parameters and abnormal system operation information; finally, the extracted intrusion request data and attack request data are combined into a request data set and stored. The request data set is updated regularly according to the captured data.
[0076] Step 2: Perform data decomposition, data pattern splitting, data sequence splitting and data feature profile splitting on the captured data.
[0077] The specific process of step 2 is: decompose each request data in the request data set obtained in step 1 to obtain several request sources, and further expand the data of each request source to obtain the expanded data set A; perform request pattern data splitting on each request data in the request data set to obtain request pattern data set B; perform data sequence splitting on each request data in the request data set to obtain request sequence data set C; perform data feature profile splitting on each request data in the request data set to obtain request feature profile data set D.
[0078] In step 2, the specific process of decomposing each request data is as follows: first, use text parsing and regular expressions to parse each request data to extract key information, where the key information includes but is not limited to the source IP address, target IP address, request type (GET or POST), request parameters and request path; then, based on the extracted key information, identify the request source corresponding to each request data; cluster or match the features of the request data to classify similar requests as the same request source; finally, decompose each request data into several request sources. If a request data involves multiple request sources, decompose it into multiple independent request sources.
[0079] In step 2, the specific process of data expansion for each request source is as follows: for each request data, first decompose it into multiple basic units, namely, minimum units, where each minimum unit represents an independent request or event; then, for each minimum unit, perform semantic recognition or address position recognition to determine its key features or location information; then, grab the relevant data that matches the semantics of the first minimum unit from the network as the second minimum unit, and at the same time, obtain the relevant location that matches the address location of the first minimum unit and summarize it into the second minimum unit; finally, summarize the data of the first minimum unit and the second minimum unit to obtain the expanded data set A.
[0080] Semantic recognition includes: 1) segmenting and annotating the request content to extract keywords and key phrases; 2) using word embedding technology to convert keywords and phrases into vector representations; 3) calculating the similarity between vectors and judging the similarity between two request contents by the cosine similarity method;
[0081] Address location identification includes: 1) using an IP address library or domain name resolution service to convert an IP address or domain name into geographic location coordinates; 2) calculating the distance between geographic locations and determining whether the address locations of two requests are close using the Manhattan distance method.
[0082] In step 2, the specific process of splitting the request pattern data for each request data is as follows: extract features from each request data, including but not limited to the source IP address, target IP address, request time, request type (ie, GET or POST), request parameters, and user agent information of the request, and perform pattern recognition on the request based on the extracted features to determine the pattern to which the request belongs. Pattern recognition is to define a set of rules to identify common attack patterns (including but not limited to SQL injection, cross-site scripting attacks, and denial of service attacks). Subsequently, the identified patterns are added to the request data as labels, so that each request data contains not only the original information, but also its pattern labels such as: "normal request, SQL injection attack, denial of service attack". Finally, all the request data that have been pattern recognized and labeled are aggregated to form a request pattern dataset B. Each piece of data in this dataset contains not only the original request features, but also the pattern labels.
[0083] In step 2, the specific process of splitting the data sequence of each request data is as follows: split each request data into several subsequences in chronological order. The specific steps are as follows: first, split the data into sliding time windows according to the request time, and the request data in each time window constitutes a subsequence; then, split the data in each time window into multiple subsequences according to the characteristics of the request, that is, split according to the source IP address, target IP address, and request type (ie, GET or POST) of the request, and each subsequence contains request data with the same characteristics; split the request data into multiple subsequences according to user behavior; split according to user sessions, and each session contains all request data of a user within a certain period of time. When a certain abnormal behavior is detected (such as a large number of failed login attempts), the request data within a period of time before and after the event is split into a subsequence. Then, sort and mark the split subsequences in chronological order. Finally, summarize all the split subsequence data to form a request sequence data set C.
[0084] In step 2, the specific process of splitting the data feature profile of each request data is as follows: extracting features from each request data; then, splitting the feature profile of each request data according to the extracted features. The specific steps include: 1) defining the feature profile: determining the feature combination that constitutes the feature profile. That is, the combination of the source IP address, the target IP address, and the request type is defined as a feature profile, and the combination of the request time, the request size, and the response time is defined as another feature profile. 2) feature clustering: clustering similar features using a clustering algorithm, that is, clustering request data with similar features together. That is, clustering request data with similar request time and request size into one category, and clustering request data with similar response time and response size into another category. 3) generating feature profiles: generating a feature profile for each feature cluster. Each feature profile contains the request data in the cluster and its feature information. The feature profile can be represented as a vector or a matrix, in which each element represents the value or statistical information of a certain feature. Finally, all generated feature profile data are summarized to form a request feature profile data set D.
[0085] Step 3: Store the decomposed and split data, and list the decomposed data as data features to train the LSTM-CNN real-time warning model.
[0086] In step 3: Dataset A is used as a training set and input into the LSTM-CNN real-time warning model for training to achieve real-time warning of server intrusion. As dataset A is continuously updated, it is integrated into the model for further training to improve and optimize the performance of the LSTM-CNN real-time warning model.
[0087] Step 4: When a request is made to access the server, obtain the server's request data.
[0088] Step 5: Input the acquired request data into the latest real-time warning model for identification, and compare the pattern, sequence and feature profile with the decomposed data. When an intrusion request occurs, proceed to step 7, otherwise proceed to step 6.
[0089] In step 5: put the request data into the trained model obtained in step 3 for intrusion information identification, and compare the request data with the request pattern data set B, the request sequence data set C and the request feature profile data set D one by one. When the recognition or comparison similarity reaches the set data value, it is determined to be an intrusion request.
[0090] Step 6: Check the server for operations such as deleting users, deleting files, creating new user files, performing consecutive request count operations, and deleting logs without the super administrator ID.
[0091] The specific process of step 6 is: when setting up the server, the operations of deleting users, deleting files, creating new user files, continuous request times and deleting diary operations all need to have a specific identification of the super administrator; during the operation of the server, if the processes of deleting users, deleting files, creating new user files, continuous request times and deleting diary operations are detected without the super administrator identification, they are identified as intrusion operations.
[0092] Step 7: Issue an alarm and send a message to notify the server administrator.
[0093] The specific process of step 7 is as follows: after confirming the existence of the intrusion request in step 5, an alarm will be immediately issued and the server administrator will be notified; the administrator will receive information about the intrusion in a timely manner and take appropriate measures to deal with it to avoid the loss of server information or irreversible consequences.
[0094] The present invention also provides a server intrusion warning system, such as Figure 2 As shown, including:
[0095] [1] Real-time network data capture module: monitors and captures all server intrusion and network attack data on the Internet in real time and stores them.
[0096] [2] Data decomposition and expansion module: Decompose each request data in the request data set to obtain several request sources, and further expand the data of each request source to enrich the data set.
[0097] [3] Feature profile splitting module: By processing historical intrusion data, a feature profile table is established for each user based on user activities. This module determines the abnormality of the current behavior by comparing the current features with the established features. The user feature profile table is continuously updated based on the latest audit records to optimize security metrics.
[0098] [4] Feature profile data storage module: used to store feature profile data.
[0099] [5] Sequence data splitting module: splits the captured data into data sequences.
[0100] [6] Sequence data storage module: used to store the split sequence data.
[0101] [7] Pattern data splitting module: splits the captured data into pattern data.
[0102] [8] Pattern data storage module: used to store the split pattern data.
[0103] [9] LSTM-CNN real-time warning model training module: Dataset A is used as a training set and input into the LSTM-CNN real-time warning model for training to achieve real-time warning of server intrusion. As dataset A is continuously updated, it is integrated into the model for further training to improve and optimize the performance of the LSTM-CNN real-time warning model.
[0104]
[10] Server request acquisition module: when a request is made to access the server, it acquires the server's request data;
[0105]
[11] Feature profile recognition and comparison module: The acquired server request data is compared with the data in the feature profile data storage module one by one. When the similarity reaches the set threshold, it is determined to be an intrusion request.
[0106]
[12] Sequence identification and comparison module: The obtained server request data is compared one by one with the data in the sequence data storage module. When the similarity reaches the set threshold, it is determined to be an intrusion request.
[0107]
[13] Pattern recognition and comparison module: The acquired server request data is compared one by one with the data in the pattern data storage module. When the similarity reaches the set threshold, it is determined to be an intrusion request.
[0108]
[14] Model identification module: The acquired server request data is input into the LSTM-CNN real-time warning model for detection and determination of whether it is an intrusion request.
[0109]
[15] Server operation identification data storage module: used to verify the legitimacy of specific server operations. When a super administrator performs a specific operation on a service, the super administrator identifier must be included, otherwise the operation will be deemed an illegal intrusion operation.
[0110]
[16] Server operation detection module: used to detect the running operation data of the service in real time. When an intrusion operation is detected, the intrusion information will be immediately transmitted to the controller module.
[0111]
[17] Controller module: used to notify the alarm module to sound an alarm when receiving one or more intrusion information, and transmit the information to the server administrator through the wireless communication module.
[0112]
[18] Wireless communication module: transmits the alarm information sent by the controller module to the server administrator to ensure that the administrator can respond in time.
[0113]
[19] Alarm module: After receiving the command from the controller module, it will issue a local alarm to remind on-site personnel or administrators to take necessary safety measures.
[0114] Example 1
[0115] The server intrusion warning method includes the following steps:
[0116] Step 1: Capture and store all server intrusion and network attack data on the Internet in real time;
[0117] Step 2: Decompose the captured data into data, data pattern, data sequence and data feature profile;
[0118] Step 3: Store the decomposed and split data, and list the decomposed data as data features to train the LSTM-CNN real-time warning model;
[0119] Step 4: When a request is made to access the server, obtain the server's request data;
[0120] Step 5: Input the acquired request data into the latest real-time warning model for identification, and compare the pattern, sequence and feature profile with the decomposed data. If an intrusion request occurs, proceed to step 7, otherwise proceed to step 6;
[0121] Step 6: Detect the server for operations such as deleting users, deleting files, creating new user files, continuous request times, and deleting logs without the super administrator ID;
[0122] Step 7: Issue an alarm and send a message to notify the server administrator.
[0123] Example 2
[0124] Based on Example 1, the specific process of step 1 is as follows:
[0125] Real-time monitoring and periodic data capture from public systems or forum channels, and extract data related to server intrusion or network attacks. Through entity recognition and keyword extraction, key information related to server intrusion or attack data is extracted. Key information includes IP address, attack source, attack type and means, URL of attack request, access path, request parameters and abnormal system operation information; finally, the extracted intrusion request data and attack request data are combined into a request data set and stored. The request data set is updated regularly according to the captured data.
[0126] Example 3
[0127] Based on Example 2, the specific process of step 2 is:
[0128] The specific process of step 2 is: decompose each request data in the request data set obtained in step 1 to obtain several request sources, and further expand the data of each request source to obtain the expanded data set A; perform request pattern data splitting on each request data in the request data set to obtain request pattern data set B; perform data sequence splitting on each request data in the request data set to obtain request sequence data set C; perform data feature profile splitting on each request data in the request data set to obtain request feature profile data set D.
[0129] Example 4
[0130] Server intrusion warning system, including:
[0131] Module 1: Used to capture and store all server intrusion and network attack data on the Internet in real time;
[0132] Module 2: used to decompose the captured data into data, data pattern, data sequence and data feature profile;
[0133] Module 3: used to store the decomposed and split data, and list the decomposed data as data features to train the LSTM-CNN real-time warning model;
[0134] Module 4: used to obtain the server's request data when a request is made to access the server;
[0135] Module 5: used to input the acquired request data into the latest real-time warning model for identification, and compare the pattern, sequence and feature profile with the decomposed data. When an intrusion request occurs, it enters module 7, otherwise it enters module 6;
[0136] Module 6: used to detect the server's operations of deleting users, deleting files, creating new user files, continuous request times, and deleting logs without the super administrator ID;
[0137] Module 7: Used to send out alarms and send messages to notify server administrators.
[0138] Example 5
[0139] Server intrusion warning system, where module 1 is a real-time network data capture module;
[0140] Module 2 is composed of a data decomposition and expansion module, a feature profile splitting module, a feature profile data storage module, a sequence data splitting module, a sequence data storage module, a pattern data splitting module and a pattern data storage module;
[0141] Module 3 is the LSTM-CNN real-time warning model training module;
[0142] Module 4 is a server request acquisition module;
[0143] Module 5 is composed of a feature profile recognition and comparison module, a sequence recognition and comparison module, a pattern recognition and comparison module, and a model recognition module;
[0144] Module 6 is composed of a server operation detection module and a server operation identification data storage module;
[0145] Module 7 is composed of a controller module, a wireless communication module and an alarm module.
[0146] Example 6
[0147] Server intrusion warning system, including the real-time network data capture module: real-time monitoring and capture of all server intrusion and network attack data on the Internet and storage.
[0148] Data decomposition and expansion module: decomposes each request data in the request data set to obtain several request sources, and further expands the data of each request source to enrich the data set.
[0149] Feature profile splitting module: By processing historical intrusion data, a feature profile table is established for each user based on user activities. This module determines the abnormality of the current behavior by comparing the current features with the established features. The user feature profile table is continuously updated based on the latest audit records to optimize security metrics.
[0150] Feature profile data storage module: used to store feature profile data.
[0151] Sequence data splitting module: splits the captured data into data sequences.
[0152] Sequence data storage module: used to store the split sequence data.
[0153] Pattern data splitting module: splits the captured data into pattern data.
[0154] Pattern data storage module: used to store the split pattern data.
[0155] LSTM-CNN real-time warning model training module: Dataset A is used as a training set and input into the LSTM-CNN real-time warning model for training to achieve real-time warning of server intrusion. As data set A is continuously updated, it is integrated into the model for further training to improve and optimize the performance of the LSTM-CNN real-time warning model.
[0156] Server request acquisition module: when a request is made to access the server, it obtains the server's request data;
[0157] Feature profile recognition and comparison module: compares the acquired server request data with the data in the feature profile data storage module one by one. When the similarity reaches the set threshold, it is determined to be an intrusion request.
[0158] Sequence recognition and comparison module: compares the acquired server request data with the data in the sequence data storage module one by one. When the similarity reaches the set threshold, it is determined to be an intrusion request.
[0159] Pattern recognition and comparison module: compares the acquired server request data with the data in the pattern data storage module one by one. When the similarity reaches the set threshold, it is determined to be an intrusion request.
[0160] Model identification module: Input the acquired server request data into the LSTM-CNN real-time warning model for detection and determine whether it is an intrusion request.
[0161] Server operation identification data storage module: used to verify the legitimacy of specific server operations. When a super administrator performs a specific operation on a service, the super administrator identifier must be included, otherwise the operation will be considered an illegal intrusion operation.
[0162] Server operation detection module: used to detect the running operation data of the service in real time. When an intrusion operation is detected, the intrusion information will be immediately transmitted to the controller module.
[0163] Controller module: used to notify the alarm module to alarm when receiving one or more intrusion information, and transmit the information to the server administrator through the wireless communication module.
[0164] Wireless communication module: transmits the alarm information sent by the controller module to the server administrator to ensure that the administrator can respond in time.
[0165] Alarm module: After receiving the command from the controller module, it will issue a local alarm to remind on-site personnel or administrators to take necessary safety measures.
Claims
1. Server intrusion warning method, It is characterized in that The steps include: Step 1: Capture and store all server intrusion and network attack data on the Internet in real time; Step 2: Decompose the captured data into data, data pattern, data sequence and data feature profile; Step 3: Store the decomposed and split data, and use the decomposed data as data features to train the LSTM-CNN real-time warning model; Step 4: When a request is made to access the server, obtain the server's request data; Step 5: Input the acquired request data into the latest real-time warning model for identification, and compare the pattern, sequence and feature profile with the decomposed data. If an intrusion request occurs, proceed to step 7, otherwise proceed to step 6; Step 6: Detect the server for operations such as deleting users, deleting files, creating new user files, continuous request times, and deleting logs without the super administrator ID; Step 7: Issue an alarm and send a message to notify the server administrator.
2. According to the server intrusion early warning method of claim 1, It is characterized in that The specific process of step 1 is: Real-time monitoring and periodic data capture from public systems or forum channels, and extract data related to server intrusion or network attacks. Through entity recognition and keyword extraction, key information related to server intrusion or attack data is extracted. Key information includes IP address, attack source, attack type and means, URL of attack request, access path, request parameters and abnormal system operation information; Finally, the extracted intrusion request data and attack request data are combined into a request data set and stored. The request data set is updated regularly according to the captured data; The specific process of step 2 is: The specific process of step 2 is: decompose each request data in the request data set obtained in step 1 to obtain several request sources, and further expand the data of each request source to obtain the expanded data set A; Perform request mode data splitting on each request data in the request data set to obtain request mode data set B; perform data sequence splitting on each request data in the request data set to obtain request sequence data set C; The data feature profile of each request data in the request data set is split to obtain the request feature profile data set D.
3. According to the server intrusion early warning method of claim 2, It is characterized in that In step 2, the specific process of decomposing each request data is as follows: first, use text parsing and regular expressions to parse each request data to extract key information, where the key information includes but is not limited to the source IP address, target IP address, request type, request parameters and request path; then, based on the extracted key information, identify the request source corresponding to each request data; cluster or match the features of the request data to classify similar requests as the same request source; finally, decompose each request data into several request sources. If a request data involves multiple request sources, decompose it into multiple independent request sources.
4. According to the server intrusion early warning method of claim 2, It is characterized in that In step 2, the specific process of data expansion for each request source is as follows: for each request data, first decompose it into multiple basic units, namely, minimum units, where each minimum unit represents an independent request or event; then, for each minimum unit, perform semantic recognition or address position recognition to determine its key features or location information; then, crawl the relevant data that matches the semantics of the first minimum unit from the network as the second minimum unit, and at the same time, obtain the relevant location that matches the address location of the first minimum unit and summarize it into the second minimum unit; finally, summarize the data of the first minimum unit and the second minimum unit to obtain the expanded data set A; Semantic recognition includes: 1) segmenting and annotating the request content to extract keywords and key phrases; 2) Use word embedding technology to convert keywords and phrases into vector representations; 3) Calculate the similarity between vectors and use the cosine similarity method to determine the similarity between the two request contents; Address location identification includes: 1) using an IP address library or a domain name resolution service to convert an IP address or a domain name into a geographic location coordinate; 2) calculating the distance between geographic locations and determining whether the address locations of two requests are close by using the Manhattan distance method; In step 2, the specific process of splitting the request pattern data for each request data is as follows: extracting features from each request data, the features including but not limited to the source IP address, target IP address, request time, request type, request parameters and user agent information of the request, and performing pattern recognition on the request based on the extracted features to determine the pattern to which the request belongs; Pattern recognition is as follows: define a set of rules to identify common attack patterns; then, add the identified patterns as labels to the request data, so that each request data contains not only the original information, but also its pattern label such as "normal request, SQL injection attack, denial of service attack"; finally, aggregate all the request data that have been pattern recognized and labeled to form a request pattern dataset B; In step 2, the specific process of splitting the data sequence of each request data is as follows: split each request data into several subsequences in chronological order; the specific steps are as follows: first, split the data into sliding time windows according to the request time, and the request data in each time window constitutes a subsequence; then, split the data in each time window into multiple subsequences according to the characteristics of the request, that is: split according to the source IP address, target IP address, and request type of the request, and each subsequence contains request data with the same characteristics; split the request data into multiple subsequences according to the user's behavior; split according to the user session, and each session contains all the request data of a user within a certain period of time; when a certain abnormal behavior is detected, split the request data within a period of time before and after the event into a subsequence; then, sort and mark the split subsequences in chronological order; finally, aggregate all the split subsequence data to form a request sequence data set C; In step 2, the specific process of splitting the data feature profile of each request data is as follows: extracting features from each request data; then, splitting the feature profile of each request data according to the extracted features; the specific steps include: 1) defining the feature profile: determining the feature combination that constitutes the feature profile; that is, defining the combination of source IP address, target IP address, and request type as one feature profile, and defining the combination of request time, request size, and response time as another feature profile; 2) feature clustering: using a clustering algorithm to cluster similar features, that is, clustering request data with similar features together; that is, clustering request data with similar request time and request size into one category, and clustering request data with similar response time and response size into another category; 3) generating feature profiles: generating a feature profile for each feature cluster; each feature profile contains the request data in the cluster and its feature information; the feature profile can be represented as a vector or a matrix, in which each element represents the value or statistical information of a certain feature; finally, summarizing all the generated feature profile data to form a request feature profile data set D.
5. According to the server intrusion early warning method of claim 2, It is characterized in that In step 3, data set A is used as a training set and input into the LSTM-CNN real-time warning model for training to achieve real-time warning of server intrusion.
6. According to the server intrusion early warning method of claim 2, It is characterized in that In step 5: put the request data into the trained model obtained in step 3 for intrusion information identification, and compare the request data with the request pattern data set B, the request sequence data set C and the request feature profile data set D one by one. When the recognition or comparison similarity reaches the set data value, it is determined to be an intrusion request.
7. According to the server intrusion early warning method of claim 2, It is characterized in that The specific process of step 6 is as follows: when setting up the server, the operations of deleting users, deleting files, creating new user files, the number of consecutive requests, and deleting logs all require the special identification of the super administrator; During the operation of the server, if the deletion of users, deletion of files, creation of new user files, continuous request times and deletion of logs are detected without the super administrator logo, they are considered as intrusion operations; The specific process of step 7 is as follows: after confirming the existence of the intrusion request in step 5, an alarm will be immediately issued and the server administrator will be notified; The administrator will receive information about the intrusion in a timely manner and take appropriate measures to deal with it to avoid the loss of server information or irreversible consequences.
8. Server intrusion warning system, It is characterized in that Module 1: Used to capture and store all server intrusion and network attack data on the Internet in real time; Module 2: used to decompose the captured data into data, data pattern, data sequence and data feature profile; Module 3: used to store the decomposed and split data, and list the decomposed data as data features to train the LSTM-CNN real-time warning model; Module 4: used to obtain the server's request data when a request is made to access the server; Module 5: used to input the acquired request data into the latest real-time warning model for identification, and compare the pattern, sequence and feature profile with the decomposed data. When an intrusion request occurs, it enters module 7, otherwise it enters module 6; Module 6: used to detect the server's operations of deleting users, deleting files, creating new user files, continuous request times, and deleting logs without the super administrator ID; Module 7: Used to send out alarms and send messages to notify server administrators.
9. The server intrusion warning system according to claim 8, It is characterized in that Module 1 is a real-time network data capture module; Module 2 is composed of a data decomposition and expansion module, a feature profile splitting module, a feature profile data storage module, a sequence data splitting module, a sequence data storage module, a pattern data splitting module and a pattern data storage module; Module 3 is the LSTM-CNN real-time warning model training module; Module 4 is a server request acquisition module; Module 5 is composed of a feature profile recognition and comparison module, a sequence recognition and comparison module, a pattern recognition and comparison module, and a model recognition module; Module 6 is composed of a server operation detection module and a server operation identification data storage module; Module 7 is composed of a controller module, a wireless communication module and an alarm module; Real-time network data capture module: monitors and captures all server intrusion and network attack data on the Internet in real time and stores them; Data decomposition and expansion module: decomposes each request data in the request data set to obtain several request sources, and further expands the data of each request source to enrich the data set; Feature profile splitting module: By processing historical intrusion data, a feature profile table is established for each user based on user activities; This module determines the abnormality of the current behavior by comparing the current features with the established features; User profiles are continuously updated based on the latest audit records to optimize security metrics; Feature profile data storage module: used to store feature profile data; Sequence data splitting module: splits the captured data into data sequences; Sequence data storage module: used to store the split sequence data; Pattern data splitting module: splits the captured data into pattern data; Pattern data storage module: used to store split pattern data; LSTM-CNN real-time warning model training module: Data set A is used as the training set and input into the LSTM-CNN real-time warning model for training to achieve real-time warning of server intrusion; As dataset A is continuously updated, it is integrated into the model for further training to improve and optimize the performance of the LSTM-CNN real-time warning model; Server request acquisition module: when a request is made to access the server, it obtains the server's request data; Feature profile recognition and comparison module: compares the acquired server request data with the data in the feature profile data storage module one by one. When the similarity reaches the set threshold, it is determined to be an intrusion request; Sequence recognition and comparison module: compares the acquired server request data with the data in the sequence data storage module one by one. When the similarity reaches the set threshold, it is determined to be an intrusion request; Pattern recognition and comparison module: compares the acquired server request data with the data in the pattern data storage module one by one. When the similarity reaches the set threshold, it is determined to be an intrusion request; Model identification module: input the acquired server request data into the LSTM-CNN real-time warning model for detection and determination of whether it is an intrusion request; Server operation identification data storage module: used to verify the legitimacy of specific server operations; When a super administrator performs a specific operation on a service, the super administrator identifier must be included; otherwise, the operation will be considered an illegal intrusion operation. Server operation detection module: used to detect the running operation data of the service in real time. When an intrusion operation is detected, the intrusion information will be immediately transmitted to the controller module; Controller module: used to notify the alarm module to alarm when receiving one or more intrusion information, and transmit the information to the server administrator through the wireless communication module; Wireless communication module: transmits the alarm information sent by the controller module to the server administrator to ensure that the administrator can respond in time; Alarm module: After receiving the command from the controller module, it will issue a local alarm to remind on-site personnel or administrators to take necessary safety measures.
