The Model of Trojan Horse Detection System Based on Behavior Analysis

The Model of Trojan Horse Detection System Based on Behavior Analysis

The Model of Trojan horse Detection System Based on Behavior Analysis Shumei Zhao Yanru Jia Zhengzhou Railway Vocational & Technical College Zhengzhou Railway Vocational & Technical College Zhengzhou, China Zhengzhou, China [email protected] Abstract—This paper presents a Trojan-detection system model technology the Trojans can attain the regular executable path, based on behavior analysis. Through the abstract description of and then the system run the predefined functions, to hold up the the Trojan's behavior, according to certain rules to establish a Trojan. However, this method is difficult to detect the Trojan behavior feature database, and combining the heuristic analyzer which directly modifies the core of the system. to further analysis and judge whether the program is the Trojans, then do the appropriate processing at last. The In order to overcome these drawbacks of traditional Trojan experiments show this method is effective and efficient in real detection technology, Many researchers began to think about time and light load, and can be used to in practice to monitor the the Trojan detection technology in terms of behavior[4], which computer system in real time. is in according to the behavioral characteristics of Trojan horse programs (such as modify the registry, register system services, Keywords-Trojan; behavioral features; system call; behavior modify system files, etc.) to judge whether it is suspicious or analysis not. But comparing with existing anti-Trojan technology, it now just stay in the realm of theory. This paper presents the I. INTRODUCTION detection based on behavioral analysis, which can detect and judge the known and unknown Trojan. The Internet do not only bring great convenience to people, but also bring various security threats, such as computer Invoking function Heuristic Analysis results System Object of behavior viruses, hacker attacks, Trojan horses flood and so on., which analyzer responds [1] of the attacks from the Trojan are increasing. It is reported Registry that the new Trojan has explosion of growth in China, 2008, the total number has exceeded 10 million. The modularization File and professional of Trojan manufacturing and the internalize in Port The database of operating the virus are the three major features of the computer behavior feature virus development in China in 2008.Meanwhile, the Trojan's System service creator's "profit-driven" still has not changed, the web with horse and hole attack become the main channel for hackers Process profiting. So we must analyze the working principle technology Other of Trojans to prevent the Trojan do harm to our computer and network..At present, people take more attention to computer Figure 1. System model viruses research, but a little to Trojans. Now it is urgent to research how to prevent and detect known and unknown Trojan. II. THE SYSTEM MODEL DESIGN The Trojan-detection system model based on behavior At present, there are two kinds of technologies which can analysis is illustrated in Figure 1. The model is up to the CIDF detect Trojan horse: The first, A Trojan horse detection [2] standard. The system is composed with four modules, which technology based on features . This method can detect the are monitoring object, the database of behavior features, the Trojan program by the feature strings of the Trojan appearing heuristic analysis and the system response. The module of in the system, which method has high accuracy rate and low monitoring object can monitor all the objects which are false alarm rate for pre-existing Trojan horse. But it can’t be operated by the system. The behavior database records the used to detect unknown Trojans. The second: A Trojan horse [3] Trojan’s behavior features, and gives the features a value, in detection technology based on system call hook . In order to order to judge whether the program is Trojan. The module of hidden themselves successfully, the programs of Trojan must heuristic analyzer analyzes the information which is transferred modify the operating system execution path, or directly modify by the database of the behavior features, and gives judgment. the operating system information which are stored about the The module of system response can deal with the judgment. process, drive, network connection. With the system call hook U.S. Government work not protected by U.S. copyright III. MODULE DESIGN This function has three parameters: The first parameter is pre-defined key value of the root key; the second parameter is A. The module of monitoring behavior object the primary key name, which include its path; The third Before analysis the Trojan's behavior, the system should parameter is a long integer pointer,. if the function returns 0, it summarize and classify the objects of the Trojan operate. This will save handle of the key. While The “RegCreateKey” call paper lists several common behavior objects, such as the “NtCreateKey” function in the Ntdll.dll, meanwhile, the registry, files, ports, processes, system services and so on. “NtCreateKey” has set parameter already, it can entry into the There are descriptions about these behavior objects of Trojan. kernel state by soft interrupt, and then request the Which are shown in Table 1. corresponding service. Because that there is a matching function start with Zw corresponds to the system services function in the Ntdll.dll, the system can find the TABLE I. THE DESCRIPTION OF THE TROJAN’S BEHAVIOR FEATURE “ZwCreateKey” function through the interrupt service number The description of the Trojan’s behavior in the table of the system service dispatch, and then execute Object of behavior feature this function. Therefore, when we use Hook function, we can Modify the startup items, related items and so Registry put the function pointer in the system dispatch table forward to on. our own function “MyZwCreateKe”, and then the program can Modify system files; Bundle the startup file; execute the “MyZwCreateKey” function first. In this function, File Copy Autorun.inf file; Copy files to the self- starting items; Add or delete files and so on. we can deal with the preprocessing function, and then execute Port Open or close ports. original “ZwCreateKey” function, or skip this function to Create process; Remote thread injection; Hidden execute the following codes. Process process and so on The operation of monitoring files: we take monitoring the Modify their own path, register themselves as System service operating of copying file in the system as example, and use system services “CopyFile” function, which function prototype is that: Record keyboard, screen interception operations Other and so an. Declare Function CopyFile Lib "kernel32" Alias In this strategy, we use the technology of the Windows API "CopyFileA" (ByVal lpExistingFileName As String, ByVal HOOK to monitor the behavior objects. The following is the lpNewFileName As String, ByVal bFailIfExists As Long) As introduction about the technology of Windows API HOOK Long application in this strategy. This function has three parameters, the first parameter API HOOK refers that before the application call the real “lpExistingFileName” is source file name; the second system API function, it would do some corresponding and then parameter “lpNewFileName” is target file name; the third call the real API function. In essence, The API HOOK parameter “bFailIfExists” is a long integer pointer, if it is set up Technology changes the execution path of normal procedure. It true , once the target file has exist, the system call will fail, or can intercept or monitor some information about executable the target file name will be modified. Likewise, in order to code in the execution process, which can change the behavior monitor this file operation, the system should define hook of the operate system, and also can help designers to function about copying file, which is “myCopyFile.” While understand the structure and operate mechanism of the system, using the hook function, we must put the function pointer in the so this technology is widely used in time tracking and system service dispatch table toward to self-defined function modifying system behavior. “myCopyFile”. At this time, when the program executes the The Trojan behavior is comprised of sections of program system service dispatch, it can execute function “myCopyFile”. code. If it will run in the computer system, it must call different In this function, we can deal with the preprocessing function, API functions. So, we can use Windows API HOOK and then execute original “CopyFile” function, or skip this technology to monitor and intercept the Trojan programs’ API. function to execute the following codes. Then take monitoring registry and operating file as example to Likewise, we can use the same method to deal with the analyze and block Trojans. other operations. Monitor registry: To achieve the registry monitoring, we must first find the function pointer which will be replaced in B. Behavior feature database the system service dispatch table, then put this pointer forward The behavior feature database collects the features of to our own function, when the program calling the appropriate Trojan behavior. In order to describe the behavior of the function pointer, it will execute our own function, so it finishes Trojan, and to make convenient for programmer to analyze, the system services hooking. Take monitoring the Trojan to this strategy need to build the behavior feature database, which write the self-starting item of registry for example. The Trojan are consisted of feature vectors N,,,={AA ⋅⋅⋅ A} , A want to modify the registry, it will use the “RegCreateKey” A 12 n n function which function prototype is that: represent a feature vector of a behavior, which can be described as the following parts: Private Declare Function RegCreateKey Lib” advapi32.dll” • P Alias”RegCreateKey”(Byralhkey As long,ByvalpSubkey As Abstract description of behavior feature i modifying String,phkResult As long) As long self-start item of the registry as example.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    4 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us