International Journal of Wireless and Ad Hoc Communication

Enhancing Security and Privacy in IoT-Based Learning with Homomorphic Encryption

Ahmed Hatip, Karla Zayood, Rabah Scharif
Volume 8, Issue 1, pp. 01–05 (2024)
DOI: https://doi.org/10.54216/IJWAC.080101
Online: https://www.americaspg.com/journal/20/article/2405

Abstract

The security and privacy of data in an IoT-driven intelligence landscape is a major concern. This research examines the integration of Paillier homomorphic encryption into Federated Learning to enhance security while maintaining individual data privacy in such environments. The interconnectedness of devices in IoT frameworks poses a challenge in maintaining the confidentiality of sensitive information. By using Paillier encryption within Federated Learning, this problem is solved by securing learning parameters while still keeping data private. This approach demonstrates promising improvements without violating privacy through extensive simulations and comparative analyses across different model architectures. The results of this study highlight the potential effectiveness of this method for enhancing security measures in interconnected IoT environments.

Keywords: Cryptography; Privacy-preserving techniques; Data security; Internet of Things (IoT); Machine learning; Encrypted computation; Secure data transmission; Homomorphic encryption; Learning process security; Privacy; Data integrity; Data protection.

1. INTRODUCTION

sectors has ushered in a new era of efficiency and innovation. Devices ranging from sensors in smart homes to sophisticated machinery in industrial settings generate an extensive array of data, often encompassing sensitive information pertinent to user behaviors, operational patterns, and even critical infrastructure [4, 5, 6]. However, this wealth of data becomes a potential target for malicious exploitation, demanding stringent measures to ensure its confidentiality and protection against unauthorized access or tampering [7]. Addressing these concerns necessitates innovative approaches that do not compromise the utility of collected data while upholding the fundamental rights to privacy and security. In this context, homomorphic encryption is emerging as a promising paradigm that offers a transformative way to perform computations on encrypted data without the need for decryption, thus preserving data confidentiality during processing [8, 9, 10].

The Internet of Things (IoT) has seen the rise of interconnected devices that have transformed many industries and allowed for unprecedented levels of data-driven intelligence. However, this interconnectivity poses complex challenges, especially in maintaining the security and privacy of the huge amounts of sensitive data that are exchanged and processed within these IoT ecosystems [1, 2]. To exploit the transformative potential of IoT-driven intelligence while protecting sensitive information, it is necessary to incorporate strong security measures [3]. This paper explores the critical area of improving security and privacy in IoT-driven intelligence landscapes with a specific focus on homomorphic encryption as a key tool for enhancing data confidentiality and integrity.

The exponential growth of IoT deployments across diverse Homomorphic encryption is based on cryptographic techniques and presents a paradigm shift by allowing computations on encrypted data while maintaining its confidentiality. This revolutionary approach ensures that sensitive information remains cryptographically secure throughout data processing and analysis, mitigating the risks associated with data exposure [11, 12]. By enabling operations on encrypted data, homomorphic encryption allows IoT-driven intelligence frameworks to derive meaningful insights and perform computations without compromising the privacy of the underlying information. Therefore, integrating homomorphic encryption into the fabric of IoT ecosystems is a crucial step toward building trust, reliability, and confidentiality in decision-making processes driven by data across various domains [13, 14].

This paper aims to investigate the complex landscape of homomorphic encryption in IoT-driven intelligence contexts, looking at its theoretical foundations, practical uses, and implications for improving security and privacy. This study seeks to add to the discussion on secure data processing in the changing world of interconnected IoT environments by analyzing existing methodologies, challenges, and future directions.

2. METHODOLOGY

This section outlines the systematic approach used to investigate and validate the effectiveness of homomorphic encryption in strengthening security and privacy in IoT-driven intelligence frameworks.

Federated Learning (FL) is a pioneering technique that enables privacy-preserving learning in distributed data settings. When applied to IoT-driven intelligence frameworks, it ensures data confidentiality while deriving collective intelligence from decentralized sources. The execution of FL involves a series of strategic steps, delineating a systematic process to facilitate collaborative model training across distributed nodes while preserving individual data privacy [15].

Step 1: Initialization and Model Distribution. The FL process starts with the initialization phase where a base machine learning model is created. This model forms the basis for subsequent training iterations. The initial model is then distributed across the diverse nodes constituting the IoT ecosystem, ensuring uniformity across devices while respecting privacy constraints by sharing only model parameters rather than raw data.

Step 2: Local Model Training. Each node in the IoT network trains its local model on its data. This step includes training the local model iteratively using the private data of the node. The training is done locally to ensure that sensitive information is not centralized and does not move across the network.

Step 3: Model Aggregation and Parameter Update. After local training iterations, nodes send updated model parameters, not raw data, to a central server or aggregator. Then, secure aggregation techniques are used by the aggregator to combine and aggregate these model updates while maintaining privacy by not accessing individual data but rather combining parameter updates.

Step 4: Global Model Update and Redistribution. The centralized server computes the global model’s updated parameters after receiving aggregated model updates. These updated parameters represent a refined version of the initial model that incorporates insights from distributed data. The refined model is then redistributed to nodes for subsequent iterations in a cycle.

Step 5: Iterative Refinement and Convergence. The FL process iterates through multiple rounds of local training, aggregation, global model updates, and redistribution. This iterative refinement converges toward a global model that encapsulates collective intelligence from the diverse distributed nodes while preserving individual data privacy.

To strengthen the security of learning parameters in FL frameworks, Paillier homomorphic encryption is integrated as a key mechanism (Figure 1). This encryption scheme allows computations on encrypted data without decryption, thus ensuring confidentiality and integrity of sensitive learning parameters exchanged among distributed nodes. The process involves three fundamental steps: key generation, encryption, and decryption, each contributing to the secure transmission and processing of learning parameters while preserving individual data privacy [16, 17, 18].

Key Generation. The integration of Paillier homomorphic encryption within the FL framework initiates the key generation process. Paillier encryption involves the creation of public and private keys crucial for encrypting and decrypting data. The key generation phase generates two large prime numbers that are used to compute both public and private keys:

n = p·q, λ = lcm(p−1,q−1) (1)

L(x) = x−1

n (2) gλ mod n2−1   µ = L

mod n (3)

Encryption of Learning Parameters. Subsequent to key generation, the learning parameters derived during the FL process undergo encryption using the Paillier encryption scheme. The encryption process leverages the public key, converting the learning parameters into ciphertexts that conceal their original values:

c = gm ·(gn)r mod n2 (4)

Decryption of Aggregated Model Updates. Upon the aggregation of model updates from the distributed nodes, the aggregated model parameters encrypted using Paillier encryption necessitate decryption to obtain the refined global model parameters. The decryption phase involves utilizing the private key corresponding to the public key employed during encryption:

cα mod n2

L(gα mod n2) mod n (5)

This operation reveals the aggregated model updates in their original form, enabling the computation of the updated global model while maintaining the confidentiality of individual node contributions.

Figure 1. Visualization of Paillier encryption in an FL-based IoT solution.
Figure 1. Visualization of Paillier encryption in an FL-based IoT solution.

3. SIMULATION SETTINGS

This section explains the details of the simulated IoT ecosystem, including configurations, parameters, and contextual specifics that are necessary for the accurate representation of real-world scenarios. Table 1 gives a summary of the main implementation setups used in the simulation environment, including IoT network topology, data generation, FL framework, encryption algorithm and parameters, communication protocol, computational environment, simulation duration, and performance metrics measured during the experiments.

Table 1. Summary of Implementation Setups for Simulation Environment
Table 1. Summary of Implementation Setups for Simulation Environment

Mesh topology comprising 20 IoT devices Data Generation Model

Synthetic data generation using Gaussian distribution FL Framework TensorFlow Federated (TFF) for FL orchestration Encryption Algorithm

Paillier homomorphic encryption

Public key length: 2048 bits; private key length: 256 bits Communication Protocol

Encryption Parameters

Secure WebSocket communication Computational Environment

Python 3.8, TensorFlow 2.5, NumPy 1.21 Simulation Duration 100 rounds of FL iterations Performance Metrics Model convergence, encryption overhead, communication latency

Table 2. This comparative analysis examines the effectiveness and appropriateness of various models in accommodating the complexities of the proposed methodology.
Table 2. This comparative analysis examines the effectiveness and appropriateness of various models in accommodating the complexities of the proposed methodology.
Table 2. Comparative Analysis of Performance Metrics across Diverse Model Architectures in Securing Learning Parameters within IoT-driven Intelligence
Table 2. Comparative Analysis of Performance Metrics across Diverse Model Architectures in Securing Learning Parameters within IoT-driven Intelligence

Figure 2 encapsulates the confusion matrix illustrating the best results attained by the model. This comprehensive visual representation offers detailed insight into the classification performance of the approach, delineating the accuracy of predictions across multiple classes. Each cell in the matrix depicts the true positive, true negative, false positive, and false negative values, providing a nuanced understanding of the model’s classification prowess. This visual aid serves as a critical evaluation tool, enabling a thorough examination of the model’s ability to accurately discern between different attack types and normal activities within the IoT-driven intelligence framework.

Figure 2. Confusion matrix illustrating classification performance of the model, showcasing the best results achieved in discerning between attack types in multi-class settings.
Figure 2. Confusion matrix illustrating classification performance of the model, showcasing the best results achieved in discerning between attack types in multi-class settings.

This section presents empirical findings, computational assessments, and qualitative analyses derived from the simulations conducted within the defined framework. The study presented here is a comprehensive comparison of the approach’s performance under different models as outlined in

Figure 3 showcases the Receiver Operating Characteristic (ROC) curve, presenting a graphical representation of the best results achieved by the model. This curve illustrates the model’s performance in distinguishing between true positive rates and false positive rates across varying thresholds.

4. RESULTS AND DISCUSSION

The ROC curve offers a comprehensive visualization of the trade-off between sensitivity and specificity, aiding in the assessment of the model’s classification accuracy. The insights derived from the ROC curve contribute significantly to understanding the robustness and efficacy of the model, providing valuable guidance for optimizing its performance in real-world applications.

Figure 3. Receiver Operating Characteristic (ROC) curve depicting the best model’s performance in multi-class settings.
Figure 3. Receiver Operating Characteristic (ROC) curve depicting the best model’s performance in multi-class settings.

5. CONCLUSION

This study investigates the integration of Paillier homomorphic encryption into Federated Learning within IoT-driven intelligence, aiming to bolster security and privacy. Through extensive simulations and analyses, the methodology showcases promising advancements in safeguarding learning parameters while upholding individual data privacy. Comparative assessments across diverse model architectures reveal nuanced performance metrics, including model convergence, encryption overhead, and communication latency.

These findings collectively emphasize the potential efficacy of the approach in fortifying security measures within interconnected IoT environments. This research contributes to the ongoing dialogue on secure data processing, underscoring the viability of homomorphic encryption within Federated Learning as a means to address evolving challenges surrounding privacy and security in IoT-driven intelligence landscapes.

References

[1]    Ren, Wang, Xin Tong, Jing Du, Na Wang, Shan Cang Li, Geyong Min, Zhiwei Zhao, and Ali Kashif Bashir. 2021. “Privacy-Preserving Using Homomorphic Encryption in Mobile IoT Systems.” Computer Communications 165: 105–11.

[2]    Zhang, Li, Jianbo Xu, Pandi Vijayakumar, Pradip Kumar Sharma, and Uttam Ghosh. 2022. “Homomorphic Encryption-Based Privacy-Preserving Federated Learning in Iot-Enabled Healthcare System.” IEEE Transactions on Network Science and Engineering.

[3]    Subramaniyaswamy, V, V Jagadeeswari, V Indragandhi, Rutvij H Jhaveri, V Vijayakumar, Ketan Kotecha, Logesh Ravi, and others. 2022. “Somewhat Homomorphic Encryption: Ring Learning with Error Algorithm for Faster Encryption of Iot Sensor Signal-Based Edge Devices.” Security and Communication Networks 2022.

[4]    Ali, Aitizaz, Bander Ali Saleh Al-Rimy, Faisal S Alsubaei, Abdulwahab Ali Almazroi, and Abdulaleem Ali Almazroi. 2023. “HealthLock: Blockchain-Based Privacy Preservation Using Homomorphic Encryption in Internet of Things Healthcare Applications.” Sensors 23 (15): 6762.

[5]    Praveen, Ramalingam, and Parameswaran Pabitha. 2023. “Improved Gentry--Halevi’s Fully Homomorphic Encryption-Based Lightweight Privacy Preserving Scheme for Securing Medical Internet of Things.” Transactions on Emerging Telecommunications Technologies 34 (4): e4732.

[6]    Song, Wei-Tao, Bin Hu, Xiu-Feng Zhao, and others. 2018. “Privacy Protection of IoT Based on Fully Homomorphic Encryption.” Wireless Communications and Mobile Computing 2018.

[7]    Hijazi, Neveen Mohammad, Moayad Aloqaily, Mohsen Guizani, Bassem Ouni, and Fakhri Karray. 2023. “Secure Federated Learning with Fully Homomorphic Encryption for Iot Communications.” IEEE Internet of Things Journal.

[8]    Kalyani, G, and Shilpa Chaudhari. 2020. “An Efficient Approach for Enhancing Security in Internet of Things Using the Optimum Authentication Key.” International Journal of Computers and Applications 42 (3): 306–14.

[9]    Ismail, M. and F.Abd El-Gawad , A. (2023) “Revisiting Zero-Trust Security for Internet of Things”, Sustainable Machine Intelligence Journal, 3. doi: 10.61185/SMIJ.2023.33106.

[10] Ali, Aitizaz, Muhammad Fermi Pasha, Antonio Guerrieri, Antonella Guzzo, Xiaobing Sun, Aamir Saeed, Amir Hussain, and Giancarlo Fortino. 2023. “A Novel Homomorphic Encryption and Consortium Blockchain-Based Hybrid Deep Learning Model for Industrial Internet of Medical Things.” IEEE Transactions on Network Science and Engineering.

[11] Shrestha, Rakesh, and Shiho Kim. 2019. “Integration of IoT with Blockchain and Homomorphic Encryption: Challenging Issues and Opportunities.” In Advances in Computers, 115:293–331. Elsevier.

[12] Ismail, M. and F.Abd El-Gawad , A. (2023) “Revisiting Zero-Trust Security for Internet of Things”, Sustainable Machine Intelligence Journal, 3. doi: 10.61185/SMIJ.2023.33106.

[13] Othman, Soufiene Ben, Faris A Almalki, Chinmay Chakraborty, and Hedi Sakli. 2022. “Privacy-Preserving Aware Data Aggregation for IoT-Based Healthcare with Green Computing Technologies.” Computers and Electrical Engineering 101: 108025.

[14] Ali, Aitizaz, Muhammad Fermi Pasha, Jehad Ali, Ong Huey Fang, Mehedi Masud, Anca Delia Jurcut, and Mohammed A Alzain. 2022. “Deep Learning Based Homomorphic Secure Search-Able Encryption for Keyword Search in Blockchain Healthcare System: A Novel Approach to Cryptography.” Sensors 22 (2): 528.

[15] Peralta, Goiuri, Raul G Cid-Fuentes, Josu Bilbao, and Pedro M Crespo. 2019. “Homomorphic Encryption and Network Coding in Iot Architectures: Advantages and Future Challenges.” Electronics 8 (8): 827.

[16] Mahdikhani, Hassan, Samaneh Mahdavifar, Rongxing Lu, Hui Zhu, and Ali A Ghorbani. 2019. “Achieving Privacy-Preserving Subset Aggregation in Fog-Enhanced IoT.” IEEE Access 7: 184438–47.

[17] Jin, Byung-Wook, Jung-Oh Park, and Hyung-Jin Mun. 2019. “A Design of Secure Communication Protocol Using RLWE-Based Homomorphic Encryption in IoT Convergence Cloud Environment.” Wireless Personal Communications 105: 599–618.

[18] Wibawa, Febrianti, Ferhat Ozgur Catak, Murat Kuzlu, Salih Sarp, and Umit Cali. 2022. “Homomorphic Encryption and Federated Learning Based Privacy-Preserving Cnn Training: Covid-19 Detection Use-Case.” In Proceedings of the 2022 European Interdisciplinary Cybersecurity Conference, 85–90.

[19] Abdel-Basset, M., Moustafa, N., Hawash, H., Ding, W. Internet of things security requirements, threats, attacks, and countermeasures. Deep Learning Techniques for IoT Security and Privacy, 67-112.