{"id":14084,"date":"2022-09-26T13:40:20","date_gmt":"2022-09-26T10:40:20","guid":{"rendered":"https:\/\/kifarunix.com\/?p=14084"},"modified":"2024-03-09T21:26:10","modified_gmt":"2024-03-09T18:26:10","slug":"install-and-setup-security-onion-on-virtualbox","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-and-setup-security-onion-on-virtualbox\/","title":{"rendered":"Install and Setup Security Onion on VirtualBox"},"content":{"rendered":"\n
In this tutorial, you will learn how to install and setup Security Onion on VirtualBox. According to Security Onion page, “Security Onion is a free and open Linux distribution for threat hunting, enterprise security monitoring, and log management. The easy-to-use Setup wizard allows you to build an army of distributed sensors for your enterprise in minutes!<\/em> It includes a native web interface with built-in tools analysts use to respond to alerts, hunt for evil, catalog evidence into cases, monitor grid performance, and much more. Additionally, third-party tools, such as Elasticsearch, Logstash, Kibana, Suricata, Zeek (formerly known as Bro), Wazuh, Stenographer, CyberChef, NetworkMiner, and many more are included<\/em>.”<\/p>\n\n\n\n Navigate to the downloads page<\/a> and grab the current release version, (2.3.160-20220829 as of this writing), of Security Onion installation ISO file.<\/p>\n\n\n\n The ISO file is around 7.3GB in size.<\/p>\n\n\n\n You can simply get the download URL and pull using wget;<\/p>\n\n\n\n Once the download is complete, you need to verify the integrity of the ISO file by checking the hash values and comparing with those provided on the downloads page.<\/p>\n\n\n\n It is also possible to verify the integrity of the ISO file using GPG sigatures. However, in this setup, we will just calculate MD5 hash value of the iso file;<\/p>\n\n\n\n Sample output;<\/p>\n\n\n\n Compare the hash value with what is provided on the official download page;<\/p>\n\n\n\n Ensure the hash values match!<\/p>\n\n\n\n Open the settings of the newly created security onion vm and navigate to storage<\/strong>.<\/p>\n\n\n\n Under storage devices > Controller IDE, click on the optical drive icon to add the installation ISO file to the vm.<\/p>\n\n\n\n Search for the ISO file and attach it. It should now look like;<\/p>\n\n\n\n Under System<\/strong> settings;<\/p>\n\n\n\n Security Onion requires at least one NIC. However, “If you plan to sniff network traffic from a tap or span port, then you will need one or more interfaces dedicated to sniffing (no IP address).<\/em>“<\/p>\n\n\n\n Thus, under Network settings, VirtualBox allows you to attach up to 4 NICs to a VM.<\/p>\n\n\n\n In our setup, we have attached three Network interfaces;<\/p>\n\n\n\n Click Ok<\/strong> when do to exit the settings wizard.<\/p>\n\n\n\n It is now time to start the VM and install Security Onion on VirtualBox. Hence, hit the Start<\/strong> button.<\/p>\n\n\n\n Security Onion components can be deployed separately or can be deployed as all in one. In this setup, we are deploying an all in one Security Onion setup.<\/p>\n\n\n\n Thus, when the installer launches, select the first installation option;<\/p>\n\n\n\n You will get several prompts during the installation. Provide the appropriate options.<\/p>\n\n\n\n To begin with;<\/p>\n\n\n\n The install and setup of Security Onion on VirtualBox will now proceed.<\/p>\n\n\n\n When the installation completes, press ENTER to reboot the vm.<\/p>\n\n\n\n Select Yes and press ENTER to proceed with the setup.<\/p>\n\n\n\n Once the setup is complete, reboot the node;<\/p>\n\n\n You can navigate to the browser and access your security onion instance either via a domain or IP depending on how you set it up.<\/p>\n\n\n\n Security Onion Dashboard.<\/p>\n\n\n\n You can go through the all the tools on the left pane menu;<\/p>\n\n\n\n Sample Security Onion ELK;<\/p>\n\n\n\n And that is how you can install Security Onion on VirtualBox. Stay tuned for more tutorials.<\/p>\n\n\n\n Security Onion Documentation<\/a><\/p>\n\n\n\n Visualize ClamAV Scan Logs on ELK Stack Kibana<\/a><\/p>\n\n\n\n Monitor Changes to Critical Files on Windows Systems using Wazuh and ELK<\/a><\/p>\n\n\n\nInstall and Setup Security Onion on VirtualBox<\/h2>\n\n\n\n
Download Security Onion Installation ISO File<\/h3>\n\n\n\n
wget -c https:\/\/download.securityonion.net\/file\/securityonion\/securityonion-2.3.160-20220829.iso<\/code><\/pre>\n\n\n\n
Verify the Integrity of the ISO file<\/h3>\n\n\n\n
md5sum securityonion-2.3.160-20220829.iso<\/code><\/pre>\n\n\n\n
ced26ed960f4f778db59fb9a4aec88a7 securityonion-2.3.160-20220829.iso<\/code><\/pre>\n\n\n\n
MD5: CED26ED960F4F778DB59FB9A4AEC88A7<\/code><\/pre>\n\n\n\n
Create Security Onion VirtualBox VM<\/h3>\n\n\n\n
\n
<\/figure><\/a><\/div>\n\n\n\n
\n
\n
Attach Security Onion Installation ISO file to the VM<\/h3>\n\n\n\n
<\/figure><\/a><\/div>\n\n\n\n
<\/figure><\/a><\/div>\n\n\n\n
Update System Resources, RAM and vCPUs<\/h3>\n\n\n\n
\n
Add Network Interface Cards to Security Onion VM<\/h3>\n\n\n\n
\n
<\/figure><\/div>\n\n\n
Install Security Onion on VirtualBox<\/h3>\n\n\n\n
<\/figure><\/a><\/div>\n\n\n\n
\n
<\/figure><\/a><\/div>\n\n\n\n
<\/figure><\/a><\/div>\n\n\n\n
Setup Security Onion on VirtualBox<\/h3>\n\n\n\n
\n
<\/figure><\/a><\/div>\n\n\n\n
\n
<\/figure><\/a><\/div>\n\n\n\n
\n
<\/figure><\/a><\/div>\n\n\n\n
\n
\n
\n
<\/figure><\/a><\/div>\n\n\n\n
\n
<\/figure><\/a><\/div>\n\n\n\n
<\/figure><\/div>\n\n\n
Access Security Onion Web UI<\/h3>\n\n\n\n
<\/figure><\/a><\/div>\n\n\n\n
<\/figure><\/a><\/div>\n\n\n\n
<\/figure>\n\n\n\n
Further Reading<\/h3>\n\n\n\n
Other Tutorials<\/h3>\n\n\n\n