Control Flow Flattening
A code obfuscation technique that dismantles sequentially executing program logic and rewrites it as a state machine driven by a while loop, making it impossible to infer the original execution order through static analysis. It is commonly used for JavaScript anti-reverse-engineering protection.
Timeline (last 90 days)
Control-flow flattening rewrites normal branch structures into a state-machine-style dispatch loop, causing the disassembly output to lose its intuitive semantic structure and significantly reducing the reliability of LLM pattern matching.
Static reading is almost ineffective against control flow flattening; readable form can only be restored through dynamic execution or with the help of AST restoration tools.
Control flow flattening is a code obfuscation technique that transforms structured if-else constructs and loops into a flat dispatch structure based on switch-case.
All Facts (4)
Control flow flattening is a code obfuscation technique that transforms structured if-else constructs and loops into a flat dispatch structure based on switch-case.
60%UnverifiedModern web applications commonly employ obfuscation techniques such as variable name substitution, control flow flattening, string encryption, and code minification to protect core business logic.
60%UnverifiedControl-flow flattening rewrites normal branch structures into a state-machine-style dispatch loop, causing the disassembly output to lose its intuitive semantic structure and significantly reducing the reliability of LLM pattern matching.
50%UnverifiedStatic reading is almost ineffective against control flow flattening; readable form can only be restored through dynamic execution or with the help of AST restoration tools.
50%