Cybrary ForgeCYBRARY / FORGE

Snort

v2.9.20Cisco / Snort Project

Rule-driven IDS/IPS. Reads rules from a ruleset, matches them against traffic and raises alerts with SID, classification and priority. The range lets you write and test rules against the scenario's captures, so you can see a badly scoped rule flood, and a good one fire exactly once.

Category
Intrusion detection & network monitoring
Package
snort
Runs on
Linux · Windows
Commands
snort

Rules are parsed and evaluated against authored packet fixtures. No interface is placed in promiscuous mode.

Install it

The scripts below install the real Cisco / Snort Project 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-snort.sh
Windows installer (PowerShell)
Install-snort.ps1
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 Snort
    sudo apt install -y snort

RHEL, Fedora (dnf)

  1. Install Snort
    sudo dnf install -y snort

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

Arch (pacman)

  1. Install Snort
    sudo pacman -S --noconfirm snort

Alpine (apk)

  1. Install Snort
    sudo apk add snort

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

Check it worked

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

    The range reports 2.9.20.

Remove it

  1. Take it off again
    sudo apt remove --purge snort

On Windows

Windows Package Manager (winget)

  1. Search the catalog
    winget search snort
  2. Install Snort
    winget install --id snort -e

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

Chocolatey (choco)

  1. Install Snort
    choco install snort -y

    Run the shell as administrator.

Check it worked

  1. Confirm it resolves
    where snort
  2. Check the version
    snort --version

    The range reports 2.9.20.

Remove it

  1. Take it off again
    winget uninstall --id snort

Inside the range

  1. Tick it on the launch screen

    Under Snort'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 snort

    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 Snort

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