Image for Control Flow Integrity (CFI)

Control Flow Integrity (CFI)

Control Flow Integrity (CFI) is a security feature that helps prevent attackers from manipulating a program's execution flow. It ensures that the program only follows the paths intended by its design, blocking unauthorized jumps or calls to malicious code. Think of it like a well-guarded path that directs a traveler only along approved roads, preventing detours or illegal routes. By checking that each step taken by the program aligns with its legitimate structure, CFI protects systems from exploits that rely on hijacking the program's control flow to cause harm or steal data.