domain-iot:iot-security
Installation
SKILL.md
IoT Security
When to use
- Designing device identity infrastructure using X.509 certificates, secure elements, or TPMs
- Implementing a secure boot chain from hardware root of trust to application firmware
- Configuring TLS 1.3 or DTLS for MQTT, HTTPS, CoAP, or LwM2M device communication
- Signing firmware images for OTA distribution and verifying them on-device
- Segmenting IoT devices on dedicated VLANs and configuring egress firewall rules
- Building device attestation workflows to detect tampering at scale
- Managing CVEs and SBOM tracking across a constrained device fleet
Core principles
- Private keys never leave hardware — secure element or TPM for key operations; flash-stored keys are not keys, they are secrets waiting to be extracted
- Chain of trust starts in ROM — every link in the boot chain verifies the next; one unsigned hop breaks the whole model
- mTLS everywhere on the wire — device authenticates server, server authenticates device; one-way TLS is half a handshake
- Sign firmware with an offline HSM key — the signing key never touches a networked machine; downgrade attacks need anti-rollback counters in OTP fuses
- Segment and minimize blast radius — IoT VLAN, gateway as single egress, no device-to-device unless explicitly required