Cybrary ForgeCYBRARY / FORGE

Canarytokens

v2.4.0Thinkst Applied Research (open source)

Generates tokens you plant as bait (a web link, a DNS name, fake AWS keys, a Word or PDF file, a SQL trigger, a QR code) and records every touch in an alert feed. The range provides canarytokens, switchboard.conf, the token registry and the alert log; a token only alerts while the switchboard runs and the token exists, and some stock choices give a token away.

Category
Deception and honeypots
Package
canarytokens
Runs on
Linux
Commands
canarytokens

Emulated: no process, socket, DNS or web server. Tokens are inert placeholders on a reserved example domain, the service state gates the alert log, and alert lines come from the run's decoy events. AWS keys carry a fake prefix and never work.

Install it

The scripts below install the real Thinkst Applied Research (open source) 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-canarytokens.sh
Windows installer (PowerShell)
Install-canarytokens.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 Canarytokens
    sudo apt install -y canarytokens

RHEL, Fedora (dnf)

  1. Install Canarytokens
    sudo dnf install -y canarytokens

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

Arch (pacman)

  1. Install Canarytokens
    sudo pacman -S --noconfirm canarytokens

Alpine (apk)

  1. Install Canarytokens
    sudo apk add canarytokens

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

Check it worked

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

    The range reports 2.4.0.

Remove it

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

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 Canarytokens inside it
    wsl sudo apt install -y canarytokens

Inside the range

  1. Tick it on the launch screen

    Under Canarytokens'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 canarytokens

    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 Canarytokens

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