Security
Given the globally distributed nature of the devices, smaller footprints and lack of resources, it can get difficult to individually secure IoT devices.
emnify uses a SASE approach to simplify securing devices—using several services specifically to protect customer data, filtering malicious content and preventing unauthorized access.
Security features
The following sections describe the emnify security and observability capabilities that help you monitor, control, and protect your IoT deployments.
Flow Logs
Flow Logs give you visibility into how your devices communicate by recording network flow metadata, such as source and destination IP addresses, ports, protocols, data volume, and connection timestamps. Without capturing packet payloads, you can independently investigate communication patterns, troubleshoot connectivity issues, analyze data usage, and support security investigations. Flow Logs are available through the emnify Portal, REST API, and Data Streamer. Use them to find the destinations and domains to allow or deny with the IP firewall and the DNS firewall.
IP firewall
The IP firewall lets you control IP-based traffic yourself, without support-assisted configuration or device-side changes. You manage outbound device communication with allow and deny rules based on IP addresses, ports, and protocols. You group these rules into IP firewall profiles and assign them to service policies, so you can centrally restrict devices to approved destinations and reduce the attack surface. For more information, see Set up the IP firewall.
DNS firewall
The DNS firewall lets you filter traffic by domain name yourself, without support-assisted configuration. You manage which domains your devices can resolve with allow and deny rules. You group these rules into DNS firewall profiles and assign them to service policies, in allowlist or blocklist mode, to block malicious, unauthorized, or unwanted domains before a connection is established. For more information, see Set up the DNS firewall.
Choose between the IP and DNS firewall
The IP firewall and the DNS firewall both use profiles that you assign to service policies, and a deny in any assigned profile is final. They share the same limits: 100 rules per profile, 100 profiles per organization, and 10 profiles per service policy.
Use the IP firewall and the DNS firewall together for layered control. The DNS firewall restricts which names your devices can resolve, and the IP firewall restricts which addresses they can connect to. If you use the IP firewall, allow DNS in its rules, otherwise your devices can’t reach the DNS resolver. If its rules allow port 53 only to the emnify default DNS, devices can’t bypass the DNS firewall with another DNS server.
DNS server
When a device establishes a connection, it uses a Domain Name Service (DNS) server to resolve a hostname to an IP address for data transmission.
For example, a hostname like iot.example.com is mapped to an IP address like 192.0.2.1.
Cellular providers typically provide DNS services.
If you don’t configure your own DNS server, emnify routes DNS queries to its default DNS at 100.64.0.53.
Some devices and modules allow you to configure the DNS service.
For example, Quectel uses the AT+QIDNSCFG command, while SIMCom uses the AT+CDNSCFG command.
Configuring the DNS service is beneficial for using your own or private DNS servers, enhancing security and control.
Customers can also configure to use their own DNS, no matter if it’s a public or a private one. For more information, see Configure DNS settings.
IMEI lock
Device manufacturers often face issues related to SIM card theft, as pluggable SIM cards can be removed from a device and used for free internet access. The IMEI lock feature prevents using SIM cards on any other device by binding the SIM to a specific international mobile equipment identity (IMEI), which serves as a unique device identifier.
When the automatic IMEI lock is configured, the emnify platform binds the SIM cards to the first device that establishes a data connection. All future device connections are restricted to this specific device.
However, emnify also provides a clear IMEI lock function, which allows you to remove the IMEI lock when necessary. You can access this action through the emnify Portal’s Connected Devices. While this provides flexibility for legitimate use cases such as device replacement or troubleshooting, it should be used cautiously as it also removes the security measure preventing unauthorized SIM usage.
Enabling or disabling the IMEI lock resets the device’s connectivity. The active data session ends and the device needs to reconnect.
To get notified when IMEI lock blocks a SIM in a different device, add an automation rule with the IMEI does not match event.
Each connection attempt that IMEI lock blocks also creates a rejected Create PDP Context event with the reject reason imei_lock_mismatch and the IMEI the network sent.
Authentication rate limiting
The emnify Portal and API protect user accounts against brute-force authentication attacks by automatically locking accounts after repeated failed login attempts.
After three consecutive failed authentication attempts on POST /api/v1/authenticate, the account is locked for five minutes.
During the lockout, the endpoint returns HTTP 401 with the TooManyRequests error (error_code: 1105), and further attempts are rejected.
This mechanism limits the rate at which an attacker can guess credentials, complementing the mandatory multi-factor authentication policy and ensuring regulatory security compliance.
Multi-factor authentication
As of March 2024, MFA is mandatory for all non-trial emnify Portal accounts to proactively safeguard our IoT ecosystem and meet regulatory security compliance. For more information and configuration instructions, see Set up multi-factor authentication.
Why does IoT require SASE?
Secure Access Service Edge (SASE) introduces a new architecture where networking and security functions are bundled in a cloud-delivered service. This approach allows you to apply consistent security standards to all your devices independent of the location. Additionally, it enables the integration of security features right from the start.
Key features of SASE for IoT architecture include:
- Dynamic Data Routing with Software-Defined Wide Area Network (SD-WAN)
emnify utilizes a SD-WAN to route data to the closest cloud region using the Regional Breakout concept. This enhances latency and data stability, ensuring that data remains within the designated continent and jurisdiction. - Cloud Access Security Broker (CASB)
emnify offers centralized policy definition for devices, including networks that can be accessed and authorized IP addresses for remote device access. All configurations are managed through the central platform and applied wherever the device is.
