Skip to main content
banner image
venafi logo

Secure Firmware Updates Are a Necessity for Resilient IoT Deployments

Secure Firmware Updates Are a Necessity for Resilient IoT Deployments

secure-firmware-updates-needed-for-iot-deployments
August 23, 2021 | Anastasios Arampatzis

The increasing availability of low-cost hardware, new low-power radio technologies, and real-time operating systems specially designed for these embedded devices makes the Internet of Things (IoT) accessible to a broader range of developers. IoT devices are now used in many verticals, from logistics to precision farming, introducing new ways to optimize existing business processes and enabling novel use cases. IoT devices are also used in critical infrastructure where safety and security play an even more important role.

However, while IoT devices are expected to have a major impact on our economy, they are also known for their relatively weak security. The Mirai botnet, for example, demonstrated that large-scale DDoS attacks using compromised IoT devices can threaten other infrastructures. It is equally alarming that many of these compromised IoT devices are not equipped with a firmware update mechanism and, therefore, remain unpatched to this day.

Vulnerabilities in Internet of Things (IoT) devices have raised the need for a reliable and secure firmware update mechanism suitable for devices with resource constraints. Incorporating such an update mechanism is a fundamental requirement for fixing vulnerabilities but it also enables other important capabilities such as updating configuration settings as well as adding new functionality.

The Open Web Application Security Project (OWASP) has identified the lack of a secure update mechanism as one of IoT Top 10 vulnerabilities: “Lack of ability to securely update the device. This includes lack of firmware validation on device, lack of secure delivery (un-encrypted in transit), lack of anti-rollback mechanisms, and lack of notifications of security changes due to updates.

A primer on firmware updates

Firmware updates can help to fix security vulnerabilities and are an important building block in securing IoT devices. Once devices are deployed, firmware updates play a critical part in their life cycle management, especially when these connected devices have a long lifetime. Considering that IoT devices are often deployed in remote or inaccessible areas where manual intervention is almost impossible and cost prohibitive, firmware updates should be rolled out automatically, without any user involvement. Automatic updates are key to a scalable solution for fixing software vulnerabilities.

Firmware updates are not only done to fix bugs, but they can also add new functionality, and re-configure the device to work in new environments. The firmware update process should ensure that:

  • The authenticity and integrity of the firmware image is protected to prevent attempts by adversaries to flash a maliciously modified firmware image or an image from an unknown, untrusted source.
  • The confidentiality of the firmware image is protected to safeguard against attempts to access the code in plaintext. Attackers seek to obtain the firmware as the first step to launch further attacks since it provides valuable information into the software libraries used, configuration settings and generic functionality.
Considerations for IoT firmware updates

When designing the firmware update process for deployed IoT devices, firmware authors and network operators should keep in mind the following considerations:

  • Install firmware updates in a robust fashion so that the update does not break the device functionality. This requires proper testing and establishing recovery strategies when a firmware update is unsuccessful.
  • Make firmware updates available in a timely fashion to address emerging vulnerabilities, while considering the complexity of the decision-making process for updating devices and the length of the involved supply chain before the update reaches the end customer.
  • Ensure that the update process is energy efficient for battery powered IoT devices. The firmware update, particularly radio communication and writing the firmware image to flash, can become an energy-intensive task for constrained IoT devices.
  • Ensure that firmware updates addressing critical flaws can be obtained even after a product is discontinued or a vendor goes out of business.

In addition to the above considerations, device manufacturers and customers should be incentivized to adopt and enforce frequent firmware updates to secure these devices against cyber-attacks. This is the purpose served by the IoT Cybersecurity Improvement Act of 2020, which dictates that federal agencies refrain from “procuring or obtaining, renewing a contract to procure or obtain, or using an IoT device” if the device is not compliant with the guidelines issued by NIST. These guidelines “on the appropriate use and management” of IoT devices include “minimum security requirements for managing cybersecurity risks” inherent with these devices.

How to secure IoT firmware updates

Just as firmware updates are important to fix vulnerabilities in IoT devices, it is equally important to secure the update mechanism. Security gaps in the update process can expose the remote code execution of the update. Failure to secure the firmware update process will help attackers to take control over devices.

There are various security controls that can be leveraged to protect the firmware image and the update process.

  • Authentication ensures that the device can cryptographically identify the author(s) creating the firmware images. In addition, the authenticated machine identities can be used as input to the authorization process to determine whether the requested action is allowed to access the device and perform the update.
  • Integrity protection ensures that no unauthorized entity can modify the firmware image. To accept an update, a device needs to verify the respective code signature of all software components included in the firmware update. To do so, the device needs to be in possession of the trust anchors to verify those code signatures.
  • Confidentiality of the firmware image ensures that only an authorized entity can have access to the unencrypted firmware image. The encrypted firmware image should be compatible with Content Distribution Networks, bulk storage, and broadcast protocols. To ensure the confidentiality of firmware images the author needs to be in possession of the proper machine identity in the form of a certificate/public key or a pre-shared key of the device.


In addition to the above consideration, crypto-agility should also be a core consideration in securing the update process. Since RSA- and ECC-based signature schemes may become vulnerable to quantum-computing in the future, unchangeable bootloader code in ROM is recommended to use post-quantum secure signature schemes such as hash-based signatures.

IoT device vendors and operators can safeguard the firmware update process by deploying highly scalable, agile, and cost-effective solutions that allow to build in high-assurance identity at every step of the IoT device lifecycle. Venafi TLS Protect and CodeSign Protect can help organizations build confidence that the IoT firmware updates are protected against attacks targeting the process.

Related Posts

Like this blog? We think you will love this.
image representing big data
Featured Blog

Le chiffrement homomorphe : Définition et utilisation

Qu'est-ce que le chiffrement homomorphe ? Le

Read More
Subscribe to our Weekly Blog Updates!

Join thousands of other security professionals

Get top blogs delivered to your inbox every week

See Popular Tags

You might also like

TLS Machine Identity Management for Dummies
eBook

TLS Machine Identity Management for Dummies

Certificate-Related Outages Continue to Plague Organizations
White Paper

CIO Study: Certificate-Related Outages Continue to Plague Organizations

About the author

Anastasios Arampatzis
Anastasios Arampatzis

Anastasios Arampatzis is a retired Hellenic Air Force officer with over 20 years of experience in evaluating cybersecurity and managing IT projects. He works as an informatics instructor at AKMI Educational Institute, while his interests include exploring the human side of cybersecurity.

Read Posts by Author
get-started-overlay close-overlay cross icon
get-started-overlay close-overlay cross icon
Venafi Risk assessment Form Image

Sign up for Venafi Cloud


Venafi Cloud manages and protects certificates



* Please fill in this field Please enter valid email address
* Please fill in this field Password must be
At least 8 characters long
At least one digit
At last one lowercase letter
At least one uppercase letter
At least one special character
(@%+^!#$?:,(){}[]~`-_)
* Please fill in this field
* Please fill in this field
* Please fill in this field
*

End User License Agreement needs to be viewed and accepted



Already have an account? Login Here

×
get-started-overlay close-overlay cross icon

How can we help you?

Thank you!

Venafi will reach out to you within 24 hours. If you need an immediate answer please use our chat to get a live person.

In the meantime, please explore more of our solutions

Explore Solutions

learn more

Email Us a Question

learn more

Chat With Us

learn more