Skip to main content
  1. Technology/

Installing OSSEC 3.8.0 on Ubuntu 24.04 (Noble Numbat) How-To

2 mins· ·
Security System Administration Security Ossec Hids Monitoring Linux
Vicente Manuel Muñoz Milchorena
Author
Vicente Manuel Muñoz Milchorena
Cybersecurity Professional | Writer and Editor | People Person
Table of Contents

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:

  1. Select your preferred language
  2. Choose “local” for the installation type
  3. 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!

Related

Installing OSSEC 3.6.0 on Debian 10 (Buster) How-To
2 mins
Security System Administration Security Ossec Hids Monitoring Linux
OSSEC 3.3.0 HIDS Setup and Usage
2 mins
Security System Administration Security Ossec Hids Monitoring Linux
Solución para problemas de sonido ALSA en Debian Wheezy
4 mins
Tutoriales Linux Linux Debian Alsa Audio Troubleshooting