CIoTA: Collaborative IoT Anomaly Detection via Blockchain

Tomer Golomb, Yisroel Mirsky, Yuval Elovici

TL;DR

This paper introduces CIoTA, a novel framework that leverages blockchain technology for collaborative anomaly detection in resource-constrained IoT devices. By enabling devices to collectively train and update a trusted anomaly detection model through self-attestation and consensus, CIoTA enhances security against both local attacks and adversarial manipulations, even during the model's training phase.

What Problem Does This Paper Address?

The proliferation of Internet of Things (IoT) devices brings immense convenience but also introduces significant security vulnerabilities. Anomaly detection is a promising approach to identify malicious activities on these devices. However, traditional anomaly detection models require extensive training on benign data, making them susceptible to adversarial attacks that can subtly alter this training data, allowing attackers to evade detection. Furthermore, training models on limited local data can lead to high false positive rates due to rare but legitimate behaviors. Existing solutions often rely on centralized servers, which don't scale well with the massive number of IoT devices.

Methods

CIoTA proposes a distributed and collaborative anomaly detection framework using a blockchain-inspired approach. Each IoT device runs an "agent" that maintains a local anomaly detection model, based on an Extensible Markov Model (EMM). This EMM tracks an application's control-flow behavior.

The core of CIoTA involves:

  • Collaborative Training: Devices periodically share their locally trained models. These models are aggregated into "blocks" on a blockchain.
  • Self-Attestation and Consensus: Before a model is accepted into a block, other devices in the network verify its integrity. This verification involves merging the model with their own and checking if the resulting combined model meets a certain consensus threshold (parameter $p_c$). This process ensures that only models representing benign behavior contribute to the global model.
  • Trusted Model Updates: Once a block is filled with verified models and closed, it represents a trusted, collaboratively built anomaly detection model. Devices then update their local models with this new, more robust global model.
  • Adversarial Resistance: The consensus mechanism and the verification process make it difficult for an attacker to inject malicious models into the chain. If an attacker compromises a device, its model will likely be rejected by the majority of other devices, preventing it from corrupting the global model.

Datasets

The paper does not explicitly mention using pre-existing public datasets. Instead, the authors created their own distributed IoT simulation platform consisting of 48 Raspberry Pis. This platform was used to emulate two types of IoT devices: smart cameras and smart lights. The attacks simulated were code injection and code reuse.

Key Insights and Ideas

  • Blockchain for Collaborative Security: The paper ingeniously applies blockchain principles not for financial transactions, but for building a shared, trusted security model among distributed, resource-constrained devices.
  • "Wisdom of the Many" for Anomaly Detection: By aggregating models from numerous devices, CIoTA leverages collective intelligence to create a more accurate and robust anomaly detection model, significantly reducing false positives and improving detection rates.
  • In-Situ Training Robustness: CIoTA's approach allows for continuous learning and model updates even during the initial training phase, making it resilient to adversarial attacks that target this vulnerable period.
  • Decentralization for Scalability: The distributed nature of the framework eliminates the need for a central server, making it inherently scalable for the vast IoT ecosystem.
  • Self-Attestation as a Security Primitive: The mechanism where devices attest to the integrity of other devices' models before they are incorporated into the global model is a crucial security feature.

Key Results

The evaluation on the 48-Raspberry Pi simulation platform demonstrated CIoTA's effectiveness:

  • Improved Anomaly Detection: When joining more models together (up to 20 in their experiments), a stronger consensus was achieved much faster, leading to the detection of code injection attacks with zero false positives.
  • Adversarial Attack Resilience: The framework showed resilience against adversarial attacks. If an attacker's malicious code was dissimilar to the original application's behavior, other agents would reject the compromised partial block. Even if the malicious code was similar, the consensus mechanism (Algorithm 1) filtered out new behaviors that didn't achieve consensus, still allowing for detection.
  • Low Overhead: For resource-limited devices, the agent's CPU utilization was 6.5%, memory consumption was 60KB, and executable size was 260KB, indicating a lightweight solution.

Limitations and Future Work

  • Per-Model Blockchain: A limitation noted is that a separate blockchain must be published for each IoT model/firmware. This makes CIoTA most applicable to large industrial settings and smart cities.
  • Future Work: The authors plan to extend CIoTA to support multiple frameworks and improve its detection capabilities. Specifically, they aim to investigate API flows in addition to lower-level control-flows for more comprehensive detection. They also suggest using PKI for stronger security if the deployment environment allows for its management.

Summary updated

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