WO2010023557A2 - Heuristic method of code analysis - Google Patents

Heuristic method of code analysis Download PDF

Info

Publication number
WO2010023557A2
WO2010023557A2 PCT/IB2009/006957 IB2009006957W WO2010023557A2 WO 2010023557 A2 WO2010023557 A2 WO 2010023557A2 IB 2009006957 W IB2009006957 W IB 2009006957W WO 2010023557 A2 WO2010023557 A2 WO 2010023557A2
Authority
WO
WIPO (PCT)
Prior art keywords
instruction
processor
program
determination
suspicion criteria
Prior art date
Application number
PCT/IB2009/006957
Other languages
French (fr)
Other versions
WO2010023557A3 (en
Inventor
Zdenek Brietenbacher
Original Assignee
Avg Technologies Cz, S.R.O.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Avg Technologies Cz, S.R.O. filed Critical Avg Technologies Cz, S.R.O.
Priority to BRPI0913165A priority Critical patent/BRPI0913165A2/en
Priority to CN200980142935.0A priority patent/CN102203792B/en
Priority to EP09760572.9A priority patent/EP2350903B1/en
Priority to JP2011524475A priority patent/JP2012501028A/en
Priority to AU2009286432A priority patent/AU2009286432B2/en
Priority to RU2011111535/08A priority patent/RU2526716C2/en
Priority to CA2735545A priority patent/CA2735545C/en
Publication of WO2010023557A2 publication Critical patent/WO2010023557A2/en
Publication of WO2010023557A3 publication Critical patent/WO2010023557A3/en
Priority to ZA2011/01746A priority patent/ZA201101746B/en
Priority to HK12103014.2A priority patent/HK1162709A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/55Detecting local intrusion or implementing counter-measures
    • G06F21/56Computer malware detection or handling, e.g. anti-virus arrangements
    • G06F21/566Dynamic detection, i.e. detection performed at run-time, e.g. emulation, suspicious activities
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/55Detecting local intrusion or implementing counter-measures
    • G06F21/56Computer malware detection or handling, e.g. anti-virus arrangements
    • G06F21/562Static detection
    • G06F21/563Static detection by source code analysis

Definitions

  • the present disclosure relates to identification and analysis of data transferred via a communications network, and more particularly to identification, detection and analysis of harmful or malicious software or data.
  • Malware or malicious software
  • Malware is a computer program designed to infiltrate a computing device without the device owner's knowledge or consent.
  • Malware has come to refer to a generic class of software including a variety of hostile, intrusive or otherwise annoying forms of software or computer code.
  • Malware includes various viruses, worms, trojan horses (or trojans), rootkits, spyware, adware and any other unwanted malicious software.
  • Various types of malware may collect personal information related to a user and send this information back to an information collecting device.
  • malware may cause a computing device to function poorly, or to not function at all.
  • 0003j One attempt at identifying and removing malware is antivirus software.
  • Conventional antivirus software uses search sequences and rules-based analysis to look for known malware.
  • malware code may be frequently changed by the malware program author such that search sequences and rules-based analysis may fail to detect updated programs.
  • Newer antivirus software uses more advanced and sophisticated identification techniques, especially when trying to detect new and unknown malware programs.
  • Existing malware programs may share similar patterns of commands that, regardless of the actually coding used to implement the malware, may be identified by the antivirus software.
  • such methods are not very useful for detecting new and unknown viruses having no previously detected pattern of operation.
  • malware detection methods evaluate suspicious program behavior. If antivirus software finds major differences from what may be called “good manners," an antivirus software application may assume that it has detected a new virus or malware program. These methods may be referred to using the overall term of "heuristic" malware detection methods.
  • a heuristic analysis means that the examined program is being launched in some isolated and safe environment, and the method investigates its performance. The method tries to collect as much information as possible and evaluate whether an examined program's performance can be considered legitimate, or whether the program strives for something unusual or dangerous. If suspicious activity is detected, the program may be categorized as suspicious or even harmful.
  • the embodiments disclose a method of detecting malware at a computing device.
  • the method includes examining, by a processor of the computing device, a software program comprising a sequence of program instructions stored on a computer readable medium operably connected to the processor; determining, by the processor, whether each instruction in the sequence meets any of a group of suspicion criteria; assigning, by the processor, a instruction-level score to each instruction that meets any of the suspicion criteria; summing, by the processor, the instruction-level scores for each instruction to yield a program-level score; determining, by the processor, whether the program-level score exceeds a threshold; and if the program-level score exceeds a threshold, developing, by the processor, a report indicating a malware detection result.
  • the embodiments disclose a method of detecting malware at a computing device.
  • the method includes the step of running, by a processor of the computing device, a software analysis program.
  • running the software analysis program comprises loading, by the processor, a sequence of program instructions stored on a computer readable medium operably connected to the processor; examining, by the processor, each program instruction in the sequence as it is executed; determining, by the processor, whether each instruction in the sequence meets any of a group of suspicion criteria during execution; assigning, by the processor, a instruction-level score to each instruction that meets any of the suspicion criteria; summing, by the processor, the instruction-level scores for each instruction to yield a program-level score; determining, by the processor, whether the program-level score exceeds a threshold; and if the program-level score exceeds a threshold, developing, by the processor, a report indicating a malware detection result.
  • the embodiments disclose a method of detecting malware at a computing device.
  • the method includes examining, by a processor of the computing device, a software program comprising a sequence of program instructions stored on a computer readable medium operably connected to the processor; determining, by the processor, whether each instruction in the sequence meets any of a group of suspicion criteria, wherein the group of suspicion criteria comprises a determination of whether the instruction results in a transformation of data, a determination of whether the instruction causes a jump into another instruction, and a determination of whether at least two sequential instructions have identical meanings; assigning, by the processor, a instruction-level score to each instruction that meets any of the suspicion criteria; summing, by the processor, the instruction-level scores for each instruction to yield a program-level score; determining, by the processor, whether the program-level score exceeds a threshold; and if the program-level score exceeds a threshold, developing, by the processor, a report indicating a malware detection result.
  • FIG. 1 illustrates exemplary code related to a technically pure software program
  • FIG. 4 illustrates an exemplary computing device for implementing the process described in FIG. 3.
  • the present disclosure describes new heuristic methods that analyze a potentially- suspicious program that function without running the program in an actual operating environment, thereby eliminating the potential for the suspicious program to perform any harmful operations.
  • heuristic malware detection methods may examine a suspicious program while it is running in safe environment, a method referred to herein as the "dynamic" method.
  • these dynamic approaches have various drawbacks related to the time and resources required to run the software in a safe environment.
  • methods described below as a "static" method of heuristic analysis examine the suspicious program code without running the suspicious program.
  • the present disclosure further describes a static method for analyzing program code. This analysis is not performed from merely a scope based on a program behavior but rather from a scope based on technical purity. This method looks for differences in the program code as compared to the program code produced by common "official” tools. As used herein, the term “official tools” refers to commonly used compilers and run-time compressors. The method described in this disclosure supposes that the program code created in a standard and correct way may be technically pure, functionally straightforward and free from any malicious coding tricks included to block the analysis.
  • FIG. 1 illustrates an exemplary sequence of program instructions created in an official tool, in this example by Microsoft Visual C++ 6.0, may look like.
  • the code shown in FlG. I A is a well known and harmless WGET.EXE program.
  • the WGET. EXE code is technologically pure and has no useless or illogical operations.
  • FIG. 2 illustrates the opposite extreme, an example of a malicious trojan worm.
  • FIG. 2 illustrates that the trojan worm program contains minimal correct and meaningful instructions (displayed in black), while most of the program code consists of meaningless garbage. If an expert sees such a program, the expert can tell immediately that something is wrong with the code, and the program is more than likely malicious. Thus, it is desirable to program virus detection software to function as an expert, analyzing the technical purity of the code while not merely getting hung up in clever coding tricks and techniques implemented to fool the antivirus software.
  • 0023 FIG. 3 illustrates an exemplary process 300 for heuristically analyzing and detecting malware programs. Initially, the process loads each of a sequence of program instructions examines 302 one of the program instructions included in the software program.
  • each instruction of the sequence may be loaded individually, or a module including multiple instructions may be loaded at once for examination 302.
  • one instruction may be analyzed at a time, or based upon the resources available, multiple instructions may be analyzed simultaneously.
  • a single instruction is analyzed at a time.
  • the instruction is compared 304 to a suspicion criterion.
  • suspicion criteria rate each instruction based upon the expected outcome of the instruction when run. Different results of the analyzed instruction may satisfy various of the suspicion criteria, and based upon these results, an instruction-level score may be assigned to each instruction.
  • the analyzing software may examine each instruction and determine 306 if the instruction violates some or all of the following criteria:
  • the examined instruction actually performs some action. For instance, if the content of a 32-bit register rotates by 32 bits, the data should stay the same.
  • the scoring system makes a note on this fact and "fines" such an instruction by an adequate number of penalties. A fine may be a negative score, or it may be an assigned numeric point system where total scores that exceed a predetermined level are presumed to indicate the presence of malware.
  • the examined instruction belongs to an instruction group that actually does not change or alter the data. For instance, two sequential negations of the same registry mean that the registry content has not changed at all. Again, this will be fined by a reasonable number of penalties. 3) Whether the examined instruction jumps into the middle of another instruction. The analyzing software may be able to recognize such a trick, and it may fine it by a high number of penalties.
  • any of the above described situations if detected in the instruction, may result in the instruction-level score updating 308 to reflect a certain number of penalties assigned to a specific criterion based on experience, comparison to code or instruction sequences generated by an official tool. Exact number of penalties for specific situations may be determined based on a long-term and extensive testing. The penalties may be revised for different situations as the system gains experience with additional programs.
  • the process may determining 310 if there are additional suspicion criteria to compare 304 the instruction to. If there are additional criteria, the instruction is further compared 304 and analyzed, possibly resulting in another update 308 of the instruction level score. Conversely, if there are no additional criteria to compare 304 the instruction to, a total instruction-level score may be determined 312 for the examined instruction.
  • a determination 314 may be made as to whether .there are any additional instructions to examine 302. If there are additional instructions in the sequence of instructions, the process returns to examine 302 and compare 304 the additional instructions to the suspicion criteria. Once all instructions are examined 302, compared 304, and all instruction-level scores are determined 312, the total score for the software program may be summed 316. This summing 316 may be simply an adding of each of the instruction- level scores, or may include various multipliers based upon the number of individual criteria the software program violates. Based upon this sum 316, the software program is determined 318 to be either harmless or malicious. This determination 318 may be based upon a comparison of a similar software program coded by an official tool, such as the code illustrated in FIG. 1.
  • FIG. 4 depicts a block diagram of exemplary internal hardware that may be used to contain or implement program instructions such as the malware detection process described in FIG. 3.
  • a bus 400 may serve as the main information highway interconnecting the other illustrated components of the hardware.
  • CPU 405 may be the central processing unit of the system, performing calculations and logic operations required to execute a program.
  • ROM read only memory
  • RAM random access memory
  • a controller 420 may interface with one or more optional memory devices 425 to the system bus 400.
  • These memory devices 425 may include, for example, an external or internal DVD drive, a CD ROM drive, a hard drive, flash memory, a USB drive or the like. As indicated previously, these various drives and controllers are optional devices.
  • Program instructions may be stored in the ROM 410 and/or the RAM 415.
  • program instructions may be stored on a tangible computer readable medium such as a compact disk, a digital disk, flash memory, a memory card, a USB drive, an optical disc storage medium, such as Blu-rayTM disc, and/or other recording medium.
  • An optional display interface 430 may permit information from the bus 400 to be displayed on the display 435 in audio, visual, graphic or alphanumeric format. Communication with external devices may occur using various communication ports 440.
  • An exemplary communication port 440 may be attached to a communications network, such as the Internet or an intranet.
  • the hardware may also include an interface 445 which allows for receipt of data from input devices such as a keyboard 450 or other input device 455 such as a mouse, a joystick, a touch screen, a remote control, a pointing device, a video input device and/or an audio input device.
  • input devices such as a keyboard 450 or other input device 455 such as a mouse, a joystick, a touch screen, a remote control, a pointing device, a video input device and/or an audio input device.
  • the heuristic analysis process discussed herein may be launched on any program section. In some situations, it may be sufficient to examine only a portion of the code, such as the first 512 bytes on the entry point. While an emulator that has to launch the entire program and go through loops with millions of cycles before it actually finds something important, the above described heuristic may provide its results within milliseconds.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Virology (AREA)
  • Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Debugging And Monitoring (AREA)
  • Stored Programmes (AREA)
  • Storage Device Security (AREA)
  • Devices For Executing Special Programs (AREA)

Abstract

A method of detecting malware at a computing device. The method includes examining a software program comprising a sequence of program instructions, determining whether each instruction in the sequence meets any of a group of suspicion criteria, assigning a instruction-level score to each instruction that meets any of the suspicion criteria, summing the instruction- level scores for each instruction to yield a program-level score, determining whether the program-level score exceeds a threshold, and, if the program-level score exceeds a threshold, developing a report indicating a malware detection result.

Description

A. TITLE
HEURISTIC METHOD OF CODE ANALYSIS
B. CROSS REFERENCE TO RELATED APPLICATIONS
[0001] This application claims the priority benefit of United States Patent Application No. 12/548,747 filed August 27, 2009, which claims priority to United States Provisional Application No. 61/092,602 filed August 28, 2008.
C-E. NOT APPLICABLE
F. BACKGROUND
|0001| The present disclosure relates to identification and analysis of data transferred via a communications network, and more particularly to identification, detection and analysis of harmful or malicious software or data.
|0002| As computer network technology and infrastructure have improved over the years, the amount and speed of data transferred between computer network devices has drastically increased. Among this transferred data is a class of data referred to as malware. Malware, or malicious software, is a computer program designed to infiltrate a computing device without the device owner's knowledge or consent. Malware has come to refer to a generic class of software including a variety of hostile, intrusive or otherwise annoying forms of software or computer code. Malware includes various viruses, worms, trojan horses (or trojans), rootkits, spyware, adware and any other unwanted malicious software. Various types of malware may collect personal information related to a user and send this information back to an information collecting device. Other types of malware may cause a computing device to function poorly, or to not function at all. |0003j One attempt at identifying and removing malware is antivirus software. Conventional antivirus software uses search sequences and rules-based analysis to look for known malware. However, malware code may be frequently changed by the malware program author such that search sequences and rules-based analysis may fail to detect updated programs.
[00041 Newer antivirus software uses more advanced and sophisticated identification techniques, especially when trying to detect new and unknown malware programs. Existing malware programs may share similar patterns of commands that, regardless of the actually coding used to implement the malware, may be identified by the antivirus software. However, such methods are not very useful for detecting new and unknown viruses having no previously detected pattern of operation.
|0005| To address this problem, recently-developed antivirus software detection methods evaluate suspicious program behavior. If antivirus software finds major differences from what may be called "good manners," an antivirus software application may assume that it has detected a new virus or malware program. These methods may be referred to using the overall term of "heuristic" malware detection methods. Typically, a heuristic analysis means that the examined program is being launched in some isolated and safe environment, and the method investigates its performance. The method tries to collect as much information as possible and evaluate whether an examined program's performance can be considered legitimate, or whether the program strives for something unusual or dangerous. If suspicious activity is detected, the program may be categorized as suspicious or even harmful.
100061 Heuristic analysis can provide several advantages. It works regardless of whether the examined program have been examined in the past. It can also recognize new viruses and trojans. However, there are some disadvantages as well. These include: 1 ) Lack of accuracy. No heuristic method can be considered fully accurate. The border between correct and harmful software behavior can be foggy. Therefore, false alarms on clean programs, as well as missed detections of real malware, can be common.
2) Time demands. It is very time demanding to launch a program in a safe environment where one can be sure that no harm will result.
3) Cowifermeasures. Malware authors use number of tricks to prevent this type of analysis. It is extremely difficult to avoid all traps and intrigues.
G. SUMMARY
|0007| The invention described in this document is not limited to the particular systems, methodologies or protocols described, as these may vary. The terminology used herein is for the purpose of describing particular embodiments only, and is not intended to limit the scope of the present disclosure.
|0008] It must be noted that as used herein and in the appended claims, the singular forms "a," "an," and "the" include plural reference unless the context clearly dictates otherwise. Unless defined otherwise, all technical and scientific terms used herein have the same meanings as commonly understood by one of ordinary skill in the art. As used herein, the term "comprising" means "including, but not limited to."
|0009| In one general respect, the embodiments disclose a method of detecting malware at a computing device. The method includes examining, by a processor of the computing device, a software program comprising a sequence of program instructions stored on a computer readable medium operably connected to the processor; determining, by the processor, whether each instruction in the sequence meets any of a group of suspicion criteria; assigning, by the processor, a instruction-level score to each instruction that meets any of the suspicion criteria; summing, by the processor, the instruction-level scores for each instruction to yield a program-level score; determining, by the processor, whether the program-level score exceeds a threshold; and if the program-level score exceeds a threshold, developing, by the processor, a report indicating a malware detection result. lOOlOJ In another general respect, the embodiments disclose a method of detecting malware at a computing device. The method includes the step of running, by a processor of the computing device, a software analysis program. Specifically, running the software analysis program comprises loading, by the processor, a sequence of program instructions stored on a computer readable medium operably connected to the processor; examining, by the processor, each program instruction in the sequence as it is executed; determining, by the processor, whether each instruction in the sequence meets any of a group of suspicion criteria during execution; assigning, by the processor, a instruction-level score to each instruction that meets any of the suspicion criteria; summing, by the processor, the instruction-level scores for each instruction to yield a program-level score; determining, by the processor, whether the program-level score exceeds a threshold; and if the program-level score exceeds a threshold, developing, by the processor, a report indicating a malware detection result.
|0011] In one general respect, the embodiments disclose a method of detecting malware at a computing device. The method includes examining, by a processor of the computing device, a software program comprising a sequence of program instructions stored on a computer readable medium operably connected to the processor; determining, by the processor, whether each instruction in the sequence meets any of a group of suspicion criteria, wherein the group of suspicion criteria comprises a determination of whether the instruction results in a transformation of data, a determination of whether the instruction causes a jump into another instruction, and a determination of whether at least two sequential instructions have identical meanings; assigning, by the processor, a instruction-level score to each instruction that meets any of the suspicion criteria; summing, by the processor, the instruction-level scores for each instruction to yield a program-level score; determining, by the processor, whether the program-level score exceeds a threshold; and if the program-level score exceeds a threshold, developing, by the processor, a report indicating a malware detection result.
H. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Aspects, features, benefits and advantages of the present invention will be apparent with regard to the following description and accompanying drawings, of which:
|0013| FIG. 1 illustrates exemplary code related to a technically pure software program;
|0014| FlG. 2 illustrates exemplary code related to a malicious software program;
|0015| FlG. 3 illustrates an exemplary malware detection process;
|0016| FIG. 4 illustrates an exemplary computing device for implementing the process described in FIG. 3.
I. DETAILED DESCRIPTION
|0017) The present disclosure describes new heuristic methods that analyze a potentially- suspicious program that function without running the program in an actual operating environment, thereby eliminating the potential for the suspicious program to perform any harmful operations. As mentioned above, heuristic malware detection methods may examine a suspicious program while it is running in safe environment, a method referred to herein as the "dynamic" method. However, these dynamic approaches have various drawbacks related to the time and resources required to run the software in a safe environment. In contrast, methods described below as a "static" method of heuristic analysis examine the suspicious program code without running the suspicious program.
|0018| The present disclosure further describes a static method for analyzing program code. This analysis is not performed from merely a scope based on a program behavior but rather from a scope based on technical purity. This method looks for differences in the program code as compared to the program code produced by common "official" tools. As used herein, the term "official tools" refers to commonly used compilers and run-time compressors. The method described in this disclosure supposes that the program code created in a standard and correct way may be technically pure, functionally straightforward and free from any malicious coding tricks included to block the analysis.
[0019J The technical purity itself may help to differentiate correct code from code that includes various illogical or redundant instructions, unnecessary jumps, roughly non-optimized processing flow etc. The more the malware authors try to block the analysis, the more similar illogical issues and technical errors may be found in the malicious code.
[002Oj FIG. 1 illustrates an exemplary sequence of program instructions created in an official tool, in this example by Microsoft Visual C++ 6.0, may look like. The code shown in FlG. I A is a well known and harmless WGET.EXE program. The WGET. EXE code is technologically pure and has no useless or illogical operations.
[0021J In contrast to the technically pure code shown in FIG. 1 , FIG. 2 illustrates the opposite extreme, an example of a malicious trojan worm. Instructions contained in the trojan worm that have absolutely no meaning within the given context, i.e., their only intention is to block the analysis of the code and therefore the detection of the code as malware, are displayed in different shading (e.g., lines 1314555A and 1314555D).
100221 The example shown in FIG. 2 illustrates that the trojan worm program contains minimal correct and meaningful instructions (displayed in black), while most of the program code consists of meaningless garbage. If an expert sees such a program, the expert can tell immediately that something is wrong with the code, and the program is more than likely malicious. Thus, it is desirable to program virus detection software to function as an expert, analyzing the technical purity of the code while not merely getting hung up in clever coding tricks and techniques implemented to fool the antivirus software. |0023) FIG. 3 illustrates an exemplary process 300 for heuristically analyzing and detecting malware programs. Initially, the process loads each of a sequence of program instructions examines 302 one of the program instructions included in the software program. Depending on the analysis process or software, or operating environment of the analysis software, each instruction of the sequence may be loaded individually, or a module including multiple instructions may be loaded at once for examination 302. Similarly, one instruction may be analyzed at a time, or based upon the resources available, multiple instructions may be analyzed simultaneously. For simplicity purposes, in exemplary process 300, a single instruction is analyzed at a time.
100241 During examination 302, the instruction is compared 304 to a suspicion criterion. Collectively, suspicion criteria rate each instruction based upon the expected outcome of the instruction when run. Different results of the analyzed instruction may satisfy various of the suspicion criteria, and based upon these results, an instruction-level score may be assigned to each instruction. The analyzing software may examine each instruction and determine 306 if the instruction violates some or all of the following criteria:
1 ) Whether the examined instruction actually performs some action. For instance, if the content of a 32-bit register rotates by 32 bits, the data should stay the same. The scoring system makes a note on this fact and "fines" such an instruction by an adequate number of penalties. A fine may be a negative score, or it may be an assigned numeric point system where total scores that exceed a predetermined level are presumed to indicate the presence of malware.
2) Whether the examined instruction belongs to an instruction group that actually does not change or alter the data. For instance, two sequential negations of the same registry mean that the registry content has not changed at all. Again, this will be fined by a reasonable number of penalties. 3) Whether the examined instruction jumps into the middle of another instruction. The analyzing software may be able to recognize such a trick, and it may fine it by a high number of penalties.
4) Whether two sequential instructions have the same meaning. For instance, if the string operations direction by STD instruction is set, and immediately afterwards the same instruction is carried out again, the latter instruction is quite redundant and therefore suspicious. Again, it will be penalized.
5) Whether some specific flag is being set that is not further used, or it is set up independently once again. For instance, if a comparison is performed, and then another comparison is performed, the result of the latter comparison overwrites the first result. This instruction is also penalized.
6) . Whether the data rotation is meaningful. If some registry or a memory section is being rotated by more bits then the operand bit width is being rotated, the instruction may be considered illogical and it is penalized.
7) Other features that are not quite suspicious but at least unusual. For example: use of floating point instructions at the entry point, prefix concatenation, frequent use of various uneven variables, etc.
|002S| Any of the above described situations, if detected in the instruction, may result in the instruction-level score updating 308 to reflect a certain number of penalties assigned to a specific criterion based on experience, comparison to code or instruction sequences generated by an official tool. Exact number of penalties for specific situations may be determined based on a long-term and extensive testing. The penalties may be revised for different situations as the system gains experience with additional programs.
(0026) If the analysis determines 306 that an instruction does not violate a specific criterion, or if the instruction has violated the criterion and the instruction-level score has updated 308, the process may determining 310 if there are additional suspicion criteria to compare 304 the instruction to. If there are additional criteria, the instruction is further compared 304 and analyzed, possibly resulting in another update 308 of the instruction level score. Conversely, if there are no additional criteria to compare 304 the instruction to, a total instruction-level score may be determined 312 for the examined instruction.
IOO27| A determination 314 may be made as to whether .there are any additional instructions to examine 302. If there are additional instructions in the sequence of instructions, the process returns to examine 302 and compare 304 the additional instructions to the suspicion criteria. Once all instructions are examined 302, compared 304, and all instruction-level scores are determined 312, the total score for the software program may be summed 316. This summing 316 may be simply an adding of each of the instruction- level scores, or may include various multipliers based upon the number of individual criteria the software program violates. Based upon this sum 316, the software program is determined 318 to be either harmless or malicious. This determination 318 may be based upon a comparison of a similar software program coded by an official tool, such as the code illustrated in FIG. 1. This determination 318 may also be based solely upon an examination of the score of the software program and an acceptable threshold set by the analyzing program for identifying malware, i.e., if the score is above a certain number, the software program is identified as malicious. Once identified, a report may be created indicating the results of the determination 318 and, depending on the application, further analysis of the software program may be performed. |0028| FIG. 4 depicts a block diagram of exemplary internal hardware that may be used to contain or implement program instructions such as the malware detection process described in FIG. 3. A bus 400 may serve as the main information highway interconnecting the other illustrated components of the hardware. CPU 405 may be the central processing unit of the system, performing calculations and logic operations required to execute a program. Read only memory (ROM) 410 and random access memory (RAM) 415 may constitute exemplary memory devices.
|0029| A controller 420 may interface with one or more optional memory devices 425 to the system bus 400. These memory devices 425 may include, for example, an external or internal DVD drive, a CD ROM drive, a hard drive, flash memory, a USB drive or the like. As indicated previously, these various drives and controllers are optional devices.
[0030] Program instructions may be stored in the ROM 410 and/or the RAM 415. Optionally, program instructions may be stored on a tangible computer readable medium such as a compact disk, a digital disk, flash memory, a memory card, a USB drive, an optical disc storage medium, such as Blu-ray™ disc, and/or other recording medium.
100311 An optional display interface 430 may permit information from the bus 400 to be displayed on the display 435 in audio, visual, graphic or alphanumeric format. Communication with external devices may occur using various communication ports 440. An exemplary communication port 440 may be attached to a communications network, such as the Internet or an intranet.
[00321 The hardware may also include an interface 445 which allows for receipt of data from input devices such as a keyboard 450 or other input device 455 such as a mouse, a joystick, a touch screen, a remote control, a pointing device, a video input device and/or an audio input device.
IOO33| It should be noted the heuristic analysis process discussed herein may be launched on any program section. In some situations, it may be sufficient to examine only a portion of the code, such as the first 512 bytes on the entry point. While an emulator that has to launch the entire program and go through loops with millions of cycles before it actually finds something important, the above described heuristic may provide its results within milliseconds.
[00341 It should be appreciated that various of the above-disclosed and other features and functions, or alternatives thereof, may be desirably combined into many other different systems or applications. Also that various presently unforeseen or unanticipated alternatives, modifications, variations or improvements therein may be subsequently made by those skilled in the art which are also intended to be encompassed by the following claims.

Claims

J. CLAIMSW hat is claimed is:
1. A method of detecting malware at a computing device, comprising: examining, by a processor of the computing device, a software program comprising a sequence of program instructions stored on a computer readable medium operably connected to the processor; determining, by the processor, whether each instruction in the sequence meets any of a group of suspicion criteria; assigning, by the processor, a instruction-level score to each instruction that meets any of the suspicion criteria; summing, by the processor, the instruction-level scores for each instruction to yield a program-level score; determining, by the processor, whether the program-level score exceeds a threshold; and if the program-level score exceeds a threshold, developing, by the processor, a report indicating a malware detection result.
2. The method of claim 1 , wherein the examining further comprises loading each instruction in the sequence of instructions from the computer readable memory.
3. The method of claim 1 , wherein the suspicion criteria comprise a determination of whether the instruction results in a transformation of data.
4. The method of claim 1 , wherein the suspicion criteria comprise a determination of whether the instruction belongs to a group of instructions that, collectively, do not result in a transformation of data when the group of instructions completes operation.
5. The method of claim ] , wherein the suspicion criteria comprise a determination of whether the instruction causes a jump into another instruction.
6. The method of claim 1, wherein the suspicion criteria comprise a determination of whether at least two sequential instructions have identical meanings.
7. The method of claim 1 , wherein the suspicion criteria comprise a determination of whether the instruction establishes a flag that is not used by any other instruction.
8. The method of claim 1 , wherein the suspicion criteria comprise a determination of whether the instruction causes meaningful data rotation.
9. A method of detecting malware at a computing device, comprising: running, by a processor of the computing device, a software analysis program, wherein the running comprises: loading, by the processor, a sequence of program instructions stored on a computer readable medium operably connected to the processor, examining, by the processor, each program instruction in the sequence as it is executed, determining, by the processor, whether each instruction in the sequence meets any of a group of suspicion criteria during execution, assigning, by the processor, a instruction-level score to each instruction that meets any of the suspicion criteria, summing, by the processor, the instruction-level scores for each instruction to yield a program-level score, determining, by the processor, whether the program-level score exceeds a threshold, and if the program-level score exceeds a threshold, developing, by the processor, a report indicating a malware detection result.
10. The method of claim 9, wherein the suspicion criteria comprise a determination of whether the instruction results in a transformation of data.
11. The method of claim 9, wherein the suspicion criteria comprise a determination of whether the instruction belongs to a group of instructions that, collectively, do not result in a transformation of data when the group of instructions completes operation.
12. The method of claim 9, wherein the suspicion criteria comprise a determination of whether the instruction causes a jump into another instruction.
13. The method of claim 9, wherein the suspicion criteria comprise a determination of whether at least two sequential instructions have identical meanings.
14. The method of claim 9, wherein the suspicion criteria comprise a determination of whether the instruction establishes a flag that is not used by any other instruction.
15. The method of claim 9, wherein the suspicion criteria comprise a determination of whether the instruction causes meaningful data rotation.
16. A method of detecting malware at a computing device, comprising: examining, by a processor of the computing device, a software program comprising a sequence of program instructions stored on a computer readable medium operably connected to the processor; determining, by the processor, whether each instruction in the sequence meets any of a group of suspicion criteria, the group of suspicion criteria comprising: a determination of whether the instruction results in a transformation of data, a determination of whether the instruction causes a jump into another instruction, and a determination of whether at least two sequential instructions have identical meanings; assigning, by the processor, a instruction-level score to each instruction that meets any of the suspicion criteria; summing, by the processor, the instruction-level scores for each instruction to yield a program-level score; determining, by die processor, whether the program-level score exceeds a threshold; and if the program-level score exceeds a threshold, developing, by the processor, a report indicating a malware detection result.
17. The method of claim 16, wherein the examining further comprises loading each instruction in the sequence of instructions from the computer readable memory.
PCT/IB2009/006957 2008-08-28 2009-08-28 Heuristic method of code analysis WO2010023557A2 (en)

Priority Applications (9)

Application Number Priority Date Filing Date Title
BRPI0913165A BRPI0913165A2 (en) 2008-08-28 2009-08-28 method to detect malware on computing devices
CN200980142935.0A CN102203792B (en) 2008-08-28 2009-08-28 Heuristic method of code analysis
EP09760572.9A EP2350903B1 (en) 2008-08-28 2009-08-28 Heuristic method of code analysis
JP2011524475A JP2012501028A (en) 2008-08-28 2009-08-28 Heuristics for code analysis
AU2009286432A AU2009286432B2 (en) 2008-08-28 2009-08-28 Heuristic method of code analysis
RU2011111535/08A RU2526716C2 (en) 2008-08-28 2009-08-28 Heuristic code analysis method
CA2735545A CA2735545C (en) 2008-08-28 2009-08-28 Heuristic method of code analysis
ZA2011/01746A ZA201101746B (en) 2008-08-28 2011-03-07 Heuristic method of code analysis
HK12103014.2A HK1162709A1 (en) 2008-08-28 2012-03-27 Heuristic method of code analysis

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
US9260208P 2008-08-28 2008-08-28
US61/092,602 2008-08-28
US12/548,747 2009-08-27
US12/548,747 US8904536B2 (en) 2008-08-28 2009-08-27 Heuristic method of code analysis

Publications (2)

Publication Number Publication Date
WO2010023557A2 true WO2010023557A2 (en) 2010-03-04
WO2010023557A3 WO2010023557A3 (en) 2010-06-10

Family

ID=41572506

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/IB2009/006957 WO2010023557A2 (en) 2008-08-28 2009-08-28 Heuristic method of code analysis

Country Status (13)

Country Link
US (1) US8904536B2 (en)
EP (1) EP2350903B1 (en)
JP (1) JP2012501028A (en)
CN (1) CN102203792B (en)
AU (1) AU2009286432B2 (en)
BR (1) BRPI0913165A2 (en)
CA (1) CA2735545C (en)
HK (1) HK1162709A1 (en)
MY (1) MY153801A (en)
RU (1) RU2526716C2 (en)
SG (1) SG193809A1 (en)
WO (1) WO2010023557A2 (en)
ZA (1) ZA201101746B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013524336A (en) * 2010-03-30 2013-06-17 アンラブ,インコーポレイテッド Mobile communication terminal having behavior-based malicious code diagnosis function and diagnosis method thereof
JP2014513368A (en) * 2011-08-23 2014-05-29 ▲騰▼▲訊▼科技(深▲セン▼)有限公司 Method for determining malicious attribute of program and server for determination
WO2015050469A1 (en) * 2013-10-04 2015-04-09 Bitdefender Ipr Management Ltd Complex scoring for malware detection
WO2016009356A1 (en) * 2014-07-14 2016-01-21 Iota Security Inc. System, method and apparatus for detecting vulnerabilities in electronic devices
US10706151B2 (en) 2015-07-24 2020-07-07 Bitdefender IPR Management Ltd. Systems and methods for tracking malicious behavior across multiple software entities

Families Citing this family (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8402541B2 (en) * 2009-03-12 2013-03-19 Microsoft Corporation Proactive exploit detection
US9009819B1 (en) 2011-01-20 2015-04-14 Symantec Corporation Method and system for detecting rogue security software that displays frequent misleading warnings
US20130239214A1 (en) * 2012-03-06 2013-09-12 Trusteer Ltd. Method for detecting and removing malware
RU2510075C2 (en) 2012-04-11 2014-03-20 Открытое Акционерное Общество "Информационные Технологии И Коммуникационные Системы" Method of detecting malware in operating system kernel
US9235493B2 (en) * 2012-11-30 2016-01-12 Oracle International Corporation System and method for peer-based code quality analysis reporting
CN105144187B (en) 2013-02-10 2019-01-22 配拨股份有限公司 The safety product of prediction and the method and product of the existing safety product of scoring are provided
US10152591B2 (en) 2013-02-10 2018-12-11 Paypal, Inc. Protecting against malware variants using reconstructed code of malware
CN103150511B (en) * 2013-03-18 2016-12-28 珠海市君天电子科技有限公司 Safety protection system
KR101461051B1 (en) * 2013-06-11 2014-11-13 (주) 에스에스알 Method for detecting malignant code through web function analysis, and recording medium thereof
US9280369B1 (en) 2013-07-12 2016-03-08 The Boeing Company Systems and methods of analyzing a software component
US9336025B2 (en) 2013-07-12 2016-05-10 The Boeing Company Systems and methods of analyzing a software component
US9396082B2 (en) 2013-07-12 2016-07-19 The Boeing Company Systems and methods of analyzing a software component
US9852290B1 (en) 2013-07-12 2017-12-26 The Boeing Company Systems and methods of analyzing a software component
US9479521B2 (en) * 2013-09-30 2016-10-25 The Boeing Company Software network behavior analysis and identification system
CN105204825B (en) 2014-06-05 2020-07-14 腾讯科技(深圳)有限公司 Method and device for monitoring terminal system safety
US9659176B1 (en) * 2014-07-17 2017-05-23 Symantec Corporation Systems and methods for generating repair scripts that facilitate remediation of malware side-effects
KR101537088B1 (en) * 2014-09-02 2015-07-15 인포섹(주) System and method for detecting malicious code based on api calling flow
US10050993B2 (en) * 2014-09-24 2018-08-14 Mcafee, Llc Non-invasive whitelisting
US9390268B1 (en) * 2015-08-04 2016-07-12 Iboss, Inc. Software program identification based on program behavior
RU2613535C1 (en) * 2015-11-20 2017-03-16 Илья Самуилович Рабинович Method for detecting malicious software and elements
JP5982597B1 (en) * 2016-03-10 2016-08-31 株式会社Ffri Information processing apparatus, information processing method, program, and computer-readable recording medium recording the program
CA3054842A1 (en) 2017-03-01 2018-09-07 Cujo LLC Detecting malicious behavior within local networks
US11663113B2 (en) 2020-02-20 2023-05-30 International Business Machines Corporation Real time fault localization using combinatorial test design techniques and test case priority selection
US11176026B2 (en) 2020-02-20 2021-11-16 International Business Machines Corporation Assignment of test case priorities based on combinatorial test design model analysis
US11086768B1 (en) * 2020-02-20 2021-08-10 International Business Machines Corporation Identifying false positives in test case failures using combinatorics
US11307975B2 (en) 2020-02-20 2022-04-19 International Business Machines Corporation Machine code analysis for identifying software defects

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030061502A1 (en) * 2001-09-27 2003-03-27 Ivan Teblyashkin Computer virus detection
US20050223238A1 (en) * 2003-09-26 2005-10-06 Schmid Matthew N Methods for identifying malicious software

Family Cites Families (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6357008B1 (en) * 1997-09-23 2002-03-12 Symantec Corporation Dynamic heuristic method for detecting computer viruses using decryption exploration and evaluation phases
US7089591B1 (en) * 1999-07-30 2006-08-08 Symantec Corporation Generic detection and elimination of marco viruses
US7069589B2 (en) * 2000-07-14 2006-06-27 Computer Associates Think, Inc.. Detection of a class of viral code
US7065789B1 (en) * 2001-05-22 2006-06-20 Computer Associates Think, Inc. System and method for increasing heuristics suspicion levels in analyzed computer code
JP3992136B2 (en) * 2001-12-17 2007-10-17 学校法人金沢工業大学 Virus detection method and apparatus
US7832011B2 (en) 2002-08-30 2010-11-09 Symantec Corporation Method and apparatus for detecting malicious code in an information handling system
US7376732B2 (en) * 2002-11-08 2008-05-20 Federal Network Systems, Llc Systems and methods for preventing intrusion at a web host
GB2396227B (en) * 2002-12-12 2006-02-08 Messagelabs Ltd Method of and system for heuristically detecting viruses in executable code
GB2400197B (en) * 2003-04-03 2006-04-12 Messagelabs Ltd System for and method of detecting malware in macros and executable scripts
US7624449B1 (en) * 2004-01-22 2009-11-24 Symantec Corporation Countering polymorphic malicious computer code through code optimization
US20060211490A1 (en) * 2005-03-17 2006-09-21 Falvey Grahame M Security for gaming devices
US20070079375A1 (en) * 2005-10-04 2007-04-05 Drew Copley Computer Behavioral Management Using Heuristic Analysis
US7712132B1 (en) * 2005-10-06 2010-05-04 Ogilvie John W Detecting surreptitious spyware
US8443442B2 (en) * 2006-01-31 2013-05-14 The Penn State Research Foundation Signature-free buffer overflow attack blocker
US7890612B2 (en) * 2006-05-08 2011-02-15 Electro Guard Corp. Method and apparatus for regulating data flow between a communications device and a network
US20080005797A1 (en) 2006-06-30 2008-01-03 Microsoft Corporation Identifying malware in a boot environment
US8769674B2 (en) * 2006-09-07 2014-07-01 Symantec Corporation Instant message scanning
US20110047618A1 (en) * 2006-10-18 2011-02-24 University Of Virginia Patent Foundation Method, System, and Computer Program Product for Malware Detection, Analysis, and Response
JP2008158686A (en) * 2006-12-21 2008-07-10 Toshiba Corp Program verification device and method, signature system based on program verification
US20090064337A1 (en) * 2007-09-05 2009-03-05 Shih-Wei Chien Method and apparatus for preventing web page attacks
US8171554B2 (en) * 2008-02-04 2012-05-01 Yuval Elovici System that provides early detection, alert, and response to electronic threats

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030061502A1 (en) * 2001-09-27 2003-03-27 Ivan Teblyashkin Computer virus detection
US20050223238A1 (en) * 2003-09-26 2005-10-06 Schmid Matthew N Methods for identifying malicious software

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
CHRISTODORESCU M ET AL: "Static Analysis of Executables to Detect Malicious Patterns" PROCEEDINGS OF THE USENIX SECURITY SYMPOSIUM, XX, 4 August 2003 (2003-08-04), pages 169-186, XP002333005 *
KRUEGEL C ET AL: "Static disassembly of obfuscated binaries" PROCEEDINGS OF THE 13TH USENIX SECURITY SYMPOSIUM - 9-13 AUG. 2004 - SAN DIEGO, CA, USA,, 1 January 2004 (2004-01-01), pages 255-270, XP009131682 *
LINN C ET AL: "Obfuscation of Executable Code to Improve Resistance to Static Disassembly" PROCEEDINGS OF THE 10TH. ACM CONFERENCE ON COMPUTER AND COMMUNICATIONS SECURITY. (CCS'03). WASHINGTON, DC, OCT. 27 - 31, 2003; [ACM CONFERENCE ON COMPUTER AND COMMUNICATIONS SECURITY], NEW YORK, NY : ACM, US, vol. CONF. 10, 27 October 2003 (2003-10-27), pages 1-10, XP003006997 ISBN: 978-1-58113-738-5 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013524336A (en) * 2010-03-30 2013-06-17 アンラブ,インコーポレイテッド Mobile communication terminal having behavior-based malicious code diagnosis function and diagnosis method thereof
JP2014513368A (en) * 2011-08-23 2014-05-29 ▲騰▼▲訊▼科技(深▲セン▼)有限公司 Method for determining malicious attribute of program and server for determination
WO2015050469A1 (en) * 2013-10-04 2015-04-09 Bitdefender Ipr Management Ltd Complex scoring for malware detection
US9323931B2 (en) 2013-10-04 2016-04-26 Bitdefender IPR Management Ltd. Complex scoring for malware detection
RU2645268C2 (en) * 2013-10-04 2018-02-19 БИТДЕФЕНДЕР АйПиАр МЕНЕДЖМЕНТ ЛТД Complex classification for detecting malware
WO2016009356A1 (en) * 2014-07-14 2016-01-21 Iota Security Inc. System, method and apparatus for detecting vulnerabilities in electronic devices
US10706151B2 (en) 2015-07-24 2020-07-07 Bitdefender IPR Management Ltd. Systems and methods for tracking malicious behavior across multiple software entities

Also Published As

Publication number Publication date
AU2009286432B2 (en) 2014-05-15
EP2350903B1 (en) 2016-11-30
EP2350903A2 (en) 2011-08-03
BRPI0913165A2 (en) 2016-01-12
MY153801A (en) 2015-03-31
RU2011111535A (en) 2012-10-10
JP2012501028A (en) 2012-01-12
CA2735545A1 (en) 2010-03-04
SG193809A1 (en) 2013-10-30
AU2009286432A1 (en) 2010-03-04
WO2010023557A3 (en) 2010-06-10
ZA201101746B (en) 2012-01-25
CN102203792A (en) 2011-09-28
RU2526716C2 (en) 2014-08-27
US20100058473A1 (en) 2010-03-04
US8904536B2 (en) 2014-12-02
CN102203792B (en) 2014-05-07
HK1162709A1 (en) 2012-08-31
CA2735545C (en) 2015-12-15

Similar Documents

Publication Publication Date Title
US8904536B2 (en) Heuristic method of code analysis
US10599846B2 (en) Segregating executable files exhibiting network activity
EP2973170B1 (en) Profiling code execution
EP2669839B1 (en) Systems and methods for detecting obfuscated malware
KR101265173B1 (en) Apparatus and method for inspecting non-portable executable files
JP5265061B1 (en) Malicious file inspection apparatus and method
EP2975873A1 (en) A computer implemented method for classifying mobile applications and computer programs thereof
US20100011441A1 (en) System for malware normalization and detection
EP2797021B1 (en) A method for neutralizing pc blocking malware using a separate device for an antimalware procedure activated by user
EP3563282B1 (en) Detecting execution of modified executable code
US11126721B2 (en) Methods, systems and apparatus to detect polymorphic malware
EP3800570A1 (en) Methods and systems for genetic malware analysis and classification using code reuse patterns
JP6459289B2 (en) Malware estimation apparatus, malware estimation method, and malware estimation program
Tymburibá et al. Inference of peak density of indirect branches to detect ROP attacks
Fan et al. Obfuscated malicious code detection with path condition analysis
Bai et al. Malware detection method based on dynamic variable length API sequence
Albabtain et al. The process of reverse engineering GPU malware and provide protection to GPUs
Ding et al. Behavior-based proactive detection of unknown malicious codes
CN109472133B (en) Sandbox monitoring method and device
Ninyesiga et al. Behavioral malware detection by data mining
KR20090080220A (en) Malware(useless process) dectect/blocking and prevent recrudescence method
Vasantrao et al. Novel Malware Clustering System Based on Kernel Data Structure

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 200980142935.0

Country of ref document: CN

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 09760572

Country of ref document: EP

Kind code of ref document: A2

WWE Wipo information: entry into national phase

Ref document number: 2009286432

Country of ref document: AU

ENP Entry into the national phase

Ref document number: 2011524475

Country of ref document: JP

Kind code of ref document: A

WWE Wipo information: entry into national phase

Ref document number: 2735545

Country of ref document: CA

WWE Wipo information: entry into national phase

Ref document number: 1427/CHENP/2011

Country of ref document: IN

ENP Entry into the national phase

Ref document number: 2009286432

Country of ref document: AU

Date of ref document: 20090828

Kind code of ref document: A

REEP Request for entry into the european phase

Ref document number: 2009760572

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2011111535

Country of ref document: RU

Ref document number: 2009760572

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: PI0913165

Country of ref document: BR

Kind code of ref document: A2

Effective date: 20110228