Submitted:
25 September 2023
Posted:
26 September 2023
You are already at the latest version
Abstract
Keywords:
1. Introduction
2. Contributions
Main Contributions:
- Build a comprehensive framework to detect the security and privacy threat based on ML.
- The framework focuses on the triple security properties (CIA).
- The framework provides an idea for dynamic protection in IoT systems based on the detected threat.
- Provide enhanced IoT dataset to enhance the accuracy of the proposed classification algorithm.
3. Materials and Methods
3.1. The Blockchain Technology
3.2. IoT Architecture
4. Related Work
| Key Findings and Contributions | Challenges Addressed | Methodologies & Techniques | Connection to IoT | Ref |
|---|---|---|---|---|
| Introduced Sensor Function Virtualization (SFV) for distributed intelligence in IoT. - Addressed limitations in IoT networks. - Advantages of SFV for IoT. | Lack of specific experiments for energy consumption reduction and time delay assessment. | SFV, Distributed Intelligence. | Yes | [11] |
| Identified firmware and software vulnerabilities in IoT devices. - Addressed security issues related to access control. | Vulnerabilities in IoT devices. - Security risks due to poor implementation. | Access Control, Security Vulnerabilities | No | [12] |
| Introduced systematic review methods for IoT networks. - Categorized virtualization methods. - Classified solutions into architectural, management, and security-based categories. | Lack of decentralization in solution. - Complexity overhead. | Virtualization, Solution Classification | Yes | [13] |
| Presented a credibility verification method using blockchain. - Conducted experiments to validate the method. - Highlighted security risks and limitations. | Method needs further protection for IoT devices. - Lack of complete decentralization. - Problems in high-scale IoT environments. | Credibility Verification, Blockchain. | Yes | [15] |
| Utilized blockchain for privacy and security in IoT. - Addressed privacy concerns. | Method does not mitigate computation consumption. | Privacy, Security, Blockchain. | No | [16] |
| Integrated blockchain for data integrity in IoT. - Achieved practical and scalable requirements. - Ensured trusted communication. | Communication overhead not mitigated. - Lack of IoT device integration in blockchain. | Data Integrity, Permission Blockchain. | Yes | [18] |
| Investigated blockchain-IoT integration and analyzed embedded technologies. - Focused on technical and strategic perspectives. | Incomplete analysis and resolution for IoT manufacturers. - Lack of association with machine learning algorithms. | Integration Analysis, Blockchain Use Cases. | Yes | [19] |
| Introduced a security module for IoT devices using blockchain. - Addressed malicious attacks. | Low sophistication in security level. | Security Module, Blockchain. | No | [20] |
| Presented an intelligent and secure architecture using deep reinforcement learning. - Enhanced system effectiveness. | Low sophistication in privacy level. | Security Architecture, Deep Learning. | No | [21] |
| Proposed a mechanism for data user integrity in IoT using random sequences and permutations. - Ensured low computational complexity. | Mechanism slightly affects response time. | Data User Integrity, Random Sequences. | [22] | |
| Demonstrated blockchain-based solutions for preventing DoS attacks. - Compared blockchain-based methods against DDoS attacks. | Emphasized stable decentralization. | DoS Attack Prevention, Blockchain. | [26] | |
| Proposed a machine learning-based framework to detect DoS attacks in MQTT protocol. - Achieved high attack detection accuracy. | Improved false-positive rates | DoS Detection, MQTT Protocol. | [27] | |
| Introduced a model for detecting data falsification attacks. - Proposed a weighted sequential hypothesis test (WSHT). - Enhanced detection performance. | WSHT requirements slightly affect response time | Data Falsification Detection, WSHT. | [28] | |
| Established a framework for confidentiality in data collection using elliptic curve cryptography. - Addressed vulnerabilities in Wireless Sensor Networks. | Performance and time latency issues with encryption. | Confidentiality, Encryption. | [29] | |
| Utilized 5G-based AI to enhance IoMT network confidentiality. - Addressed various types of attacks and vulnerabilities. | Diverse security and privacy vulnerabilities. | AI, Confidentiality, Blockchain | [30] | |
5. The proposed Hybrid Framework Architecture:
5.1. Perception layer
5.2. Fog Layer
5.3. Aggregation Layer
5.4. Cloud Layer
5.5. Integration of Machine Learning
5.6. Benefits and Advantages:
5.7. Dynamic Protector
6. The Model of Machine Learning for the Hybrid Framework
- Support Vector Machine (SVM)
- Logistic Regression (LogR)
- K-Nearest Neighbor (KNN)
- Deep Learning (DL)
The following code explains how the proposed algorithm works:
| import Library (pandas pd, numpy np, matploat plt, and sklearn) url="IoT_Thermostat_End3.csv" # Dataset from google.colab import files # Upload Dataset File to Cloud uploaded = files.upload() Features = ['date_d','date_m','date_y','time_h_m','time_s','current_temp','value_change','t_delay','class'] print ('shape of dataset') print(dataset.shape) print(dataset.describe()) X = Features [1:,0:8] # All rows of cols (start from 0 until 8-1 cols) as input Y = Features [1:,8] # All rows of the col 8 is the Output #Divide data to Training (30%) and Testing (70%) x_train, x_test, y_train, y_test = model_selection.train_test_split(X, Y, test_size=0.3, random_state=7) #Using Smote for imbalanced Issue smote = SMOTE () x_smote, y_smote = smote.fit_resample (X, Y) x_train, x_test, y_train, y_test = model_selection.train_test_split(x_smote, y_smote, test_size=0.3, random_state=7) #Apply ML models model = KNN () model.fit(x_train,y_train) predictions = model.predict(x_test) model = SVC () model.fit(x_train,y_train) model = LogisticRegression() model.fit(x_train,y_train) model = Sequential () #Deep Learning # Number of layers, in addition to select activation and optimizer models model.add(Dense(12, input_shape=(4,), activation='relu')) # 4: number of X model.add(Dense(5, activation='relu')) model.add(Dense(1, activation='sigmoid')) model.compile(loss='binary_crossentropy', optimizer='adam', metrics=['accuracy']) history = model.fit(X, Y, epochs=150, batch_size=10, verbose=0, validation_split=0.3) #,shuffle=True # Draw Accuracy Curves (training and validation) plt.plot(history.history['accuracy'],'r',linewidth=3.0) plt.plot(history.history['val_accuracy'],'b',linewidth=3.0) # For each Model find the Confusion Matrix to calculate the Accuracy, Precision, Recall, and F1-Score print('KNN Smote',accuracy_score(y_test, predictions)) matrix = confusion_matrix(y_test,predictions, labels=[1,0]) tp, fn, fp, tn = confusion_matrix(y_test,predictions,labels=[1,0]).reshape(-1) print('Confusion matrix : \n',matrix) |
7. The Results Discussion
- K Nearest Neighbor (KNN)
- Support Vector Machine (SVM)
- Log Regression (LR)





8. Discussion and future trends
- Depending on the Blockchain as an absolute solution to the issue of data security and privacy in the Internet of Things applications, which is inaccurate as the Blockchain may suit some cases. Still, it may not help protect privacy in some applications and may be unsuitable for delay-sensitive real-time applications.
- There is no genuine interest or special care in the privacy issue; some ignore it completely, and others consider it an element of security, which is not valid.
- The solutions that employed machine learning in the same protection technology. I used it only to detect security threats and not privacy, such as sequences or intrusion, without concern for privacy issues, such as identity detection or the threat of tracking or profiling.
- There are no independent solutions to the privacy problem (special protection techniques) or security solutions even commensurate with delay-sensitive or centralized applications.
- Previous research (especially the one that discussed the issue of security as the main thing) was not concerned with the issue of testing possible attacks on data, whether security attacks or privacy attacks.
9. Conclusion
References
- Dedeoglu, V., Jurdak, R., Putra, G. D., Dorri, A., & Kanhere, S. S. (2019, November). A trust architecture for blockchain in IoT. In Proceedings of the 16th EAI international conference on mobile and ubiquitous systems: computing, networking and services (pp. 190-199).Tomar, P., Singh, S. K., Kanga, S., Meraj, G., Kranjčić, N., Ðurin, B. and Pattanaik, A. [2021], ‘Gis-based urban flood risk assessment and management—a case study of delhi national capital territory (nct), india’, Sustainability 13(22), 12850.
- Bao, Z., Shi, W., He, D., & Chood, K. K. R. (2018). IoTChain: A three-tier blockchain-based IoT security architecture. arXiv preprint arXiv:1806.02008. [CrossRef]
- Srivastava, A., Gupta, S., Quamara, M., Chaudhary, P., & Aski, V. J. (2020). Future IoT-enabled threats and vulnerabilities: State of the art, challenges, and future prospects. International Journal of Communication Systems, 33(12), e4443. [CrossRef]
- Lin, J., Yu, W., Zhang, N., Yang, X., Zhang, H., & Zhao, W. (2017). A survey on internet of things: Architecture, enabling technologies, security and privacy, and applications. IEEE internet of things journal, 4(5), 1125-1142. [CrossRef]
- Kearney, P. (2020). Iot security: Experience is an expensive teacher. The Internet of Things: From Data to Insight, 107-120. [CrossRef]
- Jurcut, A. D., Ranaweera, P., & Xu, L. (2020). Introduction to IoT security. IoT security: advances in authentication, 27-64. [CrossRef]
- Alaba, F. A., Othman, M., Hashem, I. A. T., & Alotaibi, F. (2017). Internet of Things security: A survey. Journal of Network and Computer Applications, 88, 10-28. [CrossRef]
- Dorri, A., Kanhere, S. S., Jurdak, R., & Gauravaram, P. (2017, March). Blockchain for IoT security and privacy: The case study of a smart home. In 2017 IEEE international conference on pervasive computing and communications workshops (PerCom workshops) (pp. 618-623). IEEE. [CrossRef]
- Pulkkis, G., Karlsson, J., & Westerlund, M. (2018). Blockchain-Based Security Solutions for IoT Systems. Internet of Things A to Z: Technologies and Applications, 255-274. [CrossRef]
- Khan, I., Belqasmi, F., Glitho, R., Crespi, N., Morrow, M., & Polakos, P. (2015). Wireless sensor network virtualization: A survey. IEEE Communications Surveys & Tutorials, 18(1), 553-576. [CrossRef]
- Aghazadeh, H., Germi, M. B., Khiav, B. E., & Ghadimi, N. (2015). Robust placement and tuning of UPFC via a new multiobjective scheme-based fuzzy theory. Complexity, 21(1), 126-137. [CrossRef]
- Lin, J., Yu, W., Zhang, N., Yang, X., Zhang, H., & Zhao, W. (2017). A survey on internet of things: Architecture, enabling technologies, security and privacy, and applications. IEEE internet of things journal, 4(5), 1125-1142. [CrossRef]
- Modieginyane, K. M., Letswamotse, B. B., Malekian, R., & Abu-Mahfouz, A. M. (2018). Software defined wireless sensor networks application opportunities for efficient network management: A survey. Computers & Electrical Engineering, 66, 274-287. [CrossRef]
- Aman, M. N., Chua, K. C., & Sikdar, B. (2017). Mutual authentication in IoT systems using physical unclonable functions. IEEE Internet of Things Journal, 4(5), 1327-1340. [CrossRef]
- Qu, C., Tao, M., Zhang, J., Hong, X., & Yuan, R. (2018). Blockchain based credibility verification method for IoT entities. Security and Communication Networks, 2018. [CrossRef]
- Jesus, E. F., Chicarino, V. R., De Albuquerque, C. V., & Rocha, A. A. D. A. (2018). A survey of how to use blockchain to secure internet of things and the stalker attack. Security and communication networks, 2018. [CrossRef]
- Panarello, A., Tapas, N., Merlino, G., Longo, F., & Puliafito, A. (2018). Blockchain and iot integration: A systematic survey. Sensors, 18(8), 2575. [CrossRef]
- Hang, L., & Kim, D. H. (2019). Design and implementation of an integrated iot blockchain platform for sensing data integrity. sensors, 19(10), 2228. [CrossRef]
- Maroufi, M., Abdolee, R., & Tazekand, B. M. (2019). On the convergence of blockchain and internet of things (iot) technologies. arXiv preprint arXiv:1904.01936. [CrossRef]
- Choi, B. G., Jeong, E., & Kim, S. W. (2019). Multiple security certification system between blockchain based terminal and internet of things device: Implication for open innovation. Journal of Open Innovation: Technology, Market, and Complexity, 5(4), 87. [CrossRef]
- Dai, Y., Xu, D., Maharjan, S., Chen, Z., He, Q., & Zhang, Y. (2019). Blockchain and deep reinforcement learning empowered intelligent 5G beyond. IEEE network, 33(3), 10-17. [CrossRef]
- Aman, M. N., Sikdar, B., Chua, K. C., & Ali, A. (2018). Low power data integrity in IoT systems. IEEE Internet of Things Journal, 5(4), 3102-3113. [CrossRef]
- Liang, L., Zheng, K., Sheng, Q., & Huang, X. (2016, December). A denial of service attack method for an iot system. In 2016 8th international conference on Information Technology in Medicine and Education (ITME) (pp. 360-364). IEEE. [CrossRef]
- Yamin, M., Alsaawy, Y., B. Alkhodre, A., & Abi Sen, A. A. (2019). An innovative method for preserving privacy in Internet of Things. Sensors, 19(15), 3355. [CrossRef]
- Nguyen, T. A., Min, D., & Choi, E. (2020). A hierarchical modeling and analysis framework for availability and security quantification of IoT infrastructures. Electronics, 9(1), 155. [CrossRef]
- Singh, R., Tanwar, S., & Sharma, T. P. (2020). Utilization of blockchain for mitigating the distributed denial of service attacks. Security and Privacy, 3(3), e96. [CrossRef]
- Syed, N. F., Baig, Z., Ibrahim, A., & Valli, C. (2020). Denial of service attack detection through machine learning for the IoT. Journal of Information and Telecommunication, 4(4), 482-503. [CrossRef]
- Wu, J., Wang, C., Yu, Y., Song, T., & Hu, J. (2020). Sequential fusion to defend against sensing data falsification attack for cognitive Internet of Things. ETRI Journal, 42(6), 976-986. [CrossRef]
- Al-Turjman, F., & Alturjman, S. (2018). Confidential smart-sensing framework in the IoT era. The Journal of Supercomputing, 74(10), 5187-5198. [CrossRef]
- Hasan, M. K., Ghazal, T. M., Saeed, R. A., Pandey, B., Gohel, H., Eshmawi, A. A., ... & Alkhassawneh, H. M. (2022). A review on security threats, vulnerabilities, and counter measures of 5G enabled Internet-of-Medical-Things. IET Communications, 16(5), 421-432.
- Sadeghi-Niaraki, A. (2023). Internet of Thing (IoT) review of review: Bibliometric overview since its foundation. Future Generation Computer Systems. [CrossRef]
- Lombardi, M., Pascale, F., & Santaniello, D. (2021). Internet of things: A general overview between architectures, protocols and applications. Information, 12(2), 87. [CrossRef]
- Bahbouh, N. M., Compte, S. S., Valdes, J. V., & Sen, A. A. A. (2023). An empirical investigation into the altering health perspectives in the internet of health things. International Journal of Information Technology, 15(1), 67-77. [CrossRef]
- Yamin, M., Basahel, A. M., & Abi Sen, A. A. (2018). Managing crowds with wireless and mobile technologies. Wireless Communications and Mobile Computing, 2018. [CrossRef]
- Marchi, G., Mulloni, V., Hammad Ali, O., Lorenzelli, L., & Donelli, M. (2021). Improving the sensitivity of chipless RFID sensors: The case of a low-humidity sensor. Electronics, 10(22), 2861. [CrossRef]
- Abi Sen, A. A., Eassa, F. A., Jambi, K., & Yamin, M. (2018). Preserving privacy in internet of things: a survey. International Journal of Information Technology, 10, 189-200. [CrossRef]
- Mololoth, V. K., Saguna, S., & Åhlund, C. (2023). Blockchain and machine° learning for future smart grids: A review. Energies, 16(1), 528. [CrossRef]
- Yu, F., Rao, W., Liu, C., Wang, J., & Zhou, L. (2022). Architecture, Integrated Gateway Design, And Performance Evaluation for High Concurrency Access of Power Internet of Things. Mobile Information Systems, 2022. [CrossRef]
- Kaur, B., Dadkhah, S., Shoeleh, F., Neto, E. C. P., Xiong, P., Iqbal, S., ... & Ghorbani, A. A. (2023). Internet of things (IoT) security dataset evolution: Challenges and future directions. Internet of Things, 100780. [CrossRef]
- Sen, A. A. A., & Yamin, M. (2021). Advantages of using fog in IoT applications. International Journal of Information Technology, 13, 829-837. [CrossRef]
- Donta, P. K., Srirama, S. N., Amgoth, T., & Annavarapu, C. S. R. (2022). Survey on recent advances in IoT application layer protocols and machine learning scope for research directions. Digital Communications and Networks, 8(5), 727-744. [CrossRef]
- Nath, R., & Nath, H. V. (2022). Critical analysis of the layered and systematic approaches for understanding IoT security threats and challenges. Computers and Electrical Engineering, 100, 107997. [CrossRef]
- Alsaedi, A., Moustafa, N., Tari, Z., Mahmood, A., & Anwar, A. (2020). TON_IoT telemetry dataset: A new generation dataset of IoT and IIoT for data-driven intrusion detection systems. Ieee Access, 8, 165130-165150. [CrossRef]










| Key Advantages | Description |
|---|---|
| Comprehensive Threat Detection | To provide full threat detection capabilities, our framework incorporates cutting-edge technologies such as Blockchain, fog computing, and machine learning-based detection methods. This means it can detect and respond to a wide range of security and privacy concerns at the same time. |
| Dynamic Adaptation | Unlike many existing solutions, our framework incorporates machine learning algorithms that constantly adapt and learn from shifting threat landscapes. This dynamic method ensures that the system stays successful in detecting emerging threats, making it more resilient to new attack vectors. |
| Privacy Protection | Beyond security, our system prioritizes user privacy. It protects sensitive data and reduces tracking and profiling attempts by incorporating obfuscation techniques and identity theft protection measures. |
| Resource Efficiency | By using fog computing to preprocess and filter data before it reaches the cloud layer, the architecture optimizes resource utilization. This lessens the processing strain on cloud servers while improving overall system efficiency. |
| Scalability and Flexibility | The suggested hybrid framework is built to scale smoothly as the IoT environment expands. Its adaptability enables simple integration with a wide range of IoT devices and network setups, making it appropriate for a wide range of applications. |
| Decentralized Security | Our system offers decentralized security by leveraging blockchain technology, making it resistant to single points of failure and unauthorized data revisions. This improves the integrity and availability of data. |
| User-Focused | Finally, our approach prioritizes user data security, secure access management, and rapid threat response. This user-centric design reduces the possibility of unauthorized data access and ensures that IoT environments are secure and trustworthy. |
| Threat Concern |
IoT Attack type | Security Requirement Target | General Integration Techniques |
Associated in Our Framework |
| Security | Data leakage - Sniffing | Confidentiality | Machine Learning and Blockchain | Decoding |
| Security | Data Tampering | Integrity | Machine Learning and Blockchain. | Hashing |
| Security | (DoS) | Availability | Machine Learning and Blockchain. | Fog Computing with Cloud. |
| Privacy | Linking data | Profiling | ML-based Detection System | Dummy - Swap cooperation |
| Privacy | Identity Theft | Identification | ML-based Detection System | Dummy - Swap cooperation |
| Privacy | Tracking attack (Location) |
Tracking | Machine Learning | Obfuscation |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2023 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).