# Comparing IoT security mechanisms: protection levels, failure modes, and quantum readiness

> Thirteen IoT security mechanisms scored on protection level, real-world failure mode, and quantum readiness, from per-device tokens to secure boot.

![Comparing IoT security mechanisms: protection levels, failure modes, and quantum readiness](https://tago.io/og/blog/iot-security-mechanisms.jpg)

No single mechanism secures an IoT fleet. Each one does a specific job: proving identity, keeping data private, containing a compromise, or detecting one. This page scores the mechanisms on the same three axes (protection level, the failure mode that shows up in real deployments, and quantum readiness) so you can see what a given stack covers and what it leaves open.

After a short guide to the levels, a diagram maps where each mechanism belongs (device, network, cloud, or people) and the protection level it scores there. The scorecard table that follows is the detailed version of those scores: for each mechanism it adds what it protects, the failure mode that keeps showing up, and its quantum readiness. Behind both sits one idea: every mechanism exists to limit what one stolen thing is worth, whether a stolen credential, a captured board, a recorded transmission, or a phished password. Strong stacks make each theft small; weak stacks let one theft cascade.

## How to read the levels

**The floor** is the minimum every fleet needs. A mechanism at this level is not optional, and it is not enough on its own: per-device credentials and TLS are where security starts, not where it ends. Without them, nothing else on this page works.

**Medium** means the mechanism does real work, but only inside a limited scope, and people tend to assume it covers more than it does. A VPN removes public exposure but does not check which device is connecting. A WAF inspects web traffic only, so MQTT and UDP never pass through it. LoRaWAN radio encryption protects the radio link and stops at the network server. In each case the control is useful for the job it was built for and does nothing for the rest.

**High** means the mechanism materially raises the cost of an attack at its own layer. A secure element keeps the key safe even when the attacker holds the hardware, and ACLs limit what a compromised device can reach.

Most incidents trace to a medium-level control carrying a job that belonged to a high-level one.

![Where each mechanism lives. Four columns (device, network, cloud, people) place each mechanism at the layer it protects and mark its level: floor, medium, or high. Zero-touch provisioning appears under both device and cloud. Quantum migration spans all four columns as a readiness effort without a level.](https://tago.io/images/blog/iot-security-mechanisms/mechanism-map.svg)

## The scorecard

| Mechanism | What it protects | Protection level | Keeps failing when | Quantum readiness |
| --- | --- | --- | --- | --- |
| [Per-device tokens](https://docs.tago.io/docs/tagoio/devices/device-token) | Device identity, revocable per unit | The floor: required everywhere | One credential is shared by the fleet; tokens leak via repos and logs | Symmetric bearer secret; Shor's algorithm does not apply |
| X.509 certificates + mTLS | Device identity, both directions | High | CA and expiry lifecycle unmanaged; drifted clocks reject valid certs | Needs an ML-DSA migration path; plan certificate agility |
| Secure elements / TPM | Keys through physical capture | High | Host malware asks the chip to sign; debug ports left open | Ask vendors for LMS or ML-DSA support in new parts |
| Secure boot + signed OTA | Only your code runs | High | Unsigned update paths; verification roots never provisioned | Migrate roots to LMS/XMSS at the next hardware revision |
| TLS | Confidentiality and integrity on IP links | The floor for IP traffic | Certificate validation disabled in firmware; plaintext fallbacks | Hybrid key exchange (X25519MLKEM768) available now |
| Application-layer AEAD ([TagoTiP(s)](https://docs.tago.io/docs/tagotip/specification/encryption)) | Constrained links where TLS does not fit | High for UDP-class transports | Rolled-your-own crypto instead of standard AEAD; nonce reuse | 256-bit suites are already quantum-resistant |
| LoRaWAN OTAA keys | Radio-leg encryption and join integrity | Medium: strong, radio scope only | ABP in production; one AppKey for the fleet; keys in spreadsheets | AES on the air holds; put post-quantum TLS on the backhaul |
| Cellular SIM + private APN | Network authentication, removed exposure | High for exposure, first hop only | Treated as end-to-end; public IPs with open ports | SIM auth is symmetric and holds; still run TLS inside |
| VPN | Removes public endpoints | Medium: exposure control, not identity | The tunnel becomes the reason to skip per-device credentials | RFC 8784 and hybrid IKEv2/WireGuard handshakes |
| [WAF](https://docs.tago.io/docs/tagodeploy/project/security/enhanced-protection) | Web consoles, portals, APIs | Medium: web surfaces only | Treated as the whole perimeter; MQTT and UDP never pass through it | Inherits TLS; no crypto exposure of its own |
| [Topic ACLs + least privilege](https://docs.tago.io/docs/tagoio/tagorun/access-management) | Containment after a compromise | High for blast radius | Every client allowed everything; admin tokens in every integration | No cryptography involved; unaffected |
| [2FA, passkeys, SSO](https://docs.tago.io/docs/tagoio/tagorun/single-sign-on-sso) | Human accounts | High with passkeys; medium with SMS | SMS as the second factor; shared operator accounts | FIDO2 uses classical curves today; post-quantum passkeys are in standardization |
| Zero-touch provisioning | Credential birth at scale | High | Cloned claim credentials; blind trust in the supply chain | Trust anchors must be post-quantum capable before manufacture |

## How each mechanism works

### Per-device tokens

A unique secret per device, issued by the platform, presented inside an encrypted transport, and revocable without touching the rest of the fleet. On TagoIO every device gets its own token at creation. The level is "floor" because nothing else works without identity, and the classic failure is making it fleet-wide: one credential baked into firmware turns one extraction into a fleet compromise. Quantum changes nothing here; tokens are symmetric secrets, not public-key material.

### X.509 certificates and mutual TLS

The device holds a private key that never travels; the platform and the device verify each other. Strongest machine identity available, and the cost is lifecycle: a CA to run, expiries on devices that sleep, clocks that drift. On TagoDeploy the MQTT broker takes your CA and verifies clients under mTLS. Quantum is the open item: today's chains sign with ECDSA or RSA, so the migration path runs through ML-DSA certificates, and certificate agility belongs in this year's designs.

### Secure elements and TPMs

A tamper-resistant chip generates the key inside and signs without releasing it, which is what keeps identity intact when an attacker owns the hardware. The failure mode is subtle: malware on the host can still request signatures, so the chip protects the key, not the behavior. Vendor roadmaps for LMS and ML-DSA support are the quantum question to ask at the next board revision.

### Secure boot and signed OTA

A root burned into ROM verifies the bootloader, the bootloader verifies the application, and updates verify before they install, so only your code runs. Unsigned OTA is the inverse: a remote code execution service pointed at your own fleet. The quantum angle is the sharpest in the whole table, because verification roots freeze at manufacture: NIST's SP 800-208 (LMS/XMSS) exists for exactly this, and the migration happens at the factory or not at all.

### TLS

The floor for every IP link, with one firmware-specific trap: validation disabled during development that ships that way, which turns TLS into plaintext with extra steps. Hybrid post-quantum key exchange is deployed, cheap, and closes harvest-now-decrypt-later; it is the first quantum migration any fleet should make.

### Application-layer AEAD

Where TLS does not fit (UDP, tiny frames, battery budgets), authenticated encryption at the application layer carries the same guarantees in tens of bytes. TagoTiP(s) wraps each frame in AEAD with per-device keys derived by HMAC-SHA256, replay protection included, in as little as 29 bytes of overhead. With a 256-bit suite the constrained leg has no public-key exposure at all, which makes it one of the few mechanisms already done with its quantum migration.

### LoRaWAN keys

AES-128 at two layers with per-session keys when devices join over OTAA. Within its scope it is solid; the scope ends at the network server, and the fleet-killers are operational: ABP in production, a shared AppKey, root keys in spreadsheets. Keep OTAA, keep per-device roots in protected storage, and run the backhaul and join server links over TLS with hybrid key exchange.

### Cellular SIM and private APN

The SIM is a secure element doing mutual authentication with the network, and a private APN removes devices from the public internet entirely. Both are first-hop protections: from the carrier core to your platform is ordinary internet, so TLS inside the session is still required. Pairs naturally with a platform-side VPN, which is where the private path terminates.

### VPN

A tunnel removes public endpoints, which ends scanning, credential stuffing, and botnet harvesting of the device network. What it cannot do is vouch for what is inside: devices in the tunnel still present their own credentials, or one compromised unit inherits the whole segment. Treat VPNs as exposure control that identity rides through, and plan post-quantum handshakes (RFC 8784 for IKEv2, hybrid patterns for WireGuard) with the same key-exchange logic as TLS.

### WAF

Managed rules, rate limits, and IP controls in front of web consoles, portals, and APIs: the surfaces humans sign into. On TagoDeploy this is Enhanced protection in front of Admin, TagoRUN, and the API. Its boundary is its definition: MQTT, UDP, and custom TCP never pass through it, so a WAF plus nothing is a perimeter with a side door.

### Topic ACLs and least privilege

The containment layer. A sensor publishes to its own topic; a dashboard reads its scope; an integration holds one purpose; an operator sees their own fleet. When a device is compromised anyway, ACLs decide whether the attacker got a sensor or a wiretap on everything. No cryptography is involved, which makes it the rare row with nothing to migrate.

### 2FA, passkeys, and SSO

Human accounts guard everything above, and the methods are not equal: SMS codes fall to SIM swaps and phishing, authenticator apps resist most of it, passkeys resist phishing by construction. SSO moves the policy into your identity provider. Platform note: TagoIO supports app authenticator, SMS, and email second factors, and SAML and OIDC SSO for TagoRUN users.

### Zero-touch provisioning

Identity installed before first boot: pre-provisioned secure elements or claim-based enrollment instead of a technician pasting credentials. It removes the human from key handling, which removes the most common leak. The quantum angle compounds the hardware one: anchors provisioned at the factory live the device's whole life, so post-quantum capable anchors belong in the next design cycle.

![Four attacks stopped at four layers: an extracted key meets per-device revocation, a wildcard subscribe meets topic ACLs, recorded ciphertext meets hybrid key exchange, and a phished password meets a passkey.](https://tago.io/images/blog/iot-security-mechanisms/four-attacks.svg)

## How to combine different mechanisms into one stack

Stack different mechanisms in a fixed order of value, starting with per-device identity and ending with detection. Identity first: a unique, revocable credential per device, in hardware where capture is realistic. Encryption on every leg past the radio, chosen by transport: TLS where it fits, AEAD where it does not. Containment assuming failure: ACLs, scoped tokens, isolation. Exposure removal where the fleet warrants it: private APN, VPN, WAF on what stays public. Detection over everything: alerts on silence and anomalies, because the control that works when the others fail is noticing. The full architecture, with the zero-trust reasoning behind the order, is in [IoT security by design](https://tago.io/blog/iot-security), and each mechanism above gets its own post in this series.

## FAQ

**Which single mechanism matters most?** Per-device identity. Every other row assumes it: encryption authenticates the wrong party without it, ACLs cannot scope what they cannot name, and revocation of a shared credential is a fleet update, not a click.

**Is a VPN enough to secure a fleet?** No. A VPN removes exposure to the public internet, which is valuable, but it proves nothing about the devices inside the tunnel. Identity and least privilege still do that work.

**Do these mechanisms slow devices down?** The costs are mostly size and lifecycle, not compute: TLS session resumption, AEAD designed for small frames, and hardware crypto engines keep the runtime cost inside normal power budgets on Cortex-M-class parts.

**Which rows change for quantum computing?** Four need action: X.509 chains (ML-DSA path), firmware roots (LMS/XMSS at the factory), TLS and VPN key exchange (hybrid now). Tokens, ACLs, and 256-bit AEAD already hold.

**Where should a team with one free sprint start?** Test revocation of a single device end to end. If that works, move to encryption gaps; if it does not, nothing else on this page matters yet.

[llms.txt](https://tago.io/llms.txt)
