The invention relates to the technical field of
network security, and discloses a non-killing PE program generation method based on
Shellcode encryption, which comprises the following steps of: converting an original PE program into a position-independent
Shellcode, respectively encrypting the
Shellcode and a key loading parameter, and writing the Shellcode and the key loading parameter into a
loader configuration file; a
loader configuration file and a Shellcode
loader main program file used for decrypting and executing a Shellcode are compiled through a compiling tool, and a non-killing PE program is generated, so that the PE program can bypass static feature analysis and a conventional file detection mechanism on the basis of not modifying a
source code; meanwhile, the Shellcode loader directly executes the Shellcode in a
system call (syscale) mode, and behavior characteristic monitoring caused by a common API call path is avoided. According to the method, the PE program effectively avoids a traditional antivirus engine and a terminal detection
system, the concealment and reliability of the antivirus-free PE program sample are remarkably improved, and then the generalization of an existing malicious program detection
system is improved.