Method and apparatus for detecting maliciousness of non-portable executable file by changing executing flow of application program

SA522440412B1Active Publication Date: 2024-10-26SECULETTER CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
SA522440412
Authority / Receiving Office
SA · SA
Patent Type
Patents
Current Assignee / Owner
Filing Date
2022-09-05
Publication Date
2024-10-26
Estimated Expiration
2041-09-08

AI Technical Summary

Technical Problem

Existing methods for detecting maliciousness in non-portable executable files are ineffective due to the variability of malicious code and the difficulty in executing and observing behavior across different application versions and operating system environments, making it challenging to accurately determine malicious intent.

Method used

A method and apparatus that execute the non-portable executable file in a virtual environment, set breakpoints to alter execution flow, and monitor for malicious behavior, regardless of specific conditions such as application or OS versions, by changing process states, register values, or memory addresses to ensure detection.

Benefits of technology

Effectively detects malicious behavior in non-portable executable files by ensuring execution continues under varied conditions, thereby accurately identifying and terminating malicious code.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

A method for detecting a maliciousness of a non-portable executable file according to the present invention includes the steps of: executing a non-portable executable file by running an application program corresponding to the non-portable executable file in a virtual environment; monitoring the execution of the application program; breaking the execution of the application program at a predetermined breakpoint during the monitoring of the execution of the application program; changing an executing flow of the application program in a breaking state of the execution of the application program and resuming the execution of the application program; and detecting a malicious behavior executed after resuming the execution of the application program. Figure 1.
Need to check novelty before this filing date? Find Prior Art

Description

<h2 style=";text-align:left;direction:ltr">Full description<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Background of the invention<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The present invention relates to a method and apparatus for detecting damage to a non-portable executable file, and more particularly, a method and apparatus for detecting damage to a non-portable executable file by a behavior-based scanning method.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">With the proliferation of the Internet and wireless communication devices, the transmission paths of malware or malicious code have changed, and the degree of damage caused by malware or malicious code increases every year. Malicious code refers to software intentionally designed to perform malicious activities, such as destroying a system or leaking information, against the user's wishes and interests. Types of malicious code include exploits such as viruses, worms, Trojans, backdoors, logic bombs, trap doors, malicious spyware, and adware. Malicious code can cause a variety of problems, such as leaking personal information such as user identification information (ID) and passwords, taking control of the target system, modifying / deleting files, system destruction, denial of service to application programs / systems, leaking core data, or other malicious programs through self-replicating or automated propagation, and the damage can be severe and widespread.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Advanced persistent threat (APT) attacks, which have become a hot topic recently, consistently employ various types of malicious code, applying a high level of attack techniques to allow the attacker to identify the desired target and extract targeted information. Specifically, in many cases, APT attacks go undetected during the initial invasion phase, and non-portable executable (Non-PE) files are commonly used, which contain the malicious code. This is because any program (for example, a document creation program or an image editor) that executes a non-portable executable file inherently has some level of security vulnerability. When malicious code is embedded in a non-portable executable file, it is easy to generate malicious code that varies depending on the file's variability. Here, "non-portable executable" is the antithesis of a portable executable (PE) file or an executable file, and refers to a file that is not executed itself.<h2 style=";text-align:left;direction:ltr">For example, a non-animated executable file can be document files such as a PDF file, HWP file, Word file, Excel file, image files such as a JPG file, video files, JavaScript files, or HTML files.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> As a way to check the maliciousness of an immobile executable file according to the relevant domain, there is a domain-specific identification-based scanning method. This method checks whether an immobile executable file contains a specific identification for malicious code. However, the most malicious immobile executable files contain malicious code in text such as Java scripts or macro scripts, or in some cases, the text is encoded to evade detection, making it difficult to determine which text is contained within the immobile executable itself. Therefore, it is almost impossible to check whether an immobile executable file is malicious using domain-specific identification-based scanning methods.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Another way to check whether an immobile executable is malicious is through behavior-based scanning. This method checks whether malicious behavior is actually being performed by the immobile executable. However, the malicious code contained within the immobile executable can be designed such that if a certain condition (for example, an application version or operating system environment) is not met, no behavior will occur. Therefore, in the case of behavior-based scanning, the immobile executable needs to be executed in all versions of the application and multiple operating system environments, and the behavior needs to be observed. Therefore, analyzing it would be time-consuming, and accurately determining whether it is malicious would be difficult.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> General description of the invention<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">[Technical Problem]: The technical objective sought to be achieved by the present invention is to provide a method and apparatus for detecting the harm of an inanimate executable file that effectively detects the harm of an inanimate executable file designed so that in any particular condition, such as a version of an application program or an operating system environment, or if it is not met, the harmful behavior will not arise.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The technical objective to be achieved by the present invention shall not be limited by the above-mentioned technical objectives, and other technical objectives, which are not mentioned above, can be clearly understood by those skilled in the art from the following explanation.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">[Technical Solution]: To achieve the technical objective, according to one aspect of the present invention, a method for detecting maliciousness of an immovable executable file includes the following steps: executing an immovable executable file by running an application program corresponding to the immovable executable file in a virtual environment; monitoring the execution of the application program; stopping the execution of the application program at a predetermined breakpoint while monitoring the execution of the application program; changing the execution flow of the application program in the event of stopping the execution of the application program and completing the execution of the application program; and detecting malicious behavior executed after the execution of the application program has completed.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">To achieve the technical objectives described above, according to another aspect of the present invention, a device for detecting maliciousness of an immovable executable file includes an application program runtime module that executes an immovable executable file by running an application program corresponding to the immovable executable file in a virtual environment; an application program execution flow change module that monitors the execution of the application program, stops the execution of the application program at a predetermined breakpoint while monitoring the execution of the application program, changes the execution flow of the application program in the event that the execution of the application program is stopped, and continues the execution of the application program; and a malicious behavior detection module that detects malicious behavior that has been executed after the execution of the application program has completed.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> [Beneficial Effects]: According to the present invention described above, it will be possible to effectively detect the maliciousness of an immovable executable file designed so that in a certain condition such as not meeting a version of an application program or operating system environment, the malicious behavior does not arise.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The effects of the present invention shall not be limited by the above-mentioned effects, and other effects, which are not mentioned above, can be clearly understood by those skilled in the art from the following explanations.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Brief explanation of the drawings<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 1 is a block diagram of an apparatus for detecting damage to an executable inanimate file according to one of the illustrative embodiments of the present invention.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 2 is a flowchart of a method for detecting damage to an inanimate executable file according to one of the illustrative embodiments of the present invention.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 3 illustrates an example of changing an execution flow by changing a flag during an HWP execution.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 4 illustrates the result of continuously executing the HWP without terminating so that the malicious behavior is detected.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 5 illustrates an example of a malicious macro designed to specify information about the virtual environment being executed so that if it is a virtual environment, the malicious behavior is not executed.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 6 illustrates an example of changing the screen size value stored in a register.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Figure 7 illustrates an example of changing a value that indicates whether an audio player is stored in memory.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Detailed description:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Below, illustrative embodiments of the present invention are described in detail by reference to the figures. Essentially the same components can be identified in the following description and the accompanying figures by the same numerical reference values, and therefore, elaboration is excluded. Also, in the description of the illustrative embodiment, if it is deemed that a specific description of a relevant known configuration or function could carry a reference to the present invention, a detailed description thereof is excluded.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 1 is a block diagram of an apparatus for detecting damage to an executable inanimate file according to one of the illustrative embodiments of the present invention.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> An inanimate executable file damage detection device according to the illustrative embodiment includes a user interface 110, a virtual environment generation unit 120, an application program storage unit 130, an application program operation unit 140, an application program execution flow change unit 150, and a malicious behavior detection unit 160.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The user interface 110 provides an interface for selecting a directory in which to store an immovable executable file to be examined or an immovable executable file.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The virtual environment generation unit 120 generates the virtual environment 180 in a computer environment where an immovable executable file damage detection device is implemented in accordance with an illustrative embodiment of the present invention. For example, the virtual environment 180 may be a well-known sandbox. The virtual environment 180 includes markers representing the state of the process, the register, and the memory.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The application program storage unit 130 stores various types of application programs required to execute the non-animated executable file. The application program storage unit 130 may store application programs such as Acrobat Reader, MS-Word, Power Point, Excel, HWP, an image viewer, a video viewer, or an Internet Explorer browser.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The application program runtime unit 140 determines the format of the non-moving executable file selected by the user interface 110 and selects an application program corresponding to the format of the non-moving executable file from the application program storage unit 130. The application program runtime unit 140 runs the selected application program in the virtual environment 180 to execute the non-moving executable file.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> A device for detecting damage to an immovable executable file according to an illustrative embodiment of the present disclosure includes an application program execution flow changer 150 that detects damage to the immovable executable file regardless of a particular condition such as a version of the application program or an operating system environment.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">A malicious immobile executable file can contain branch points that stop an application program or branch into a flow where no malicious behavior occurs if a specific condition, such as an application version or operating system environment, is not met. The immobile executable file is analyzed by advanced analyzers to set a breakpoint at the branch point that includes this possibility. Thus, a state associated with the branch point continuously executes the application program without stopping the application program, or the occurrence of the flow that induces this malicious behavior can be controlled.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The application program execution flow changer 150 monitors the execution of the application program and stops the execution of the application program at a branch point specified by the breakpoint while monitoring the execution of the application program. The application program execution flow changer 150 alters the execution flow of the application program to continuously execute the application program or generate malicious behavior using the specified state and then resumes execution of the application program. The application program execution flow changer 150 changes the state of a process, a register value, or the value of a specific memory address to alter the execution flow of the application program at the branch point.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The malicious behavior detection module 160 monitors the application program execution process to detect malicious behavior through a general behavior-based inspection method. Undetected malicious behavior appears to occur if the application program execution flow is not altered due to the application program execution flow being altered by the application program execution flow change module 150, such that the malicious behavior is detected by the malicious behavior detection module 160.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Figure 2 is a flowchart of a method for detecting damage to an inanimate executable file according to one of the illustrative embodiments of the present invention.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In step 210, the application program runtime module 140 runs the application program corresponding to the non-moving executable file in the virtual environment 180 to execute the non-moving executable file.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> At step 220, the application program execution flow change unit 150 begins monitoring the execution of the application program.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In step 250, the application program execution flow change unit 150 stops execution of the application program at the specified breakpoint.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In step 260, the application program execution flow change unit 150 changes the process state, register value, or memory mapped address value to change the application program execution flow.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> At step 270, the application program execution flow change unit 150 completes the execution of the application program and continues to monitor the execution of the application program.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Currently, when the malicious behavior at step 230 occurs while monitoring the execution of the application program, the malicious behavior detection module 160 detects the malicious behavior at step 240.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> When malicious behavior is detected by the malicious behavior detection module 160, the immobile executable file maliciousness detection device outputs a detection result indicating that the immobile executable file is malicious and terminates the detection process.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Even though the application program and execution streams that branch from each of the specified breakpoints are executing, if the malicious behavior is not detected by the malicious behavior detection module 160, the immobile executable maliciousness detection device outputs a detection result indicating that there is a corresponding non-malicious immobile executable and terminates the detection process.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> An illustrative embodiment where the application program execution flow change unit 150 changes the process state to change the application program execution flow is thus described as follows.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The process controls the state of the operation by calculating data during execution using a combination of flags. The flags contain the value 0 or 1 to act as the key. When a branch point is encountered during the execution of the operation, the branch is executed according to the value (0 or 1) of the key specified by the instruction. For example, when two values ​​are compared and equal, the zero flag (ZF) is set to mean 1, and when two random values ​​are added to overflow 4 bytes (based on a 32-bit operating system), the overflow flag (OF) is set to 1. The flow of execution then branches using the skip-case instruction to skip if ZF is equal to 0 (JE, skip if equal) or skip if ZF is equal to 1 (JNE, skip if not equal).<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Figure 3 illustrates an example of changing the execution flow by changing the flag during an HWP program execution. Referring to Figure 3, at address 0283C769, the value of register A1 is compared with 10, and the value of ZF (1 if equal, 0 otherwise) indicates whether two values ​​are equal and is set to zero. At address 0283C76B, if the result of the previous comparison is that the two values ​​are equal, an instruction is executed to skip to address 283C825. At this point in time, the value of ZF is determined to determine whether to skip. Here, if the result of the comparison is that the two values ​​are equal, the instruction skips to address 283C825 for continuous application program execution. However, if the result of the comparison is that the two values ​​are not equal, the subsequent instruction is executed, resulting in incompatible versions of the application program, forcing the application program to terminate. Thus, leaving the application program execution flow unchanged, the value of ZF is equal to zero, and the application program terminates.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">According to the illustrative embodiment of the present disclosure, the breakpoint is set at address 0283C76B and the ZF value to be changed to 1 is set. When the ZF value is changed to 1 in the stop state and the application program execution continues, the procedure skips to address 283C825 according to the state skip instruction to continuously execute the application program, such that the malicious behavior occurs during the continued execution of the application program. The malicious behavior is detected by the malicious behavior detection module 160. Figure 4 illustrates the result of the continued execution of the HWP program without terminating to detect the malicious behavior. If the ZF value remains unchanged, the application program is forcibly stopped so that the malicious behavior is not detected.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Even though in the present illustrative embodiment, an example is described that ZF is changed to change the process state, not only ZF, but also several flags such as Sign Flag (SF), Overflow Flag (OF), Auxiliary Carry Flag (AC), Carry Flag (CF) can be changed to change the process state.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">According to an illustrative embodiment of the present invention, when the immobile executable file includes any logic that stops the application program because the condition for triggering the malicious behavior (e.g., a version of the application program) is not met, the application program is continuously executed by changing the state of the process at the branch point so that the process of the malicious behavior can be accurately detected.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> An illustrative embodiment where the application program execution flow change unit 150 changes a register value to change the application program execution flow is described as follows.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The behavior-based scanning method, which detects suspicious behavior by executing an immobile executable file, performs analysis in an isolated virtual environment to execute malicious code. The virtual environment contains unique property information, and the malicious code, in the form of an immobile executable file, is created to identify the virtual environment's characteristics to prevent malicious behavior. For example, when the screen size is smaller than a predetermined size, it is designed to be identified as a virtual environment so that malicious behavior is not executed, or when the memory size is smaller than any predetermined value, it is designed to be identified as a virtual environment so that malicious behavior is not executed.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 5 illustrates an example of a malicious macro designed to specify the unique information about the virtual environment and to execute it using an Excel 4.0 macro so that when the execution environment is not the virtual environment, the malicious behavior is executed and when the execution environment is the virtual environment, the malicious behavior is not executed.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Referring to Figure 5, the instructions for the second cell and the link would be as follows.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">A2 = GET.WORKSPACE(13)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> A4 = IF(A2<770,CLOSE(FALSE),)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The instruction executes the GET.WORKSPACE(13) instruction in cell A2 to get and store the screen size (horizontal size) in cell A4. When A2 is smaller than 770, the macro terminates with the "close" instruction. When A2 is no smaller than 770, the subsequent instructions are executed continuously. The screen size of the virtual environment will generally be smaller than 770, so in the virtual environment, the macro terminates according to the comparison to cell A4. Therefore, the damage will not be identified by the behavior-based inspection method according to the relevant domain.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In an illustrative embodiment of the present invention, the breakpoint in the address is set from the branch point corresponding to cell A4 and the screen size value stored in the register is changed so that the macro continues to execute continuously without terminating and causing the malicious behavior.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Figure 6 illustrates an example of changing the screen size value stored in a register according to the illustrative embodiment of the present invention. The screen size obtained during the instruction GET.WORKSPACE(13) is stored in the EAX register. Referring to Figure 6, the screen size 0×380 is stored in the virtual environment being executed. Here, when the value of the EAX register changes to a suitable large value, 0×9999, as a result of comparing cell A4, the value of A2 will be greater than 7700, so that the instruction is executed continuously and the malicious behavior occurs.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Even in the present illustrative embodiment, in an example where a change in the value of an EAX register is described to change the execution flow of an application program, not only the EAX register, but also the values ​​of several registers such as the EBX register, ECX register, EDX register, ESI register, EDI register, EBP register, and ESP register are changed to change the execution flow of the application program.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">According to an illustrative embodiment of the present disclosure, in the case of an immobile executable file containing a malicious macro that has logic that specifies an execution environment to terminate the macro if the condition is not met, the value stored in the register at the branch point is changed such that the macro is executed continuously without terminating to accurately detect the execution of this malicious behavior.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> An illustrative embodiment where the application program execution flow change unit 150 changes the value of a particular memory address to change the application program execution flow is described as follows.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Referring to Figure 5 again, the instructions for the first cell would be as follows.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> A1 = IF(GET.WORKSPACE(42),,CLOSE(TRUE))<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">As a result of executing the GET.WORKSPACE(42) instruction to determine whether an audio driver is present, if an audio driver is present, the following instructions are executed continuously, and if there is no audio driver, the macro is terminated with the "close" instruction. In the default environment, there is no audio driver, so the macro is terminated based on the result of executing the GET.WORKSPACE(42) instruction. Therefore, a detection method based on the behavior of the relevant domain cannot determine the damage.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In an illustrative embodiment of the present invention, the breakpoint is set at the branch point address corresponding to cell A1 and a value indicating whether there is a change in an audio trigger stored at a particular memory address such that the macro executes continuously without terminating to cause the malicious behavior.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The GET.WORKSPACE(42) instruction obtains the return value corresponding to the return value stored in the EAX register and performs any predefined operation (shr eax,1, eax,1) on the value stored in the EAX register, indicating the presence of the audio operator as a Boolean value and storing the value of an address specified in memory by the EDI register. Figure 7 explains that "0" indicates that there is no audio operator stored at address 001335A8 pointed to by the EDI register. It is determined that if the value stored at address 001335A8 is 0, there is no audio operator, and if the value is 1, there is an audio operator. When the value of address 00135A8 pointed to by the EDI register changes from 0 to 1, subsequent instructions will execute continuously, and malicious behavior can occur.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Even though the current illustrative embodiment, an example is described where the address value specified by the EDI register is changed to change the execution flow of the application program, not only the EDI register, but also the address values ​​pointed to by several registers such as the EAX register, EBX register, ECX register, EDX register, ESI register, EBP register, and ESP register are changed to change the execution flow of the application program.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> As shown above, according to an illustrative embodiment of the present disclosure, in the case of an immovable executable file containing a malicious macro that has logic that specifies an execution environment for terminating the macro if the condition is met, the value stored at the mapped memory address at the branch point is changed such that the macro is executed continuously without terminating to accurately detect the execution of the malicious behavior.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> According to the embodiments described above in the present disclosure, even in the case of an immobile executable file designed such that if the execution conditions are not met, the malicious behavior is not generated, the process state, register value, or value stored in memory is modified to cause the malicious behavior.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The combinations of frames for frame diagrams and steps in flowcharts according to the present invention may be implemented by computer program instructions. The computer program instructions may be loaded into a general-purpose computer processor, a special-purpose computer, or other programmable data processing device, such that the instructions executed by the computer processor or other programmable data processing device constitute a means for carrying out the functions indicated in the frames of the frame diagrams or the steps in the flowcharts. These computer program instructions may be stored in computer-usable or computer-readable memory that can instruct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer-readable or computer-usable memory produce an article of manufacture comprising an instruction method that carries out the function indicated in the frames of the frame diagrams or the steps in the flowcharts.<h2 style=";text-align:left;direction:ltr">Computer program instructions may be loaded onto a computer or other programmable data processing device to cause a series of operational steps on the computer or other programmable device to produce a process executed by the computer, such that the instructions executed on the computer or other programmable device provide the steps for performing the functions shown in the frames of block diagrams or the steps in flowcharts.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Each frame or each step may represent a portion of a unit, sector, or code containing one or more executable instructions to perform a particular logical function(s). Furthermore, it should be noted that the functions described in frames or steps can occur in several alternative embodiments. For example, two frames or steps shown may be executed consecutively, simultaneously, or in reverse order according to the associated functions.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">It will be understood that there are numerous illustrative embodiments of the present invention described herein for illustration purposes, and that numerous modifications, variations, and substitutions can be made by anyone skilled in the art without departing from the scope and intent of the present invention. Accordingly, the illustrative embodiments of the present invention are provided for illustrative purposes only and are not intended to limit the technical concept of the present invention. The scope of the technical concept of the present invention will not be limited by this description. The scope of the claim of the present invention should be construed as being based on the following appended claims, and it should be understood that all technical concepts included herein in an equivalent scope will be included within the scope of the claim of the present invention.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Graphics bookmark<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 1<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> 120 virtual environment generation units<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> 110 User Interface<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> 180 Virtual Environment<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> A mark<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> b record<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> C memory<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> 140 Application Program Operating Unit<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> 150 Application Program Execution Flow Change Unit<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> 130 application program storage units<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> 160 Malicious Behavior Detection Units<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 2<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> A start<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> S210 Execute a non-animated executable file by running an application program corresponding to a non-animated executable file in the virtual environment<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> S220 Monitoring Application Program Execution<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> S250 Stops application program execution at a specified breakpoint<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> S260 Change the state of a process, register value, or memory value to change the flow of application program execution.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> S270 Completion of the implementation of the application program<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> S230 Does harmful behavior arise?<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> S240 Detecting Malicious Behavior<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In the end

Claims

Protection Elements 1. A method for detecting the maliciousness of a non-portable executable file using a maliciousness detection device, comprising the following steps: executing a non-portable executable file by running an application program corresponding to the non-portable executable file in a virtual environment; monitoring the execution of the application program; halting the execution of the application program at a predetermined breakpoint while monitoring the execution of the application program; wherein the breakpoint is set to detect malicious behavior at a branch point 1) to the flow where the application program stops, or 2) to the flow where the malicious behavior does not arise; changing the execution flow of the application program in the event that execution of the application program stops and execution of the application program continues; and detecting malicious behavior executed after execution of the application program continuesprogram.

2. A method for detecting damage to a non-portable executable file according to claim 1, wherein the execution flow of the application program is changed by changing the state of a process.

3. A method for detecting damage to a non-portable executable file according to claim 2, wherein the state of the process is changed by changing a flag indicating the state of the process.

4. A method for detecting damage to a non-portable executable file according to claim 3, wherein the flag includes at least one of a zero flag (ZF), a sign flag (SF), an overflow flag (OF), an auxiliary carry flag (AC), and a carry flag (CF).

5. A method for detecting damage to a non-portable executable file according to claim 1, wherein the execution flow of the application program is changed by changing the value of a register.

6. The method for detecting damage to a non-portable executable file according to claim 5, wherein the record includes at least one of the recordsEAX, EBX register, ECX register, EDX register, ESI register, EDI register, EBP register, and ESP register.

7. A method for detecting damage to a non-portable executable file according to claim 1, wherein the execution of the application program is changed by changing the value of a mapped memory address.

8. A method for detecting damage to a non-portable executable file according to claim 7, wherein the mapped memory address is an address specified by an EAX register, an EBX register, an ECX register, an EDX register, an ESI register, an EDI register, an EBP register, or an ESP register.

9. A device for detecting damage to a non-portable executable file, comprising: an application program runtime unit that executes a non-portable executable file by running an application program corresponding to the non-portable executable file in a virtual environment; An application program flow changer that monitors the execution of the application program, stops the execution of the application programapplication program at a predetermined breakpoint while monitoring the execution of the application program, the execution flow of the application program changes if the execution of the application program is stopped, and the execution of the application program is completed; and a malicious behavior detection module that detects malicious behavior executed after the execution of the application program is completed; wherein the breakpoint for detecting malicious behavior is set at a branching point 1) to the flow where the application program is stopped, or 2) to the flow where the malicious behavior does not arise.

10. A device for detecting the maliciousness of a non-portable executable file according to claim 9, wherein the execution flow of the application program is changed by changing the state of a process.

11. A device for detecting the maliciousness of a non-portable executable file according to claim 10, wherein the state of the process is changed by changing a flag indicating the state of the process.

12. A device for detecting the maliciousness of a non-portable fileA non-portable executable file according to claim 11, wherein the flag includes at least one of a zero flag (ZF), a sign flag (SF), an overflow flag (OF), an auxiliary carry flag (AC), and a carry flag (CF).

13. A device for detecting damage to a non-portable executable file according to claim 9, wherein the execution flow of the application program is altered by changing the value of a register.

14. A device for detecting damage to a non-portable executable file according to claim 13, wherein the register includes at least one of an EAX register, an EBX register, an ECX register, an EDX register, an ESI register, an EDI register, an EBP register, and an ESP register.

15. A device for detecting damage to a non-portable executable file according to claim 9, wherein the execution of the application program is altered by changing the value of a particular memory address.