Many modern IoT applications rely on the Constrained Application Protocol (CoAP) because of its efficiency and seamless integrability in the existing Internet infrastructure. One of the strategies that CoAP leverages to achieve these characteristics is the usage of proxies. Unfortunately, in order for a proxy to operate, it needs to terminate the (D)TLS channels between clients and servers. Therefore, end-to-end confidentiality, integrity and authenticity of the exchanged data cannot be achieved. In order to overcome this problem, an alternative to (D)TLS was recently proposed by the Internet Engineering Task Force (IETF). This alternative consists of two novel protocols: 1) Object Security for Constrained RESTful Environments (OSCORE) providing authenticated encryption for the payload data and 2) Ephemeral Diffie-Hellman Over COSE (EDHOC) providing the symmetric session keys required for OSCORE. In this paper, we present the design of four firmware libraries for these protocols especially targeted for constrained microcontrollers and their detailed evaluation. More precisely, we present the design of uOSCORE and uEDHOC libraries for regular microcontrollers and uOSCORE-TEE and uEDHOC-TEE libraries for microcontrollers with a Trusted Execution Environment (TEE), such as microcontrollers featuring ARM TrustZone-M. Our firmware design for the later class of devices concerns the fact that attackers may exploit common software vulnerabilities, e.g., buffer overflows in the protocol logic, OS or application to compromise the protocol security. uOSCORE-TEE and uEDHOC-TEE achieve separation of the cryptographic operations and keys from the remainder of the firmware, which could be vulnerable. We present an evaluation of our implementations in terms of RAM/FLASH requirements, execution speed and energy on a broad range of microcontrollers.
翻译:许多现代 IOT 应用程序依赖 Constraced 应用协议(CoAP), 因为它在现有的互联网基础设施中具有效率和无缝融合性。 CoAP 为实现这些特征而运用的战略之一是使用代理。 不幸的是, 为了让代理操作, 它需要终止客户和服务器之间的( D) TLS 渠道。 因此, 无法实现交换数据的端到端的保密性、 完整性和真实性。 为了解决这一问题, 最近互联网工程工作队提出了替代 (D) TLS 的替代方案。 这个替代方案包括两个新颖协议:(1) Constractive Environtive Environment(OS CRECO) 的物件安全性加密, Ephepmeral Diffie-Hellman Over COSE (EDHOC) 提供OCOCO 所需的对质会话键。 在本文中, 我们为这些协议设计了4个易变式的软件库, 特别是针对限制的微控制器, 及其详细评估。 更准确地说, 我们将设计了 OS eOSOD 和 OE OE OED 用于常规控制 EROD Trust Trust 的操作, 。