IoT 기기의 보안 취약점은 여전히 심각한 문제다. 기본 설정으로 배포된 IoT 디바이스들이 암호화되지 않은 평문 통신을 사용하거나, 자체 서명 인증서를 검증 없이 수락하는 경우가 빈번하다. Mirai 봇넷부터 최근의 스마트홈 기기 해킹 사례까지,보안이 취약한 IoT 디바이스는 대규모 사이버 공격의 발판이 된다.
마리암 게보르기안이 Computer Science and Information Technologies 국제 컨퍼런스에서 발표한 이 연구는 IoT 디바이스에서 MQTT와 CoAP 프로토콜에 TLS(Transport Layer Security)를 실제로 구현하고 배포하는 방법을 실용적으로 다룬다.
MQTT over TLS 구현
MQTT 프로토콜에 TLS를 적용하면 브로커와 클라이언트 간의 모든 메시지가 암호화된다. 연구는 인증서 발급,브로커 설정,클라이언트 라이브러리 설정을 단계별로 상세히 다룬다. 특히 자원 제한 디바이스에서의 TLS 핸드셰이크 오버헤드 최적화 방법도 포함됐다.
CoAP with DTLS 구현
CoAP은 UDP 기반이므로 연결 지향적인 TLS 대신 DTLS(Datagram TLS)를 사용한다. 연구는 Eclipse Californium, libcoap 등의 라이브러리를 활용한 DTLS 구현 방법과 인증서 기반 및 PSK(Pre-Shared Key)방식의 상호 인증 구성을 다룬다.
성능 오버헤드 분석
TLS/DTLS 적용 시 발생하는 추가 지연과 전력 소비를 측정했다. 초기 핸드셰이크에는 수백 밀리초가 소요되지만,세션 재개 기법으로 이를 대폭 단축할 수 있다. Cortex-M4 기반 MCU에서도 실용적인 성능이 가능함을 확인했다.
IoT 보안 강화 실무: 제품 출시 전 TLS/DTLS 필수화, 인증서 유효기간 자동 갱신 파이프라인 구성, 디바이스별 고유 인증서 발급이 기본 보안 요건이다.
📖 *Development and Deployment of TLS Communication Protocol in IoT Devices Using MQTT and CoAP Protocols* |
논문 원문
※ 이 기사는 IT 연구 논문을 바탕으로 작성되었습니다.
The IoT device security problem is persistent and concrete. Default configurations ship without encryption. Self-signed certificates are accepted without validation. Password authentication uses factory-default credentials never changed after deployment. These are not theoretical vulnerabilities—they are the attack surface that powers botnets and enables network intrusions at scale.
Mariam Gevorgyan addresses this practically in a paper presented at the Computer Science and Information Technologies International Conference, providing a hands-on guide to implementing and deploying TLS communication in IoT devices using MQTT and CoAP protocols.
MQTT over TLS Implementation
MQTT's publish-subscribe model over TCP provides persistent broker connections that TLS can protect end-to-end. The paper covers the complete implementation path: certificate issuance (Let's Encrypt for internet-facing brokers, internal CA for closed deployments), broker configuration for Mosquitto and EMQX, and client library setup using Paho MQTT across Python, C, and embedded environments. TLS handshake overhead optimization for constrained devices—session resumption, hardware-accelerated crypto where available—receives particular attention.
CoAP with DTLS
CoAP's UDP transport requires DTLS (Datagram TLS) rather than connection-oriented TLS. The research demonstrates DTLS implementation using Eclipse Californium and libcoap, covering both certificate-based and PSK (Pre-Shared Key) authentication modes. Mutual authentication configuration, where both client and server verify each other's identity, is presented as the recommended security baseline.
Performance Overhead Analysis
The paper quantifies TLS/DTLS costs on representative hardware. Initial handshakes add hundreds of milliseconds of latency, but DTLS session resumption reduces this to single-digit milliseconds for reconnecting devices. Cortex-M4 based MCUs achieve practical TLS performance, making full encryption viable even for mid-tier embedded hardware.
Security Baseline Requirements
Mandate TLS/DTLS before production deployment, automate certificate renewal pipelines to prevent expiration-induced outages, and provision unique certificates per device to enable individual device revocation without affecting the entire fleet.