Docsity

Spyware - Lab 12 | Internetwork Security | ECE 4112, Lab Reports of Electrical and Electronics Engineering

Toggle sidebar
bg1
ECE 4112: Internetwork Security
Lab 12: Spyware
Group Number: _______________
Member Names: _________________________ _________________________
Date Assigned:
Date Due:
Last Edited: April 28, 2005
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.
Authored By: Tyler Tarwater and Jeffrey Chow
Goal: The goal of this lab is to come to a better understanding of Spyware by
experimenting with it in a safe environment
Summary: In this lab you will install and analyze three Anti-Spyware programs.
You will also install Spyware and analyze its footprints. You will look at scripting as a
Spyware threat. And finally you will look at blocking Spyware traffic.
Background and Theory:
One source defines Spyware generally as “Any software which employs a user’s Internet
connection in the background without their explicit permission.” [1]
Another source says the group “consists of computer software that gathers and reports
information about a computer user without the user's knowledge or consent” [2]
With these definitions Spyware might include key loggers, Adware, data miners, and
even Trojans. Spyware is an increasing problem that is said to already affect 85% of
personal computers [3]. There, however, are almost no reports of Spyware on Linux.
The main victim is Windows XP, and more specifically Internet Explorer users.
One of the main ways Spyware is spread is through shareware programs that use the
money generated from ads, to give away their products for free. However, in addition to
the cost of loss of privacy, users must often endure slower runtimes when they have
Spyware running in the background.
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download Spyware - Lab 12 | Internetwork Security | ECE 4112 and more Lab Reports Electrical and Electronics Engineering in PDF only on Docsity!

ECE 4112: Internetwork Security

Lab 12: Spyware

Group Number: _______________ Member Names: _________________________ _________________________ Date Assigned: Date Due: Last Edited: April 28, 2005 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.

Authored By: Tyler Tarwater and Jeffrey Chow

Goal: The goal of this lab is to come to a better understanding of Spyware by

experimenting with it in a safe environment

Summary: In this lab you will install and analyze three Anti-Spyware programs.

You will also install Spyware and analyze its footprints. You will look at scripting as a Spyware threat. And finally you will look at blocking Spyware traffic.

Background and Theory:

One source defines Spyware generally as “Any software which employs a user’s Internet connection in the background without their explicit permission.” [1] Another source says the group “consists of computer software that gathers and reports information about a computer user without the user's knowledge or consent” [2] With these definitions Spyware might include key loggers, Adware, data miners, and even Trojans. Spyware is an increasing problem that is said to already affect 85% of personal computers [3]. There, however, are almost no reports of Spyware on Linux. The main victim is Windows XP, and more specifically Internet Explorer users. One of the main ways Spyware is spread is through shareware programs that use the money generated from ads, to give away their products for free. However, in addition to the cost of loss of privacy, users must often endure slower runtimes when they have Spyware running in the background.

There are a number of ways to try to prevent and remove Spyware. Steps taken by Internet Explorer, to change the default security settings to not automatically run scripts, have gone a long way in helping the problem. But users must still use common sense, and click no to installing things from non-trusted sites.

Prelab Questions: None.

Lab Scenario:

Since Spyware on Linux is virtually non-existent, this entire lab will be performed on the Windows XP Pro Virtual machine. Also, it is important to note that this XP machine is running Internet Explorer. If it were running Firefox or some other more secure browser, the danger of unwillingly getting Spyware would decrease greatly. You will be using several files off the NAS server in this lab. Go ahead and start the Windows XP Virtual machine. Then, Go to Start->Run and type in “\57.35.10.10\secure_class\”. Login with secure_class/secure_class Copy the Lab12 folder over to c:, so that all your Lab12 files are located in c:\Lab

Section 1: Spyware Removal Programs

The two most popular Anti-Spyware programs on the market are Ad-Aware and Spybot Search & Destroy. In most cases, it is best to have at least these two programs to eliminate the majority of Spyware. What one program fails to catch, the other often will. Install Ad-Aware: (http://www.lavasoftusa.com/software/adaware/) [4]

  1. Double click the Ad-Aware setup file found in c:\Lab12\
  2. Click Next
  3. Check I accept, Click Next
  4. Click Next
  5. Click Next again
  6. Click Next again
  7. Uncheck Update definition file now and Open the help file now
  8. Click Finish Ad-Aware will now inform you that your definitions are old, click cancel. Ad-Aware will now perform a full system scan on your system. The software should detect approximately 8 "critical" registry objects, all of which it claims are related to Alexa. These lines of registry are associated with the menu item "Show Related Items" under Tools in Internet Explorer. When a user selects this option,

Section 2: Install Spyware

Now we're going to install a Spyware program called Gator. In this case, Gator gets installed as bundled software, with a program called Audiogalaxy Satellite. Audiogalaxy Satellite is offered as freeware, supposedly because of the Adware that it installs along with itself.

  1. Double Click the Audiogalaxy Satellite install file located in c:\Lab12. (http://www.audiogalaxy.com/satellite/)
  2. Click Next
  3. Look through the Liscense Agreement. Q2.1 What information does Gator (aka GAIN) obtain about from user?
  4. Click Yes.
  5. Click Yes again.
  6. Click Next, Next, then OK
  7. Click No when prompted about putting Audiogalaxy in your startup folder.
  8. Click Close.
  9. Click Yes to restart your computer Once your computer restarts, Open up Ad-Aware and do a scan by clicking Start and then Scan. Your screen should look like Figure 1.1. Also open up SpyBot and click Check for Problems to start a scan.

Figure 1. Now take a screenshot showing SpyBot and Ad-Aware's results. Screenshot #1 (SpyBot and Ad-Aware Gator Results) Now in SpyBot, click Fix selected problems. Perform another scan in Ad-Aware, without deleting any of the results it found. Q2.2 What does Ad-Aware find? Q2.3 Which program should you use to remove Spyware? (hint: this is a trick question) Be sure to uninstall GAIN and AudioGalaxy Satellite, by going to Add/Remove programs and uninstalling them.

Section 3: Hijackthis

Hijackthis is a more advanced program that scans registry keys and your hard drive for objects that could possibly be used for Spyware. It is possible to that Hijackthis will create false positives. But this program can get rid of annoying Spyware that Spybot Search & Destroy and Adware cannot detect. Hijackthis can possibly detect faulty registry keys of programs there were installed or uninstalled incorrectly, but this is not the purpose of the program. Now we will install WeatherBug on Windows XPPro.

Screenshot #2 Take a Screenshot of the registry key that was fixed in the Backup Section. Hijackthis is not a good way to uninstall programs if it is possible to uninstall programs from the "Add or Remove Program" function in Control Panel. Hijackthis can be used to fix faulty registry keys due to improper installations or uninstallations. Be Sure to Uninstall WeatherBug by going to Add/Remove Programs and choosing to uninstall WeatherBug.

Section 4: Scripting

The default security settings for Internet Explorer leave vulnerabilities where Spyware can install software or just directly obtain user information. It is important to disable JavaScript, VBScript, and ActiveX for non-trusted sites. With just a few lines, a script on a web page can act as Spyware to a user using default settings on Internet Explorer.

  1. Open up Internet Explorer in Windows XPPro
  2. Switch to Notepad, type in a phrase, then select it and go to Edit->Copy.
  3. Go to c:\Lab12\copy.html in Internet Explorer, your screen should look something like Figure 4.1, but with your random phrase. (http://www.infinitybit.com/comsec/clippy.html) [6] Figure 4. Screenshot #3 Take a Screenshot of the web page Q4.1 What do you notice about the text area on the web page? Go to View->Source in Internet Explorer. The source is also located in Appendix A. Q4.2 What does this script do? How could this exploit be used maliciously as Spyware, violating a user's privacy?

Figure 5. SpyBlocker works by editing the Windows hosts file. This file is located at C:\Windows
system32\drivers\etc\hosts Open this file and take a screenshot. Screenshot #4 New Hosts File Q5.1 Explain what the following line in the hosts file does: “127.0.0.1 123banners.com” Q5.2 Say that you monitor your traffic from a new program that has been causing popups, and you notice it is accessing “cheapads.net”. How could you edit the hosts file to block this traffic?

Appendix A: copy.html [6]

Clippy This is your clipboard:

Turn-in checklist

You need to turn in.  Answer sheet  Screenshot of Ad-Aware and SpyBot results for the Gator Spyware  Screenshot of Hijackthis’s backup for WeatherBug  Screenshot of the web page with scripting exploit  Screenshot of the new hosts file Answer Sheet Lab 8 Group Number: _______________ Member Names: _________________________ _________________________ Section 1 Q1.1 What file is this entry pointing to? Q1.2 How could you change this file so that when Show Related Links is called, http://127.0.0.1 is loaded instead of http://related.msn.com/ Q1.3 How do the search results of the two programs differ? (Ignore "Negligible Objects" in Ad-Aware) Q1.4 What line is different than the original related.html? What does this change do?

Q2.1 What information does Gator (aka GAIN) obtain about from user? Q2.2 What does Ad-Aware find? Q2.3 Which program should you use to remove Spyware? (hint: this is a trick question) Q3.1 Name some registry keys that are not Spyware or Malware. Why are these not malicious? Q3.2 Name some registry keys that are Spyware or Malware. Why are these malicious? Q4.1 What do you notice about the text area on the web page?

General Questions

How long did it take you to complete this lab? Was it an appropriate length lab? What corrections and or improvements do you suggest for this lab? You may cross out and edit the text of the lab on previous pages to make corrections. What corrections and or improvements do you suggest for this lab? Please be very specific and if you add new material give the exact wording and instructions you would give to future students in the new lab handout. You need to be very specific and provide details. You need to actually do the suggested additions in the lab and provide solutions to your suggested additions. Caution as usual: only extract and use the tools you downloaded in the safe and approved environment of the network security laboratory.