









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










Lab Authored by Bharath Raj and Anand Dedhia Group Number: _______________ Member Names: _________________________ _________________________ Date Assigned: Date Due: Last Edited: 4/27/ 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.
and spyware, the differences of each and how they pose a new way to attack people through websurfing.
how they manifest on the computer, then the methods to remove these programs. After we will experiment with two spyware programs and what they do, and then the methods to remove these. Then we will explore a malware program that can trick you and methods to recognize these programs. We will then learn prevention methods to protect you from all these attacks.
Adware Adware is basically an application that while it runs, it will display advertisements from various companies or just from itself. The creators of these programs will add code to their original software to send out the ads which can take the form of pop-ups or a bar that will appear on your screen. In addition it can add text links and hidden links in search results and webpages. Adware may also be able to track or record data, but most do not, as it is not the main purpose of adware. Adware, which is also known as Adbot, can do many things such as find out your surfing and spending habits and then pop up annoying windows as you surf the internet. Some cases of Adware are nestled in peer to peer file sharing products such as Kazaa. These are
legally inserted because they will add some lines to the EULA (End User License Agreement) so they will not be held responsible. EULA is the agreement you click to accept or check the box to accept terms and then continue. Many people do not even looking at these as we think all the terms are the same. It is important to read all the lines of the EULA and make sure there are no hidden items that may be misleading. If in case you don’t understand or are in doubt, email the company and verify it. Most adware programs are merely annoying and do not do much damage. At times, removing the adware programs will cause the original program it was bundled with to stop functioning. Another way that Adware can be dangerous is that it performs “drive-by downloads.” These drive by downloads are done by providing a misleading dialogue box or some other method to trick a user to download and install. Then once it is installed, the makers of adware make it very difficult to uninstall. Spyware Spyware is a more dangerous category compared to adware because these will record keystrokes, history, passwords and many other sensitive information. Different categories of spyware are: snoopware, pc surveillance, key loggers, system recorders, parental control software, pc recorder, and internet monitoring software. These can be used to gain unauthorized access, to monitor a spouse, child or anyone else. These programs are used a surveillance tools in companies in order to gain information on users’ activities. Spyware gathers user information covertly and with stealth without the user’s knowledge. They will record your keystrokes, which will include usernames and passwords. They can also track your credit card numbers, and the possibilities are endless. Anything that an user does on a computer can be tracked by spyware, even by screenshots. The computer does not even have to be connected to the internet since it will log whenever the computer is on. Most recently, spyware uses routines to mail out these logs and activities via email or posting it to a certain page on the web, so attackers can view them at anytime. Most spyware programs use “polymorphic” or “stealth routines” to hide themselves from users and anti-spy software. Polymorphic means changing techniques to avoid removal. Even if they have been detected, some spyware will have routines in which to reinstall itself after its deletion. Malware Malware stands for malicious software. These are programs that are made for the explicit purpose of disrupting a computer system. These programs will trick users and misinform users. A Trojan horse, worm or a virus can be classified as malware.
In our lab setting, there is no internet connection available. This will limit our experience in learning about Adware. Instead of testing out programs that are already available for adware, we will program our own simple Visual Basic program to do our own Adware. This exercise will show us how simple it is to program an adware parasite. Of course the ones on the internet will be able to log into registry and such, but for the scope of this exercise, we will show the foundation on how to build an adware program. This following code is in Visual Basic for ease of use and understanding[2]. In WindowsXP1 start up notepad by going to Start->Run and then type in notepad and hit enter. The following is simple code that will pop-up an IE window. Make sure you understand how it works Private myIE Dim WSHShell Set myIE = CreateObject("InternetExplorer.Application") myIE.Navigate "xxxx" 'myIE.ToolBar = True 'myIE.StatusBar = False myIE.AddressBar = True myIE.MenuBar = True myIE.Resizable = True myIE.TheaterMode = False Do Loop While myIE.Busy myIE.Width = 1024 myIE.Height = 740 myIE.Left = 0 myIE.Top = 0 myIE.Visible = True Set WSHShell = WScript.CreateObject("WScript.Shell") WshShell.AppActivate("Microsoft Internet Explorer") Set WSHShell = Nothing Copy the above code into notepad and then save as “adware.vbs” In the data part of myIE.Navigate you must replace the xxx with the address for popup.html that is found on NAS. (“C:\ …\popup.html) Run the file As you can see it will pop open another internet explorer. Now to duplicate the actions of a typical adware program we will have it wait and keep popping up after certain time intervals.
The code to add a loop is simple. Here is an example for you to work from for i = 0 to 9 program lines next Add a loop to your code to make windows popup 5 times. Q1.1: Where did you add the lines of code and what lines were they? Now add a sleep timer, so the program will popup ads every time interval. Here is sample line of code that will show how to have a timer. Wscript.Sleep(seconds * 1000) Add this line to your code and make the seconds to 3. Q1.2: Where did you add the lines of code and what lines were they? Run your code and observe the results. Q1.3: How would one prevent this type of attack (not just from .vbs files but from any adware)? Attachment #1: Attach your finished code to the report.
Then apply changes and quit. Open up Outlook Express and send an email to [email protected] When you send and receive you should also receive an email back to you. If you would have made another email separately, then you could have received it there thus intercepting all of the target’s emails. Q2.1: How could an attacker use this information for his benefit? Q2.2: How would an attacker get the host program onto the computer? EtherScout http://www.globalpatrol.net/download.php Etherscout records and analyzes traffic on a network. It is a stealth program that is web based and generates real time reports on any user’s activity. Advanced users can write their own report using HTML and SQL. Etherscout has to only be installed on one machine in the network and can monitor all traffic from network machines[1]. Install Etherscout with all the default settings. Open the desktop shortcut entitled Etherscout Web Admin. Go to the configuration menu by selecting it from the left side menu. Change the IP address in the box to the actual number 57.35.6.xxx instead of localhost. Leave the port the same.
Click save and wait for it to restart. Now generate some traffic. Since we are not connected to the internet, one can not see the actual sites that a real user would visit. But, by connecting to each XP machine from each other, we can see that it has been logged. Screenshot 1: Take a screenshot of the logged IPs. Q2.3: How could one use this being an advertiser? And how could one use this as a network administrator?
o Current Version o Run Now, it is known that the SaveNow/Save parasites is run under the VVSN name, so check to see if it is in the processes. Move the horizontal scroll bar to see where the program is located. Open up My Computer and navigate to that folder. Open up the vvsn.cfg file and view its contents. Q3.1: What does this file tell us about what the program does and what website does it try to download from? Now go up one directory and try to delete this folder. In order to delete this parasite we have to delete the registry key. Go back to the regedit window and delete the key. Then restart the computer and then it will allow you to delete the folder. In the meantime, we can now observe the Ethereal outputs. Notice any contacts to a website other than www.google.com (Malwhere contacts google to find out about the processes it finds). Screenshot 2: Attach a copy of Ethereal output with the questionable packets highlighted. Since the SaveNow/Save executable can not be downloaded it will not infect and log our data. The following is an explanation of what it would do if it did download and run. This is very similar to many malware products and how they work to remain hidden. Once VVSN downloads the executable and runs it, it automatically starts putting up advertisements to queue downloads or will automatically queue downloads from the WhenU server. The following picture is an example of the advertisements for ClockSync.
Your computer clock is most likely not wrong at all, but clicking on this will enqueue the download. After the queue is going, then VVSN will uninstall itself. SaveNow will also keep a list of URL’s and terms it is interested in and saves them to a file SaveNow
savenow.db or Save\save.db in Program Files. These files will then be sent to a WhenU server. No cookie is set in these accesses, no ID is passed so these are not directly trackable[3].
Prevention is the first step to stopping adware, spyware and malware. There are several products out there to help but these are some of the most reputable and respected. http://toolbar.google.com For adware, block popups are the best way to go.
Answer Sheet Lab 9 Group Number: _______________ Member Names: _________________________ _________________________
Q1.1: Where did you add the lines of code and what lines were they? Q1.2: Where did you add the lines of code and what lines were they? Q1.3: How would one prevent this type of attack (not just from .vbs files but from any adware)? Attachment #1: Attach your finished code to the report.
Q2.1: How could an attacker use this information for his benefit? Q2.2: How would an attacker get the host program onto the computer? Screenshot 1: Take a screenshot of the logged IPs. Q2.3: How could one use this being an advertiser? And how could one use this as a network administrator?