基于区块链和智能合约的物联网访问控制架构
2021-03-15马嘉杰沈海波陈升卢宇忠黄良振
马嘉杰 沈海波 陈升 卢宇忠 黄良振



摘要:为解决传统的中心化的物联网(Internet of Things,IoT)访问控制解决方案中存在的单点失效、规模受限等安全问题,基于以太坊区块链和智能合约技术,采用中心化与去中心化相结合的方法,提出了一个面向IoT的访问控制架构。该架构中设计了多个访问控制合约、一个设备管理合约、一个管理员管理合约等多种合约,来实现去中心化的和可信的访问控制功能;利用访问控制列表机制来表示资源访问策略,利用智能合约来实现基于策略的授权决策。该架构将IoT访问控制过程分为智能合约注册、IoT设备和管理员注册、IoT设备访问策略的制定和资源访问授权决策四个阶段。最后,还对架构的安全和性能进行了分析。
关键词:物联网; 区块链; 智能合约; 访问控制; 以太坊
中图分类号:TP309.2 文献标识码:A
文章编号:1009-3044(2021)03-0071-04
Abstract:To solve the security problems such as the single point of failure, limited scalability that existed in the traditional and centralized access control schemes for the Internet of Things (IoT), an Ethereum blockchain and smart contract based access control framework is proposed in this paper by introducing a centralized-decentralized combined architecture. To achieve decentralized and trustworthy access control for IoT systems in the proposed framework, multiple access control contracts(ACCs), one device management contract(DMC), one manager management contract(MMC) are designed, the mechanism of access control list to represent the access policy of resources is adopted, and the smart contracts are used to make authorization decisions based on predefined polices. This framework consists of four different phases including registering smart contracts, registering managers and IoT devices, defining the access polices for resources and making authorization decisions to resources access. In the end, the security and performance of the proposed framework are analyzed.
Key words:Internet of Things(IoT); blockchain; smart contract; access control; Ethereum
1 引言
由于通信技术、网络技术的快速发展和智能设备的广泛应用,导致物联网(Internet of Things,IoT)技术受到研究机构、政府、企业的更大关注[1]。在典型的物联网应用中,大量的IoT设备通过物联网网关构成簇,这些簇通过P2P (Peer-to-Peer)网络,与其他簇、用户设备、存储设备、应用服务器相连接,它们收集、处理和共享数据,提供各种资源(如数据、服务、存储空间、计算单元等)服务。这些端(Peer)都拥有相应的资源供其他端访问使用,因此需要相应的访问控制机制来阻止未授权的资源访问,同时保护那些敏感的隐私数据。例如,IoT设备需要能够拒绝抽取其数据或控制其执行器的未授权访问请求。……
