scieee AI-readable full text Open interactive document viewer

Repositorio Institucional de Documentos

Abstract

El paradigma de m-Salud (salud móvil) aboga por la integración masiva de las más avanzadas tecnologías de comunicación, red móvil y sensores en aplicaciones y sistemas de salud, para fomentar el despliegue de un nuevo modelo de atención clínica centrada en el usuario/paciente. Este modelo tiene por objetivos el empoderamiento de los usuarios en la gestión de su propia salud (p.ej. aumentando sus conocimientos, promocionando estilos de vida saludable y previniendo enfermedades), la prestación de una mejor tele-asistencia sanitaria en el hogar para ancianos y pacientes crónicos y una notable disminución del gasto de los Sistemas de Salud gracias a la reducción del número y la duración de las hospitalizaciones. No obstante, estas ventajas, atribuidas a las aplicaciones de m-Salud, suelen venir acompañadas del requisito de un alto grado de disponibilidad de la información biomédica de sus usuarios para garantizar una alta calidad de servicio, p.ej. fusionar varias señales de un usuario para obtener un diagnóstico más preciso. La consecuencia negativa de cumplir esta demanda es el aumento directo de las superficies potencialmente vulnerables a ataques, lo que sitúa a la seguridad (y a la privacidad) del modelo de m-Salud como factor crítico para su éxito. Como requisito no funcional de las aplicaciones de m-Salud, la seguridad ha recibido menos atención que otros requisitos técnicos que eran más urgentes en etapas de desarrollo previas, tales como la robustez, la eficiencia, la interoperabilidad o la usabilidad. Otro factor importante que ha contribuido a retrasar la implementación de políticas de seguridad sólidas es que garantizar un determinado nivel de seguridad implica unos costes que pueden ser muy relevantes en varias dimensiones, en especial en la económica (p.ej. sobrecostes por la inclusión de hardware extra para la autenticación de usuarios), en el rendimiento (p.ej. reducción de la eficiencia y de la interoperabilidad debido a la integración de elementos de seguridad) y en la usabilidad (p.ej. configuración más complicada de dispositivos y aplicaciones de salud debido a las nuevas opciones de seguridad). Por tanto, las soluciones de seguridad que persigan satisfacer a todos los actores del contexto de m-Salud (usuarios, pacientes, personal médico, personal técnico, legisladores, fabricantes de dispositivos y equipos, etc.) deben ser robustas y al mismo tiempo minimizar sus costes asociados. Esta Tesis detalla una propuesta de seguridad, compuesta por cuatro grandes bloques interconectados, para dotar de seguridad a las arquitecturas de m-Salud con unos costes reducidos. El primer bloque define un esquema global que proporciona unos niveles de seguridad e interoperabilidad acordes con las características de las distintas aplicaciones de m-Salud. Este esquema está compuesto por tres capas diferenciadas, diseñadas a la medidas de los dominios de m-Salud y de sus restricciones, incluyendo medidas de seguridad adecuadas para la defensa contra las amenazas asociadas a sus aplicaciones de m-Salud. El segundo bloque establece la extensión de seguridad de aquellos protocolos estándar que permiten la adquisición, el intercambio y/o la administración de información biomédica -- por tanto, usados por muchas aplicaciones de m-Salud -- pero no reúnen los niveles de seguridad detallados en el esquema previo. Estas extensiones se concretan para los estándares biomédicos ISO/IEEE 11073 PHD y SCP-ECG. El tercer bloque propone nuevas formas de fortalecer la seguridad de los tests biomédicos, que constituyen el elemento esencial de muchas aplicaciones de m-Salud de carácter clínico, mediante codificaciones novedosas. Finalmente el cuarto bloque, que se sitúa en paralelo a los anteriores, selecciona herramientas genéricas de seguridad (elementos de autenticación y criptográficos) cuya integración en los otros bloques resulta idónea, y desarrolla nuevas herramientas de seguridad, basadas en señal -- embedding y keytagging --, para reforzar la protección de los test biomédicos. The paradigm of m-Health (mobile health) advocates for the massive integration of advanced mobile communications, network and sensor technologies in healthcare applications and systems to foster the deployment of a new, user/patient-centered healthcare model enabling the empowerment of users in the management of their health (e.g. by increasing their health literacy, promoting healthy lifestyles and the prevention of diseases), a better home-based healthcare delivery for elderly and chronic patients and important savings for healthcare systems due to the reduction of hospitalizations in number and duration. It is a fact that many m-Health applications demand high availability of biomedical information from their users (for further accurate analysis, e.g. by fusion of various signals) to guarantee high quality of service, which on the other hand entails increasing the potential surfaces for attacks. Therefore, it is not surprising that security (and privacy) is commonly included among the most important barriers for the success of m-Health. As a non-functional requirement for m-Health applications, security has received less attention than other technical issues that were more pressing at earlier development stages, such as reliability, eficiency, interoperability or usability. Another fact that has contributed to delaying the enforcement of robust security policies is that guaranteeing a certain security level implies costs that can be very relevant and that span along diferent dimensions. These include budgeting (e.g. the demand of extra hardware for user authentication), performance (e.g. lower eficiency and interoperability due to the addition of security elements) and usability (e.g. cumbersome configuration of devices and applications due to security options). Therefore, security solutions that aim to satisfy all the stakeholders in the m-Health context (users/patients, medical staff, technical staff, systems and devices manufacturers, regulators, etc.) shall be robust and, at the same time, minimize their associated costs. This Thesis details a proposal, composed of four interrelated blocks, to integrate appropriate levels of security in m-Health architectures in a cost-efcient manner. The first block designes a global scheme that provides different security and interoperability levels accordingto how critical are the m-Health applications to be implemented. This consists ofthree layers tailored to the m-Health domains and their constraints, whose security countermeasures defend against the threats of their associated m-Health applications. Next, the second block addresses the security extension of those standard protocols that enable the acquisition, exchange and/or management of biomedical information | thus, used by many m-Health applications | but do not meet the security levels described in the former scheme. These extensions are materialized for the biomedical standards ISO/IEEE 11073 PHD and SCP-ECG. Then, the third block proposes new ways of enhancing the security of biomedical standards, which are the centerpiece of many clinical m-Health applications, by means of novel codings. Finally the fourth block, with is parallel to the others, selects generic security methods (for user authentication and cryptographic protection) whose integration in the other blocks results optimal, and also develops novel signal-based methods (embedding and keytagging) for strengthening the security of biomedical tests. The layer-based extensions of the standards ISO/IEEE 11073 PHD and SCP-ECG can be considered as robust, cost-eficient and respectful with their original features and contents. The former adds no attributes to its data information model, four new frames to the service model |and extends four with new sub-frames|, and only one new sub-state to the communication model. Furthermore, a lightweight architecture consisting of a personal health device mounting a 9 MHz processor and an aggregator mounting a 1 GHz processor is enough to transmit a 3-lead electrocardiogram in real-time implementing the top security layer. The extra requirements associated to this extension are an initial configuration of the health device and the aggregator, tokens for identification/authentication of users if these devices are to be shared and the implementation of certain IHE profiles in the aggregator to enable the integration of measurements in healthcare systems. As regards to the extension of SCP-ECG, it only adds a new section with selected security elements and syntax in order to protect the rest of file contents and provide proper role-based access control. The overhead introduced in the protected SCP-ECG is typically 2{13 % of the regular file size, and the extra delays to protect a newly generated SCP-ECG file and to access it for interpretation are respectively a 2{10 % and a 5 % of the regular delays. As regards to the signal-based security techniques developed, the embedding method is the basis for the proposal of a generic coding for tests composed of biomedical signals, periodic measurements and contextual information. This has been adjusted and evaluated with electrocardiogram and electroencephalogram-based tests, proving the objective clinical quality of the coded tests, the capacity of the coding-access system to operate in real-time (overall delays of 2 s for electrocardiograms and 3.3 s for electroencephalograms) and its high usability. Despite of the embedding of security and metadata to enable m-Health services, the compression ratios obtained by this coding range from ' 3 in real-time transmission to ' 5 in offline operation. Complementarily, keytagging permits associating information to images (and other signals) by means of keys in a secure and non-distorting fashion, which has been availed to implement security measures such as image authentication, integrity control and location of tampered areas, private captioning with role-based access control, traceability and copyright protection. The tests conducted indicate a remarkable robustness-capacity tradeoff that permits implementing all this measures simultaneously, and the compatibility of keytagging with JPEG2000 compression, maintaining this tradeoff while setting the overall keytagging delay in only ' 120 ms for any image size | evidencing the scalability of this technique. As a general conclusion, it has been demonstrated and illustrated with examples that there are various, complementary and structured manners to contribute in the implementation of suitable security levels for m-Health architectures with a moderate cost in budget, performance, interoperability and usability. The m-Health landscape is evolving permanently along all their dimensions, and this Thesis aims to do so with its security. Furthermore, the lessons learned herein may offer further guidance for the elaboration of more comprehensive and updated security schemes, for the extension of other biomedical standards featuring low emphasis on security or privacy, and for the improvement of the state of the art regarding signal-based protection methods and applications. Rubio Martín, Óscar Jesús; Alesanco Iglesias, Álvaro; García Moros, José

Full text

2016 144 Óscar Jesús Rubio Martín Design of a secure architecture for the exchange of biomedical information in m-Health scenarios Departamento Director/es Instituto de Investigación en Ingeniería [I3A] Alesanco Iglesias, Álvaro García Moros, José © Universidad de Zaragoza Servicio de Publicaciones ISSN 2254-7606 Director/es Tesis Doctoral Autor Repositorio de la Universidad de Zaragoza – Zaguan http://zaguan.unizar.es UNIVERSIDAD DE ZARAGOZA Departamento Director/es © Universidad de Zaragoza Servicio de Publicaciones ISSN 2254-7606 Director/es Tesis Doctoral Autor Repositorio de la Universidad de Zaragoza – Zaguan http://zaguan.unizar.es UNIVERSIDAD DE ZARAGOZA Departamento Director/es © Universidad de Zaragoza Servicio de Publicaciones ISSN 2254-7606 Óscar Jesús Rubio Martín DESIGN OF A SECURE ARCHITECTURE FOR THE EXCHANGE OF BIOMEDICAL INFORMATION IN M-HEALTH SCENARIOS Director/es Instituto de Investigación en Ingeniería [I3A] Alesanco Iglesias, Álvaro García Moros, José Tesis Doctoral Autor 2016 Repositorio de la Universidad de Zaragoza – Zaguan http://zaguan.unizar.es UNIVERSIDAD DE ZARAGOZA Departamento Director/es © Universidad de Zaragoza Servicio de Publicaciones ISSN 2254-7606 Director/es Tesis Doctoral Autor Repositorio de la Universidad de Zaragoza – Zaguan http://zaguan.unizar.es UNIVERSIDAD DE ZARAGOZA PhD Dissertation Biomedical Engineering Doctoral Program DESIGN OF A SECURE ARCHITECTURE FOR THE EXCHANGE OF BIOMEDICAL INFORMATION IN M-HEALTH SCENARIOS PhD Candidate: ´ Oscar J. Rubio Mart´ın Advisors: ´ Alvaro Alesanco Iglesias and Jos´e Garc´ıa Moros Arag´on Institute of Engineering Research (I3A) Communications Networks and Information Technologies for E-health and Quality of experience group (CeNITEQ) Zaragoza, December 2015 Dedicado a mis padres, mi hermana y mi novia. Esta Tesis detalla una propuesta de seguridad, compuesta por cuatro grandes bloques interconectados, para dotar de seguridad a las arquitecturas de m-Salud con unos costes reducidos. El primer bloque define un esquema global que proporciona unos niveles de seguridad e interoperabilidad acordes con las caracter´ısticas de las distintas aplicaciones de m-Salud. Este esquema est´a compuesta por tres capas diferenciadas, dise˜nadas a la medidas de los dominios de m-Salud y de sus restricciones, incluyendo medidas de seguridad adecuadas para la defensa contra las amenazas asociadas a sus aplicaciones de m-Salud. El segundo bloque establece la extensi´on de seguridad de aquellos protocolos est´andar que permiten la adquisici´on, el intercambio y/o la administraci´on de informaci´on biom´edica — por tanto, usados por muchas aplicaciones de m-Salud — pero no re´unen los niveles de seguridad detallados en el esquema previo. Estas extensiones se concretan para los est´andares biom´edicos ISO/IEEE 11073 PHD y SCP-ECG. El tercer bloque propone nuevas formas de fortalecer la seguridad de los tests biom´edicos, que constituyen el elemento esencial de muchas aplicaciones de m-Salud de car´acter cl´ınico, mediante codificaciones novedosas. Finalmente el cuarto bloque, que se sit´ua en paralelo a los anteriores, selecciona herramientas de seguridad gen´ericas (elementos de autenticaci´on y criptogr´aficos) cuya integraci´on en los otros bloques resulta id´onea, y desarrolla nuevas herramientas de seguridad, basadas en se˜nal — embedding ykeytagging —, para reforzar la protecci´on de los test biom´edicos. Las extensiones de los est´andares ISO/IEEE 11073 PHD y SCP-ECG, basadas en el modelo de capas, pueden considerarse robustas, eficientes y respetuosas con sus contenidos y caracter´ısticas originales. La primera no a˜nade ning´un nuevo atributo a su modelo de datos, cuatro tramas a su modelo de servicios —otras cuatro son extendidas con nuevas subtramas—, y s´olo un nuevo sub-estado al modelo de comunicaciones. Adem´as, una arquitectura sencilla compuesta por un dispositivo de salud personal equipado con un simple procesador de 9 MHz y un agregador equipado con un procesador de 1 GHz es capaz de transmitir un electrocardiograma de 3 derivaciones en tiempo real utilizando la capa de seguridad m´axima. Los otros requisitos asociados a esta extensi´on son una configuraci´on inicial del dispositivo de salud y del agregador, la instalaci´on de identificadores/autenticadores de usuarios en estos dispositivos si van a compartirse y la implemenataci´on de ciertos perfiles IHE en el agregador para que los datos recogidos puedan integrarse en sistemas de salud. Respecto a la extensi´on del SCP-ECG, ´esta s´olo a˜nade una nueva secci´on con elementos de seguridad y sintaxis para proteger el resto del fichero e implementar un control de acceso basado en roles. El overhead introducido en un fichero SCP-ECG protegido es t´ıpicamente el 2–13% del tama˜no original, y los retardos extra para generar un fichero SCP-ECG protegido y acceder a ´el para su interpretaci´on suponen respectivamente un 2–10% y un 5% de los retardos originales. Respecto a las t´ecnicas de protecci´on basadas en se˜nal, el m´etodo de embedding que se ha desarrollado es la base para la propuesta de una codificaci´on gen´erica para tests compuestos de se˜nales biom´edicas, medidas peri´odicas e informaci´on contextual. Esta codificaci´on ha sido evaluada y espec´ıficamente refinada para tests basados en electrocardiogramas y electroencefalogramas, demostrando que el test codificado mantiene su calidad cl´ınica, que el sistema de codificaci´on-acceso es capaz de funcionar en tiempo real (con retardos totales de 2 s para electrocardiogramas y 3.3 s para electroencefalogramas) y que su interfaz tiene una gran usabilidad. Pese a la introducci´on de elementos de seguridad y metadatos dentro de la se˜nal, para habilitar servicios de m-Salud, se han logrado ratios de compresi´on que van desde ≃3 para transmisi´on en tiempo real hasta ≃5 cuando se funciona offline. Complementariamente, el m´etodo de keytagging permite asociar informaci´on a im´agenes (y otras se˜nales) por medio de llaves, de una manera segura y sin distorsi´on. Estas caracter´ısticas ventajosas han sido aprovechadas para la implementaci´on de varias medidas de seguridad: autenticaci´on de im´agenes, control de integridad y localizaci´on de zonas modificadas sin permiso, asociaci´on de informaci´on con control de roles, trazabilidad y protecci´on de copyright. La evaluaci´on realizada demuestra el notable compromiso robustez-capacidad ofrecido por esta t´ecnica, que permite implementar todas las medidas anteriores simult´aneamente, y su compatibilidad con el sistema de compresi´on JPEG2000, ya que se mantiene el compromiso anterior a la vez que se establece un retardo global de keytagging de s´olo ≃120 ms para cualquier tama˜no de imagen — lo que evidencia su escalabilidad. Como conclusi´on general, se ha demostrado e ilustrado con ejemplos que hay varias formas, complementarias y estructuradas, de contribuir a la implementaci´on de unos niveles de seguridad adecuados para las arquitecturas de m-Salud, con un coste moderado en lo que respecta a econom´ıa, rendimiento, interoperabilidad y usabilidad. El panorama de m-Salud evoluciona constantemente a lo largo de todas sus dimensiones, y esta Tesis pretende hacer lo propio con sus seguridad. Adem´as, las lecciones aqu´ı aprendidas pueden servir de gu´ıa para la elaboraci´on de esquemas de seguridad m´as exhaustivos y actualizados, para la extensi´on de otros est´andares biom´edicos con niveles bajos de seguridad o privacidad, y para el avance del estado del arte de sistemas de protecci´on basados en se˜nal y sus aplicaciones. Abstract The paradigm of m-Health (mobile health) advocates for the massive integration of advanced mobile communications, network and sensor technologies in healthcare applications and systems to foster the deployment of a new, user/patient-centered healthcare model enabling the empowerment of users in the management of their health (e.g. by increasing their health literacy, promoting healthy lifestyles and the prevention of diseases), a better home-based healthcare delivery for elderly and chronic patients and important savings for healthcare systems due to the reduction of hospitalizations in number and duration. It is a fact that many m-Health applications demand high availability of biomedical information from their users (for further accurate analysis, e.g. by fusion of various signals) to guarantee high quality of service, which on the other hand entails increasing the potential surfaces for attacks. Therefore, it is not surprising that security (and privacy) is commonly included among the most important barriers for the success of m-Health. As a non-functional requirement for m-Health applications, security has received less attention than other technical issues that were more pressing at earlier development stages, such as reliability, efficiency, interoperability or usability. Another fact that has contributed to delaying the enforcement of robust security policies is that guaranteeing a certain security level implies costs that can be very relevant and that span along different dimensions. These include budgeting (e.g. the demand of extra hardware for user authentication), performance (e.g. lower efficiency and interoperability due to the addition of security elements) and usability (e.g. cumbersome configuration of devices and applications due to security options). Therefore, security solutions that aim to satisfy all the stakeholders in the m-Health context (users/patients, medical staff, technical staff, systems and devices manufacturers, regulators, etc.) shall be robust and, at the same time, minimize their associated costs. This Thesis details a proposal, composed of four interrelated blocks, to integrate appropriate levels of security in m-Health architectures in a cost-efficient manner. The first block defines a global scheme that provides different security and interoperability levels according to how critical are the m-Health applications to be implemented. This consists of three layers tailored to the m-Health domains and their constraints, whose security countermeasures defend against the threats of their associated m-Health applications. Next, the second block addresses the security extension of those standard protocols that enable the acquisition, exchange and/or management of biomedical information — thus, used by many m-Health applications — but do not meet the security levels described in the former scheme. These extensions are materialized for the biomedical standards ISO/IEEE 11073 PHD and SCP-ECG. Then, the third block proposes new ways of enhancing the security of biomedical standards, which are the centerpiece of many clinical m-Health applications, by means of novel codings. Finally the fourth block, with is parallel to the others, selects generic security methods (for user authentication and cryptographic protection) whose integration in the other blocks results optimal, and also develops novel signal-based methods —embedding and keytagging— for strengthening the security of biomedical tests. The layer-based extensions of the standards ISO/IEEE 11073 PHD and SCP-ECG can be considered as robust, cost-efficient and respectful with their original features and contents. The former adds no attributes to its data information model, four new frames to the service model —and extends four with new sub-frames—, and only one new sub-state to the communication model. Furthermore, a lightweight architecture consisting of a personal health device mounting a 9 MHz processor and an aggregator mounting a 1 GHz processor is enough to transmit a 3-lead electrocardiogram in real-time implementing the top security layer. The extra requirements associated to this extension are an initial configuration of the health device and the aggregator, tokens for identification/authentication of users if these devices are to be shared and the implementation of certain IHE profiles in the aggregator to enable the integration of measurements in healthcare systems. As regards to the extension of SCP-ECG, it only adds a new section with selected security elements and syntax in order to protect the rest of file contents and provide proper role-based access control. The overhead introduced in the protected SCP-ECG is typically 2–13 % of the regular file size, and the extra delays to protect a newly generated SCP-ECG file and to access it for interpretation are respectively a 2–10 % and a 5 % of the regular delays. As regards to the signal-based security techniques developed, the embedding method is the basis for the proposal of a generic coding for tests composed of biomedical signals, periodic measurements and contextual information. This has been adjusted and evaluated with electrocardiogram and electroencephalogram-based tests, proving the objective clinical quality of the coded tests, the capacity of the coding-access system to operate in real-time (overall delays of 2 s for electrocardiograms and 3.3 s for electroencephalograms) and its high usability. Despite of the embedding of security and metadata to enable m-Health services, the compression ratios obtained by this coding range from ≃3 in real-time transmission to ≃5 in offline operation. Complementarily, keytagging permits associating information to images (and other signals) by means of keys in a secure and non-distorting fashion, which has been availed to implement security measures such as image authentication, integrity control and location of tampered areas, private captioning with role-based access control, traceability and copyright protection. The tests conducted indicate a remarkable robustness-capacity tradeoff that permits implementing all this measures simultaneously, and the compatibility of keytagging with JPEG2000 compression, maintaining this tradeoff while setting the overall keytagging delay in only ≃120 ms for any image size — evidencing the scalability of this technique. As a general conclusion, it has been demonstrated and illustrated with examples that there are various, complementary and structured manners to contribute in the implementation of suitable security levels for m-Health architectures with a moderate cost in budget, performance, interoperability and usability. The m-Health landscape is evolving permanently along all their dimensions, and this Thesis aims to do so with its security. Furthermore, the lessons learned herein may offer further guidance for the elaboration of more comprehensive and updated security schemes, for the extension of other biomedical standards featuring low emphasis on security or privacy, and for the improvement of the state of the art regarding signal-based protection methods and applications. Scientific Contributions Next peer-reviewed scientific publications have been derived from the research of this thesis. Publications in International Journals (JCR indexed) ´ O.J. Rubio,´ A. Alesanco, and J. Garc´ıa, “Introducing keytagging, a novel technique for the protection of medical image-based tests”, Journal of Biomedical Informatics, vol. 56, no. 0, pp. 8–29, 2015. ´ O.J. Rubio,´ A. Alesanco, and J. Garc´ıa, “Secure information embedding into 1D biomedical signals based on SPIHT”, Journal of Biomedical Informatics, vol. 46, no. 4, pp. 653–664, 2013. ´ O.J. Rubio,´ A. Alesanco, and J. Garc´ıa, “A robust and simple security extension for the medical standard SCP-ECG”, Journal of Biomedical Informatics, vol. 46, no. 1, pp. 142–151, 2012. Submitted Publications in International Journals (JCR indexed) ´ O.J. Rubio, J.D. Trigo, ´ A. Alesanco, L. Serrano and J. Garc´ıa, “Analysis of ISO/IEEE 11073 built-in security and its potential IHE-based extensibility”, Journal of Biomedical Informatics. Preparation Publications in International Journals (JCR indexed) J.D. Trigo, ´ O.J. Rubio, Miguel Mart´ınez-Espronceda, ´ A. Alesanco, J. Garc´ıa and L. Serrano, “Building standardized, secure, social-media-based mHealth services”, Journal of Biomedical Informatics. Publications in International Conferences and Proceedings ´ A. Alesanco, ´ O.J. Rubio, E. Cavero, J. Sancho, and J. Garcia, “Secure and com- pact image-based storage format for DICOM multiframe echocardiogram video”, in XIV Mediterranean Conference on Medical and Biological Engineering and Computing (MEDICON), 2016. [Under review] ´ O.J. Rubio,´ A. Alesanco, and J. Garcia, “Secure and efficient coding of biomedical signals, periodic measurements and contextual data in Body Area Networks”, in IEEE Biomedical and Health Informatics (BHI), 2014, June, pp. 231–234. ´ O.J. Rubio,´ A. Alesanco, and J. Garcia, “Seamless integration of watermarks in DICOM images”, in Computing in Cardiology (CinC), 2013, Sept., pp. 25–28. ´ O.J. Rubio,´ A. Alesanco, and J. Garcia, “A security extension for the standard SCPECG based on metadata”, in Computing in Cardiology (CinC), 2012, Sept., pp. 81–84. Publications in National Conferences and Proceedings ´ O.J. Rubio,´ A. Alesanco, and J. Garc´ıa, “Hacia la integraci´on de ISO/IEEE 11073 PHD en IHE,” in XXXII Congreso Anual de la Sociedad Espa˜nola de Ingenier´ıa Biom´edica (CASEIB), 2014, Noviembre. ´ O.J. Rubio,´ A. Alesanco, and J. Garc´ıa, “Extensi´on de seguridad del protocolo SCPECG mediante perfiles de acceso y almacenamiento,” in XXIX Congreso Anual de la Sociedad Espa˜nola de Ingenier´ıa Biom´edica (CASEIB), 2011, Noviembre. Contents 1 Introduction 1 1.1 The m-Health scenario and its security issues ................. 1 1.2 The m-Health architecture ............................ 5 1.2.1 Biomedical data flows and interoperability ............... 7 1.2.2 Biomedical tests coding ......................... 10 1.3 Security trends in m-Health and what can be improved ........... 12 1.3.1 Security in protocols for the exchange of biomedical information . . 12 1.3.2 Signal-based protection ......................... 14 1.3.3 What can be improved? ......................... 20 1.4 Thesis approach, hypothesis and objectives .................. 25 1.5 Research context ................................. 27 1.6 Thesis outline ................................... 28 2 M-Health architectures: Background and proposed guidelines for their security enhancement 29 2.1 Overview of major standards for exchanging biomedical information . . . . 29 2.1.1 IHE & profiles overview ......................... 30 2.1.2 ISO/IEEE 11073 PHD overview .................... 32 2.1.3 SCP-ECG overview ........................... 35 2.1.4 DICOM overview ............................. 40 2.1.5 Related publications on the protection of biomedical standards . . . 45 2.2 Overview of major biomedical signal coding methods ............. 48 2.2.1 Wavelet transform overview ....................... 48 2.2.2 SPIHT overview ............................. 51 2.2.3 JPEG2000 overview ........................... 56 2.2.4 Related publications on signal-based protection ............ 58 2.3 Overview of transport technologies in the m-Health architecture ....... 61 2.4 Legal regulations ................................. 63 2.5 Risk assessment of the m-Health architecture ................. 65 4.1 Operators and notation of the algorithm for coding biomedical tests . . . . 119 4.2 Structure and content of a Recovery Container ................126 4.3 Typical size of the containers in a Secure Frame ...............128 4.4 Bitrate required for the transmission of Coded Test Units including metadata with different elements ...........................133 4.5 Runtime costs involved in the coding and decoding of Coded Test Units . . 134 4.6 Average embedding capacity of Coded Test Units corresponding to various ECG and EEG-based tests ............................135 4.7 Operators and notation of the keytagging algorithm .............145 4.8 Average energy and maximum number of coefficients in the wavelet subbands of the images from the keytagging test set ...............148 4.9 Robustness-capacity test I for keytagging ...................160 4.10 Robustness-capacity test II for keytagging ...................161 4.11 Robustness-capacity test III for keytagging ..................162 4.12 Robustness-capacity test IV for keytagging ..................163 4.13 Specificity test for keytagging ..........................167 4.14 Robustness-capacity test for keytagging when combined with JPEG2000 compression ....................................168 4.15 Runtime cost of keytagging ...........................170 4.16 Recommended parameters to implement various keytagging-based security measures ......................................174 List of Algorithms 1 Coding of biomedical tests as CTU s......................122 2 Decoding of CTU s to biomedical tests .....................123 3 Keytag association ................................152 4 Tag retrieval ...................................153 5 Auxiliary procedures used in keytag association and tag retrieval (I) . . . . 153 5 Auxiliary procedures used in keytag association and tag retrieval (II) . . . . 154 Acronyms 3DES Triple Data Encryption Standard 4G Fourth Generation of mobile telecommunications technology ACM Alert Communication Management profile (IHE) ACR American College of Radiology ANSI American National Standards Institute ASCII American Standard Code for Information Interchange ATNA Audit Trail and Node Authentication profile (IHE) BC Bar Code BCH Bose-Chaudhuri coding BIH Beth Israel Hospital BLE Bluetooth Low Energy BPPC Basic Patient Privacy Consents profile (IHE) BT Bluetooth CBC Cipher Block Chaining CCITT Consultative Committee on International Telegraph and Telephone CCM Counter with CBC-MAC CCOW Clinical Context Object Workgroup CD Concentrator Device CDF Cohen-Daubechies-Feauveau wavelet CDSS Clinical Decision Support Systems CEN European Committee for Standardization CIA Confidentiality, Integrity and Availability CMS Cryptographic Message Syntax CO2 blood Carbon diOxide saturation CoAP Constrained Application Protocol COCIR European Coordination Committee of the Radiological and Electromedical Industry CR Compression Ratio CRC Cyclic Redundancy Cycle CRL Certificate Revocation List CS Consultation System CT Computed Tomography, Consistent Time profile (IHE) CTR Counter CTU Coded Test Unit DCT Discrete Cosine Transform DEC Device Enterprise Communication profile (IHE) DH Diffie-Hellman DHCP Dynamic Host Configuration Protocol DICOM Digital Imaging and COmmunication in Medicine DIM Domain Information Model DNS Domain Name System DS Digital Signature DSA Digital Signature Algorithm DWT Discrete Wavelet Transform ebXML electronic business using eXtensible Markup Language EC Embedding Capacity ECDH Elliptic Curve Diffie-Hellman ECG ElectroCardioGram EEG ElectroEncephaloGram EHR Electronic Health Record EUA Enterprise User Authentication profile (IHE) EUI Extended Unique Identifier FDA U.S. Food and Drug Administration FP Fingerprint FSM Finite State Machine GDPR European General Data Protection Regulation GUI Graphical User Interface HDP Health Device Profile HEVC High Efficiency Video Coding HIPAA Health Insurance Portability and Accountability Act HIS Health Information System HL7 Health Level Seven HL7 Health Level 7 HL7 aECG Health Level Seven Annotated ECG HMAC Hash-based Message Authentication Code HS Host System HSUPA High-Speed Uplink Packet Access HTTP Hypertext Transfer Protocol ICT Information and Communication Technologies, Irreversible Color Transform ID Identifier IEEE Institute of Electrical and Electronics Engineers IMAP Internet Message Access Protocol INR Internation Normalized Ratio IoT Internet of Things IPsec Internet Protocol security ISO International Standards Organization IT Information Technologies ITU-R International Telegraph Union Radiocommunication standardization section IUA Internet User Authorization profile (IHE) JIRA Japan Industries Association of Radiological Systems JPEG Joint Photographic Experts Group JPIP JPEG2000 Interactive Protocol KT Keytag LFSR Linear Feedback Shift Register LIP List of Insignificant Points LIS List of Insignificant Sets LOPD Ley Org´anica de Protecci´on de Datos (Data Protection Act) LSB Least Significant Bits LSP List of Significant Points m-Health mobile Health m-IoT Internet of m-health Things MAC Message Authentication Code MBR Minimum Bounding Rectangle MCAP Multi-Channel Adaptation Protocol MD Message Digest, Medical Device MDER Medical Device Encoding Rules MDS Medical Device System MFER Medical waveform description Format Encoding Rules MHD Mobile access to Health Documents profile (IHE) MIT Massachussetts Institute of Technology MOS Mean Opinion Score MPEG Moving Picture Experts Group MQTT Message Queue Telemetry Transport MRI Magnetic Resonance Image MSSIM Mean Structural SIMilarity index NEMA National Electric Manufacturers Association NFC Near Field Communication NHD Normalized Hamming Distance NiBP Non-invasive Blood Pressure NIST National Institute of Standards and Technology NTP Network Time Protocol OASIS Organization for the Advancement of Structured Information Standards OCSP Online Certificate Status Protocol OOB Out-of-Band (authentication) OS Operating System OUI Organizational Unique Identifier OUP Originator Usage Period PACS Pictures Archiving and Communications Systems PAN Personal Area Network PAT Private Access Table PBC Push-Button Configuration PCD Personal Care Device PDA Personal Digital Assistant PET Positron Emission Tomography PHD Personal Health Device PHDC Personal Healthcare Device Class PHI Personal health information PHMR HL7 Personal Healthcare Monitoring Report PHR Personal Health Records PIN Personal Identification Number PIPEDA Personal Information Protection and Electronic Document Act PIX Patient Identifier Cross Referencing profile (IHE) PM Persistent Metric PRD Percentage RMS Distortion PSNR Peak Signal-to-Noise Ratio QF Quality Factor QR-Code Quick response code RBAC Role-Based Access Control RC Recovery Container RESTful Representational State Transfer RFID Radio Frequency IDentification RFID-T RFID token RIPEMD RACE Integrity Primitive Evaluation Message Digest RLE Run Length Encoding RMS Root Mean Square error RNG Random Number Generator ROI Region of Interest RONI Region/s of Non-Interest RTM Rosetta Terminology Mapping profile (IHE) SAML Security Assertion Markup Language SC Smart Card SCCN Swartz Center for Computational Neuroscience SCP-ECG Standard Communication Protocol for computer-assisted ElectroCardioGraphy SMTP Simple Mail Transfer Protocol SNR Signal-to-Noise Ratio SNTP Simple Network Time Protocol SP Service Provider SPIHT Set Partitioning in Hierarchical Trees SPO2 blood oxygen saturation SSIM Structural SIMilarity index SSL Secure Sockets Layer SVD Singular Value Decomposition Temp body Temperature TLS Transport Layer Security TPHS Third-Party Host System US United States, Ultrasounds USB Universal Serial Bus VCO2 Carbon dioxide production VO2 Maximal oxygen consumption W3C World Wide Web Consortium WCM Waveform Communication Management profile (IHE) Wi-Fi Wireless Fidelity WPA Wi-Fi Protected Access WPS Wi-Fi Protected Setup WT Wavelet Transform WUSB certified Wireless Universal Serial Bus X73PHD ISO/IEEE 11073 Personal Health Devices XACML eXtensible Access Control Markup Language XDS Cross-enterprise Document Sharing profile (IHE) ZHCP Zigbee Health Care Profile “You see, Momo, it’s like this. Sometimes, when you’ve a very long street ahead of you, you think how terribly long it is and feel sure you’ll never get it swept. And then you start to hurry. You work faster and faster and every time you look up there seems to be just as much left to sweep as before, and you try even harder, and you panic, and in the end you’re out of breath and have to stop–and still the street stretches away in front of you. That’s not the way to do it. You must never think of the whole street at once, understand? You must only concentrate on the next step, the next breath, the next stroke of the broom, and the next, and the next. Nothing else. That way you enjoy your work, which is important, because then you make a good job of it. And that’s how it ought to be. And all at once, before you know it, you find you’ve swept the whole street clean, bit by bit. what’s more, you aren’t out of breath.” Michael Ende – Momo 1 Introduction 1.1 The m-Health scenario and its security issues The term e-Health (electronic health) began to spread by 1999 to describe what Prof. Eysenbach defines as [1] “An emerging field in the intersection of medical informatics, public health and business, referring to health services and information delivered or enhanced through the Internet and related technologies. In a broader sense, the term characterizes not only a technical development, but also a state-of-mind, a way of thinking, an attitude, and a commitment for networked, global thinking, to improve health care locally, regionally, and worldwide by using information and communication technology.” This definition can also be portrayed as succinct as mathematical: “e-Health = Medicine + Communication + Information + Society”. This new medical paradigm supplements existing forms of care, create favorable circumstances for strengthening patient engagement [2] and yields clinical improvement [3,4]. This progress is primarily based on the digitization of health records, biomedical measurements (e.g. blood pressure, glucose level, body temperature), signals (e.g. pulse-oximetry, electrocardiograms) and tests (e.g. coronary angiographies, echocardiograms, complemented with contextual data such as the conditions of acquisition, personal data of the patient and relevant parts of his/her clinical history) and the deployment of reliable protocols for its storage and transmission. On top of these pillars, novel ICT-based services, such as telemonitoring [5,6], telediagnosis [7,8], 1 8 1.2. The m-Health architecture Figure 1.2: Turnita’s interoperability model. then adopted by the European Committee for Standardization CEN and the International Standards Organization ISO. They define the landscape of transport-independent m-Health applications and information profiles, which specify data exchange, data representation, and terminology for communication between personal health devices and aggregators. In second place, there are several protocols [75] for the storage and exchange of waveforms, mainly focused on electrocardiograms (ECGs). The most widespread being the Standard Communications Protocol for computer assisted ElectroCardioGraphy (SCP [76], ISO/IEEE 11073-91064:200 standard), the Health Level Seven (HL7 aECG [77], American standard ANSI), the Medical waveform Format Encoding Rules (MFER [78], Japanese standard partially approved by ISO) and the Digital Imaging and COmmunication in Medicine (DICOM Supplement 30 [79], American standard NEMA). They specialize in different use cases (diagnostic examinations, home care, emergency care, etc.) and use different storage formats (binary encoded, XML-based [80]). In third place, there are simple non-standard protocols designed for open-source platforms, e.g. based on Arduino [81] or Raspberry Pi [82], which can gather biomedical measurements and signals from a variety of inexpensive sensors. For the exchange of biomedical information between healthcare entities (intra-HS, HS-medical systems, HS-TPHS interfaces), there are four major alternatives. First, the ISO/EN13606 standard [83], driven by CEN and ISO/IEEE, is able to represent the information included in an EHR in order to achieve the interoperable exchange of EHRs between HS in a semantic interoperable way. Second, Health Level 7 (HL7) [77], founded by American vendors of medical devices and recognized by the American National Standards Institute (ANSI), is an international standard for medical messaging. Its name refers to the fact that it specifies a uniform syntax in the seventh level of the protocol stack. This standard enables information representation in a simple structure of segments, Chapter 1. Introduction 9 data types’ flags, and mapped fields. It is worth highlighting that HL7 works well as a supplement for the Digital Imaging and COmunication in Medicine (DICOM) [79] standard, used by most Picture Archiving and Communications Systems (PACS) for handling, storing, printing, and transmitting information in medical imaging. Third, openEHR [84] is a proposal related with HL7, but based on an open standard specification, which describes the management and storage, retrieval and exchange of data in EHRs. The key feature of openEHR is that all a person’s health data is stored in a “one lifetime”, vendorindependent, person-centered EHR. Last, Personal Health Records (PHRs) are tools whose popularity is growing steadily. PHR systems have been defined [85] as patient/user-centric, longitudinal collections of PHRs administrated primarily by patients/users [86] with interfaces to EHR systems and with capabilities to exchange health-related data between other PHR systems and EHR systems. As the PHR system may be standalone software for PC or mobile platforms, the capacity to store PHRs locally is not excluded. One relevant distinction between PHRs and EHRs is that the former presents the information to the person with a vocabulary that he/she can understand. Among other options, Apple enables PHRs through its HealthKit [87] and Microsoft does by means of HealthVault [88]. Several other initiatives, such as Integrating the Healthcare Enterprise (IHE) or the Continua Health Alliance, have been promoted by various healthcare professionals and technology companies to encourage the coordinated use of the aforementioned standards in m-Health architectures (CD-HS, HS-medical systems, PHD-HS interfaces). These two entities focus mainly on different (albeit related) environments. Integrating the Healthcare Enterprise (IHE) [89] is an organization made up of worldwide manufacturers whose main objective, rather than develop new standards, is to identify specific clinical needs and develop technical guidelines (IHE profiles and technical frameworks) that coordinate the use of well established standards (such as HL7 and DICOM) to address these needs. For instance, IHE defines a profile, the Rosetta Terminology Mapping (RTM), which enables the interpretation of X73PHD terminology —and thus, measurements acquired by X73PHD-compliant devices— in IHE systems, such as PHRs, EHRs, alarm systems or CDSS. It can be said that IHE profiles, like RTM, foster a model for pragmatic interoperability within end-to-end m-Health frameworks. Continua Health Alliance [90], on the other hand, is an open non-profit alliance of several industry-leading technology and health companies whose role is to establish a system of interoperable personal connected health solutions with the knowledge that extending those solutions into the home fosters independence, empowers individuals and provides the opportunity for truly personalized health and wellness management. Continua tends to focus on people, and therefore covers the m-Health domains: fitness monitoring, aging independently and managing chronic disease. Their main goal is to leverage existing standards and to close recognized interoperability gaps by means of their Continua Design Guidelines. Among other standards, 10 1.2. The m-Health architecture Continua endorses the X73PHD standard for medical device interoperability. Apart from technical aspects, a further objective of the alliance is to establish a certification program with a consumer-recognizable logo for the devices. 1.2.2 Biomedical tests coding The core of biomedical tests (e.g. a stress test) are biomedical signals (e.g. an ECG), whose clinical meaning often needs to be complemented with periodic measurements (e.g. body temperature, heart rate, maximal oxygen consumption, carbon dioxide production, speed of the treadmill), medical history and/or contextual information (annotations about the signal, health status of the patient, his/her allergies, medication, etc.). They have a high intrinsic value as enablers of m-Health applications, e.g. for early diagnosis, continuous follow-up and customized care of patients; and, as explained in Section 1.2.1, their exchange by means of well-established standards helps to achieve great interoperability levels. Nonetheless, frameworks with critical energy constraints, such is the case of Body Area Networks (BAN [91]), may not get along with the energy consumption caused by the implementation of standards for the exchange of biomedical information. Their verbosity translates into the demand of extra transmission bandwidth, which causes most of the energy expenditure [92]. As a promising alternative, those frameworks may rather implement a simple biomedical tests coding providing adequate data availability, i.e. comprising secure and efficient storage, exchange and access, to fit the m-Health paradigm. The requirements that such coding shall fulfill may be summarized as: •Information associated to the biomedical signal. Without appropriate data, identifying the signal and enabling its interpretation, biomedical tests may become useless. Therefore, the information in biomedical tests must be arranged as metadata using some data structure and bound to the signal to difficult its lost. •Signal compression. Algorithms for signal compression remove redundancies contained by signals at different levels. These algorithms can be divided into two main categories: lossless, which retrieve the original signal; and lossy, which reach higher compression ratios than lossless at the cost of decreasing signal fidelity. The latter are more interesting since they permit saving much more bandwidth in transmission and space in storage. Nevertheless, in clinical applications the compression ratio must be limited by measurable quality parameters to hold the clinical meaning of the signal and avoid changing its diagnostic interpretation. Among lossy methods, there are three modalities [93]: direct methods (basing their detection of redundancies on direct analysis of the actual signal samples), transformation methods (mainly utilizing spectral and energy distribution analysis for detecting redundancies) and Chapter 1. Introduction 11 parameter extraction techniques (e.g. measurement of the probability distribution, subsequently utilized for classification based on a priori knowledge of the signal features). The second modality (e.g. discrete cosine transform [94], Karhunen-Lo`eve transform [95], wavelets [96], etc.) generally yields better results, especially the wavelets, which provide a time-frequency representation of the signal with varying resolution for fine description in both domains. Furthermore, the wavelet coefficients can also be compressed by exploiting their similarity, as the SPIHT algorithm does [97], in order to increase the final compression ratio. •Security and privacy in storage and during transmission. As explained in Section 1.1, current legal regulations (the HIPAA [48], the PIPEDA [49], the LOPD [51], the Digital Signature Laws in several countries) demand that any personal health information must be protected, using adequate cryptographic means. The basic requirements are (1) encrypting all private data, (2) embedding a digital signature to verify data integrity and authenticate the signatory, and (3) encrypting the communications. When dealing with biomedical signals, researching on partial encryption schemes[98,99,100] may be an interesting manner to reduce operations while maintaining fair privacy levels. In addition to this, steganography [101,102,103] may be used as a complement to introduce security or secret elements silently. Watermarking [104], marking all objects in the same way (e.g. to demonstrate ownership) and fingerprinting [105], marking each object specifically (e.g. to identify legitimate users) are the most typical applications of steganography. •Role-Based Access Control. M-Health services operate in scenarios with a variety of different stakeholders: patients, relatives, paramedics, nurses, primary care doctors/general practitioners, surgeons, medical specialists and subspecialists, teachers and medical students, researchers, laboratories, insurance companies, governmental oversight agencies, and non-governmental oversight. For the same patient, the information that each user is allowed to access must depend on his role: e.g. if the patient has AIDS, the nurses and the paramedics need to know, but probably not the researchers using his/her medical tests. Attribute-level encryption and de-identification are effective ways to overcome this issue. •Low complexity encoding and short access time. Since the current tendency is building portable medical devices and wearable sensors, which often mount low power processors, the algorithms for encoding and protection should be as simple as possible to not overload them with complex calculations and reduce demand on the battery. Besides, fast execution and transmission are requirements to maintain availability of the test at good levels and allow real-time services. 12 1.3. Security trends in m-Health and what can be improved There are many publications approaching these requisites separately, for example [106, 107,108] for signal compression, [109,110] for data embedding into signals and [111, 112,113,114,115] for signal security). Furthermore, there are also proposals to integrate together signal compression and encryption [116,117,118,119,120], compression and embedding [121,122,123,124,125]; encryption and embedding [126,127,128,129, 130,131,132,133]. Nonetheless, the definition of a coding harmonizing compression, embedding and encryption, while guaranteeing signal quality, role-based access control, low complexity and short access times is still an open issue. 1.3 Security trends in m-Health and what can be improved 1.3.1 Security in protocols for the exchange of biomedical information The standardization of security measures has already been promoted by organizations such as IHE, joint committees such as JIRA/NEMA/COCIR and by major standard protocols such as DICOM, which dedicates its Working Group 14 to this issue, and HL7, which has a Security Working Group. As illustrated in Table 1.1, IHE has issued several profiles to address a variety of security and privacy aspects: Audit Trail and Node Authentication [134] to implement auditability and accountability policies, Consistent Time [135], Healthcare Provider Directory (HPD), Document Digital Signature [136], Document Encryption [137], Secure Retrieve [138], Access Control white paper [139], Basic Patient Privacy Consents [140] to enforce privacy policies, Cross-Enterprise User Assertion [141], Internet User Authorization [142], Enterprise User Authentication [143]). DICOM addresses security in its part 15 [144] and through many supplements [145] — 31 (security enhancements), 41 (security enhancements 2 - Digital Signatures), 51 (Media Security), 55 (Attribute Level Confidentiality), 86 (Digital Signatures for Structured Reports), 95 (Audit Trail Messages), 142 (Clinical Trial De-identification Profiles)) cover security based on different secure profiles regarding: use, transport, digital signature and media storage (among others). HL7 has also published several documents about security, notably its Role-based Access Control Healthcare Permission Catalog [146], its Security and Privacy Ontology [147] or its Healthcare Privacy and Security Classification System [148]. The security measures depicted in IHE (Section 2.1.1) and implemented by DICOM (Section 2.1.4) and HL7 rely on standardized cryptographic resources. Essentially on encryption, which may be symmetric or asymmetric; and on hashing, which is found in digital signatures and message authentication codes. The former is used to implement access control policies (enforcing privacy, e.g. by means of Cryptographic Message Syntax, CMS [151]) while the latter is intended for binary integrity control (tampered/non-tampered), Chapter 1. Introduction 13 Table 1.1: Selected IHE profiles, mapped to security and privacy controls hhhhhhhhhhhhhhhhhhhhhhhhh h IHE profiles Security & privacy controls Audit log Identification & authentication Data access control Secrecy Data integrity Non-repudiation Patient privacy Consistent Time [135] (2003) ! - Enterprise User Authentication [143] (2003) ! - - - Audit Trails and Node Authentication [134] (2004) ! ! ! ! ! ! ! Personnel White Pages [149] (2004) ! ! - Document Digital Signature [136] (2005) ! ! ! Cross-Enterprise User Assertion [141] (2006) ! - - - Basic Patient Privacy Consents [140] (2006) - ! Access Control White Pages [139] (2009) ! ! ! Healthcare Provider Directory [150] (2010) ! - - Document Encryption [137] (2011) ! ! - Internet User Authorization [142] (2015) ! ! Secure Retrieve [138] (2015) ! ! authentication and non-repudiation. The main issue in this cryptography-based policies is the difficulty to develop cooperative architectures where different users may edit the biomedical test, e.g. by adding annotations or applying filters for better visualization and diagnosis, while maintaining the validity of the security measures implemented. Any change in the biomedical test invalidates all the previous signatures, and even though new signature may be added, the traceability from the origin will be weakened or lost. An alternative is that each user adds his/her changes to the original test, digitally signs it and delivers the signed updated test to the rest of the users. In this way, the rest of the users can access and/or store the updated test with security, and add new updates from the last test version by following the same procedure. Nonetheless, as the number of users and updates of the test grows, this approach becomes quite impractical in terms of delays, bandwidth and storage. Another limitation, inherent to cryptographic-based approaches, is that the biomedical test (e.g. an image) becomes totally unprotected when extracted from its standard file (e.g. a DICOM file). To date, there are also several protocols that give little consideration to security and privacy issues. X73PHD basically delegates this task on the implementation of a secure transport layer (e.g. Zigbee Health Care Profile or Bluetooth Health Device Profile [152]), which can only authenticate and encrypt the frames exchanged by the personal health devices and the aggregators. No means are provided to authenticate the users 14 1.3. Security trends in m-Health and what can be improved and the legitimacy of personal health devices and aggregators, to attach digital signatures on the measurements/signals acquired or to encrypt the measurements/signals that need to be stored in the personal health devices when the connection with the aggregator is broken. Similarly, in the case of SCP-ECG the lack of security specifications extends from its transmission protocol to its storage policy, neither of them including any sort of protection. Regarding the MFER standard, it does not directly address security, but neither does it include patient data except by means of HL7. Thus, it can thus benefit from HL7 security policies/recommendations. Lastly, the protocols associated to open-source platforms are very simple and its security usually rely on implementing a secure transport layer and on not including any identification of the user, which on the other hand limits its integration with medical systems (e.g. personal and electronic health records). Regarding protocols associated to open-source platforms, they need to implement security to facilitate compliance with m-Health applications, be able to operate in real-time and also optimize its bandwidth (e.g. by coding measurements and signals), since low-power sensors spend most of their energy in transmission [153]. 1.3.2 Signal-based protection The security measures implemented by the aforementioned protocols are strictly based on the application of different cryptographic elements to the biomedical files and/or to the communications between entities. Nonetheless, the addition of signal-based protection techniques, relying on the basis of steganography, has the potential to rise the security and privacy levels of the m-Health architecture. Two related alternatives can be highlighted: generic steganography (also known as embedding or data hiding techniques), which permits including significant amounts of data within biomedical — cover — signals, which silently become stego-signals; and watermarking, an evolution or particular case of steganography which permits binding limited amounts of data to the signals with adjustable strength to implement different security applications — it was originally intended for copyright protection. Table 1.2 summarizes and compares the defining features of steganography, watermarking and encryption. Steganography/embedding/data hiding In the m-Health context, data embedding techniques [154,155,156,157] aim at introducing significant amounts of relevant data and/or security elements into — cover — biomedical signals in an imperceptible, secure and efficient manner. Although in traditional steganography the cover object and the secret data have Chapter 1. Introduction 15 no relation, it is usual in biomedical embedding that cover biomedical signals — 1-D signals (e.g. ECGs, EEGs), images and/or videos — are related with the embedded contents, which may be patient information, codes to enable fast indexing, hashes and digital signatures for integrity control, digital envelopes including protected information, other biomedical signals, QR codes for authentication or linking to valuable data, etc — see [158,159,160,161,162] It is worth noting that the larger the cover biomedical signal, the higher the payload capacity — i.e. biomedical videos (e.g. echocardiograms) can host much more secret data than 1-D signals (e.g. ECGs) of the same duration. Table 1.2: Comparison of steganography, watermarking and encryption in the m-Health context, based on [154] Criterion/ method Steganography Watermarking Encryption Carrier Any digital media Mostly biomedical images, also 1-D signals and videos Usually text based, with some extensions to digital media Secret data Biomedical payload Watermark content (when private) Biomedical plain text/media Key Recommended Optional Necessary Input elements At least two, unless in self-embedding At least two Usually one Detection Blind Usually informative (i.e. original cover or watermark is needed for recovery) Blind Authentication Full retrieval of data Usually achieved by cross correlation Full retrieval of data Main applications Secret captioning or communications Authentication, integrity control, captioning Data protection Result Stego-file Watermarked-file Cipher-text Main concerns Distortion, detectability and capacity Distortion, robustness and detectability Robustness Main attacks Steganalysis Image processing and collusion Cryptanalysis Visibility Never Not usually Always Confidentiality Always Sometimes Always Fails when Detected Removed/replaced and detected when confidential Decrypted Relation to cover Not necessarily related to the cover. The secret data is usually more important. Usually becomes an attribute of the cover, which is more important than the data. N/A Flexibility Free to choose any suitable cover Cover choice is restricted N/A 16 1.3. Security trends in m-Health and what can be improved Regarding embedding methods, several possibilities are available. There are — usually simple — approaches working in the temporal or spatial domain; methods working in transform domains, which take advantage of the frequency decomposition (which is associated to different energy levels) of the image to perform a more transparent and less detectable embedding; and even proposals to hide information in compressed domains to harmonize embedding and compression. In addition to this, a series of approaches work with histograms since certain modification (e.g. controlled shifting) can achieve reversibility. Furthermore, there are techniques based on spread-spectrum principles that permit spreading the secret payload throughout the cover signal. This preserves the statistical properties of the image, which results in good stego signal quality, capacity and security. Similarly, model-based steganography (also known as adaptive steganography and statistics aware steganography) pursues embedding the secret payload without altering the statistical properties of the cover. Although the biomedical embedding of a secret payload in biomedical signals with any of the techniques above will certainly imply some degree of distortion — reversible techniques can remove the distortion only after extracting the embedded content —, the top priority is that its clinical value is not affected. Even if the clinical quality of the signal can be guaranteed in a simple manner, still the application of embedding in the m-Health context presents two noticeable drawbacks. First, these techniques are not specifically designed to endure modifications on the hosting signal, so any person not aware of the embedded data may perform some processing on the signal (e.g. the application of filters) causing the partial or total removal of the data. Second, the integration of embedding in standardized biomedical files is controversial since the standardization requires the thorough and public definition of the elements to be embedded, while the purpose of any steganographic technique is to hide these contents as much as possible. Watermarking General watermarking methods may be applicable to different types of signals, but in the m-Health context watermarking is mainly focused on biomedical images. Nonetheless, the underlying principles of image watermarking techniques can be adapted to 1-D signals, videos, etc. Medical Image Watermarking [163,164] (MIW) techniques enable the embedding of limited amounts of hidden data (e.g. biomedical information, security elements), one or several watermarks, within biomedical images by means of certain image processing and random keys. One of its main differences with respect to data embedding techniques is that the image can be manipulated (e.g. annotated, compressed with JPEG2000 [165], adjusted with different contrast and brightness) by the users without interference in its security — regardless if the user performing the image modifica- Chapter 1. Introduction 17 tions knows about the existence of the watermarks — and that the former enables a good variety of complementary security measures [166,164,167]: •Role-based access control (RBAC), so that each authorized user can read and/or edit certain contents of the image-based test according to his/her professional role, e.g. physician, researcher, teacher, etc. •Integrity control, to detect if the image has been tampered with, which would endanger its clinical value. •Tamper location, pinpointing the areas where the image has been manipulated, which may be helpful to validate images that are modified in permissible areas. •Authentication, assessing if the image received corresponds to the image originally acquired, to an image derived from the original or to an unrelated image. •Private captioning, associating private information with the image, only retrievable by authorized users of the authenticated image. •Traceability control for user accountability, by associating marks from each entity that processes the image. •Copyright protection, to pursue illegal copies if the image has a commercial use. As illustrated in Figure 1.3, the random keys generated for watermarking are symmetrically required to retrieve the embedded data. Regarding the watermarks, there are different types and they may be combined to implement a security policy. Robust watermarks [168], whose content is retrievable even if the image has undergone heavy modifications, may be used for authentication, traceability and copyright protection. Semifragile watermarks [169], whose content is retrievable only if those modifications are mild (e.g. if the image preserves its clinical value), may be used for private captioning — although sometimes are also proposed for integrity control. Moreover, several semifragile watermarks, intended for different users, may be embedded in the same image in order to implement role-based control. Finally, fragile watermarks [170], whose content is retrievable only if the image is intact, may be used to implement integrity control and location of tampered areas in the image — although sometimes are also proposed for captioning and authentication. It is worth highlighting that MIW techniques are required to produce a minimum distortion on the image to preserve its clinical value. In fact, they are often grouped in four categories depending on the manner how they cope with this requirement of high transparency. 24 1.3. Security trends in m-Health and what can be improved Figure 1.5: M-Health architecture intended for simple open-source platforms, based on the efficient and secure coding of biomedical information acquired by several sensors and interfaces. Chapter 1. Introduction 25 1.4 Thesis approach, hypothesis and objectives The general approach of this Thesis is to research and make contributions to the field of ICT applied to the Health area. Nowadays, research results in Communication Technologies and the Information Society are considered strategic. Moreover, the application of these technologies to the Health area through the deployment of secure and cost-efficient m-Health architectures facilitates citizens’ access to a broad variety of services for the prevention, detection, follow-up and research of health conditions. Therefore, investigations in this area are highly relevant thanks to the benefits that users/patients, caregivers, researchers and the whole health system enjoy. Specifically, the focal aim of this Thesis is on designing an architecture that enables the secure exchange of biomedical information in m-Health scenarios —focusing on biomedical tests, mainly comprised by signals that may attach measurements and/or contextual data. This Thesis rests on two fundamental pillars: (a) the investigation on the improvement of the security levels of protocols conducting the standardized storage and/or transmission of biomedical information and (b) the contributions on the development of novel methods for the protection of biomedical tests (e.g. cardiac rest tests) through secure codings based on their associated signals (e.g. ECGs, echocardiograms), which may be stored out of standardized formats (given its intrinsic clinical value) or transmitted with simple protocols not including basic security —e.g. highly efficient PAN protocols. This approach suggest the five uppermost hypothesis: •A layer-based security proposal would permit the harmonization of standardized protocols in m-Health architectures and the promotion of personalizable and costefficient applications. •A moderate security extension of the ISO/IEEE 11073 models would enable the harmonization with IHE, to enhance the interoperability of personal health devices with health information and medical systems (e.g. electronic health records, clinical decision support systems, alert systems), without limiting the previous functionalities of this set of standards. •A simple security extension of SCP-ECG would guarantee adequate protection and enforcement of role-based access control policies while maintaining small file sizes, fast access times and compliance with regular SCP-ECG viewers and editors. •The research on codings based on orthogonal transformations, which scale the energy of signals efficiently, would enable the development of novel, cost-efficient techniques for the secure embedding of large amounts of information —to support m-Health services— on small-size biomedical signals while maintaining their clinical value. 26 1.4. Thesis approach, hypothesis and objectives •Medical Image Watermarking techniques, particularly those based on orthogonal transformations and zero-watermarking, contain robust basis for the evolution towards innovative, non-distorting and efficient techniques for enhancing the security of biomedical tests. Thus, the major aim of the Thesis, together with the above mentioned hypothesis, lead to the overall objectives: •Design of a secure and cost-efficient m-Health architecture which facilitates the development of services with different protection and interoperability requirements and bridges contributions to the security of standards and biomedical tests. •Study, proposal and evaluation of methods to enhance the security of standard protocols for the exchange of biomedical information, according to criteria that maximize their interoperability and cost-efficiency. •Design and evaluation of novel, efficient methods to enhance the security of biomedical tests through their associated signals, and which may be integrated by both simple and standardized exchange protocols. On a deeper level, the following detailed objectives can be mentioned. They are presented subdivided into the main topics of the thesis. First of all, as regards to the contributions on the design of a secure and cost-efficient m-Health architecture: 1. To prepare a detailed risk assessment of a generic m-Health architecture. 2. To analyze common demands of major legal regulations regarding the m-Health context. 3. To present a well-depicted, cost-efficient, global security proposal for protecting the exchange of biomedical information in m-Health architectures. 4. To translate the previous global security proposal into specific measures that guarantee adequate levels of security and interoperability. 5. To assess the security of the m-Health architecture after its enhancement. Second, concerning standardized protocols: 6. To design a cost-efficient security extension, based on 3), for the standard ISO/IEEE 11073 PHD. 7. To appraise and discuss the implications and the impact of the former extension on the ISO/IEEE 11073 PHD models, architecture and framework. 8. To analyze the implications of the extension of ISO/IEEE 11073 PHD on IHE. Chapter 1. Introduction 27 9. To design a robust and simple security extension, based on 3), for the standard SCPECG. 10. To evaluate the impact of this extension on SCP-ECG, by means of a proof of concept. 11. To define adequate means to enable the integration of novel signal-based protection methods in DICOM. Third, as regards to techniques for the protection of biomedical tests through their associated signals: 12. To conduct reviews on the state of the art about methods that permit embedding large amounts of hidden data on signals, laying emphasis on the biomedical types. 13. Design of an optimal coding for biomedical tests — signals, periodic measurements and contextual information — that facilitates the development of secure and costefficient m-Health services. 14. To develop such optimal coding through a proof of concept, evaluate it and adjust its parameters optimally for both offline and real-time operation. 15. To conduct reviews on the state of the art about watermarking, laying emphasis on Medical Image Watermarking methods. 16. To develop a novel, non-distorting and efficient technique, inspired in the most promising watermarking methods, for the protection of biomedical images in m- Health architectures. 17. To propose optimal parameter configurations for the previous technique (e.g. for the selection of certain image features) in order to associate information to the biomedical image in stable, semistable and volatile manners and to evaluate the robustness, specificity and scalability of these alternatives. 18. To propose different configurations (content type and length of the data to be associated to the image; stable, semistable or volatile association; data detection threshold) for the implementation of complementary image-based security applications. 1.5 Research context This thesis, entitled “Design of a secure architecture for the exchange of biomedical information in m-Health scenarios” and supervised by ´ Alvaro Alesanco Iglesias and Jos´e Garc´ıa Moros, has been performed in the framework of the eHealthZ Research Group of the Arag´on Institute of Engineering Research (I3A), within the Biomedical Engineering Doctoral program of the University of Zaragoza, Spain. 28 1.6. Thesis outline Regarding its research context, this Thesis has been developed mostly within wider projects in the lines of Providing security to e-Health environments and m-Health telemonitoring architectures, such as: 1. PI029/09: “Analysis of echocardiogram coding and real-time transmission through communications networks”. 2. MCINN - TIN-2011-23792/TSI: “Ontology-based interoperable architecture for patients telemonitoring and clinical decision support”. 1.6 Thesis outline The rest of this Thesis is organized as follows: the state of the art of all topics covered — e.g. standards for the exchange of biomedical information, signal coding methods, security technologies — is presented in Chapter 2. This chapter also introduces the proposal of a global design for a m-Health architecture integrating security levels in line with different m-Health applications, which is the central issue of this Thesis. Such proposal specifically guarantees that all the biomedical information exchanged, according to biomedical standards and/or ad-hoc formats, is adequately protected. The contributions to the enhancement of biomedical standard protocols with low security levels are outlined in Chapter 3. Particularly, this Chapter introduces a security extension for the protocols ISO/IEEE 11073 and SCP-ECG, including a thorough analysis of the implications on their architectures, i.e. on their data and communication models, and also on their frameworks, including attacks that are hindered and how these extension affect the usability of the systems, the delays to access the biomedical information or the interoperability with health information and medical systems. The development of novel signal-based techniques for the protection of biomedical tests is addressed in Chapter 4. It deepens into two complementary techniques, the former permits embedding high amounts of hidden and protected data into compressed biomedical signals while preserving their intrinsic clinical value — and includes optional support for efficient signal encryption; the latter, called keytagging, permits associating information — with variable strength — to biomedical signals without causing any distortion to them. Furthermore, a series of security applications and scenarios of used are drawn for these techniques, by setting operation parameters that yield optimal features (e.g. compression levels, delays, robustness, specificity, capacity). Finally, Chapter 5summarizes research objectives achieved, contributions and accomplished results of this Thesis, and it also lays out suggestions for future lines of research. “If you don’t know where you are going, any road will get you there.” Lewis Carroll “A designer knows he has achieved perfection not when there is nothing left to add, but when there is nothing left to take away.” Antoine de Saint-Exupery 2 M-Health architectures: Background and proposed guidelines for their security enhancement This first part of this Chapter describes the foremost materials — i.e. background — of this research, which includes overviews of major standards for the exchange of biomedical information (Section 2.1), of major biomedical signal coding methods (Section 2.2), of transport technologies eligible in m-Health architectures (Section 2.3) and of legal regulations applicable to this context (Section 2.4). The second part addresses two relevant methods developed in this research, an assessment of the risks of the m-Health architecture (Section 2.5) and the proposal of robust guidelines for its security enhancement (Section 2.6) — which are followed and materialized in detail in Chapters 3and 4. 2.1 Overview of major standards for exchanging biomedical information This section introduces the main features of four relevant standardization initiatives in the m-Health context: IHE, focusing on the profiles involved in the secure exchange of biomedical information in the m-Health context (Section 2.1.1); two protocols for the exchange of biomedical measurements and signals that require security enhancements, ISO/IEEE 29 30 2.1. Overview of major standards for exchanging biomedical information 11073 PHD (Section 2.1.2) and SCP-ECG (Section 2.1.3); and a standard for the exchange of biomedical images and videos, DICOM (Section 2.1.4), whose cryptography-based security may be enhanced through signal-based methods. Finally, Section 2.1.5 compiles and analyzes previous efforts for the security enhancement of these standards. 2.1.1 IHE & profiles overview Integrating the Healthcare Enterprise (IHE) [89] is a non-profit organization founded in 1998 by healthcare professionals and industry members to improve the way computer systems in healthcare share information. IHE is organized by clinical and operational domains, each defining its own integration profiles and technical frameworks. The former define accurately how different communication standards, such as DICOM [79], HL7 [77], IEEE, W3C and security standards, can be implemented to meet specific clinical needs. The latter establish how these integration profiles can be coordinated to facilitate appropriate sharing of medical information and to support optimal patient care. It is worth highlighting that the IHE domains for Patient Care Devices and Health IT infrastructure are closely related with m-Health architectures. In fact, these domains include several integration profiles (Table 1.1) that would solve most of the security issues described in Sections 2.4-2.5 and that would improve interoperability with different healthcare systems: •Rosetta Terminology Mapping (RTM) [180]. This defines a vendor-neutral harmonized mapping for patient care device observations based on ISO/IEEE 11073-10101 nomenclature terms and Unified Code for Units of Measure (UCUM) [181], to facilitate the syntactic — and to some extent semantic — interoperability between devices and systems. The Rosetta Table also works as a temporary repository, in the form of XML files, to allow inclusion of new terms. •Consistent Time (CT) [135]. This provides the means to guarantee that the system clocks — also time stamps and authentication logs — of the devices in a network are synchronized with a median error less than 1 second. It requires the use of the Network Time Protocol (NTP) [182]. •Device Enterprise Communications (DEC) [183]. This enables a consistent communication between a Patient Care Device and other systems, such as CDSS or EHRs. This communication may include physiological data (e.g. heart rate, patient weight), point-of-care laboratory tests (e.g. home blood glucose tests), continuous data (e.g. ECG, EEG) —but without addressing real-time operation—, patient information and contextual data. This data can be filtered so that each system receives only the information that it is subscribed to. The current profile does not address issues of privacy, security and confidentiality associated with cross-enterprise communication Chapter 2. M-Health architectures: Background and proposed guidelines for their security enhancement 31 of personal measurements. However, it strongly recommends the implementation of IHE compliant transactions for automated acquisition of patient ID credentials — e.g. by means of bar codes (BC) or radio frequency identification tokens (RFID-T) — in order to reduce errors, increase user safety and enhance device and drug effectiveness. This profile works by means of HL7 v2 messages and depends on the CT profile. •Alert Communication Management (ACM) [184]. This permits a Patient Care Device to send the notification of an alert to a portable device, such as a smartphone or a tablet. This alert may be a physiological alarm (e.g. heart rate out of the safe range for a patient) for a caregiver, a technical alert (e.g. ECG leads off the patient) or advisories not related with an alarm. This profile extends DEC. •Waveform Content Module (WCM) [185]. This provides the semantics and the data structure (based on the IEEE 11073 Domain Information Model) to enable the transmission of waveforms acquired by Patient Care Devices (e.g. ECGs) to the IHE actors involved in the DEC and ACM profiles. These waveforms can be provided as bounded waveforms, snapshots associated with a diagnostic encounter or with an alarm event; or as continuous waveforms to be used for remote real-time monitoring. This profile is an option for DEC and ACM. •Audit Trail and Node Authentication (ATNA) [134]. This enforces personal health information integrity and confidentiality and user accountability by implementing local user authentication in the nodes of the health IT infrastructure (e.g. based on username and password, biometrics, smart cards or magnetic cards), connection authentication between communicating nodes (using certificates for authentication and secure transport) and audit trails (by means of the Syslog protocol [186]). This profile depends on CT. •Cross-Enterprise Document Sharing (XDS) [187]. This provides standard-based means — mainly based on HL7 v2 and OASIS ebXML [188] — for managing the sharing of documents between any healthcare organization. This profile depends on ATNA and CT. •Enterprise User Authentication (EUA) [143]. This enables centralized user authentication management — compliant with ATNA — and provides users with reliable and fast single sign-on, which can be based on passwords, tokens, smart-cards and biometrics. This profile relies on Kerberos [189] and HL7 Clinical Context Object Workgroup (CCOW), and it depends on CT. •Patient Identifier Cross Referencing (PIX) [190]. This provides interoperability when cross-referencing patients among different systems. This profile uses the HL7 32 2.1. Overview of major standards for exchanging biomedical information v2 protocol and depends on CT. •Basic Patient Privacy Consents (BPPC) [140]. This permits patient privacy consent(s) to recorded so that patients can selectively control access to their healthcare information. It defines a mechanism — equivalent to that in EHR systems — to enforce this policy. This profile complements XDS, so implementation of the latter is required. In addition to this, the IHE white paper “Medical Equipment Management: Cyber Security” [191] addresses the increasing risks associated with different types of personal care devices, specifically those risks of malware outbreaks and breaches of personal health information, and provides guidance on countermeasures at different levels — devices protection, network architecture, life-cycle management, security best practices — to solve these problems. 2.1.2 ISO/IEEE 11073 PHD overview The ISO/IEEE 11073 is a set of standards aimed at providing interoperability between personal health devices (referred to as “agents” in the X73PHD context) and concentrator devices, usually called “managers” (e.g. smartphones, personal computers, personal health appliances, maybe smart TVs), which has been successfully implemented in several devices and platforms [192,193,194]. The architecture of a typical X73PHD-compliant system involves a number of entities (Figure 2.11-A), namely: •Users: The person the measurements belong to. •Agents: The personal health devices used to take such measurements (e.g. weighing scale, thermometer, pulse oximeter, etc.). •Managers: The concentrator devices used to aggregate the measurements from agents. Managers can associate to several agents simultaneously, but agents can associate to only one manager at a time. •Administrators: The person in charge of managing agents and managers. In a home environment any user can play the role of administrator. Furthermore, there are three additional entities that are common in a healthcare framework (Figure 2.11-B): •Manufacturers: The companies producing the devices (agents or managers). •Certification authorities: Entities that issue digital certificate to uniquely identify each entity (e.g. an agent, a managers, a user, etc.). Chapter 2. M-Health architectures: Background and proposed guidelines for their security enhancement 33 •Health Information System (HIS): The information system the data may be sent to, it includes other systems such as PHRs, EHRs, CDSS or alarm systems —which may also operate independently from the HIS. Figure 2.1: ISO/IEEE 11073 PHD standards overview. Among the ISO/IEEE 11073 family (Figure 2.1), it is worth highlighting the 11073- 20601T M -2014 Optimized Exchange Protocol. This defines a reference model (Figure 2.2) based on an object-oriented paradigm that guarantees extensibility and reusability by defining three interrelated models: •Domain information model (DIM). The DIM characterizes information from an agent as a set of objects with one or more attributes, which describe measurement data that are communicated to a manager as well as elements that control behavior and report on the status of the agent. The DIM covers the definition of the MD system (MDS) object, scanner objects (for data reporting), different metrics (numeric, realtime sample array –RT-SA–, and enumeration objects) and persistent metric (PM) objects, used for data storage. •Service model. The service model provides data access primitives that are sent between the agent and manager to exchange data defined in the DIM. These primitives include commands such as Get, Set, Action, and Event Reporting. •Communication model. The communication model supports the topology of one or more agents communicating over point-to-point connections to a single manager. The dynamic system behavior for each point-to-point connection is defined by a connection finite state machine (FSM), which defines the states and sub-states that an agent and manager pair passes through, including states related to connection, association, and operation. 40 2.1. Overview of major standards for exchanging biomedical information part, (A) 1KB +(B) 0.5KB +(C) 351.6KB +(D) 2KB = 355 KB. In the most typical cases, the expectable size is ≃(A)0.5KB+(B)0.25KB+(C)29.3KB+(D)1KB = 31KB. The delays associated to the SCP-ECG may de divided into: •Collection of information about the patient and the recording session to complete parts Aand [B]. It depends on the means, a person typing the data can spend several seconds (typically a minute) on this task, while a proper connection to a patients database speeds up this operation (to typically 0.2-0.5 s). •Acquisition of the signal, to be stored in part C. This is equal to the signal duration, between 10 and 30 seconds. If the signal is compressed, there is a small additional delay of ≃50 ms. •Analysis of the signal to obtain part [D]. It comprises the obtaining of global measurements and measures from each lead independently (40-120 ms) and its interpretation by a cardiologists (≥1 minute) and sometimes an analyzing device (10-30 ms). •Access to the file contents by using an application. Loading the data fields and plotting the signal leads on screen typically takes less than 50 ms. Two typical delays can be obtained from these data, (1) the delay to obtain a basic SCP-ECG file (parts A,[B] and C) is ≃10-30 seconds, and (2) the delay to access the file and interpret it (using and/or completing part [D]) is ≃1 minute. Security features The SCP-ECG includes no security policy, so its security extension must be designed carefully. In the first place the main aspects of this standard must be analyzed in detail, since the extension must be in harmony with the scope of the protocol, maintain its structure, protect adequately and be able to retrieve its exact contents, not change substantially its file sizes and associated delays and allow interoperability with existing devices and software. Secondly the measures adopted by other major medical protocols to enforce reliability and privacy must be surveyed. Third, the security measures that the SCP-ECG shall implement must be accurately established no minimize costs. 2.1.4 DICOM overview In response to the increasing use of digital images in radiology, the American College of Radiology (ACR) and the National Electrical Manufacturers Association (NEMA) formed a joint committee in 1983 to create a standard format for storing and transmitting medical Chapter 2. M-Health architectures: Background and proposed guidelines for their security enhancement 41 images. The committee published the original ACR-NEMA standard in 1985. This has subsequently been revised and in 1993 the standard was renamed DICOM. DICOM is administered by the NEMA Diagnostic Imaging and Therapy Systems division and each year the standard is updated. Details of recent improvements can be found on [79]. The standard describes how to format and exchange medical images and associated information, both within the hospital and also outside the hospital. DICOM interfaces are available for connection of any combination of the following categories of digital imaging devices: (a) image acquisition equipment such as computed tomography, magnetic resonance imaging, computed radiography, ultrasonography, and nuclear medicine scanners; (b) image archives; (c) image processing devices and image display workstations; (d) hard-copy output devices such as photographic transparency film and paper printers. DICOM addresses five general application areas: 1. Network image management. 2. Network image interpretation management. 3. Network print management. 4. Imaging procedure management. 5. Offline storage media management. DICOM is a message standard that facilitates interoperability of medical imaging equipment by specifying: 1. For network communications, a set of protocols to be followed by devices claiming conformance to the standard. 2. The syntax and semantics of Commands and associated information which can be exchanged using these protocols. 3. For media communication, a set of media storage services to be followed by devices claiming conformance to the standard, as well as a File Format and a medical directory structure to facilitate access to the images and related information stored on interchange media. DICOM file format A single DICOM file contains both a header (which stores information about the patient’s name, the type of scan, image dimensions, etc), as well as all of the image data. The header and the image data are stored in the same file. The image data follows the header information. 42 2.1. Overview of major standards for exchanging biomedical information Table 2.2: Relevant fields of the DICOM header from an Acuson device Field Contents Filename [1x65 char] FileModDate “12-nov-2010” FileSize 2361370 Format “DICOM” FormatVersion 3 Width 1024 Height 768 BitDepth 8 ColorType “truecolor” FileMetaInformationGroupLength 204 MediaStorageSOPClassUID “1.2.840.10008.5.1.4.1.1.6.1” TransferSyntaxUID “1.2.840.10008.1.2.1” ImplementationClassUID “1.2.276.0.7230010.3.0.3.5.4” Modality “US” Manufacturer “SIEMENS” InstitutionName “HC LOZANO BLESA” ManufacturerModelName “ACUSON SC2000” PatientName [1x1 struct] PatientID “XXXXXXXXXXXX” PatientBirthDate “XX” PatientSex “X” HeartRate 88 SequenceOfUltrasoundRegions [1x1 struct] The size of the header varies depending on the acquisition device and image type. The DICOM elements required depend on the image type that are listed in Part 3 of the DICOM standard [203]. DICOM requires a 128-byte preamble (these 128 bytes are usually all set to zero), followed by the letters ’D’, ’I’, ’C’, ’M’. This is followed by the header information, which is organized in groups: general information, patient, study, series, frame of reference, equipment and image information. In Table 2.2 some fields of a header for an ultrasound device are shown. Of particular importance is the “Transfer Syntax Unique Identification” which reports the structure of the image data, revealing whether the data has been compressed or not. Another important field in the DICOM header included in the ultrasound is the regions calibration, see “SequenceOfUltrasoundRegions” in Table 2.2. It defines regions on the ultrasound image with different calibration and the calibration parameters in order to be able to perform measurements on the ultrasound Chapter 2. M-Health architectures: Background and proposed guidelines for their security enhancement 43 regions. The calibration header is defined in Part 3 of the DICOM standard [203]. The regions definition depends on the echocardiogram devices and not all the devices define these regions. In Figure 2.4 the calibration regions for an M mode are shown. There are four calibration regions that are defined with four coordinates each one: “Region Location Min X0”, “Region Location Min Y0”, “Region Location Max X1” and “Region Location Max Y1”. The “Region Spatial Format” and the “Region Data Type” of each region indicates the type of mode and data within the region. For example M mode or 2-D mode (tissue or flow) and color bar or spectral (CW or PW Doppler). Figure 2.4: Calibration regions for the M mode of an echocardiogram acquired with an Agilent device. The DICOM image exam can be compressed either lossless or lossy in order to reduce disk space. The image format is specified in the “Transfer Syntax Unique Identification” header. The codecs included in DICOM are described in Part 5 of the standard. The image formats supported for DICOM are raw data, lossless Run Length Encoding (RLE) [204], JPEG [205] lossy and lossless mode, JPEG-LS lossless and near-lossless mode, JPEG2000 [165] lossless and lossy mode, MPEG-2 MP@ML and MP@HL image compression, and MPEG-4 AVC/H.264 [206] high profile video compression. 44 2.1. Overview of major standards for exchanging biomedical information Security features DICOM dedicates its Working Group 14 to develop extensions to the standard that address the technical details of providing secure information exchange. These extensions are published in the form of DICOM supplements (Section 1.3.1) and in part 15 of the standard [144]. It is worth highlighting that there is a tendency to harmonize the security policies of IHE, DICOM and HL7. Currently, DICOM includes security specification that permit: •Integrating Audit Trail and Node Authentication profile (IHE) (ATNA). These contribute to access control by limiting network access, by implementing: –User authentication, which is local for each node. –Connection authentication between nodes. –Audit trails for user accountability. •Implementing secure transport connection (e.g. by means of Transport Layer Security [207] — TLS —, with Kerberos [189] or SAML [208] for identity negotiation), in order to guarantee data integrity during transit, entity authentication and confidentiality during transit via encryption. This protects against eavesdropping, masquerading and tampering. •Embedding Digital Signatures (DS), which –Guarantee data integrity for the life of the file. –Identify signatories, with optional timestamps. –May be included in Digital Signature Profiles (Base, Creator and Authorization RSA Profiles). –May be included in Structured Reports. •Implementing storage security profiles, which basically allows encapsulation of a DICOM file into a Secure DICOM File guaranteeing confidentiality, integrity and optionally data origin authentication. A Secure DICOM File shall contain an Envelopeddata content protected by means of Cryptographic Message Syntax (CMS) [151]. •Protecting the confidentiality of sensitive attributes, by means of: –De-identification and re-identification. –Removal of sensitive data information (corresponding to certain DICOM attributes — patient ID, study, series, date of acquisition — or to text annotations) burned on the image. Chapter 2. M-Health architectures: Background and proposed guidelines for their security enhancement 45 –Distortion of recognizable visual information in the image that permits the recognition of a patient. •Implementing robust network address management, with secure Domain Name System (DNS) [209] and Dynamic Host Configuration Protocol DHCP [210] configurations. •Implementation accurate time synchronization of the machines in a network by means of Network Time Protocol or Simple Network Time Protocol (NTP/SNTP) [182,211]. 2.1.5 Related publications on the protection of biomedical standards The security extension of SCP-ECG is not addressed specifically by any research work. However, the analysis of certain related works can offer certain guidance on the matter. For instance, [212] proposes an extension of this protocol, e-SCP-ECG+, to be included in health monitoring systems, permitting the inclusion of information about positioning, allergies, and five additional biomedical signals: noninvasive blood pressure (NiBP), body temperature (Temp), Carbon dioxide (CO2), blood oxygen saturation (SPO2), and pulse rate. The way in which it defines new sections and tags and implements software components can be adapted to the purpose of enhancing the security of the protocol. In addition, there are relevant works about ECG frameworks addressing security, although not integrating it into the standard. [213] defines a proposal of protocol stacks — depicted in Figure 2.5, which includes SCP-ECG, MFER, HL7 and may also include X73PHD — to be implemented by the entities in a m-Health network. However, it can be observed that in this proposal all the security relies on the physical layer in the communication between the sensor device (PHD) and the gateway (CD) and that the authenticated access to the encrypted data (AAA) is defined out of the standards. Furthermore, the files are not digitally signed. Similarly, [214] depicts a workflow where ECG files in SCP-ECG, HL7 aECG and XML Mortara formats are encrypted with a secure, password-derived — AES- 256 — session key and sent to a central mailbox via secure Simple Mail Transfer Protocol (SMTP with SSL/TLS), where it is forwarded to the reviewer through secure Internet Mail Access Protocol (IMAP with SSL/TLS). Again, the files are not digitally signed, there is no definition of access control policy or at least a robust key management. Regarding this issue, [215] depicts and ECG framework whose security components include not only AES encryption but also privacy protection and access control (based on eXtensible Access Control Markup Language [216] — XACML — and SAML). Finally, [217] defines a 12-lead ECG telemedicine service with enhanced security and privacy protection, based on Windows Azure. To safeguard the ECG data in the cloud, this framework includes 46 2.1. Overview of major standards for exchanging biomedical information authentication for the use of Web roles and Worker roles, data encryption during message communications among roles, and ECG file encryption and verification while ECG reports are retrieved in storage accounts and database. In addition to this, ECG files are transmitted via SSL based HTTP (HTTPS) where ECG files are protected by certificate based encryption and verification. Figure 2.5: Stack proposal for secure health monitoring, according to [213]. Regarding X73PHD, several publications address to certain — albeit different — extents the enhancement of the X73PHD security. [218] recommends the symmetric encryption, based on AES, of the measurements contained in PrstApdu frames and evaluates its cost — the transmission delay grows from 18 to 26ms. However, a key management policy is not defined. [219] recommends the use of NFC as a reliable and convenient out-of-band pairing method when using Bluetooth as transport technology for X73PHD communications — being this a peripheral enhancement, since the standard is independent from the transport technology. [220] proposes the joining use of Universal Plug and Play (UPnP) and IEEE 11073 in home networks, establishing a UPnP Device-Protection service that controls the access of different concentrating devices — smart TVs, game centers, smartphones — to user’s personal information. Nonetheless, the agent-manager communication is not specifically protected and there are no means to distinguish the measurements from different users who may share agents. More focused on the standard, [221,222] implement and discuss modified agent-manager association procedures, based on mutual challenge-response authentication — a certificate-based authentication method cannot be implemented since the agent has no direct means to check the validity of a certificate. The former uses the RSA2048 algorithm to perform digital signature — of timestamped Chapter 2. M-Health architectures: Background and proposed guidelines for their security enhancement 47 challenges —, which introduces high overhead, and implements USB Personal Healthcare Device Class for a secure transmission. The latter derives a biometric key from the user fingerprint, obtaining an insufficient 80% success rate. Another approach [223] focuses on low-powered PHDs. It proposes either including the sending date and time in the initial association frame of X73PHD and encrypting it partially — to hinder replay attacks and obtain certain privacy —, or encrypting the whole message and attach an authentication code — for integrity control. Nonetheless, still several attacks could thrive — e.g. user impersonation, devices hacking. The proposal in [224] handles both agent-manager authentication and encryption by means of a complex architecture, relying on either Device Profile Web Services — for hospitalary and domiciliary setups — or Bluetooth Health Device Profile — for high-mobility scenarios. This proposal includes global IDs for medical devices, the involvement of authorities beyond the manager, the administration of many cryptographic keys and the attachment of timestamps to verify their validity. However, it does not analyze the implications of this proposal on the X73PHD models and on its framework, and it lacks of details for an implementation based on its proposal. Moreover, none of the works mentioned consider fulfilling legal regulations (Section 2.4) or coordinating X73PHD with certain IHE profiles (Section 2.1.1), which would increase the usefulness of PHDs inside the healthcare ecosystem. On the other hand, [85] addresses both issues, but without proposing any specific security enhancement for the X73PHD and presenting a unique solution that limits the communications of X73PHD-compliant devices to PHR systems only. Finally, it is worth noting that the authors of [225] propose including remote controls in X73PHD and, from the perspective of security, they claim that the suitability of some use cases — e.g. configuration of pacemakers, drug pumps, insulin dispenser — should be analyzed. As explained in Section 1.3.1, the Working Group 14 of DICOM has been very active in including security policies — e.g. encapsulation of DICOM files by means of cryptographic envelopes — and cryptographic elements — e.g. digital signatures —, some of them previously suggested in the literature [226,227,228], for the security enhancement of the standard. Therefore, it is foreseeable that more advances will be steadily included in the coming years. For instance, the integration of openID [229] for decentralized authentication of users accessing DICOM objects through HTTPS-based Web Access to DICOM Object (WADO [230]) services has already been addressed in the literature [231]. In addition, the implementation of QR-Code authentication for mobile DICOM image retrieval has also been proposed [232]. Similarly, Latch [233] might be integrated as a safety switch adding an additional level of security to the DICOM online services, switching them off when the user does not need them. Furthermore, it is likely that new forms of efficient anonymization (e.g. pseudonymization [234]) and encryption, such as quaternion-based encryption [235] or searchable encryption [236,237,238], which is intended for a very 48 2.2. Overview of major biomedical signal coding methods efficient, robust and flexible privacy protection, are implemented by DICOM when these techniques become mature enough. Alternatively, there is also a variety of proposals to enhance the security and privacy of DICOM files through signal-based techniques, which strengthen the binding between the biomedical image and its metadata. As discussed in Sections 1.3.1 and 1.3.2, they can be of interest for certain security applications and scenarios — e.g. medical cooperative architectures. For instance, steganographic techniques have been proposed to embed silently into the biomedical DICOM image: the DICOM header [162] — in order to reduce the overall file size with very low quality loss —, a security-enhanced DICOM header [159] encapsulated in a digital envelope, or patient record information [239,240]. Similarly, various watermarking approaches have been proposed for different purposes, such as the enhanced verification of integrity and authenticity in individual [176,178] and multiframe DICOM files [241], the location of tampered areas in volumetric DICOM images [242] or the enhanced protection of patient information confidentiality [243,244]. Furthermore, certain works propose combining several techniques to implement several security measures simultaneously in DICOM images, such as authentication and data hiding [177], watermarking of encrypted images [132] to enable integrity control while protecting privacy, or even joining lossless compression and encryption [245] to enable the embedding of contents for authentication, captioning (e.g. with EHR/DICOM metadata) with controlled access retrieval and tamper location. 2.2 Overview of major biomedical signal coding methods This section introduces two widespread biomedical signal coding methods based on the wavelet transform (Section 2.2.1), which facilitate compression preserving the clinical content of: 1-D signals — SPIHT, Section 2.2.2 — and individual images and short videos (multiframe images) — the DICOM-compliant JPEG2000, Section 2.2.3. Finally, Section 2.2.4 presents relevant signal-based protection techniques, which may comply with these (and other) coding methods. 2.2.1 Wavelet transform overview The wavelet transform comprises the coefficients of the expansion of a original signal x(t) with respect to a basis ψw,n(t), each element of which is a dilated and translated version of a function ψcalled the mother wavelet, according to ψw,n(t) = 1 √2wψt−n·2w 2w, w, n ∈Z,(2.1) where Zis the set of integers. Depending on the choice of the mother wavelet appropriately, the basis can be orthogonal or biorthogonal. The wavelet transform coefficients, given by Chapter 2. M-Health architectures: Background and proposed guidelines for their security enhancement 49 the inner product of x(t) and the basis functions W(w, n) = hx(t), ψw,n(t)i(2.2) comprise the time-frequency representation of the original signal. The wavelet transform has good localization in both frequency and time domains, having fine frequency resolution and coarse time resolution at lower frequency, and coarse frequency resolution and fine time resolution at higher frequency. Since this matches the characteristic of most signals, it makes the wavelet transform suitable for time-frequency analysis. In data compression, the wavelet transform is used to exploit the redundancy in the signal. After the original signal is transformed into the wavelet domain, many coefficients are so small that no significant information is lost in the signal reconstructed by setting these coefficients to zero. In digital signal processing, the fast-forward and inverse wavelet transforms are implemented as tree-structured, perfect-reconstruction filter banks. The input signal is divided into contiguous, non-overlapping blocks of samples called frames and is transformed frame by frame for the forward transform. Within each frame, the input signal is filtered by the analysis filter pair to generate low-pass and high-pass signals, which are then downsampled by a factor of two. Then this analysis filter pair is applied to the downsampled low-pass signal recursively to generate layered wavelet coefficients. In different layers, the coefficients have different frequency and time resolution. In layer i, each coefficient corresponds to two coefficients in layer i+ 1 in the time domain. For the inverse transform, the coefficients in the highest layer are upsampled by a factor of two (zeros are inserted between successive samples), filtered by the low- and high-pass synthesis filter and added together to get the low-pass signal for the next layer. This process is repeated for all layers until the full size signal is reached to complete the inverse transform. Similarly, the 2-D discrete wavelet transform [246] decomposes images into several scales (see the 5th-level decomposition of an echocardiogram represented in Figure 2.6), located in ordered regions of the transformed image, which host coefficients concentrating certain frequencies. This enables efficient compression —e.g. by means of SPIHT (Section 2.2.2) or JPEG2000 (Section 2.2.3)— since any entropy and/or run-length coding that exploits adequately the self-similarities of the quantized coefficients across different scales achieves high compression ratios. The main advantage of using wavelets over other transforms is its variable resolution: the higher frequencies, which correspond to details of the image, are represented with higher spatial resolution than the lower frequencies. The image is initially filtered by rows and columns with two filters, decimated by two and arranged in four subimages: LL, LH, HL, HH — this process is represented in Figure 2.7. The process is iteratively repeated, taking the last LL as input, until reaching the desired j-th decomposition level. 56 2.2. Overview of major biomedical signal coding methods D(c4) and D(c5) are then tested as above with the actions given in the table. 5. Refinement pass: After the sorting pass. SPIHT begins the refinement pass. Each old entry of LSP (the coefficients which became significant under the last threshold) is checked. Send a one if it is significant under this threshold and reduce its magnitude by the current threshold. Since this is the first refinement pass, there are no old LSP entries. These new entries of LSP, c0, c1, and c8, are reduced in magnitude by the current threshold of 32, so that their values become c0(27), c1(16), and c8(11). 6. Sorting Pass in LIP: Check the significance for LIP entries under threshold 16. c2 and c3 are significant and moved to the LSP, while c4, c5 and c9 remain insignificant. 7. Reduce the threshold to 16. 8. Sorting pass in LIS: Check the significance for LIS entries under threshold 16. 9. Refinement pass: check old LSP members c0, c1 and c8, send their significance information, reduce the magnitude of significant old LSP entries and all new entries in LSP. Their values become c0(11), c1(0), c8(11), c2(9), c3(5), and c16(6). 10. Reduce the threshold to 8 and repeat sorting pass and refinement pass until the bit budget or quality requirement is reached. In the decoder side, the same process is executed. The only difference is that the significance decisions found in the encoder — by comparing the coefficients to a threshold — are input to the decoder. The lists are initialized identically and formed in the decoder exactly as in the encoder. In the refinement pass, the threshold is added to the significant coefficients, instead of subtracted. The addition or subtraction of threshold is equivalent to adding or removing a bit in a bit plane representation of the coefficient’s magnitude. 2.2.3 JPEG2000 overview JPEG2000 is an image compression standard that uses the state of the art wavelet technology. It was created in 2000 by members of the Joint Picture Experts Group with the intention to solve most of the limitations of the original JPEG standard (created in 1992) based on the discrete cosine transform. The JPEG2000 algorithm provides an efficient representation and interchange of digital images with different characteristics (scientific, medical, rendered graphics, etc.), allowing different imaging models, e.g. client/server, real-time transmission, image library archival, limited buffer and bandwidth resources. JPEG2000 also provides low bit-rate operation with rate-distortion and improves the subjective image quality performance of the previous standard, JPEG. Although this standard is still not as widely used for natural images as its forerunner, it is widespread in medi- Chapter 2. M-Health architectures: Background and proposed guidelines for their security enhancement 57 cal imaging and included in the DICOM standard. According to the mean opinion score (MOS) of medical experts [251], this codec maintains good clinical quality at compression ratios up to 8-16 for magnetic resonance, ultrasound and X-ray images. Compared to JPEG, it presents a better image distortion-rate tradeoff and for an equal objective distortion (e.g. PSNR = 35 dB), it obtains a higher MOS. JPEG2000 features JPEG2000 has many features, which were not available in most of the previous image coding standards. They include: •Excellent coding performance. It features superior rate-distortion and subjective image quality performance especially at low bit rates. This is useful in applications whereby file size or transmission time is critical. •Lossless and lossy compression. It is capable of lossless compression, which is important to some medical imagery and image archival applications. •ROI coding. It allows certain areas of an image to be encoded at higher fidelity. More information on this feature can be found in [252]. •Spatial and Signal-to-noise ratio (SNR) scalability. It allows progressive recovery of images by resolution or quality. •Good error resilience. It has added bitstream robustness to the presence of bit errors. In addition, its flexible file formats JP2 and JPX allow the handling of color-space information, metadata, and interactivity in networked applications as developed in the JPEG Part 9 JPEG 2000 Interactive Protocol (JPIP) protocol. JPEG 2000 encoder and decoder structure As depicted in Figure 2.9a, the core structure of the JPEG2000 encoder follows a typical sequence of operations used in a transform coding scheme, which consists of transformation, quantization and entropy coding. The JPEG2000 encoder works as follows. First, the original image with unsigned data is DC-level shifted. Then, the component transformation can be carried out if the original image has multiple components. This procedure provides decorrelation among image components and hence improves compression efficiency. There are two component transforms available: one is reversible and may be used for lossy or lossless coding, while the other is irreversible and may only be used for lossy coding. Before proceeding further, it should be noted that the image components can be partitioned into tiles, which are rectangular non-overlapping blocks, and thus creating tile 58 2.2. Overview of major biomedical signal coding methods components that can be compressed independently of each other. (a) JPEG2000 encoder (b) JPEG2000 decoder Figure 2.9: Processes of the JPEG2000 encoder and decoder. Wavelet transform [253] (Section 2.2.1) may be performed on the tile components. In the lossy case, an irreversible Daubechies 9-tap/7-tap filter is employed, whereas in a lossless case, a reversible 5-tap/3-tap filter is used. The wavelet transform decomposes the tile-components into different decomposition levels, each of which contains a number of subbands filled with transform coefficients. Before entering into the entropy coding phase, the quantization process is carried out to reduce the precision of the transform coefficients. Note that for the lossless case, the quantizer is set to one, i.e. no loss in precision. The remaining encoding process is grouped into two tiers. In the tier-1 encoder, the quantized transform coefficients associated with each subband are arranged into rectangular blocks called code-blocks. Then, a bit-plane coding technique with three coding passes is applied to each code-block, and the symbols that it produces are coded using an adaptive binary arithmetic coder. In the tier-2 encoder, the inclusion and the order of appearance of bit-plane coding passes along with the actual coding pass data are assembled together to form the final compressed data. Finally, as regards to the JPEG 2000 decoder, its core structure is illustrated in Figure 2.9b. It basically reverses the processes of the encoder. 2.2.4 Related publications on signal-based protection This section extends the content of Section 1.3.2, which explains the fundamentals and types of steganography and watermarking and discusses its potential security applications and current shortcomings in the m-Health context. Regarding embedding techniques, a categorization according to the embedding method is established in Section 1.3.2. The approaches working in the temporal or spatial domain may replace certain least significant bits of the signal [158,159], change magnitude levels, modify the difference between adjacent samples [254,240], perform quantization index Chapter 2. M-Health architectures: Background and proposed guidelines for their security enhancement 59 modulation [255], multiple base notational or embedding based on prediction. The methods operating in transform domains choose mainly the Discrete Cosine Transform (DCT) [256] and the Discrete Wavelet Transform (DWT) [257], while the proposals working in compressed domains usually choose JPEG [160,258] and SPIHT [259] bitstreams. As regards to alternative embedding methods, the approaches working with histograms that are focused in reversible transformations [161,260] have good presence in m-Health, while examples of spread-spectrum techniques [261] and model-based methods [262] are infrequent. With respect to medical image watermarking techniques (MIW), they may be classified as non-reversible — producing a permanent distortion on the image —, operating mainly in the RONI — to minimize image distortion —, reversible techniques — which can recover the original image after removing the watermarks —, and zero watermarking — constructing watermarks based on the main features of the images in order to avoid the embedding step which causes image distortion. The following paragraphs summarize and classify different efforts — intended for enhancing the security of biomedical images or that could be adapted to this purpose — in the four categories. The non-reversible MIW techniques can perform the watermark embedding in different domains. The simplest approaches work in the spatial domain, mainly performing the replacement of least significant bits (LSB) in pixels [227,171,241] to embed fragile watermarks, although there are also proposals to host robust watermarks by using more significant bits [263,264,265]. Moreover, the transformation of the image prior to watermarking can yield interesting properties. For instance, the use of regions of different amounts of energy in transform domains allows the embedding of multiple (robust, semifragile and fragile) watermarks in the same image [266,267,268]. There are watermarking-based methods using the discrete cosine transform (DCT) [269,160,270] — thus, which are compliant or could be adapted to the JPEG codec —, using discrete wavelet transforms (DWT) [271,272,267,268,273,274,275,276] — thus, which are compliant or could be adapted to the JPEG2000 codec —, and others, such as the discrete wavelet packet transform [277] or wave-atoms [278]. Furthermore, the robustness against geometrical transformations, such as rotation-scaling-translation (RST), is also addressed — to different extents — by certain watermarking techniques — see a survey in [279]. There is a good variety of methods to achieve this enhanced robustness, such as with the use of the Fourier-Mellin transform [280], with log-polar coordinates [281], with the Radon transform [282,283], with the S-Radon transform [284] (which is invariant to shearing), with Zernike moments [285,286], with singular value decomposition (SVD) [287,288], and with joint approaches such as DCT-SVD [289], DWT-SVD [290,291], Zernike-SVD [292], or even DCT-DWT-SVD [293,294]. Alternatively, the compressed domain can also be used for 60 2.2. Overview of major biomedical signal coding methods watermarking, usually exploiting the theory from compressed/compressive sensing [295]. There are examples with SPIHT [108], JPEG [296], JPEG2000 [297], and even encrypted JPEG2000 images [298]. It is also worth noting that although the choice of the embedding domain is very relevant in watermarking, the procedure to target the most appropriate pixels/coefficients — and inside them, the most adequate bits for watermarking — is also an important factor to balance the tradeoff between robustness and imperceptibility. Certain works focus on the optimization of this procedure, e.g. by means of fast neural networks [299], particle swarm optimization [274], differential evolution [300], or by learning from the coefficient relations established by compression algorithms like SPIHT [301]. The MIW techniques that distinguish the ROI and RONI of the image prior to watermarking are intended to minimize the interference of the watermarks with the clinical content of the image. Regarding the embedding domain, any of the listed above (DWT, DCT, SVD, joint approaches, etc.) would be suitable, since these techniques only require specifically to perform the corresponding spatial separation between ROI and RONI — before or after the domain transformation. A common practice is embedding robust watermarks in the RONI area surrounding the ROI [172,302,303,177,244,245] to try to avoid its deletion if the image is clipped. Nevertheless, some works propose embedding in random locations [176,304,305] to increase the capacity. As regards to embedding — total or partially — in the ROI, this practice is only allowed for fragile watermarks — e.g. for integrity control —, since the distortion caused is minimal. The MIW reversible techniques — see a recent survey in [306] — were first introduced in [174], and since then a variety of methods have been developed. Difference expansion, an integer wavelet transform with high redundancy, was proposed early on in [307], obtaining low-distortion and high-capacity. This scheme has been adapted for several uses, such as the embedding of patient data in the ROI of DICOM images [177] — for enhanced robustness to image clipping without image distortion. Histogram operations, such as circular interpretation of bijective transformations [308], are also an effective manner to implement reversible watermarking with notable endurance to lossy compression. The addition of a virtual border where patient data is inserted in the LSB, at the cost of increasing the image size, has also been proposed [309]. The use of an estimator signal to determine which pixel blocks can embed information was proposed in [310], further used to embed a digest of the knowledge associated to the image [311], and refined in [178] by introducing a random location signal for security and implementing tamper detection and location. Furthermore, this work was extended to volumetric images in [242]. Similarly, [312] depicts an effective tamper location watermarking based on partitioning an authentication area into small regions in a hierarchical manner, and [243] proposes the reversible embedding of R-S-vectors and patientID to provide authentication and confidentiality. Chapter 2. M-Health architectures: Background and proposed guidelines for their security enhancement 61 Zero-watermarking techniques were first proposed in [313], and since then a few works that adapt the research from non-reversible MIW have been proposed —see a recent review in [175]. As examples of these adaptations, there are approaches working in the space domain [314,315,316], in transform domains [313,317,318,319,320], with image moments resistant to certain geometrical transformations [321], with decompositions of the image (e.g. SVD) [322], with principle components [323], and hybrid approaches [324,325,326,327,328,329]. Regarding techniques in the space domain, some of them propose using most significant pixel bits [314], while others prefer high order cumulants [315] or scale invariant features [316]. With respect to transform domains, it has been proposed associating watermarks to selected high magnitude coefficients from the DCT domain [313,317], to the low frequency coefficients from the DFT [318] and DWT domains [319], and using the 3D-DCT [320] to work with biomedical volume images. Finally, the are several hybrid approaches, such as combining the use of DCT and DWT [324], DWT and SVD [325], the phase feature from low to middle bands in DFT domain and two generalized Radon transformations [326] —to identify the rotation and scaling parameters of geometrical image transformations— , Contourlet transform and SVD [327] —for unambiguous authentication of medical images—, log-polar mapping and DWT [328], and log-polar mapping, SIFT and DWT [329]. 2.3 Overview of transport technologies in the m-Health architecture M-Health architectures require that their transport technologies have support for both “reliable” (i.e. confirmed) and “best-effort” (i.e. unconfirmed) bidirectional transport services. Those transport profiles containing only unidirectional transport services or only best-effort transport services are not eligible to be used in standards like X73PHD (Section 2.1.2). In addition, some specific features are required to be present in the selected transport technology. If they are not, it is possible to build a convergence layer (also referred to as “shim” layer) to meet the required characteristics. Some transport technologies already count with a specialization to handle healthcare data. Such technologies are: Universal Serial Bus Personal Healthcare Device Class (USBPHDC [330]), Zigbee Health Care Profile (ZHCP [331]) and Bluetooth Health Device Profile Multi-Channel Adaptation Protocol (BT HDP/MCAP [332]). Besides, there are currently ongoing efforts to develop X73PHD-compliant devices with Bluetooth Low Energy (BLE [333]) as transport technology. Additionally, some other transport technologies — namely, Near Field Communication (NFC [334]), Wireless Fidelity (Wi-Fi) Direct [335] or Certified Wireless Universal Serial Bus (WUSB [336]) — could theoretically be used 62 2.3. Overview of transport technologies in the m-Health architecture and therefore are considered in this Thesis as well. A complete review of them, including features such as coverage, topology, frequency band or data rate can be found in [337]. Table 2.4: Security features of transport technologies eligible for m-Health architectures Transport standard Secure device pairing/joining Frame/packet encryption Frame/packet authentication Additional security Already-in-use technologies USB-PHDC - - - Physical security ZHCP Trust center authorizes new devices using out-of-band methods 128-bit AES CCM* mode = Counter mode CBC-MAC Freshness (frame counter), mesh privacy (network key) and device2device privacy (link keys) BT HDP/MCAP (CORE v2.1 + EDR) Secure Simple Pairing: Elliptic Curve Diffie-Hellman (ECDH) + passkey entry or Out-Of-Band (OOB) protocol E0 (LFSR- based) E1, SAFER+ based - Eligible technologies BLE OOB protocol (no ECDH currently) 128-bit AES CCM Mode Device address change on a frequent basis, packet counter NFC - - - Physical security (10 cm from devices) WiFi Direct WiFi Protected Setup (WPS) with PIN, PBC, NFC or USB WPA2 = 128-bit AES CCMP Mode —CCM derived— Packet counter, access control with layer management Certified Wireless USB Out-of-band first association: numeric or cable + Diffie Hellman 128-AES CCM Support for one-time association and easy revocation The security features of these transport technologies are summarized in Table 2.4. From this review, it can be observed that USB-PHDC and NFC are particular cases, since their security relies only on the difficulty to access the physical medium (the cable connecting the two devices or a radius of 10 cm around them) and on the foreseeable security on the application layer. In the rest of the cases, the device pairing or joining (when there is a network architecture) is carried out by a user or by an authority (e.g. a trust center), usually by means of out-of-band method [338,339], such as pushing a button (PBC), introducing a PIN/passkey in one or in both devices, or enabling NFC and approaching them. Chapter 2. M-Health architectures: Background and proposed guidelines for their security enhancement 63 Furthermore, there is some derivation or negotiation of the session key(s) for encryption, e.g. using the protocol Diffie-Hellman (DH) [340] or the more advanced Elliptic Curve Diffie-Hellman (ECDH [341]). In the case of network topologies, there may be different session keys so that each device can either communicate only with another one (e.g. link keys in ZHCP) or broadcast frames/packets to all of them (e.g. network key in ZHCP). The encryption with the session key(s) provides privacy, and it is performed with 128-bit Advanced Encryption Standard [342] (AES) in CBC mode [343], to avoid the dictionary attack. Except in BT HDP/MCAP, which uses a stream cipher based on Linear Feedback Shift Registers (LFSR [344]). The ciphers use Message Authentication Codes (MAC) to authenticate the packets/frames and counters (CCM/CCM*/CCMP [345] operation modes) to prevent replay attacks. Only BT HDP/MCAP uses a different approach, a SAFER+ [346] based authentication. Finally, some technologies enable additional security features, such as device address change to difficult tracking (BLE), access control in conjunction with layer management (WiFi Direct), or support for one-time association and easy revocation (WUSB). 2.4 Legal regulations The security requirements of personal health information (PHI) are usually defined by strict ethics and legislative rules to which concerned entities must adhere. There are several guidelines and standards for protecting PHI. In the first place, it is worth highlighting the ISO 27799 [347], a basic international standard which specifies a set of detailed controls for managing health information security and provides health information security best practice guidelines. By implementing this international standard, healthcare organizations and other custodians of health information will be able to guarantee a minimum requisite level of security that is appropriate to their organization’s circumstances and that will maintain the confidentiality, integrity and availability (CIA) of PHI. ISO 27799 relies on the implementation of ISO/IEC 27002 [348], which depicts a code of practices for the selection, implementation and management of controls taking into consideration the organization’s information security risk environment(s). In addition to this, some countries count with their own security and privacy policies. It is worth highlighting two regulations from US, the Health Insurance Portability and Accountability Act (HIPAA) [48] and the Code of Federal Regulations number 45 (CFR 45) [349], and two regulations from Europe, the European Directive 95/46/EC [350] and the General Data Protection Regulation (GDPR) [50]. These four regulations are expressions of such constraints. The HIPAA Privacy Rule regulates the use and distribution of PHI to entities linked with the patient in order to facilitate treatment, payment or health 64 2.4. Legal regulations care operations. It mandates disclosing only the minimum necessary information required to achieve a certain purpose (primary or secondary authorized by the the patient) and keeping track of disclosures of information and document privacy policies and procedures. Complementarily, the purpose of the HIPAA Security Rule is to identify and adopt national standards — including requirements and addressable implementation specifications — for safeguards to protect the CIA of electronic PHI. Regarding CFR 45 (part 164: security and privacy), this regulation pursues guaranteeing the CIA of all electronic PHI that a covered entity or business associate creates, receives, maintains, or transmits. To achieve this purposes, it requires protection against any reasonably anticipated threats or hazards to the security or integrity of PHI and against any reasonably anticipated uses or disclosures of PHI that are not permitted. With respect to Directive 95/46/EC, it regulates the processing of personal data — any information relating to an identified or identifiable natural person — within the European Union. This regulation establishes that the processing of PHI can only be done under conditions of transparency, specified explicit and legitimate purposes and proportionality, i.e. data shall be adequate, relevant and not excessive with respect to the purpose for which it is collected and/or further processed. Finally, as regards to the GDPR —whose adoption is expected by 2017—, it has been designed as the replacement for the obsolete Directive 95/46/EC. This regulation takes into account the developments that shape the current technological panorama — e.g. cloud computing, social networks. Some of the GDPR key points include the extension of privacy obligations to foreign companies processing data of EU residents, the harmonization of data protection regulations throughout the EU, strict responsibility and accountability duties, legal obligation to notify data breaches, right of the data subject to request erasure and right to request a copy of his/her data in a format usable and ready to be to transmitted to another processing system. The legislative rules, as mentioned above, are based on strict ethics that give rights to the users/patients and duties to the health professionals and technicians. The biomedical standards (e.g. ISO/IEEE 11073, SCP-ECG, DICOM, etc.) and their associated technical frameworks can play a crucial role in the development and implementation of security and privacy protection features. Although certain aspects of these regulations cannot be addressed by the biomedical standards (e.g. the administration of backups, the protection and control of physical media, or the notification of data breaches), important aspects of security and risk management in the context of information security can be implemented by biomedical standards in order to enhance the compliance with these regulations. In brief, the following security requirements can be demanded to the biomedical standards and their surrounding frameworks: •All concerned entities (e.g. PHDs, CDs, PACS in hospital or clinic, and consultants/ Chapter 2. M-Health architectures: Background and proposed guidelines for their security enhancement 65 specialists at distant places) shall have appropriate levels of security and privacy. •CIA of all PHI have to be ensured during measurements/test acquisition session, consultation process, and information transmission, processing, management, and preservation. •In all domains and scenarios, proper authorization process must be employed through transmission and access controls. On the other hand, the security concept derived from the regulations mentioned above can be established through different stages. The major stages make a cycle including: (1) initial threat analysis/risk assessment of the scenario — Section 2.5, (2) determination of appropriate level(s) of security — Section 2.6, (3) establishment of the security policy — Sections 3.1,3.3,4.1,4.4,4.5 and 4.7, (4) final threat analysis/risk assessment — Sections 3.2.1,3.4.1,4.4.1 and 4.7.8 — and (5) discovery or publication of new threats, which implies going back to (1). The initial risk assessment helps to determine the expected threats from the entities involved in the m-Health context (e.g. PHDs, CDs, etc.). The determination of the appropriate level(s) of security shall include all entities involved in the m-Health context and may depend on the type of m-Health domain or application. The establishment of the security policy deals with either reducing the probability of occurrence of the threats or reducing the damage if an adverse event is unavoidable. This includes the selection of suitable measures that reduce the risks to a tolerant level. Some examples of such measures are the protection of configurations, communications, stored data and tests; the identification and authentication of users and devices; the implementation of access controls, audit trails audit and accountability systems; etc. As regards to the final risk assessment, it includes the evaluation of the selected security measures, examining the cost-effect relationship — Sections 3.2.2,3.2.3,3.4.2,4.2 and 4.6 — as well as analyzing any further risk or limitation — see Sections 3.2.4,3.4.3,4.4.2 and 4.7.9. The security enhancement cycle ends when certain new threats appear, such as the discovery of vulnerabilities affecting implemented security algorithms or the inclusion of new, non-secure entities or protocols in m-Health frameworks, which indicates the beginning of the next cycle. 2.5 Risk assessment of the m-Health architecture A typical m-Health architecture, as the illustrated in Figures 1.1 and 2.11-A, involves several entities that need to cooperate in order to acquire and transmit the biomedical measurements (signals and/or tests) of the user. Although the transport technologies used to communicate between PHDs and CDs may implement security (Section 2.3), there is 72 2.6. Guidelines for the security enhancement of the m-Health architecture Figure 2.11: Layer-based proposal for a secure, cost-efficient, m-Health architecture. Chapter 2. M-Health architectures: Background and proposed guidelines for their security enhancement 73 2.6.3 Suggested algorithms for the SDO Profile Various alternatives are available for performing the cryptographic functions required by the newly proposed IHE profile, Secure Device Observation. Those showing the best balance between security, complexity, overhead and free availability of the algorithm will be recommended. To assess security, the recommendations of the NIST are followed, regarding key lengths for long term use (>year 2030), summarized in Table 2.6, and crypto periods (time span during which a key is authorized for use), summarized in Table 2.7. In addition to this, priority of choice is given to algorithms not usually implemented by the transport technologies. This practice, implementing the same cryptographic functions at different levels with different algorithms, reduces the impact of attacks based on the vulnerability of some specific algorithm. The time complexity of the candidate algorithms, shown in Table 2.8, is estimated in cycles per operation (e.g. digital signature) or cycles per byte (e.g. in encryption), which is directly related with energy consumption and with delays, two major issues in BAN/PAN architectures [91]. With respect to space complexity, it is estimated by means of the overheads introduced, regarded as a fixed amount of bytes when calculating security items (challenge, hash, HMAC, DS or FP) and an estimation (half block length) when performing encryption, since the latter case is due to the addition of padding bytes to fit the cipher block length. It is worth noting that the overhead introduced by the algorithms will also have an impact on the energy consumption and delays of the architecture that implements them (due to the transmission of extra bytes) and hence on the demand of more powerful processors to enable realtime transmission. Finally, it is checked whether the algorithm is standard, under any restricting license, and if there are reliable free implementations available. This proposal includes the following: •Symmetric encryption: Twofish [356], which is a suitable supplement to the Advanced Encryption Standard (AES [22]), usually implemented by secure transport technologies. This algorithm, designed by Bruce Schneier, was in fact one of the five finalists to become the AES [357], together with MARS, RC6 [358], Rijndael (chosen) and Serpent [359]. It can be considered very secure (third most voted after Rjindael and Serpent) and pretty fast (29.4 cycles/B), although slower than AES (12.6 cycles/B) and RC6 (17.3 cycles/B). Its mode is set to CTR (which is non-authenticated encryption), since it hinders cryptanalysis and does not require a previous padding of the plain text to the block size of the cipher. Regarding overheads, the three produce the same since their block size and key length are equally set to 128 bits. The main advantage of Twofish over RC6 is that the former has not been patented and has a reference implementation in the public domain. Symmetric master keys (MK) will be renewed every year. Symmetric keys for encrypting frames, S, will be 74 2.6. Guidelines for the security enhancement of the m-Health architecture renewed every session and symmetric keys for encrypting stored data have a single use. If Twofish were to be compromised in the future, the order of preference for replacement would be Serpent, RC6, MARS and AES. •Asymmetric encryption: RSA (≥2048) [360] is the algorithm recommended for the exchange of master secrets, which supplements DH/ECDH [341], implemented by most secure transport technologies. RSA and elGamal [361] are the alternatives, but the former is preferred for being standard and less similar to DH. Nonetheless, RSA2048 introduces more overheads than ECDH (block length 2048 bits vs 256) and performs more slowly (11.41 Mcycles vs 5.17). Asymmetric encryption keys will be renewed every 1-2 years. If RSA were to be compromised in the future, elGamal would be recommended as a replacement. •Challenges generation: The standardized SHA-512 [362], which produces longer challenges (512 bits) than other hash functions and ciphers, and thus reduces the possibilities of repetitions. In addition, it does not imply extra overheads since challenges are protected with RSA2048, resulting in 2048 bits regardless of the fact that the initial length is less. Another advantage is its performance (17.7 cycles/B), very close to the fastest cipher (RC6, 17.3 cycles/B). To obtain a challenge, a secret seed stored in the device is concatenated with the current time (at its maximum resolution) and hashed. If SHA-512 were to be compromised in the future, Whirlpool [363] would be recommended as a replacement. Table 2.6: Cryptographic key length recommendations by NIST [355] Date Minimum of Symmetric Factoring Discrete logarithm Elliptic Hash(A)1Hash(B)2 strength algorithms modulus Key Group curve 2010 (Legacy) 80 2TDEA 1024 160 1024 160 SHA-1 to SHA-512 SHA-1 to SHA-512 2011- 2030 112 3TDEA 2048 224 2048 224 SHA-224 to SHA-512 SHA-1 to SHA-512 >2030 128 AES-128 3072 256 3072 256 SHA-256 to SHA-512 SHA-1 to SHA-512 >>2030 192 AES-192 7680 384 7680 384 SHA-384 SHA-512 SHA-224 to SHA-512 >>>2030 256 AES-256 15360 512 15360 512 SHA-512 SHA-256 to SHA-512 1Hash(A): Digital signatures and hash-only applications. 2Hash(B): HMAC, key derivation functions and random number generation. Chapter 2. M-Health architectures: Background and proposed guidelines for their security enhancement 75 Table 2.7: Cryptoperiods recommended by NIST for different types of key uses [355] Key type Cryptoperiod Originator usage Recipient period (OUP) usage period Private signature key 1-3 years Public signature key Several years (depends on key size) Symmetric authentication key ≤2 years ≤OUP + 3 years Private and public authentication keys 1-2 years Symmetric data encryption and key wrapping keys ≤2 years ≤OUP + 3 years Symmetric and asymmetric RNG keys Upon reseeding Symmetric master key About 1 year Private key transport key ≤2 years Public key transport key 1-2 years Symmetric key agreement key 1-2 years Private and public static key agreement keys 1-2 years Private and public ephemeral key agreement keys One key agreement transaction Symmetric, private and public authorization key ≤1-2 years •Hashing: RIPEMD-256 [364], which performs faster (11.1 cycles/B) than other reference functions such as SHA-256 [362] (15.8 cycles/B) or Whirlpool (30.5 cycles/B). RIPEMD-256 and SHA-256 introduce less overhead than Whirlpool [363] (512 bits), while fulfilling the recommendation of the NIST (256 bits). Although Tiger operates faster (8.1 cycles/B), its key length (192 bits) is not secure enough. Furthermore, RIPEMD-256 will never be patented and reference implementations can be found in the public domain. If RIPEMD-256 were to be compromised in the future, the order of preference for replacement would be Whirlpool and SHA-256. •HMAC with counter: The standardized Secure Hash Algorithm (SHA)-1 [365] is sufficient to implement these codes, since they do not need to be as secure as regular hashes. Part of the original content, a key SA, is unknown to the attacker, which minimizes the odds of finding collisions. Among the SHA family of standards, SHA-1 is the fastest (11.9 cycles/B) and most compact (160 bits). The counter is a 2-byte number, used to avoid a replay attack by re-sending frames gathered from the current session. SA will be renewed every session. 76 2.6. Guidelines for the security enhancement of the m-Health architecture •Digital signature, fingerprints and certificates: The standardized Elliptic Curve Digital Signature Algorithm ≥224 (recommended 256) [366], which performs signatureverification slightly faster (3.92-6.56 Mcycles) than the other two algorithms authorized by the NIST, DSA [367] and RSA [360] with 2048-bit key length. DSA was replaced by ECDSA because the latter operates with smaller numbers, and thus it is hard to find implementations of DSA supporting 2048 bits. On the other hand, RSA2048 has a similar overall performance (11.06-0.29 Mcycles), but ECDSA produces a much shorter signature (512 bits vs 2048) with a roughly similar security level. Digital signature keys will be renewed every 1-3 years. If ECDSA were to be compromised in the future, the order of preference for replacement would be DSA ≥2048 and RSA ≥2048. Table 2.8: Performance of relevant cryptographic functions [368] Algorithm MiB/s Cycles per byte µs to setup key and IV Cycles to setup key and IV 3DES/CTR 13 134.5 27.317 49989 AES/CTR 139 12.6 0.698 1277 Twofish/CTR 59 29.4 7.716 14121 Serpent/CTR 32 54.7 1.197 2191 RC6/CTR 101 17.3 2.802 5128 MARS/CTR 47 37.2 3.516 6435 Blowfish/CTR 58 30.0 62.683 114710 Whirlpool 57 30.5 Tiger 214 8.1 MD5 255 6.8 SHA-1 153 11.4 SHA-256 111 15.8 SHA-512 99 17.7 RIPEMD-128 153 11.4 RIPEMD-160 106 16.5 RIPEMD-256 158 11.1 HMAC(SHA-1) 147 11.9 0.509 932 Operation ms/Operation Mcycles/Operation RSA 2048 encryption—decryption 0.16—6.08 0.20—11.12 RSA 2048 signature—verification 6.05—0.16 11.06—0.29 DH 2048 key-pair generation with precomputation 2.14 3.92 DH 2048 key agreement 3.84 7.03 ECDH over GF(p) 256 key-par generation with precomputation 2.19 4.01 ECDH over GF(p) 256 key agreement 2.82 5.17 ECDSA over GF(p) 256 signature—verification with precomputation 2.14—3.58 3.92—6.56 Chapter 2. M-Health architectures: Background and proposed guidelines for their security enhancement 77 2.6.4 Integration of signal-based protection within biomedical standards This Section details an example of implementation of the Signal-Based Protection component of the newly proposed Secure Device Observation profile (SDO:SBP). Particularly, it is introduced a new file format based on DICOM that enables the efficient segmentation of an echocardiogram frame into regions in order to, on the one hand, enhance storage capacity and on the other, to enable a security-enhanced anonymization process. Basically, once the information to be anonymized is extracted, the process of anonymization is carried out through a signal-based security technique, called keytagging (introduced in Section 4.5), which meets essential requirements for the integration with DICOM: security, transparency to the image, cost-efficiency and fully compliance with JPEG2000. The following paragraphs explain this processes involved in detail. Segmentation based on echocardiogram characteristics On the whole, echocardiogram images have three different regions, as shown in Figure 2.12: the ultrasound image (white solid line), auxiliary images (green dotted line) and text (yellow dashed line). The ultrasound image is the most important because it contains the most relevant information for the diagnosis. The ultrasound is always present and only appears once in each frame. The auxiliary images surround and complement the ultrasound region. These are, for example, the ECG, the color label, other ultrasound images to supplement the information of the main ultrasound image and some symbols regarding the configuration. The text is always present in all the images and contains information such as patient data, date, time and configuration details of the acquisition session or measurements derived from the study, as shown in Figure 2.12. It is worth highlighting that certain text regions can contain very relevant information for the diagnosis. An ultrasound study can be composed of one or several frames. The studies with multiframes, acting as a video sequence, show a temporal evolution — e.g. the B mode of echocardiograms represent the heart movement. The typical number of frames that needs to be stored for accurate diagnosis is 16, but there may be as many as 64 frames, as commented in the introduction. For multiframe studies, it is worth noting that the only region that change over time is the ultrasound region, the rest remain invariant. For each echocardiogram acquisition device, the distribution and the size of the regions, the number of auxiliary regions and the text engraved are different. Another difference is that some image regions contain color information that is relevant for the diagnosis while others not — e.g. the Doppler modes include relevant information in color in the ultrasound image and in the color scale. 78 2.6. Guidelines for the security enhancement of the m-Health architecture Figure 2.12: Echocardiogram regions of the color Doppler mode. The white solid line contains the US, the green dotted the auxiliary images, and the yellow dashed the text. New Storage Format based on DICOM Basically, a DICOM file contains a header and the image. It is proposed creating a new image format, to be included in the DICOM standard, which takes advantage of the segmentation capabilities already incorporated in acquisition devices — and also available in certain postprocessing software. The final file, which the device shall provide, is a DICOM file (Section 2.1.4) and consequently has two parts: the DICOM header and the image coded according to the the proposed image format. These parts are described below. •DICOM header: The header composition for each image type is listed in Part 3 of the DICOM standard. The header fields included in a file depend on the image type and on the acquisition device. Nevertheless, it always stores certain mandatory data, such as the width, height, bit depth, color type and image format. The format of the image part is defined by means of the “Transfer Syntax Unique Identifier” header field, included in Part 5 of the DICOM standard. The header also contains information about the patient, such as the patient’s name, and other information regarding the echocardiogram test, such as the type of scan, position, acquisition device and number of frames. An important field of the DICOM header, included in the ultrasound image, is the calibration of the regions. It defines regions on the ultrasound image with different calibrations and the calibration parameters, which is of use to perform measurements in the ultrasound regions. To this regard, no changes are needed in the DICOM header in order to integrate the proposed image format Chapter 2. M-Health architectures: Background and proposed guidelines for their security enhancement 79 in the DICOM standard. It is only necessary to define a “Transfer Syntax Unique Identifier” for the proposed format, to permit its specification and implementation in DICOM files. •Proposed image format: DICOM can use either lossless or lossy compression, and the codecs supported are specified in Part 5 of the standard. Among them, JPEG2000 has been selected for this format given its efficiency and compatibility with the image-based security technique chosen (Section 4.5). It has been designed an image compression format that separates the image into regions. First, the acquisition device provides the regions and their types: ultrasound, auxiliary or text, as shown in Figure 2.12. Then, the acquisition device generates the image format, which consists of two parts: an Extensible Markup Language (XML) file, where the information related to the regions configuration is included, and the coded regions. The XML format is proposed because it is extremely portable and similar to the DICOM headers system. This file shall encode the text efficiently but without losing quality, since it can contain relevant information for the diagnosis. With respect to the independent storage of echocardiogram regions, it facilitates the addition of information for the diagnosis and the removal (or edition) of the least relevant regions for enhanced compactness. XML File: Figure 2.13 shows a common XML implementing this file format. The XML file contains the following information, including the corresponding XML fields between brackets: –The size of the whole image (tsize: w, h), as a copy of the corresponding fields contained in the DICOM header. –The regions configuration (region), one per region present in the image. The types are: ultra-sound or ROI (roi), auxiliary image (img) and text (text). –The position of the regions (pos). The initial position (x0, y0) has to be defined for all types of region and also the final position (x1, y1), except for the text region since its size is adjusted to the space available. All the regions have a rectangular shape. –The image codec (cod) may be indicated for the ultrasound and image regions, the default codec is JPEG2000. –The sizes of the ultrasound (size) and image (L) regions, in bytes. –In the case of having several frames, the ultrasound is the only region that changes in every frame, so only one region (roi) has to be indicated in the XML file. The number of frames is indicated in the ultrasound region (frames). The 80 2.6. Guidelines for the security enhancement of the m-Health architecture field size (size) of every ultrasound frame can be added in the case that the size changes for each one, otherwise it only needs to appear once. –The text regions (text) include their contents in the XML file. The acquisition device shall provides the XML file, as it already does with similar headers in the DICOM file — e.g. the file size or the calibration regions. <?xml version=”1.0” encoding=”UTF−8”?> <!DOCTYPE configuration SYSTEM ”roistorageformat.dtd”> <format> <tsize w=”512” h=”256”/> <region> <pos x0=”44” y0=”75” x1=”564” y1=”597”></pos> <roi><size>33893</size></roi> </region> <region> <pos x0=”0” y0=”0”></pos> <text>PATIENT?S DATA</text> </region> <region> <pos x0=”77” y0=”574” x1=”615” y1=”573”></pos> <img L=”149”></img> </region> </format> Figure 2.13: Example of XML file to support the new image format. Encoded regions: The second part corresponds to the encoded regions, except the text, which is included in the XML file. The role of the XML respect to these regions is to specify the order of the regions and the codec and compression quality for each individual region, which can be adjusted according to criteria such as their diagnostic relevance. This coding process would not add complexity if integrated in DICOM-compliant acquisition devices. Security mechanism The new DICOM-based format, which stores the echocardiogram information in differentiated regions, facilitates the implementation of image-based security techniques (e.g. steganography, watermarking, keytagging). The following paragraphs describe how the best fitting technique, keytagging, can enhance the levels of security of the echocardiogram. For the sake of clarity, a brief summary of the main principles of the keytagging algorithm is provided below. Chapter 2. M-Health architectures: Background and proposed guidelines for their security enhancement 81 Keytagging is a novel technique intended for the protection of medical image-based tests, thus, including echocardiograms. Complete details about this technique can be found in Section 4.5. Basically, it relies on the association of tags (any type of binary content, T) to stable, semistable or volatile features of the image, producing access keys (called keytags, KT) that depend on both the image and the tag content. Once the keytagging of an image Iis done, the keytags KT shall replace the original content of the tags Tassociated to the I, being KT and I— the latter may have undergone some modification(s) — necessary to retrieve T. Going to the multiframe case, the first step is to select the frame(s) Iand the content(s) Tto be associated by means of keytags KT. Multiframe images can include up to 64 frames and any of them can be selected for keytagging. Although a frame may be composed by more than one image region, Tshall be linked to the main image region, the ROI. To perform the association of KT, the keytagging algorithm transforms the ROI into grayscale, performs the Cohen-Daubechies-Feauveau (CDF) 9/7-tap wavelet transform of the grayscale ROI, extracts stable, semistable and volatile features from the wavelet coefficients — these features correspond to certain bits of relevant coefficients belonging to selected wavelet subband — and efficiently encodes Tbased on these features. The use of the CDF 9/7-tap wavelet transform, used by JPEG2000, guarantees high compliance of keytagging with this DICOM-compliant compressor — which is extensible to the standard. It is worth noting that, unlike other image-based security techniques (e.g. steganography, traditional watermarking), keytagging can associate information to the most stable features of the image without distorting it. As a consequence, this method preserves the clinical content of the image without the need for assessment, prevents eavesdropping and collusion attacks, and obtains a substantial capacity-robustness tradeoff with simple operations. Furthermore, another very relevant feature is that the strength of the link between Iand Tthrough KT can be adjusted. If a Tis linked to the image by means of a stable KT, the content is retrievable even from heavily modified (and distorted) versions of I, ˜ I. By contrast, semistable KT only retrieve the original contents of Tif the image modificacion(s) are mild (e.g. if ˜ Ipreserves its clinical content). Finally, volatile KT retrieve highly distorted ˜ Teven if the modification(s) of ˜ Iare mild, since they are intended to work only with the original I. Therefore, they have different applications in security —a complete description can be found in Section 4.7.1. For instance, stable keytags may be used to persistently associate relevant test IDs (e.g. the patient ID), semistable keytags are useful for associating information that will not be (by any means) retrievable if the image gets highly distorted (the test diagnosis) and volatile keytags to associate known patterns in order to detect, and even locate, tampered image areas. 88 3.1. Enhancement of the security of ISO/IEEE 11073 Personal Health Devices Table 3.2: Steps for a successful first connection between an agent and a manager in the extended X73PHD (I) Step Layer(s) Entity Action(s) IHE profile(s) State: processes of device(s) manufacturing and initial configuration (related to X73PHD framework) 1 1.5+ Mf Providing the agent with a BC reader and a passive RFID sensor, and each user with a BC or a RFID-T —e.g. as bracelets, as personal cards. SDO, DEC, ACM 2.0+ Providing the manager with a RFID sensor and a SC reader EUA 2.5 Providing the agent with a port that enables the attachment of a SC card reader with its corresponding keypad. SDO, DEC, ACM 2 1.0+ Mf Generating, signing and holding the CEA and CSA certs of the agent. These contain the agent’s EUI-64, and respectively, its public encryption key, PbEA, or its public signature verification key, PbSA. CEA and CSA are stored in a public repository and their paired private keys, PrEA and PrSA, are stored inside the agent. SDO:SEC 3 1.0+ Mf Repeating the actions of step 2 in the manager — if off-the-shelf — with CEM (only in Layers 2.0+) and CSM. SDO:SEC Ad Repeating the actions of step 2 in the manager — if not off-the-shelf — with CEM (only in Layers 2.0+) and CSM. 4 1.0+ Ad Installing the admin’s CEAd and CSAd certs, bundled with their password-protected private key, in the manager. SDO:SEC 5 1.0+ Ad Based on the consent of the users, implementing a XACML-based policy setting which users (e.g. trainers, physicians) can access the measurements of others (e.g. clients, patients) after authentication (with password in Layer 1.0, with RFID-T/SC in Layers 1.5+). EUA, ATNA, BPPC, SDO:SST 1.5+ Configuring the manager to establish the RFID-T/BC of the users from which it is allowed to receive measurements. SDO:CMA 2.5 Storing a copy of the public encryption cert (CEU) of the users from which it is allowed to receive measurements. SDO:CMA 6 0.5+ Ad Pairing/associating agent and manager with authentication (e.g. PIN, passkey, NFC) if the chosen transport technology supports it. SDO:SEC State: associating with authentication process (related to X73PHD standard) 7 1.0+ A Negotiating a security layer and launching its EUI (the manager may have requested it) together with a fresh challenge, Ch1. Signing this frame, x, with PrSA –to enable further verification– and sending it to the manager. SDO:CBA 8 1.0+ M, A The manager receives the frame and checks whether the security layer is supported. If it is not supported, the agent will attempt to establish an association with lower security requirements in s24. If the proposed security is supported, the manager consults its association table to check if there has been previous association to that EUI. If so, the manager knows MK and goes to step 14 — unless if frame x contains a request to renew some key or cert. SDO:CBA 9 1.0+ M Sending a frame to the agent’s manufacturer, including the administrator’s certificates CEAd, CSAd and x (from s7), concatenated with the admin’s fingerprint. To obtain the fingerprint, the admin is required to manually introduce the password of his/her private signature key, PrSAd. SDO:SRC 10 1.0+ Mf Verifying the fingerprint of y and the signature of x, and also that CSAd corresponds to the buyer of that agent. SDO:SRC 11 1.0+ Mf Sending its certificate CSMf, the agent’s certificates CSA and CEA and MK signed by the manufacturer. If x (from s7) contained a renewal request –which happens with a periodicity of 1-3 years–, both the old and the new key/cert requested will be attached and digitally signed. This entire frame is encrypted with the corresponding admin’s public encryption key, PbEAd. SDO:SRC 12 1.0+ M Decrypting the frame by using PrEAd. Then, verifying the certs by means of CRL or OCSP. If they are not valid, rejecting the connection — by means of a frame in s24 — and instructing the admin to contact the agent’s manufacturer. Otherwise, PbMf, PbSA and PbEA are obtained. SDO:SRC, ACM 13 1.0+ M Using PbMf to verify DS(MK,Mf), both decrypted in the previous step. If it is valid, obtaining MK. SDO:CBA-SRC 14 1.0+ M Using PbSA to verify the signature of frame x (from step 7). If it is valid, obtaining the challenge Ch1 and generating its own fresh challenge, Ch2. SDO:CBA 15 1.0+ M If x (from s7) contained a renewal request –which happens with a periodicity of 1-3 years–, sending to the agent both the old and the new key/cert requested and its digital signature — by the manufacturer —, all encrypted with its public encryption key, PbEA. SDO:SRC Chapter 3. Enhancement of the security of standard protocols for the exchange of biomedical information 89 Table 3.3: Steps for a successful first connection between an agent and a manager in the extended X73PHD (II) Step Layer(s) Entity Action(s) IHE profile(s) State: processes of device(s) manufacturing and initial configuration (related to X73PHD framework) 16 1.0+ A Decrypting the frame with its private decryption key, PrEA. Next, checking that the signature of the frame is valid and that the old cert/key is correct. SDO:SRC 17 1.0+ A Accepting or rejecting the update of the key/cert (based on the previous step) by means of a frame sent to the manager. Destroying the old key/cert in case of acceptance and sending a warning message to the admin otherwise. SDO:SRC, ACM 18 1.0+ M Sending an authentication frame, composed of PbEA{Ch2}and h(Ch1 + h(Ch2) + h(MK)), to the agent. SDO:CBA 19 1.0+ A Decrypting Ch2 by using PrEA. Using it, Ch1 and MK to check that the received h(Ch1+h(Ch2)+h(MK)) is valid. Authenticating the manager if the verification is successful. SDO:CBA 20 1.0+ A Calculating h(h(Ch1)+Ch2+h(MK)) and sending it to the manager. SDO:CBA 21 1.0+ M Authenticating the agent if the verification of the frame received is successful. SDO:CBA 22 1.0+ M Confirming the authentication to the agent, by sending the frame h(Ch1+Ch2+h(MK)). SDO:CBA 23 1.0+ A, M Deriving session keys for encryption, S = h(MK + Ch1) + Ch2, and authentication, SA = h(MK+ Ch2) + Ch1. SDO:SRC-SEC 24 1.0+ A, M Aborting the connection if the certs of the agent are not valid (s12) or to negotiating a lower security layer that both agent and manager support (s8). The frames exchanged between agent and manager from here on are encrypted and authenticated. SDO:CBA-SRC State: configuring process (related to X73PHD standard) 25 1.0+ A Sending the frame Fi, encrypted with S, to establish the further transmission of measurements. This frame is concatenated with a Hash Message Authentication Code, HMAC(S{Fi}, SA), dependent on both the encrypted frame, and on the session key for authentication SA. The resulting frame, [S{Fi}, HMAC(S{Fi}, SA)], is denoted as C&A(Fi, S, SA), named after “Ciphering & Authentication”. SDO:SEC 26 1.0+ M Using SA to verify the HMAC of Fi. If it is valid, then the manager deciphers the frame with S and interprets it. This process, inverse to that in s25, is denoted as Ch&D(C&A(Fi, S, SA)) named after “Checking HMAC & Deciphering”. SDO:SEC 27 1.0+ M Sending the frame C&A(Fj, S, SA) to continue with the configuration process. SDO:SEC 28 1.0+ A Using SA to verify the HMAC of Fj. SDO:SEC Steps 25-28 may be repeated several times, until all configuration frames have been exchanged. State: data measurement and transmission processes (related to X73PHD standard and its framework) 29 1.5-2.0 U Swiping his/her RFID-T/BC through the passive sensor of the agent. SDO:UID, DEC:RFID-T or BC 2.5 Inserting his/her SC in the slot of the agent and introducing his/her PIN/password. SDO:UID, DEC:SC 30 2.0+ A Applying C&A() to a frame Fi = h(PersonID) and sending C&A(Fi, S, SA) in order to find out if the manager knows the user corresponding to h(PersonID). SDO:CMA 31 1.5+ M Applying Ch&D() to the received frame and obtaining Fi = h(PersonID). SDO:CMA 1.5+ Checking that the admin had configured a PersonID whose hash is precisely the received h(PersonID). Otherwise, requesting the admin to do it now. If he/she does nothing, rejecting the association. SDO:CMA ACM 2.5 Checking that the admin had stored the public certificate whose PersonID hash is precisely the received h(PersonID). Otherwise, requesting the admin to do it now. If he/she does nothing, rejecting the association. SDO:CMA ACM 1.5+ If the connection has not been rejected, checking the state of the ID credentials of that user (enabled or disabled). If it is disabled, sending a warning message to both the user and the admin. SDO:CMA ACM 90 3.1. Enhancement of the security of ISO/IEEE 11073 Personal Health Devices Table 3.4: Steps for a successful first connection between an agent and a manager in the extended X73PHD (III) Step Layer(s) Entity Action(s) IHE profile(s) 32 1.5+ M Sending C&A([PersonID, state], S, SA) to the agent. SDO:CMA 33 1.5+ A Calculating Ch&D(C&A([PersonID, state], S, SA)). Subsequently, checking that the PersonID of the user identified in the agent matches the PersonID received from the manager. If the state of the credentials is disabled, the acquisition session is not started, go back to step 29 SDO:CMA, ACM 34 0+ U Taking his/her measurements “d” by means of the agent. DEC, WCM 1.5+ A Logging off the user 10-seconds after he/she takes his/her last measurement. SDO:CMA 0+ A Going back to step 29 to begin a new acquisition session — unless agent and manager were disassociated for some reason. SDO:CMA 35 1.5-2.0 A Adding the PersonID, provided by his/her RFID-T or BC, to d. D= [d, PersonID]. SDO:UID, DEC: RFID-T or BC, WCM 2.5 Adding the user’s fingerprint, provided by his/her SC, to d. D= [d, FP(d, U)]. SDO:UID-UDS, DEC:SC, WCM 36 1.0+ A If it does not know the user (checked in step 31), generating a symmetric key for storage, StAi, calculating and storing StAi{D}and PbEM{StAi}in the PM-Store. Next, wiping properly the variables and buffers storing the plain D and StAi, and going back to step 29. SDO:SST 37 2.0+ A Adding its own fingerprint to D, D=[D, FP(D,A)] SDO:MV, DEC, WCM 38 1.0+ A Sending C&A(D,S,SA) to the manager. SDO:SEC, DEC, WCM 39 1.0+ M Calculating Ch&D(C&A(D,S,SA)). SDO:SEC, DEC, WCM 40 2.0+ M Verifying the agent’s fingerprint in D with its associated public signature verification key, PbSA. If it is not valid, refusing D. SDO:MV, DEC, WCM 41 2.5 M Verifying the user’s fingerprint in D, with its associated public signature verification key, PbSU. If it is not valid, refusing D. SDO:MV, DEC, WCM 42 2.0+ A If steps s38 or s39 fail, getting notified and storing D in the PM-store, as in step 33 — the data rejected. Instructing the admin to check the certificates CSA and CSU, and rejecting the association. ACM 43 1.0+ M Mapping the acquired measurements D for its representation with IHE-harmonized syntax and semantics. RTM, DEC, WCM 44 1.0+ M The measurements D are readily available for applications that need to process them online (e.g. real-time displaying). 45 1.0+ M Generation of physiological alarms, if the value(s) of D are far out of a healthy range (e.g. systolic blood pressure ≥180 mmHg, the user did not take several pills of his/her medications), and also technical alarms, if the values of D are inconsistent (e.g. constant zero). ACM, WCM 46 1.0+ M Secure standard storage of D: SDO:SST Creation of a symmetric key StMi for encrypting StMi{D}of D. Storage of StMi{D}in a HL7 Personal Healthcare Monitoring Report (PHMR). Wiping properly the variables and buffers storing the plain D and StMi. The securely stored D are available for those users authorized by the XACML policy —implemented in step 5— after an authentication process that will filter any attempt of code injection. Chapter 3. Enhancement of the security of standard protocols for the exchange of biomedical information 91 3.2 Evaluation of the security-enhanced ISO/IEEE 11073 PHD This section begins assessing the security of the proposal in Section 3.1, by analyzing the countermeasures that each security layer implements against different threats, in Section 3.2.1. Then, the implications that this extension would have for the X73PHD models are laid out in Section 3.2.2. Next, Section 3.2.3 evaluates the performance of the extension, by measuring the impact that the implementation of each layer produces on the X73PHD architecture — in terms of overheads and delays — and on its surrounding framework. Finally, the potential limitations of this proposal are summarized in Section 3.2.4. 3.2.1 Risk assessment The risk assessment is depicted in detail in Table 3.5. Columns 1-2 summarize the risk assessment of the X73PHD architecture —as described in Section 2.5— and columns 3-4 the measures against those threats depending on the layer implemented —based on the proposal described in Section 3.1. Table 3.5 shows that the preexisting Layer 0 implements no security and that the preexisting Layer 0.5 puts emphasis only on the secure pairing of devices (which on the other hand might be counterfeits or have been hacked) and on secure wireless communications between them. Layers 1.0+ add security measures to both agent and manager to detect counterfeiting, to impede hacking and undue local access to measurements, and new countermeasures for private and authenticated communications. Layers 1.5+ include the possibility that several users share agents and managers with privacy, by means of secure identification/authentication with BC/RFID tokens or smart-cards, automatized user log-off, remote activation/deactivation of identification credentials and checking that the user is known by the manager before he/she takes his/her measurements. In addition, these layers also implement audit trails of measurements acquisition, transmission (e.g. to EHR systems) and access to guarantee data traceability and user accountability. Layers 2.0+ add mandatory timestamps and fingerprints in the measurements for a strengthened verification in the manager. Finally, Layer 2.5 improves the identification of users in the agent (by requiring a smartcard and a password), and includes the digital signature of the user in his/her measurements to prevent their repudiation. The chosen algorithms, their key sizes and crypto periods (Section 2.6.3) are considered secure until 2030, regardless of the layer. Furthermore, the key management policy (described in Section 3.1) is oriented towards Perfect Forward Secrecy. This implies that in the unlikely case that a session key is cracked, the damage is confined to that session 92 3.2. Evaluation of the security-enhanced ISO/IEEE 11073 PHD Table 3.5: Security analysis of the architecture of the layer-based, enhanced-X73PHD Threats Countermeasures Layer: 0 0.5 1.0 1.5 2.0 2.5 USER User impersonation by credential theft or no request of identification/authentication credentials Use of physical tokens for user identification/authentication !!! Use of an additional password for user identification in the agent ! Use of an additional password for user authentication in the manager Op. Op. Remote activation/deactivation of identification credentials —used in the agent— and user warnings !!! Exploitation of open sessions User log-off 10s after taking user measurements !!! DoS by wrong user identification in the agent BC/RFID token requested !!! Smartcard requested ! Repudiation of user measurements Including the PersonID attribute with all the measurements !!! Including a digital signature of the user in his/her meas. ! Including a timestamp with meas. from agent’s PM-store !!!!!! Extending the timestamp to freshly acquired measurement ! ! AGENT Device counterfeiting Device certificate, signed by manufacturer, requested !!!! Authentication by manager !!!! Device hacking to deliver wrong measurements Fingerprints in measurements ! ! Manager verifies fingerprints ! ! Data theft by local access Asymmetric encryption of the PM store: decryption possible only in the manager !!!! Proper wiping of critical variables/buffers !!!! Sending measurements to a wrong manager Checking if the user is known by the manager !!! AGENT-MANAGER Injection of commands Secure transport ! Op. Op. Op. Op. Frames with HMACs !!!! Cracking of cryptographic keys Use of secure algorithms, complementary to those of the secure transport layer !!!! Key sizes recommended by NIST !!!! Keys are renewed (and the previous ones are destroyed) before expiration or if they are revoked !!!! Perfect Forward Secrecy !!!! Eavesdropping Secure transport ! Op. Op. Op. Op. Frames encryption !!!! Replay attack Secure transport ! Op. Op. Op. Op. Fresh challenges and counter in frames !!!! Man in the middle attack Secure device pairing (PIN, PBC, NFC, etc.) ! Op. Op. Op. Op. Agent-manager authentication !!!! DoS by injecting noise HMACs and retrials !!!! Report to admin, secure storage of meas. in PM-store !!!! MANAGER Counterfeiting to associate to a rightful agent Admin and agent’s manufacturer authorization requested to managers. !!!! If ad-hoc device, cert. requested –signed by its manufacturer ! ! Authentication by agent !!!! Hacking to corrupt the measurements Audit trails of measurements acquisition, transmission and access !!! Data theft by local access Single-use keys and asymmetric encryption of measurements: authenticators required for decryption !!!! Proper wiping of critical variables/buffers !!!! Access of authorized users to unintended measurements Role-based access control: regular users, professionals, admin, automatized online and offline applications !!! Injection of malicious codes Command filtering in the authentication system !!! Chapter 3. Enhancement of the security of standard protocols for the exchange of biomedical information 93 and the attacker will only be able to read those frames (if he/she discovers S) or to authenticate forged frames (if he/she discovers SA). To minimize the likelihood that the master key is discovered, it is used only to derive session keys that protect the transmission of frames. But even if at some point an attacker discovers MK and some session keys, frames exchanged in previous sessions will be safe since session keys are derived from MK and another random secret, Ch2, which is protected by the public key of the agent. Finally, the measurements from an acquisition session are protected with symmetric keys of single use protected with asymmetric cryptography. 3.2.2 Implications for ISO/IEEE 11073 PHD The implications that the proposal suggested in Section 3.1 would have for X73PHD can be seen through the modifications involving its service, communication and domain information models. This is mainly illustrated in Tables 3.6-3.8 — service model and, eventually, DIM — and Figure 3.3 –communication model and, incidentally, service model. The four columns on the left in Tables 3.6-3.8 show the four modified and four newlycreated frames to meet the proposals suggested in Section 3.1. The modified frames and attributes are shown in shaded cells, while the newly created ones appear in unshaded cells. Additionally, an explanation of the frame or attribute can be found in the second to the right column, which is linked to the proposals in Section 3.1. The layers involved in every modification are shown in the far right column. A few of them are required only in Layers 2 and 2.5. Regarding the — MDER [74] — data types of the attributes, those with a fixed numeric value — indicated between brackets — are INT-U16, and the rest of them — hashes, HMACs, FingerPrints, etc. — are OCTET STRING. The types CHOICE and SEQUENCE (concatenation) are used to represent the combination of two or more attributes. Similarly, a complementary illustration of the implications is provided in Figure 3.3. The figure shows a conveniently modified FSM of both agents and managers. Thus, it includes the existing states frames and attributes, along with the newly suggested substate (authenticating), and the new frames and attributes. The links between the new frames and the steps (noted as sX and suggested in Tables 3.2-3.4) are also shown in Figure 3.3. To differentiate existing and newly proposed states, frames and attributes, the latter are written in italics. 94 3.2. Evaluation of the security-enhanced ISO/IEEE 11073 PHD Figure 3.3: Proposed Finite State Machine (FSM) for both agents and managers, including the states frames, and attributes existing in the current approved version of X73PHD, along with the newly suggested sub-state (authenticating sub-state), and the new frames and attributes. Chapter 3. Enhancement of the security of standard protocols for the exchange of biomedical information 95 Table 3.6: Generic structures (lightly shaded cells), modified (shaded cells) and newly created (unshaded cells) frames and attributes in the extended X73PHD (I) Frame Sub-Frame (level 1) Sub-Frame (level 2) Sub-Frame (level 3) Additional information Security Layers AarqApdu PhdAssociationInformation ProtocolVersion protocol-version4(3) This bit shall be set if the extended version of 11073-20601 is supported. 0+ option list RegCertDataList It is recommended adding auth-body-IHE(3) to the AuthBody compliance list. 0+ Layer This indicates the layer of the extended version of 11073-20601. 0+ zero(0) 0+ zero-and-a-half(1) 0+ one(2) 0+ one-and-a-half(3) 0+ two(4) 0+ two-and-a-half(5) 0+ RenewalRequest Request to renew z, the master key and/or certain certificates, {MK, CEA, CSA, CSMf}. 1+ MasterKey(0) 1+ AgentEncryptionCert(1) 1+ AgentSignatureCert(2) 1+ ManufacturerSignatureCert(3) 1+ Challenge 1 This is the agent-to-manager challenge, Ch1. 1+ DigitalSignature Signature by the agent, DS(PhdAssociationInformation, PrSA). 1+ 96 3.2. Evaluation of the security-enhanced ISO/IEEE 11073 PHD Table 3.7: Generic structures (lightly shaded cells), modified (shaded cells) and newly created (unshaded cells) frames and attributes in the extended X73PHD (II) Frame Sub-Frame (level 1) Sub-Frame (level 3) Additional information Security Layers RerqApdu This is a manager-to-agent frame, encrypted with the public encr. key of the agent, PbEA. 1+ Renewal{MasterKey, AgentEncryptionCert, AgentSignatureCert, ManufacturerSignatureCert} [z old, z]. Purpose: updating an old key/certificate with a new one. 1+ DigitalSignature Signature by the manufacturer, DS(Renewal{...}, PrSMf). 1+ RereApdu This is an agent-to-manager frame. 1+ ResultRenewal{MasterKey, accepted h([z old, z]). Purpose: to approve the update of a key/cert. 1+ AgentEncryptionCert, AgentSignatureCert, rejected-unmatching- {key/cert} h([z, z old]). Purpose: to reject the update of a key/cert, z, because the value of the current key/cert in RerqApdu, z old, was not correct. 1+ ManufacturerSignatureCert}rejected-invalid-signature h([z, z old, z old]). Purpose: to reject the update of the key/cert because the signature in RerqApdu was invalid. 1+ AucApdu AuthenticationChallenge This is a manager-to-agent frame. It contains the manager-to-agent protected challenge, PbEA{Ch2}, concatenated with h(Ch1+h(Ch2)+h(MK)). Purpose: to allow the agent verify that the manager knows MK. 1+ AurApdu This could be both an agent-to-manager and a manager-to-agent frame. 1+ AuthenticationResponseAgent This is an agent-to-manager frame, based on hashes to hinder its manipulation. 1+ accepted h(h(Ch1)+Ch2+h(MK)). Purpose: to verify positively AucApdu. 1+ rejected-unmatching-hash h(h(Ch1)+h(Ch2)+h(MK)). Purpose: to indicate that AucApdu does not match the value calculated by the agent. 1+ AuthenticationResponseManager This is a manager-to-agent frame, based on hashes to hinder its manipulation. 1+ accepted h(Ch2+1+h(MK)). Purpose: to verify AuthenticationResponseAgent positively. 1+ rejected-unmatching-hash h(Ch2+2+h(MK)). Purpose: to indicate that AuthenticationResponseAgent does not match the value calculated by the manager. 1+ Chapter 3. Enhancement of the security of standard protocols for the exchange of biomedical information 97 Table 3.8: Generic structures (lightly shaded cells), modified (shaded cells) and newly created (unshaded cells) frames and attributes in the extended X73PHD (III) Frame Sub-Frame (level 1) Sub-Frame (level 2) Sub-Frame (level 3) Additional information Security Layers AareApdu AssociateResult Encrypted with session key S if Layer requires so. 1+ rejected-unsupported-layer(9) 1+ rejected-invalid-certificate(10) 1+ HMAC Hash Message Authentication Code, HMAC(AssociateResult, SA). Purpose: to authenticate AssociateResult. 1+ RlrqApdu ReleaseRequestReason ReleaseRequestReason travels encrypted with session key S if Layer requires so. 1+ person-unknown(3) This could be both an agent-to-manager and a manager-to-agent frame. Purpose: it is sent by the manager when it does not know the person to whom the data pertain, and by the agent when it checks that the manager does not know that person. 2+ invalid-agent-fingerprint(4) This is a manager-to-agent frame. Purpose: to indicate that the agent’s fingerprint is invalid. 2+ invalid-user-fingerprint(5) This is a manager-to-agent frame. Purpose: to indicate that the the user’s fingerprint is invalid. 2.5 HMAC HMAC(ReleaseRequestReason, SA). 1+ PrstApdu DataApdu DataApdu travels encrypted with session key S if Layer requires so. 1+ Message personID If Layer ≤1.0, this is the PersonID as defined in 11073-20601T M -2014 (16b). If 1.5 ≤Layer ≤2.0, then PersonID takes the same value as the EUI-64 RFID-T/BC (64b). If Layer == 2.5, then PersonID is the Subject Unique Identifier of the X.509 CU (64b). 1+ knownPerson This is the hash of PersonID in agent-to-manager frames and PersonID otherwise. 2+ FingerPrint This is necessary if measurement data are present inside the frame. 2+ Counter and HMAC HMAC(DataApdu, SA). 1+ 104 3.3. Enhancement of the security of SCP-ECG wit teaching, research, examination, diagnosis and storage. Both classification, parts of a SCP-ECG file and possible uses, have been taken into account for the definition of a RBAC policy that preserves the principles of data processing and purpose binding of privacy. The following privacy profiles, which include different privacy measures and access privileges (see Figure 3.5), were defined after consultation with three independent cardiologists: 0. Teaching/research •Use: to disclose those parts useful for teaching/research ([B], C and [D]). •Privacy: [B], C and [D] are in plaintext and Ais replaced by a template with bogus values. •Privileges: reading. 1. Examination •Use: to allow clinicians caring for the patient to read the whole SCP-ECG. •Privacy: all the parts are encrypted. •Privileges: reading. 2. Diagnosis •Use: to complement the file with additional data, such as the delineation of ECG fiducial points or the diagnosis of the cardiologist who interprets the ECG. •Privacy: all the parts are encrypted. •Privileges: reading all the parts, writing [D] and tags 15, 17, 19-20 of part A, which identify the analyzing device, department, institution and physician. 3. Storage •Use: secure storage. •Privacy: encryption of all the parts. •Privileges: making protected exact copies of the file, with no permission to interpret, write or modify the plaintext. Chapter 3. Enhancement of the security of standard protocols for the exchange of biomedical information 105 Figure 3.4: A scenario of use for the SCP-ECG security extension. Regular and security-enhanced SCP-ECG files are depicted in detail in Figures 2.3 and 3.5. 106 3.3. Enhancement of the security of SCP-ECG Figure 3.5: Security-enhanced SCP-ECG file types depending on its profile (Section 3.3.1). It shows which security element ultimately protect each part and which access privileges correspond to the intended user(s). Section 0, parts A,[B],Cand [D] defined in Figure 2.3, section 12 defined in Table 3.10. Chapter 3. Enhancement of the security of standard protocols for the exchange of biomedical information 107 These privacy profiles implement part-level encryption in a manner similar to that of the Context Envelopes defined by DICOM. The content of the parts is sealed by means of encryption and the syntax to make them verifiable and retrievable to the targeted user(s) is placed in a new section (Section 3.3.2). As in the X73PHD extension, this proposal combines symmetric encryption, asymmetric encryption and digital signatures for an optimal security-performance tradeoff, and it follows the suggestions for the choice of algorithms of the SDO profile (Section 2.6.3). As regards to supporting several profiles in a single SCP-ECG, this is not recommended since it would lead to too large an increase in the size of the syntax with respect to the average size of a SCP-ECG file. In summary, each security-enhanced SCP-ECG file is generated on demand in the CD — it could also be generated in other points of the architecture, such as in the HS to protect already stored regular SCP-ECG files — from its regular counterpart, choosing the best-fitted privacy profile according to the information retrieved from the IHE profile XDS and BPPC — implemented by CDs and HS integrated in the X73PHD-SCP-IHE framework. 3.3.2 SCP-ECG extension The SCP-ECG is a well defined protocol, which can be extended by defining new sections (numbers 12 to 127 and those above 1023, see [212]) or employing existing free spaces. Since security is not addressed in any existing section, it is proposed dedicating an entirely new section to enhance the security of SCP-ECG files according to the proposal in Section 3.3.1. The notation regarding cryptographic elements of this extension is contained in Table 3.1. To avoid confusion with regular files we call this new format security-enhanced (or protected) SCP-ECG. The files are given the extension .pscp for easy distinction. Section 12 structure Like the rest of the SCP-ECG sections, this is divided into two parts: •The Section ID Header, which is common to all the sections in this standard (Figure 2.3) and precedes the Data Part. It is composed of: –Bytes 1 to 2: 16 bit CRC-CCITT over the entire section (excluding these two bytes). –Bytes 3 to 4: Section ID number. –Bytes 5 to 8: Section length including the Section ID header (in bytes). –Byte 9: Version Number of the Section. –Byte 10: Version Number of the Protocol. 108 3.3. Enhancement of the security of SCP-ECG –Byte 11 to 16: Reserved. •The Data Part (Table 3.10), which adopts the structure corresponding to Section 1 to allow the flexible storage of several fields of variable length. Each field details the options (e.g. privacy profile, cryptographic algorithms and parameter values) to set up a security-enhanced SCP-ECG file. These are described by: –The corresponding tag: a specification byte which indicates the field we refer to. It would be possible to use up to 255 different tags, although only 7 are required. –The length: a 2-byte specification indicating the length of the field value (in bytes). The maximum possible length described by 2 unsigned bytes is 65535 bytes, but in practice this value is much lower. –The parameter data: the content of the field, an element to provide security. If length == 0, the parameter data of the corresponding tag is empty. Finally, it is necessary to add the corresponding pointer in Section 0 (Figure 2.3) to address the new section, indicating: section ID number (2 bytes): 12, section length (4 bytes) and index to section (4 bytes). Section 12 content The tags included in Section 12 (Table 3.10) enable the security measures under this extension: •Role-Based Access Control by means of privacy profiles (RBAC, Section 3.3.1). Tag involved: 0. Specifies the professional role of the user, the ECG file is protected accordingly. •Digital signature (DS) to verify the reliability of the ECG signal and the rest of the data — thus, protecting against forgery and manipulation. Tags involved: 1. CSE, identifies the entity generating the security-enhanced SCP-ECG file and contains his/her public key for signature, PbSE. 2. Specifies which hash function has been used, taking as input the whole file. 3. Stores the DS, resulting from the encryption of the hash with the private key of the protecting entity, PrSE. •Part-level encryption: which maintains confidentiality according to the consent of the patient. Tags involved: Chapter 3. Enhancement of the security of standard protocols for the exchange of biomedical information 109 Table 3.10: Structure and content of the Section 12 Data Part of a security-enhanced SCP-ECG file Tag Length Value (parameter data) 0 1 byte Privacy profile Value Type 0 Teaching/research 1 Examination 2 Diagnosis 3 Storage 1 length Certificate of the entity generating the security-enhanced file (PEM coding): The certificate shall be X.509 type. Three different public key algorithms are allowed for signature: ECDSA (≥224, recommended 256), DSA (≥2048) and RSA (≥2048). See Table 3.11 for certificate sizes. 2 1 byte Hash function ID Value Algorithm 0 RIPEMD-256 1 Whirlpool 2 SHA-256 3 length Digital signature,DS(pSCP −ECG, PrSE) This is the encryption of the hash using the private key for signature of the entity generating the file (PrSE, initially DS = blank). At the user’s end the DS is used to verify the integrity and authenticate the file. The length of the DS depends on the type of entity’s certificate for signature (tag 1), see Table 3.11. 4 1 byte Symmetric encryption algorithm ID Value Algorithm 0 Twofish 1 Serpent 2 RC6 3 MARS 4 AES 5 length Encrypted symmetric key(s),encrypt(S, T ag 4, PbEU) The symmetric encryption key(s) S— to be used for encrypting the confidential sections — are generated with a secure random function and encrypted with the public key specified in the user’s certificate, PbEU (entity’s certificate in profile 3). Thus, the length of this field depends on the user’s certificate type, see Table 3.11. This field is not present in profile 0 (tag 0), since there is no encrypted parts. 6 25·n bytes Secure access record, SAR. Each entry is: Byte Name Type Notes 1 to 15 Certificate issuer, ASCII Common Name 16 to 20 Certificate serial Integer number 21 Type of access Integer Allowed values: 0 to 3 22 to 25 Request date Integer Seconds since January 1, 1970, 00:00:00 GMT For profiles 0-2 there is only one entry, for profile 3 there may be several. 110 3.4. Evaluation of the security-enhanced SCP-ECG 0. Indicates which parts of the file are private (Section 3.3.1). 4. Specifies which symmetric cipher is used to encrypt the content of the private parts. 5. Stores the symmetric key(s), randomly generated and protected by the public key of each authorized user. Only the intended user can recover the symmetric key(s) and decrypt the confidential parts of the file, for which he/she needs to load his/her private key. •Secure Access Record (SAR), which reinforces the implementation of the ATNA profile in the provision of transparency to the patient. Tag involved: 6. Has a double mission: to identify publicly and uniquely the intended user for privacy profiles 0-2 and to keep an updated copy of all granted accesses for profile 3. The protecting entity can immediately export this list for patient consultation. 3.4 Evaluation of the security-enhanced SCP-ECG This section begins evaluating the security of the proposal in Section 3.3 against different threats (Section 3.4.1). Next, the implications of this extension for the SCP-ECG file format and its performance are analyzed (Section 3.4.2). Finally, the potential limitations of this proposal are summarized (Section 3.4.3). 3.4.1 Risk assessment The security-enhanced format for SCP-ECG files, to be managed by CDs and HS (maybe also by PHDs) in secure m-Health architectures, involves cryptographic elements, publicly stored in the newly created Section 12 of these extended files. In this proposal, it is considered that plain SCP-ECG files will be totally replaced by their security-enhanced counterparts, that the variables created in the processes of protection and access will be thoroughly cleaned and that the private keys involved will we managed adequately. Therefore, the possibility that an attacker accesses a CD or a HS and founds unprotected SCP-ECG files, relevant ECG information or private keys — e.g. in the hard drive, in the RAM memory or in cache — is excluded. Regarding the security-enhanced SCP-ECG files, they cannot be considered as hard to obtain always since their transmission in the BAN/PAN may be wireless — with a security configuration that may be inadequate – and because some patients may cooperate in granting access (with their informed consent) to Chapter 3. Enhancement of the security of standard protocols for the exchange of biomedical information 111 their biomedical tests (or part of them) for certain m-Health applications — e.g. research — under strict RBAC, which increases the number of requests for SCP-ECG files (and the number of potential opportunities for attackers accordingly). An attacker with access to security-enhanced SCP-ECG files may try to perform certain attack(s). The following risk assessment analyzes attacks depending on the actions intended by the attacker and the cryptographic elements he/she needs access to. •Unauthorized reading of confidential parts from security-enhanced SCP-ECGs. Its Section 12 contains the syntax to read the contents that are confidential, and given its relevance, it is protected with asymmetric encryption. Breaking this encryption or obtaining the private key(s) from an authorized user is considered highly unlikely. Therefore, the only opportunity for an attacker is attempting a brute-force attack on each individual confidential section — since they are encrypted with independent symmetric encryption keys —, which has a low success likelihood. •Generation of forged security-enhanced SCP-ECG files. Anyone can create his/her own security-enhanced SCP-ECG files, since the procedure is public. However, attempting to forge the origin of the biomedical test requires generating a legitimate digital signature from a trusted entity (e.g. a rightful CD). To do so, the attacker would need to break or steal the private key of a trusted entity — which is highly unlikely if appropriately protected. •Malicious removal of legitimate contents from security-enhanced SCP-ECG files. An attacker may remove certain parts of a legitimate file. Nonetheless, this would lead to a failed verification of the digital signature embedded in its Section 12, which will alert authorized users about the tampering. •Malicious edition of legitimate security-enhanced SCP-ECG files. This is a combination of the previous types of attack. It requires knowing the plain contents of the file (thus, breaking the encryption of the confidential parts), editing certain part(s) (as intended by the attacker) and re-protect the SCP-ECG file. The last step includes re-encrypting the confidential parts of the file and replacing the previous signature with a new valid one, the latter requiring the private key of a trusted entity — which is highly unlikely to obtain. Therefore, this analysis demonstrates that extended SCP-ECG files feature adequate levels of security. 112 3.4. Evaluation of the security-enhanced SCP-ECG Table 3.11: Typical size (KB) of Section 12 fields of a security-enhanced SCP-ECG file Entity’s certificate type Tag 1 Tag 3 User’s certificate type Tag 5 ECDSA 224 0.6 0.06 ECDSA 256 0.6 0.06 RSA 2048 0.26 DSA 2048 1.6 0.05 RSA 4096 0.51 DSA 4096 2.6 0.05 RSA 2048 1.1 0.26 Tags 0, 2, 4 Tag 6 RSA 4096 1.8 0.51 0.003 0.025·#entries 3.4.2 Implications for SCP-ECG and impact on its architecture The main implications for this standard are the addition of the new Section 12, the encryption of confidential contents — which depends on the privacy profile implemented — and the coordination with the security-enhanced ISO/IEEE 11073 PHD standard for the exchange of ECG information. The use of encryption has a severe distortion effect on confidential SCP-ECG parts. This effect has been evaluated on 30 SCP-ECG files from www.openecg.net, by calculating the normalized cross correlation, corr ∈[0,1], between all pairs of metadata and signals from different files. Related signal pairs, such as leads from the same patient record, obtained corr values higher than 0.6 while unrelated signal (and metadata) pairs obtained values close to 0. As expected, the corr values between pairs of original signals/metadata and their encrypted counterparts were also close to 0, showing the decorrelation power of encryption. On the other hand, the security extension of SCP-ECG files also results in a different file size and access time: •File size. The addition of Section 12 implies dealing with bigger files, which will increase the size of the file database and the time used for the transmission of these files. As shown in Table 3.11, the main factors are the certificate type of the entity generating the protected file (Tag 1), which also determines the length of the DS (Tag 3), and the user’s certificate type, which fixes the encrypted symmetric key(s) length (Tag 5). They account for approximately 95%-99% of the section size. The contribution of the rest of the fields (hash function ID, symmetric encryption ID, etc.) is very low. For security-enhanced SCP-ECG files implementing privacy profile 3 the number of Chapter 3. Enhancement of the security of standard protocols for the exchange of biomedical information 113 entries in Tag 6 may grow substantially, so it is proposed limiting this field to the last 40 accesses (1 KB). Notice in Table 3.10 that Tag 5 is not included for profile 0. The section size ranges from 0.66 (profile 0 with ECDSA 224/256 entity’s cert, — Tag 5 is empty, 1 entry in Tag 6) to 4.16 KB (profile 3 with RSA 4096 entity’s cert for encryption in Tag 5, DSA 4096 entity’s cert for signature in Tags 1, 3 and 40 accesses in Tag 6). Since the size of a typical SCP-ECG file is 31 KB (Section 2.1.3), the typical overhead is within 0.66/31−4.16/31 ≃2−13.4%. When taking the minimum file size (7.4 KB), the overhead ranges from 0.66/7.4≃9% to 4.16/7.4≃56.2%. These results show the importance of choosing ECDSA certificates to reduce the overhead without security degradation. Finally, the overhead for the maximum file size (355 KB) ranges from 0.66/355 ≃0.2% to 4.16/355 ≃1.2%. •Protection-access time. This is the average delay introduced by the operations described in Section 3.3.2 through a software implementation (Section 3.5): –Security enhancement of a regular SCP-ECG file: typically 0.5-1 s. –Access to the contents of a security-enhanced SCP-ECG file: typically 0.5-1 s. –Generation of a security-enhanced SCP-ECG file (profiles 0-3) from another security-enhanced SCP-ECG file (profile 3, Figure 3.4): typically 1.5-2.5 s. The last procedure takes longer because it implies accessing the confidential contents and protecting again twice (one time to update the secure access record in the file of the protecting entity and add a new signature, and another to produce the whole user’s file). Comparing the time to generate the contents of a SCP-ECG file (≃10-30 s) and the delay to protect it, the latter is only ≃2-10 %. Comparing the delay to access a security-enhanced file to the time to represent its contents and interpret them (≥1 min), the former represents only ≤5 %. To provide a reference of the performance, all the tests were executed on an Intel Core 2 CPU E850 at 3.16 GHz running Windows XP. 3.4.3 Potential limitations Given the simplicity of this format extension, the only potential limitations might come from the discovery of vulnerabilities in the algorithms implementing the cryptographic functions used. Since the choice of algorithms falls directly in the newly proposed SDO (IHE) profile (Section 2.6.3), any related issue shall be solved from there, by updating periodically the list of algorithms — including novel, highly secure algorithms and removing those vulnerable or less secure. 216 Bibliography [370] M. Mart´ınez-Espronceda, I. Mart´ınez, L. Serrano, S. Led, J. D. Trigo, A. Marzo, J. Escayola, and J. Garc´ıa, “Implementation methodology for interoperable personal health devices with low-voltage low-power constraints,” IEEE Transactions on Information Technology in Biomedicine, vol. 15, no. 3, pp. 398–408, 2011. [371] M. Mart´ınez-Espronceda, J. D. Trigo, S. Led, H. G. Barr´on-Gonz´alez, J. Redondo, A. Baquero, and L. Serrano, “Event-driven, pattern-based methodology for cost-effective development of standardized personal health devices,” Computer methods and programs in biomedicine, vol. 117, no. 2, pp. 168–178, 2014. [372] H. Barr´on-Gonz´alez, M. Mart´ınez-Espronceda, J. Trigo, S. Led, and L. Serrano, “Proposal of a novel remote command and control configuration extension for interoperable Personal Health Devices (PHD) based on ISO/IEEE 11073 standard,” in 36th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC), Aug 2014, pp. 6312–6315. [373] A. Alesanco and J. Garc´ıa, “A simple method for guaranteeing ECG quality in real-time wavelet lossy coding,” EURASIP Journal Applied Signal Processing, vol. 2007, January 2007. [374] A. Alesanco and J. Garc´ıa, “Automatic real-time ECG coding methodology guaranteeing signal interpretation quality,” IEEE Transactions on Biomedical Engineering, vol. 55, no. 11, pp. 2519–2527, November 2008. [375] G. Moody and R. Mark, “The impact of the MIT-BIH Arrhythmia Database,” IEEE Engineering in Medicine and Biology Magazine, vol. 20, no. 3, pp. 45–50, May-June 2001. [376] A. Delorme and S. Makeig, “EEGLAB: an open source toolbox for analysis of single-trial EEG dynamics including independent component analysis,” Journal of Neuroscience Methods, vol. 134, no. 1, pp. 9–21, 2004. [377] P. Ullsberger and A. Delorme, EEGLAB studyset. Accessed in November 2015, http://goo.gl/fe3PZh, September 2007. [378] Y. Zigel, A. Cohen, and A. Katz, “The weighted diagnostic distortion (WDD) measure for ECG signal compression,” IEEE Transactions on Biomedical Engineering, vol. 47, no. 11, pp. 1422–1430, November 2000. [379] J. L. C´ardenas-Barrera, J. V. Lorenzo-Ginori, and E. Rodr´ıguez-Valdivia, “A wavelet-packets based algorithm for EEG signal compression,” Informatics for Health and Social Care, vol. 29, no. 1, pp. 15–27, 2004. [380] G. Higgins, S. Faul, R. McEvoy, B. McGinley, M. Glavin, W. Marnane, and E. Jones, “EEG compression using JPEG2000: How much loss is too much?” in 2010 Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC), September 2010, pp. 614–617. [381] A. Panayides, M. Pattichis, C. Pattichis, C. Loizou, M. Pantziaris, and A. Pitsillides, “Atherosclerotic plaque ultrasound video encoding, wireless transmission, and quality assessment using H.264,” IEEE Transactions on Information Technology in Biomedicine, vol. 15, no. 3, pp. 387–397, May 2011. [382] “ITU-R recommendation BT.601-7: studio encoding parameters of digital television for standard 4:3 and wide-screen 16:9 aspect ratios,” Accessed in November 2015, http://goo.gl/ZL4z5p, 2011. [383] T. Helleseth, “Golomb’s randomness postulates,” in Encyclopedia of Cryptography and Security. Springer, 2011, pp. 516–517. [384] L. M. Adleman and H. W. Lenstra, “Finding irreducible polynomials over finite fields,” in Proceedings of the Eighteenth Annual ACM Symposium on Theory of Computing, ser. STOC. ACM, 1986, pp. 350–355. [385] F. Ono, W. Rucklidge, R. Arps, and C. Constantinescu, “JBIG2-the ultimate bi-level image coding standard,” in Proceedings of the International Conference on Image Processing, vol. 1, 2000, pp. 140–143. [386] J. L. Mu˜noz, J. Forn´e, and J. C. Castro, “Evaluation of certificate revocation policies: OCSP vs. overissued- CRL,” in Proceedings 13th International Workshop on Database and Expert Systems Applications. IEEE, 2002, pp. 511–515. [387] “DICOM sample image sets, provided by OsiriX DICOM Viewer,” Accessed in November 2015, http://goo.gl/Yuwd40, 2013. Bibliography 217 [388] R. W. Hamming, “Error detecting and error correcting codes,” Bell System technical journal, vol. 29, no. 2, pp. 147–160, 1950. [389] Z. Wang, A. Bovik, H. Sheikh, and E. Simoncelli, “Image quality assessment: from error visibility to structural similarity,” IEEE Transactions on Image Processing, vol. 13, no. 4, pp. 600–612, April 2004. [390] “Z. Wang, Software implementations of the SSIM index for image quality assessment,” Accessed in November 2015, http://goo.gl/VNVTUe, 2011. [391] R. Bose and D. Ray-Chaudhuri, “On a class of error correcting binary group codes,” Information and Control, vol. 3, no. 1, pp. 68–79, 1960. [392] C. E. Shannon, “Communication theory of secrecy systems*,” Bell system technical journal, vol. 28, no. 4, pp. 656–715, 1949. [393] T. Kalker, “Considerations on watermarking security,” in IEEE Fourth Workshop on Multimedia Signal Processing, 2001, pp. 201–206. [394] T. H. N. Le, K. H. Nguyen, and H. B. Le, “Literature survey on image watermarking tools, watermark attacks and benchmarking tools,” in Second International Conferences on Advances in Multimedia, 2010, pp. 67–73. [395] M. Tanha, S. Torshizi, M. Abdullah, and F. Hashim, “An overview of attacks against digital watermarking and their respective countermeasures,” in International Conference on Cyber Security, Cyber Warfare and Digital Forensic (CyberSec), June 2012, pp. 265–270. [396] A. F. Martins, D. F. Santos, A. Perkusich, and H. O. Almeida, “IEEE 11073 and connected health: Preparing personal health devices for the Internet,” in IEEE International Conference on Consumer Electronics (ICCE), 2014, pp. 274–275. [397] Y. F. Gomes, D. F. Santos, H. O. Almeida, and A. Perkusich, “Integrating MQTT and ISO/IEEE 11073 for health information sharing in the Internet of Things,” in IEEE International Conference on Consumer Electronics (ICCE), 2015, pp. 200–201.