Skip to content
F

FSMGuard

Secure your FSM's now!

Created on 8th March 2026

•

F

FSMGuard

Secure your FSM's now!

The problem FSMGuard solves

Problem Statement

Finite State Machines (FSMs) are a core component of digital hardware systems and are widely used by RTL designers to implement control logic in processors, communication controllers, security modules, and embedded systems. These FSMs define how a system transitions between different operational states based on inputs and internal conditions.

However, designing secure and reliable FSMs is challenging for RTL engineers. As designs grow more complex, FSMs can contain dozens or even hundreds of states and transitions, making it extremely difficult to manually verify every possible execution path.

RTL designers commonly face several challenges:

  • Hidden illegal transitions that may unintentionally allow the system to enter unsafe states.
    *Dead or unreachable states caused by incomplete transition logic.
  • Missing guard conditions on transitions, allowing unexpected inputs to alter control flow.
  • Improper reset handling, which can push the FSM into undefined states during power-up or recovery.
  • Security vulnerabilities* where attackers could manipulate input signals to force the system into privileged or unintended states.

Traditional verification tools such as simulation and basic formal checks primarily focus on functional correctness, ensuring that the design behaves as intended under normal conditions. However, they rarely provide automated methods to detect security weaknesses within FSM structures or recommend fixes.

Because of this, RTL designers often have to manually inspect FSM logic, analyze large case statements, and reason about complex transition paths—an error-prone and time-consuming process.

FSMGuard AI addresses this gap by providing an automated analysis and repair framework. It extracts FSM structures from Verilog designs, models them as graphs, detects vulnerable states using graph neural networks, and applies reinforcement learning to generate secure fixes. The system then formally verifies the patched design to ensure both functional correctness and improved security, significantly reducing the burden on RTL designers.

Challenges we ran into

Challenges Encountered

One of the main challenges during the development of FSMGuard AI was evolving the project from a simple prototype into a more structured, industry-style pipeline.

Initially, the system relied on basic FSM extraction and simple rule-based analysis. However, real-world RTL designs are far more complex, with FSM logic spread across multiple blocks, conditional transitions, and reset behaviors. This required improving the parsing and FSM reconstruction process to make the analysis more reliable.

Another challenge was designing a pipeline where multiple components—static analysis, graph representation, machine learning, reinforcement learning, and formal verification—could work together seamlessly. Ensuring that each stage produced consistent and usable outputs for the next stage required careful structuring of the workflow.

Finally, creating an RL environment that could modify FSM transitions while preserving functional correctness required defining meaningful constraints and rewards.

Addressing these challenges helped transform FSMGuard AI from a basic analysis tool into a more scalable and structured framework closer to industry-grade hardware security analysis workflows.

Discussion

Builders also viewed

See more projects on Devfolio