Data storage anomaly detection method and device based on cloud platform
By setting up a storage transfer module with built-in anomaly detection channels in the cloud platform to analyze data storage write requests, it solves the problem of abnormal data mixing in direct writing of data to the storage system, improves data security and reliability, and achieves high efficiency. Data processing and storage.
Patent Information
- Application Number
- CN202410995977.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-24
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-07-24
AI Technical Summary
In the existing technology, data is directly written into the storage system, resulting in insufficient data security and reliability, lack of real-time analysis and monitoring, and potential abnormal data being undetected, affecting system security and user privacy.
Set up a storage transfer module in the cloud platform and embed periodic and aperiodic anomaly detection channels. By analyzing the data storage write request information, determine whether it is a periodic or aperiodic write request, perform corresponding anomaly detection, and Determine whether to write to the memory based on the detection results.
Through storage transfer preprocessing, abnormal data can be efficiently detected, data security and reliability can be improved, and efficient data processing and storage can be achieved.
Smart Images

Figure CN118519820B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a data storage anomaly detection method and device based on a cloud platform. Background Art
[0002] In current data storage technology, data is often written directly into the memory, lacking the necessary intermediate processing links. Although this direct writing method simplifies the operation process, it brings significant data security risks. Due to the lack of real-time analysis and monitoring of data content, potential malicious data or abnormal information may be stored without detection, posing a threat to system security and user privacy. In addition, direct writing may also lead to inefficient data processing, because once the data is written, if subsequent data cleaning, verification or conversion is required, additional reading and processing are required, increasing the overall burden of the system. Therefore, the direct writing method in the prior art has obvious deficiencies in both data security and data reliability.
[0003] The existing technology has the technical problem that data is directly written into the storage system, abnormal data is mixed, and the data security and reliability are insufficient. Summary of the invention
[0004] The present application provides a data storage anomaly detection method and device based on a cloud platform, which is used to solve the technical problem that data is directly written into the storage system in the prior art, abnormal data is mixed, and the data security and reliability are insufficient.
[0005] In view of the above problems, the present application provides a data storage anomaly detection method and device based on a cloud platform.
[0006] In a first aspect of the present application, a data storage anomaly detection method based on a cloud platform is provided, the method comprising: obtaining data storage write request information; setting a storage transit module, wherein the storage transit module is set in the cloud platform, and the storage transit module is embedded with a storage anomaly detection model, and the storage anomaly detection model includes a periodic anomaly detection channel and a non-periodic anomaly detection channel; analyzing the received data storage write request information through the storage transit module to determine whether the data storage write request information is a periodic write request; if the data storage write request information is a periodic write request, performing storage anomaly detection according to the periodic anomaly detection channel to obtain a first anomaly detection result; if the data storage write request information is a non-periodic write request, performing storage anomaly detection according to the non-periodic anomaly detection channel to obtain a second anomaly detection result; according to the first anomaly detection result or the second anomaly detection result, the storage transit module writes the to-be-written data of the data storage write request information into a memory.
[0007] A second aspect of the present application provides a data storage anomaly detection device based on a cloud platform, the device comprising: a request information acquisition module, the request information acquisition module being used to acquire data storage write request information; a storage transit module, the storage transit module being used to set a storage transit module, wherein the storage transit module is set in the cloud platform, the storage transit module being embedded with a storage anomaly detection model, the storage anomaly detection model comprising a periodic anomaly detection channel and a non-periodic anomaly detection channel; a request information judgment module, the request information judgment module being used to analyze the received data storage write request information through the storage transit module to determine whether the data storage write request information is a periodic write request; a first anomaly A detection result acquisition module, wherein the first abnormal detection result acquisition module is used to determine if the data storage write request information is a periodic write request, and perform storage abnormality detection according to the periodic abnormality detection channel to obtain a first abnormality detection result; a second abnormal detection result acquisition module, wherein the second abnormal detection result acquisition module is used to determine if the data storage write request information is a non-periodic write request, and perform storage abnormality detection according to the non-periodic abnormality detection channel to obtain a second abnormality detection result; a module for writing data to be written, wherein the module for writing data to be written is used for the storage transit module to write the data to be written of the data storage write request information into the memory according to the first abnormality detection result or the second abnormality detection result.
[0008] One or more technical solutions provided in this application have at least the following technical effects or advantages:
[0009] The method provided by the embodiment of the present application obtains data storage write request information, sets a storage transfer module, analyzes the received data storage write request information, determines whether the data storage write request information is a periodic write request, and if the data storage write request information is a periodic write request, performs storage anomaly detection according to the periodic anomaly detection channel to obtain a first anomaly detection result; if the data storage write request information is a non-periodic write request, performs storage anomaly detection according to the non-periodic anomaly detection channel to obtain a second anomaly detection result, and according to the first anomaly detection result or the second anomaly detection result, the storage transfer module writes the data to be written of the data storage write request information into the memory. The technical effect of efficiently detecting abnormal data, improving data security and reliability, and realizing efficient data processing and storage is achieved through storage transfer preprocessing. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0011] Figure 1 A schematic diagram of the process flow of the data storage anomaly detection method based on a cloud platform provided in this application;
[0012] Figure 2 A schematic diagram of a process for obtaining a first anomaly detection result in the cloud platform-based data storage anomaly detection method provided in the present application;
[0013] Figure 3 A schematic diagram of the structure of a cloud platform-based data storage anomaly detection device provided in this application.
[0014] Explanation of the reference numerals: 11 request information acquisition module, 12 storage transfer module, 13 request information judgment module, 14 first abnormality detection result acquisition module, 15 second abnormality detection result acquisition module, 16 to-be-written data writing module. DETAILED DESCRIPTION
[0015] This application provides a data storage anomaly detection method and device based on a cloud platform, which is used to solve the technical problem that data is directly written into the storage system in the prior art, abnormal data is mixed, and data security and reliability are insufficient. The technical effect of efficiently detecting abnormal data, improving data security and reliability, and realizing efficient data processing and storage is achieved through storage transfer preprocessing.
[0016] Below, the technical solutions in the present invention will be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments of the present invention. It should be understood that the present invention is not limited to the example embodiments described herein. 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. It should also be noted that, for the convenience of description, only the parts related to the present invention are shown in the accompanying drawings, rather than all of them.
[0017] Embodiment 1, as Figure 1 As shown, the present application provides a data storage anomaly detection method based on a cloud platform, the method comprising:
[0018] Get data store write request information.
[0019] Specifically, the cloud platform has one or more interfaces for receiving data storage write requests from different data sources or applications, and the interfaces support multiple data formats, such as JSON, XML, binary, etc., to adapt to the data representation methods of different data sources. At the same time, each interface clarifies the data type and structure of the request parameters, including the specific content, data type, format, size and other information of the data to be written. The data storage write request information from the client or application is received and obtained through the cloud platform interface. The data storage write request information contains the data content to be stored and related metadata, which enables the cloud platform to fully understand the data storage write activities and provides the necessary data basis for subsequent anomaly detection and security analysis.
[0020] A storage transfer module is provided, wherein the storage transfer module is provided in the cloud platform, the storage transfer module is embedded with a storage anomaly detection model, and the storage anomaly detection model includes a periodic anomaly detection channel and a non-periodic anomaly detection channel.
[0021] Specifically, in order to enhance the reliability and security of data storage, a storage transfer module is set. The storage transfer module is deployed on the cloud platform as an intermediate processing layer to view the writing method of data storage and update the storage protocol. The storage transfer module is embedded with a storage anomaly detection model, which is used to detect whether the written data is abnormal. The storage anomaly detection model includes two main channels: a periodic anomaly detection channel and an aperiodic anomaly detection channel. The periodic anomaly detection channel is used to detect anomalies in data with periodic laws. By analyzing the periodic characteristics of the data, such as daily, weekly or monthly periodic changes, data points that do not conform to these periodic laws can be identified, that is, abnormal data. The aperiodic anomaly detection channel is different from the periodic channel. The aperiodic anomaly detection channel does not rely on the periodic laws of the data, but detects anomalies based on broader data features and statistical laws. A variety of algorithms, such as distance-based anomaly detection, density-based anomaly detection, clustering-based anomaly detection, etc., are used to identify isolated points, abnormal clusters or data points that do not conform to the overall data distribution in the data. By combining the periodic anomaly detection channel and the non-periodic anomaly detection channel in the storage transit module, abnormal data in data storage requests can be identified more comprehensively and accurately, thereby avoiding interference of abnormal data on subsequent processing and analysis and improving the reliability and quality of data storage.
[0022] The storage transfer module analyzes the received data storage write request information to determine whether the data storage write request information is a periodic write request.
[0023] Specifically, when the storage transit module receives the data storage write request information, first, the data storage write request information is analyzed in detail to analyze the timing characteristics of the data storage write request information. According to the analysis result, it is determined whether the data storage write request is a periodic write request. The periodic write request refers to a data storage request that occurs repeatedly at a fixed time interval, and the data carried by the periodic write request has a certain periodic regularity. By analyzing and judging the data storage write request information, it is possible to distinguish between periodic write requests and non-periodic write requests, and the storage transit module can allocate storage resources more reasonably and improve processing efficiency.
[0024] If the data storage write request information is a periodic write request, storage anomaly detection is performed according to the periodic anomaly detection channel to obtain a first anomaly detection result.
[0025] If the data storage write request information is a non-periodic write request, storage anomaly detection is performed according to the non-periodic anomaly detection channel to obtain a second anomaly detection result.
[0026] Specifically, when it is determined that the data storage write request information is a periodic write request, the storage transit module will use the periodic anomaly detection channel to perform storage anomaly detection. The periodic anomaly detection channel uses the periodic characteristics of the data to analyze various attributes of the request, including but not limited to the timestamp of the request, data content, request source, target address, storage permission level, etc. By analyzing the data storage write request information, the non-periodic anomaly detection channel will generate a storage anomaly detection result, namely the first anomaly detection result.
[0027] When it is determined that the data storage write request information is not a periodic write request, that is, the data storage write request information is a non-periodic write request, the storage transfer module selects a non-periodic anomaly detection channel to analyze and detect the data storage write request information. Non-periodic anomaly detection does not rely on the periodic law of data, and detects the non-periodic write request information by adopting a variety of algorithms and technologies, such as density-based anomaly detection algorithms, distance-based isolated point detection, and statistical distribution-based anomaly recognition methods, to obtain a second anomaly detection result.
[0028] Through the above analysis and judgment, the storage transit module can intelligently select the appropriate anomaly detection channel according to the characteristics of the data storage write request information, thereby realizing accurate anomaly detection of periodic write requests and non-periodic write requests, which not only improves the efficiency and accuracy of data storage, but also enhances the security and reliability of data.
[0029] According to the first abnormality detection result or the second abnormality detection result, the storage transfer module writes the to-be-written data of the data storage write request information into the memory.
[0030] Specifically, the storage transfer module makes a judgment based on the first abnormality detection result from the periodic abnormality detection channel or the second abnormality detection result from the non-periodic abnormality detection channel, and the first abnormality detection result and the second abnormality detection result contain information about whether the request is abnormal. If the abnormality detection result shows that the request is not abnormal, that is, it passes the detection, then the storage transfer module will continue to perform the data write operation and write the data to be written in the data storage write request information into the memory. If the abnormality detection result shows that the request is abnormal, the storage transfer module refuses to write the data storage write request information, will not perform the write operation, and starts the abnormality handling process, such as recording the abnormal information in the log file, or sending an alarm to the system administrator to prevent potential security risks or data damage. By deciding whether to write the data to be written in the data storage write request information into the memory based on the abnormality detection result, it can ensure that only the data that passes the abnormality detection can be written, thereby improving the security and reliability of data storage, effectively avoiding the occupation of abnormal data writing memory and running space, and realizing efficient data processing and storage.
[0031] Furthermore, the storage transit module includes a data backup module, and the method also includes: if the storage transit module receives multiple concurrent write request information; based on the multiple concurrent write request information, generate a write request queue, wherein the write request queue is connected to the data backup module; perform backup condition detection on each request in the write request queue, and if the backup condition is met, activate the data backup module to perform data backup on the requests that meet the backup condition; perform anomaly detection on the backed-up data to be written, and if the anomaly detection passes, the storage transit module writes the backed-up data to be written in the data backup module into the memory.
[0032] Specifically, the storage transit module also includes a data backup module, which is responsible for copying the data to be written to a secure storage medium to ensure the recoverability of the data. As the center of data processing, the storage transit module receives multiple write request information from different sources or applications. When the storage transit module receives multiple data write operation requests at the same time within a very short time interval, it stores all write requests in the order in which the multiple write request information arrives, and generates a write request queue. The write request queue is a first-in-first-out data structure, and is connected to the data backup module. Whenever a new write request enters the queue, the storage transit module will notify the data backup module so that the backup function can be called when needed.
[0033] Next, a reasonable failure rate threshold is set according to business needs and data importance. The failure rate threshold is used to determine whether the reliability of the requested write data is within the maximum tolerable failure rate level. Each request in the write request queue is compared with the failure rate threshold. When it is detected that the failure rate of a request or some requests exceeds the preset failure rate threshold, it is considered that the request meets the backup condition, and the data backup module is activated to perform data backup on the request.
[0034] After the data is backed up to the data backup module, the backed up data to be written is subjected to an abnormality detection process to ensure the quality of the backup data. If the backed up data to be written passes the abnormality detection, the storage transfer module will write the backed up data to be written in the data backup module into the memory. It is ensured that if the original data is lost or damaged during the writing process, it can also be restored through the backup data. Through the backup and re-detection process, the reliability and security of the data can be ensured, and the risk of data loss can be reduced.
[0035] Furthermore, a backup condition check is performed on each request in the write request queue, and the method includes: the storage transit module extracts data from the data storage write request information to obtain the data to be written; a failure analysis is performed on the data to be written according to the request response time of the write request queue to obtain the data failure probability; the data failure probability is judged, and if the data failure probability is greater than the expected failure probability, the data to be written is backed up according to the data backup module.
[0036] Specifically, after receiving the data storage write request information, the storage transfer module first performs a data extraction operation to parse the data to be written from the storage write request information. Then analyze the response time of each request in the write request queue, and the response time refers to the time interval from the request submission to the data actually being written to the storage. For time-sensitive data, a long response time may cause the value of the data to decrease or completely fail. Therefore, according to the request response time of the write request queue, the data to be written is analyzed for failure, and the data failure probability is calculated. The data failure probability is used to reflect the possibility of failure of the written data under the current response time. Next, the calculated data failure probability is compared with a preset expected failure probability, and the expected failure probability is a failure rate threshold set according to business requirements and data importance. If the calculated data failure probability is greater than the expected failure probability, it means that the current data write request has a high failure risk, triggering the data backup process, and backing up the current data to be written according to the data backup module. After the data backup is completed, the storage transfer module continues to process the next request in the write request queue, ensuring that the time-sensitive data can be backed up in time, thereby reducing the risk of data failure caused by too long response time and improving data reliability and accuracy.
[0037] In one embodiment, Figure 2 As shown, storage anomaly detection is performed according to the periodic anomaly detection channel to obtain a first anomaly detection result, and the method includes: analyzing the data storage write request information to obtain the data to be written, the request address, the storage permission level and the protocol cycle; according to the periodic anomaly detection channel, obtaining the detection samples under the characteristic cycle; according to the detection samples under the characteristic cycle, anomaly detection is performed on the data to be written, the request address, the storage permission level and the protocol cycle to obtain a first anomaly detection result, and the first anomaly detection result includes a data anomaly detection result, an address anomaly detection result, a permission anomaly detection result and a cycle anomaly detection result.
[0038] Specifically, the data storage write request information is analyzed in detail to extract key information, including the data to be written, the request address, the storage permission level and the protocol cycle. The data to be written is the actual data that needs to be stored, the request address is the location of the memory where the data should be written, the storage permission level is the permission level of the requester to write data at this address, and the protocol cycle is the periodic law followed by the request, such as every hour, every day, etc. The periodic anomaly detection channel is responsible for monitoring and identifying factors that may deviate from the normal periodic pattern. In order to perform anomaly detection, according to the periodic anomaly detection channel, a detection sample matching a specific periodic feature is obtained. The detection samples under the characteristic period come from historical data or other reliable data sources, representing the data characteristics under normal periodic behavior, and are used in the subsequent anomaly detection process to identify and determine whether the current data storage write request deviates from the expected periodic pattern.
[0039] Using the detection samples under the characteristic period, the storage transfer module performs anomaly detection on the extracted data to be written, the request address, the storage permission level and the protocol period, identifies the abnormal points that do not conform to the normal mode, and generates the first abnormal detection result, which includes four parts: data abnormality detection result, address abnormality detection result, permission abnormality detection result and period abnormality detection result, wherein the data abnormality detection result is whether there is a problem with the data itself, such as data format error, data damage, etc., the address abnormality detection result is whether the request address is legal or authorized to write, the permission abnormality detection result is whether the requester has the permission to write data at the address, and the period abnormality detection result is whether the request follows the correct periodic law. Comprehensive abnormality detection of request information based on the detection samples under the characteristic period can effectively detect various types of abnormalities in data storage write request information, thereby ensuring the security and accuracy of written data.
[0040] Furthermore, storage anomaly detection is performed according to the non-periodic anomaly detection channel to obtain a second anomaly detection result, and the method includes: performing feature extraction on the data storage write request information to obtain request frequency, data volume change index and access mode change degree; the non-periodic anomaly detection channel obtains the LOF score corresponding to each feature based on the local anomaly factor; obtaining a preset LOF score, performing anomaly detection on the LOF score corresponding to each feature according to the preset LOF score, and obtaining a second anomaly detection result.
[0041] Specifically, a detailed analysis is performed on the non-periodic write request data to extract key feature information, including request frequency, data volume change index and access mode change degree, wherein the request frequency is the number of requests received per unit time, and the data volume change index is the change in the amount of data contained in the request, such as analyzing the amount of data involved in each write request, calculating the average, standard deviation, maximum, minimum and other statistics of the data volume to measure the change in the data volume, and the access mode change degree is the change in the way or path of requesting access to storage.
[0042] Using the non-periodic anomaly detection channel in the storage transfer module, the request frequency, data volume change index and access mode change degree of the data storage write request information based on the local anomaly factor (LOF) are used to calculate the LOF score of each feature to obtain the LOF score corresponding to a feature. The larger the LOF score, the more likely the data point is to be an anomaly. Based on the local anomaly factor, it is an algorithm for anomaly detection, which identifies anomalies by calculating the local density deviation between a data point and other data points in its neighborhood. According to historical data and business needs, one or more preset LOF score thresholds are set, and the LOF score threshold is used to determine whether a data point is abnormal. The LOF score corresponding to each feature is compared with the preset LOF score threshold. If the LOF score of a feature exceeds the corresponding threshold, it is considered that the feature is abnormal, and the anomaly detection results of all features are combined to obtain the second anomaly detection result. The LOF algorithm is used to comprehensively analyze multiple features, which improves the accuracy and efficiency of anomaly detection and reduces false positives and false negatives.
[0043] Furthermore, the LOF score corresponding to each feature is obtained, and the method includes: determining the neighbor number K value, wherein the K value determines the number of neighbor points considered when calculating the local density of each feature; calculating the K nearest neighbor distances corresponding to each feature, and obtaining the local density of each feature and the neighbor local density according to the K nearest neighbor distances; obtaining the ratio of the local density corresponding to each feature to the neighbor local density, and obtaining the LOF score corresponding to each feature.
[0044] Specifically, the appropriate number of neighbors K is determined based on user experience or historical experiments. The K value determines the number of neighboring points considered when calculating the local density of each feature. The K value should not be too large or too small. A too large value may cause abnormal points in dense areas to be difficult to identify, while a too small value may cause normal points to be misjudged as abnormal. For each feature in the request frequency, data volume change index, and access mode change degree, the LOF algorithm calculates the distance between the feature and all other features. These distances are obtained by calculating the Euclidean distance or other similarity metrics in the multidimensional feature space of the data points. These distances measure the similarity or difference between the features. According to the calculated distance, all features are sorted, and the nearest K features are selected as the K nearest neighbors of the feature. Then, the local density and the neighbor local density of each feature are calculated using the distances of the K nearest neighbors. The local density is an indicator that measures the closeness between a data point and its K nearest neighbors. It is calculated by the sum of the reciprocals of these distances. The higher the local density, the closer the data point is to its neighbors. The neighbor local density is the density determined by the distance between each feature and its K nearest neighbors. Finally, the ratio of the local density corresponding to each feature to the neighbor local density is calculated to obtain the LOF score corresponding to each feature. The higher the LOF score, the more likely the data point is to be an outlier relative to its local neighborhood.
[0045] Further, to determine whether the data storage write request information is a periodic write request, the method includes: performing timing identification on the data storage write request information to obtain timing repeatability; performing cluster analysis on the data storage write request information according to the timing repeatability to obtain classification results, wherein the classification results include periodic write requests and non-periodic write requests.
[0046] Specifically, first collect the timestamp information of all data storage write requests, which records the specific time when each write operation occurs. Convert the timestamp into time series data suitable for analysis, that is, convert the timestamp into an offset relative to a reference time point, or divide the time into finer-grained units, such as minutes and hours. Use statistical methods or time series analysis techniques, such as autocorrelation analysis, Fourier transform, seasonal decomposition, etc. to detect periodic patterns in write requests, such as repetition patterns every hour, every few hours, every day, every week, every month or longer. And for the detected periodic pattern, quantify its degree of repeatability by calculating the similarity, stability index or periodicity intensity of the write requests within the period, and obtain the timing repeatability.
[0047] After identifying the timing repeatability, the data storage write request information is clustered according to a clustering algorithm, which includes K-means, hierarchical clustering, DBSCAN, etc. In the clustering process, the clustering algorithm groups similar write requests together according to the extracted features, and can distinguish the features of periodic write requests and non-periodic write requests to obtain classification results, which include periodic write requests and non-periodic write requests. By performing timing identification and cluster analysis on data storage write requests, it is possible to efficiently and accurately determine whether the data storage write request information is a periodic write request, thereby improving the accuracy and reliability of subsequent data storage anomaly detection and achieving efficient data processing and storage.
[0048] Embodiment 2 is based on the same inventive concept as the data storage anomaly detection method based on the cloud platform in the above embodiment. Figure 3 As shown, the present application provides a data storage anomaly detection device based on a cloud platform, wherein the device includes:
[0049] A request information acquisition module 11, wherein the request information acquisition module 11 is used to acquire data storage write request information;
[0050] A storage transfer module 12, wherein the storage transfer module 12 is used to set a storage transfer module, wherein the storage transfer module is set in the cloud platform, and the storage transfer module is embedded with a storage anomaly detection model, and the storage anomaly detection model includes a periodic anomaly detection channel and a non-periodic anomaly detection channel;
[0051] A request information determination module 13, the request information determination module 13 is used to analyze the received data storage write request information through the storage transfer module to determine whether the data storage write request information is a periodic write request;
[0052] A first abnormality detection result acquisition module 14, the first abnormality detection result acquisition module 14 is used to determine if the data storage write request information is a periodic write request, perform storage abnormality detection according to the periodic abnormality detection channel, and obtain a first abnormality detection result;
[0053] A second abnormality detection result acquisition module 15, the second abnormality detection result acquisition module 15 is used to determine if the data storage write request information is a non-periodic write request, perform storage abnormality detection according to the non-periodic abnormality detection channel, and obtain a second abnormality detection result;
[0054] The module for writing data to be written 16 is used for causing the storage transfer module to write the data to be written of the data storage write request information into the memory according to the first abnormality detection result or the second abnormality detection result.
[0055] Furthermore, the data writing module 16 for writing data to be written is also used to perform the following steps: if the storage transit module receives multiple concurrent write request information; based on the multiple concurrent write request information, generate a write request queue, wherein the write request queue is connected to the data backup module; perform backup condition detection on each request in the write request queue, and if the backup condition is met, activate the data backup module to perform data backup on the requests that meet the backup condition; perform anomaly detection on the backed up data to be written, and if the anomaly detection passes, the storage transit module writes the backed up data to be written in the data backup module into the memory.
[0056] Furthermore, the data writing module 16 for writing data is also used to perform the following steps: the storage transit module extracts data from the data storage write request information to obtain the data to be written; performs failure analysis on the data to be written according to the request response time of the write request queue to obtain the data failure probability; judges the data failure probability, and if the data failure probability is greater than the expected failure probability, backs up the data to be written according to the data backup module.
[0057] Furthermore, the first anomaly detection result acquisition module 14 is also used to perform the following steps: analyze the data storage write request information to obtain the data to be written, the request address, the storage permission level and the protocol cycle; according to the periodic anomaly detection channel, obtain the detection samples under the characteristic cycle; according to the detection samples under the characteristic cycle, perform anomaly detection on the data to be written, the request address, the storage permission level and the protocol cycle to obtain a first anomaly detection result, and the first anomaly detection result includes a data anomaly detection result, an address anomaly detection result, a permission anomaly detection result and a cycle anomaly detection result.
[0058] Furthermore, the second anomaly detection result acquisition module 15 is also used to perform the following steps: perform feature extraction on the data storage write request information to obtain the request frequency, data volume change index and access mode change degree; the non-periodic anomaly detection channel obtains the LOF score corresponding to each feature based on the local anomaly factor; obtains the preset LOF score, and performs anomaly detection on the LOF score corresponding to each feature according to the preset LOF score to obtain the second anomaly detection result.
[0059] Furthermore, the second anomaly detection result acquisition module 15 is also used to perform the following steps: determine the neighbor number K value, wherein the K value determines the number of neighbor points considered when calculating the local density of each feature; calculate the K nearest neighbor distances corresponding to each feature, and obtain the local density of each feature and the neighbor local density based on the K nearest neighbor distances; obtain the ratio of the local density corresponding to each feature to the neighbor local density, and obtain the LOF score corresponding to each feature.
[0060] Furthermore, the request information judgment module 13 is also used to perform the following steps: perform timing identification on the data storage write request information to obtain timing repeatability; perform cluster analysis on the data storage write request information according to the timing repeatability to obtain classification results, wherein the classification results include periodic write requests and non-periodic write requests.
[0061] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.
[0062] This specification and the drawings are merely exemplary illustrations of the present application and are deemed to cover any and all modifications, variations, combinations or equivalents within the scope of the present application. Obviously, a person skilled in the art may make various modifications and variations to the present application without departing from the scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the present application and its equivalents, the present application intends to include these modifications and variations.
Claims
1. A data storage anomaly detection method based on a cloud platform, characterized in that: The method comprises: Get data storage write request information; Setting a storage transfer module, wherein the storage transfer module is set in the cloud platform, the storage transfer module is embedded with a storage anomaly detection model, and the storage anomaly detection model includes a periodic anomaly detection channel and a non-periodic anomaly detection channel; Analyzing the received data storage write request information by the storage transfer module to determine whether the data storage write request information is a periodic write request; If the data storage write request information is a periodic write request, performing storage anomaly detection according to the periodic anomaly detection channel to obtain a first anomaly detection result; If the data storage write request information is a non-periodic write request, performing storage anomaly detection according to the non-periodic anomaly detection channel to obtain a second anomaly detection result; According to the first abnormality detection result or the second abnormality detection result, the storage transfer module writes the to-be-written data of the data storage write request information into the storage; The method of performing storage anomaly detection according to the periodic anomaly detection channel to obtain a first anomaly detection result includes: Analyze the data storage write request information to obtain the data to be written, the request address, the storage permission level and the protocol cycle; According to the periodic anomaly detection channel, obtaining detection samples under a characteristic period; Perform anomaly detection on the data to be written, the request address, the storage permission level, and the protocol cycle according to the detection samples under the characteristic cycle, and obtain a first anomaly detection result, wherein the first anomaly detection result includes a data anomaly detection result, an address anomaly detection result, a permission anomaly detection result, and a cycle anomaly detection result; The method of performing storage anomaly detection according to the non-periodic anomaly detection channel to obtain a second anomaly detection result includes: Extract features of the data storage write request information to obtain request frequency, data volume change index, and access mode change degree; The non-periodic anomaly detection channel obtains the LOF score corresponding to each feature based on the local anomaly factor; Obtain a preset LOF score, perform anomaly detection on the LOF score corresponding to each feature according to the preset LOF score, and obtain a second anomaly detection result; The non-periodic anomaly detection channel obtains the LOF score corresponding to each feature based on the local anomaly factor, and the method includes: Determine the neighbor number K value, where the K value determines the number of neighboring points considered when calculating the local density of each feature; Calculate the K nearest neighbor distances corresponding to each feature, and obtain the local density of each feature and the nearest neighbor local density based on the K nearest neighbor distances; The ratio of the local density corresponding to each feature to the local density of the nearest neighbor is obtained to obtain the LOF score corresponding to each feature.
2. The data storage anomaly detection method based on a cloud platform according to claim 1, characterized in that: The storage transfer module includes a data backup module, and the method further includes: If the storage transfer module receives multiple concurrent write request messages; Generate a write request queue according to the multiple concurrent write request information, wherein the write request queue is connected to the data backup module; Performing a backup condition detection on each request in the write request queue, and if the backup condition is met, activating the data backup module to perform data backup on the request meeting the backup condition; An abnormality detection is performed on the backed-up data to be written. If the abnormality detection passes, the storage transfer module writes the backed-up data to be written in the data backup module into the memory.
3. The data storage anomaly detection method based on a cloud platform as claimed in claim 2, characterized in that: Performing backup condition detection on each request in the write request queue, the method comprising: The storage transfer module extracts data from the data storage write request information to obtain the data to be written; Performing failure analysis on the data to be written according to the request response time of the write request queue to obtain a data failure probability; The data failure probability is judged, and if the data failure probability is greater than the expected failure probability, the data to be written is backed up according to the data backup module.
4. The data storage anomaly detection method based on a cloud platform according to claim 1, characterized in that: Determining whether the data storage write request information is a periodic write request, the method comprising: Performing timing identification on the data storage write request information to obtain timing repeatability; Cluster analysis is performed on the data storage write request information according to time sequence repeatability to obtain a classification result, wherein the classification result includes periodic write requests and non-periodic write requests.
5. A data storage anomaly detection device based on a cloud platform, characterized in that: The steps for implementing the method according to any one of claims 1 to 4 include: A request information acquisition module, the request information acquisition module is used to obtain data storage write request information; A storage transfer module, wherein the storage transfer module is used to set the storage transfer module, wherein the storage transfer module is set in the cloud platform, and the storage transfer module is embedded with a storage anomaly detection model, and the storage anomaly detection model includes a periodic anomaly detection channel and a non-periodic anomaly detection channel; A request information determination module, the request information determination module is used to analyze the received data storage write request information through the storage transfer module to determine whether the data storage write request information is a periodic write request; a first abnormality detection result acquisition module, the first abnormality detection result acquisition module being used to determine if the data storage write request information is a periodic write request, perform storage abnormality detection according to the periodic abnormality detection channel, and acquire a first abnormality detection result; a second abnormality detection result acquisition module, the second abnormality detection result acquisition module being used to determine if the data storage write request information is a non-periodic write request, perform storage abnormality detection according to the non-periodic abnormality detection channel, and acquire a second abnormality detection result; A module for writing data to be written, wherein the module for writing data to be written is used for causing the storage transfer module to write the data to be written of the data storage write request information into the memory according to the first abnormality detection result or the second abnormality detection result.
Citation Information
Patent Citations
Time series data anomaly detection method and device, electronic equipment and storage medium
CN112818066A
Abnormality detection method and device, electronic equipment and storage medium
CN113377568A
Database data backup method and device, computing equipment and storage medium
CN116028263A
Data storage system and storage device based on cloud computing
CN116483623A
