Install and Configure AlienVault OSSIM on VirtualBox

0
13772

In this tutorial, we are going to learn how to install and configure AlienVault OSSIM on VirtualBox. If you are a Blue Team security analyst, in one way or another you must have heard of or interact with not one, not two SIEM (Security Information and Event Management) solutions. Well, AlienVault is one of the leading SIEM solutions. AlienVault OSSIM is the open source version of AlienVault SIEM. It comes enriched with features like event collection, normalization and correlation. What crosses your mind when we talk about event collection, normalization and correlation? Let us put this in black and white:

  • Event collection: AlienVault has the ability to collect logs from various sources in your environment, host servers and systems, applications running on servers, network devices, such as firewalls and routers, name them endpoints in your environment.
  • Event normalization: The attributes of the collected logs are extracted and stored in the common data fields hat define an event such as IP addresses, hostnames, usernames, interfac- names, ports, programs etc. This allows analysts to run queries across collected events for better and quicker analysis.
  • Event correlation: This involves analyzing relationships between the collected events to identify the pattern of events.

OSSIM provides a unified platform that bundles together security capabilities such as Asset discovery, Host Intrusion Detection, Network Intrusion Detection, Behavioral monitoring, Asset Discovery, Vulnerability Assessment, Log management. It also leverages the power of the AlienVault Open Threat Exchange (OTX), the open threat intelligence community delivers community-generated threat data, enables collaborative research, and automates the process of updating your security infrastructure with threat data from any source.

Install and Configure AlienVault OS...
Install and Configure AlienVault OSSIM on VirtualBox

Install and Configure AlienVault OSSIM on VirtualBox

Without much theory, let’s get started on how to install and configure AlienVault OSSIM on VirtualBox.

System Requirements

Since this is just a demonstration, the minimum system requirements are:

  • 2 CPU cores
  • 8GB RAM
  • 32GB Disk Space
  • Two NICs (You can have multiple NICs for Management, Network Monitoring or Log Collection and Scanning)

Download OSSIM Installation ISO File

You can download the OSSIM installation iso from here.

You can get the ISO url and pull it using wget or curl;

wget https://cdn-cybersecurity.att.com/downloads/AlienVault_OSSIM_64bits.iso

Create AlienVault OSSIM Virtual Machine on VirtualBox

On VirtualBOX;

1.Create new vm

Install and Configure AlienVault OSSIM on VirtualBox

2.Assign a memory of 8GB

Install and Configure AlienVault OSSIM on VirtualBox

3.Create a virtual hard disk for AlienVault OSSIM vm. Choose file type VDI, dynamically allocated, and assign a storage of 30GB and click create button to create a VM.

Install and Configure AlienVault OSSIM on VirtualBox

4.Once a VM is created, open settings and adjust the number of CPU cores (we used 4 vcpus)

Install and Configure AlienVault OSSIM on VirtualBox

5.On storage settings, attach OSSIM installation ISO to IDE controller.

Install and Configure AlienVault OSSIM on VirtualBox

6.On Networks, add a second NIC as Host-Only adapter. Our first NIC is NAT, for internet access required for installation of various setup tools.

Install and Configure AlienVault OSSIM on VirtualBox

Click Ok to save the settings made.

Install AlienVault OSSIM on VirtualBox

7.Click Start button to launch the installation.

When OSSIM VM boots with iso image, an installation wizard as shown below welcomes you.

Install and Configure AlienVault OSSIM on VirtualBox

Choose the first option Install AlienVault OSSIM … to install OSSIM server.

8.On the next steps, choose the appropriate language, location and keyboard settings.

9.On configure Network, select the first interface as the primary network interface (the NATed interface).

alienvault virtualbox network settings

On the sub-subsequent configurations, assign appropriate IPv4 address, the netmask, the gateway, and the DNS. In this case, assign the default NAT network details as 10.0.2.15, 255.255.255.0, 10.0.2.2, 10.0.2.3 respectively.

10.Once the network is set up, configure users and passwords. Set the root password and keep it as it will be required for the root login account in the AlienVault OSSIM console.

set user password

11. Configure the clock.

12.Click continue to proceed with OSSIM installation.

ossim installation in progress

Once the Installation done, your AlienVault vm will reboot you should be able to see a screen similar to the one shown below when it starts up.

Install and Configure AlienVault OSSIM on VirtualBox

Update Network Settings

As seen on the screenshot above, we can access OSSIM web interface via the address. https://10.0.2.15/. However, since this is a NATed IP, we won’t be able to access our OSSIM via this address.

To access our OSSIM server via external host browser, we need to the management interface IP to an IP that can be accessed externally.

Thus, login to the SIEM as root with the password set previously.

Once you login, AlienVault Setup Menu welcomes you.

alienvault setup menu

Navigate to System Preferences > Configure Network > Setup Management Network;

mangement interface

In our case, we want to use the second interface, eth1, which is attached to an HostOnly interface type as our management interface.

Hence;

  • select eth1 and press space mark it.
  • Set to IP address to match the network range of the attached HostOnly network
  • Define the mask, 255.255.255.0 for /24.
  • Set the gateway. We use the NAT gateway IP 10.0.2.2 as our gateway here.

Go back to AlienVault Setup Menu and click Apply all Changes.

apply changes ossim

Once the changes are applied, we need to configure the NAT IP address on first interface, NAT interface, so we can be able to get to external network access (Internet) from AV.

Hence;

  • Navigate to System Preferences > Configure Network > Setup Network Interface;
  • Our NAT interface is eth0. Select the interface according and press space bar to choose it.
  • Press Ok and set the IP address (Use 10.0.2.15 as IP) > Netmask (255.255.255.0)

Go back and Apply all Changes.

Next, go the terminal by selecting Jailbreak system > Yes.

Confirm IP address assignment;

ip address assignment alienvault ossim

This is how the IP address is configured so far;

cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
   address 10.0.2.15
   netmask 255.255.255.0
   network 10.0.2.0
   broadcast 10.0.2.255
auto eth1
iface eth1 inet static
   address 192.168.58.30
   netmask 255.255.255.0
   network 192.168.58.0
   broadcast 192.168.58.255
   gateway 10.0.2.2
   dns-nameservers 10.0.2.3
   dns-search alienvault
   up ip link set $IFACE promisc on
   down ip link set $IFACE promisc off

As you can see, the default GW is via eth1. we need to change this to make the NAT interface as gateway.

Hence, edit the network interfaces and specify the gateway for eth0 such that your configuration looks like;

vim /etc/network/interfaces

See the changes i have made;

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
   address 10.0.2.15
   netmask 255.255.255.0
   network 10.0.2.0
   broadcast 10.0.2.255
   gateway 10.0.2.2
   dns-nameservers 10.0.2.3
   dns-search kifarunix-demo.com
auto eth1
iface eth1 inet static
   address 192.168.58.30
   netmask 255.255.255.0
   network 192.168.58.0
   broadcast 192.168.58.255
   up ip link set $IFACE promisc on
   down ip link set $IFACE promisc off

Once the IP is set, restart networking service;

service networking restart

Accessing AlienVault OSSIM Web Interface

You can now access you AV on browser via your IP, e.g https://192.168.58.30 in our case;

If you receive browser warnings of insecure connection, add the exceptions and proceed to AlienVault OSSIM web interface.

Install and Configure AlienVault OSSIM on VirtualBox

Create an admin account on the Welcome page by filling in all the fields.

Click Start Using AlienVault. This takes you to login screen as shown below.

alienvault ossim ui login page

AlienVault OSSIM Dashboard

Login to your AlienVault SIEM and begin your Initial Setup. Once you are done with initial setup, you should the main dashboard of OSSIM server.

You can skip alienvault setup wizard and go direct to dashboard.

alienvault dashboard

And that is it on how to install and configure AlienVault OSSIM on VirtualBox.

Reference:

AlienVault OSSIM® Installation Process

Other Tutorials

How to import Assets to OSSIM server.

Configure Nagios Availability Monitoring on AlienVault USM/OSSIM

LEAVE A REPLY

Please enter your comment!
Please enter your name here