A Lightweight Trust and Audit Framework for IoT Intrusion Detection with Blockchain-Anchored Event Integrity

Authors

  • Aashi Singh Bhadouria

Keywords:

Beta reputation, CICIoT2023, Edge-IIoTset, Hyperledger fabric, Merkle tree, Tamper-evident logging

Abstract

Background: Internet of Things (IoT) gateways must detect malicious traffic and also keep a record of security alerts that an independent auditor can trust after an incident. Writing every alert to a blockchain makes the record tamper-evident but costs latency, throughput, and storage.

Objectives: This study proposes the Lightweight Trust and Audit Framework (LTAF), which separates detection, device trust management, and integrity protection, and measures the cost of each on real data and a real permissioned ledger.

Methodology: Four lightweight detectors were trained on two public datasets, CICIoT2023 (8 traffic families) and Edge-IIoTset (15 classes), with a stratified 70/15/15 split, class-balanced weights and five seeds. Alerts are serialised into canonical records, linked by a SHA-256 hash chain, and one Merkle root per batch is anchored on a Hyperledger Fabric v2.5 network (Raft ordering, two peer organisations) deployed on a single host. Per-alert and batched anchoring were measured from 50 to 4,000 alerts/s; a Discrete-Event Model (DES), calibrated on part of the Fabric runs and checked on the rest, was used only for sensitivity analysis beyond the testbed. A Beta-reputation trust engine was driven by the detector’s real test-set verdicts.

Results: The selected random forest reached a macro-F1 of 0.708 ± 0.015 on CICIoT2023 and 0.921 ± 0.004 on Edge-IIoTset (mean ± 95 % CI); with a validation-calibrated alert threshold its benign false-positive rate was 1.82 ± 0.59 % at 85.0 ± 0.5 % attack detection, and it scored a flow in 18.7 µs in batch. On Fabric (measured), batched anchoring (B = 64, τ = 0.5 s) kept the 95th-percentile alert-to-commit latency at ≤ 1.10 s up to 4,000 alerts/s and used 54 bytes of ledger per alert, whereas per-alert anchoring used 3,183 bytes per alert and saturated between 400 and 800 alerts/s on the testbed (p95 6.1 s at 800 alerts/s). All 1,600 injected manipulations were detected. Driven by real detector verdicts, the asymmetric trust engine quarantined devices that devoted 60 % of their traffic to attacks after 3.8 ± 0.3 windows of 10 s (1.2 % of benign devices falsely quarantined), while devices whose alert fraction stays below an analytically derived threshold evade quarantine.

Conclusion: Batched anchoring gives verifiable audit trails at bounded cost on a real ledger; results are from a single-host testbed and a simulation-based sensitivity study, not from a production deployment.

References

R. Vishwakarma and A. K. Jain, “A survey of DDoS attacking techniques and defence mechanisms in the IoT network,” Telecommunication Systems, vol. 73, pp. 3–25, 2020.

N. Chaabouni, M. Mosbah, A. Zemmari, C. Sauvignac and P. Faruki, “Network intrusion detection for IoT security based on learning techniques,” in IEEE Communications Surveys & Tutorials, vol. 21, no. 3, pp. 2671–2701, 2019.

Y. Meidan et al., “N-BaIoT—Network-based detection of IoT botnet attacks using deep autoencoders,” in IEEE Pervasive Computing, vol. 17, no. 3, pp. 12–22, Jul.-Sep. 2018.

Y. Mirsky, T. Doitshman, Y. Elovici, and A. Shabtai, “Kitsune: An ensemble of autoencoders for online network intrusion detection,” arXiv, Feb. 2018.

M. A. Ferrag, O. Friha, D. Hamouda, L. Maglaras and H. Janicke, “Edge-IIoTset: A new comprehensive realistic cyber security dataset of IoT and IIoT applications for centralized and federated learning,” in IEEE Access, vol. 10, pp. 40281–40306, 2022.

E. C. Pinto Neto, S. Dadkhah, R. Ferreira, A. Zohourian, R. Lu, and A. A. Ghorbani, “CICIoT2023: A real-time dataset and benchmark for large-scale attacks in IoT environment,” Sensors, vol. 23, no. 13, Jun. 2023.

B. Schneier and J. Kelsey, “Secure audit logs to support computer forensics,” ACM Transactions on Information and System Security, vol. 2, no. 2, pp. 159–176, May 1999.

X. Xu, I. Weber, and M. Staples, Architecture for Blockchain Applications. Cham, Switzerland: Springer, 2019.

M. S. Ali, M. Vecchio, M. Pincheira, K. Dolui, F. Antonelli and M. H. Rehmani, “Applications of Blockchains in the Internet of Things: A comprehensive survey,” in IEEE Communications Surveys & Tutorials, vol. 21, no. 2, pp. 1676–1717, 2019.

H. -N. Dai, Z. Zheng and Y. Zhang, “Blockchain for Internet of Things: A survey,” in IEEE Internet of Things Journal, vol. 6, no. 5, pp. 8076–8094, Oct. 2019.

M. A. Khan and K. Salah, “IoT security: Review, blockchain solutions, and open challenges,” Future Generation Computer Systems, vol. 82, pp. 395–411, May. 2018.

A. Panarello, N. Tapas, G. Merlino, F. Longo, and A. Puliafito, “Blockchain and IoT integration: A systematic survey,” Sensors, vol. 18, no. 8, Aug. 2018.

A. Reyna, C. Martín, J. Chen, E. Soler, and M. Díaz, “On blockchain and its integration with IoT. Challenges and opportunities,” Future Generation Computer Systems, vol. 88, pp. 173–190, Nov. 2018.

E. Androulaki et al., “Hyperledger Fabric: A distributed operating system for permissioned blockchains,” in Proceedings of the Thirteenth EuroSys Conference, Apr. 2018, pp. 1–15.

P. Thakkar, S. Nathan and B. Viswanathan, “Performance Benchmarking and Optimizing Hyperledger Fabric Blockchain Platform,” 2018 IEEE 26th International Symposium on Modeling, Analysis, and Simulation of Computer and Telecommunication Systems (MASCOTS), Milwaukee, WI, USA, 2018, pp. 264–276.

T. Abid et al., “A novel IoT threat detection using GWO feature selection and CNN-enhanced LightGBM,” Journal of Cloud Computing, vol. 14, Nov. 2025.

M. A. Ferrag, L. Maglaras, S. Moschoyiannis, H. Janicke, “Deep learning for cyber security intrusion detection: Approaches, datasets, and comparative study,” Journal of Information Security and Applications,” vol. 50, Feb. 2020.

O. Alkadi, N. Moustafa, B. Turnbull, and K. -K. R. Choo, “A deep blockchain framework-enabled collaborative intrusion detection for protecting IoT and cloud networks,” in IEEE Internet of Things Journal, vol. 8, no. 12, pp. 9463–9472, Jun. 2021.

M. Kamal, M. Tariq, M. A. Jan and H. H. Song, “Blockchain-enabled secure distributed event logging in the Industrial Internet of Things,” in IEEE Internet of Things Journal, vol. 11, no. 15, pp. 25464–25470, Aug. 2024.

B. Putz, F. Menges, and G. Pernul, “A secure and auditable logging infrastructure based on a permissioned blockchain,” Computers & Security, vol. 87, Nov. 2019.

G. Adele, A. Borah, A. Paranjothi, M. S. Khan and V. K. Poulkov, “A comprehensive systematic review of blockchain-based intrusion detection systems,” 2024 IEEE World AI IoT Congress (AIIoT), Seattle, WA, USA, 2024, pp. 605–611.

B. Laurie, E. Messeri, and R. Stradling, “RFC 9162: Certificate transparency version 2.0,” Internet Engineering Task Force, Dec. 2021.

I. Sharafaldin, A. H. Lashkari and A. A. Ghorbani, “Toward generating a new intrusion detection dataset and intrusion traffic characterization,” 4th International Conference on Information Systems Security and Privacy, 2018, pp. 108–116.

A. Khacha, R. Saadouni, Y. Harbi, C. Gherbi, S. Harous, and Z. Aliouat, “Robust intrusion detection for IoT networks: An integrated CNN-LSTM-GRU approach,” 2023 International Conference on Networking and Advanced Systems (ICNAS), Algiers, Algeria, 2023, pp. 1–6.

H. H. Pajooh, M. Rashid, F. Alam, S. Demidenko, “Hyperledger fabric blockchain for securing the edge Internet of Things,” Sensors, vol. 21, no. 2, Jan. 2021.

D. Ma and G. Tsudik, “A new approach to secure logging,” ACM Transactions on Storage, vol. 5, no. 1, pp. 1–21, Mar. 2009.

S. A. Crosby and D. S. Wallach, “Efficient data structures for tamper-evident logging,” in Proceedings of the 18th USENIX Security Symposium, 2009, pp. 317–334.

C. Wang and X. Chu, “Performance Characterization and Bottleneck Analysis of Hyperledger Fabric,” 2020 IEEE 40th International Conference on Distributed Computing Systems (ICDCS), Singapore, Singapore, 2020, pp. 1281–1286.

T. Guggenberger, J. Sedlmeir, G. Fridgen, and A. Luckow, “An in-depth investigation of the performance characteristics of Hyperledger Fabric,” Computers & Industrial Engineering, vol. 173, Nov. 2022.

D. Ongaro and J. Ousterhout, “In search of an understandable consensus algorithm,” in the Proceedings of USENIX Annual Technical Conference, 2014, pp. 305–319.

A. Barger, Y. Manevich, H. Meir and Y. Tock, “A Byzantine Fault-Tolerant Consensus Library for Hyperledger Fabric,” 2021 IEEE International Conference on Blockchain and Cryptocurrency (ICBC), Sydney, Australia, 2021, pp. 1–9.

M. Castro and B. Liskov, “Practical Byzantine fault tolerance,” in Proceedings of the Third Symposium on Operating Systems Design and Implementation (OSDI), 1999, pp. 173–186.

A. Josang and R. Ismail, “The beta reputation system,” Proceedings of the 15th Bled Electronic Commerce Conference, Jun. 2002, pp. 2502–2511.

G. Fortino, F. Messina, D. Rosaci and G. M. L. Sarné, “Using blockchain in a reputation-based model for grouping agents in the Internet of Things,” in IEEE Transactions on Engineering Management, vol. 67, no. 4, pp. 1231–1243, Nov. 2020.

A. Sharma, E. S. Pilli, A. P. Mazumdar, and P. Gera, “Towards trustworthy Internet of Things: A survey on Trust Management applications and schemes,” Computer Communications, vol. 160, pp. 475–493, Jul. 2020.

Y. Chae, L. C. DiPippo and Y. L. Sun, “Trust management for defending on-off attacks,” in IEEE Transactions on Parallel and Distributed Systems, vol. 26, no. 4, pp. 1178–1191, Apr. 2015.

Canadian Institute for Cybersecurity, “CIC IoT dataset 2023,” University of New Brunswick.

C. R. Harris et al., “Array programming with NumPy,” Nature, vol. 585, pp. 357–362, Sept. 2020.

F. Pedregosa et al., “Scikit-learn: Machine learning in Python,” Journal of Machine Learning Research, vol. 12, pp. 2825–2830, 2011.

V. Costan and S. Devadas, “Intel SGX explained,” Cryptology ePrint Archive, Rep. 2016/086, 2016.

S. Pinto and N. Santos, “Demystifying arm TrustZone: A comprehensive survey,” ACM Computing Surveys, vol. 51, no. 6, pp. 1–36, Jan. 2019.

Published

2026-11-25