Docsity

Assignment #3 - Network Security | ISA 656, Assignments of Cryptography and System Security

Toggle sidebar
bg1
Network Security, ISA 656, Angelos Stavrou
Assignment 3
1
ISA 656, Assignment 3
due November 23rd , 11:59pm
GENERAL INSTRUCTIONS
This homework has two parts: one part with a set of theory questions and
a programming part. Programming can be done in either C or Java.
Submissions should include the annotated source code.
Programs that do not compile will get a low grade. Make sure your
programs do not crash when given bad input, but rather produce a useful
warning or error message and take the appropriate action (recover or
quit).
SUBMISSION INSTRUCTIONS
The compressed files (either tar or zip) will be submitted using email to
A compressed (zip or tar, and gzipped) file named {your last name}-
hw3.tgz or {your last name}-hw3.zip containing a subdirectory for each
problem, named p1, p2, etc. Each subdirectory should contain:
• All source code, including any test programs, for the problem, if
required.
• A file answering any questions posed.
• Any additional files required.
Please make sure that you send me a single compressed file with all
the documents and code. The compressed file should not exceed
1MB.
pf3
pf4

Partial preview of the text

Download Assignment #3 - Network Security | ISA 656 and more Assignments Cryptography and System Security in PDF only on Docsity!

ISA 656, Assignment 3

due November 23 rd^ , 11:59pm

GENERAL INSTRUCTIONS

This homework has two parts: one part with a set of theory questions and a programming part. Programming can be done in either C or Java. Submissions should include the annotated source code. Programs that do not compile will get a low grade. Make sure your programs do not crash when given bad input, but rather produce a useful warning or error message and take the appropriate action (recover or quit).

SUBMISSION INSTRUCTIONS

The compressed files (either tar or zip) will be submitted using email to [email protected].

A compressed (zip or tar, and gzipped) file named {your last name}- hw3.tgz or {your last name}-hw3.zip containing a subdirectory for each problem, named p1, p2, etc. Each subdirectory should contain:

• All source code, including any test programs, for the problem, if

required.

• A file answering any questions posed.

• Any additional files required.

Please make sure that you send me a single compressed file with all the documents and code. The compressed file should not exceed 1MB.

I NTRUSION DETECTION USING SNORT (50 points)

In this problem you will learn to use Snort, a popular intrusion detection system.

Read the Snort user’s manual and FAQ at http://www.snort.org/docs Command-line switches that you should pay particular attention to include the following:

-r tf Read and process tcpdump file .

-l ld Log to directory .

Snort will fail without these arguments, unless you have root privileges on your machine. Use the traffic dump file, hw3.dmp (described below) as the argument to the -r switch and a directory of your choosing for -l.

Detect an intrusion

Download hw3.dmp from the course website. This file contains a tcpdump listing of all the traffic (some interesting, some not so interesting) to and from nefeli.cs.columbia.edu.

Your goal is to determine what attacks , if any, this machine made or sustained during the duration of the traffic recording.

After making sure that you have created an appropriate log directory (see above!), run Snort on an appropriately defined set of snort.conf files to detect the following:

  • All TCP and ICMP traffic to and from an IP address of your choosing.
  • All TCP traffic to port 80.
  • All TCP traffic on port 80 to an IP address of your choosing.
  • A port scan. What is the range of ports in the scan?
  • A worm. Use the worm signature provided in file hw3.wormsig from the class web-site

example, assuming users test1, test2, and test3 are connected then

test1 can communicate privately with test2 only by typing:

(in test1’s terminal):

[test2] Hello test

similarly for communicating with test3:

(In test1’s terminal):

[test3] Hello test

For this last part you should maintain a synchronized database of

the connected users both on the server and on each client. This

database should be updated each time a user joins or leaves the

chat server. Each user should be able to see the list of connected

users by typing “[show users]”.

In order to be able to send both messages and control commands

without having to create a complicated protocol, you can use two

sockets for each client: one for control commands and one for

messages.