ChainGuard: A Blockchain and IoT-Augmented Framework for Real-Time Database Integrity Assurance in Distributed Healthcare Information Systems
DOI:
https://doi.org/10.63646/QPTN6140Keywords:
Blockchain, database integrity, IoT, healthcare informatics, tamper detection, smart contracts, distributed systems, anomaly detection, GDPR compliance, HIPAAAbstract
The integrity of distributed healthcare databases is continuously threatened by unauthorized modifications, hardware faults, software vulnerabilities, and increasingly sophisticated cyberattacks. Traditional relational and NoSQL database systems rely on centralized access-control mechanisms and periodic audit logs that cannot provide cryptographic proof of unaltered history or real-time anomaly detection. This paper presents ChainGuard, a novel middleware framework that integrates Ethereum-based smart contracts, a network of IoT integrity-sensing nodes, and an AI-powered anomaly classifier to provide end-to-end, tamper-evident integrity assurance for distributed healthcare information systems. ChainGuard records SHA-256 hash digests of critical database state snapshots onto a permissioned Ethereum ledger, while a constellation of lightweight IoT agents embedded at database server nodes continuously monitors system-level indicators—I/O throughput, memory bus activity, and cryptographic nonce validation—at ten-second intervals. Deviations from baseline behavior trigger smart-contract-enforced quarantine procedures that freeze suspect transactions and emit verifiable incident records onto the immutable ledger. A Random Forest classifier trained on 12,000 synthetic database-event logs achieves 96.4% accuracy in discriminating legitimate bulk insertions from covert data-tampering attempts. Evaluation across three clinical deployment scenarios demonstrates that ChainGuard reduces mean time to tamper detection from 47 minutes (baseline centralized audit) to 38 seconds, with a false-positive rate of 1.7%. The framework is deployable on existing PostgreSQL and MongoDB infrastructure without schema modification; audit controls were evaluated, while legal conformity was outside the evaluation.
How to Cite
References
Abouelmehdi, K., Beni-Hessane, A., & Khaloufi, H. (2018). Big healthcare data: Preserving security and privacy. Journal of Big Data, 5(1), 1. https://doi.org/10.1186/s40537-017-0110-7
Alam, M., Reaz, M. B. I., & Ali, M. A. M. (2012). A review of smart homes: Past, present, and future. IEEE Transactions on Systems, Man, and Cybernetics, Part C, 42(6), 1190–1203. https://doi.org/10.1109/TSMCC.2012.2189204
Anderson, R. (2020). Security Engineering: A Guide to Building Dependable Distributed Systems (3rd ed.). Wiley. ISBN: 978- 1119642787
Annas, G. J. (2003). HIPAA regulations: A new standard for medical privacy. New England Journal of Medicine, 348(15), 1486–1490. https://doi.org/10.1056/NEJMlim035027
Antonopoulos, A. M., & Wood, G. (2018). Mastering Ethereum: Building Smart Contracts and DApps. O’Reilly Media. ISBN: 978- 1491971949
Atzori, L., Iera, A., & Morabito, G. (2010). The internet of things: A survey. Computer Networks, 54(15), 2787–2805. https://doi.org/10.1016/j.comnet.2010.05.010
Azaria, A., Ekblaw, A., Vieira, T., & Lippman, A. (2016). MedRec: Using blockchain for medical data access and permission management. Proceedings of the 2nd International Conference on Open and Big Data (OBD), 25–30. https://doi.org/10.1109/OBD.2016.11
Bamakan, S. M. H., Moghaddam, S. G., & Manshadi, S. D. (2021). Blockchain-enabled pharmaceutical cold chain: Applications, key challenges, and future trends. Journal of Cleaner Production, 302, 127021. https://doi.org/10.1016/j.jclepro.2021.127021
Bartoletti, M., & Pompianu, L. (2017). An empirical analysis of smart contracts: Platforms, applications, and design patterns. Financial Cryptography and Data Security, 494–509. https://doi.org/10.1007/978-3-319-70278-0_31
Benet, J. (2014). IPFS - Content addressed, versioned, P2P file system. arXiv:1407.3561. https://doi.org/10.48550/arXiv.1407.3561
Bernstein, P. A., & Goodman, N. (1981). Concurrency control in distributed database systems. ACM Computing Surveys, 13(2), 185–221. https://doi.org/10.1145/356842.356846
Bertino, E., & Sandhu, R. (2005). Database security: Concepts, approaches, and challenges. IEEE Transactions on Dependable and Secure Computing, 2(1), 2–19. https://doi.org/10.1109/TDSC.2005.9
Blelloch, G. E. (1989). Scans as primitive parallel operations. IEEE Transactions on Computers, 38(11), 1526–1538. https://doi.org/10.1109/12.42122
Bocek, T., Rodrigues, B. B., Strasser, T., & Stiller, B. (2017). Blockchains everywhere — A use- case of blockchains in the pharma supply-chain. Proceedings ofthe IFIP/IEEE Symposium on Integrated Network and Service Management (IM), 772–777. https://doi.org/10.23919/INM.2017.7987376
Bonomi, F., Milito, R., Zhu, J., & Addepalli, S. (2012). Fog computing and its role in the Internet of things. Proceedings of the First Edition of the MCC Workshop on Mobile Cloud Computing, 13–16. https://doi.org/10.1145/2342509.2342513
Breiman, L. (2001). Random forests. Machine Learning, 45(1), 5–32. https://doi.org/10.1023/A:1010933404324
Buterin, V. (2014). A next-generation smart contract and decentralized application platform. Ethereum White Paper. https://ethereum.org/en/whitepaper/
Chawla, N. V., Bowyer, K. W., Hall, L. O., & Kegelmeyer, W. P. (2002). SMOTE: Synthetic minority over-sampling technique. Journal of Artificial Intelligence Research, 16, 321–357. https://doi.org/10.1613/jair.953
Chodorow, K. (2013). MongoDB: The Definitive Guide (2nd ed.). O’Reilly Media. ISBN: 978- 1449344689
Codd, E. F. (1970). A relational model of data for large shared data banks. Communications of the ACM, 13(6), 377–387. https://doi.org/10.1145/362384.362685
Cugola, G., & Margara, A. (2012). Processing flows of information: From data stream to complex event processing. ACM Computing Surveys, 44(3), 15. https://doi.org/10.1145/2187671.2187677
Dagher, G. G., Mohler, J., Milojkovic, M., & Marella, P. B. (2018). Ancile: Privacy-preserving nframework for access control and interoperability of electronic health records using blockchai technology. Sustainable Cities and Society, 39, 283–297. https://doi.org/10.1016/j.scs.2018.02.014
Din, S., Paul, A., & Rehman, A. (2019). 5G-enabled hierarchical architecture for software-defined intelligent transportation system. Computer Networks, 150, 81–89. https://doi.org/10.1016/j.comnet.2018.12.007
Dunning, T., & Friedman, E. (2014). Time Series Databases: New Ways to Store and Access Data. O’Reilly Media. ISBN: 978- 1491914724
ENISA. (2021). European Union Agency for Cybersecurity Threat Landscape. https://www.enisa.europa.eu/topics/cyber-threats/threats-and-trends
European Parliament. (2016). General Data Protection Regulation (GDPR). Regulation (EU) 2016/679. https://eur-lex.europa.eu/eli/reg/2016/679/oj
Ferraiolo, D. F., Sandhu, R., Gavrila, S., Kuhn, D. R., & Chandramouli, R. (2001). Proposed NIST standard for role-based access control. ACM Transactions on Information and System Security, 4(3), 224–274. https://doi.org/10.1145/501978.501980
Ferretti, S., Ghini, V., Panzieri, F., Pellegrini, M., & Turrini, E. (2010). QoS-aware clouds. Proceedings of the 2010 IEEE 3rd International Conference on Cloud Computing, 321–328. https://doi.org/10.1109/CLOUD.2010.17
Garcia-Molina, H., Ullman, J. D., & Widom, J. (2009). Database Systems: The Complete Book (2nd ed.). Pearson Prentice Hall. ISBN: 978-0131873254
Gomasta, S. S., Dhali, A., Tahlil, T., Anwar, M. M., & Ali, A. M. S. (2023). PharmaChain: Blockchain-based drug supply chain provenance verification system. Heliyon, 9(7), e17957. https://doi.org/10.1016/j.heliyon.2023.e17957
Gray, J., & Reuter, A. (1992). Transaction Processing: Concepts and Techniques. Morgan Kaufmann. ISBN: 978- 1558601901
Gregg, B. (2019). BPF Performance Tools: Linux System and Application Observability. Addison- Wesley Professional. ISBN: 978-0136554820
Griggs, K. N., Ossipova, O., Kohlios, C. P., Baccarini, A. N., Howson, E. A., & Hayajneh, T. (2018). Healthcare blockchain system using smart contracts for secure automated remote patient monitoring. Journal of Medical Systems, 42(7), 130. https://doi.org/10.1007/s10916-018-0982-x
Grinberg, M. (2018). Flask Web Development (2nd ed.). O’Reilly Media. ISBN: 978- 1491991732
Gubbi, J., Buyya, R., Marusic, S., & Palaniswami, M. (2013). Internet of Things (IoT): A vision, architectural elements, and future directions. Future Generation Computer Systems, 29(7), 1645–1660. https://doi.org/10.1016/j.future.2013.01.010
Haerder, T., & Reuter, A. (1983). Principles of transaction-oriented database recovery. ACM Computing Surveys, 15(4), 287–317. https://doi.org/10.1145/289.291
He, H., & Garcia, E. A. (2009). Learning from imbalanced data. IEEE Transactions on Knowledge and Data Engineering, 21(9), 1263–1284. https://doi.org/10.1109/TKDE.2008.239
Hu, J., Xiao, B., & Li, Y. (2020). LSTM-based anomaly detection for database query streams. Information Sciences, 512, 437–456. https://doi.org/10.1016/j.ins.2019.10.003
Kamra, A., & Bertino, E. (2011). Privilege states-based access control for fine-grained intrusion response in database systems. IEEE Transactions on Information Forensics and Security, 6(3), 827–838. https://doi.org/10.1109/TIFS.2011.2128326
Kruse, C. S., Smith, B., Vanderlinden, H., & Nealand, A. (2017). Security techniques for the electronic health records. Journal of Medical Systems, 41(8), 127. https://doi org/10 1007/s10916-017-0778-4. .
Kuo, T. T., Kim, H. E., & Ohno-Machado, L. (2017). Blockchain distributed ledger technologies for biomedical and health care applications. Journal of the American Medical Informatics Association, 24(6), 1211–1220. https://doi.org/10.1093/jamia/ocx068
Lee, Y., Yoon, K., & Park, K. (2021). A comparative study of machine learning algorithms for intrusion detection in imbalanced database environments. Applied Sciences, 11(4), 1428. https://doi.org/10.3390/app11041428
Li, F., Hadjieleftheriou, M., Kollios, G., & Reyzin, L. (2006). Dynamic authenticated index structures for outsourced databases. Proceedings of the 2006 ACM SIGMOD International Conference on Management of Data, 121–132. https://doi.org/10.1145/1142473.1142488
Li, T., Sahu, A. K., Talwalkar, A., & Smith, V. (2020). Federated learning: Challenges, methods, and future directions. IEEE Signal Processing Magazine, 37(3), 50–60. https://doi.org/10.1109/MSP.2020.2975749
Liang, X., Shetty, S., Tosh, D., Kamhoua, C., Kwiat, K., & Njilla, L. (2017). ProvChain: A blockchain-based data provenance architecture in cloud environment with enhanced privacy and availability. Proceedings of the 17th IEEE/ACM International Symposium on Cluster, Cloud and Grid Computing (CCGRID), 468–477. https://doi.org/10.1109/CCGRID.2017.8
Louppe, G., Wehenkel, L., Sutera, A., & Geurts, P. (2013). Understanding variable importances in Forests of randomized trees. Advances in Neural Information Processing Systems, 26, 431– 439. https://proceedings.neurips.cc/paper/2013/hash/e3796ae838835da0b6f6ea37bcf8bcb5- Abstract.html
Luu, L., Chu, D. H., Olickel, H., Saxena, P., & Hobor, A. (2016). Making smart contracts smarter. Proceedings of the 2016 ACM SIGSAC Conference on Computer and Communications Security, 254–269. https://doi.org/10.1145/2976749.2978309
Mathew, S., Petropoulos, M., Ngo, H. Q., & Upadhyaya, S. (2010). A data-centric approach to insider attack detection in database systems. International Symposium on Recent Advances in Intrusion Detection (RAID), 382–401. https://doi.org/10.1007/978-3-642-15512-3_20
Matsakis, N. D., & Klock, F. S. (2014). The Rust language. ACM SIGAda Ada Letters, 34(3), 103 104. https://doi.org/10.1145/2692956.2663188
McMahan, B., Moore, E., Ramage, D., Hampson, S., & y Arcas, B. A. (2017). Communication- efficient learning of deep networks from decentralized data. Proceedings of the 20th International Conference on Artificial Intelligence and Statistics (AISTATS), 1273–1282. http://proceedings.mlr.press/v54/mcmahan17a.html
Mell, P., & Grance, T. (2011). The NIST Definition of Cloud Computing. NIST Special Publication 800-145. https://doi.org/10.6028/NIST.SP.800-145
Merkle, R. C. (1987). A digital signature based on a conventional encryption function. Crypto’87 Lecture Notes. https://doi.org/10.1007/3-540-48184-2_32
nMerkle, R. C. (1988). A digital signature based on a conventional encryption function. Advances i Cryptology — CRYPTO’87, 369–378. https://doi.org/10.1007/3-540-48184-2_32
Mohan, C., Haderle, D., Lindsay, B., Pirahesh, H., & Schwarz, P. (1992). ARIES: A transaction recovery method supporting fine-granularity locking and partial rollbacks using write-ahead logging. ACM Transactions on Database Systems, 17(1), 94–162. https://doi.org/10.1145/128765.128770
Momjian, B. (2001). PostgreSQL: Introduction and Concepts (Vol. 192, p. 2001). New York: Addison-Wesley.
Nakamoto, S. (2008). Bitcoin: A peer-to-peer electronic cash system. White Paper. https://bitcoin.org/bitcoin.pdf
OpenZeppelin. (2023). OpenZeppelin Contracts: Transparent Upgradeable Proxy. https://docs.openzeppelin.com/contracts/4.x/api/proxy
Patcha, A., & Park, J. M. (2007). An overview of anomaly detection techniques: Existing solutions and latest technological trends. Computer Networks, 51(12), 3448–3470. https://doi.org/10.1016/j.comnet.2007.02.001
Pedregosa, F., Varoquaux, G., Gramfort, A., Michel, V., Thirion, B., Grisel, O., & Duchesnay, E. (2011). Scikit-learn: Machine learning in Python. Journal of Machine Learning Research, 12, 2825–2830. https://jmlr.csail.mit.edu/papers/v12/pedregosa11a.html
Peng, Y., Kou, G., Wang, G., Wu, W., & Shi, Y. (2023). Ensemble of software defect predictors: An AHP-based evaluation method. International Journal of Information Technology & Decision Making, 10(1), 187–206. https://doi.org/10.1142/S0219622011004282
Pinata. (2023). Pinata IPFS API Documentation. https://docs.pinata.cloud/
Preneel, B. (2010). The first 30 years of cryptographic hash functions and the NIST SHA-3 competition. Topics in Cryptology – CT-RSA 2010, 6033, 1–22. https://doi.org/10.1007/978-3-642-11925-5_1
Ramakrishnan, R., & Gehrke, J. (2003). Database Management Systems (3rd ed.). McGraw-Hill. ISBN: 978-0072465631
Rescorla, E. (2018). The Transport Layer Security (TLS) Protocol Version 1.3. RFC 8446. https://doi.org/10.17487/RFC8446
Robinson, I., Webber, J., & Eifrem, E. (2015). Graph Databases: New Opportunities for Connected Data (2nd ed.). O’Reilly Media. ISBN: 978- 1491930892
Saberi, S., Kouhizadeh, M., Sarkis, J., & Shen, L. (2019). Blockchain technology and its relationships to sustainable supply chain management. International Journal of Production Research, 57(7), 2117–2135. https://doi.org/10.1080/00207543.2018.1533261
Sallam, A., Bertino, E., Hussain, S. R., Landers, D., Lefler, R. M., & Steiner, D. (2015). DBSAFE — An anomaly detection system to protect databases from exfiltration attempts. IEEE Systems Journal, 9(4), 1150–1163. https://doi.org/10.1109/JSYST.2014.2350071
Sandhu, R. S., Coyne, E. J., Feinstein, H. L., & Youman, C. E. (1996). Role-based access control models. Computer, 29(2), 38–47. https://doi.org/10.1109/2.485845
Sasson, E. B., Chiesa, A., Garman, C., Green, M., Miers, I., Tromer, E., & Virza, M. (2014). Zerocash: Decentralized anonymous payments from Bitcoin. IEEE Symposium on Security and Privacy, 459–474. https://doi.org/10.1109/SP.2014.36
Shi, W., Cao, J., Zhang, Q., Li, Y., & Xu, L. (2016). Edge computing: Vision and challenges. IEEE Internet of Things Journal, 3(5), 637–646. https://doi.org/10.1109/JIOT.2016.2579198
Stonebraker, M. (1987). The design of the POSTGRES storage system. Proceedings of the 13th International Conference on Very Large Databases (VLDB), 289–300.
Stonebraker, M., & Rowe, L. A. (1986). The design of Postgres. ACM Sigmod Record, 15(2), 340- 355.
Tang, D. (2010). Disk failures in the real world: What does an MTTF of 1,000,000 hours mean to you? FAST Conference Proceedings, 1–9. https://www.usenix.org/legacy/events/fast07/tech/tang.html
Tian, F. (2016). An agri-food supply chain traceability system for China based on RFID & blockchain technology. Proceedings of the 13th International Conference on Service Systems and Service Management (ICSSSM), 1–6. https://doi.org/10.1109/ICSSSM.2016.7538424
Tian, F. (2017). A supply chain traceability system for food safety based on HACCP, blockchain & Internet of things. Proceedings of the International Conference on Service Systems and Service Management (ICSSSM), 1–6. https://doi.org/10.1109/ICSSSM.2017.7996119
Tikhomirov, S., Voskresenskaya, E., Ivanitskiy, I., Takhaviev, R., Marchenko, E., & Alexandrov, Y. (2018). SmartCheck: Static analysis of Ethereum smart contracts. Proceedings of the 1st International Workshop on Emerging Trends in Software Engineering for Blockchain, 9–16. https://doi.org/10.1145/3194113.3194115
U.S. Department of Health and Human Services. (2013). HIPAA Security Rule. 45 CFR Parts 160 and 164. https://www.hhs.gov/hipaa/for-professionals/security/index.html
Voigt, P., & Von dem Bussche, A. (2017). The EU General Data Protection Regulation (GDPR): A Practical Guide. Springer. https://doi.org/10.1007/978-3-319-57959-7
Wei, L., Al-Rashidi, F., & Krishnamurthy, A. (2026). ChainGuard: A Blockchain-and IoT- Augmented Framework for Real-Time Database Integrity Assurance in Distributed Healthcare Information Systems. DATAMIND, 4(1), 6-24.
Wood, G. (2014). Ethereum: A secure decentralised generalised transaction ledger. Ethereum Yellow Paper. https://ethereum.github.io/yellowpaper/paper.pdf
WHO. (2022). Global Benchmarking Tool for Evaluation of National Regulatory Systems. WHO Press. https://doi.org/10.2307/j.ctv2b7pbkh
Xia, Q., Sifah, E. B., Asamoah, K. O., Gao, J., Du, X., & Guizani, M. (2017). MeDShare: Trust- less medical data sharing among cloud service providers via blockchain. IEEE Access, 5, 14757–14767. https://doi.org/10.1109/ACCESS.2017.2730843
Xia, Q., Sifah, E. B., Smahi, A., Amofa, S., & Zhang, X. (2017). BBDS: Blockchain-based data sharing for electronic medical records in cloud environments. Information, 8(2), 44. https://doi.org/10.3390/info8020044
Ye, Z., Chen, J., Shao, Z., Bao, L., Yang, X., & Liu, Z. (2025). SolContractEval: A Benchmark for Evaluating Contract-Level Solidity Code Generation. 2025 40th IEEE/ACM International Conference on Automated Software Engineering (ASE), 2858–2869. https://doi.org/10.1109/ase63991.2025.00235
Zheng, Z., Xie, S., Dai, H., Chen, X., & Wang, H. (2018). Blockchain challenges and opportunities: A survey. International Journal of Web and Grid Services, 14(4), 352–375. https://doi.org/10.1504/IJWGS.2018.095647







