Big data attack processing method and device for cloud service and readable medium
Through the combination of data collection, preprocessing and anomaly detection modules, big data attacks on cloud services are identified and processed, solving the problem of difficult identification in existing technologies and improving data security.
Patent Information
- Application Number
- CN202410921858.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2024-10-11
AI Technical Summary
Existing technologies are difficult to effectively identify and handle big data attacks on cloud services, leading to problems such as data security and privacy leaks.
The data acquisition module is used to collect the actual data of the cloud server, and through the data preprocessing module identification and cleaning, key characteristic data is extracted and sent to the anomaly detection module for detection. If abnormal data is received, an alarm message is generated and sent to the supervision platform.
It achieves effective and accurate identification of big data attacks on cloud services and improves data security.
Smart Images

Figure CN118764260A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of cloud services and relates to big data attack processing technology, specifically a big data attack processing method, device and readable medium for cloud services. Background Art
[0002] Cloud services are a variety of computer services provided over the Internet. These services are usually managed and maintained by third-party providers, allowing users to use computer resources on demand without having to build and maintain physical hardware and software infrastructure themselves. Cloud services cover everything from storing and processing data to running applications and providing network functions.
[0003] In today's era of rapid digital development, cloud servers have become an important tool for enterprise and personal data storage and processing. However, with the popularization of cloud services, the risk of cloud services being attacked is also increasing. Once a cloud server is attacked, problems such as data security, privacy leakage, and system crashes will follow. On the other hand, in existing technologies, cloud services have a relatively simple way of identifying big data attacks, which only detects attack data through traffic analysis and then conducts targeted interception. However, in actual applications, there are many types of data information in cloud services, and traffic analysis alone cannot effectively identify and handle big data attacks on cloud services.
[0004] To this end, we propose a big data attack processing method, device and readable medium for cloud services. Summary of the invention
[0005] In view of the deficiencies in the prior art, the present invention aims to provide a big data attack processing method, device and readable medium for cloud services.
[0006] The technical problems to be solved by the present invention are:
[0007] How to effectively identify big data attacks on cloud services.
[0008] The purpose of the present invention can be achieved through the following technical solutions:
[0009] A method for processing big data attacks for cloud services, when applied to the first protection stage of big data attacks, comprises the following steps:
[0010] Step S1, the data acquisition module collects actual data from the cloud server and sends the actual data to the data preprocessing module via the central processing server;
[0011] Step S2, the data preprocessing module identifies and cleans the actual data, obtains the attack data and sends it to the feature extraction module;
[0012] Step S3, the feature extraction module extracts key feature data from the attack data, and sends the extracted key feature data to the anomaly detection module via the central processing server;
[0013] Step S4, the anomaly detection module detects big data attacks on the cloud server;
[0014] Step S5: If the central processing server receives abnormal data, it automatically generates abnormal alarm information and sends the abnormal alarm information to the supervision platform.
[0015] Furthermore, the actual data includes server logs, network traffic and application logs of the cloud server, and actual behavior data of each user in the cloud server.
[0016] Furthermore, network traffic refers to the traffic that flows between the user end and the cloud server;
[0017] The actual behavior data includes the number of failed attempts by each user to log into the cloud service in one day and the total number of times each user accesses data in the cloud server in one day.
[0018] Furthermore, the step S2 includes the following sub-steps:
[0019] Step S201, reading actual data sent by the central processing server;
[0020] Step S202, the actual data obtained by reading is transmitted to the data processor, the server log is divided into server log pages with a size of 1MB per page, and the application log is divided into program log pages with a size of 1MB per page, and the number of characters Fj per page of the server log page and the number of characters Fn per page of the program log page are read; wherein j is the page number of the server log page, j=1, 2, ..., w, w is a positive integer, and n is the page number of the program log page, n=1, 2, ..., d, d is a positive integer;
[0021] The number of abnormal characters Yj per page of the server log page is obtained by the formula Yj=Fj / 1000*θ. Similarly, the number of abnormal characters Yn per page of the program log page is obtained by the formula Yn=Fn / 1000*θ. The abnormal characteristic value P1j per page of the server log page and the abnormal characteristic value P2n per page of the program log page are calculated by the formulas P1j=Yj / Fj*100% and P2n=Yn / Fn*100% respectively; wherein θ is the number of abnormal characters that appear when the number of characters is fixed in multiple program logs or server logs;
[0022] Step S203, the abnormal feature values of all server log pages are added and summed to obtain the abnormal feature value P1 of the server log. Similarly, the abnormal feature values of all program log pages are added and summed to obtain the abnormal feature value P2 of the application log.
[0023] Step S204, the network traffic is evenly sliced to obtain traffic data slices, and the data size of the traffic data slice is recorded as Gr. The abnormal characteristic value Sr of the traffic data slice is calculated, where r is the code of the traffic data slice, r=1, 2, ..., q, q is an integer, e is a natural number, η is a fixed value error compensation number, and Tr is the transmission time of the traffic data slice from the user end to the cloud server;
[0024] Step S205, after traversing and comparing the abnormal feature values of the traffic data slices, the abnormal feature value with the maximum value is obtained, and the abnormal feature value with the maximum value is marked as the abnormal feature value S of the network traffic.
[0025] Furthermore, the step S2 further includes the following sub-steps:
[0026] Step S206, read the historical behavior data of different users stored in the cloud server, and also perform paging processing on the historical behavior data to obtain historical behavior data pages, and record the number of characters per page of the historical behavior data page as Hid1, i is the user number, d1 is the page number of the historical behavior data page, d1 = 1, 2, ..., s1, s1 is a positive integer;
[0027] At the same time, the actual behavior data to be detected is paged to obtain actual behavior data pages, and the number of abnormal characters on each page of the actual behavior data page is read and recorded as Mid2, d2 is the page number of the actual behavior data page, d2 = 1, 2, ..., s2, s2 is a positive integer;
[0028] Step S207, by formula The mean value JHi of the historical user behavior characteristics of the user is calculated; where c1 is a fixed value proportional coefficient;
[0029] Then through the formula Calculate the abnormal feature value Li of the user's actual behavior data, and add up the abnormal feature values of all users' actual behavior data to obtain the abnormal feature value L of the cloud server's actual behavior data;
[0030] Step S208, by formula Calculate the data outlier value GJ of the actual data in the cloud server;
[0031] Step S209, reading the data anomaly threshold of the cloud server, and comparing the data anomaly value of the actual data in the cloud server with the data anomaly threshold;
[0032] If the data anomaly value is less than or equal to the data anomaly threshold, the actual data is identified as normal data, and the data is compressed in the form of key-value pairs through the data converter and sent to the central processing server for storage;
[0033] If the data anomaly value is greater than the data anomaly threshold, the actual data is identified as attack data, and the data is compressed in the form of key-value pairs through the data converter and sent to the feature extraction module for the next step, and at the same time sent to the central processing server for storage.
[0034] Furthermore, the key characteristic data include the IP address of the user corresponding to the cloud server, the port numbers of all ports of the cloud server, the data packets sent by the user's corresponding IP address to the cloud server, the actual traffic generated by the user's corresponding IP address accessing the cloud server, the number of failed attempts by the user's corresponding IP address to repeatedly log into the cloud service, and the total number of failed attempts by the user's corresponding IP address to access all port numbers in the cloud server. Each user corresponds to an IP address.
[0035] Furthermore, the step S4 includes the following sub-steps:
[0036] Step S401, reading the key feature data sent by the central processing server, forming an IP address set with the IP address of the cloud server corresponding to the user, and forming a port number set with the port numbers of all ports of the cloud server;
[0037] Step S402, traverse the IP address set, count the number of failed attempts Ni for each IP address in the IP address set to repeatedly log into the cloud service, then traverse the port number set, count the total number of failed attempts Di for each IP address to access all port numbers in the cloud server, and finally record the number of data packets sent by each user's corresponding IP address and record it as the total number of data packets, and also record the number of data packets in abnormal state sent by each user's corresponding IP address and record it as the number of abnormal data packets;
[0038] Step S403, calculating and obtaining the abnormal rate Bki of the data packets sent by each user's corresponding IP address;
[0039] Then through the formula The abnormal weight YIPi of each user's corresponding IP address is calculated; where a1, a2 and a3 are all fixed proportional coefficients, and the values of a1, a2 and a3 are all greater than zero;
[0040] Step S404, read the abnormal weight threshold preset by the central processing server, and compare the abnormal weight value with the preset abnormal weight threshold:
[0041] If the anomaly weight is greater than or equal to the anomaly weight threshold, the anomaly detection module marks the key feature data as anomaly data and sends it to the central processing server;
[0042] If the anomaly weight is less than the anomaly weight threshold, proceed to the next step.
[0043] Furthermore, the step S4 further includes the following sub-steps:
[0044] Step S405, read the actual traffic number generated by the user's corresponding IP address accessing the cloud server, averagely slice the actual traffic number to obtain traffic slices, obtain the real-time transmission duration Tix of the traffic slice, set several time points within the transmission duration, and record the real-time transmission rate of the traffic slice at multiple time points within the transmission duration, where x is the code of the traffic slice, x=1, 2, ..., h, and h is an integer;
[0045] The real-time transmission rates are added and divided by the number of time points to calculate the average transmission rate JVix of the traffic slice within the transmission duration, and the transmission rate interval of the traffic slice within the transmission duration is obtained. If the average transmission rate belongs to the transmission rate interval, the corresponding traffic slice is recorded as a normal traffic slice. If the average transmission rate does not belong to the transmission rate interval, the corresponding traffic slice is recorded as an abnormal traffic slice, and the number of abnormal traffic slices is recorded as the number of abnormal traffic slices YPi;
[0046] Step S406, by formula Calculate the traffic deviation value GTi of the user's corresponding IP address, where vx is the standard transmission rate of the traffic slice per unit time, b1 and b2 are weight coefficients, and b2>b1;
[0047] Step S407, reading the flow deviation threshold, and comparing the flow deviation value with the flow deviation threshold;
[0048] If the flow deviation value is greater than or equal to the flow deviation threshold, the anomaly detection module marks the actual flow number as abnormal data and sends it to the central processing server;
[0049] If the flow deviation value is less than the flow deviation threshold, no action is taken.
[0050] The present invention also provides a computer device, including a memory, wherein the memory stores a computer program, and when the computer program is executed by a processor, a big data attack processing method for cloud services is implemented.
[0051] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, a big data attack processing method for cloud services is implemented.
[0052] Compared with the prior art, the present invention has the following beneficial effects:
[0053] The data acquisition module in the present invention collects actual data of the cloud server, and sends the actual data to the data preprocessing module via the central processing server. The data preprocessing module identifies and cleans the actual data, obtains attack data and sends it to the feature extraction module. The feature extraction module extracts key feature data from the attack data, and sends the extracted key feature data to the anomaly detection module via the central processing server. The anomaly detection module detects the big data attack on the cloud server. If the central processing server receives abnormal data, it automatically generates abnormal alarm information and sends the abnormal alarm information to the supervision platform. The present invention realizes effective and accurate identification of big data attacks on cloud services. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] In order to facilitate understanding by those skilled in the art, the present invention is further described below with reference to the accompanying drawings.
[0055] Figure 1 This is a flow chart of the method of Embodiment 1 of the present invention;
[0056] Figure 2 It is a structural schematic diagram of the data preprocessing module in the present invention;
[0057] Figure 3 This is a system block diagram of Embodiment 2 of the present invention;
[0058] Figure 4 This is a flow chart of the method of Embodiment 2 of the present invention;
[0059] Figure 5 It is a schematic diagram of the structure of the computer device in the present invention. DETAILED DESCRIPTION
[0060] The technical solution of the present invention will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than 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.
[0061] Embodiment 1
[0062] See also Figure 1-Figure 3 As shown, the technical solution provided by the present invention is: a big data attack processing method for cloud services, when applied to the first protection stage of big data attacks, the processing method is specifically:
[0063] Step S1, the data acquisition module uses a distributed data acquisition tool to collect actual data from the cloud server, and sends the actual data to the data preprocessing module via the central processing server;
[0064] It should be noted that the actual data includes the server logs, network traffic and application logs of the cloud server, as well as the actual behavior data of each user in the cloud server, and distributed data collection tools such as Apache Kafka and Apache Nifi; among them, the network traffic refers to the traffic flowing between the user end and the cloud server, and the actual behavior data refers to the number of failed login attempts of each user to the cloud service in one day and the total number of access attempts of each user to the data in the cloud server in one day.
[0065] Step S2, the data preprocessing module identifies and cleans the actual data, obtains the attack data and sends it to the feature extraction module;
[0066] In this embodiment, step S2 specifically further includes the following steps:
[0067] Step S201, reading actual data sent by the central processing server;
[0068] like Figure 2 As shown, in the present invention, the data preprocessing module includes a data reading layer, a data processor, a data converter and a data output layer;
[0069] Step S202, the data reading layer transmits the actual data read to the data processor, the server log is divided into server log pages with a size of 1MB per page, and the application log is divided into program log pages with a size of 1MB per page, and the number of characters Fj per page of the server log page and the number of characters Fn per page of the program log page are read; wherein j is the page number of the server log page, j=1, 2, ..., w, w is a positive integer, and n is the page number of the program log page, n=1, 2, ..., d, d is a positive integer;
[0070] The number of abnormal characters Yj per page of the server log page is obtained by the formula Yj=Fj / 1000*θ. Similarly, the number of abnormal characters Yn per page of the program log page is obtained by the formula Yn=Fn / 1000*θ. The abnormal characteristic value P1j per page of the server log page and the abnormal characteristic value P2n per page of the program log page are calculated by the formulas P1j=Yj / Fj*100% and P2n=Yn / Fn*100% respectively.
[0071] Wherein, θ is the number of abnormal characters that appear when the number of characters is fixed in multiple program logs or server logs, that is, the frequency of occurrence of the abnormal characters. In this embodiment, the fixed number of characters is 1000. In practice, the abnormal characters can be extracted from the program log or server log by using a regular expression or a string matching method;
[0072] Step S203, the abnormal feature values of all server log pages are added and summed to obtain the abnormal feature value P1 of the server log. Similarly, the abnormal feature values of all program log pages are added and summed to obtain the abnormal feature value P2 of the application log.
[0073] Step S204, the network traffic is evenly sliced to obtain traffic data slices, and the data size of the traffic data slice is recorded as Gr. The abnormal characteristic value Sr of the traffic data slice is calculated, where r is the code of the traffic data slice, r=1, 2, ..., q, q is an integer, e is a natural number, η is a fixed value error compensation number, and Tr is the transmission time of the traffic data slice from the user end to the cloud server;
[0074] Step S205, after traversing and comparing the abnormal characteristic values of the traffic data slices, the abnormal characteristic value with the maximum value is obtained, and the abnormal characteristic value with the maximum value is marked as the abnormal characteristic value S of the network traffic;
[0075] Step S206, read the historical behavior data of different users stored in the cloud server, and also perform paging processing on the historical behavior data to obtain historical behavior data pages, and record the number of characters per page of the historical behavior data page as Hid1, i is the user number, d1 is the page number of the historical behavior data page, d1 = 1, 2, ..., s1, s1 is a positive integer;
[0076] At the same time, the actual behavior data to be detected is paged to obtain actual behavior data pages, and the number of abnormal characters on each page of the actual behavior data page is read and recorded as Mid2, d2 is the page number of the actual behavior data page, d2 = 1, 2, ..., s2, s2 is a positive integer;
[0077] Specifically, abnormal characters in the actual behavior data page can also be extracted by using regular expressions or string matching methods;
[0078] Step S207, by formula The mean value of the historical user behavior characteristics JHi of the user is calculated, where c1 is a fixed value proportional coefficient;
[0079] Then through the formula Calculate the abnormal feature value Li of the user's actual behavior data, and add up the abnormal feature values of all users' actual behavior data to obtain the abnormal feature value L of the cloud server's actual behavior data;
[0080] Step S208, by formula Calculate the data outlier value GJ of the actual data in the cloud server;
[0081] Step S209, reading the data anomaly threshold of the cloud server, and comparing the data anomaly value of the actual data in the cloud server with the data anomaly threshold;
[0082] If the data anomaly value is less than or equal to the data anomaly threshold, the actual data is identified as normal data, and the data is compressed in the form of key-value pairs through the data converter and sent to the central processing server for storage;
[0083] If the data anomaly value is greater than the data anomaly threshold, the actual data is identified as attack data, and the data is compressed in the form of key-value pairs through the data converter and sent to the feature extraction module for the next step, and at the same time sent to the central processing server for storage.
[0084] Step S3, the feature extraction module extracts key feature data from the attack data, and sends the extracted key feature data to the anomaly detection module via the central processing server;
[0085] In practice, the attack data is first decompressed, and the decompressed attack data is extracted by a key data extraction program built into the feature extraction module, and key feature data is extracted according to a preset key value;
[0086] It should be specified that the key characteristic data include the IP address of the user corresponding to the cloud server, the port numbers of all ports of the cloud server, the data packets sent by the user's corresponding IP address to the cloud server, the actual traffic generated by the user's corresponding IP address accessing the cloud server, the number of failed attempts by the user's corresponding IP address to repeatedly log into the cloud service, and the total number of failed attempts by the user's corresponding IP address to access all port numbers in the cloud server, where each user corresponds to an IP address.
[0087] Step S4, the anomaly detection module detects big data attacks on the cloud server;
[0088] In specific implementation, the step S4 specifically includes the following sub-steps:
[0089] Step S401, reading the key feature data sent by the central processing server, forming an IP address set with the IP address of the cloud server corresponding to the user, and forming a port number set with the port numbers of all ports of the cloud server;
[0090] Step S402, first traverse the IP address set, count the number of failed attempts Ni for each IP address in the IP address set to repeatedly log into the cloud service, then traverse the port number set, count the total number of failed attempts Di for each IP address to access all port numbers in the cloud server, and finally record the number of data packets sent by each user's corresponding IP address and record it as the total number of data packets BGiu1, and also record the number of data packets in abnormal state sent by each user's corresponding IP address and record it as the number of abnormal data packets BGiu2;
[0091] It should be specifically noted that the abnormal state data packet can be obtained by comparing the data packet with the standard data packet. If the protocol port, header information, and payload data of the data packet are inconsistent with the corresponding items of the standard data packet, it means that the data packet is an abnormal data packet;
[0092] Step S403, the abnormal rate Bki of the data packets sent by each user's corresponding IP address is calculated by the formula Bki=BGiu2 / BGiu1*100%;
[0093] By formula The abnormal weight YIPi of each user's corresponding IP address is calculated; where a1, a2 and a3 are all fixed proportional coefficients, and the values of a1, a2 and a3 are all greater than zero;
[0094] Step S404, read the abnormal weight threshold preset by the central processing server, and compare the abnormal weight value with the preset abnormal weight threshold:
[0095] If the anomaly weight is greater than or equal to the anomaly weight threshold, the anomaly detection module marks the key feature data as anomaly data and sends it to the central processing server;
[0096] If the anomaly weight is less than the anomaly weight threshold, proceed to the next step;
[0097] Step S405, read the actual traffic number generated by the user's corresponding IP address accessing the cloud server, averagely slice the actual traffic number to obtain traffic slices, obtain the real-time transmission duration Tix of the traffic slice, set several time points within the transmission duration, and record the real-time transmission rate of the traffic slice at multiple time points within the transmission duration, where x is the code of the traffic slice, x=1, 2, ..., h, and h is an integer;
[0098] The real-time transmission rates are added and divided by the number of time points to calculate the average transmission rate JVix of the traffic slice within the transmission duration, and the transmission rate interval of the traffic slice within the transmission duration is obtained. If the average transmission rate belongs to the transmission rate interval, the corresponding traffic slice is recorded as a normal traffic slice. If the average transmission rate does not belong to the transmission rate interval, the corresponding traffic slice is recorded as an abnormal traffic slice, and the number of abnormal traffic slices is recorded as the number of abnormal traffic slices YPi;
[0099] Step S406, by formula Calculate the traffic deviation value GTi of the user's corresponding IP address, where vx is the standard transmission rate of the traffic slice per unit time, b1 and b2 are weight coefficients, and b2>b1;
[0100] Step S407, reading the flow deviation threshold, and comparing the flow deviation value with the flow deviation threshold;
[0101] If the flow deviation value is greater than or equal to the flow deviation threshold, the anomaly detection module marks the actual flow number as abnormal data and sends it to the central processing server;
[0102] If the flow deviation value is less than the flow deviation threshold, no processing is performed;
[0103] Step S5: If the central processing server receives abnormal data, it automatically generates abnormal alarm information and sends the abnormal alarm information to the supervision platform;
[0104] In this application, if corresponding calculation formulas appear, the above calculation formulas are all dimensionless and take their numerical calculations. The weight coefficients, proportional coefficients and other coefficients in the formulas are set to a result value obtained by quantifying each parameter. The size of the weight coefficient and the proportional coefficient can be determined as long as it does not affect the proportional relationship between the parameter and the result value.
[0105] Embodiment 2
[0106] The difference from the first embodiment is that, please refer to Figure 4 , and also proposed a big data attack processing method for cloud services, which is applied to the second protection stage of big data attacks and includes the following steps:
[0107] Step T1, obtaining abnormal alarm information and further analyzing the big data attack suffered by the cloud server;
[0108] In this embodiment, step T1 includes the following specific steps:
[0109] Step T101, based on network traffic monitoring, abnormal transmission traffic is obtained, and no operation is performed or the second protection stage is entered;
[0110] It should be specifically noted that the network traffic has been specifically described in the first embodiment, specifically the traffic circulated between the user terminal and the cloud server, the abnormal transmission traffic is the excess transmission amount of the cloud server, and the excess transmission amount is the real-time transmission traffic between the cloud server and the user minus the historical transmission traffic between the cloud server and the user;
[0111] Step T102: if the abnormal transmission flow is greater than the preset flow transmission threshold, the IP address corresponding to the abnormal transmission flow is marked as an attacking IP, and the first protection stage of the cloud server is determined to have failed, and the cloud server enters the second protection stage;
[0112] If the abnormally transmitted traffic is less than or equal to the preset traffic transmission threshold, proceed to the next step;
[0113] Step T103, monitoring the system performance of the cloud server, obtaining the real-time CPU usage, real-time memory utilization and real-time disk space of the cloud server, and then reading the standard CPU usage, standard memory utilization and standard disk space of the cloud server;
[0114] Among them, system performance includes the real-time CPU usage, real-time memory utilization, and real-time disk space of the cloud server;
[0115] Step T104: if any one of the following conditions is met: the real-time CPU usage is greater than the standard CPU usage, the real-time memory usage is greater than the standard memory usage, or the real-time disk space is greater than the standard disk space, the cloud server is in an abnormal state and the next operation is performed; if the real-time CPU usage is less than or equal to the standard CPU usage, the real-time memory usage is less than or equal to the standard memory usage, and the real-time disk space is less than or equal to the standard disk space, the cloud server is in a normal state and no operation is performed;
[0116] Step T105, obtain the priority folder of the target disk in the cloud server, obtain the number of configuration files in the priority folder corresponding to the target disk and record it as the initial file number, compare the configuration files after a period of time, mark the tampered configuration files as tampered files, count the number of tampered files and record it as the tampered file number, and calculate the file tampering rate of the configuration files in the priority folder by the formula, the specific formula is as follows:
[0117] File tampering rate = number of tampered files / number of initial files;
[0118] Step T106, if the file tampering rate of the configuration file in the priority folder corresponding to the target disk in the cloud server is greater than or equal to the critical tampering rate, it is determined that the first protection stage of the cloud server has failed, and the cloud server executes the second protection stage; if the file tampering rate of the configuration file in the priority folder corresponding to the target disk in the cloud server is less than the critical tampering rate, it is determined that the first protection stage of the big data attack of the cloud server is successful, and no operation is performed;
[0119] Step T2: When the cloud server executes the second protection phase, the cloud server is repaired securely. The specific working process is as follows:
[0120] Step T201, backing up the sensitive data in the cloud server, and uploading it to another cloud storage space corresponding to the cloud server after the backup is completed;
[0121] Step T202, then disconnect the network connection between the user corresponding to the attacking IP and the cloud server, and perform a vulnerability scan on the cloud server;
[0122] Step T203, repair the protection vulnerabilities existing in the cloud server, and scan the cloud server for vulnerabilities again after the repair is completed;
[0123] Step T204: If the vulnerability scan result is safe, the sensitive data backed up in the cloud storage space is restored to the cloud server. If the vulnerability scan result is unsafe, repeat the above steps.
[0124] Embodiment 3
[0125] Figure 5 The structural diagram of a computer device is illustrated, and the computer device may include: a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus. The processor may call the logic instructions in the memory to execute a big data attack processing method for cloud services, and the method includes: a data acquisition module acquires actual data of a cloud server, and sends the actual data to a data preprocessing module via a central processing server, the data preprocessing module identifies and cleans the actual data, obtains attack data and sends it to a feature extraction module, the feature extraction module extracts key feature data from the attack data, and sends the extracted key feature data to an anomaly detection module via a central processing server, the anomaly detection module detects the big data attack of the cloud server, and if the central processing server receives abnormal data, it automatically generates abnormal alarm information and sends the abnormal alarm information to the supervision platform; obtains abnormal alarm information, further analyzes the big data attack suffered by the cloud server, and performs security repair on the cloud server when the cloud server executes the second protection stage.
[0126] In addition, the logic instructions in the above-mentioned memory can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.
[0127] On the other hand, the present application also provides a computer program product, which includes a computer program stored on a computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute a big data attack processing method for cloud services provided by the above methods, the method including: a data acquisition module collects actual data of a cloud server, and sends the actual data to a data preprocessing module via a central processing server. The data preprocessing module identifies and cleans the actual data, obtains attack data and sends it to a feature extraction module. The feature extraction module extracts key feature data from the attack data, and sends the extracted key feature data to an anomaly detection module via a central processing server. The anomaly detection module detects big data attacks on the cloud server. If the central processing server receives abnormal data, it automatically generates abnormal alarm information and sends the abnormal alarm information to the supervision platform; obtains abnormal alarm information, further analyzes the big data attack suffered by the cloud server, and performs security repair on the cloud server when the cloud server executes the second protection stage.
[0128] On the other hand, the present application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute a big data attack processing method for cloud services provided above, the method comprising: a data acquisition module acquires actual data of a cloud server, and sends the actual data to a data preprocessing module via a central processing server, the data preprocessing module identifies and cleans the actual data, obtains attack data and sends it to a feature extraction module, the feature extraction module extracts key feature data from the attack data, and sends the extracted key feature data to an anomaly detection module via a central processing server, the anomaly detection module detects big data attacks on the cloud server, and automatically generates abnormal alarm information if the central processing server receives abnormal data, and sends the abnormal alarm information to a supervision platform; the abnormal alarm information is obtained, the big data attack suffered by the cloud server is further analyzed, and the cloud server is security repaired when the cloud server executes the second protection stage.
[0129] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0130] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0131] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for processing big data attacks for cloud services, characterized in that: When applied to the first stage of protection against big data attacks, it includes the following steps: Step S1, the data acquisition module collects actual data from the cloud server and sends the actual data to the data preprocessing module via the central processing server; Step S2, the data preprocessing module identifies and cleans the actual data, obtains the attack data and sends it to the feature extraction module; Step S3, the feature extraction module extracts key feature data from the attack data, and sends the extracted key feature data to the anomaly detection module via the central processing server; Step S4, the anomaly detection module detects big data attacks on the cloud server; Step S5: If the central processing server receives abnormal data, it automatically generates abnormal alarm information and sends the abnormal alarm information to the supervision platform.
2. A method for processing big data attacks for cloud services according to claim 1, characterized in that: The actual data includes server logs, network traffic and application logs of the cloud server, and the actual behavior data of each user in the cloud server.
3. A method for processing big data attacks for cloud services according to claim 2, characterized in that: Network traffic refers to the traffic between the user end and the cloud server; The actual behavior data includes the number of failed attempts by each user to log into the cloud service in one day and the total number of times each user accesses data in the cloud server in one day.
4. A method for processing big data attacks for cloud services according to claim 3, characterized in that: The step S2 includes the following sub-steps: Step S201, reading actual data sent by the central processing server; Step S202, the actual data obtained by reading is transmitted to the data processor, the server log is divided into server log pages with a size of 1MB per page, and the application log is divided into program log pages with a size of 1MB per page, and the number of characters per page of the server log page and the number of characters per page of the program log page are read; Obtain the number of abnormal characters on each server log page and the number of abnormal characters on each program log page, thereby respectively calculating the abnormal feature value on each server log page and the abnormal feature value on each program log page; Step S203, the abnormal feature values of all server log pages are summed up to obtain the abnormal feature value of the server log. Similarly, the abnormal feature values of all program log pages are summed up to obtain the abnormal feature value of the application log. Step S204, performing average slicing processing on the network traffic to obtain traffic data slices and data sizes of the traffic data slices, and calculating abnormal feature values of the traffic data slices; Step S205, after traversing and comparing the abnormal feature values of the traffic data slices, the abnormal feature value with the maximum value is obtained, and the abnormal feature value with the maximum value is marked as the abnormal feature value of the network traffic.
5. A method for processing big data attacks for cloud services according to claim 4, characterized in that: The step S2 further comprises the following sub-steps: Step S206, reading the historical behavior data of different users stored in the cloud server, paging the historical behavior data to obtain historical behavior data pages, and reading the number of characters per page of the historical behavior data pages; At the same time, the actual behavior data to be detected is paged to obtain actual behavior data pages, and the number of abnormal characters on each page of the actual behavior data page is read; Step S207, calculating the average value of the user's historical user behavior characteristics and the abnormal feature value of the user's corresponding actual behavior data, and adding up the abnormal feature values of all users' corresponding actual behavior data to obtain the abnormal feature value of the cloud server's corresponding actual behavior data; Step S208, finally calculating and obtaining the data outlier value of the actual data in the cloud server; Step S209, reading the data anomaly threshold of the cloud server, and comparing the data anomaly value of the actual data in the cloud server with the data anomaly threshold; If the data anomaly value is less than or equal to the data anomaly threshold, the actual data is identified as normal data and sent to the central processing server for storage; If the data anomaly value is greater than the data anomaly threshold, the actual data is identified as attack data and sent to the feature extraction module for the next step. At the same time, the attack data is also sent to the central processing server for storage.
6. A method for processing big data attacks for cloud services according to claim 1, characterized in that: The key characteristic data include the IP address of the user corresponding to the cloud server, the port numbers of all ports of the cloud server, the data packets sent by the user's corresponding IP address to the cloud server, the actual traffic generated by the user's corresponding IP address accessing the cloud server, the number of failed attempts by the user's corresponding IP address to repeatedly log into the cloud service, and the total number of failed attempts by the user's corresponding IP address to access all port numbers in the cloud server. Each user corresponds to an IP address.
7. A method for processing big data attacks for cloud services according to claim 6, characterized in that: The step S4 includes the following sub-steps: Step S401, reading the key feature data sent by the central processing server, forming an IP address set with the IP address of the cloud server corresponding to the user, and forming a port number set with the port numbers of all ports of the cloud server; Step S402, traverse the IP address set, count the number of failed attempts of each IP address in the IP address set to repeatedly log into the cloud service, then traverse the port number set, count the total number of failed attempts of each IP address to access all port numbers in the cloud server, and finally record the number of data packets sent by each user's corresponding IP address and record it as the total number of data packets, and also record the number of data packets in abnormal state sent by each user's corresponding IP address and record it as the number of abnormal data packets; Step S403, calculating the abnormal rate of data packets sent by each user's corresponding IP address, and calculating the abnormal weight of each user's corresponding IP address by combining the abnormal rate of data packets with the number of failures and the total number of access failures; Step S404, read the abnormal weight threshold preset by the central processing server, compare the abnormal weight with the preset abnormal weight threshold, if the abnormal weight is greater than or equal to the abnormal weight threshold, the abnormal detection module marks the key feature data as abnormal data and sends it to the central processing server, if the abnormal weight is less than the abnormal weight threshold, proceed to the next step.
8. A method for processing big data attacks for cloud services according to claim 7, characterized in that: The step S4 also includes the following sub-steps: Step S405, reading the actual traffic number generated by the user's corresponding IP address accessing the cloud server, slicing the actual traffic number evenly to obtain traffic slices, obtaining the real-time transmission duration of the traffic slices and setting several time points within the transmission duration, and recording the real-time transmission rate of the traffic slices at multiple time points within the transmission duration; The average transmission rate of the traffic slice within the transmission duration is calculated by adding up the real-time transmission rates and dividing by the number of time points. The transmission rate interval of the traffic slice within the transmission duration is obtained. If the average transmission rate belongs to the transmission rate interval, the corresponding traffic slice is recorded as a normal traffic slice. If the average transmission rate does not belong to the transmission rate interval, the corresponding traffic slice is recorded as an abnormal traffic slice. The number of abnormal traffic slices is recorded as the number of abnormal traffic slices. Step S406, calculating and obtaining the flow deviation value of the IP address corresponding to the user; Step S407, read the flow deviation threshold, compare the flow deviation value with the flow deviation threshold, if the flow deviation value is greater than or equal to the flow deviation threshold, the anomaly detection module marks the actual flow number as abnormal data and sends it to the central processing server, if the flow deviation value is less than the flow deviation threshold, no operation is performed.
9. A computer device, characterized in that: The computer device comprises: A memory storing a computer program; A processor is communicatively connected to the memory, and when the computer program is executed by the processor, the method described in any one of claims 1 to 8 is implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method described in any one of claims 1 to 8 is implemented.
