Microcontroller Bootloader Overwrite for Firmware Security

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Firmware updates in control devices with microcontrollers can introduce security risks, particularly in safety-critical areas, as they can be compromised by attackers, leading to potential damage and system failure, necessitating a method to enhance operational reliability and security without entirely prohibiting updates.

Innovation Solution

The bootloader area of the microcontroller's flash memory is overwritten, and the reset handler is directly referenced to the application area, preventing further firmware updates and ensuring the integrity and security of the control unit, with a locking parameter to control the overwrite process and prevent external manipulation.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If firmware updates are enabled to fix errors and improve functionality, then the system can benefit from security patches and bug fixes, but the risk of installing compromised or malicious firmware increases

Engineering Contradiction:
Improvefirmware update capabilityVSAvoidmalicious firmware attack risk
Core Design Contradiction:
ReliabilityVSObject-affected harmful factors

Solution Approach 1:

The bootloader area is overwritten with a specific pattern (e.g., zeros or random data) before the application area is made directly executable. This preliminary overwriting action prevents any future firmware updates from being loaded, as the overwritten bootloader area can no longer execute update routines. The pattern overwrite is performed in advance to ensure that even if an attacker attempts to inject malicious firmware later, the overwritten bootloader area blocks such attempts.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The invention extracts and removes the bootloader's update functionality by overwriting its area in the flash memory. By completely overwriting the bootloader area with a pattern, the malicious or unwanted update capability is taken out of the system. The reset handler is then configured to skip the bootloader area and directly execute the application area, effectively removing the update mechanism from the system while preserving the application's execution capability.

Inventive Principle:
Principle #2Taking out (Extraction)

2Object-affected harmful factors

If the bootloader area is overwritten to prevent future updates, then security against malicious firmware is improved, but the ability to perform legitimate firmware updates is lost

Engineering Contradiction:
Improvesecurity against malicious updatesVSAvoidfirmware update capability
Core Design Contradiction:
Object-affected harmful factorsVSAdaptability or versatility

Solution Approach 1:

The bootloader area is overwritten with a specific pattern (e.g., zeros or random data) before the application area is made directly executable. This preliminary overwriting action prevents any future firmware updates from being loaded, as the overwritten bootloader area can no longer execute update routines. The pattern overwrite is performed in advance to ensure that even if an attacker attempts to inject malicious firmware later, the overwritten bootloader area blocks such attempts.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The invention extracts and removes the bootloader's update functionality by overwriting its area in the flash memory. By completely overwriting the bootloader area with a pattern, the malicious or unwanted update capability is taken out of the system. The reset handler is then configured to skip the bootloader area and directly execute the application area, effectively removing the update mechanism from the system while preserving the application's execution capability.

Inventive Principle:
Principle #2Taking out (Extraction)

3Object-affected harmful factors

If firmware updates are completely prohibited to eliminate security risks, then system security is improved, but known errors and security gaps can no longer be closed

Engineering Contradiction:
Improvesecurity risk from updatesVSAvoiderror correction capability
Core Design Contradiction:
Object-affected harmful factorsVSReliability

Solution Approach 1:

The bootloader area is overwritten with a specific pattern (e.g., zeros or random data) before the application area is made directly executable. This preliminary overwriting action prevents any future firmware updates from being loaded, as the overwritten bootloader area can no longer execute update routines. The pattern overwrite is performed in advance to ensure that even if an attacker attempts to inject malicious firmware later, the overwritten bootloader area blocks such attempts.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The invention extracts and removes the bootloader's update functionality by overwriting its area in the flash memory. By completely overwriting the bootloader area with a pattern, the malicious or unwanted update capability is taken out of the system. The reset handler is then configured to skip the bootloader area and directly execute the application area, effectively removing the update mechanism from the system while preserving the application's execution capability.

Inventive Principle:
Principle #2Taking out (Extraction)

Data Source

PatentEP4361800B1Method for improving the operational reliability of a control device, and control device
Publication Date: 2024.09.25 RAFI GMBH & CO KG
  • EP4361800B1 patent drawingFigure 1
  • EP4361800B1 patent drawingFigure 2
  • EP4361800B1 patent drawingFigure 3

AI summary

Especially in critical infrastructure sectors, such as the chemical industry, the reliability of control units is paramount to prevent processes from being misdirected or interrupted by faulty firmware, thus avoiding potential damage. Firmware updates are a particularly problematic point of entry because, on the one hand, faulty updates can introduce errors, and on the other hand, the inability to perform updates must also be considered a safety-critical issue. The present invention therefore provides that the firmware update capability of a microcontroller in a control unit can be disabled by selectively overwriting a bootloader area. This overwrite process modifies the reset handler so that it no longer references the bootloader but instead directly initiates the application's startup.A firmware update can therefore be irreversibly prevented both because of the missing reference and because of the overwritten bootloader area.