On this page
- Why host CyberChef yourself?
- How do you download and unpack a release?
- How do you point a stable path at the current version?
- How do you serve it with Caddy, HTTPS and a password?
- Which firewall rules does it need?
- Can you run CyberChef with Docker instead?
- How do you update to a new release?
- What should you check when the page is blank or recipes fail?
- Questions
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_VERSIONThe 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/cyberchefOn 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-passwordType 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.netThe 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 enableOn Rocky Linux and AlmaLinux:
sudo firewall-cmd --permanent --add-service=http --add-service=https
sudo firewall-cmd --reloadPort 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:8080This 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/currentNo 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.htmlpoints 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.netand Caddy logs withjournalctl -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.
| Plan | Fits because | Size | Monthly | Order from |
|---|---|---|---|---|
| A1-1 | static files, any team size | 1 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.
More in Self-hosted apps
- Nextcloud on Nginx
- ownCloud Infinite Scale
- Seafile file sync
- Vaultwarden password vault
- Passbolt team password manager
- Gitea Git hosting
- Forgejo Git server
- GitLab Community Edition
- Gogs Git service
- Wiki.js
- BookStack documentation
- Outline knowledge base
- Paperless-ngx documents
- n8n workflow automation
- Activepieces automation
- Plausible Analytics (Community Edition)
- Umami analytics
- Mattermost team chat
- Matrix Synapse with Element
- Jitsi Meet video calls
- ONLYOFFICE Docs with Nextcloud
- HashiCorp Vault secrets server
- OpenBao secrets management
- Infisical secrets manager
- Authelia SSO and forward auth
- Zitadel identity platform
- VS Code in the browser (code-server)
- Joplin Server for notes sync
- Firefly III personal finance
- Snipe-IT asset tracking
- Odoo ERP on Ubuntu or Debian
- ERPNext with frappe_docker
- Dolibarr ERP and CRM with Nginx
- Penpot design tool with Docker
- Planka kanban boards
- Leantime project management
- Wekan boards with Docker
- Cal.com scheduling
- Chatwoot support inbox
- Mautic marketing automation
- DocuSeal document signing
- Metabase dashboards
- Appwrite backend server
- Self-hosted Supabase
- PocketBase backend
- RustDesk relay server
- Traccar GPS tracking
- Redmine project tracker
- The Lounge IRC client
- Typebot chat forms
- AFFiNE workspace
- Overleaf Community Edition
- Neko shared virtual browser
- imgproxy image resizing
- NetBox network inventory
- UVdesk help desk
- YetiForce CRM