The complexity and diversity of IoT and IIoT ecosystems make their security challenging but critical to address, given the potential impact of attacks on privacy, safety, and critical infrastructure.