A server operation fault detection method and system based on data security
By de-identifying and encrypting data on the server side and combining it with secure transmission through access control, along with multimodal data fusion and a weighted isolated forest algorithm, the problems of data security and accurate diagnosis in server fault detection are solved, achieving high-security and high-precision fault detection.
Patent Information
- Application Number
- CN202611367771.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-04
- Publication Date
- 2026-11-27
AI Technical Summary
Existing server fault detection solutions lack data security protection, resulting in a high risk of sensitive information leakage and difficulty in accurately diagnosing the causal relationship between hardware failures and software anomalies, leading to high false alarm and false negative rates.
After the collected data is anonymized, encrypted, and signed on the server side, it is transmitted to the detection center through a secure channel and verified in conjunction with access control policies. Fault detection is performed using multimodal data fusion and weighted isolated forest algorithms to locate the root cause.
It improves the security, accuracy, and precision of data transmission, reduces false alarm and false negative rates, and decreases the workload of manual investigation.
Smart Images

Figure CN123178201A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of server technology, specifically relating to a method and system for detecting server operation faults based on data security. Background Technology
[0002] Servers are the core carriers of data storage and business processing, and their operational status directly affects data security and business continuity. Currently, there are three main types of server fault detection: threshold-based alarms based on in-band monitoring, which use operating system performance monitoring tools to collect metrics such as processor utilization, memory usage, and disk activity, and set fixed thresholds to identify anomalies; hardware monitoring based on out-of-band management, which collects hardware status parameters such as temperature, voltage, and fan speed through intelligent platform management interfaces or baseboard management controllers; and fault prediction based on machine learning, which uses historical operational data to train models to predict potential faults.
[0003] The collection, transmission, storage, and analysis of fault detection data involve a large amount of sensitive operational information, including system logs, configuration parameters, and user access records. This information faces risks of leakage, tampering, and unauthorized access as it flows through the detection chain. Existing solutions often treat fault detection and data security as two separate lines, with collected data frequently transmitted in plaintext over management networks, lacking fine-grained access control, and failing to organically integrate the detection process with security protection.
[0004] Existing solutions often collect single-modality, coarse-grained monitoring data, providing only performance indicators or hardware parameters. This makes it difficult to characterize the causal chain and coupling relationship between hardware failures and software anomalies, hindering accurate diagnosis and root cause analysis. Often, maintenance personnel are required to meticulously review logs. Machine learning-based methods rely on extensive historical operational data for training. This training data also contains sensitive information and lacks security protection, potentially becoming new channels for data leaks. The models are highly sensitive to changes in data distribution, such as load fluctuations, version upgrades, and hardware replacements, leading to increased false positive and false negative rates. Furthermore, traditional algorithms like Isolation Forest treat the weights of each decision tree equally when calculating anomaly scores, ignoring the differences in the isolation effects of different trees, thus impacting the accuracy of fault detection.
[0005] To address the above problems, this invention proposes a server operation fault detection method and system based on data security. Summary of the Invention
[0006] To address the aforementioned problems in the existing technology, the present invention aims to provide a server operation fault detection method and system based on data security.
[0007] To achieve the above-mentioned objectives, the technical solution adopted by this invention is: a server operation fault detection method based on data security, comprising:
[0008] S1: Collect three modalities on the monitored server side: in-band performance indicators, out-of-band hardware parameters, and system log events. Add timestamps and monotonically increasing sequence numbers to the collected data. S2: Desensitize sensitive fields in the data with timestamps and serial numbers, then encrypt, generate a digest, and sign to form a secure data packet; S3: Transmit the security data packet to the detection center through a secure channel. At the detection center, the authorization result is evaluated according to the access control policy, and the timestamp offset and sequence number are verified to prevent replay. S4: Verify the signature, verify the digest, and decrypt the security data packets that have passed the verification. Align the decrypted multimodal data frames with the three modalities according to the time window, and perform standardization and missing filling. Then, concatenate them into a fusion feature vector. S5: Input the fused feature vector into the isolated forest, determine the weight of each tree based on the discriminant degree of each isolated tree on the validation set, calculate the anomaly score based on the path length and weight output by each tree, and compare the anomaly score with the judgment threshold to obtain the judgment label; S6: When the label is determined to be abnormal, the root cause is located based on the contribution of each feature in the fused feature vector; S7: Output the judgment results and store and audit them securely, and return the desensitized samples to the training set to update the weights of the isolated forest and each isolated tree.
[0009] Preferably, step S2, which involves encryption, digest generation, and signing, includes: encrypting with a block cipher algorithm, generating a digest with a hash algorithm, and signing with an elliptic curve algorithm to form a secure data packet containing a timestamp, sequence number, key identifier, ciphertext, digest, and signature; the session key used for decryption is distributed by the detection center and rotated periodically.
[0010] Preferably, in-band performance metrics include processor utilization, memory usage, and disk I / O metrics, while out-of-band hardware parameters include temperature, voltage, and fan speed parameters; standardization is performed in step S4, including the standardization of the first... Each feature Calculate the standardized values, where These are the original observations of this feature. and These are the mean and standard deviation of the feature on the normal baseline sample, which is a set of historical multimodal data samples collected by the server under normal operating conditions without faults. It is used to characterize the typical value distribution of each feature under healthy conditions. The normal baseline sample is constructed by extracting continuous data within a time window when no faults occur from the historical operating data, and can be periodically updated by sliding window as the server's operating conditions change. For missing or out-of-range features, the data quality bit is set by filling in the missing or out-of-range features with the above effective value or mean.
[0011] Preferably, in step S5, the first The weight of each isolated tree is ,in The discriminant of the isolated tree on the validation set is the difference between the average path of normal samples and the average path of abnormal samples. The temperature coefficient is used to make the sum of the weights of all isolated trees equal to 1; the anomaly score is... ,in The path lengths of each isolated tree are weighted averages. Subsampling size The corresponding path length standardization constant; when the anomaly score is not less than the judgment threshold, the label is judged as an anomaly.
[0012] Preferably, step S6, which locates the root cause based on the contribution of each feature, includes: obtaining the contribution ratio of each feature according to the ratio of the absolute value of the standardized value of each feature to the sum of the absolute values of the standardized values of all features; aggregating the feature contributions of the same subsystem according to the causal rule base, taking the component corresponding to the largest aggregated contribution as the root cause conclusion, and using the proportion of the largest aggregated contribution as the confidence level.
[0013] Preferably, it also includes maintaining four states according to alarm confirmation and recovery status: normal, observation, alarm and recovery. In the normal state, when an abnormal score is not less than the judgment threshold once, it is transferred to the observation state. From the time of entering the observation state, when the number of consecutive abnormalities reaches the confirmation threshold, it is transferred to the alarm state. Before reaching the confirmation threshold, when an abnormal score is less than the judgment threshold once, it returns to the normal state. In the alarm state, when the number of consecutive recovery reaches the recovery threshold, it is transferred to the recovery state. In the recovery state, when no abnormality occurs continuously, it returns to the normal state.
[0014] Preferably, it further includes: when the data distribution shifts, retraining the isolated forest with the desensitized training data within the sliding window and recalculating the weights of each isolated tree; when the detection center is unreachable, writing the security data packet into the local encrypted circular buffer on the monitored server side and retransmitting it in sequence after the link is restored.
[0015] A server operation fault detection system based on data security includes a secure acquisition unit, a secure transmission unit, a key and access control unit, a multimodal feature fusion unit, a weighted isolated forest detection unit, a root cause localization and alarm unit, and a secure storage and auditing unit. The security data collection unit is deployed on the monitored server side to collect in-band performance indicators, out-of-band hardware parameters and system log events. It timestamps the collected data and assigns a monotonically increasing sequence number to it. Sensitive fields are desensitized, encrypted, digested, and signed to form a secure data packet. The secure transmission unit is used to transmit secure data packets to the detection center via a secure channel; The key and access control unit is located on the detection center side. It is used to evaluate the authorization result according to the access control policy, verify the timestamp offset and sequence number to prevent replay, and verify the signature, verification digest and decrypt the security data packets that pass the verification to obtain multimodal data frames. The multimodal feature fusion unit is used to align the three modalities of the multimodal data frame according to the time window, perform standardization and missing filling, and concatenate them into a fused feature vector; The weighted isolated forest detection unit is used to input the fused feature vector into the isolated forest, determine the weight of each tree based on the discriminant degree of each isolated tree on the validation set, calculate the anomaly score based on the path length and weight output by each tree, and compare the anomaly score with the judgment threshold to obtain the judgment label. The root cause localization and alarm unit is used to locate the root cause and output an alarm based on the contribution of each feature in the fused feature vector when the label is determined to be abnormal. The secure storage and auditing unit is used to encrypt and store the judgment records, write them to the audit log, and return the anonymized samples to the training set for the weighted isolated forest detection unit to update the isolated forest and weights.
[0016] Preferably, the key and access control unit is also used to distribute and periodically rotate session keys, and trigger key renegotiation for security data packets that fail signature verification or digest verification; the multimodal feature fusion unit is also used to continue detection and label low confidence using a subset of available modalities when a modality is missing or exceeds its range in a single frame.
[0017] Preferably, the audit log written by the secure storage and auditing unit includes timestamp, sequence number, subject, authorization result, anomaly score, judgment label and root cause; the root cause location and alarm unit is also used to migrate and maintain four states according to alarm confirmation and recovery status, namely normal, observation, alarm and recovery, and merge repeated anomalies of the same root cause during the cooling period into a continuous alarm and update its duration and peak anomaly score.
[0018] Beneficial effects 1. This invention desensitizes, encrypts, digests, and signs the collected data locally on the monitored server before transmitting it through a secure channel with timestamps and monotonic serial numbers. At the detection center, access control policies and key management are combined to form confidentiality and integrity constraints at each stage. This ensures that sensitive operational data such as system logs, configuration parameters, and access records remain controlled and auditable at each stage of collection, transmission, storage, and analysis. This reduces the risk of sensitive data flowing in plaintext and unauthorized access, and alleviates the problems of existing solutions that separate fault detection from data security and lack fine-grained access control.
[0019] 2. This invention aligns three modalities—in-band performance metrics, out-of-band hardware parameters, and system log events—by time windows and standardizes and concatenates them into a fused feature vector. Then, root cause localization maps the anomaly to specific subsystems and components based on the contribution ratio of each feature to the anomaly determination, combined with causal rules. This characterizes the coupling relationship between hardware failures and software anomalies and forms a root cause conclusion with confidence, thereby improving the accuracy of fault localization and reducing the workload of manually checking logs one by one. It also alleviates the problem that single-modality, coarse-grained monitoring is insufficient to support root cause analysis.
[0020] 3. This invention assigns weights to each isolated tree based on its discriminative power on the validation set and integrates them with path length to obtain anomaly scores. This allows trees with good isolation performance to have higher weights in the integration. Combined with anonymized historical data and sliding window retraining, a detection model that updates with changes in data distribution is formed. This improves the sharpness of anomaly detection and stabilizes detection accuracy, reduces the risk of training data leakage without protection, and alleviates the problems of traditional isolated forest equal-weighted integration ignoring the differences between trees and the lack of protection for training data. Attached Figure Description
[0021] Figure 1 This is a flowchart illustrating the server operation fault detection method provided in an embodiment of the present invention; Figure 2 This is a schematic diagram of the structure and data flow of the server operation fault detection system provided in an embodiment of the present invention.
[0022] In the diagram: 100, Server operation fault detection system; 110, Security acquisition unit; 120, Security transmission unit; 130, Key and access control unit; 140, Multimodal feature fusion unit; 150, Weighted isolated forest detection unit; 160, Root cause localization and alarm unit; 170, Security storage and auditing unit. Detailed Implementation
[0023] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to specific embodiments. It should be understood that the specific embodiments described herein are merely for explaining the invention and are not intended to limit the scope of protection of the invention.
[0024] Example 1 Please see Figure 1 As shown in the figure, this embodiment provides a server operation failure detection method based on data security, which includes the following steps: S1. Collect three modalities on the monitored server side: in-band performance metrics, out-of-band hardware parameters, and system log events. In-band performance metrics refer to indicators such as processor utilization, memory usage, and disk I / O collected by the operating system performance counters; out-of-band hardware parameters refer to parameters such as temperature, voltage, and fan speed collected by the baseboard management controller. The sampling period is 10 seconds. The raw data of the three modalities at the sampling time are timestamped and monotonically increasing in sequence to form a time-aligned raw data frame.
[0025] S2. Sensitive fields (such as user identifier, file path, and network address) in the data with timestamps and sequence numbers are masked or generalized, then the payload is encrypted using the session key, the payload digest is calculated, and the payload is signed with the private key. The example uses the Chinese national cryptographic algorithm system, namely, encryption with a block cipher, digest generation with a hash algorithm, and signing with an elliptic curve algorithm, with a key length of 128 bits. The above cryptographic mechanism can also be replaced with an equivalent symmetric encryption and transport layer security system. The secure data packet output in this step includes a timestamp, sequence number, key identifier, ciphertext, digest, and signature.
[0026] S3. The security data packet is transmitted to the detection center via a two-way authenticated secure channel. At the detection center, the authorization result of this access is evaluated according to the access control policy, and it is verified whether the timestamp offset is within the replay window and whether the sequence number is monotonically unique; the replay window is 30 seconds. Security data packets that pass authorization and anti-replay verification proceed to the next step; security data packets whose authorization is denied, whose timestamp exceeds the window, or whose sequence number rolls back are judged as unauthorized or replay and discarded, and a security event is generated and written to the audit.
[0027] S4. For secure data packets that pass verification, sequentially verify the signature, verify the digest, and decrypt. The key is managed by the session key and rotated periodically. Data packets that fail signature or digest verification are discarded and recorded as security events, triggering key renegotiation. If the same subject fails five consecutive times, a high-level alarm for suspected tampering or man-in-the-middle attacks is reported. The three types of modal data frames obtained after decryption are aligned according to the time window. Each feature is standardized using the following formula:
[0028] For the first The dimensionless values of each feature after standardization; These are the original observations of this feature; and These represent the mean and standard deviation of the feature on the normal baseline sample, respectively. The normal baseline sample is a set of historical multimodal data samples collected when the server is operating normally without faults, used to characterize the typical value distribution of each feature under healthy conditions. This normal baseline sample is constructed by extracting continuous data within a time window during which no faults occurred from the historical operating data, and can be periodically updated using a sliding window method as the server's operating conditions change. (Subscript) The feature number. Features that are missing or exceed the range are above the previous valid value or... Data quality bits are filled and the feature is marked as low confidence. When a sensor for a certain modality is missing or its reading exceeds its range within a single frame, detection continues using subset features and the result is marked as low confidence. When the missing proportion in a single frame exceeds half, the frame is downgraded to detection of a subset of available modalities and the alarm is marked as low confidence to maintain uninterrupted detection. Subsequently, the standardized features are concatenated into a fused feature vector. The output is sent to step S5, thereby forming a unified input in the same dimension space from heterogeneous multimodal data.
[0029] S5. Input the path length into each isolated tree of the isolated forest. Then, according to the weight of each tree Path length-weighted ensemble. The weight of each tree is determined by its discriminative power on the validation set. Determine using the following formula:
[0030] In the formula, This is the summation sign over all values taken from the isolated tree; For the first The dimensionless weight of an isolated tree; For the first The discriminant score of each isolated tree on the validation set, which consists of samples labeled as normal and abnormal, used to independently evaluate the isolation performance of each isolated tree; discriminant score. The difference between the average path length of all normal samples and the average path length of all abnormal samples on the tree is taken. In other words, the longer the average path length for normal samples and the shorter the average path length for abnormal samples, the better. The larger the value, the better the isolation effect of the tree; For temperature coefficient, take 0.5; subscript and All are isolated tree indices; This is the natural exponential function; the division sign is used to normalize the exponential values of each tree, making the sum of all weights equal to 1. Then, the anomaly score is calculated:
[0031] In the formula, To fuse feature vectors The dimensionless outlier score, with a value range of The larger the value, the more abnormal it is; path length By weight The weighted average, i.e. ; Subsampling size The corresponding path length normalization constant, ,in For the harmonic term, the subsampling scale Take 256; the exponent base 2 and the division sign are used to compress the weighted path length to the above interval. Abnormal scores will be... With the judgment threshold Compare, Taking 0.62 satisfies the condition. If the condition is normal, it is considered abnormal; otherwise, it is considered normal. This step outputs the abnormal score, the judgment label, and the path of each tree. If it is judged as normal, it proceeds to step S7 to record and enter the next sampling period. If it is judged as abnormal, the abnormal sample, the path of each tree, and the abnormal score are provided to step S6, so that trees with good isolation performance can contribute more to the judgment within the same integrated framework.
[0032] As an example, for an ensemble containing four isolated trees, if the discriminants of the four trees are 4.2, 3.2, 4.9, and 2.5 respectively, the weights of the four trees calculated using the above weighting formula are 0.2896, 0.1757, 0.4110, and 0.1237 respectively (the sum of the four is 1.0000). Under normal operating conditions, if the standardized values of each feature are all within one standard deviation, and the path lengths of a sample are 9.0, 8.6, 9.4, and 8.3 respectively, then the weighted average path length is 9.00748, and the anomaly score is... A score less than 0.62 is considered normal. Under abnormal conditions, if the path lengths of a sample are 5.2, 5.8, 4.8, and 6.1 respectively, the weighted average path length is 5.25241, and the abnormal score is... A score greater than 0.62 is considered abnormal (as a control, if equal-weighted integration is used, the abnormality score of this sample is approximately 0.6904, which increases from 0.6904 to 0.7009 after weighting, making the abnormality more obvious).
[0033] S6. When a label is determined to be abnormal, calculate the contribution percentage of each feature to the abnormality based on the absolute value of its standardized value:
[0034] In the formula, For the first The dimensionless contribution percentage of each feature; the numerator is the absolute value of the standardized value of that feature. The summation sign is used to normalize the absolute values of all features; the division sign is used to normalize the absolute value of a single feature to the sum of all features. The causal rule base is a pre-built set of rules used to characterize the causal mapping relationship between various monitoring features and server subsystems / components. Its construction method is as follows: various monitoring features are grouped according to their respective subsystems, and a correspondence between feature anomaly types and root cause conclusions is established for each subsystem. Specifically, for each feature, its corresponding subsystem is predefined based on its physical meaning and data source, including but not limited to classifying processor utilization and memory usage as computing subsystems, disk input / output waiting as storage subsystems, temperature, voltage, and fan speed as heat dissipation or power supply systems, and error log events as operating system or application subsystems. When the contribution of one or more features within a subsystem is prominent, the rule base determines that subsystem as the root cause. The causal rule base can be stored in the form of a feature-subsystem mapping table predefined by domain experts, or it can be updated based on the statistical correlation between the feature contribution distribution and the final confirmed root cause in historical failure cases. This unit combines the causal rule base to aggregate the feature contributions of the same subsystem, takes the component corresponding to the largest aggregate contribution as the root cause, and uses the proportion of the aggregate contribution as the confidence level. To suppress false alarms caused by single jitters, this unit maintains four states according to alarm confirmation and recovery status: In the normal state, if an anomaly score is not less than the threshold, it will switch to the observation state; if the cumulative number of anomalies reaches the confirmation threshold after entering the observation state, it will switch to the alarm state and upgrade to a critical alarm. The confirmation threshold is 3 times; if an anomaly score is less than the threshold before reaching the confirmation threshold, the count will be reset to zero and it will return to the normal state; in the alarm state, if the number of consecutive recovery times reaches the recovery threshold, it will switch to the recovery state. The recovery threshold is 3 times; if no anomalies occur continuously in the recovery state, it is determined that it has recovered and returned to the normal state. If an anomaly occurs again, it will return to the alarm state. Repeated anomalies with the same root cause during the cooling-off period are merged into a single continuous alarm, with only the duration and peak anomaly score updated to avoid alarm storms. This step outputs the root cause conclusion, confidence level, alarm level, and alarm status to step S7, thereby further assigning the anomaly determination to specific components and stabilizing alarm triggering and deactivation.
[0035] Taking the aforementioned abnormal branch as an example, if the contribution ratios of disk input / output wait and error log in the standardized values are 0.590 and 0.177 respectively, and the two are aggregated into the storage subsystem according to the causal rules, with an aggregate contribution of 0.767, then the output root cause is a storage subsystem failure, with a confidence level of 0.77; if this sample is the third consecutive abnormality, then the confirmation threshold is reached, and the alarm is upgraded to severe.
[0036] S7. Output the judgment results and perform secure storage and auditing. Generate tiered alarms and distribute them to the operation and maintenance system. Encrypt the judgment records and write them to disk, along with a full-link audit log containing timestamps, sequence numbers, subjects, authorization results, anomaly scores, tags, and root causes. Then, return the anonymized samples to the training set for sliding window retraining and weight updates. When the false alarm rate near the window increases or the distribution of collected data deviates from the baseline, retrain using the anonymized training data within the sliding window and recalculate the weights of each tree. During the training period, a conservative judgment threshold is used, and only observation is performed without issuing false alarms. When the detection center is unreachable, the security data packets on the monitored server side are written to a local encrypted circular buffer (e.g., retaining the most recent 6 hours). After the link is restored, they are retransmitted according to the sequence number without plaintext.
[0037] Example 2 Please see Figure 2 As shown, this embodiment provides a server operation fault detection system based on data security. The server operation fault detection system 100 includes a security acquisition unit 110, a security transmission unit 120, a key and access control unit 130, a multimodal feature fusion unit 140, a weighted isolated forest detection unit 150, a root cause localization and alarm unit 160, and a security storage and auditing unit 170.
[0038] The secure data acquisition unit 110 is deployed on the monitored server side to collect in-band performance metrics, out-of-band hardware parameters, and system log events. It timestamps and monotonically increasing sequence numbers on the collected data, desensitizes sensitive fields, encrypts the data, generates a digest, and signs it to form a secure data packet. The secure data acquisition unit 110 connects to the operating system performance counters, baseboard management controller sensors, and log files, and outputs the secure data packet to the secure transmission unit 120.
[0039] The secure transmission unit 120 is used to transmit secure data packets to the detection center via a secure channel and to attach a timestamp and a monotonically increasing sequence number to the secure data packets.
[0040] The key and access control unit 130, located at the detection center, is used to evaluate authorization results according to access control policies, verify timestamp offsets and sequence numbers to prevent replay, and verify signatures, digests, and decrypt security data packets that pass verification to obtain multimodal data frames. This unit is also responsible for the distribution and rotation of session keys, and triggers key renegotiation for security data packets that fail signature or digest verification.
[0041] The multimodal feature fusion unit 140 is used to align the three modalities of the multimodal data frame according to the time window, perform standardization and missing data imputation, and concatenate them into a fused feature vector. When a sensor for a certain modality is missing or the reading exceeds the range in a single frame, this unit continues to detect using a subset of available modalities and marks it as low confidence; when the missing proportion in a single frame exceeds half, the frame is downgraded to the detection of a subset of available modalities.
[0042] The weighted isolated forest detection unit 150 is used to input the fused feature vector into the isolated forest, determine the weight of each tree based on the discriminant degree of each isolated tree on the validation set, calculate the anomaly score based on the path length and weight output by each tree, and compare the anomaly score with the judgment threshold to obtain the judgment label.
[0043] The root cause localization and alarm unit 160 is used to locate the root cause and output an alarm based on the contribution of each feature in the fused feature vector when the label is determined to be abnormal. This unit is also used to maintain four states: normal, observation, alarm and recovery, according to the alarm confirmation and recovery status, and to merge repeated anomalies of the same root cause during the cooling period into a continuous alarm and update its duration and peak anomaly score.
[0044] The secure storage and auditing unit 170 is used to encrypt and store the judgment records, write them to the audit log, and feed the anonymized samples back into the training set for the weighted isolated forest detection unit 150 to update the isolated forest and weights. The audit log includes timestamps, sequence numbers, subjects, authorization results, anomaly scores, judgment labels, and root causes.
[0045] Each unit can be implemented by an agent process on the monitored server side and a processor execution program on one or more computer devices on the detection center side. The above unit division is used to illustrate the data processing relationship. In another implementation, the actions of several units can be executed sequentially by the same processor process. This implementation method can be executed as long as each unit transmits security data packets, multimodal data frames, fused feature vectors, anomaly scores, and judgment records according to the above-described reading, generation, and supply relationships.
[0046] The above are merely preferred embodiments of this application and are not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A method for detecting server malfunctions based on data security, characterized in that, include: S1: Collect three modalities on the monitored server side: in-band performance indicators, out-of-band hardware parameters, and system log events. Add timestamps and monotonically increasing sequence numbers to the collected data. S2: Desensitize sensitive fields in the data with timestamps and serial numbers, then encrypt, generate a digest, and sign to form a secure data packet; S3: Transmit the security data packet to the detection center through a secure channel. At the detection center, the authorization result is evaluated according to the access control policy, and the timestamp offset and sequence number are verified to prevent replay. S4: Verify the signature, verify the digest, and decrypt the security data packets that have passed the verification. Align the decrypted multimodal data frames with the three modalities according to the time window, and perform standardization and missing filling. Then, concatenate them into a fusion feature vector. S5: Input the fused feature vector into the isolated forest, determine the weight of each tree based on the discriminant degree of each isolated tree on the validation set, calculate the anomaly score based on the path length and weight output by each tree, and compare the anomaly score with the judgment threshold to obtain the judgment label; S6: When the label is determined to be abnormal, the root cause is located based on the contribution of each feature in the fused feature vector; S7: Output the judgment results and store and audit them securely, and return the desensitized samples to the training set to update the weights of the isolated forest and each isolated tree.
2. The server operation fault detection method based on data security according to claim 1, characterized in that, Step S2 involves encryption, digest generation, and signing, including: encryption using a block cipher algorithm, digest generation using a hash algorithm, and signing using an elliptic curve algorithm, forming a secure data packet containing a timestamp, sequence number, key identifier, ciphertext, digest, and signature; the session key used for decryption is distributed by the detection center and rotated periodically.
3. The server operation fault detection method based on data security according to claim 1, characterized in that, In-band performance metrics include processor utilization, memory usage, and disk I / O metrics; out-of-band hardware parameters include temperature, voltage, and fan speed. Standardization is performed in step S4, including the... Each feature Calculate the standardized values, where These are the original observations of this feature. and These are the mean and standard deviation of the feature on the normal baseline sample, which is a set of historical multimodal data samples collected by the server under normal operating conditions without faults. It is used to characterize the typical value distribution of each feature under healthy conditions. The normal baseline sample is constructed by extracting continuous data within a time window when no faults occur from the historical operating data, and can be periodically updated by sliding window as the server's operating conditions change. For missing or out-of-range features, the data quality bit is set by filling in the missing or out-of-range features with the above effective value or mean.
4. The server operation fault detection method based on data security according to claim 1, characterized in that, In step S5, the first The weight of each isolated tree is ,in The discriminant of the isolated tree on the validation set is the difference between the average path of normal samples and the average path of abnormal samples. The temperature coefficient is used to make the sum of the weights of all isolated trees equal to 1; the anomaly score is... ,in The path lengths of each isolated tree are weighted averages. Subsampling size The corresponding path length standardization constant; when the anomaly score is not less than the judgment threshold, the label is judged as an anomaly.
5. The server operation fault detection method based on data security according to claim 1, characterized in that, Step S6 involves locating the root cause based on the contribution of each feature, including: obtaining the contribution ratio of each feature by the proportion of the absolute value of the standardized value of each feature to the sum of the absolute values of the standardized values of all features; aggregating the feature contributions of the same subsystem according to the causal rule base, taking the component corresponding to the largest aggregated contribution as the root cause conclusion, and using the proportion of the largest aggregated contribution as the confidence level.
6. The server operation fault detection method based on data security according to claim 1, characterized in that, It also includes four states for maintenance: normal, observation, alarm and recovery, based on alarm confirmation and recovery status: In the normal state, when an abnormal score is not less than the judgment threshold once, it is transferred to the observation state. From the time of entering the observation state, when the number of consecutive abnormalities reaches the confirmation threshold, it is transferred to the alarm state. Before reaching the confirmation threshold, when an abnormal score is less than the judgment threshold once, it returns to the normal state. In the alarm state, when the number of consecutive recovery reaches the recovery threshold, it is transferred to the recovery state. In the recovery state, when no abnormality occurs continuously, it returns to the normal state.
7. The server operation fault detection method based on data security according to claim 1, characterized in that, Also includes: When the data distribution shifts, the isolated forest is retrained using the desensitized training data within the sliding window, and the weights of each isolated tree are recalculated. When the detection center is unreachable, the security data packets are written to the local encrypted circular buffer on the monitored server side and retransmitted in sequence after the link is restored.
8. A server operation fault detection system based on data security, characterized in that, It includes a secure acquisition unit, a secure transmission unit, a key and access control unit, a multimodal feature fusion unit, a weighted isolated forest detection unit, a root cause localization and alarm unit, and a secure storage and auditing unit; The security data collection unit is deployed on the monitored server side to collect in-band performance indicators, out-of-band hardware parameters and system log events. It timestamps the collected data and assigns a monotonically increasing sequence number to it. Sensitive fields are desensitized, encrypted, digested, and signed to form a secure data packet. The secure transmission unit is used to transmit secure data packets to the detection center via a secure channel; The key and access control unit is located on the detection center side. It is used to evaluate the authorization result according to the access control policy, verify the timestamp offset and sequence number to prevent replay, and verify the signature, verification digest and decrypt the security data packets that pass the verification to obtain multimodal data frames. The multimodal feature fusion unit is used to align the three modalities of the multimodal data frame according to the time window, perform standardization and missing filling, and concatenate them into a fused feature vector; The weighted isolated forest detection unit is used to input the fused feature vector into the isolated forest, determine the weight of each tree based on the discriminant degree of each isolated tree on the validation set, calculate the anomaly score based on the path length and weight output by each tree, and compare the anomaly score with the judgment threshold to obtain the judgment label. The root cause localization and alarm unit is used to locate the root cause and output an alarm based on the contribution of each feature in the fused feature vector when the label is determined to be abnormal. The secure storage and auditing unit is used to encrypt and store the judgment records, write them to the audit log, and return the anonymized samples to the training set for the weighted isolated forest detection unit to update the isolated forest and weights.
9. The server operation fault detection system based on data security according to claim 8, characterized in that, The key and access control unit is also used to distribute and periodically rotate session keys, and to trigger key renegotiation for security data packets that fail signature verification or digest verification; the multimodal feature fusion unit is also used to continue detection and label low confidence using a subset of available modalities when a modality is missing or exceeds its range in a single frame.
10. The server operation fault detection system based on data security according to claim 8, characterized in that, The audit logs written by the security storage and auditing unit include timestamps, sequence numbers, subjects, authorization results, anomaly scores, judgment tags, and root causes. The root cause location and alarm unit is also used to migrate and maintain four states according to alarm confirmation and recovery status: normal, observation, alarm, and recovery. It also merges repeated anomalies of the same root cause during the cooling-off period into a single continuous alarm and updates its duration and peak anomaly score.
