Archived course material. Links to my own materials are disabled; they are available on request — email me. ← Teaching archive

Security Assignments

Heads-Up

Part of this semester�s goal will be to obtain the maximum amount of information about the network and other team�s hosts, including attempting to "pwn" them. No attacks that will completely compromise the hosts should be performed. The focus is on scanning, scanning detection, intrusion and intrusion detection. You will be told when "open season" begins and ends...

Rules

There are several rules that must be followed prior and during the exercise.

 

VM Initialization and Server Instances

  1. (A1) Login, change admin password and make sure your VMs have the correct network configuration. Do NOT delete/alter any existing accounts other than the administrator account. 
  2. (A2) Create user accounts for each of the students in the class (name list will be given) as well as an account named �hayne�, that have user-level access to the services on your server. Create a strong password for these accounts and distribute them to us (email is acceptable).
    Password Resources:
    http://passwordsgenerator.net/,
    http://rumkin.com/tools/password/passchk.php ,
    http://www.passwordmeter.com/ http://comparitech.net/password-strength
  3. (A3) Make sure that ssh/rdp (as appropriate) is enabled for ALL users.  Note: On Windows, no need to install "Terminal Server"... just make sure that Remote Desktop is enabled for ALL Users (hint!).  No FIREWALLS yet, please!
  4. (A4) Verify SQL services on the correct ports (MSSQL as provided for Windows server, and MySQL for linux). Verify scripting works on the web server (ASP for Windows server, and PHP for linux).

 

SQL Security

  1. (A5) Enable the web pages provided (on your WINDOWS server). Configure the appropriate page so it queries your server's DB, and secure both the pages and the DB from SQL injection! Leave the web pages where they are, but make sure they are "publicly" available (use elab to test this), and use sqlmap to test.  Graduate Students - you must also implement this on linux (php+mysql), but no extra points...
    https://vikaskanani.wordpress.com/2012/05/07/classic-asp-sql-injection-prevention-by-using-query-parameter/,
    https://blogs.technet.microsoft.com/neilcar/2008/05/21/sql-injection-mitigation-using-parameterized-queries/,
    https://www.owasp.org/index.php/SQL_Injection_Prevention_Cheat_Sheet
  2. (A6) Alter the pages to "allowlist" the input. Make sure to test with sqlmap, in case you have inadvertently made the page vulnerable. Submit your code. Graduate Students - you must also implement this on linux (php+mysql), but no extra points... 
    https://www.owasp.org/index.php/Input_Validation_Cheat_Sheet  

Graduate students NOTE: You must also accomplish (1 and 2) above using PHP and MySQL on your linux server making any adjustments as appropriate.

NB: Do not violate the security auditing (ethical hacking) protocol that we have been developing.  Make sure your server has error reporting enabled and displayed, even though we will talk about why/how to disable this when moving to production servers.

(A7) TBA - something to do with ransomware?

NCL Gymnasium (must wait to see the gym...)

  1. (A8) - Network Traffic Analysis
  2. (A9) - Log Analysis
  3. (A10) - Password Cracking (Extra Credit)

 

Firewall

(A11) Configure pfsense to only allow connections to your servers (the required services!) you have placed in the "DMZ". https://www.pfsense.org/... also configure the host firewall on your Windows server (but not your linux server).

 

Intrusion Detection System

(A12)  Install and configure an IDS. We will use SELKS: SELKS, SELKS vs. Security Onion/SNORT, Taylor's SELKS Blog, , , ,

When finished, "attack" your server, as discussed in class, to trigger "alerts".  Upload a screen capture of the pages that show alert data for grading.

 

Penetration Test / Open Season

We will provide details at the appropriate time.

 

Graduate Students (623) will also do the following:

Security Blog (1/3 of total points for each blog entry)

(Blog) As anyone who pays even a little attention to the news can tell you, information security is a dynamic field. It has been said that to be successful in the field, information security should not be a career, but a way of life. This requires constant attention to late breaking news which could reveal new vulnerabilities, exploits, or other topics of concern.   In order to help further your knowledge of the field, and help instill good habits, throughout this semester each graduate student will keep a blog and create THREE blog posts presenting a topic (not covered in class!) which they learned about during the semester. The post should include the following:

In order to help you get started, a list of good security sites can be found below, and a sample blog post can be viewed here.  You must implement Wordpress on your linux server and make each of these blog posts visible there, as well as put a PDF of the blog post in the online discussion.  Some good instructions appear here.  Note, you will have to host TWO websites on ONE server (virtual hosting) - this might work.

Information Security Sites / Blogs

Due dates are:  1st Blog entry (Week 5), 2nd Blog entry, (Week 10), 3nd Blog entry, (Week 15) - Sunday 11:59pm!

 

Forensic Analysis

Graduate Students will either analyse a packet trace or log file and determine what (if any) intrusions took place, and how.  Or, download and run locally in VMPlayer an image of a possibly compromised system and determine what (if anything) is wrong.  Due 1 week after class lectures end.