CIoTA: Collaborative Anomaly Detection via Blockchain

Tomer Golomb, Yisroel Mirsky, Yuval Elovici

Abstract

Due to their rapid growth and deployment, Internet of things (IoT) devices have become a central aspect of our daily lives. However, they tend to have many vulnerabilities which can be exploited by an attacker. Unsupervised techniques, such as anomaly detection, can help us secure the IoT devices. However, an anomaly detection model must be trained for a long time in order to capture all benign behaviors. This approach is vulnerable to adversarial attacks since all observations are assumed to be benign while training the anomaly detection model.

Introduction

The Internet of Things (IoT) ecosystem is expanding rapidly, yet its security infrastructure often lags behind. Most IoT devices operate with unpatched vulnerabilities, making them prime targets for exploitation. While anomaly-based Intrusion Detection Systems (IDS) offer a promising path for detecting novel threats by learning "normal" behavior, they face two significant challenges: adversarial training and the "rare event" problem. If a device is compromised during its learning phase, the IDS may incorrectly classify malicious activity as benign. Furthermore, legitimate but infrequent behaviors often trigger false positives because the model lacks sufficient exposure to them.

CIoTA (Collaborative IoT Anomaly Detection) addresses these issues by enabling devices of the same type to collaboratively train anomaly detection models using a decentralized blockchain framework. By merging local observations into a global, trusted model via consensus, CIoTA reduces training times and false-positive rates while maintaining resilience against poisoning attacks.

The CIoTA Framework

Local Intelligence Gathering

At the device level, CIoTA utilizes Extensible Markov Models (EMM) to monitor a program’s control-flow, specifically tracking sequences of memory jumps. EMMs are chosen for their lightweight nature and incremental learning capabilities, which allow them to be efficiently merged.

The "Gather Intelligence" flowchart illustrates the local agent's logic for executing models, training, and publishing alerts.

As shown in the "Gather Intelligence" process, the local agent continuously monitors control-flow events. If a local model ($M_L$) does not exist, a new one is created. The agent executes the model and checks for anomalies ($M_{ij} > p_{th}$). If an anomaly is detected, an alert is published. Crucially, the system checks if the model has been trained for a sufficient duration before considering it stable or ready for combination.

Collaborative Blockchain and Consensus

To scale without a central point of failure, CIoTA employs a blockchain protocol to manage distributed model updates. The process involves three main stages: block creation, contribution, and acceptance.

The blockchain-based collaborative process: (a) New block creation, (b) Contribution to block, and (c) Block acceptance.
  1. New Block Creation: A device initiates a new block containing its local model updates.
  2. Contribution to Block: Other devices of the same type contribute their local observations as "rumors" within partial blocks.
  3. Block Acceptance: A block is finalized once it reaches a predefined size ($L$). A global "Combined Model" is then generated by merging these reports. To ensure integrity, the system only incorporates model transitions that appear in at least $p_c$ percent of the reports (the consensus threshold).

Before adopting a new global model, a device performs self-attestation to verify that the model is not too "distant" from its own local observations, providing an additional layer of defense against malicious updates.

Evaluation and Results

The framework was evaluated using a physical IoT simulation testbed consisting of 48 Raspberry Pis emulating smart cameras and lights. The researchers subjected the system to real-world code injection and code reuse attacks.

Key findings include:

  • High Precision: By aggregating just 20 local models ($L=20$), the system achieved high consensus, resulting in zero false positives during malware detection.
  • Poisoning Resilience: The consensus mechanism effectively filtered out malicious transitions even when multiple devices were intentionally compromised during the training phase.
  • Minimal Overhead: The system demonstrated minimal resource overhead, with CPU utilization at approximately 6.5%, memory usage around 60KB, and an executable size of 260KB, making it highly suitable for resource-constrained IoT hardware.

Conclusion

CIoTA demonstrates that the "wisdom of the crowd" can be effectively harnessed to secure the IoT ecosystem. By leveraging blockchain for decentralized consensus, the framework overcomes the limitations of standalone anomaly detection. Future work will explore applying these techniques to higher-level abstractions like API flows and optimizing network routing for large-scale deployments involving millions of devices.

Summary updated

BibTeX
@misc{golomb2018ciota,
  author = {Tomer Golomb and Yisroel Mirsky and Yuval Elovici},
  title = {{CIoTA: Collaborative Anomaly Detection via Blockchain}},
  year = {2018},
  eprint = {1803.03807},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1803.03807},
}
Figure