Log inSign up

A private CyberChef for decoding and data work

Download the CyberChef release zip, unpack it into /var/www/cyberchef/<version>, link its HTML file as index.html and let Caddy serve the folder on https://chef.example.net with a password. Because CyberChef runs entirely in the browser, the server only delivers files, so the smallest plan is plenty.

Topic: Self-hosted apps · Tested on: Ubuntu 24.04 and 22.04, Debian 12 and 13, Rocky Linux 9, AlmaLinux 9 · Updated 2026-12-03

Why host CyberChef yourself?

CyberChef is a browser application for encoding, decoding, hashing, parsing and converting data: Base64, hex, timestamps, JWTs, compression, regular expressions and hundreds of other operations chained into recipes. All processing happens in JavaScript on the visitor's machine. A private copy means your team works on internal logs or tokens from a URL you control, on a version you decide, with access limited by a password.

The server side is a static file host. Any plan works, including A1-1; you need Ubuntu 24.04/22.04, Debian 12/13, Rocky Linux 9 or AlmaLinux 9 and a hostname such as chef.example.net.

How do you download and unpack a release?

The project publishes a zip for every release on GitHub. Set the version shown on the releases page and unpack it into a versioned folder:

sudo apt install -y unzip curl        # Ubuntu, Debian
sudo dnf install -y unzip curl        # Rocky, Alma
CC_VERSION=10.x.y                     # replace with the current release
cd /tmp
curl -fsSLO https://github.com/gchq/CyberChef/releases/download/v$CC_VERSION/CyberChef_v$CC_VERSION.zip
sudo mkdir -p /var/www/cyberchef/$CC_VERSION
sudo unzip -q CyberChef_v$CC_VERSION.zip -d /var/www/cyberchef/$CC_VERSION
ls /var/www/cyberchef/$CC_VERSION

The folder holds one CyberChef_v...html page plus its scripts and assets.

How do you point a stable path at the current version?

A current symlink lets Caddy serve a fixed path while you switch versions underneath it. Add an index.html link inside the release so the root URL opens the app.

cd /var/www/cyberchef/$CC_VERSION
sudo ln -sf CyberChef_v$CC_VERSION.html index.html
sudo ln -sfn /var/www/cyberchef/$CC_VERSION /var/www/cyberchef/current
ls -l /var/www/cyberchef

On Rocky and Alma, restore the SELinux labels after creating the files with sudo restorecon -R /var/www/cyberchef. Read more on links in symlinks.

How do you serve it with Caddy, HTTPS and a password?

Install Caddy from the Caddy HTTPS tutorial, then create a password hash:

caddy hash-password

Type the password twice and copy the hash it prints. Write /etc/caddy/Caddyfile:

chef.example.net {
    root * /var/www/cyberchef/current
    encode gzip zstd
    basic_auth {
        deploy PASTE_HASH_HERE
    }
    header {
        X-Frame-Options DENY
        Referrer-Policy no-referrer
        X-Content-Type-Options nosniff
    }
    file_server
}
sudo caddy validate --config /etc/caddy/Caddyfile
sudo systemctl reload caddy
curl -I -u deploy https://chef.example.net

The curl call prompts for the password and should return 200; without credentials you get 401. Caddy obtains the certificate on the first request.

Which firewall rules does it need?

Only SSH and the two web ports. On Ubuntu and Debian:

sudo ufw allow OpenSSH
sudo ufw allow 80,443/tcp
sudo ufw enable

On Rocky Linux and AlmaLinux:

sudo firewall-cmd --permanent --add-service=http --add-service=https
sudo firewall-cmd --reload

Port 80 must stay open so Caddy can renew certificates and redirect plain HTTP to HTTPS. If you prefer to allow only office addresses, see firewall rules for source-restricted rules.

Can you run CyberChef with Docker instead?

Yes. The project publishes a container image that serves the same files from a small web server. Bind it to loopback and point Caddy at it with reverse_proxy 127.0.0.1:8080 in place of root and file_server:

sudo docker run -d --name cyberchef --restart unless-stopped \
  -p 127.0.0.1:8080:80 ghcr.io/gchq/cyberchef:latest
curl -I http://127.0.0.1:8080

This suits a server already built around containers, such as one started from the Docker app image. Updating is then a pull and a new container. The static method needs no Docker at all and uses less memory.

How do you update to a new release?

Unpack the new zip next to the old one, test it, then move the symlink. Rolling back is moving the link back.

CC_VERSION=10.x.z
cd /tmp && curl -fsSLO https://github.com/gchq/CyberChef/releases/download/v$CC_VERSION/CyberChef_v$CC_VERSION.zip
sudo mkdir -p /var/www/cyberchef/$CC_VERSION
sudo unzip -q CyberChef_v$CC_VERSION.zip -d /var/www/cyberchef/$CC_VERSION
sudo ln -sf CyberChef_v$CC_VERSION.html /var/www/cyberchef/$CC_VERSION/index.html
sudo ln -sfn /var/www/cyberchef/$CC_VERSION /var/www/cyberchef/current

No reload is needed; Caddy follows the link on the next request. Delete old version folders once you are happy. Browsers cache the app, so tell users to refresh with Ctrl+F5 after an update.

What should you check when the page is blank or recipes fail?

  • Blank page: open the browser developer tools; a 404 on a script means index.html points to a wrong file name.
  • Repeated password prompts: the hash in the Caddyfile was copied incompletely.
  • Large inputs freeze the tab: CyberChef runs in the visitor's browser, so the limit is their machine, not the server.
  • Certificate errors: check DNS with dig +short chef.example.net and Caddy logs with journalctl -u caddy -n 50.

Plans that fit this guide

Base city prices. Every plan includes a dedicated IPv4 address, IPv6, full root and all 18 images.

All prices
PlanFits becauseSizeMonthlyOrder from
A1-1static files, any team size1 vCPU, 1 GB RAM, 25 GB NVMe$3.60/mo$43.20 for 12 months

Questions about CyberChef data toolbox

Does CyberChef send my data to the server?

No. The server delivers the page and scripts once; every operation runs locally in the browser. Only the request for the files reaches Caddy.

Can I share recipes with my team?

Yes. The recipe and input are encoded in the URL, so a copied link opens the same chain of operations on your private instance.

Is basic auth safe enough?

Over HTTPS, a strong password with basic auth is a reasonable gate for a static tool. Add an IP allowlist in the firewall if only known networks should reach it.

Can it run on the same server as other sites?

Yes. It is just another site block in the Caddyfile, and it uses almost no CPU or memory on the server.

Does CyberChef need a database or mail?

No. There is nothing to store and nothing to email, which is why backups only need the Caddyfile and, optionally, the release zip.