Lion Cipher Lab

Peel a real malware loader with CyberChef: multi-stage deobfuscation and the Magic wand (Part 2)

Why it matters

Real obfuscation is never one clean layer. A loader that lands on a machine is typically a Base64 blob that gunzips into a list of character codes that rebuild a second Base64 string that XORs into the config that finally names the command-and-control server. Every one of those layers is cheap to add and each one buys the attacker another few minutes of your life. CyberChef is the fastest honest way for one analyst to walk down that stack, verify each step, and come out the other side holding the indicators — the domain, the IP, the scheduled task. This lab teaches the layered-decode habit…

What you'll learn

Steps in this lab

  1. Where Part 1 stopped, and what this lab adds
  2. Get your own copy: download the standalone build and pull the plug
  3. WHEN CyberChef is the right tool — and the three times it is the wrong one
  4. Why loaders are layered at all — and why you must not download one
  5. Build the sample: five layers, forward, one at a time
  6. Measure before you guess: the Entropy operation, and the one thing it cannot see
  7. Ask Magic — then interrogate the answer
  8. The real artifact: find the payload inside the file, and strip the junk
  9. Peel the stack — one layer, then look, then the next
  10. Finish the job: pull the IOCs out and defang them
  11. Subsection: transform one field and leave the rest of the evidence intact
  12. Registers: capture the key in one stage and spend it in the next
  13. The recipe is the artifact — save it, export it, hand it over
  14. Do it better: the habits, and knowing when to close the tab and write code
  15. What you actually learned

Open the full interactive lab →