1 of 22

Capstone Engagement

Assessment, Analysis, �and Hardening of a Vulnerable System

2 of 22

Table of Contents

​

This document contains the following sections:

01

02

03

04

Network Topology

Red Team: Security Assessment

Blue Team: Log Analysis and Attack Characterization

Hardening: Proposed Alarms and Mitigation Strategies

3 of 22

Network Topology

3

4 of 22

Network Topology

Network

Address Range: 192.168.1.0/24

Netmask: 255.255.255.0

Gateway: 192.168.1.1

​

Machines

IPv4: 192.168.1.1

OS: Windows

Hostname:Hypervisor

​

IPv4: 192.168.1.90

OS: Linux 3.2-4.9

Hostname: Kali

​

IPv4: 192.168.1.100

OS:Linux 3.2-4,9

Hostname:ELK

​

IPv4:192.168.1.105

OS: Linux 3.2 -4.9

Hostname: Capstone

​

​

​

​

​

​

[Insert Here]

​

​

​

5 of 22

Red Team

Security Assessment

​

5

6 of 22

Recon: Describing the Target

Nmap identified the following hosts on the network:

Hostname

IP Address

Role on Network

Hypervisor

​

192.168.1.1

VM Host Machine

Kali Machine

192.168.1.90

Attacker Machine

Elk Machine

192.168.1.100

Log Server

Capstone Machine

192.168.1.105

Victim Machine

7 of 22

Vulnerability Assessment

The assessment uncovered the following critical vulnerabilities in the target:

Vulnerability

Description

Impact

Brute force attacks

Allows access to a web server or application by trying multiple passwords

This allows an attacker to gain access to a network and upgrading their permissions

Sensitive Data Exposure

Areas of a companies online infrastructure are too accessible to attackers

Attacker can get access to sensitive company Data

Remote Code Execution

When an attacker breaches a network by activating a file on a company's network remotely

Attacker can remotely control aspects of a network

Unauthorized File Upload

When a file is uploaded to a Server or machine through an exploit

Unpatched exploits can give an attacker a way to upload unwanted software onto a company's network

8 of 22

Exploitation: Brute Force Attack

Tools & Processes

Used a brute force tool called Hydra to crack password

​

01

02

Achievements

Got access to the secret folder using ashtons password which was retrieved using Hydra

03

9 of 22

Exploitation: Sensitive Data Exposure

Tools & Processes

Used nmap to see folders and then used the browser to look through them

01

02

Achievements

Found the secret_folder and its sensitive data

03

[INSERT: screenshot or command output illustrating the exploit.]

10 of 22

Exploitation: Remote Code Execution

Tools & Processes

Used Metasploit to run the exploit payload to insert a reverse shell. Then meterpreter was used on the attackers system to start a session on the victim's computer

​

01

02

Achievements

Was able to get a session on the victim's machine allowing remote control of their network so we could search for the flag

03

[INSERT: screenshot or command output illustrating the exploit.]

11 of 22

Blue Team

Log Analysis and �Attack Characterization

11

12 of 22

Analysis: Identifying the Port Scan

  • At approximately 1545 a port scan occurred within a 5 minute window
  • Approximately 6000 packets were sent from 192.168.1.90
  • The sudden spike in connections indicate the port scan was being conducted

[Insert Here]

Include a screenshot of Kibana logs depicting the port scan.

13 of 22

Analysis: Finding the Request for the Hidden Directory

  • Requests for the secret_folder were made at starting at 0300 on april 15, 2022
  • 32,515 requests were made
  • Connect_to_corp was the file that was found and it contained Ryans hashed pw and directions to connect to the webdav server

[Insert Here]

Include a screenshot of Kibana logs depicting the request for the hidden directory.

14 of 22

Analysis: Uncovering the Brute Force Attack

  • 32, 515 requests were made during the brute force attack
  • 62 requests had been made before the attacker �discovered the password

[Insert Here]

Include a screenshot of Kibana logs depicting the brute force attack.

15 of 22

Analysis: Finding the WebDAV Connection

  • 492 requests were made to the webdav directory
  • The shell.php and passwd.dav files were requested

[Insert Here]

Add a screenshot of Kibana logs depicting the WebDAV connection.

16 of 22

Blue Team

Proposed Alarms and �Mitigation Strategies

16

17 of 22

Mitigation: Blocking the Port Scan

What kind of alarm can be set to detect future port scans?

​

  • We can set an alarm that detects the number of HTTP requests per second from any source IP

​

​

What threshold would you set to activate this alarm?

  • Limit of 15 requests per second

What configurations can be set on the host to mitigate port scans?

​

  • Can allow only authorized IP addresses to be whitelisted to be able to conduct scans

​

​

​

​

System Hardening

Alarm

18 of 22

Mitigation: Finding the Request for the Hidden Directory

What kind of alarm can be set to detect future unauthorized access?

  • For sensitive files an alert can be sent if they are not accessed by authorized IP addresses

​

​

What threshold would you set to activate this alarm?

  • Any unauthorized IP access would set off alarm

​

What configuration can be set on the host to block unwanted access?

  • Permissions should reflect who can access directories
  • The data in the directory can be encrypted

​

​

​

​

​

​

System Hardening

Alarm

19 of 22

Mitigation: Preventing Brute Force Attacks

What kind of alarm can be set to detect future brute force attacks?

​

  • Alarm which can detect a spike in the number of login requests per second

​

What threshold would you set to activate this alarm?

  • Set it at 10 login requests per second that have a 400 response code

​

What configuration can be set on the host to block brute force attacks?

​

  • Not allowing the user by IP to attempt another login for 30 minutes

​

​

System Hardening

Alarm

20 of 22

  • Mitigation: Detecting the WebDAV Connection

What kind of alarm can be set to detect future access to this directory?

​

  • Set alarm to go off any time access to the webdav server is accessed

​

​

What threshold would you set to activate this alarm?

  • If the server contained sensitive information, there should be an alert every instance it is accessed to see what the user is doing

What configuration can be set on the host to control access?

  • Only authorized IP addresses should be allowed access to this server

​

​

​

​

​

​

System Hardening

Alarm

21 of 22

Mitigation: Identifying Reverse Shell Uploads

What kind of alarm can be set to detect future file uploads?

​

  • An alarm can be set to show when any files are being uploaded to the server for monitoring

​

​

What threshold would you set to activate this alarm?

  • It would be activated when any file was uploaded

​

What configuration can be set on the host to block file uploads?

  • Only certain IP addresses would be given access to upload a file

​

​

​

​

​

System Hardening

Alarm

22 of 22

22