|
Instructor
Lecture:
Resources |
HW4CS 642: Computer Security - Homework FourThis homework assignment covers topics in network security. You must work with a partner. There are four parts; all are required; there is no extra credit portion for this assignment. It is due Thursday, May 2 at 9 pm. Note:The assignment was extended with a second part on Friday, April 19. Both parts are due at the same time. Part 1In hw4.zip, you will find four packet traces (pcap files) that can be read by the WireShark tool (among other tools). You will need to investigate these traces to answer the questions below. To get started you will want to understand how to use WireShark's filtering capabilities. Your solution will be a file Trace 1: HTTP
Trace 2: FTPFTP is the file transport protocol. There is a lot of information about it on the internet.
Trace 3: Traceroutetraceroute is a tool used to determine the route between two IP addresses. You can find information about on the internet. Wikipedia has a nice introduction: https://en.wikipedia.org/wiki/Traceroute.
Trace 4: POPThe post-office protocol (POP) is used for email.
Part 2In this part, you will write a simple intrusion detection system to detect potential attacks or dangerous behavior in network activity. Here are three pcaps with example attacks attack.zip:
Your job is to write a software IDS (a Python script named scanner.py) that takes as input a pcap trace and looks for such malicious behavior. The local network you are protecting is configured with two machines (192.168.0.100 with MAC address 7c:d1:c3:94:9e:b8 and 192.168.0.103 with MAC address d8:96:95:01:a5:c9) and a router (192.168.0.1 with MAC address f8:1a:67:cd:57:6e). Your scanner should:
ARP spoofing!
MAC: XX:XX:XX:XX:XX:XX
Packet number: XX
Port scan!
IP: XX.XX.XX.XX
Packet number: XX, XX, XX, XX
SYN floods!
IP: XX.XX.XX.XX
Packet number: XX, XX, XX, XX
Your program should take as input the filename of a pcap file that contains captured network packets, for example: python scanner.py example.pcap The output of your program will be the warning messages as described above. Please also write a README to explain how to run your code. Check that your scanner runs properly on the CS lab machines before turning it in. We will test your program on new pcap files other than the three we provide. Resources:We recommend using dpkt and scapy library for reading pcap files and scanning through different packet headers. Follow the instructions mentioned in the documentation to get the packages installed in your machines. Deliverables
tar -cf hw4.tar solution/* To submit, copy hw4.tar to your handin directory:
From a department managed machine:
cp hw4.tar ~cs642-1/handin/<cslogin>/hw4 From another machine
scp hw4.tar emperor-01.cs.wisc.edu:~cs642-1/handin/<cslogin>/hw4 As a team, only one person should submit the homework tarfile.
GradingEach sub-question in part 1 is worth up to 1 point for a total of 12 points. Part 2 is worth up to 6 points. There is no extra credit for this assignment. |