arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2103.11363cs.CR
收藏

IoT密码协议安全漏洞的发现及其并发实现

Finding Security Vulnerabilities in IoT Cryptographic Protocol and Concurrent Implementations

Fatimah Aljaafari, Rafael Menezes, Mustafa A. Mustafa, Lucas C. Cordeiro

摘要:

物联网(IoT)由大量通过网络连接的设备组成,这些设备交换大量数据,从而带来新的安全,隐私和信任问题。解决这些问题的一种方法是使用物联网协议的轻量级加密算法来确保数据机密性。然而,这种协议的设计和实现是一项容易出错的任务;实现中的缺陷可能导致破坏性的安全漏洞。在这里,我们提出了一种新的验证方法命名为加密BMC和Fuzzing(EBF),它结合了有界模型检验(BMC)和Fuzzing技术来检查安全漏洞,出现并发实现的并行图形协议,其中包括数据竞争,线程泄漏,算术溢出,内存安全。EBF使用POSIX线程将IoT协议建模为客户端和服务器,从而模拟两个实体的通信。它还采用静态和动态验证,以涵盖系统的状态空间详尽。我们评估EBF对三个基准。首先,我们使用SV-COMP的并发基准测试,并表明它在错误发现方面优于其他最先进的工具,如ESBMC,AFL,Lazy-CSeq和TSAN。其次,我们评估了一个名为WolfMQTT的开源实现。它是一个使用WolfSSL库的MQTT客户端实现。我们发现,\tool检测数据竞争的错误,其他方法是无法找到的。第三,为了证明EBF的有效性,我们复制了OpenSSL和CyaSSL(最近的WolfSSL)库中的一些已知漏洞。EBF可以在最短的时间内检测到错误。

英文摘要:

Internet of Things (IoT) consists of a large number of devices connected through a network, which exchange a high volume of data, thereby posing new security, privacy, and trust issues. One way to address these issues is ensuring data confidentiality using lightweight encryption algorithms for IoT protocols. However, the design and implementation of such protocols is an error-prone task; flaws in the implementation can lead to devastating security vulnerabilities. Here we propose a new verification approach named Encryption-BMC and Fuzzing (EBF), which combines Bounded Model Checking (BMC) and Fuzzing techniques to check for security vulnerabilities that arise from concurrent implementations of cyrptographic protocols, which include data race, thread leak, arithmetic overflow, and memory safety. EBF models IoT protocols as a client and server using POSIX threads, thereby simulating both entities' communication. It also employs static and dynamic verification to cover the system's state-space exhaustively. We evaluate EBF against three benchmarks. First, we use the concurrency benchmark from SV-COMP and show that it outperforms other state-of-the-art tools such as ESBMC, AFL, Lazy-CSeq, and TSAN with respect to bug finding. Second, we evaluate an open-source implementation called WolfMQTT. It is an MQTT client implementation that uses the WolfSSL library. We show that \tool detects a data race bug, which other approaches are unable to find. Third, to show the effectiveness of EBF, we replicate some known vulnerabilities in OpenSSL and CyaSSL (lately WolfSSL) libraries. EBF can detect the bugs in minimum time.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑