Install and Configure AlienVault OSSIM on VirtualBox

|
Last Updated:
|
|

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.

Installing 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

alienvault ossim vm

2.Assign a memory of 8GB

alienvault RAM

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.

alienvault vm disk

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

alienvault cpu cores

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

alienvault install iso attache

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.

network interfaces

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.

alienvault ossim

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

Reference:

AlienVault OSSIM® Installation Process

Other Tutorials

How to import Assets to OSSIM server.

Configure Nagios Availability Monitoring on AlienVault USM/OSSIM

SUPPORT US VIA A VIRTUAL CUP OF COFFEE

We're passionate about sharing our knowledge and experiences with you through our blog. If you appreciate our efforts, consider buying us a virtual coffee. Your support keeps us motivated and enables us to continually improve, ensuring that we can provide you with the best content possible. Thank you for being a coffee-fueled champion of our work!

Photo of author
koromicha
I am the Co-founder of Kifarunix.com, Linux and the whole FOSS enthusiast, Linux System Admin and a Blue Teamer who loves to share technological tips and hacks with others as a way of sharing knowledge as: "In vain have you acquired knowledge if you have not imparted it to others".

9 thoughts on “Install and Configure AlienVault OSSIM on VirtualBox”

    • Inside VIM, once you enter your contents, press esc button, and type :wq! or simply :x or just upercase zz (ZZ)

      Reply
      • Hi. I am trying to install Alienvault OSSIM with oracle virtual box with Bridge network.
        But, the installation is failing at the “Select and Install Software” step repeatedly.
        I read that OSSIM doesn´t support disk drivers of Virtl0

        Reply
  1. My installation fails on installing the base system and will not write a grup boot nor a lilo boot.
    Syas configurling linux then starts updating from the gvm-11-feed
    then both grub and lilo boot loaders fail to insatll

    Reply
  2. Hy!
    i have followed all the steps as mentioned here and installed the alien vault but neither ping is successful nor opening in browser i have also disabled firewall but nothing happened. so what can i do now ?

    Reply

Leave a Comment