courses > Cellular IoT Foundations > Security fundamentals for IoT
Security fundamentals for IoT
Verifying that a device is real, authorized, and untampered is the foundation of every trustworthy IoT system.
The IMSI and secret Ki, provisioned at manufacturing, let the cellular network authenticate a device.
SIM-based authentication proves identity without the Ki ever leaving the SIM, so intercepted radio traffic reveals nothing.
Mutual TLS makes both device and server prove their identity, which server-only auth cannot do in physically exposed deployments.
API keys and JWTs are easier to implement but weaker than mTLS; many systems combine methods.
A Hardware Root of Trust keeps cryptographic keys in isolated memory rather than plain flash.
Every connected device that sends data to the cloud is making a claim: "I am who I say I am, and you should trust this data." But how does your backend actually verify that claim? By the end of this page you will understand how IoT devices establish and prove their identity, and why getting this right is one of the most critical decisions in designing a cellular IoT system.
Before your platform acts on a reading, it needs to answer three questions: Is this device real, or is someone impersonating a device in your fleet? Is this device authorized to send data to this endpoint? Has this message been tampered with in transit? Device identity is the foundation that lets you answer all three. Without a verifiable, unique identity for each device, you cannot build a trustworthy system.
In cellular IoT, device identity starts with the SIM. Every SIM, whether a removable card, a soldered MFF2 chip, or an integrated iSIM, contains a unique identifier called the IMSI (International Mobile Subscriber Identity) and a secret key called the Ki. These values are provisioned during manufacturing and are used by the cellular network to authenticate the device before it is granted network access.
The cellular network uses a protocol called AKA, Authentication and Key Agreement, to verify a device. At a high level:
The critical point is that the Ki never leaves the SIM. It is computed on-chip, so even if someone intercepts the radio communication they cannot extract the secret key. This is hardware-based security at its most fundamental level. Using a soldered SIM in MFF2 form factor also removes the SIM slot as a physical attack vector, so an attacker cannot simply pull the card out and clone it.
SIM-based authentication gets your device onto the cellular network, but authenticating to your cloud platform is a separate problem, most commonly solved with mutual TLS (mTLS). In standard TLS (Transport Layer Security), only the server proves its identity to the client. In mutual TLS the authentication goes both ways: the device also presents a certificate, and both sides verify each other before any data is exchanged. Each device is provisioned with:
Server-only authentication is insufficient for IoT because devices often operate in physically accessible environments where an attacker could set up a rogue endpoint.
For simpler deployments or devices with limited processing power, token-based authentication is an alternative. The device authenticates using a pre-shared API key or a signed JSON Web Token (JWT). The trade-offs:
In practice, many systems use a hybrid approach: SIM-based authentication for network access, and mTLS or token-based authentication for cloud communication.
Whichever mechanism you choose, the security of the whole system depends on how well you protect the cryptographic keys. A Hardware Root of Trust is dedicated hardware that stores keys in isolated, protected memory. Store keys in hardware-isolated storage, not plain flash. Options include:
1. In cellular IoT, where does a device's identity start?
2. During SIM-based (AKA) authentication, what happens to the secret key (Ki)?
3. What makes mutual TLS (mTLS) different from standard TLS?
Understand how encryption secures data in transit. Learn the differences between symmetric and asymmetric encryption, plus how TLS and DTLS work.
Start lesson