☼
⌃
☰

cyberchef

Table of Contents

CyberChef

Description

Originally developed by the GCHQ (Government Communications Headquarters), CyberChef is an open-source tool designed to enable both technical and non-technical analysts to manipulate data in complex ways without having to write code or install numerous command-line utilities.

The "Recipe" Concept ‍

The tool operates on a "Kitchen" metaphor. You place your raw data in the Input area, drag "Operations" from a library into a Recipe pane, and the resulting data appears in the Output area.

Key features include:

  • Modularity: Operations (like Base64 decoding, URL unescaping, or AES decryption) can be chained together. The output of one operation becomes the input for the next.
  • Automation: The "Magic" operation can automatically detect encoded data and suggest the correct sequence of steps to decode it.
  • Client-Side Processing: Most versions of CyberChef run entirely within the user's browser, meaning data is processed locally and not sent to a remote server—a critical feature for handling sensitive data during security investigations.

Use Cases in Cyber Security

CyberChef is a staple in several security disciplines:

  • Malware Analysis: De-obfuscating malicious scripts or extracting configuration data from encoded strings.
  • Digital Forensics: Converting timestamps, parsing binary headers, or decoding artifacts found in memory or logs.
  • Cryptography: Testing encryption/decryption with various algorithms and keys.
  • Web Security: Quickly encoding or decoding payloads for testing XSS or Injection vulnerabilities.

Examples

. ecoding Obfuscated PowerShell

An attacker might use a Base64-encoded command to hide their intent.

  • Input: cG93ZXJzaGVsbCAtZWMgYmFzaDY0X3N0cmluZw==
  • Recipe: From Base64
  • Output: powershell -ec bash64_string

2. Extracting URLs from a efanged Log

Security tools often "defang" URLs (e.g., hxxp[://]malicious[.]com) so they aren't accidentally clicked.

  • Input: Please check the status of hxxps[://]badsite[.]xyz/payload
  • Recipe: Refang URL
  • Output: Please check the status of https://badsite.xyz/payload

3. Converting a Unix Timestamp

Forensic logs often store time in "Epoch" format.

  • Input: 1734415200
  • Recipe: From UNIX Timestamp
  • Output: Tue 17 December 2024 06:00:00 UTC