Docsity

Comparing Helios with Signature-based Detectors for Behavior-based Rootkit Detection, Lab Reports of Electrical and Electronics Engineering

Toggle sidebar
bg1
ECE 4112 Internetwork Security
Lab : Behavior-based Rootkit Detection using HELIOS
Group Number: 5
Member Names: John Markott, Sai Rama Krishna Kona
Date Assigned: November 6, 2006
Date Due: December 5, 2006
Last Edited: December 5, 2006
Please read the entire lab and any extra materials carefully before starting. Be sure to start early
enough so that you will have time to complete the lab. Answer ALL questions and be sure you
turn in ALL materials listed in the Turn-in Checklist ON or BEFORE the Date Due.
Goal: The goal of this lab is to compare the signature-based malware detectors of Lab 5,
with Helios (http://helios.miel-labs.com), a behavioral-based malware detector.
Summary: In this lab, we will test Helios against the Hacker Defender, FU rootkits,
and a newer version of FU called FUTo.
Background and Theory: While Lab 5 showed the efficiencies of using
signature based rootkit detection, the programs: chkrootkit (linux), kern_check (linux),
RootkitHunter (linux), RootkitRevealer (win32), and IceSword (win32) rely on a database of
predefined signatures and cannot detect new variations. Because signatures are written as a
result of an attack, precious time is required for analysis, signature writing, and global
distribution. Compounded by the exponential growth of virus and worm, signature based rootkit
detection has limited success due to the rapid propagation and the time required to write
signatures.
To combat this threat, a product name Helios was created to proactively detect and
prevent malware based on software behavior and semantics. Helios is an advanced malware
detection system, designed to detect, remove and inoculate against modern Windows rootkits. It
performs behavioral analysis as opposed to signature based analysis and t is one of the only
rootkit detection tools that can operate in the background. to detect rootkits in real-time, unhide
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Comparing Helios with Signature-based Detectors for Behavior-based Rootkit Detection and more Lab Reports Electrical and Electronics Engineering in PDF only on Docsity!

ECE 4112 Internetwork Security

Lab : Behavior-based Rootkit Detection using HELIOS

Group Number: 5 Member Names: John Markott, Sai Rama Krishna Kona Date Assigned: November 6, 2006 Date Due: December 5, 2006 Last Edited: December 5, 2006 Please read the entire lab and any extra materials carefully before starting. Be sure to start early enough so that you will have time to complete the lab. Answer ALL questions and be sure you turn in ALL materials listed in the Turn-in Checklist ON or BEFORE the Date Due.

Goal: The goal of this lab is to compare the signature-based malware detectors of Lab 5,

with Helios (http://helios.miel-labs.com), a behavioral-based malware detector.

Summary: In this lab, we will test Helios against the Hacker Defender, FU rootkits,

and a newer version of FU called FUTo.

Background and Theory: While Lab 5 showed the efficiencies of using

signature based rootkit detection, the programs: chkrootkit (linux), kern_check (linux), RootkitHunter (linux), RootkitRevealer (win32), and IceSword (win32) rely on a database of predefined signatures and cannot detect new variations. Because signatures are written as a result of an attack, precious time is required for analysis, signature writing, and global distribution. Compounded by the exponential growth of virus and worm, signature based rootkit detection has limited success due to the rapid propagation and the time required to write signatures. To combat this threat, a product name Helios was created to proactively detect and prevent malware based on software behavior and semantics. Helios is an advanced malware detection system, designed to detect, remove and inoculate against modern Windows rootkits. It performs behavioral analysis as opposed to signature based analysis and t is one of the only rootkit detection tools that can operate in the background. to detect rootkits in real-time, unhide

hidden processes, restore hijacked system functions and inoculate the system against rootkit installation [4].

Lab Scenario: We will be installing rootkits on a Windows XP Professional Service

Pack 2 Virtual Machine. It is assumed for this lab that we have already gained root access to our victim machine, although in reality this would have been an extra process. For this lab we just want to focus on rootkits. (The use of a buffer overflow is most likely how an attacker would gain root access). First, copy the “ /mnt/nas4112/VMWare/winXPProSP2 ” directory to your “ /root/vmware ” directory by using the command

cp -r /mnt/nas4112/VMWare/winXPProSP2 /root/vmware

Next, create a virtual machine in vmware by following the instruction in Lab 1. Now, copy the Helios directory from the NAS to the desktop of your Windows XP Professional SP2 virtual machine. This folder contains the Microsoft .Net Framework 2.0 (dotnetfx.exe) and the Helios application (helios.zip). Next, we copy a backup of the Windows XP Pro SP2 virtual machine by going to the /root/vmware directory in the Linux WS 4.0 machine and typing (assuming the name of the Windows XP virtual machine is the winXPproSP2 in /root/vmware): #cp –r winXPproSP2 winXPproSP2.bak This may take a few minutes. AFTER COMPLETING EACH SECTION, YOU MAY WANT TO REVERT BACK TO THE BACKUP COPY OF winXPpro. DO THIS BY: #cp –r winXPproSP2.bak winXPproSP Note: It was reported by some students that instead of copying the virtual machines after analyzing each root kit, it is easier to use VMWare’s built in snapshot system which allows you to save the state of a virtual machine at any point and revert back to it later. In order to use Snapshots the “legacy” virtual machines must be upgraded.

Section 2: Testing Helios with HackerDefender

Please copy the Lab5/Windows folder from the NAS to your desktop and rename the folder to “hacker”. Directions for the configuration and use of HackerDefender have been provided in Appendix A or you can review the contents of Lab5. As was previously shown, HackerDefender can hide folders and processes. On your desktop, create the file, “malwareHQ”. Use the HackerDefender to hide: (1) malwareHQ directory (2) hxdef100.exe process To do this:  Modify kitfile.ini (using Lab5 as a reference if necessary)  Go to StartRuncmd.  Browse to the “hacker” folder on your Desktop  Execute the rootkit by typing: hxdef100.exe kitfile.ini  Right Click your desktop and choose Refresh. Q2.1: Has Helios detected the hidden malwareHQ folder? And if so, where? Q2.2: Has Helios detected the hidden hxdef100.exe process? And if so, where does Helios report this? Provide print screens of all relevant data. Q2.3: Should security professionals be concerned about a rootkit detector that does not identify hidden folders? Why or why not? Q2.4: Go to the Process Information tab in Helios. Notice the option to Kill the hxdef100.exe service. Does killing the service prevent it from starting again on reboot?

On your own machine type:

net stop HackerDefender

Make sure the malwareHQ directory and the hxdef100.exe process are revealed. This ends this portion of the lab. Again, if something was lost or damaged, you can delete this Virtual Machine folder and use the backup you made at the beginning of this section with: #rm –rf winXPProSP #mv winXPProSP2.bak winXPProSP

Section 3: Testing Helios with FU Rootkit

Now copy the FU rootkit directory from Lab 5 on NAS. If unfamiliar with the FU Rootkit, directions have been placed in Appendix A. Please review Lab5 if necessary! Since Helios is still in Alpha testing and unstable, please right-click the Helios icon in the system tray, close and reopen the application before beginning Section 3. On your desktop, open calc.exe and the Windows Task Manager. On the Task Manager, choose the Processes tab, find the calc.exe process and record the PID. If the PID is not visible, choose ‘View’ from the menu bar and choose ‘Select Columns’. Check PID from the options and choose ‘OK’. Your desktop should arranged as follows:

EXECUTING FU:

 Choose, START  Run… cmd  Browse to the FU Rootkit in the hacker directory on your desktop  Enter the command: **fu –ph ** , where PID is the process ID of calc.exe Q3.1: Did Helios detect the FU Rootkit as it hid the calc.exe process? And if so, where does Helios report this? Provide print screens of all relevant data. When you click the “Process Information” tab, Helios has the option to Unhide hidden processes. Once unhidden, the malicious process is visible in Task Manager again. Please take a moment to test this feature. Q3.2: Using this interface, how can you identify the offending program that has hidden this process?

Section 4: Testing Helios with FUto Enhanced

Now copy the FUto_enhanced rootkit directory from Lab 5 on NAS. FUTo is the successor of FU. Its accompanying research paper can be found at www.uninformed.org. FUto_enhanced can be downloaded from http://www.rootkit.com/vault/petersilberman/FUTo_enhanced.zip. FUTo was reported to hide from IceSword as of the initial release. Q4.1: Execution of FUto_enhanced is the same as the original. Does IceSword Detect the FUto_enhanced rootkit? Q4.2: Does Helios detect the FUto_enhanced rootkit? Q4.3: What response did you get when you attempted to Unhide calc.exe? Please provide a screenshot of the response.

Section 5: Analysis of Results

Q5.1: Compared with IceSword, please explain the Advantages and disadvantages of each program. Feel free to elaborate on areas you felt of particular importance.

Appendix A:

Hacker Defender (http://hxdef.org/)

This rootkit rewrites memory segments in all running processes to change their behavior. It has been available for about a year and would be detected by almost any antivirus program. For more information on the program and its usage, see the readme file (readmeen.txt) or go to the website

(http://hxdef.org/).

This rootkit is run by typing the executable, hxdef100.exe, and specifying a .ini file to use. The .ini file has information on what files, processes or ports to hide, as well as information on the backdoor it creates on the system. We will be using kitfile.ini for this lab, you can double click on it and it will open in Notepad. There are 9 headings required, though we will only be looking at a few in this lab. The first heading, [Hidden Table], is the list that tells the program what files, directories and processes to hide. Right now it has root* and rcmd.exe as the only entries. This means that it will hide any file, folder or process that starts with root and the rcmd.exe process. The next heading, [Root Processes], is a list of programs that will be “immune” to the infection, meaning they will still be able to see hidden files and processes. [Hidden Services] is a list of services that will be hidden from the database of installed programs. In [Settings], the last heading, is information on backdoors as well as how things are run, we will not be modifying this part at all, but make note of the Password. For more information on what all these do, again, see the readme file.

FU Rootkit

To use this FU Rootkit to hide a process, extract the rootkit. In the command window, browse to the EXE folder and type fu –pl 100 This will list all the running processes. For example: C:\Documents and Settings\user1\Desktop\FU_Rootkit\FU_Rootkit\EXE>fu -pl 100 Process: fu.exe: Process: : Process: System: Process: smss.exe: Process: csrss.exe: Process: services.exe: Process: lsass.exe: Process: svchost.exe: Process: explorer.exe: Process: spoolsv.exe: Process: VMwareTray.exe: Process: VMwareUser.exe: Process: pbagent.exe:

BIBLIOGRAPHY:

  1. "Helios: Advanced Malware Detection System." Miel-Labs.Com. 1 Nov. 2006 .
  2. "RootkitRevealer V1.71." Microsoft Technet. 1 Nov. 2006 .
  3. "Blacklight > Rootkit Elimination Technology." F-Secure. 1 Nov. 2006 .
  4. Mukhi, Vijay, Sahir Hidayatullah, and Raviraj Doshi, comps. Helios. Miel e-Security Pvt. Ltd. 1 Nov. 2006 .
  5. Zeltser, Lenny. "Handler's Diary." SANS - Internet Storm Center. 16 July 2006. 5 Nov. 2006 .
  6. Livingston, Brian. "IceSword Author Speaks Out on 'Rootkits'" Datamation. 14 June
    1. 1 Dec. 2006 .