Cybrary ForgeCYBRARY / FORGE

Wazuh agent

v4.9.2Wazuh, Inc.

The Wazuh agent watches directories (syscheck/FIM), collects local logs and turns what it sees into rule alerts. On a decoy host it is the honeyfile canary: a watched honeyfile that is read raises an alert. The range provides ossec.conf, local_rules.xml, alerts.json, wazuh-control and wazuh-logtest; edit the config and the agent sees (or misses) different decoys.

Category
Endpoint telemetry & host instrumentation
Package
wazuh-agent
Runs on
Linux
Commands
wazuh-control, wazuh-logtest

Emulated: no process, inotify watch or manager connection. Coverage follows /var/ossec/etc/ossec.conf and local_rules.xml, the service state gates alerts.json, and alerts come from the run's decoy events.

Install it

The scripts below install the real Wazuh, Inc. package on your own machine — read them first, and run them somewhere you are allowed to change. Inside the range, one press puts the simulated package on your next machine.

Linux installer (shell script)
install-wazuh-agent.sh
Windows installer (PowerShell)
Install-wazuh-agent.ps1

No native Windows build. Use a Linux host in the range, or run it under WSL.

On a range machine
Add it to your kit and every machine you launch comes with it.

On Linux

Debian, Ubuntu, Kali (apt)

  1. Refresh the package lists
    sudo apt update
  2. Install Wazuh agent
    sudo apt install -y wazuh-agent

RHEL, Fedora (dnf)

  1. Install Wazuh agent
    sudo dnf install -y wazuh-agent

    Package names drift between distributions; search first if this one misses.

Arch (pacman)

  1. Install Wazuh agent
    sudo pacman -S --noconfirm wazuh-agent

Alpine (apk)

  1. Install Wazuh agent
    sudo apk add wazuh-agent

    Package names drift between distributions; search first if this one misses.

Check it worked

  1. Confirm it landed on PATH
    which wazuh-control
  2. Check the version
    wazuh-control --version

    The range reports 4.9.2.

Remove it

  1. Take it off again
    sudo apt remove --purge wazuh-agent

On Windows

No native Windows build. Use a Linux host in the range, or run it under WSL.

Windows Subsystem for Linux

  1. Install a Linux userland on the Windows host
    wsl --install -d Ubuntu

    The upstream project has no native Windows build; WSL is the usual way round it.

  2. Install Wazuh agent inside it
    wsl sudo apt install -y wazuh-agent

Inside the range

  1. Tick it on the launch screen

    Under Wazuh agent's category on the advanced tool shelf. A lab that depends on it locks the toggle on and says why.

  2. Or install it from a range terminal
    sudo apt install -y wazuh-agent

    The simulated package manager seeds the same binaries, config and receipt the shelf toggle does.

  3. Everything here is simulated

    No software is downloaded and nothing executes — the range answers from authored fixtures.

Labs that use Wazuh agent

No lab locks this one on yet — tick it on the launch screen and take it into any scenario.