A Pvalue-guided Anomaly Detection Approach Combining Multiple Heterogeneous Log Parser Algorithms on IIoT Systems

Xueshuo Xie, Zhi Wang, Xuhang Xiao, Lei Yang, Shenwei Huang, Tao LiarXiv 2019

Abstract

Industrial Internet of Things (IIoT) is becoming an attack target of advanced persistent threat (APT). Currently, IIoT logs have not been effectively used for anomaly detection. In this paper, we use blockchain to prevent logs from being tampered with and propose a pvalue-guided anomaly detection approach. This approach uses statistical pvalues to combine multiple heterogeneous log parser algorithms. The weighted edit distance is selected as a score function to calculate the nonconformity score between a log and a predefined event. The pvalue is calculated based on the non-conformity scores which indicate how well a log matches an event. This approach is tested on a large number of real-world HDFS logs and IIoT logs. The experiment results show that abnormal events could be effectively recognized by our pvalue-guided approach.

Introduction

Industrial Internet of Things (IIoT) systems are increasingly targeted by Advanced Persistent Threats (APTs). While system logs serve as the primary record of these environments, their utility for security is often compromised by three main factors: log tampering by attackers, data silos on isolated devices, and the inherent difficulty of detecting extremely rare anomalies in relatively small datasets. Standard machine learning models often struggle with this "needle in a haystack" problem in industrial contexts. This research proposes a system that ensures log integrity through blockchain while providing high-accuracy anomaly detection despite these constraints.

System Architecture and Methodology

The proposed architecture integrates blockchain storage with a novel "p-value-guided" hybrid log parsing approach. The workflow begins by preprocessing raw logs and storing them on a blockchain ledger to create an immutable, shared record that prevents attackers from scrubbing their digital footprints.

System architecture of the p-value-guided anomaly detection framework.

At the core of the detection engine is a "committee" of heterogeneous log parsers, such as IPLoM, LogCluster, AEL, and Spell. Each parser identifies constant and variable parts of log messages differently. The system calculates a non-conformity score using weighted edit distance, measuring the deviation of new logs from known templates. Using conformal prediction, these scores are converted into p-values. A low p-value (below a significance level $\epsilon$) suggests an anomaly. By aggregating p-values across multiple parsers, the system only triggers an alarm if a log fails to match templates across the entire suite, significantly reducing false positives.

Experimental Evaluation

The researchers evaluated the approach using a massive public HDFS dataset and a proprietary IIoT dataset from an oil industry company. The IIoT dataset contained critical anomalies such as file loading errors and data integrity check failures.

Comparison of template counts and accuracy across different log parsing algorithms.

As shown in the performance analysis of individual parsers, different algorithms vary significantly in their accuracy and the number of templates they generate. For instance, while many parsers achieve near-perfect accuracy, others like LogCluster and SLCT show lower performance, justifying the need for a heterogeneous "committee" approach to cover blind spots.

Key Results

  • Recall: The hybrid model achieved a Recall Rate of 1.0 (100% detection) on the IIoT dataset at significance levels of 0.4 and higher, outperforming individual parsers which often missed specific anomalies.
  • Precision: The model maintained a high precision of 0.9704 at a 0.27 significance level.
  • Robustness: The integration of blockchain ensures that the "ground truth" used for detection remains untampered, a critical prerequisite for effective APT detection.

Conclusion

This p-value-guided approach effectively distinguishes between normal operations and critical industrial failures. While the computational cost of calculating weighted edit distance remains a hurdle for real-time deployment on low-power edge devices, the statistical rigor provided by conformal prediction offers a reliable method for tuning the trade-off between sensitivity and false alarms in sensitive IIoT environments.

Summary updated

BibTeX
@misc{xie2019pvalue,
  author = {Xueshuo Xie and Zhi Wang and Xuhang Xiao and Lei Yang and Shenwei Huang and Tao Li},
  title = {{A Pvalue-guided Anomaly Detection Approach Combining Multiple Heterogeneous Log Parser Algorithms on IIoT Systems}},
  year = {2019},
  eprint = {1907.02765},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1907.02765},
}
Figure