Skip to content

This repository acts as a home for the first project completed for UT's cyber security boot camp, as well as other notable work completed such as network diagrams and Bash shell scripts.

Notifications You must be signed in to change notification settings

DouglasGraham-CS/Cloud-Security-Azure-GitHub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Automated ELK Stack Deployment

The files in this repository were used to configure the network depicted below.

Cloud Security Network Diagram

These files have been tested and used to generate a live ELK deployment on Azure. They can be used to recreate the entire deployment pictured above. Alternatively, select portions of the playbook files may be used to install only certain pieces of it as, for example, you can leave out Install-Metricbeat-Playbook.yml and Metricbeat-Config.yml to omit the addition of Metricbeat to your network.

This document contains the following details:

  • Description of the Topology
  • Access Policies
  • ELK Configuration
    • Beats in Use
    • Machines Being Monitored
  • How to Use the Ansible Build

Description of the Topology

The main purpose of this network is to expose a load-balanced and monitored instance of DVWA, the D*mn Vulnerable Web Application.

Load balancing ensures that the application will be highly efficient and reliable, protecting the networks availability by balancing traffic between the two web servers. Meanwhile, the Jump Box works to keep unwanted traffic out of the network by acting as the gateway via whitelisted IP addresses.

Integrating an ELK server allows users to easily monitor the vulnerable VMs for changes to the metrics and system logs.

"Filebeat monitors the log files or locations that you specify, collects log events, and forwards them either to Elasticsearch or Logstash for indexing."

"Metricbeat takes the metrics and statistics that it collects and ships them to the output that you specify, such as Elasticsearch or Logstash."

The configuration details of each machine may be found below.

Name Function IP Address Operating System
JumpBoxProvisioner Gateway 10.0.0.4 Linux (ubuntu 18.04)
Web-1 Web Server 10.0.0.5 Linux (ubuntu 18.04)
Web-2 Web Server 10.0.0.6 Linux (ubuntu 18.04)
ELKServer ELK Container 10.1.0.4 Linux (ubuntu 18.04)

Access Policies

The machines on the internal network are not exposed to the public Internet.

Only the Jump Box Provisioner can accept connections from the Internet. Access to this machine is only allowed from the Client IP

Other machines within the network can only be accessed by the Jump Box, IP 10.0.0.4.

A summary of the access policies in place can be found in the table below.

Name Publicly Accessible Allowed IP Addresses
JumpBoxProvisioner No Client IP
Web-1 No 10.0.0.4
Web-2 No 10.0.0.4
ELKServer No 10.0.0.4

Elk Configuration

Ansible was used to automate configuration of the ELK machine. No configuration was performed manually, which is advantageous because the configuration can be easily repeated without error on other machines.

The playbook implements the following tasks:

  • Install Docker.io
  • Install Python3-pip
  • use pip module to install docker module
  • Increase virtual memory and memory usage
  • Download and launch the docker ELK container

The following screenshot displays the result of running docker ps after successfully configuring the ELK instance.

ELK Confirmation

Target Machines & Beats

This ELK server is configured to monitor the following machines:

  • 10.0.0.5 (Web-1)
  • 10.0.0.6 (Web-2)

We have installed the following Beats on these machines:

  • Filebeat
  • Metricbeat

These Beats allow us to collect the following information from each machine:

  • Filebeat helps generate and organize log files to send to Logstash and Elasticsearch for later viewing in Kibana. It can collect log files from specific files generated by Apache, for example.
  • Metricbeat collects metrics and statistics related to the webservers which can then be easily viewed and analyzed in Kibana. It can track things like the CPU and Memory usage of docker containers.

Using the Playbook

In order to use the ELK playbook, you will need to have an Ansible control node already configured. Assuming you have such a control node provisioned:

SSH into the control node and follow the steps below:

About

This repository acts as a home for the first project completed for UT's cyber security boot camp, as well as other notable work completed such as network diagrams and Bash shell scripts.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages