Creating OSSIM image for MS Azure

Creating OSSIM image for MS Azure

Running SIEM in a Cloud

AlienVault OSSIM is an open source SIEM software. It is a great security addition to any low-budget environment. I am going to run OSSIM inside my virtual lab. Unfortunately it is not available on Azure Marketplace (and AWS is offering only paid version of AlienVault SIEM: USM). However it is possible to create your own VM Image and upload it to the Cloud.

Creating OSSIM image for MS Azure

  1. Download OSSIM iso and VirtualBox. Install VirtualBox.
  2. Start VirtualBox and click “New”. Select Linux, Debian (64 bit) VM. If you can’t see 64 bit version, please enable hardware virtualization first in your BIOS. [Sample tutorial]

001

  1. Choose memory size: 4096 MB or more to run your local VM smoothly. This setting will not affect VM configuration in the cloud.

002

  1. Create new virtual hard disk. Select VHD type, fixed size. 8 GB is just fine. Wait, it might take a while.
  2. After VM is created, right click on it and go to Settings. It is not required step, but assigning more than one core to the VM will speed up the process.

003

  1. Start the VM and select start-up disk – OSSIM iso.

004

  1. Select the first menu option “Install AlienVault OSSIM 5.2.X (64 bit).
  2. Select language, location and keyboard layout.
  3. Configure management interface IP. Put anything you like, for example 10.0.0.100/24. This is only for the template and you are going to change it later.

005

  1. Unless you already know your gateway, leave the default, it can be changed later.
  2. Optional – put the name server address.
  3. Set root password. Note: this password is needed only to do some modifications locally, to the template. The administrative account for the VM is created later, via Azure interface.
  4. Select the time zone.
  5. Wait till installation is completed.

006

  1. Login as root user.

007

  1. Choose “3 – Jailbreak System” and “Yes”.

008

  1. Edit /etc/network/interfaces. Set eth0 to dhcp. Restart networking service.

service networking restart

  1. Now you should have internet access. Check it with ping command (for example ping Google’s DNS)

ping 8.8.8.8

  1. Type nano /etc/default/grub and add new line

AZURE=console=tty0 console=ttyS0,115200 earlyprintk=ttyS0,115200 rootdelay=30

Add $AZURE at the end of GRUB_CMDLINE_LINUX_DEFAULT.

Press Ctrl + o and Ctrl + x to write and exit.

 

  1. In order to run your template in Azure Cloud, you need to install Windows Azure Agent. It can be done manually, from the git repository: https://github.com/Azure/WALinuxAgent. An easier alternative is to use waagent package from repositories.

nano /etc/apt/sources.list

Add:

And run:

Allow apt to restart services without asking.

  1. Run:

  1. Your VHD by default is located at C:\Users\UserName\VirtualBox VMs\ossim_template. In the next part of this guide we are going to send it to Azure Cloud, use as an Image and deploy a VM.

References

https://www.alienvault.com/products/ossim

https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-linux-create-upload-generic/

https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-linux-debian-create-upload-vhd/

2 thoughts on “Creating OSSIM image for MS Azure

  1. When i was installing Microsoftazure Linux agent in OSSIM. It will give errors
    related to
    1.activate resource disk & mount resource disk
    2.Sleep 15 seconds and restart daemon ..
    3. /sys/bus/vmbus/devices/

    1. I’ve got similar issues when creating the template. waagent won’t work properly on VBox. However it should work fine after the deployment.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.