On the night of October 11, 2026, refrigeration controllers in as many as 700 French supermarkets switched to defrost mode at once. Staff opened stores to fridges near 50°C, whole aisles of spoiled food, and damage that ran to tens of millions of euros across Intermarché, Carrefour, Monoprix, and other chains. Three weeks later a second wave hit grocery stores across Belgium, the Netherlands, Germany, Sweden, and several other countries, and reached for higher stakes: three French blood banks.
The method was not advanced. The controllers, several models of them past end of life for five to ten years, exposed their web interfaces directly to the public internet, and a flaw documented by Claroty in 2025 let anyone sign in with a hidden daily code derived from the date. Nothing resisted and nothing alerted: the systems were built to report temperatures, not intrusions, so the units defrosted quietly through the night. The blood banks escaped because their monitoring noticed in time and staff intervened. France has blamed a state-backed group; the exploit itself required no state resources at all.
That is the uncomfortable truth about IoT security: the attacks that land rarely need sophistication. They need an exposed service, a predictable credential, a device nobody can update, and the absence of anyone watching. The fixes are known. What makes IoT different is that applying them is hard for reasons that live in silicon, in radio protocols, and in the economics of shipping hardware.
This post walks the whole path a measurement takes, from the chip that signs it to the cloud that stores it. The organizing idea, zero trust, comes first; every layer after it is one of its rules made concrete. For each layer the post covers how the protection works, what it costs, and the patterns that hold up against the ones that keep producing incidents like October’s. Each diagram contrasts a design that works with the shortcut that fails.
Why IoT is harder to secure than IT
Standard IT security assumes things an IoT device does not have.
- Nobody is at the device. No one types a password, approves an MFA prompt, notices a slowdown, or clicks “update now”. Every security decision has to be made in firmware, ahead of time, for the device’s whole life.
- The hardware is minimal. A sensor node may have 256 KB of flash, a slow core, and a battery that must last five years. A full TLS handshake costs kilobytes of traffic and a burst of radio time, and radio time is the battery budget. Engineers are not lazy when they consider plaintext UDP; they are counting joules. Security that ignores the power budget gets deleted in the first field revision.
- Devices outlive their crypto. Laptops rotate every 3 to 5 years. A water meter stays on the wall for 15. TLS versions age out, key lengths that were fine become weak, certificate authorities disappear, and the device is still out there, bolted to a pipe, with whatever trust anchors it shipped with.
- Attackers get physical access. Anyone can buy your product, open it on a bench, probe the debug port, and desolder the flash. Server security never has to assume the attacker owns the server; device security does.
- Mistakes ship at scale. A weak default on one server is one incident. A weak default in firmware is 100,000 incidents with the same root cause, and the recall is a truck roll.
- The supply chain is opaque. Censys counted more than 500,000 internet-facing hosts in mid 2026 still running Boa, a web server discontinued in 2005: chip vendors shipped it inside their SDKs, product makers built on those SDKs without auditing them, and no single party now feels responsible for patching the result. October’s supermarket controllers sat in the same gap, years past end of life, run by stores that had outsourced refrigeration and could not patch them.
Regulators have stopped waiting for the market to fix this. Mirai, the botnet that took a major DNS provider and much of the US east coast offline in 2016, was built by guessing default telnet passwords, and Cloudflare still ranked Mirai-based traffic the third most common network-layer DDoS vector in the first quarter of 2025; a decade of that pattern produced rules with dates on them. The EU Cyber Resilience Act entered into force in December 2024; its vulnerability reporting obligations took effect in September 2026 and the full requirements apply from December 2027. The UK banned universal default passwords on consumer connectables in April 2024. ETSI EN 303 645 is the common consumer IoT baseline internationally, and in the US the FCC’s Cyber Trust Mark builds a voluntary product label on NIST’s consumer IoT baseline. If you sell connected products into these markets, the practices below are becoming the legal floor, not a differentiator.
Implement a zero-trust architecture
Every control in this post is a piece of one architecture, and it is worth naming before the layers because the term has drifted into marketing while the idea underneath stays sharp. Zero trust: no connection is trusted for where it comes from, only for what it can prove.
Perimeter security assumes an inside and an outside: build a strong wall, and whatever is inside is trusted. October’s cold chain attacks are the perimeter model at its end state. The controllers sat on the open internet, so there was no wall; and once past the date-derived password, nothing asked a further question. IoT breaks the perimeter assumption twice over. Devices operate from networks you will never control: home routers, carrier infrastructure, a customer’s plant floor. And a compromised device already sits inside whatever perimeter you drew, holding valid credentials and speaking the expected protocol.
Zero trust replaces location with identity. For an IoT fleet it reduces to four working rules:
- Authenticate every connection, in both directions. A per-device token or certificate on everything that connects, and devices that validate the platform’s certificate in return. Nothing is accepted because it arrived from a familiar network.
- Authorize to the narrowest scope that does the job. A sensor publishes to its own topic, an operator sees their own fleet, an integration holds one purpose. MQTT ACLs, Access Management policies, and scoped tokens are the same rule applied three times.
- Assume breach and bound it. Isolation, instant revocation, audit logs, and anomaly alerts exist for the day a credential leaks anyway. The question is never whether that day comes; it is how much the attacker holds when it does.
- Treat the network as exposure control, never as trust. The VPN and the private APN shrink who can reach you; they do not vouch for whoever got in. Inside the tunnel, every device still presents its own credential, because the tunnel is transport, not identity.
The last rule is the one deployments most often get backwards: a private network becomes the reason to skip per-device credentials, and from then on one compromised device inherits the trust of the entire segment. Segmentation bounds the blast radius; it was never meant to replace identity.
The rest of this post is these four rules made concrete, in the order a measurement meets them: identity in firmware, keys in hardware, encryption on each transport, and scope, isolation, and detection in the cloud. On TagoIO the mapping is direct, and each section below names the feature that carries it.
Device identity comes first
Authentication for a machine means one thing: every connection carries proof of which device is talking, and that proof can be revoked without touching the rest of the fleet. Devices carry that proof in one of two forms, and this section covers both: a token, a secret issued by the platform and known to both sides, light enough for the smallest firmware; and a certificate, where the device holds a private key that nothing else ever sees, stronger and costlier to operate. They solve the same problem at different price points. The choice between them is about hardware and lifecycle, not ideology, and either one beats the third option that keeps showing up in the field: a single credential shared by the whole fleet.
Tokens: light enough for any firmware
The lightest workable form is a per-device token: a unique secret issued by the platform for exactly one device. On TagoIO, every device receives its own device token when it is created. The token authorizes that device’s data and nothing else. Delete it and that one device is disconnected; the other 99,999 keep reporting.
Tokens earn their place on constrained hardware. They need no certificate parsing, no clock, and no crypto library beyond the TLS stack already carrying the traffic. The rules that make them safe are operational:
- One token per device, never one token per product line. The whole point is a small blast radius.
- Tokens stay out of source repositories, logs, mobile apps, and anything a customer can download. Public GitHub is scanned for credentials continuously, by researchers and by attackers, and both find them within hours.
- Integration and automation credentials are separate from device credentials. An Analysis script, a network integration, and a device should each present a credential scoped to its own job. On TagoIO these are distinct token types (device tokens, authorization tokens for integrations, account tokens), and account tokens never belong in firmware.
- A token is a bearer secret: whoever holds it is the device. It must only ever travel inside an encrypted transport.
What fails: baking the same credential into every unit. It feels harmless at prototype stage, and it recurs in fleet after fleet because nothing forces the change before scale. One extracted flash image, one leaked repository, one departed contractor, and every unit in the field is impersonable at once, with no fix short of a full fleet update.
Certificates and mutual TLS: proof that never leaves the device
Tokens prove possession of a secret that the platform also knows. Certificates prove possession of a private key that never leaves the device, which is a materially stronger claim.
With X.509 client certificates and mutual TLS (mTLS), the handshake runs in both directions. The device validates the server’s certificate, which stops a spoofed endpoint or an interception proxy from impersonating your platform. The server validates the device’s certificate, signed by a CA you control, which stops anything without an issued key from connecting at all. The private key is used to sign the handshake but is never transmitted, so passive interception of traffic yields nothing reusable.
On TagoDeploy, the dedicated MQTT broker supports exactly this model: you load your own CA and server certificate, enable mTLS, and the broker verifies each connecting client against your CA. Clients can authenticate with credentials or with certificates, per client.
The strength has a price, and the price is lifecycle, not CPU:
- Someone has to run the CA: issue a unique certificate per device at manufacturing, protect the signing key, and keep the issuance records.
- Certificates expire. A device that sleeps for months must wake up, know the correct time, and renew before its certificate lapses. Expiry on an unattended device is a support ticket from a customer whose dashboard went quiet.
- Clock dependence cuts both ways: a device with a drifted clock will reject a valid server certificate and go offline for a reason that is invisible in the field.
The honest guidance: use mTLS where devices have the flash, a reliable clock source, and a provisioning pipeline, which usually means gateways, powered equipment, and higher-value fleets. Use per-device tokens inside TLS where they do not. Both beat the shared secret.
Where the key lives: the hardware problem
Everything above assumes the device can keep a secret. By default, it cannot.
A credential stored in ordinary flash is readable by anyone with the board. Debug interfaces (SWD, JTAG) left enabled in production let an attacker dump memory in minutes with a hobbyist probe. External SPI flash can be clipped and read without even powering the board. Firmware images published on update servers get downloaded and searched for keys. None of this is exotic; it is the first afternoon of any hardware teardown.
Chip vendors have been building answers directly into silicon, which is why modern microcontrollers contain dedicated security hardware:
- Readout protection and disabled debug. Production fuses that lock the debug port and block flash readout. The baseline step, and the one most often forgotten because development needs the port open.
- Secure boot. A key burned into ROM verifies the bootloader’s signature; the bootloader verifies the application; the application verifies the next update. Code that is not signed by you does not run. The chain starts in mask ROM precisely so that malware cannot rewrite the first link.
- TrustZone and trusted execution environments. The core runs two worlds: keys and crypto live in the secure world, application code in the normal world, with hardware enforcing the wall. A bug in your application cannot read the keys because no instruction path exists to them.
- Secure elements and TPMs. A separate tamper-resistant chip (Microchip’s ATECC608 class, NXP’s SE050 class, or a TPM on gateway hardware) generates the private key inside itself. The key never leaves; the chip performs the signing during the TLS handshake. Extracting the key means defeating hardware countermeasures designed against exactly that, which moves the attack from a soldering iron to a lab. The part costs around a dollar at volume.
- Hardware crypto accelerators. AES and ECC engines that make TLS handshakes affordable in time and energy on small cores. These matter because they remove the performance excuse for plaintext.
Firmware updates deserve the same treatment as boot. An OTA mechanism without signature verification is a remote code execution service you built yourself and pointed at your own fleet: whoever can reach the update channel can install anything. Signed OTA pins your public key in immutable storage and refuses images that do not verify. If an existing fleet lacks it, the last unsigned update you ever ship should be the one that adds signature checking.
Hardware this cheap still gets skipped, because the cost is not the part. It is the process around it:
- Per-unit keys must be generated or injected on the production line, recorded against serial numbers, and handed to the platform. That is a factory workflow and a database, not a checkbox.
- Locked debug and secure boot make development and failure analysis slower. Teams defer the lockdown “until after launch”, and after launch nobody wants to touch a working line.
- None of it is visible in a demo. A product with secure boot looks identical to one without it on the sales floor, so the pressure to cut it is constant and the benefit only appears on the worst day of the company’s life.
That is the real shape of the problem: IoT security is less a technology gap than a willingness to pay for invisible work. The regulation deadlines above exist because the market kept proving it would not pay voluntarily.
Security that fits the power budget
There is one more honest constraint to deal with before the protocols: TLS does not fit everywhere.
A TLS handshake costs multiple kilobytes of exchange before the first byte of telemetry, plus session state in RAM. On a battery device reporting a few bytes every ten minutes over UDP, that overhead can dominate the energy budget, and UDP has no TLS at all (DTLS exists, with its own handshake cost). This is the gap where fleets historically went plaintext “because the data is not sensitive”, which confuses reading the data with writing it: an unauthenticated ingest path lets anyone inject fake measurements, and a platform that acts on data (alerts, actuation, billing) can be steered by whoever forges it.
The right answer for that niche is authenticated encryption at the application layer, designed for small frames. This is what TagoTiP(s) does, the encrypted profile of TagoIO’s open telemetry protocol. Each frame is wrapped in AEAD (AES-CCM, AES-GCM, or ChaCha20-Poly1305), the per-device key is derived with HMAC-SHA256 from the authorization token and the device serial, the token itself never travels on the wire, and a counter built into the nonce gives replay protection. The envelope adds as little as 29 bytes, and a typical encrypted message is about 119 bytes against roughly 487 for the same reading as HTTP plus JSON. It runs over UDP on port 5684, where TLS is not an option, and over TCP and HTTPS when you want the same frame inside a second layer of transport encryption.
The general lesson applies beyond any one protocol: when a transport cannot carry TLS, the fix is cryptography shaped to the constraint, never the absence of cryptography.
Transport security, protocol by protocol
MQTT
MQTT is the default language of IoT telemetry, and its security model has three independent layers that teams routinely confuse:
- Encryption: TLS on port 8883. Plaintext MQTT on 1883 belongs on a closed bench network and nowhere else. A broker on a public IP without TLS and without authentication is readable and writable by the entire internet, and scanners index new public endpoints within minutes of them going live.
- Authentication: who is connecting. Per-client credentials or, stronger, mTLS client certificates as covered above.
- Authorization: what each authenticated client may do. This is the layer most deployments skip, and it is the one that limits damage when a device is compromised.
Authorization on MQTT means topic ACLs. A sensor should be allowed to publish to its own uplink topic and subscribe to its own command topic, and nothing else. Without ACLs, any single compromised device can subscribe to # and wiretap the entire fleet, or publish into other devices’ topics and feed false data to everything downstream. Retained messages make this worse: a broker that retains last values hands them to any new subscriber, so one over-permissioned client leaks the latest reading of every topic it can see.
On TagoDeploy, the MQTT broker is dedicated to your instance and this model is built in: you define clients, attach them to groups, and write ACL rules that allow or deny publish and subscribe per topic, with group rules assigning clients automatically. Traffic is TLS, certificates are yours to manage, mTLS is a switch, and a Connections view shows what is actually online. The industry direction is away from big shared brokers toward exactly this kind of isolated, access-controlled broker; TagoIO’s own legacy shared broker is in that transition, with an announced end of life on August 2, 2027.
LoRaWAN
LoRaWAN ships with real cryptography: AES-128 end to end in the specification, with two session keys doing separate jobs. The network session key authenticates frames between device and network server; the application session key encrypts the payload so that the radio path and the gateways never see plaintext. Frame counters protect against replay.
The security of all of that rests on how devices join, and this is the sharpest works-versus-fails line in LoRaWAN:
- OTAA (over-the-air activation) works. The device holds a root key (AppKey, plus NwkKey in LoRaWAN 1.1) and derives fresh session keys at every join. Keys rotate, counters reset safely, and a captured session key ages out.
- ABP (activation by personalization) fails in production. Session keys are fixed for the device’s lifetime and frame counters are the only replay defense. Every reboot or battery swap that loses counter state either bricks the uplink or forces the network server to accept counter resets, which reopens replay. ABP is a bench-test convenience that keeps ending up in deployed fleets.
Two quieter failure modes matter as much. First, root key handling: a fleet provisioned with one shared AppKey, or keys distributed to installers in spreadsheets and QR codes, has the same blast radius problem as the shared MQTT credential. Per-device root keys, ideally held in a secure element (several LoRa modules integrate one), close it. Second, the leg after the radio: LoRaWAN’s crypto ends at the network and application server boundary. From the LNS to your platform it is ordinary internet traffic, which is why that integration must ride HTTPS with its own credentials. On TagoIO, LNS integrations (The Things Network, Everynet, Loriot, Senet and others on the multi-tenant platform, or dedicated LNS middlewares such as ChirpStack on TagoDeploy) authenticate with their own scoped token (an authorization token on the multi-tenant platform, a network token for TagoDeploy middlewares), so the last mile is held to the same standard as the radio.
Cellular
Cellular earns its secure reputation on the radio: the SIM performs mutual authentication with the network, traffic is encrypted over the air, and the SIM itself is a tamper-resistant element doing the key handling. NB-IoT and LTE-M inherit the same model. For key storage, eSIM and iSIM push further, moving the credential into remotely provisionable silicon.
The misconception is where that protection ends: at the carrier core. From the carrier to your platform, the data travels the public internet like anything else. “It is on cellular” is a statement about the first hop, not about end-to-end security, so TLS (or TagoTiP(s)) inside the cellular session is still required.
The exposure problem is the inverse one: a cellular device with a public IP and an open port is directly reachable from the internet, and those devices are precisely the population that botnets harvest. Exposed broadband gear shows the scale: Censys counted more than 117,000 fiber gateway login pages open on the public internet in mid 2026. The clean architecture is a private APN: devices get no public address, cannot be scanned, and their traffic hands off from the carrier into your infrastructure over a private path rather than the open internet. That private path is where a platform-side VPN comes in, covered below.
HTTP, raw TCP and UDP, and the rest
HTTPS is a fine transport for gateways and powered devices, with one firmware-specific trap: certificate validation that is disabled “temporarily” during development and ships that way. TLS without validation is plaintext with extra steps, because any interception point can present any certificate. Pin or properly validate, and plan for root CA updates across a 10-year life.
For constrained UDP paths, DTLS exists, and application-layer AEAD as described above covers the cases DTLS does not fit. For raw TCP and UDP ingestion on the platform side, the rule is the same as everywhere else: per-device credentials on every frame, rate limits, and no unauthenticated writes, ever.
The cloud half
Hardening every device and then operating the platform loosely wastes the work: attackers go around strong layers, not through them. The cloud side mirrors the device side: identity, least privilege, encrypted paths, and a perimeter that is watched.
A WAF in front of every human-facing surface. An IoT platform’s consoles and APIs are public web endpoints, and they get scanned and credential-stuffed like any other. A web application firewall filters that traffic at layer 7 before it reaches the application. On TagoDeploy this is Enhanced protection, an optional paid level: managed rules for known attackers, known exploits, common web attacks, and server file access; rate limiting on sign-in, sign-up, and password reset; and your own IP and country rules, in front of the Admin console, TagoRUN portals, and the API. It can start in monitor mode, so you can review what it would have blocked before any device traffic is at risk, keeps a log of matched requests with credentials redacted, and exports the reports auditors ask for. Coverage honesty applies here the same as everywhere: the WAF inspects HTTPS. MQTT, UDP, and custom TCP traffic never pass through it; those paths are protected by the broker and protocol controls above.
Private connectivity for the device network. The strongest perimeter move is removing the public endpoint entirely. TagoDeploy now supports VPN connectivity into your project’s private network, so telemetry from a carrier private APN, a factory floor, or a corporate network enters your deployment through an encrypted tunnel instead of a public address. Paired with a private APN, this closes the loop on cellular: devices with no public IP send over a private path, with the WAF guarding what remains public for humans.
Isolation by architecture. Every TagoDeploy project runs single tenant: a dedicated AWS account, a dedicated network, private servers for Admin, TagoRUN, and the API, and a private main database with AES-256 encryption at rest, TLS 1.2 and 1.3 in transit, and daily backups. Isolation does not make an application secure by itself, but it caps the blast radius the same way per-device credentials do on the fleet side.
Least privilege inside the platform. The device section argued for scoped credentials; the same discipline applies to people and code. Access Management policies define which TagoRUN users and Analysis scripts can reach which devices, dashboards, and other resources. Secrets keep API keys out of Analysis script source. TagoRUN end users on Max plans get SSO over SAML or OIDC and 2FA, so portal identity lives in your identity provider rather than in another password database. Audit logs record who did what. And one habit worth singling out: the account-wide admin token pasted into every integration is the cloud twin of the shared device key. Scope every credential to its job.
Rate limits and anomaly alerting. Platform rate limits act as an abuse brake when a credential does leak. Monitoring closes the loop: an Action that alerts when a device goes silent, reports from an impossible location, or sends values outside physical range is a security control wearing an operations costume. In October’s cold chain attacks, the supermarkets found the damage when staff opened in the morning; the blood banks had monitoring that noticed, and staff stopped the attack in time.
Evidence, because customers will ask. Controls that leave no record do not exist at procurement time. TagoIO is ISO/IEC 27001 certified, publishes a CSA CAIQ self-assessment, and maintains its security documentation, subprocessors, and policies at security.tago.io; the platform’s TLS configuration holds an A from Qualys SSL Labs. On the customer side, the WAF’s reports and retained logs become evidence for your own ISO 27001 or SOC 2 audit, answering the boundary-protection and monitoring questions with data instead of intent.
What works and what fails
| Layer | Holds up | Keeps failing |
|---|---|---|
| Identity | A unique, revocable token or certificate per device | One credential baked into the whole fleet; tokens in repos and logs |
| Firmware | Secure boot, signed OTA, keys in a secure element, debug locked | Unsigned updates; keys in plain flash; SWD/JTAG open in production |
| MQTT | TLS on 8883, per-client auth, topic ACLs | Open brokers on 1883; every client allowed #; shared credentials |
| LoRaWAN | OTAA with per-device root keys in protected storage | ABP in production; one AppKey for the fleet; keys in spreadsheets |
| Cellular | Private APN plus VPN, TLS inside the session | Trusting the radio for end-to-end; public IPs with open ports |
| Cloud | WAF on web surfaces, VPN ingest, scoped tokens, audit logs, alerts | Admin tokens everywhere; no rate limits; security by obscurity |
| Trust model | Identity decides every access, wherever the connection starts | A flat network where anything inside is trusted |
Security by obscurity deserves its one-line obituary: scanners enumerate the entire public address space continuously. Nobody needs to find you. You are already indexed.
Where to start
For a team with a fleet in the field and finite time, order matters:
- Give every device its own credential and test revocation end to end. If you cannot cut off one device today, that is the first gap to close.
- Encrypt every leg past the radio: TLS where the hardware allows, application-layer AEAD where it does not. Kill any endpoint that accepts unauthenticated writes.
- Lock production hardware: readout protection on, debug disabled, and if the BOM allows a secure element, put the keys in it on the next revision.
- Ship signed OTA before you need it. The last unsigned update you deliver should be the one that adds signature checking.
- Apply least privilege everywhere credentials exist: MQTT topic ACLs, platform access policies, scoped integration tokens.
- Put a WAF in front of the web surfaces, in monitor mode first, then blocking.
- Take the device network private where the fleet warrants it: private APN on the carrier side, VPN into the platform.
- Alert on silence and anomalies. Detection is the control that works when the others fail.
Completed in order, the eight steps are a zero-trust rollout for a fleet that already exists. None of this is a product you buy once; it is a posture spread across silicon, firmware, radio, and cloud. The platform’s job is to make its half of the posture the default: per-device tokens, a broker with real ACLs and mTLS, encryption at rest and in transit, a WAF you can switch on and private connectivity you can set up, and the audit trail to prove all of it. What TagoIO commits to on its side is documented at security.tago.io, and the broker, token, WAF and encryption controls are in the TagoIO docs. The firmware half is yours; this post is the map.