The invention discloses a
mimicry thought-based code dynamic
obfuscation compiling method,
system and equipment. The method comprises the following steps of: sensing a
source code, and performing
compiler annotation on a key function in combination with a large
language model and expert knowledge; a global character string constant is extracted, an
ASCII value of a character is coded into an MBA expression, a decoding function is inserted into a position where the constant is used,
mimicry replacement is performed on an original character string in a
data segment, and functions of other programs are disguised; adding a clone block irrelevant to function logic, and constructing a
mimicry branch by using a dynamic opaque predicate as a jump condition; adding an equivalent heterogeneous shadow
branch, and using a random predicate as a jump condition; a flower instruction is inserted, and an MBA expression is used for instruction replacement; and performing
control flow flattening on the function. According to the method, the mimicry multi-variant thought is combined, accurate diversified
confusion compilation is performed, and key fragments of program codes in the fields of industrial control, power grids,
Internet of Things and the like are effectively protected.