Docsity

Assignment 7 in CS 414: Operating Systems - Rootkits and Password Protection - Prof. Marty, Assignments of Operating Systems

Toggle sidebar
bg1
1
CS 414: Operating Systems
Fall 2007
Assignment #7
Due: Thursday Dec 6, 11am (last day of class)
V2: published Sat 12/1/07 to clarify grading on part 2
NOTE: NO LATE SUBMISSIONS ACCEPTED!! (Answers handed out in class)
Part 1 (worth 25%). Short Answer (Answer all 5 questions).
1. Give several reasons why simple password protection is the most common authentication scheme in
use today. Discuss the weaknesses inherent in password protection schemes.
2. What is the principle of least privilege? Give several reasons why it makes sense. Why is it necessary
to keep protection domains small to affect the least-privilege approach to security? Why are
capabilities particularly useful in achieving small protection domains?
3. Explain how public-key cryptography systems provide an effective means of implementing digital
signatures.
4. The UNIX systems administrator cannot determine the password of a user who has lost his or her
password. Why? How can that user regain access to the computer?
5. Discuss the strengths and weaknesses of implementing an access matrix using access lists that are
associated with objects.
Part 2 (worth 75%). Programming Assignment (Rootkits)
You are encouraged to do this assignment with one other person from CS414. You can do this
assignment by yourself if you wish.
Digital Rights Management (DRM) is a complicated topic with serious ethical considerations. Sometimes,
in the name of DRM, companies can cross the line trying to enforce what they believe is their right on
their Intellectual Property (IP).
On October 31, 2005, Mark Russinovich blogged how he discovered that the Sony BMG’s Get Right with
the Man CD by the Van Zant brothers had installed a piece of software onto his PC, ostensibly to prevent
more than 3 copies (among other things). Mr. Russinovich analyzed the behavior of this software and
concluded that this software (“XCP”) shared much in common with rootkits, which are “cloaking
technologies that hide files, Registry keys, and other system objects from diagnostic and security
software, and they are usually employed by malware attempting to keep their implementation hidden”.
Furthermore, Mr. Russinovich noted that the software offered no “standard” mechanism by which to
uninstall this software and further that his CD drive was disabled when he tried to manually remove the
software from his machine! The full account of Mr. Russinovich’s investigation can be found at:
http://blogs.technet.com/markrussinovich/archive/2005/10/31/sony-rootkits-and-digital-rights-
management-gone-too-far.aspx
The reaction from the community was swift and spirited. Amid mounting criticism, on Nov 2, 2005, Sony
announced the availability of a “free software patch” to reveal hidden files caused by the Sony software.
However, this patch did not remove the copy protection software. In addition, Sony BMG stated that the
DRM does not pose any “potential security vulnerabilities”. By November 9, 2005, the Electronic Frontier
Foundation (EFF) had begun collecting stories and considered litigation against Sony-BMG. By
pf3

Partial preview of the text

Download Assignment 7 in CS 414: Operating Systems - Rootkits and Password Protection - Prof. Marty and more Assignments Operating Systems in PDF only on Docsity!

CS 414: Operating Systems

Fall 2007

Assignment

Due: Thursday Dec 6, 11am (last day of class)

V2: published Sat 12/1/07 to clarify grading on part 2

NOTE: NO LATE SUBMISSIONS ACCEPTED!! (Answers handed out in class)

Part 1 (worth 25%). Short Answer (Answer all 5 questions).

1. Give several reasons why simple password protection is the most common authentication scheme in

use today. Discuss the weaknesses inherent in password protection schemes.

2. What is the principle of least privilege? Give several reasons why it makes sense. Why is it necessary

to keep protection domains small to affect the least-privilege approach to security? Why are

capabilities particularly useful in achieving small protection domains?

3. Explain how public-key cryptography systems provide an effective means of implementing digital

signatures.

4. The UNIX systems administrator cannot determine the password of a user who has lost his or her

password. Why? How can that user regain access to the computer?

5. Discuss the strengths and weaknesses of implementing an access matrix using access lists that are

associated with objects.

Part 2 (worth 75%). Programming Assignment (Rootkits)

You are encouraged to do this assignment with one other person from CS414. You can do this

assignment by yourself if you wish.

Digital Rights Management (DRM) is a complicated topic with serious ethical considerations. Sometimes, in the name of DRM, companies can cross the line trying to enforce what they believe is their right on their Intellectual Property (IP).

On October 31, 2005, Mark Russinovich blogged how he discovered that the Sony BMG’s Get Right with the Man CD by the Van Zant brothers had installed a piece of software onto his PC, ostensibly to prevent more than 3 copies (among other things). Mr. Russinovich analyzed the behavior of this software and concluded that this software (“XCP”) shared much in common with rootkits , which are “cloaking technologies that hide files, Registry keys, and other system objects from diagnostic and security software, and they are usually employed by malware attempting to keep their implementation hidden”. Furthermore, Mr. Russinovich noted that the software offered no “standard” mechanism by which to uninstall this software and further that his CD drive was disabled when he tried to manually remove the software from his machine! The full account of Mr. Russinovich’s investigation can be found at: http://blogs.technet.com/markrussinovich/archive/2005/10/31/sony-rootkits-and-digital-rights- management-gone-too-far.aspx

The reaction from the community was swift and spirited. Amid mounting criticism, on Nov 2, 2005, Sony announced the availability of a “free software patch” to reveal hidden files caused by the Sony software. However, this patch did not remove the copy protection software. In addition, Sony BMG stated that the DRM does not pose any “potential security vulnerabilities”. By November 9, 2005, the Electronic Frontier Foundation (EFF) had begun collecting stories and considered litigation against Sony-BMG. By

November 10, 2005, a new virus had appeared, which essentially exploited the Sony DRM’s ability to hide certain files and directories. By December 29, 2005, the EFF and Sony BMG had reached a preliminary settlement over the DRM. On September 13, 2006, Sony BMG settled with its Canadian customers, although the EFF questioned certain aspects of the settlement, particularly that the “settlement lacks several important consumer protection provisions (e.g. disclosure and testing requirements) that were included in the U.S. settlement.” Sony BMG’s settlement for US customers included (these were due by December 31, 2006):

Under the settlement, any person in possession of an XCP CD can exchange it for a replacement CD, an MP3 download of the same album, and either (a) cash payment of $7.50 and one (1) free album download from a list of 200 albums, or (b) three (3) free album downloads from that list.

Your assignment is as follows. The purpose of this assignment is to give you first-hand experience attempting to assess the behavior of potential “malware”. Note: Mr. Russinovich’s experience is not directly related to your tasks below; rather, the purpose of describing Mr. Russinovich’s experience is: [a] give you a concrete example of how rootkits are being used today, and [b] give you a concrete example of the methodology a knowledgeable person might use to determine if his/her machine is infected (and how to eliminate the rootkit).

One day, surfing the Web, you find a site saying that it can save PC energy consumption by 20% just by installing these two programs. You, like other good community-minded people, are very interested in saving energy to help the planet, so you jump at the chance! In this assignment, you are to download and install this new energy-saving program, and then investigate if it’s doing what it says it is! Note: we will NOT be determining its correctness via direct energy-related measurements; rather, we will investigate in a manner similar to Mr. Russinovich’s technique.

Use the following instructions to install it onto the VM. Do NOT install these drivers/services onto your real machine -- follow these instructions below carefully!!!!

  1. The “Energy Saver” program consists of three files: “EnergySaverV1.0.sys”, which purports to be the basic framework for energy savings; “DisplayEnergySaverV1.0.sys”, which focuses on the energy consumption of the display/monitor; “INSTDRV.EXE”, which is a utility program for installing them.
  2. Download the following three programs as a single Zip file onto the physical machine and copy them to the VM (do NOT unzip them on the physical machine). Note: if your VM has network connectivity, you should download them directly onto the VM by running Internet Explorer in the VM.

http://www.cs.virginia.edu/~humphrey/cs414/F07/Assignments/Assignment_7/PA7.zip

  1. On the VM , after unzipping them on the VM, in a command prompt, type:

INSTDRV.EXE /i EnergySaverV1.0.sys

INSTDRV.EXE /i DisplayEnergySaverV1.0.sys

Note: The first time you do this, INSTDRV.EXE will say nothing (if the installation succeeds). Invoking this after invoking it once will bring up a GUI by which to stop the driver/service and then remove the driver/service. This could come in handy during your investigations. Also, when you attempt to uninstall the DisplayEnergySaver, it may “hang” until you go back to the command prompt and hit a key.

That’s it! You now need to figure out what they’re doing. Note: It is NOT necessary to disassemble the code, although this might be helpful. Your team must hand in a short report consisting of the answers to the following four questions:

  1. [25 points out of 100] What is each of the two drivers/services doing? (EnergySaverV1.0.sys and DisplayEnergySaverV1.0.sys)? Some possibilities include:

a. Hiding files, directories, or processes

b. Sending or attempting to send private information about you or your machine to its home location