CyberChef recipe book

Decoding and deobfuscation recipes as JSON you can load straight into CyberChef, each with a constructed sample and the output it should produce, so you can tell a wrong recipe from a wrong input.

A recipe is JSON you load, not a screenshot you retype. Each one ships with a constructed sample and its expected output, so when yours comes out as noise you can tell whether the recipe is wrong or the input is not what you thought.

Tested

3 in all

RecipeCONSTRUCTED

A gzip-compressed, base64-encoded PowerShell stage

Two operations for the layer that sits inside most PowerShell loaders: base64 that decodes to binary starting with 1F 8B. Recognise it on sight, then read the script inside.

From Base64Gunzip
T1027T1140T1059.001
2 operationsUntested
RecipeCONSTRUCTED

JavaScript String.fromCharCode, back to readable text

One operation for a common trick in malicious JavaScript and HTML attachments: a string written as a list of decimal character codes so that no readable word appears in the file.

From Charcode
T1027T1140
1 operationsUntested
RecipeCONSTRUCTED

PowerShell -EncodedCommand to readable script

The two operations that turn the base64 after -e, -enc or -EncodedCommand into the script that ran. Short, and the one you will use most.

From Base64Decode text
T1059.001T1027.010
2 operationsUntested