Lion Cipher Lab

Read a phishing ZIP byte by byte and find the name the listing hides

Why it matters

Phishing emails very often deliver their payload inside a ZIP, because an archive hides the real file from a quick glance and from some mail filters. The usual first look is a listing: names, dates, sizes. That listing comes from one copy of the metadata, the central directory at the end of the file, and a ZIP keeps a second copy in front of every file's data. When the two disagree, different tools see different files. The same bytes also hold a host system byte, a spec version, timestamps with no time zone, and sometimes a second timestamp in UTC that reveals the builder's clock offset. This…

What you'll learn

Steps in this lab

  1. The case, and the words you need
  2. Open a terminal, check Python, and make a folder
  3. Build the evidence ZIP yourself, so it is safe and identical for everyone
  4. Look the way most people look first: the zipfile listing
  5. The map: how a reader finds everything, starting from the end
  6. Decode one header by hand before you trust any parser
  7. Write the parser: every record, both copies, every extra field
  8. Read the story the bytes prove
  9. Measure it: what the listing shows vs what the parser shows
  10. Forge it yourself, then write down what the archive cannot prove
  11. When to do this, when not to, and how a pro does it better

Open the full interactive lab →