The Cyber Swiss Army Knife - a web app for encryption, encoding, compression and data analysis
open sourceApache-2.0self-hostablefree
CyberChef is a web app from GCHQ, the UK's intelligence and cyber agency, for transforming and analysing data in the browser: encoding such as Base64 and XOR, encryption such as AES, DES and Blowfish, hashes and checksums, hexdumps, compression, character encodings, date conversion and parsing of IPv6 addresses and X.509 certificates. You drag operations into a recipe that runs as you type, with breakpoints, a Magic operation that detects layers of nested encoding, and URLs that carry the recipe and input so it can be shared. Everything runs client-side, so input and files (up to about 2 GB) never reach a server, and the whole app can be downloaded and run offline or on a closed network. It's Apache-2.0 under Crown Copyright, hosted free at gchq.github.io/CyberChef, and also available as a Docker image and a Node.js package.
Ways to install
On your own server
Problems it solves
- decode a Base64 string and then decompress what's inside without writing a script
- work out what encoding this blob of text is in when it's been encoded several times
- decrypt AES data when I have the key and IV, in the browser
- XOR a payload with a key and look at the result as a hexdump
- convert between hex, binary, Base64 and text for a CTF challenge
- analyse suspicious data from an incident without uploading it to a website
- an offline tool for encoding and decoding that I can run on an air-gapped analyst machine
- build a repeatable chain of decoding steps and share it with a colleague as a link
- calculate MD5, SHA-256 and other hashes of a file locally
- parse an X.509 certificate or an IPv6 address to see what's in it
- convert a timestamp to a readable date in another time zone
- deobfuscate a malicious script by stepping through decoding operations one at a time
- extract the IV from the start of a ciphertext and decrypt the rest
- host a data transformation toolkit for our SOC team on the internal network
- run the same decoding recipe from Node.js code in a pipeline
- disassemble shellcode after decrypting it with RC4
Features
- operations in categorised, searchable lists: encoding, encryption, hashing, compression, parsing and conversion
- drag-and-drop recipes with Auto Bake, which reruns as you change the input or recipe
- Magic operation that automatically detects nested encodings
- breakpoints and stepping through a recipe one operation at a time
- save recipes to local storage, or share the recipe and input in a URL
- load and save files up to about 2 GB, depending on the browser
- highlighting that maps offsets between input and output
- entirely client-side: no input or recipe is sent to the server
- downloadable copy to run offline or on a closed network
- deep linking with recipe, input and theme parameters in the URL
View 3 more
- pre-built Docker image (ghcr.io/gchq/cyberchef)
- Node.js API through the cyberchef npm package
- quickstart script for writing new operations in JavaScript
Ways to run it
CyberChef (gchq.github.io)
Only in this edition
- GCHQ's official hosted copy, always the latest release
CyberChef (self-hosted)
Only in this edition
- runs offline or on a closed network
You arrange
- a static web server or the Docker image
- updating to new releases
Capabilities
| Has official SDKs | plan not known |
|---|
Alternatives
The same job
These do what CyberChef does.
- IT-Tools Collection of handy online tools for developers, with great UX
- OmniTools Self-hosted collection of powerful web-based tools for everyday tasks
- IT-Tools by sharevb IT-Tools with almost every pending tool pull request merged, plus new tools
