Abstract:In today's various programs, many people think that there are only two procedures, namely, goodwill and malicious programs, but after the study of the program attributes, found that there is a third attribute of the program, the program part of a malicious, Part of the good intentions, the third attribute program is first proposed by this article. This paper puts forward the idea of solving the problem: firstly, the malicious weight calculation formula is used to calculate the program, judge whether the program is a good program or a malicious program, and analyze whether the weight of the program has changed. If the weight of a program has changed, then the bona fide program is very likely to be infected by the virus, the virus infection program at a certain time will be able to reflect a certain degree of malicious, so after the virus, the virus Infection procedures and goodwill procedures after the analysis of three different attributes, the final use of MMTD algorithm for the three types of procedures were classified: the program is malicious programs, goodwill or part of the malicious part of the program in good faith.