Cybrary ForgeCYBRARY / FORGE

Cowrie

v2.5.0Cowrie project (Michel Oosterhof and contributors)

Pretends to be an SSH/Telnet server with a fake filesystem, accepts the logins its userdb allows, and writes every connection, login, command and download to cowrie.json. The range provides cowrie, cowrie.cfg, userdb.txt, the honeyfs tree and the JSON log; edit the config and the emulated honeypot behaves differently (and gives itself away differently).

Category
Deception and honeypots
Package
cowrie
Runs on
Linux
Commands
cowrie

Emulated: no process, socket or real shell. Behavior follows /etc/cowrie/cowrie.cfg and userdb.txt, the service state gates the log, and log lines come from the run's decoy events. Samples are inert placeholders.

Install it

The scripts below install the real Cowrie project (Michel Oosterhof and contributors) 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-cowrie.sh
Windows installer (PowerShell)
Install-cowrie.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 Cowrie
    sudo apt install -y cowrie

RHEL, Fedora (dnf)

  1. Install Cowrie
    sudo dnf install -y cowrie

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

Arch (pacman)

  1. Install Cowrie
    sudo pacman -S --noconfirm cowrie

Alpine (apk)

  1. Install Cowrie
    sudo apk add cowrie

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

Check it worked

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

    The range reports 2.5.0.

Remove it

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

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 Cowrie inside it
    wsl sudo apt install -y cowrie

Inside the range

  1. Tick it on the launch screen

    Under Cowrie'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 cowrie

    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 Cowrie

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