Patent ID: 9600668
Date: 2017-03-21
CPC Classifications: G06F,H04L

Claim:
1. A method for extracting a characteristic code of APK virus, comprising: scanning a designated file in an Android installation package APK; extracting an operation instruction in the designated file, and determining whether the operation instruction contains virus information; and generating a virus characteristic code according to the operation instruction when the operation instruction contains virus information; wherein, the designated file comprises an executable file, and the method further comprises: extracting a constant in a constant pool of the executable file, and determining whether the constant contains virus information; generating the virus characteristic code according to the constant when the constant contains virus information; extracting header information of the executable file, and determining whether the header information contains virus information; and generating the virus characteristic code according to the header information when the header information contains virus information, wherein the header information of the executable file includes summary information checksum and signature information Signature, and the determining whether the header information includes the virus information includes: determining whether the summary information checksum and/or signature information Signature include a pre-defined illegal character string; and generating the virus characteristic code according to the header information comprises generating the summary information checksum and/or signature information Signature as the virus characteristic code.