Lion Cipher Lab

Prove a program was on the machine even after it was deleted — Amcache and ShimCache (AppCompatCache)

Why it matters

Attackers delete their tools. They run a loader, dump credentials, move on, then `del` the binary to erase the evidence — and if all you had was the file system, the tool would be gone and the story with it. But Windows keeps two quiet registers of what executables have been on a machine, and both are maintained by a feature that has nothing to do with security: the application-compatibility (shim) engine, the machinery that lets old programs keep running on new Windows by quietly patching their behaviour. To do that job Windows records metadata about the executables it sees. Two of those…

What you'll learn

Steps in this lab

  1. The shim engine, and the two artifacts it leaves behind
  2. Locate the hives on your own machine
  3. Manufacture ground truth: plant a binary, run it, note it, then DELETE it
  4. Get Eric Zimmerman's parsers
  5. Parse ShimCache: read the path, the last-modified time, the Executed flag
  6. Parse Amcache with -i: read the full path, the SHA1, the timestamps
  7. The payoff: 'this deleted binary was present here' — correlate SHA1 + path
  8. The honest negative: ShimCache is NOT proof of execution (and the timestamp traps)
  9. Judgment: when each artifact earns its place, and how a pro corroborates

Open the full interactive lab →