Abstract
With the continuous development of distributed technology, blockchain has been widely applied to solve practical problems in various fields. Its advantages such as decentralization and non-tamperability perfectly meet the needs of permanent query of traceability scene information, and can solve the trust problem of multi-party participation in various links. At the same time, as data security has received more and more attention, the privacy protection and permission control of “on-chain” data need to be resolved. Medical data records are very valuable and sensitive data. Reliable storage and credible traceability are of great significance to the health of patients and the long-term development of medical undertakings. To issue the above problems, here, we propose a secure medical data traceability system that combines data desensitization and attribute-based encryption algorithms to achieve the traceability capabilities and ensure the reliable storage of medical data records on blockchain. Data desensitization provides a certain degree of security for sensitive data involving personal information in medical data. The introduction of attribute encryption has solved the problem of unauthorized access to data. Finally, we analyzed the security of the solution and verify the efficiency of the program.
Introduction
Medical data represents a high-value, high-sensitivity asset. Its lifecycle often involves multiple parties—hospitals, transport services, and laboratories—creating significant risks for both interactive leakage (disclosure during sharing) and non-interactive leakage (internal misuse or theft). While blockchain technology offers an immutable "audit trail" ideal for traceability, its inherent transparency is a double-edged sword: storing raw medical data on a public or even consortium ledger can violate patient privacy.
This paper addresses the challenge of balancing permanent, unchangeable records with the legal and ethical requirements for strict data confidentiality. We propose a secure medical data traceability system that integrates Hyperledger Fabric blockchain with reversible data desensitization and Ciphertext-Policy Attribute-Based Encryption (CP-ABE) to enable fine-grained, logic-based access controls.
System Architecture and Methodology
The proposed system utilizes a multi-layered security architecture designed to protect data at every stage of the medical supply chain. The core components include:
- Blockchain Layer (Hyperledger Fabric): Acts as the decentralized ledger to record every step of the medical process. This is particularly critical for complex treatments like Chimeric Antigen Receptor T-cell (CAR-T) therapy, where a patient's cells are extracted, genetically modified in a factory, and returned for infusion. Any break in the chain of custody or temperature control can be fatal.
- Reversible Data Desensitization: Before data is encrypted, sensitive identifiers (e.g., ID numbers, phone numbers) undergo a reversible transformation based on Abelian group mathematics. This ensures that even if a user has access to a record, they only see masked data unless they possess specific secondary authorization.
- Ciphertext-Policy Attribute-Based Encryption (CP-ABE): This is the core of the access control mechanism. Instead of encrypting data for a specific individual, the data owner defines an access policy (e.g.,
(Doctor AND Hospital_A) OR (Quality_Inspector AND Factory_B)). Only users whose cryptographic attributes satisfy this logic can decrypt the symmetric key required to view the raw data.
By combining desensitization with encryption, the system provides "defense in depth." Even if a visitor’s identity is verified as legal, the most sensitive private data remains masked unless a second level of authorization is granted. This naturally supports hierarchical protection, where a transport worker can see logistics status and temperature without accessing a patient's full medical history.
Performance Evaluation
To evaluate the feasibility of the system, a prototype was implemented using the jPBC library for pairing-based cryptography on a system running Ubuntu 16.04 LTS. The experiments utilized a standardized data packet size of 128B to simulate typical medical record entries.
The primary metric for evaluation was the computational overhead introduced by the CP-ABE logic. As shown in the results, both encryption and decryption times scale linearly with the number of attributes included in the access policy.
For a complex policy involving 16 attributes, the encryption time was approximately 600ms, and the decryption time was roughly 550ms. These sub-second processing times suggest that the system is performant enough for real-world medical logistics, where such delays are negligible compared to physical transport and laboratory processing times.
Conclusion and Future Work
The proposed system successfully demonstrates that blockchain-based traceability can be achieved without compromising patient privacy. By integrating reversible desensitization with CP-ABE, the system ensures that sensitive data is only accessible to those who meet specific, pre-defined criteria.
A significant hurdle for future optimization is Attribute Revocation. In dynamic environments like hospitals, staff roles change frequently. Ensuring that attributes can be revoked immediately to prevent unauthorized access remains a key area for further research. Additionally, future iterations will explore the performance impact of larger medical files, such as high-resolution diagnostic imaging, on the current architecture.
Summary updated