Secure MQTT Protocol based on Attribute-Based Encryption Scheme

Nam Ho, Choong Seon HongJournal of KIISE 2018 · DOI

TL;DR

This paper proposes a "Secure MQTT" protocol that enhances the security of the lightweight MQTT messaging protocol for the Internet of Things (IoT). By integrating attribute-based encryption (ABE) and elliptic curve cryptography (ECC), it aims to provide robust security without the significant overhead introduced by traditional TLS, making it suitable for resource-constrained IoT devices.

What Problem Does This Paper Address?

The Internet of Things (IoT) is rapidly expanding, generating vast amounts of data that fuel new services. Efficient and secure data transmission is crucial for this ecosystem. MQTT is a popular lightweight messaging protocol designed for IoT environments. However, while TLS can be used to secure MQTT, it introduces substantial overhead in terms of handshake and packet size, which is problematic for devices with limited processing power and bandwidth. The existing MQTT standard also lacks built-in security mechanisms, relying on external solutions like TLS. This paper addresses the need for a more efficient and secure communication protocol for IoT that can overcome the limitations of TLS when used with MQTT.

Methods

The proposed solution, "Secure MQTT," integrates two key cryptographic techniques:

  • Attribute-Based Encryption (ABE): Specifically, the paper focuses on Key-Policy ABE (KP-ABE). In KP-ABE, data is encrypted with a set of attributes, and users possess private keys associated with an "access tree." Decryption is only possible if the user's access tree satisfies the attributes of the encrypted data. This allows for fine-grained access control based on user attributes.
  • Elliptic Curve Cryptography (ECC): ECC is used for efficient key exchange via the Elliptic Curve Diffie-Hellman (ECDH) algorithm. ECC offers comparable security to RSA with significantly shorter key lengths, making it ideal for resource-constrained IoT devices.

The protocol involves a Set-up phase where nodes register with the broker, and a symmetric key is established using ECDH. Nodes then send their attribute sets to the broker, which constructs an access tree for each node. The Secure MQTT Communication Flow involves publishers encrypting data using their access tree and a symmetric key. To mitigate the computational burden on resource-constrained publishers, this encryption is offloaded to more capable nodes. The broker then aggregates these encrypted messages and uses a symmetric key to encrypt the final ciphertext before sending it to the subscriber. The subscriber uses their symmetric key and access tree to decrypt the data.

Datasets

Not discussed in the paper. The paper focuses on a protocol design and theoretical security analysis rather than empirical evaluation on specific datasets.

Key Insights and Ideas

  • Offloading Encryption for Resource-Constrained Devices: A critical insight is the realization that the computational cost of KP-ABE can be high for publishers. The paper proposes offloading this encryption task to unconstrained nodes, making the protocol feasible for devices with limited resources.
  • Synergy of KP-ABE and ECC: The combination of KP-ABE for access control and ECC for efficient key exchange provides a layered security approach that is both robust and lightweight.
  • Addressing TLS Overhead: The core motivation is to bypass the handshake and packet overhead of TLS, which is a significant bottleneck for many IoT applications. Secure MQTT aims to achieve security without this penalty.
  • Fine-grained Access Control: KP-ABE inherently provides granular control over data access based on user attributes, which is a valuable feature for IoT scenarios where different users or devices may require access to different subsets of data.

Key Results

The paper primarily presents a design and theoretical security analysis.

  • Security: The proposed Secure MQTT protocol is claimed to be secure against unauthorized access because an attacker would need to know the publisher's Key-Policy and the symmetric keys shared between nodes and the broker. The use of ECDH for key exchange makes it resistant to Man-in-the-Middle attacks.
  • Efficiency: The protocol is designed to be more efficient than using TLS with MQTT due to the avoidance of TLS handshake and reduced packet overhead. The paper suggests that the encryption operations are less resource-intensive for constrained devices compared to traditional TLS.
  • Performance (Qualitative): A graph (Figure 7) shows the encryption time per number of attributes for ABE, indicating that as the number of attributes increases, the encryption time also increases, but it is presented as a manageable overhead.

Limitations and Future Work

  • Reliance on Unconstrained Nodes: A significant limitation acknowledged is the reliance of resource-constrained publishers on unconstrained nodes for encryption. If these unconstrained nodes refuse or fail to perform the encryption, the communication can be disrupted.
  • Future Work: The authors plan to address this dependency by further refining the protocol to be more robust and efficient, potentially exploring alternative approaches to handle encryption for all nodes, regardless of their resource constraints.

Summary updated

Abstract

최근 사물인터넷(IoT)의 규모가 증가함에 따라 다량의 데이터가 발생하고 있고 이런 데이터를 이용한 다양한 서비스가 등장하고 있다. 이에 따라 빅 데이터들을 효율적으로 처리/전송 할 수 있는 사물인터넷 환경에 적합한 프로토콜이 필요하다. MQTT는 사물인터넷환경을 위한 경량의 메시징 프로토콜이다. 그러나 MQTT 프로토콜은 보안성을 제공하기 위해서는 TLS를 사용할 수 있지만, TLS를 사용할 경우 Handshake 및 패킷 오버헤드가 증가하는 문제점을 갖는다. 따라서 본 논문에서는 MQTT 프로토콜에 경량화 암호화 알고리즘을 활용하여 보다 강한 보안성을 제공하는 Secure_MQTT 프로토콜을 제안한다.
BibTeX
@article{ho2018secure,
  author = {Nam Ho and Choong Seon Hong},
  title = {{Secure MQTT Protocol based on Attribute-Based Encryption Scheme}},
  journal = {Journal of KIISE},
  year = {2018},
  doi = {10.5626/jok.2018.45.3.195},
}
Figure