CyberChef Setup: Decode Malware, Base64, XOR and PowerShell

For daily SOC work, run CyberChef 11.5.0 from a Docker image pinned to that exact tag, and use the hosted page only for CTFs and one-off decodes. CyberChef is the “Cyber Swiss Army Knife” built and maintained by GCHQ, the UK’s signals intelligence agency. Version 11.5.0 is the version this guide pins; check the project repository for the current release before you build. Below are four ways to set it up (hosted, the offline release zip, Docker, and from source) and the recipes worth saving: malicious Base64, XOR brute force, IOC extraction, URL defanging, JWTs, and obfuscated PowerShell.

Google · Preferred Sources

Don't miss new tech stories on Google

Add Tech Insider once in the Google app and our stories appear in your news suggestions.

Add Now

What CyberChef is and why analysts use it for decoding

CyberChef is a browser-based data transformation tool. Instead of writing a Python script every time you need to decode something, you drag operations into a “recipe” pane, paste your input, and watch the output update live. It runs entirely client-side, with no server round-trip for the core operations. A decoded phishing payload or malware string never leaves your machine unless you deliberately share the recipe URL.

The project is maintained on GitHub under gchq/CyberChef, and GCHQ is closely tied to the UK’s National Cyber Security Centre (NCSC). That explains the tool’s lean toward operations analysts actually need: hashing, encoding, cryptography, regex extraction, and format parsing, all drawn from a large library of built-in operations. For an exact count on your checked-out version, count the files under src/core/operations.

Encoded PowerShell delivery and multi-layer Base64/XOR obfuscation fall under MITRE technique T1027 (Obfuscated Files or Information). A fast, auditable decoding pipeline can be the difference between a quick triage and a long one.

Prerequisites and the hosted versus self-hosted decision

Prerequisites

Version numbers matter because an old build is a risk if you ever open shared recipe links from other people; check the project’s security advisories for your version.

  • A modern browser (Chrome, Firefox, or Edge, current stable release) if you use the hosted version at gchq.github.io/CyberChef
  • Docker Engine, if you plan to self-host (recommended for handling sensitive samples)
  • Git, for cloning the repository if you build from source
  • Node.js and npm, only needed for a from-source build (check the engines field in package.json for the supported Node.js version)
  • CyberChef version 11.5.0 or later, checked against the project’s security advisories

You do not need administrative rights on the host machine for the hosted version. Self-hosting via Docker requires whatever permissions your organization grants for running containers, which is usually a short conversation with your platform team rather than a blocker.

Hosted or self-hosted

The official hosted instance is the fastest way to start, and because processing happens in your browser, no input data is transmitted to GCHQ’s servers just by using the page. Once loaded, or when self-hosted locally, CyberChef also runs offline in the browser tab, which makes it usable in air-gapped analysis environments. The project’s releases page on GitHub also offers an offline release zip, which suits machines where you cannot run Docker. Most security teams still self-host for three reasons: air-gapped or restricted networks, compliance rules that forbid pasting customer data into any third-party-hosted page (even one that processes locally), and version pinning so a browser cache refresh doesn’t silently upgrade analysts to an untested release mid-investigation.

If the input touches customer data or an active incident, or if CyberChef is part of the SOC’s daily workflow, self-host it. If it is a CTF or a quick one-off decode, the hosted version is fine. A middle ground works well too: a self-hosted instance for incidents, with junior analysts and CTF practice pointed at the public build. That keeps the production instance’s version and access logs tightly controlled without forcing every learning exercise through a locked-down environment.

Installing CyberChef with Docker, Compose or from source

Self-hosting with Docker

The project publishes an official container image. Pull and run the prebuilt image first, since it’s the fastest path to a working instance:

docker run -it -p 127.0.0.1:8080:8080 ghcr.io/gchq/cyberchef:latest

Then open http://localhost:8080 in your browser. If your image listens on internal port 80 instead of 8080, change the right-hand (container) side of the mapping, for example 8080:80. Check with:

docker image inspect ghcr.io/gchq/cyberchef:latest --format '{{.Config.ExposedPorts}}'

For a version-pinned deployment, build the image yourself from a specific tagged release instead of trusting latest. An unpinned tag can silently pull a new release mid-investigation and change behavior analysts don’t expect.

git clone https://github.com/gchq/CyberChef.git
cd CyberChef
git checkout v11.5.0
docker build --tag cyberchef:11.5.0 --ulimit nofile=10000 .
docker run -it -p 127.0.0.1:8080:8080 cyberchef:11.5.0

The --ulimit nofile=10000 flag isn’t optional decoration. The project’s own build documentation includes it because the build opens more file handles than most Docker defaults allow, and omitting it can make the build fail partway through with a “too many open files” error.

Keeping it running with Docker Compose

If CyberChef will live on a shared analyst workstation or an internal server, Compose makes restarts and upgrades cleaner than remembering a docker run command. Create a file named docker-compose.yml:

services:
  cyberchef:
    image: cyberchef:11.5.0
    container_name: cyberchef
    ports:
      - "127.0.0.1:8080:8080"
    restart: unless-stopped

Start it with:

docker compose up -d
docker compose logs -f cyberchef

The 127.0.0.1 prefix binds the port to the local machine only; drop it only if you deliberately want other hosts on the network to reach the instance. Pin the image tag to the version you built above rather than latest. To upgrade, change the tag, rebuild, and run docker compose up -d again; Compose recreates only the changed service.

Building from source

Most teams never need this path. It is useful if you want to add a custom operation or audit the exact code running in your environment before deployment:

git clone https://github.com/gchq/CyberChef.git
cd CyberChef
git checkout v11.5.0
npm install
npm run

Running npm run without an argument prints the scripts defined in that release’s package.json. That is safer than assuming a script name from an older tutorial still exists, since CyberChef’s build scripts have changed across major versions.

Working in the CyberChef interface

CyberChef’s layout has four panes, summarised here because recipe behaviour depends on them:

  • Operations (far left): a searchable library of every built-in transformation, grouped by category: data format, encryption, encoding, arithmetic, and more
  • Recipe (center-left): where you drag operations to build your pipeline; operations run top to bottom
  • Input (center-right, top): where you paste or drop the raw data you want to transform
  • Output (center-right, bottom): the result after your recipe runs against the input, updated automatically as you edit

Every operation you drag into the recipe becomes a numbered step. You can reorder steps by dragging, disable one temporarily with its checkbox, or delete it. A recipe is an ordered list of reversible or irreversible transformations, and because each step is visible, anyone on your team can look at it and see exactly how you reached a decoded result, with no black-box scripting.

The Input pane

The Input pane isn’t limited to plain text. You can drop a file straight onto it (an EML file, a malware sample, a PCAP export, or a raw log) and CyberChef treats it as binary or text depending on the operations you apply. For binary files, “To Hex” or “Detect File Type” are usually the first recipe step, so you confirm you’re looking at what you think you are before committing to a decoding path. Multiple input tabs let you hold several samples side by side and compare their decoded output.

Recipe order

Operations execute strictly top to bottom, and swapping two steps can produce completely different output. A common beginner mistake is placing “Extract URLs” before “From Base64”: the input is still encoded, so there’s nothing resembling a URL for the regex to catch. Before baking, read the recipe top to bottom and ask what the data looks like at each point in the pipeline.

Decoding recipes for malware and phishing payloads

Base64

Base64 is everywhere in phishing payloads, encoded PowerShell, and malware configuration blobs, so it’s the natural starting point.

  1. In the Operations search box, type “From Base64”
  2. Drag the operation into the empty Recipe pane
  3. Paste your encoded string into the Input pane, for example: SGVsbG8sIHRoaXMgaXMgYSB0ZXN0IHBheWxvYWQ=
  4. Watch the Output pane update to show the decoded text
Input:  SGVsbG8sIHRoaXMgaXMgYSB0ZXN0IHBheWxvYWQ=
Recipe: From Base64
Output: Hello, this is a test payload

That’s a “baked” recipe, CyberChef’s term for running the pipeline against the current input. Baking normally happens automatically as you type, unless you’ve turned auto-bake off for very large inputs. That is worth doing with multi-megabyte log dumps, where re-baking on every keystroke gets sluggish.

Magic for unknown encodings

Drag in the “Magic” operation instead of guessing. Magic inspects your input and suggests likely operations based on pattern recognition. It isn’t infallible, but it’s a fast first pass on an unfamiliar string from a log or a memory dump.

If the first pass finds nothing convincing, tick “Intensive mode”. It tries a wider set of candidate transformations at the cost of speed. For CTF challenges with layered encoding (Base64 inside hex inside ROT13, for instance), Magic can sometimes chain several guesses automatically and save minutes of trial and error. Use it to find the encoding, then replace it with the specific operation so the saved recipe is fast and explicit.

XOR brute force for malware strings

Single-byte XOR is a common, cheap obfuscation technique in malware droppers and configuration files. The workflow:

  1. Add “From Hex” (or “From Base64”, depending on how your sample is encoded) as the first recipe step
  2. Add “XOR Brute Force” as the second step
  3. Set a key length of 1 for single-byte XOR, or widen it if you suspect a multi-byte key
  4. Scan the output list for recognizable structure: MZ at the start signals a Windows PE file, PK signals a ZIP archive, and readable strings like http, registry paths, or PowerShell keywords signal you’ve found the key
  5. Once you spot the key, replace “XOR Brute Force” with a plain “XOR” operation and hard-code that key for a clean, reusable recipe

The brute-force output is a candidate list like this, with the correct key standing out because it’s the only row that resolves to readable text:

Key = 0x00: [unreadable binary]
Key = 0x1A: [unreadable binary]
Key = 0x42: powershell -nop -w hidden -enc SQBFAFgA...
Key = 0x7F: [unreadable binary]
...(252 more rows)

Once you spot the readable row (0x42 in this example), swap in plain “XOR” with that key so the recipe runs instantly instead of testing 256 candidates on every bake. Testing all 256 single-byte keys against a multi-megabyte sample is slow in a browser tab, so trim to a representative slice first, then apply the confirmed key to the full data. The key space grows as 256 to the power of the key length: 65,536 candidates for two bytes, 16,777,216 for three and 4,294,967,296 for four. That is why a multi-byte key calls for a known-plaintext crib, which the XOR Brute Force operation accepts as a parameter: enter a string such as MZ or http and only matching candidates are shown. If the candidate list is still overwhelming, add a “Regular expression” step right after to surface only candidates containing strings like http or MZ. This is one of the fastest ways to unpack a XOR-obfuscated dropper without opening a disassembler.

Extracting indicators of compromise

Once you’ve decoded a payload, you usually want the indicators, not the whole blob. Drag in “Regular expression”, or the dedicated “Extract IP addresses”, “Extract URLs”, and “Extract email addresses” operations, which are pre-built shortcuts around the same regex engine, and point it at the decoded output.

A practical triage recipe chains several extractions: URLs first, then domains, then IPv4 addresses, then file hashes. Use “Register” and “Subsection” to keep each in its own labeled section rather than one undifferentiated list. Always validate what the regex catches: a version string like 10.19.4.2 can match an IPv4 pattern, so a human pass over the list is needed before it goes into a ticket, a blocklist, or a SIEM query.

Defanging and refanging URLs

When you write up an incident or paste a malicious URL into a ticket, you don’t want it to render as a clickable link. “Defang URL” converts https://payload-host.test/payload into hxxps://payload-host[.]test/payload, the standard threat-intel convention.

Input:  https://payload-host.test/payload.php?id=8842
Recipe: Defang URL
Output: hxxps://payload-host[.]test/payload[.]php?id=8842

That string is safe to paste into a ticket, a Slack channel, or an email report without triggering link previews or accidental clicks. “Refang URL” reverses the process when you need the live format, for example to feed a sandbox or a blocklist API. Refang only immediately before feeding a value into a tool that needs the real format, never as a default step in a recipe other analysts might reuse blindly.

JWT decoding is not verification

Decoding a JWT in CyberChef does not verify it. Paste a JWT into Input and drag in “JWT Decode” and you get the header and payload as readable JSON, which is useful for checking algorithm fields, issuer and audience claims, expiration timestamps, and custom claims during an authentication investigation. But you are looking at claims, not confirming the token is legitimate.

Signature verification is a separate step involving the issuer’s public key and a proper JWT library. Treat a decoded-but-unverified payload as informational only, never as proof of authenticity.

Obfuscated PowerShell

Encoded PowerShell is a way attackers hide command-line activity from casual log review, and it maps to MITRE’s T1027 technique. A typical -EncodedCommand argument looks like a long Base64 string. The recipe:

Recipe:
1. From Base64
2. Decode text (UTF-16LE)
3. Remove null bytes (if needed)

PowerShell’s -EncodedCommand parameter encodes in UTF-16LE before Base64. That is why a straight “From Base64” often produces garbled output with null bytes between every character, the classic tell that you need “Decode text” set to UTF-16LE right after the Base64 step. Once decoded, run your extraction recipe against the result to pull out download URLs, file paths, and further nested encoding. A second or third layer of Base64 inside the first decoded script is common.

Saving recipes, phishing triage and malware strings

Saving and sharing recipes

CyberChef can encode an entire recipe into the page URL, so sharing is a matter of sending a link that loads your exact recipe and, optionally, your input. Only open recipe links from sources you trust and keep your self-hosted instance patched, because a recipe link can carry both the recipe and the input.

For recipes you use daily, use the “Save recipe” button to store them locally in your browser rather than relying on a bookmarked URL. Saved recipes live in browser local storage, tied to the origin (localhost:8080) and not the container filesystem, so they persist across container restarts as long as you use the same URL in the same browser profile. If a recipe URL is too long to share by email or chat, share the plain-text recipe steps instead. Store exported recipe JSON, with a note of the CyberChef version it ran on, in a private git repository alongside your incident response runbooks so recipes survive staff turnover and browser cache clears.

A complete phishing triage recipe

This end-to-end recipe ties the steps above together for a phishing ticket. Build these steps in order in a fresh recipe pane:

1. Remove whitespace (normalize the pasted email body)
2. HTML entity decode (undo & / < style encoding)
3. URL Decode (undo %XX encoding in tracking links)
4. Extract URLs
5. Fork (delimiter: \n): process every extracted URL independently
6. Extract domains (register the result for reuse)
7. Defang URL (last, so the output is safe to paste into a ticket)
8. In a second recipe on the same input: Regular expression, IPv4 addresses (the steps above have already replaced the full body)

Paste the raw email source (headers and body) into Input. The output is a clean, defanged list of every URL and domain in the message, safe to paste into a ticket. “Fork” splits input on a delimiter and runs the rest of the recipe against each piece independently. If an email carries many Base64-encoded tracking parameters, Fork plus “From Base64” decodes all of them in one pass. It also works before hash calculations, regex extraction, or JWT decoding whenever you have a list of similar values.

Save this as “Phishing Triage v1” and reuse it on every suspicious email report. Extend it with a hash-lookup step or an attachment-name extractor as needs grow. Keep separate saved recipes for phishing triage, encoded PowerShell, and JWT inspection; they load faster than rebuilding and double as documentation for junior analysts.

Malware string extraction

Drop a suspicious binary or script onto the Input pane, run “Extract strings”, then chain “Remove duplicates” and a regex step to isolate URLs, file paths, and command fragments among thousands of irrelevant lines. This won’t replace a disassembler for control flow, and CyberChef is not a malware sandbox: it does not execute or detonate samples. But it can be enough to confirm at a high level what a sample does.

Comparing CyberChef with other analyst tools and common operations

Other analyst tools

The table shows where each neighbouring tool starts and where CyberChef stops, so you can decide when to move a sample on.

ToolBest suited forHow it differs from CyberChef
CyberChefInteractive decoding, transformation pipelines, malware string triage, CTF workBroad recipe-based model; browser-based; runs entirely client-side
Burp SuiteWeb app testing, HTTP interception, request/response tamperingA web proxy and application-security platform, not a general decoding tool
dCodeClassical cipher identification, puzzle-style encodingsStronger at cipher/puzzle recognition; CyberChef is stronger for composable security workflows
MalcatMalware reverse engineering, binary/PE structure analysisA full static-analysis workspace with disassembly; CyberChef is lighter and faster for pure decoding
WiresharkPacket capture and network protocol analysisOperates on live or captured traffic, not arbitrary pasted text

A typical investigation uses several together: capture traffic in Wireshark, intercept a suspicious request in Burp Suite, decode the payload in CyberChef, and hand a confirmed malicious binary to Malcat or a sandbox for deeper reverse engineering. If the data is text or bytes you can paste, start in CyberChef; if it is traffic or a binary needing disassembly, start in the specialist tool and bring fragments back.

Operations used most often

This table maps each operation to the layer it peels and the symptom that tells you the step is wrong; read it as a lookup while building a recipe.

OperationTypical use caseNotes
From Base64 / To Base64Decoding phishing payloads, PowerShell, config blobsPair with “Decode text (UTF-16LE)” for PowerShell-sourced strings
Raw Inflate / GunzipDecompressing a layer that sits inside the encodingTry after “From Base64” when the decoded output looks like compressed binary
MagicUnknown or layered encodingEnable “Intensive mode” for stubborn inputs
XOR / XOR Brute ForceMalware dropper and config deobfuscationStart with a 1-byte key length, widen if no readable output appears
Regular expressionCustom pattern extractionCombine with “Register” to reuse matched values later in the recipe
Extract URLs / IPs / EmailsFast IOC pulls without writing custom regexAlways eyeball results for false positives before reporting
Defang URL / Refang URLSafe reporting of malicious indicatorsOnly refang immediately before feeding a tool that needs the live format
JWT DecodeInspecting auth token claimsDoes not verify the signature: treat output as unverified
ForkBulk-processing many similar values at onceSet the delimiter to match how your values are separated (commonly newline)
Extract stringsPulling printable text out of binariesChain with “Remove duplicates” on noisy samples

Security advisories and keeping an instance current

Checking your version against the advisories

The release-by-release fix list from the old page could not be verified, so it is not reproduced here. Read the advisories page before you standardize on a version.

VersionRelease dateFix summary
11.0.0April 29, 2026Cross-site scripting issue in the “Show Base64 offsets” operation, exploitable via a crafted recipe URL
11.1.0June 13, 2026Security fix per the project changelog
11.2.0June 17, 2026Prototype-protection fix for the Chart operation
11.3.0August 10, 2026Client-side CPU-exhaustion (denial of service) fix in the recipe URL parser, triggered by malformed #recipe= fragments
11.5.0September 18, 2026Current stable release; latest general update

A cautious rule: only open an unfamiliar CyberChef recipe link from a sender you trust, on a build you keep current. Check the project’s GitHub security advisories page before you standardize on a version across your organization.

Keeping a self-hosted instance up to date

Build a lightweight update habit rather than treating setup as one-time. Check the GitHub releases page monthly, or subscribe to release notifications. When a new version drops, rebuild your pinned image with the new tag, test your saved recipes against it in a non-production instance, and only then roll it out to your team’s primary URL. Treat CyberChef’s supply chain with the same seriousness as a phishing detection workflow, because it touches the same sensitive artifacts.

Assign ownership of this habit to a specific person or rotating role rather than leaving it to whoever remembers. A self-hosted analyst tool that quietly falls several versions behind is a common, avoidable gap, and it tends to surface during an audit rather than day-to-day use.

Repository activity after 11.5.0

Commits after a release do not by themselves justify a rebuild. Check the project repository for anything newer than v11.5.0 before you rebuild.

For your own deployment, keep the pinned 11.5.0 tag, check the gchq/CyberChef repository whenever a new numbered version appears, and treat unreleased commits as items to watch rather than triggers to act on. Test a rebuilt instance against your largest typical samples before switching your team over.

Marcus Chen

Marcus Chen

PC hardware, storage and engineering

Marcus Chen covers PC hardware, storage and engineering for Tech Insider: processors, graphics cards, SSDs and hard drives, home servers and backup, and the engineering choices behind them. He builds comparisons from manufacturers' specifications, published independent test results and Tech Insider's own calculations, and writes plainly about what the evidence supports.

View all articles