This guide covers the installation of OSSEC 3.8.0 as a local agent on Ubuntu 24.04 (Noble Numbat). The process has been tested and works consistently on both x64 and ARM systems.
Because this installation process always catches me by surprise when I need to do it, and while I don’t do it often, it’s always the setup that bothers me the most. Here’s a straightforward guide to get OSSEC 3.8.0 running on your Ubuntu 24.04 system.
Installation#
Install Required Dependencies#
First, install the necessary packages. I usually run a minimalist version of Ubuntu, so these packages may not come with your current installation:
apt install wget libz-dev libssl-dev libpcre2-dev build-essential libsystemd-dev
Download OSSEC 3.8.0#
With the dependencies installed, download the OSSEC 3.8.0 package:
wget https://github.com/ossec/ossec-hids/archive/3.8.0.tar.gz
Extract the Package#
Unpack the newly downloaded .tar.gz file:
tar -zxvf 3.8.0.tar.gz
Run the Installation#
Navigate into the extracted folder, locate the install.sh
script, and run it:
cd ossec-hids-3.8.0
./install.sh
During the installation process:
- Select your preferred language
- Choose “local” for the installation type
- Follow the remaining prompts with default settings
This process should also work for other OSSEC modes, but I typically use local installation and pull logs through other methods for my setup.
Conclusion#
That’s it! You now have OSSEC 3.8.0 running on your Ubuntu 24.04 system. The installation process is straightforward once you have all the dependencies in place.
Have fun monitoring your system!