Firmware State Machine Watchpoint Hash Validation

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing systems running firmware or finite state machines are prone to triggering wrong or inconsistent signals, leading to potentially dangerous situations due to anomalous sequences of routines or states, which can result from Single Event Upsets (SEUs) or Multiple Event Upsets (MEUs), especially in critical applications like autonomous vehicles.

Innovation Solution

A method that involves analyzing and decomposing firmware or finite state machines into routines and states, associating watchpoints, calculating and comparing HASH values using a cryptographic HASH function like SHA-256 to validate correct execution paths, thereby preventing unauthorized or incorrect transitions.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Extent of automation

If firmware or finite state machine is used to execute tasks in response to internal or external events, then system functionality and automation are improved, but the risk of triggering wrong or inconsistent signals increases, leading to potentially dangerous situations

Engineering Contradiction:
Improveautomation of task executionVSAvoidsafety of component or system
Core Design Contradiction:
Extent of automationVSReliability

Solution Approach 1:

The patent applies preliminary action by pre-calculating and storing HASH values for all valid execution paths before the firmware or finite state machine runs. This allows the system to have validation criteria ready in advance, enabling rapid detection of anomalous sequences during execution without adding complex real-time validation logic.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent introduces HASH values as an intermediary mechanism to validate execution paths. Instead of directly comparing complex state sequences or instruction streams, the system uses HASH values as a condensed representation that mediates between the execution engine and the validation logic, simplifying the detection of wrong or inconsistent signals.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Reliability

If care is taken to prevent activation of wrong or inconsistent signals, then system safety is improved, but the complexity of verifying correct working increases

Engineering Contradiction:
Improvesafety of component or systemVSAvoidcomplexity of verification method
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent replaces complex mechanical or logical verification mechanisms with a cryptographic HASH-based validation system. Instead of using complex state comparison or instruction verification logic, the system substitutes these with HASH value calculation and comparison, which is computationally simpler and more efficient while providing equivalent or superior validation capability.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

Solution Approach 2:

The patent changes the verification parameter from complex state sequences or instruction streams to condensed HASH values. This parameter transformation maintains the ability to detect wrong or inconsistent signals while dramatically reducing the complexity of the verification process, as HASH values are fixed-length and easily comparable.

Inventive Principle:
Principle #35Parameter changes

3Reliability

If transitions among states or steps of routines are restricted to prevent unauthorized access, then system security is improved, but the flexibility of firmware or finite state machine execution is reduced

Engineering Contradiction:
Improvesecurity against hacking attackVSAvoidflexibility of execution
Core Design Contradiction:
ReliabilityVSAdaptability or versatility

Solution Approach 1:

The patent implements feedback by continuously monitoring execution paths and comparing actual HASH values against pre-calculated valid HASH values. This feedback mechanism allows the system to detect and prevent unauthorized transitions or hacking attempts while maintaining normal flexible execution for valid paths, as the validation is transparent and does not interfere with legitimate operations.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

By pre-calculating HASH values for all valid execution paths, the system establishes a comprehensive allowance list before execution begins. This preliminary action enables the system to freely execute any valid path without real-time restrictions while automatically blocking any unauthorized transitions, thus maintaining flexibility for legitimate operations while ensuring security.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS11477030B2Method for improving safety of a component or system running a firmware or a finite state machine
Publication Date: 2022.10.18 MICRON TECHNOLOGY INC
  • US11477030B2 patent drawing
  • US11477030B2 patent drawing
  • US11477030B2 patent drawing

AI summary

The present disclosure relates to analyzing a firmware or a finite state machine, decomposing the same into a plurality of routines or states, individuating significative instructions or states, associating each significative instruction or state with a watchpoint, calculating first HASH values of the watchpoints using a HASH function before running the firmware or finite state machine for all allowable paths in the firmware or finite state machine corresponding to a correct working of the same, storing the set of first HASH values as calculated, calculating second HASH values of the watchpoints using a HASH function when running of the firmware or finite state machine, comparing the second HASH value of each watchpoint as calculated with the stored set of first HASH values, and validating the instruction or state of a watchpoint as correct if its second HASH value is comprised in the first HASH values of the allowed paths.