[KongchangAI]
ConceptControl Flow Flattening / CFF

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)

Nov 19

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.

Unverified50%
Sep 15

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.

Unverified50%
Sep 6

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.

Unverified60%

All Facts (4)

Source Articles