Labs
IoT Labs
Hands-on IoT builds and security tests.
- 10 notes
- 91 minutes of reading
- Lab: setting up a Raspberry Pi securelyInstall Raspberry Pi OS with a unique user and SSH key, update it, disable password logins, add a host firewall and turn on automatic security updates. 9 min · Beginner
- Lab: ESP32 Wi-Fi sensor with MicroPythonFlash MicroPython onto an ESP32, wire a DHT22 temperature sensor, connect to Wi-Fi and print readings, keeping Wi-Fi credentials out of your code repository. 9 min · Beginner
- Lab: running a Mosquitto MQTT brokerInstall the Eclipse Mosquitto MQTT broker on a Raspberry Pi or Linux machine, publish and subscribe with the command-line clients, and learn topics, wildcards, retained messages and QoS. 8 min · Beginner
- Lab: securing MQTT with passwords and TLSLock down a Mosquitto broker: create a lab certificate authority and server certificate, enable a TLS listener on 8883, require usernames and passwords and restrict topics with an access control list. 10 min · Intermediate
- Lab: Node-RED dashboard for sensor dataRun Node-RED in Docker, subscribe to your MQTT sensor topics, build a live dashboard with a gauge and chart, and protect the editor with a login. 9 min · Intermediate
- Lab: putting IoT devices on their own VLAN or guest networkSeparate smart devices from your laptops and phones using either a router guest network or an IoT VLAN with DHCP and firewall rules that allow trusted devices in but stop IoT devices reaching out. 10 min · Intermediate
- Lab: capturing and analysing IoT trafficCapture network traffic from a smart device you own using a router, a switch mirror port or a Raspberry Pi access point, then analyse its DNS lookups, destinations and encryption in Wireshark. 10 min · Intermediate
- Lab: Home Assistant with security best practiceInstall Home Assistant on a Raspberry Pi, virtual machine or container, then secure it with a strong owner account, multi-factor authentication, VPN-only remote access, backups and careful updates. 9 min · Intermediate
- Lab: scanning Bluetooth Low Energy devices you ownUse bluetoothctl and a short Python script with the bleak library to discover your own Bluetooth Low Energy devices, read what their adverts reveal and judge their privacy settings. 8 min · Beginner
- Lab: safe firmware updates for IoT devicesBack up and update ESP32 firmware with checksum verification, then build a small over-the-air update for MicroPython code that checks a SHA-256 hash before replacing anything and keeps the old version for rollback. 9 min · Intermediate