Emerging trends in embedded systems, such as applications in Cyber-Physical Systems (CPS) and Industrial Internet of Things (IIoTs) involve heterogeneous and mobile devices. These smart, interconnected devices often operate in large number. They process and exchange safety, privacy and mission-critical information. Thus, it is important to have a good code veriļ¬cation technique that scales to device swarms and establishes trust among collaborating devices. We present a Decentralized Attestation Scheme for Device Swarms.